:root {
    /* Color Palette */
    --ocean-deep: #0a192f;
    --ocean-mid: #112240;
    --ocean-light: #233554;
    --gold: #FFD700;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --accent: #64ffda;
    --accent-glow: rgba(100, 255, 218, 0.3);
    --premium: #ff3366;
    --premium-glow: rgba(255, 51, 102, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Rhythm Game */
    --tension-safe: #2ecc71;
    --tension-danger: #e74c3c;
    --tension-bar-bg: #1a1a24;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-x pan-y;
    /* Allow scrolling but prevent zooming/double-tap */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--ocean-deep);
    color: var(--text-main);
    overflow: hidden;
    /* Prevent scrolling on mobile */
    overscroll-behavior-y: none;
}

/* ================= HUD & LAYOUT ================= */
#game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 1;
}

#hud-top {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.9), transparent);
    z-index: 10;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--glass-bg);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gold-display span {
    color: var(--gold);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

#hud-bottom {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: linear-gradient(to top, rgba(10, 25, 47, 1), transparent);
    z-index: 10;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    opacity: 0.8;
    padding: 10px;
    /* larger touch target */
}

.nav-btn:hover,
.nav-btn:active {
    transform: translateY(-3px);
    color: var(--accent);
    opacity: 1;
}

/* ================= OCEAN AREA (Action) ================= */
#ocean-area {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.water-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/img/bg_ocean.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

/* Light Rays Effect */
.light-rays {
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 10%,
            transparent 20%);
    transform-origin: top center;
    animation: swayRays 15s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes swayRays {
    0% {
        transform: perspective(500px) rotateX(10deg) skewX(-15deg);
    }

    100% {
        transform: perspective(500px) rotateX(10deg) skewX(15deg);
    }
}

/* God Rays (Overlays) */
.god-rays {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg at 50% 0%,
            transparent 40%,
            rgba(100, 255, 218, 0.15) 45%,
            transparent 50%,
            rgba(100, 255, 218, 0.1) 55%,
            transparent 60%);
    animation: rotateGodRays 20s linear infinite;
    z-index: 1;
    /* Above water, below fishes */
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes rotateGodRays {
    0% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(-15deg);
    }
}

/* Bubbles Effect */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -20px;
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
    animation-name: floatUp;
    animation-timing-function: ease-in;
    animation-iteration-count: infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

/* Premium 3D Icon Container */
.premium-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 60%, rgba(0, 0, 0, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.5),
        inset 0 4px 5px rgba(255, 255, 255, 0.6),
        inset 0 -4px 5px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    padding: 15px;
}

.premium-icon::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 15%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.6;
}

#bobber .premium-icon {
    font-size: 2rem;
    padding: 10px;
}

/* Image Assets Styles */
.asset-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.huge-icon-wrapper .asset-icon {
    width: 120px;
    height: 120px;
    animation: float 3s ease-in-out infinite;
}

.inv-item .asset-icon,
.shop-item .asset-icon {
    animation: float 3s ease-in-out infinite;
}

/* Casting & Bobber */
/* Background Swimming Fishes */
#background-fishes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* Above water, below UI/Bobber */
    pointer-events: none;
}

.bg-fish {
    position: absolute;
    width: 50px;
    height: 30px;
    opacity: 0.8;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)) blur(1px);
    /* Slightly blurred for depth */
}

/* Swim from left to right */
.swim-lr {
    animation: swimLR linear forwards;
}

/* Swim from right to left (flipped horizontally) */
.swim-rl {
    transform: scaleX(-1);
    animation: swimRL linear forwards;
}

@keyframes swimLR {
    0% {
        left: -10%;
    }

    100% {
        left: 110%;
    }
}

@keyframes swimRL {
    0% {
        right: -10%;
        transform: scaleX(-1);
    }

    100% {
        right: 110%;
        transform: scaleX(-1);
    }
}

/* ================= FISHERMAN CHARACTER ================= */
#fisherman-container {
    position: absolute;
    top: 60px;
    /* Lifted up to not overlap with the bottom HUD and action button */
    left: 50%;
    z-index: 105;
    /* Moved very high up to pass modal overlays */
    pointer-events: none;
    transform: translateX(-50%) scale(1.3);
}

.boat {
    width: 150px;
    height: 60px;
    position: absolute;
    bottom: -15px;
    left: -65px;
    z-index: 5;
    transform: rotate(0deg);
    /* SVG handles shape naturally, no -90deg rotation needed */
    animation: boatRockForward 4s ease-in-out infinite alternate;
}

.character-wrapper {
    position: absolute;
    bottom: 15px;
    left: -15px;
    z-index: 6;
    animation: charRockForward 4s ease-in-out infinite alternate;
}

.person {
    width: 60px;
    height: 100px;
    position: relative;
    z-index: 7;
}

/* Fishing Rod Container */
.rod-wrapper {
    position: absolute;
    top: 50px;
    left: 15px;
    width: 140px;
    height: 4px;
    transform-origin: 0% 50%;
    transform: rotate(65deg);
    /* Point mostly down, slight right */
    z-index: 8;
    transition: transform 0.3s ease;
}

.rod-pole {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #8B4513, #D2691E);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: background 0.3s, box-shadow 0.3s;
}

/* Rod Variants */
.rod-r1 {
    background: linear-gradient(to right, #8B4513, #D2691E) !important;
}

.rod-r2 {
    background: linear-gradient(to right, #bdc3c7, #2c3e50) !important;
}

.rod-r3 {
    background: linear-gradient(to right, #000000, #434343) !important;
    box-shadow: 0 0 10px var(--accent) !important;
}

.fisherman-hand {
    position: absolute;
    left: 10px;
    top: -15px;
    width: 30px;
    height: 30px;
    z-index: 10;
    transform: rotate(20deg);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.reel {
    position: absolute;
    left: 5px;
    top: -5px;
    width: 24px;
    height: 24px;
    transition: transform 0.1s linear;
}

.fishing-line {
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 1px;
    /* Obscured for top down view */
    background: transparent;
    z-index: 4;
}

/* Character Animations */
/* Character Animations */
@keyframes boatRockForward {
    0% {
        transform: rotate(-2deg) translateY(0);
    }

    100% {
        transform: rotate(2deg) translateY(3px);
    }
}

@keyframes charRockForward {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(2px);
    }
}

/* States */
/* When Casting (Releasing line) */
.fisherman-casting .rod-wrapper {
    animation: castRodAnimUp 1s ease forwards;
}

.fisherman-casting .fisherman-hand {
    animation: handReleaseUp 1s ease forwards;
}

.fisherman-casting .reel {
    animation: reelSpin 0.3s linear infinite reverse;
    /* Spin backwards to release */
}

@keyframes castRodAnimUp {
    0% {
        transform: rotate(65deg);
    }

    30% {
        transform: rotate(-30deg);
    }

    /* Pull back */
    50% {
        transform: rotate(120deg);
    }

    /* Whip forward */
    100% {
        transform: rotate(70deg);
    }

    /* Settle */
}

@keyframes handReleaseUp {
    0% {
        transform: rotate(20deg);
    }

    30% {
        transform: rotate(50deg);
    }

    50% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(20deg);
    }
}

/* When Biting/Battling */
.fisherman-reeling .rod-wrapper {
    transform: rotate(90deg);
    /* Pulled tight straight */
    animation: rodVibrate 0.1s linear infinite alternate;
}

.fisherman-reeling .reel {
    animation: reelSpin 0.3s linear infinite;
}

.fisherman-reeling .fisherman-hand {
    animation: handReelUp 0.3s linear infinite;
}

.fisherman-reeling .person {
    animation: personStruggleUp 0.4s ease-in-out infinite alternate;
}

@keyframes rodVibrate {
    0% {
        transform: rotate(88deg);
    }

    100% {
        transform: rotate(92deg);
    }
}

@keyframes reelSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes handReelUp {
    0% {
        transform: rotate(20deg) translateY(0);
    }

    50% {
        transform: rotate(20deg) translateY(-8px);
    }

    100% {
        transform: rotate(20deg) translateY(0);
    }
}

@keyframes personStruggleUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(3px);
    }
}

#bobber {
    position: absolute;
    z-index: 10;
    font-size: 3rem;
    animation: float 2s ease-in-out infinite;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}

/* Snap animation when fish bites */
.snapping {
    animation: biteSnap 0.5s ease-in-out infinite alternate !important;
}

@keyframes biteSnap {
    0% {
        transform: translateY(0);
        filter: brightness(1) drop-shadow(0 0 10px rgba(231, 76, 60, 0));
    }

    100% {
        transform: translateY(30px) scale(0.9);
        filter: brightness(0.8) drop-shadow(0 0 20px rgba(231, 76, 60, 1));
    }
}

.legendary-burst {
    animation: goldBurst 1s ease-out forwards;
}

@keyframes goldBurst {
    0% {
        filter: drop-shadow(0 0 0 rgba(255, 215, 0, 0));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 1));
        transform: scale(1.5) rotate(5deg);
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
        transform: scale(1) rotate(0deg);
    }
}

.epic-burst {
    animation: premiumBurst 1s ease-out forwards;
}

@keyframes premiumBurst {
    0% {
        filter: drop-shadow(0 0 0 rgba(255, 51, 102, 0));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(255, 51, 102, 1));
        transform: scale(1.3) rotate(-5deg);
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.8));
        transform: scale(1) rotate(0deg);
    }
}

.splashing {
    animation: splash 0.5s infinite alternate !important;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes splash {
    0% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }

    100% {
        transform: translateY(5px) scale(0.9);
        filter: brightness(1.5);
    }
}

#wait-indicator {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Action Button */
#action-btn {
    position: absolute;
    bottom: 30px;
    font-size: 1.5rem;
    padding: 15px 40px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    width: 80%;
    max-width: 300px;
    z-index: 200;
    /* Ensure this is firmly above the fisherman-container (which is 105) and HUDs (which are 10) */
}

.primary {
    background: linear-gradient(45deg, var(--accent), #1de9b6);
    color: var(--ocean-deep);
    border: none;
    box-shadow: 0 0 20px var(--accent-glow);
}

.primary:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ================= BUTTONS & UTILS ================= */
.glass-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.0));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--text-main);
    padding: 15px 24px;
    /* Larger touch target for mobile */
    border-radius: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s;
}

.glass-btn:hover::before {
    left: 150%;
}

.glass-btn:active {
    transform: scale(0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.premium-btn {
    background: linear-gradient(45deg, var(--premium), #ff6b81);
    color: white;
    border: none;
    box-shadow: 0 0 15px var(--premium-glow);
}

.danger-btn {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    color: #ffdce0;
}

.hidden {
    display: none !important;
}

/* Dex Styles */
.dex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    padding: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.dex-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s;
}

.dex-item:hover {
    transform: scale(1.05);
}

.dex-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
}

.dex-item.undiscovered img {
    filter: brightness(0) invert(0.5);
    opacity: 0.3;
}

.dex-item .dex-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dex-item .dex-record {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ================= MODALS & OVERLAYS ================= */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(35, 53, 84, 0.7), rgba(17, 34, 64, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.full-height {
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ================= BATTLE UI (Rhythm Game) ================= */
.battle-panel {
    text-align: center;
    width: 90%;
    max-width: 500px;
}

.battle-panel h2 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 2rem;
    text-shadow: 0 0 10px var(--accent-glow);
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.fish-hp-bar {
    width: 100%;
    height: 15px;
    background: #444;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 2px solid #222;
}

#fish-hp-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f1c40f);
    transition: width 0.1s linear;
}

.tension-bar-container {
    width: 300px;
    /* Fixed height for vertical bar in portrait */
    height: 40px;
    background: var(--tension-bar-bg);
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
    border: 2px solid var(--glass-border);
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.5);
}

#sweet-spot {
    position: absolute;
    top: 5px;
    height: 30px;
    width: 30%;
    /* Will dynamically change size based on difficulty */
    left: 35%;
    /* Will dynamically move */
    background: rgba(46, 204, 113, 0.4);
    border: 2px solid var(--tension-safe);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
    transition: left 0.5s ease-in-out, width 0.3s;
}

#tension-indicator {
    position: absolute;
    top: -5px;
    left: 10%;
    /* Player controls this (0 to 100%) */
    width: 15px;
    height: 50px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: left 0.1s linear;
    transform: translateX(-50%);
    pointer-events: none;
}

.instruction {
    margin-top: 20px;
    color: var(--text-muted);
}

/* ================= RESULTS & DATA VIEWS ================= */
.catch-result {
    text-align: center;
}

.huge-emoji {
    font-size: 5rem;
    margin: 0;
    animation: floatingFish 3s ease-in-out infinite alternate;
}

@keyframes floatingFish {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.huge-icon-wrapper {
    margin: 30px auto;
    width: 150px;
    height: 150px;
    animation: bouncePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes bouncePop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#catch-title {
    color: var(--accent);
}

.stats {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.action-buttons.horizontal {
    flex-direction: row;
    justify-content: center;
}

/* Shop & Inventory Grids */
.shop-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--ocean-light);
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tab-btn.premium {
    color: var(--gold);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    overflow-y: auto;
    padding-bottom: 20px;
}

.inv-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.inv-item .fish-icon {
    font-size: 2rem;
}

.inv-item .sell-price {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 5px;
}

.shop-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.shop-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    gap: 15px;
}

.shop-item .icon {
    font-size: 2.5rem;
}

.shop-item-info {
    flex-grow: 1;
}

.shop-item h4 {
    margin-bottom: 5px;
}

.shop-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.shop-buy-btn {
    min-width: 80px;
}

/* Media Query for larger screens (Centering for desktop view) */
@media (min-width: 768px) {
    #game-container {
        width: 100%;
        max-width: 480px;
        /* Mobile app size constraint */
        margin: 0 auto;
        border-left: 1px solid var(--glass-border);
        border-right: 1px solid var(--glass-border);
        box-shadow: 0 0 50px rgba(10, 25, 47, 0.8);
    }

    body {
        display: flex;
        justify-content: center;
        background-color: #050b14;
        /* Darker background outside the "phone" area */
    }
}