:root {
    --bg-dark: #050508;
    --primary: #00f3ff;
    --secondary: #bc13fe;
    --accent: #ff0055;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #8892b0;
    --grid-color: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow: hidden;
    /* Prevent scrollbar issues */
    position: relative;
    transition: background-color 0.3s ease;
}

.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(188, 19, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, var(--primary-glow, rgba(0, 243, 255, 0.1)) 0%, transparent 50%);
    z-index: -1;
    transition: opacity 0.5s ease;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
    z-index: 100;
}

/* Ensure items are aligned correctly in their grid cells */
.game-nav {
    justify-self: start;
}

.logo {
    justify-self: center;
    /* Reset margins if any */
}

.icon-btn {
    justify-self: end;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Monoton', cursive;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    font-family: 'Monoton', cursive;
}

.game-nav {
    display: flex;
    gap: 20px;
}

.nav-tab {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-tab:hover {
    color: var(--text-main);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.nav-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    transform: rotate(90deg);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding-top: 80px;
    /* Offset for fixed navbar */
    position: relative;
}

/* Sidebar Settings */
.settings-panel {
    position: fixed;
    top: 80px;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.95);
    border-left: 1px solid var(--glass-border);
    padding: 2rem;
    width: 300px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 90;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.settings-panel.open {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-main);
}

.settings-panel h2 {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.setting-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.sidebar {
    position: absolute;
    right: -270px;
    /* 250px width + 20px gap */
    bottom: 0;
    width: 250px;
    height: 608px;
    /* Matches canvas height + padding */
    background: rgba(5, 5, 8, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-family: 'Monoton', cursive;
    color: #00f3ff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    flex-shrink: 0;
}

/* Size Buttons */
.btn-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1rem;
}

.size-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.size-btn.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

/* Custom Size Inputs */
.custom-size-group {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed var(--glass-border);
}

.input-pair {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.input-pair input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
}

.input-pair input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-pair span {
    color: var(--text-muted);
}

.apply-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.apply-btn:hover {
    background: var(--primary);
    color: #000;
}

/* Theme Options */
.theme-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.theme-btn {
    height: 40px;
    border-radius: 10px;
    background: var(--btn-color);
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease;
    opacity: 0.4;
}

.theme-btn:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.theme-btn.active {
    border-color: #fff;
    opacity: 1;
    box-shadow: 0 0 15px var(--btn-color);
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* Ensure it centers itself */
    margin: 0 auto;
}

.game-area {
    position: relative;
    padding: 4px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border-radius: 6px;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.15);
    transition: all 0.3s ease;
}

canvas {
    display: block;
    background-color: #0c0c12;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
    border-radius: 4px;
}

.overlay {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: rgba(12, 12, 18, 0.9);
    display: flex;
    border-radius: 4px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Text & Buttons same as before */
.overlay h1,
.game-over-text {
    font-family: 'Monoton', cursive;
    font-size: 5rem;
    background: linear-gradient(to bottom, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0px;
    line-height: 1;
    text-align: center;
}

.small-overlay h1 {
    font-size: 3.5rem;
    /* Scaled down for Tetris */
}

.small-overlay .instructions {
    font-size: 0.75rem;
    padding: 0 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.game-over-text {
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: var(--accent);
    text-shadow: 0 0 50px var(--accent);
    font-size: 4rem;
}

.overlay p {
    letter-spacing: 5px;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1rem;
    text-shadow: 0 0 10px var(--primary);
}

.glow-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.glow-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
    transform: scale(1.05);
}

.instructions {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

kbd {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    margin: 0 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: monospace;
}

.live-stats {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.stat-box {
    background: var(--glass);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.stat-box .label {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.stat-box .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Minesweeper Styles */
/* Minesweeper Styles */
.minesweeper-area {
    display: flex;
    /* justify-content: center;  <-- REMOVED: let margin:auto handle this */
    align-items: center;
    /* Keep vertical centering */
    padding: 20px;
    min-width: 500px;
    /* Increased from 300px for better start screen fit */
    min-height: 400px;
    /* Increased from 300px */
    max-width: 95vw;
    overflow: auto;
}

.mine-grid {
    display: grid;
    gap: 2px;
    margin: auto;
    /* This centers it when small, and aligns start when scrolling */
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
}

.mine-grid {
    display: grid;
    gap: 2px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 4px;
    /* Ensure it doesn't shrink aggressively */
    flex-shrink: 0;
}

.cell {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    /* Icons */
    font-weight: 900;
    transition: all 0.1s ease;
    user-select: none;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.cell:hover:not(.revealed):not(.flagged) {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
}

.cell.revealed {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: none;
    cursor: default;
}

.cell.mine {
    background: rgba(255, 0, 85, 0.2);
    text-shadow: 0 0 10px #ff0055;
}

.cell.flagged {
    text-shadow: 0 0 10px var(--primary);
}

/* Numbers Colors (Neon) */
.cell[data-num="1"] {
    color: #00f3ff;
    text-shadow: 0 0 5px #00f3ff;
}

.cell[data-num="2"] {
    color: #00ff9d;
    text-shadow: 0 0 5px #00ff9d;
}

.cell[data-num="3"] {
    color: #ff0055;
    text-shadow: 0 0 5px #ff0055;
}

.cell[data-num="4"] {
    color: #bc13fe;
    text-shadow: 0 0 5px #bc13fe;
}

.cell[data-num="5"] {
    color: #ffea00;
    text-shadow: 0 0 5px #ffea00;
}

.cell[data-num="6"] {
    color: #ff7b00;
    text-shadow: 0 0 5px #ff7b00;
}

.cell[data-num="7"] {
    color: #0051ff;
    text-shadow: 0 0 5px #0051ff;
}

.cell[data-num="8"] {
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff;
}

/* Difficulty Buttons */
.diff-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.diff-btn.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

/* Homepage Styles */
.homepage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    gap: 3rem;
}

.homepage-title {
    font-family: 'Monoton', cursive;
    font-size: 5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(0, 243, 255, 0.3);
    margin: 0;
    letter-spacing: 8px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.game-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.game-card:hover::before {
    opacity: 0.1;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow:
        0 0 30px rgba(0, 243, 255, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.game-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 0;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.game-card:hover h2 {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.game-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive Styles */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 3%;
        height: 70px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .settings-panel {
        width: 280px;
    }

    .tetris-layout {
        gap: 1rem;
    }

    .next-piece-sidebar {
        min-width: 120px;
        padding: 1rem;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Homepage Mobile */
    .homepage-container {
        padding: 1rem;
        gap: 2rem;
    }

    .homepage-title {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }

    .game-card {
        padding: 2rem 1.5rem;
    }

    /* Navbar Mobile */
    .navbar {
        grid-template-columns: auto 1fr auto;
        padding: 0 4%;
        height: 60px;
        gap: 10px;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 1px;
        justify-self: start;
        order: 2;
    }

    .game-nav {
        order: 1;
        justify-self: start;
    }

    .icon-btn {
        order: 3;
        justify-self: end;
    }

    .nav-tab {
        font-size: 0.9rem;
        padding: 5px 8px;
        letter-spacing: 1px;
    }

    .game-nav {
        gap: 10px;
    }

    /* Settings Panel Mobile */
    .settings-panel {
        width: 100%;
        max-width: 320px;
        top: 60px;
        padding: 1.5rem;
    }

    /* Container Mobile */
    .container {
        padding-top: 70px;
        padding-bottom: 20px;
        height: auto;
        min-height: 100vh;
    }

    /* Game Wrapper Mobile */
    .game-wrapper {
        width: 100%;
        padding: 0 10px;
        gap: 15px;
    }

    /* Game Area Mobile - Responsive Canvas */
    .game-area {
        width: 100%;
        max-width: 100%;
        padding: 3px;
    }

    canvas {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        display: block;
    }

    /* Overlay Text Mobile */
    .overlay h1 {
        font-size: 3rem !important;
    }

    .small-overlay h1 {
        font-size: 2.5rem !important;
    }

    .game-over-text {
        font-size: 2.5rem !important;
    }

    .overlay p {
        font-size: 0.8rem;
        letter-spacing: 3px;
        margin-bottom: 1.5rem;
    }

    .glow-btn {
        padding: 12px 30px;
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .instructions {
        font-size: 0.75rem;
        margin-top: 1rem;
    }

    kbd {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    /* Stats Mobile */
    .live-stats {
        flex-direction: column;
        gap: 10px;
    }

    .stat-box {
        padding: 8px 15px;
    }

    .stat-box .label {
        font-size: 0.7rem;
    }

    .stat-box .value {
        font-size: 1.2rem;
    }

    /* Tetris Layout Mobile */
    .tetris-layout {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .next-piece-sidebar {
        width: 100%;
        max-width: 200px;
        padding: 1rem;
        min-width: unset;
    }

    .next-piece-sidebar h2 {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    /* Minesweeper Mobile */
    .minesweeper-area {
        min-width: unset;
        min-height: unset;
        padding: 10px;
        max-width: 100%;
    }

    .mine-grid {
        max-width: 100%;
    }

    .cell {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }

    /* Settings Groups Mobile */
    .setting-group label {
        font-size: 0.75rem;
    }

    .btn-group {
        padding: 3px;
    }

    .size-btn,
    .diff-btn {
        padding: 6px;
        font-size: 0.85rem;
    }

    .theme-options {
        gap: 8px;
    }

    .theme-btn {
        height: 35px;
    }
}

/* Small Mobile screens */
@media (max-width: 480px) {
    .homepage-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .game-icon {
        font-size: 3rem;
    }

    .game-card h2 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .game-description {
        font-size: 0.85rem;
    }

    .navbar {
        height: 55px;
        padding: 0 3%;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-tab {
        font-size: 0.75rem;
        padding: 4px 6px;
        letter-spacing: 0.5px;
    }

    .game-nav {
        gap: 6px;
    }

    .overlay h1 {
        font-size: 2.5rem !important;
    }

    .small-overlay h1 {
        font-size: 2rem !important;
    }

    .game-over-text {
        font-size: 2rem !important;
    }

    .glow-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .instructions {
        font-size: 0.7rem;
    }

    .cell {
        width: 22px;
        height: 22px;
        font-size: 0.9rem;
    }

    .settings-panel {
        max-width: 100%;
        padding: 1rem;
    }

    .container {
        padding-top: 60px;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 900px) and (orientation: landscape) {
    .container {
        padding-top: 60px;
        padding-bottom: 10px;
    }

    .game-wrapper {
        gap: 10px;
    }

    .live-stats {
        flex-direction: row;
        gap: 10px;
    }

    .overlay h1 {
        font-size: 2.5rem !important;
        margin-bottom: 0.5rem;
    }

    .overlay p {
        margin-bottom: 1rem;
    }

    .instructions {
        margin-top: 0.5rem;
    }

    .tetris-layout {
        flex-direction: row;
        justify-content: center;
    }

    .next-piece-sidebar {
        max-width: 150px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {

    .glow-btn,
    .icon-btn,
    .nav-tab,
    .size-btn,
    .diff-btn,
    .theme-btn,
    .game-card {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .icon-btn,
    .glow-btn,
    .size-btn,
    .diff-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .cell {
        min-width: 30px;
        min-height: 30px;
    }
}

/* Tetris Next Piece Preview */
.tetris-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.next-piece-sidebar {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    min-width: 150px;
}

.next-piece-sidebar h2 {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-align: center;
}

.next-piece-preview {
    background: rgba(12, 12, 18, 0.8);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#next-canvas {
    display: block;
}

.game-area {
    width: fit-content;
    height: fit-content;
    cursor: pointer;
    /* Interaction hint */
}

.game-wrapper {
    position: relative;
    /* Anchor for absolute sidebar */
    margin: 0 auto;
    /* Center horizontally */
}

.catch-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catch-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Rarity Colors */
.catch-item.small-fry {
    border-color: #00f3ff;
}

.catch-item.neon-bass {
    border-color: #00ff9d;
}

.catch-item.cyber-shark {
    border-color: #ff0055;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.1);
}

.catch-item.void-ray {
    border-color: #bc13fe;
}

.fish-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.fish-score {
    font-family: 'Monoton', cursive;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

/* Mobile Responsive Styles for Fishing Game */
@media (max-width: 1200px) {
    .sidebar {
        right: -260px;
        width: 240px;
    }
}

@media (max-width: 1024px) {
    .game-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .sidebar {
        position: static;
        width: 100%;
        max-width: 500px;
        height: auto;
        max-height: 300px;
    }

    .sidebar h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        max-width: 100%;
        padding: 15px;
        max-height: 250px;
    }

    .sidebar h2 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .catch-item {
        padding: 8px;
    }

    .fish-name {
        font-size: 0.85rem;
    }

    .fish-score {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 10px;
        max-height: 200px;
    }

    .sidebar h2 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .catch-item {
        padding: 6px 8px;
    }

    .fish-name {
        font-size: 0.8rem;
    }

    .fish-score {
        font-size: 0.85rem;
    }
}