/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --sky-top: #0f0c29;
    --sky-mid: #302b63;
    --sky-bottom: #24243e;
    --water-deep: #0a3d62;
    --water-mid: #0c5474;
    --water-surface: #1289A7;
    --water-light: #38ada9;
    --gold: #f6b93b;
    --gold-dark: #e58e26;
    --gold-glow: #fad390;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-bg-solid: #1a2744;
    --text-primary: #f5f6fa;
    --text-secondary: #aab2c0;
    --text-dim: #6b7a90;
    --nav-bg: rgba(10, 20, 40, 0.95);
    --btn-primary: linear-gradient(135deg, #1289A7, #0c5474);
    --btn-sell: linear-gradient(135deg, #f6b93b, #e58e26);
    --rarity-common: #aab2c0;
    --rarity-uncommon: #2ecc71;
    --rarity-rare: #3498db;
    --rarity-epic: #9b59b6;
    --rarity-legendary: #f39c12;
    --rarity-mythical: #ff2d55;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Outfit', system-ui, sans-serif;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    height: 100%;
}

body {
    font-family: var(--font);
    background: linear-gradient(180deg, var(--sky-top), var(--sky-mid), var(--water-deep));
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* Hide scrollbar utility */
.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
    /* Safari/Chrome */
}

#app {
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ===== HEADER ===== */
#header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(10, 20, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
    position: relative;
    align-items: flex-start;
}

.header-left,
.header-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header-left {
    align-items: flex-start;
}

.header-right {
    align-items: flex-end;
}

.header-top-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-ui {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
}

.btn-login {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
    transition: all var(--transition);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.6);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.4);
}

.location-badge {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.gold-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(246, 185, 59, 0.2), rgba(229, 142, 38, 0.15));
    border: 1px solid rgba(246, 185, 59, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.gold-icon {
    font-size: 1.1rem;
}

.gold-amount {
    color: var(--gold);
}

.gold-amount.animate {
    animation: goldPop 0.4s ease;
}

/* Weather badge */
.weather-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Mute button */
.btn-mute {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-mute:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Level badge */
.level-badge {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3), rgba(142, 68, 173, 0.2));
    border: 1px solid rgba(155, 89, 182, 0.4);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #c39bd3;
}

/* XP Bar */
.xp-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    width: 100%;
    flex-shrink: 0;
}

.xp-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #9b59b6, #e74c3c, #f39c12);
    transition: width 0.5s ease;
    border-radius: 0 2px 2px 0;
}

/* Catch XP */
.catch-xp {
    background: rgba(155, 89, 182, 0.2);
    color: #c39bd3;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Quest Button & Modal */
.btn-quests-float {
    position: absolute;
    top: 8px;
    left: 16px;
    background: rgba(10, 20, 40, 0.85);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.quest-modal-card {
    text-align: center;
}

.quest-modal-card h2 {
    color: var(--gold);
    margin-bottom: 4px;
}

.quest-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.quest-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 0.85rem;
    text-align: left;
}

.quest-card.completed {
    opacity: 0.5;
    border-color: rgba(46, 204, 113, 0.3);
}

.quest-desc {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.quest-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 4px;
}

.quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--water-light), var(--gold));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.quest-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Kodex */
.kodex-progress {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.kodex-grid {
    padding: 0 16px 100px;
}

.kodex-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--water-light);
    margin: 16px 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kodex-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.kodex-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    text-align: center;
    transition: all var(--transition);
}

.kodex-card.unknown {
    opacity: 0.35;
}

.kodex-card.rarity-border-common {
    border-color: rgba(149, 165, 166, 0.4);
}

.kodex-card.rarity-border-uncommon {
    border-color: rgba(46, 204, 113, 0.4);
}

.kodex-card.rarity-border-rare {
    border-color: rgba(52, 152, 219, 0.4);
}

.kodex-card.rarity-border-epic {
    border-color: rgba(155, 89, 182, 0.4);
}

.kodex-card.rarity-border-legendary {
    border-color: rgba(241, 196, 15, 0.5);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.15);
}

.kodex-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.kodex-name {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.kodex-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    font-size: 0.6rem;
    color: var(--text-dim);
}

@keyframes goldPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
        color: #fff;
    }

    100% {
        transform: scale(1);
    }
}

/* ===== SCREENS ===== */
.screen {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    flex-direction: column;
    scrollbar-width: none;
    position: relative;
}

.screen::-webkit-scrollbar {
    display: none;
}

.screen.active {
    display: flex;
}

.screen-header {
    padding: 20px 16px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.screen-header h1 {
    font-size: 1.4rem;
    font-weight: 800;
}

.bag-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--card-bg);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* ===== FISHING SCENE ===== */
.water-scene {
    position: relative;
    flex: 2;
    min-height: 320px;
    overflow: hidden;
}

.sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 40%, var(--sky-bottom) 70%, var(--water-deep) 100%);
    transition: background 1.5s ease;
}

/* ===== SCENE DECORATIONS ===== */
.scene-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* --- BEACH: Palm trees, island, birds --- */
.decor-palm {
    position: absolute;
    bottom: 0;
}

.decor-palm .trunk {
    position: absolute;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to top, #5D4037, #795548);
    border-radius: 4px;
}

.decor-palm .leaves {
    position: absolute;
    width: 60px;
    height: 35px;
}

.decor-palm .leaf {
    position: absolute;
    background: #1B5E20;
    border-radius: 50% 50% 0 50%;
    opacity: 0.7;
}

.palm-left {
    left: -5px;
    bottom: 0;
}

.palm-left .trunk {
    height: 90px;
    left: 20px;
    transform: rotate(-8deg);
    transform-origin: bottom;
}

.palm-left .leaves {
    bottom: 80px;
    left: -5px;
}

.palm-left .leaf:nth-child(1) {
    width: 40px;
    height: 14px;
    top: 0;
    left: 10px;
    transform: rotate(-30deg);
}

.palm-left .leaf:nth-child(2) {
    width: 35px;
    height: 12px;
    top: 5px;
    left: 25px;
    transform: rotate(15deg);
    border-radius: 50% 50% 50% 0;
}

.palm-left .leaf:nth-child(3) {
    width: 38px;
    height: 13px;
    top: 12px;
    left: 5px;
    transform: rotate(-50deg);
}

.palm-left .leaf:nth-child(4) {
    width: 32px;
    height: 11px;
    top: 10px;
    left: 28px;
    transform: rotate(40deg);
    border-radius: 50% 50% 50% 0;
}

.palm-right {
    right: 5px;
    bottom: 0;
}

.palm-right .trunk {
    height: 70px;
    right: 25px;
    transform: rotate(10deg);
    transform-origin: bottom;
}

.palm-right .leaves {
    bottom: 62px;
    right: 0;
}

.palm-right .leaf:nth-child(1) {
    width: 35px;
    height: 12px;
    top: 2px;
    right: 5px;
    transform: rotate(25deg);
    border-radius: 50% 50% 50% 0;
}

.palm-right .leaf:nth-child(2) {
    width: 30px;
    height: 10px;
    top: 8px;
    right: 18px;
    transform: rotate(-20deg);
}

.palm-right .leaf:nth-child(3) {
    width: 33px;
    height: 12px;
    top: 14px;
    right: 2px;
    transform: rotate(45deg);
    border-radius: 50% 50% 50% 0;
}

.decor-island {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(34, 139, 34, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.decor-bird {
    position: absolute;
    font-size: 10px;
    opacity: 0.4;
    animation: birdFly 12s linear infinite;
}

.decor-bird:nth-child(2) {
    animation-delay: -4s;
    top: 15%;
    font-size: 8px;
}

.decor-bird:nth-child(3) {
    animation-delay: -8s;
    top: 22%;
    font-size: 7px;
    opacity: 0.25;
}

@keyframes birdFly {
    0% {
        transform: translateX(-30px);
    }

    100% {
        transform: translateX(calc(100vw + 30px));
    }
}

/* Palm tree gentle sway */
.decor-palm .leaves {
    animation: palmSway 4s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes palmSway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

/* --- RIVER: Trees, tall grass, rocks --- */
.decor-tree {
    position: absolute;
    bottom: 0;
}

.decor-tree .tree-trunk {
    position: absolute;
    bottom: 0;
    width: 10px;
    background: linear-gradient(to top, #3E2723, #5D4037);
    border-radius: 3px;
}

.decor-tree .tree-crown {
    position: absolute;
    border-radius: 50%;
}

.tree-left-1 {
    left: -8px;
}

.tree-left-1 .tree-trunk {
    height: 60px;
    left: 25px;
}

.tree-left-1 .tree-crown {
    bottom: 45px;
    left: 0;
    width: 60px;
    height: 55px;
    background: radial-gradient(ellipse, rgba(27, 94, 32, 0.8), rgba(46, 125, 50, 0.6), transparent);
}

.tree-left-2 {
    left: 25px;
}

.tree-left-2 .tree-trunk {
    height: 45px;
    left: 15px;
}

.tree-left-2 .tree-crown {
    bottom: 35px;
    left: -5px;
    width: 45px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(56, 142, 60, 0.75), rgba(76, 175, 80, 0.5), transparent);
}

.tree-right-1 {
    right: -5px;
}

.tree-right-1 .tree-trunk {
    height: 55px;
    right: 20px;
}

.tree-right-1 .tree-crown {
    bottom: 42px;
    right: -5px;
    width: 55px;
    height: 50px;
    background: radial-gradient(ellipse, rgba(27, 94, 32, 0.75), rgba(46, 125, 50, 0.5), transparent);
}

.tree-right-2 {
    right: 30px;
}

.tree-right-2 .tree-trunk {
    height: 40px;
    right: 8px;
}

.tree-right-2 .tree-crown {
    bottom: 30px;
    right: -8px;
    width: 40px;
    height: 35px;
    background: radial-gradient(ellipse, rgba(56, 142, 60, 0.7), rgba(76, 175, 80, 0.4), transparent);
}

.decor-grass {
    position: absolute;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to top, rgba(46, 125, 50, 0.6), rgba(76, 175, 80, 0.3));
    border-radius: 2px 2px 0 0;
    animation: grassSway 2.5s ease-in-out infinite;
    transform-origin: bottom;
}

@keyframes grassSway {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.decor-rock {
    position: absolute;
    bottom: 0;
    border-radius: 40% 50% 45% 55%;
    background: linear-gradient(135deg, rgba(120, 120, 120, 0.5), rgba(80, 80, 80, 0.4));
}

/* --- LAKE: Mountains, pine trees, mist --- */
.decor-mountain {
    position: absolute;
    bottom: 0;
}

.decor-mountain .mtn-shape {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.mtn-far-1 {
    left: 5%;
    bottom: 0;
}

.mtn-far-1 .mtn-shape {
    width: 160px;
    height: 120px;
    background: linear-gradient(180deg, rgba(55, 71, 79, 0.6), rgba(38, 50, 56, 0.5));
}

.mtn-far-2 {
    left: 25%;
    bottom: 0;
}

.mtn-far-2 .mtn-shape {
    width: 200px;
    height: 140px;
    background: linear-gradient(180deg, rgba(69, 90, 100, 0.55), rgba(55, 71, 79, 0.45));
}

.mtn-far-3 {
    right: 5%;
    bottom: 0;
}

.mtn-far-3 .mtn-shape {
    width: 140px;
    height: 100px;
    background: linear-gradient(180deg, rgba(55, 71, 79, 0.5), rgba(38, 50, 56, 0.4));
}

/* Snow caps */
.mtn-snow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(50% 0%, 30% 35%, 70% 35%);
    background: rgba(255, 255, 255, 0.3);
}

.decor-pine {
    position: absolute;
    bottom: 0;
}

.decor-pine .pine-body {
    clip-path: polygon(50% 0%, 15% 100%, 85% 100%);
    background: linear-gradient(180deg, rgba(27, 94, 32, 0.6), rgba(46, 125, 50, 0.5));
}

.decor-pine .pine-trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 10px;
    background: rgba(62, 39, 35, 0.5);
}

.decor-mist {
    position: absolute;
    bottom: 5%;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(200, 220, 230, 0.15), transparent);
    animation: mistDrift 8s ease-in-out infinite;
}

@keyframes mistDrift {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(10px);
    }
}

/* --- DEEP SEA: Moon reflection, jellyfish --- */
.decor-moon {
    position: absolute;
    top: 8%;
    left: 15%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 240, 241, 0.9) 0%, rgba(189, 195, 199, 0.4) 60%, transparent 70%);
    box-shadow: 0 0 30px rgba(236, 240, 241, 0.3), 0 0 60px rgba(236, 240, 241, 0.1);
}

.decor-moon-reflect {
    position: absolute;
    bottom: 5%;
    left: 14%;
    width: 6px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(236, 240, 241, 0.2), transparent);
    border-radius: 3px;
    animation: moonReflect 3s ease-in-out infinite;
}

@keyframes moonReflect {

    0%,
    100% {
        opacity: 0.5;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.9;
        transform: scaleY(1.2);
    }
}

.decor-jellyfish {
    position: absolute;
    font-size: 14px;
    opacity: 0.3;
    animation: jellyFloat 6s ease-in-out infinite;
}

@keyframes jellyFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.decor-bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    animation: bubbleRise 5s ease-in infinite;
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }

    100% {
        transform: translateY(-80px) scale(0.5);
        opacity: 0;
    }
}

/* --- ARCTIC: Icebergs, snowfall, aurora --- */
.decor-iceberg {
    position: absolute;
    bottom: -2px;
}

.decor-iceberg .berg-shape {
    clip-path: polygon(20% 0%, 0% 100%, 100% 100%, 80% 0%, 60% 15%, 40% 5%);
    background: linear-gradient(180deg, rgba(224, 247, 250, 0.6), rgba(178, 235, 242, 0.4), rgba(128, 222, 234, 0.3));
}

.berg-1 {
    right: 5%;
}

.berg-1 .berg-shape {
    width: 80px;
    height: 60px;
}

.berg-2 {
    right: 25%;
}

.berg-2 .berg-shape {
    width: 50px;
    height: 35px;
    opacity: 0.7;
}

.berg-3 {
    left: 8%;
}

.berg-3 .berg-shape {
    width: 60px;
    height: 45px;
    opacity: 0.8;
}

.decor-snowflake {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    animation: snowFall linear infinite;
}

@keyframes snowFall {
    0% {
        transform: translateY(-10px) translateX(0);
        opacity: 0.6;
    }

    100% {
        transform: translateY(300px) translateX(30px);
        opacity: 0;
    }
}

.decor-aurora {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(0, 255, 127, 0.06) 20%,
            rgba(0, 200, 200, 0.08) 35%,
            transparent 50%,
            rgba(138, 43, 226, 0.06) 65%,
            rgba(0, 255, 127, 0.04) 80%,
            transparent 100%);
    animation: auroraDance 8s ease-in-out infinite;
    filter: blur(8px);
}

@keyframes auroraDance {
    0% {
        transform: translateX(-20px) skewX(-2deg);
        opacity: 0.6;
    }

    33% {
        transform: translateX(15px) skewX(1deg);
        opacity: 1;
    }

    66% {
        transform: translateX(-10px) skewX(-1deg);
        opacity: 0.7;
    }

    100% {
        transform: translateX(-20px) skewX(-2deg);
        opacity: 0.6;
    }
}

/* --- CAVE: Stalactites, glowing crystals, mushrooms --- */
.decor-stalactite {
    position: absolute;
    top: 0;
    clip-path: polygon(30% 0%, 70% 0%, 55% 100%, 45% 100%);
    background: linear-gradient(180deg, rgba(60, 60, 80, 0.8), rgba(40, 40, 60, 0.6));
}

.decor-crystal {
    position: absolute;
    clip-path: polygon(50% 0%, 85% 40%, 70% 100%, 30% 100%, 15% 40%);
    animation: crystalGlow 3s ease-in-out infinite;
}

@keyframes crystalGlow {

    0%,
    100% {
        filter: brightness(1);
        opacity: 0.7;
    }

    50% {
        filter: brightness(1.5);
        opacity: 1;
    }
}

.decor-glow-mushroom {
    position: absolute;
    bottom: 0;
}

.decor-glow-mushroom .mush-cap {
    border-radius: 50% 50% 0 0;
    animation: mushGlow 4s ease-in-out infinite;
}

.decor-glow-mushroom .mush-stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    background: rgba(180, 180, 200, 0.3);
}

@keyframes mushGlow {

    0%,
    100% {
        box-shadow: 0 0 8px currentColor;
        opacity: 0.7;
    }

    50% {
        box-shadow: 0 0 20px currentColor;
        opacity: 1;
    }
}

.decor-cave-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    animation: caveSparkle 4s ease-in-out infinite;
}

@keyframes caveSparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* --- LAVA: Volcano, ember sparks, smoke --- */
.decor-volcano {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.decor-volcano .volcano-shape {
    clip-path: polygon(35% 0%, 65% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(180deg, rgba(60, 20, 10, 0.8), rgba(100, 40, 20, 0.7), rgba(50, 15, 5, 0.6));
}

.decor-volcano .volcano-crater {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.8), rgba(244, 67, 54, 0.4), transparent);
    animation: craterGlow 2s ease-in-out infinite;
}

@keyframes craterGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 87, 34, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 87, 34, 0.7);
    }
}

.decor-lava-rock {
    position: absolute;
    bottom: 0;
    border-radius: 30% 50% 40% 60%;
    background: linear-gradient(135deg, rgba(50, 20, 10, 0.7), rgba(80, 30, 15, 0.5));
}

.decor-ember {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ff6b35;
    animation: emberRise 3s ease-out infinite;
}

@keyframes emberRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-120px) translateX(var(--ember-x, 10px)) scale(0);
        opacity: 0;
    }
}

.decor-smoke {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 100, 100, 0.15);
    animation: smokeRise 5s ease-out infinite;
}

@keyframes smokeRise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100px) scale(2);
        opacity: 0;
    }
}

/* --- SKY/ANGKASA: Cloud ocean --- */
.decor-cloud-sea {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
}

.decor-cloud-layer {
    position: absolute;
    bottom: 0;
    left: -20%;
    right: -20%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1), transparent);
}

.cloud-layer-1 {
    height: 80px;
    bottom: -20px;
    animation: cloudLayerDrift 12s ease-in-out infinite;
}

.cloud-layer-2 {
    height: 60px;
    bottom: 5px;
    left: -30%;
    right: -10%;
    opacity: 0.7;
    animation: cloudLayerDrift 15s ease-in-out infinite reverse;
}

.cloud-layer-3 {
    height: 50px;
    bottom: 20px;
    left: -10%;
    right: -30%;
    opacity: 0.5;
    animation: cloudLayerDrift 10s ease-in-out infinite 2s;
}

@keyframes cloudLayerDrift {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(20px);
    }
}

.decor-cloud-puff {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1), transparent);
    animation: puffFloat 6s ease-in-out infinite;
}

@keyframes puffFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.decor-cloud-wisp {
    position: absolute;
    height: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    animation: wispDrift 20s linear infinite;
}

@keyframes wispDrift {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(calc(100vw + 100px));
    }
}

/* Stars */
.stars {
    position: absolute;
    inset: 0;
}

.twinkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    animation: twinkleAnim 3s ease-in-out infinite;
}

.t1 {
    top: 8%;
    left: 12%;
    animation-delay: 0s;
}

.t2 {
    top: 15%;
    left: 45%;
    animation-delay: 1s;
    width: 2px;
    height: 2px;
}

.t3 {
    top: 5%;
    left: 70%;
    animation-delay: 1.8s;
}

.t4 {
    top: 22%;
    left: 85%;
    animation-delay: 0.5s;
    width: 2px;
    height: 2px;
}

.t5 {
    top: 12%;
    left: 30%;
    animation-delay: 2.5s;
    width: 2px;
    height: 2px;
}

@keyframes twinkleAnim {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.sun {
    position: absolute;
    top: 10%;
    right: 12%;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: radial-gradient(circle, #fad390 0%, #f6b93b 40%, rgba(246, 185, 59, 0.2) 65%, transparent 75%);
    box-shadow: 0 0 40px rgba(246, 185, 59, 0.4), 0 0 80px rgba(246, 185, 59, 0.15);
    animation: sunGlow 4s ease-in-out infinite;
}

@keyframes sunGlow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(246, 185, 59, 0.4), 0 0 80px rgba(246, 185, 59, 0.15);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 60px rgba(246, 185, 59, 0.6), 0 0 100px rgba(246, 185, 59, 0.25);
        transform: scale(1.03);
    }
}

/* Clouds */
.clouds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 30px;
    height: 18px;
}

.cloud::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 20%;
    width: 50%;
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.cloud-1 {
    top: 18%;
    left: -20%;
    width: 100px;
    animation: cloudDrift 25s linear infinite;
}

.cloud-2 {
    top: 28%;
    left: -30%;
    width: 140px;
    animation: cloudDrift 35s linear infinite 8s;
}

.cloud-3 {
    top: 14%;
    left: -15%;
    width: 80px;
    animation: cloudDrift 30s linear infinite 15s;
}

@keyframes cloudDrift {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(100vw + 200px));
    }
}

/* ===== WEATHER LAYERS ===== */
.weather-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.weather-back {
    z-index: 3;
}

.weather-front {
    z-index: 6;
}

/* Mendung tint applied via JS to .weather-back */
.weather-layer.mendung-tint {
    background: rgba(44, 62, 80, 0.3);
    transition: background 1s ease;
}

/* Badai tint + lightning on back layer */
.weather-layer.badai-tint {
    background: rgba(15, 20, 25, 0.35);
    animation: lightning 12s ease infinite;
    transition: background 1s ease;
}

/* Individual raindrop */
.raindrop {
    position: absolute;
    width: 2.5px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(174, 194, 224, 0.8), rgba(255, 255, 255, 0));
    border-radius: 1px;
    animation: dropFall var(--drop-dur) linear infinite;
    animation-delay: var(--drop-delay);
    left: var(--drop-x);
    top: -10%;
    height: var(--drop-h);
    opacity: var(--drop-op);
}

@keyframes dropFall {
    0% {
        transform: translateY(-10vh) translateX(0);
    }

    100% {
        transform: translateY(120vh) translateX(60px);
    }
}

@keyframes stormDropFall {
    0% {
        transform: translateY(-10vh) translateX(0);
    }

    100% {
        transform: translateY(120vh) translateX(120px);
    }
}

@keyframes lightning {

    0%,
    93%,
    97%,
    100% {
        background-color: rgba(15, 20, 25, 0.35);
    }

    94% {
        background-color: rgba(180, 195, 210, 0.15);
    }

    95% {
        background-color: rgba(15, 20, 25, 0.35);
    }

    96% {
        background-color: rgba(160, 175, 195, 0.1);
    }
}

/* Rain Ripple on Water */
.rain-ripple {
    position: absolute;
    width: 20px;
    height: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: rippleAnim ease-out infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes rippleAnim {
    0% {
        transform: scale(0.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ===== BOAT + CHARACTER ===== */
.boat-container {
    position: absolute;
    bottom: 31%;
    left: 50%;
    transform: translateX(-60%);
    width: 55%;
    max-width: 240px;
    z-index: 5;
    animation: boatBob 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.boat-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

@keyframes boatBob {

    0%,
    100% {
        transform: translateX(-60%) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(-60%) translateY(-6px) rotate(0.8deg);
    }

    50% {
        transform: translateX(-60%) translateY(-2px) rotate(-0.5deg);
    }

    75% {
        transform: translateX(-60%) translateY(-8px) rotate(0.3deg);
    }
}

/* Character idle breathing */
.character {
    animation: charBreathe 3s ease-in-out infinite;
    transform-origin: 90px 128px;
}

@keyframes charBreathe {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1.5px);
    }
}

/* Arm + Rod animation */
.arm-rod {
    transform-origin: 100px 87px;
    animation: armIdle 4s ease-in-out infinite;
}

@keyframes armIdle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    30% {
        transform: rotate(-1.5deg);
    }

    70% {
        transform: rotate(1deg);
    }
}

/* Casting state */
.boat-container.casting .arm-rod {
    animation: armCast 0.6s ease-out forwards;
}

@keyframes armCast {
    0% {
        transform: rotate(0deg);
    }

    40% {
        transform: rotate(-20deg);
    }

    100% {
        transform: rotate(-8deg);
    }
}

/* Waiting state - gentle rod sway */
.boat-container.waiting .arm-rod {
    animation: armWait 2s ease-in-out infinite;
}

@keyframes armWait {

    0%,
    100% {
        transform: rotate(-8deg);
    }

    50% {
        transform: rotate(-5deg);
    }
}

/* Bite state - rod jerks */
.boat-container.bite .arm-rod {
    animation: armBite 0.25s ease-in-out infinite;
}

@keyframes armBite {

    0%,
    100% {
        transform: rotate(-8deg);
    }

    50% {
        transform: rotate(-18deg);
    }
}

/* Reeling state */
.boat-container.reeling .arm-rod {
    animation: armReel 0.3s ease-in-out infinite;
}

@keyframes armReel {

    0%,
    100% {
        transform: rotate(-8deg);
    }

    50% {
        transform: rotate(-3deg);
    }
}

/* Bite — character surprise expression */
.boat-container.bite .character {
    animation: charSurprise 0.3s ease-in-out infinite;
}

@keyframes charSurprise {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* SVG fishing line */
.svg-fishing-line {
    transition: opacity 0.4s ease;
}

/* SVG bobber */
.svg-bobber-g {
    transition: opacity 0.4s ease;
}

.boat-container.bite .svg-bobber-g {
    animation: svgBobberBite 0.3s ease-in-out infinite;
}

@keyframes svgBobberBite {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* Splash particles */
.splash-particles {
    position: absolute;
    bottom: 0;
    right: -10%;
    width: 60px;
    height: 40px;
    pointer-events: none;
}

.splash-drop {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: splashDrop 0.6s ease-out forwards;
}

@keyframes splashDrop {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}

/* ===== BOAT UPGRADES VISUAL ===== */
/* Tier 2 = fiber boat */
.boat-container.boat-fiber #hullPath {
    fill: #5d4e37;
}

.boat-container.boat-fiber #hullPath+path {
    fill: url(#hullGrad);
}

/* Tier 3 = metal boat */
.boat-container.boat-metal #hullPath {
    fill: #636e72;
}

/* Tier 4 = speedboat */
.boat-container.boat-speed #hullPath {
    fill: #2d3436;
}

/* Water */
.water {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, var(--water-surface) 0%, var(--water-mid) 30%, var(--water-deep) 100%);
    transition: background 1.5s ease;
}

/* Shader-like surface shine */
.water::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    right: -50%;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
    animation: surfaceShimmer 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

/* Light rays through water */
.water::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(175deg, rgba(255, 255, 255, 0.06) 0%, transparent 30%),
        linear-gradient(185deg, rgba(255, 255, 255, 0.04) 0%, transparent 25%),
        linear-gradient(170deg, transparent 50%, rgba(255, 255, 255, 0.03) 70%, transparent 90%);
    animation: lightRays 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes surfaceShimmer {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(30px);
    }
}

@keyframes lightRays {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.wave {
    position: absolute;
    width: 400%;
    left: -100%;
    height: 25px;
    border-radius: 50% 50% 0 0;
    z-index: 2;
    transform-origin: bottom center;
}

.wave-0 {
    top: -12px;
    height: 35px;
    background: var(--water-surface);
    box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.2);
    animation: waveDrift 16s ease-in-out infinite alternate;
    z-index: 1;
}

.wave-1 {
    top: -8px;
    background: linear-gradient(90deg,
            transparent 0%, rgba(255, 255, 255, 0.35) 10%, transparent 20%,
            rgba(255, 255, 255, 0.25) 30%, transparent 40%,
            rgba(255, 255, 255, 0.3) 55%, transparent 65%,
            rgba(255, 255, 255, 0.2) 80%, transparent 100%);
    box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.15);
    animation: waveDrift 14s ease-in-out infinite;
}

.wave-2 {
    top: 8px;
    background: linear-gradient(90deg,
            transparent 0%, rgba(255, 255, 255, 0.25) 15%, transparent 30%,
            rgba(255, 255, 255, 0.15) 50%, transparent 65%,
            rgba(255, 255, 255, 0.2) 85%, transparent 100%);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
    animation: waveDrift 18s ease-in-out infinite reverse;
}

.wave-3 {
    top: 22px;
    background: linear-gradient(90deg,
            transparent 0%, rgba(255, 255, 255, 0.15) 20%, transparent 40%,
            rgba(255, 255, 255, 0.1) 60%, transparent 80%,
            rgba(255, 255, 255, 0.15) 90%, transparent 100%);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.05);
    animation: waveDrift2 22s ease-in-out infinite;
}

.wave-4 {
    top: 35px;
    background: linear-gradient(90deg,
            transparent 0%, rgba(255, 255, 255, 0.08) 25%, transparent 50%,
            rgba(255, 255, 255, 0.08) 75%, transparent 100%);
    animation: waveDrift2 26s ease-in-out infinite reverse;
}

@keyframes waveDrift {
    0% {
        transform: translateX(0) scaleY(1);
    }

    25% {
        transform: translateX(40px) scaleY(1.3);
    }

    50% {
        transform: translateX(80px) scaleY(0.8);
    }

    75% {
        transform: translateX(40px) scaleY(1.2);
    }

    100% {
        transform: translateX(0) scaleY(1);
    }
}

@keyframes waveDrift2 {
    0% {
        transform: translateX(0) scaleY(1);
    }

    33% {
        transform: translateX(-50px) scaleY(1.4);
    }

    66% {
        transform: translateX(30px) scaleY(0.7);
    }

    100% {
        transform: translateX(0) scaleY(1);
    }
}

/* Underwater fish silhouettes */
.underwater-fish {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
}

/* uf1 and uf3 swim right */
.uf1 {
    top: 30%;
    left: -30px;
    animation: swimRight 14s linear infinite;
    font-size: 1rem;
}

/* uf2 swims LEFT (from right side) */
.uf2 {
    top: 55%;
    right: -30px;
    animation: swimLeft 18s linear infinite;
    animation-delay: 5s;
    font-size: 1.4rem;
}

.uf3 {
    top: 75%;
    left: -30px;
    animation: swimRight 22s linear infinite;
    animation-delay: 10s;
    font-size: 0.9rem;
}

@keyframes swimRight {
    0% {
        transform: translateX(0) scaleX(-1);
        opacity: 0;
    }

    5% {
        opacity: 0.18;
    }

    50% {
        opacity: 0.12;
    }

    90% {
        opacity: 0.18;
    }

    100% {
        transform: translateX(calc(100vw + 60px)) scaleX(-1);
        opacity: 0;
    }
}

@keyframes swimLeft {
    0% {
        transform: translateX(0) scaleX(1);
        opacity: 0;
    }

    5% {
        opacity: 0.18;
    }

    50% {
        opacity: 0.12;
    }

    90% {
        opacity: 0.18;
    }

    100% {
        transform: translateX(calc(-100vw - 60px)) scaleX(1);
        opacity: 0;
    }
}

/* Splash effect on catch */
.splash {
    position: absolute;
    width: 60px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.5), transparent);
    animation: splashAnim 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes splashAnim {
    0% {
        transform: scale(0.3);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ===== FISHING CONTROLS ===== */
.fishing-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 20, 40, 0.2) 20%, rgba(10, 20, 40, 0.6) 100%);
    z-index: 10;
}

.fishing-status {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    min-height: 28px;
}

/* ===== FISH HP BAR ===== */
.fish-hp-bar {
    position: absolute;
    bottom: 100%;
    margin-bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 340px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    height: 0;
    overflow: hidden;
    background: rgba(10, 20, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    z-index: 20;
    transition: opacity 0.15s ease;
}

.fish-hp-bar.active {
    display: flex;
    height: auto;
    padding: 12px 16px;
    opacity: 1;
    animation: hpBarSlideIn 0.3s ease-out forwards;
}

@keyframes hpBarSlideIn {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.fish-hp-bar.shake {
    animation: hpBarShake 0.2s ease-in-out;
}

@keyframes hpBarShake {

    0%,
    100% {
        transform: translateX(-50%);
    }

    25% {
        transform: translateX(calc(-50% - 4px));
    }

    75% {
        transform: translateX(calc(-50% + 4px));
    }
}

.fish-hp-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.fish-hp-icon {
    font-size: 1.3rem;
}

.fish-hp-name {
    flex: 1;
    color: var(--text-primary);
}

.fish-hp-weight {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 8px;
}

.fish-hp-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.fish-hp-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 5px;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}

.fish-hp-tap-hint {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold);
    animation: tapHintPulse 0.8s ease-in-out infinite;
    letter-spacing: 1px;
}

@keyframes tapHintPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.wait-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    height: 0;
    visibility: hidden;
}

.wait-indicator.active {
    visibility: hidden;
    display: none;
}

.wait-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border-radius: 50%;
    background: var(--water-light);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.wait-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.wait-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.btn-cast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    background: var(--btn-primary);
    color: #fff;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(18, 137, 167, 0.4);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-cast::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    border-radius: inherit;
}

.btn-cast:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(18, 137, 167, 0.3);
}

.btn-cast:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-cast-icon {
    font-size: 1.3rem;
}

.equipment-preview {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.equip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
}

.equip-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.equip-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--water-light);
}

/* Fishing button row */
.fishing-btn-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Auto fish button */
.btn-auto-fish {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 16px;
    border: 2px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-bg);
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-auto-fish .auto-fish-icon {
    font-size: 1.2rem;
}

.btn-auto-fish.active {
    border-color: rgba(46, 204, 113, 0.6);
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
}

.btn-auto-fish:active {
    transform: scale(0.92);
}

/* Item images in shop */
.item-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 6px;
}

/* Bait quantity badge in shop */
.bait-qty-badge {
    display: inline-block;
    background: rgba(18, 137, 167, 0.25);
    color: var(--water-light);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 6px;
}

/* Bait count on fishing screen */
.bait-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(246, 185, 59, 0.15);
    padding: 1px 6px;
    border-radius: 8px;
}

/* Bait actions in shop */
.bait-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 80px;
}

/* ===== INVENTORY ===== */
.inventory-grid {
    padding: 8px 16px 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fish-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fish-card-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xs);
    flex-shrink: 0;
}

.fish-card-info {
    flex: 1;
    min-width: 0;
}

.fish-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fish-card-meta {
    display: flex;
    gap: 10px;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.fish-card-price {
    font-weight: 700;
    color: var(--gold);
    font-size: 0.9rem;
    white-space: nowrap;
}

.rarity-common .fish-card-name {
    color: var(--rarity-common);
}

.rarity-uncommon .fish-card-name {
    color: var(--rarity-uncommon);
}

.rarity-rare .fish-card-name {
    color: var(--rarity-rare);
}

.rarity-epic .fish-card-name {
    color: var(--rarity-epic);
}

.rarity-legendary .fish-card-name {
    color: var(--rarity-legendary);
}

.rarity-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rarity-tag.common {
    background: rgba(170, 178, 192, 0.2);
    color: var(--rarity-common);
}

.rarity-tag.uncommon {
    background: rgba(46, 204, 113, 0.2);
    color: var(--rarity-uncommon);
}

.rarity-tag.rare {
    background: rgba(52, 152, 219, 0.2);
    color: var(--rarity-rare);
}

.rarity-tag.epic {
    background: rgba(155, 89, 182, 0.2);
    color: var(--rarity-epic);
}

.rarity-tag.legendary {
    background: rgba(243, 156, 18, 0.2);
    color: var(--rarity-legendary);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.95rem;
}

.btn-sell-all {
    position: fixed;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 440px;
    width: calc(100% - 32px);
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--btn-sell);
    color: #fff;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(246, 185, 59, 0.35);
    transition: all var(--transition);
    z-index: 15;
}

.btn-sell-all:active {
    transform: translateX(-50%) scale(0.97);
}

.sell-total::before {
    content: '🪙 ';
}

/* ===== SHOP ===== */
.shop-sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 20, 40, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.shop-tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px;
}

.shop-tab {
    flex: 1;
    padding: 10px 4px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.shop-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.shop-tab.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.shop-list {
    padding: 0 16px 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition);
}

.shop-item.owned {
    border-color: rgba(46, 204, 113, 0.3);
    background: rgba(46, 204, 113, 0.05);
}

.shop-item.equipped {
    border-color: rgba(18, 137, 167, 0.5);
    background: rgba(18, 137, 167, 0.1);
    box-shadow: 0 0 20px rgba(18, 137, 167, 0.1);
}

.shop-item-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.shop-item-info {
    flex: 1;
    min-width: 0;
}

.shop-item-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.shop-item-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.shop-item-stats {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.stat-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-weight: 600;
}

.btn-shop {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-xs);
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-shop.buy {
    background: var(--btn-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(18, 137, 167, 0.3);
}

.btn-shop.buy:active {
    transform: scale(0.95);
}

.btn-shop.equip {
    background: rgba(46, 204, 113, 0.2);
    color: var(--rarity-uncommon);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.btn-shop.equip:active {
    transform: scale(0.95);
}

.btn-shop.equipped-btn {
    background: rgba(18, 137, 167, 0.15);
    color: var(--water-light);
    border: 1px solid rgba(18, 137, 167, 0.3);
    cursor: default;
}

.btn-shop.locked {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    cursor: not-allowed;
}

/* ===== MAP ===== */
.map-list {
    padding: 0 16px 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-card {
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.map-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
    border-radius: inherit;
    pointer-events: none;
}

.map-card.active-location {
    border-color: rgba(18, 137, 167, 0.6);
    box-shadow: 0 0 30px rgba(18, 137, 167, 0.15);
}

.map-card.locked {
    opacity: 0.7;
    cursor: default;
}

.map-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.map-card-icon {
    font-size: 2rem;
}

.map-card-title {
    font-weight: 800;
    font-size: 1.1rem;
}

.map-card-tag {
    margin-left: auto;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.map-card-tag.current {
    background: rgba(18, 137, 167, 0.25);
    color: var(--water-light);
}

.map-card-tag.locked-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
}

.map-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.map-card-fish {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.map-fish-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.map-card-unlock {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    cursor: pointer;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: rgba(246, 185, 59, 0.1);
    border: 1px solid rgba(246, 185, 59, 0.3);
    text-align: center;
    transition: all var(--transition);
    pointer-events: auto;
}

.map-card-unlock:active {
    transform: scale(0.97);
    background: rgba(246, 185, 59, 0.2);
}

/* ===== CATCH MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: linear-gradient(180deg, #1a2744, #0f1b2d);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px 24px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.catch-glow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

.catch-glow.common {
    background: radial-gradient(circle, var(--rarity-common), transparent 70%);
}

.catch-glow.uncommon {
    background: radial-gradient(circle, var(--rarity-uncommon), transparent 70%);
}

.catch-glow.rare {
    background: radial-gradient(circle, var(--rarity-rare), transparent 70%);
}

.catch-glow.epic {
    background: radial-gradient(circle, var(--rarity-epic), transparent 70%);
}

.catch-glow.legendary {
    background: radial-gradient(circle, var(--rarity-legendary), transparent 70%);
    opacity: 0.5;
    animation: legendaryPulse 1.5s ease-in-out infinite;
}

@keyframes legendaryPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.7;
    }
}

.catch-fish-icon {
    font-size: 4rem;
    margin-bottom: 8px;
    position: relative;
    animation: fishBounce 0.6s ease;
}

@keyframes fishBounce {
    0% {
        transform: scale(0) rotate(-20deg);
    }

    60% {
        transform: scale(1.2) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

.catch-card h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.catch-name {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.catch-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.catch-rarity {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.catch-weight,
.catch-price {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.catch-price {
    color: var(--gold);
}

.btn-modal {
    margin-top: 24px;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    background: var(--btn-primary);
    color: #fff;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(18, 137, 167, 0.4);
    transition: all var(--transition);
}

.btn-modal:active {
    transform: scale(0.95);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    background: rgba(10, 20, 40, 0.9);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== BOTTOM NAV ===== */
#bottomNav {
    display: flex;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 20;
    flex-shrink: 0;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    border: none;
    background: none;
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.nav-btn.active {
    color: var(--water-light);
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--water-light);
    border-radius: 0 0 2px 2px;
}

.nav-icon {
    font-size: 1.4rem;
}

.nav-label {
    letter-spacing: 0.3px;
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 20%;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== UTILITY ===== */
.shake {
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* Stars for legendary */
.stars-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    animation: starFloat 2s ease-in-out infinite;
}

@keyframes starFloat {

    0%,
    100% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    50% {
        transform: translateY(-30px) scale(1);
        opacity: 1;
    }
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(10, 20, 40, 0.92);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
    pointer-events: none;
    opacity: 0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== BOTTOM NAV ===== */
#bottomNav {
    display: flex;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 20;
    flex-shrink: 0;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    border: none;
    background: none;
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.nav-btn.active {
    color: var(--water-light);
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--water-light);
    border-radius: 0 0 2px 2px;
}

.nav-icon {
    font-size: 1.4rem;
}

.nav-label {
    letter-spacing: 0.3px;
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 20%;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== UTILITY ===== */
.shake {
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* ===== COSTUME PICKER ===== */
/* ===== MUTATION BADGES ===== */
.mutation-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.7rem;
    animation: mutGlow 1.5s ease-in-out infinite;
}

.mutation-shiny {
    text-shadow: 0 0 6px #f1c40f;
}

.mutation-giant {
    text-shadow: 0 0 6px #e74c3c;
}

.mutation-golden {
    text-shadow: 0 0 8px #f39c12;
}

.mutation-prismatic {
    text-shadow: 0 0 10px #8e44ad;
}

@keyframes mutGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ===== FISH CARD ACTIONS ===== */
.fish-card .fish-card-icon {
    position: relative;
}

.fish-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.btn-lock {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-dim);
}

.btn-lock:active {
    transform: scale(0.9);
}

.btn-lock.locked {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.fish-card.locked {
    border-color: rgba(231, 76, 60, 0.3) !important;
    box-shadow: inset 0 0 0 1px rgba(231, 76, 60, 0.1);
}

/* ===== ENCHANT SHOP ===== */
.enchant-header {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.enchant-stone-count {
    font-size: 1rem;
    color: var(--text-primary);
}

.enchant-stone-count strong {
    color: var(--gold);
    font-size: 1.2rem;
}

.enchant-buff-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2ecc71;
    margin-top: 4px;
}

.enchant-buff-desc {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.enchant-status-none {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
    font-style: italic;
}

.shop-item.enchanted {
    border-color: rgba(46, 204, 113, 0.3);
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.1);
}

.enchant-legend {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
}

.enchant-legend-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enchant-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.8rem;
}

.enchant-legend-name {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 90px;
}

.enchant-legend-desc {
    color: var(--text-dim);
    font-size: 0.72rem;
}

/* ===== LOGIN REWARD MODAL ===== */
.login-reward-card {
    text-align: center;
}

.login-reward-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.login-day-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 10px 4px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.login-day-card.today {
    border-color: var(--gold);
    background: rgba(246, 185, 59, 0.12);
    box-shadow: 0 0 16px rgba(246, 185, 59, 0.25);
    animation: loginPulse 2s ease-in-out infinite;
}

.login-day-card.claimed {
    opacity: 0.45;
    border-color: rgba(46, 204, 113, 0.3);
}

.login-day-card.locked {
    opacity: 0.3;
}

.login-day-num {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.login-day-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.login-day-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-primary);
}

.login-today-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--gold);
    color: #0f172a;
    font-size: 0.5rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
}

.login-claimed-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
}

@keyframes loginPulse {

    0%,
    100% {
        box-shadow: 0 0 16px rgba(246, 185, 59, 0.25);
    }

    50% {
        box-shadow: 0 0 24px rgba(246, 185, 59, 0.45);
    }
}

/* ===== MYTHICAL RARITY ===== */
.rarity-tag.mythical {
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.3), rgba(175, 82, 222, 0.3), rgba(90, 200, 250, 0.3));
    color: #ff2d55;
    animation: mythicalShimmer 3s ease-in-out infinite;
    background-size: 200% 200%;
}

.rarity-mythical .fish-card-name {
    color: #ff2d55;
    text-shadow: 0 0 8px rgba(255, 45, 85, 0.4);
}

.fish-card.rarity-mythical {
    border-color: rgba(255, 45, 85, 0.5);
    box-shadow: 0 0 16px rgba(255, 45, 85, 0.15);
}

.kodex-card.rarity-border-mythical {
    border-color: rgba(255, 45, 85, 0.5);
    box-shadow: 0 0 12px rgba(255, 45, 85, 0.2);
}

@keyframes mythicalShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== LEADERBOARD ===== */
.leaderboard-list {
    padding: 8px 16px 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lb-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.lb-card.lb-top {
    border-color: rgba(246, 185, 59, 0.3);
    background: rgba(246, 185, 59, 0.05);
}

.lb-card.lb-me {
    border-color: rgba(52, 152, 219, 0.5);
    background: rgba(52, 152, 219, 0.08);
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.15);
}

.lb-rank {
    font-size: 1.2rem;
    font-weight: 800;
    min-width: 36px;
    text-align: center;
    color: var(--text-secondary);
}

.lb-card.lb-top .lb-rank {
    font-size: 1.4rem;
}

.lb-info {
    flex: 1;
}

.lb-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.lb-stats {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.lb-you-badge {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-refresh-lb {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--transition);
}

.btn-refresh-lb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== CUSTOMIZE BUTTON ===== */
.btn-customize-float {
    position: absolute;
    top: 8px;
    right: 16px;
    background: rgba(10, 20, 40, 0.85);
    border: 1px solid rgba(155, 89, 182, 0.5);
    color: #c39bd3;
    padding: 8px 12px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* ===== LEADERBOARD FLOAT BUTTON ===== */
.btn-lb-float {
    position: absolute;
    top: 52px;
    right: 16px;
    background: rgba(10, 20, 40, 0.85);
    border: 1px solid rgba(246, 185, 59, 0.5);
    color: var(--gold);
    padding: 8px 12px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.lb-modal-card {
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
}

/* ===== TITLE MODAL ===== */
.title-modal-card {
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
}

.title-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition);
}

.title-card:hover:not(.locked) {
    border-color: rgba(155, 89, 182, 0.4);
    background: rgba(155, 89, 182, 0.08);
}

.title-card.equipped {
    border-color: rgba(46, 204, 113, 0.5);
    background: rgba(46, 204, 113, 0.08);
}

.title-card.locked {
    opacity: 0.4;
    cursor: default;
}

.title-card-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.title-card-info {
    flex: 1;
}

.title-card-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.title-card-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.title-card-status {
    flex-shrink: 0;
}

.title-equipped-badge {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.title-equip-btn {
    background: rgba(155, 89, 182, 0.2);
    color: #c39bd3;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
}

/* Responsive */
@media (min-width: 481px) {
    .water-scene {
        min-height: 360px;
    }

    .fishing-status {
        font-size: 1.15rem;
    }
}

/* ===== CRAFTING ===== */
.btn-craft-float {
    position: absolute;
    bottom: 310px;
    right: 20px;
    z-index: 10;
    background: #2c3e50;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
    transition: all var(--transition);
    border: 2px solid #fff;
    cursor: pointer;
}

.btn-craft-float:active {
    transform: scale(0.9);
}

/* ===== LUCKY SPIN ===== */
.btn-spin-float {
    position: absolute;
    bottom: 250px;
    right: 20px;
    z-index: 10;
    background: #9b59b6;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.4);
    transition: all var(--transition);
    border: 2px solid #fff;
    cursor: pointer;
}

.btn-spin-float:active {
    transform: scale(0.9);
}

.btn-spin-float .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #1e293b;
}

.spin-modal-card {
    text-align: center;
}

.spin-wheel-container {
    position: relative;
    width: 280px;
    height: 120px;
    margin: 20px auto;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.spin-marker {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    color: #e74c3c;
    font-size: 1.8rem;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.spin-wheel {
    display: flex;
    height: 100%;
}

.spin-slot {
    flex: 0 0 140px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 4px solid transparent;
}

.spin-slot.won {
    background: rgba(46, 204, 113, 0.2);
    border-bottom: 4px solid #2ecc71;
}

.spin-slot .spin-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.spin-slot .spin-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.pulse-anim {
    animation: loginPulse 1.5s infinite alternate;
}

/* ===== BOSS ENCOUNTER ===== */
body.boss-encounter {
    animation: bossShake 0.5s ease-in-out infinite alternate;
}

body.boss-encounter #screenFishing {
    background: linear-gradient(to bottom, rgba(231, 76, 60, 0.4), rgba(192, 57, 43, 0.6)) !important;
}

body.boss-encounter .water-scene {
    filter: sepia(100%) hue-rotate(300deg) saturate(200%);
}

body.boss-encounter .fish-hp-bar {
    border: 2px solid #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
}

body.boss-encounter .fish-hp-name {
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    font-weight: 800;
}

@keyframes bossShake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    20% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    40% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    60% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    80% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    100% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }
}

/* ===== NEW V9 FEATURES CSS ===== */

/* Prestige Button */
.btn-prestige {
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
    transition: all var(--transition);
}

.btn-prestige:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.6);
}

/* Hut Trophy Slots */
.trophy-slot {
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-sm);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 120px;
}

.trophy-slot.empty:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.trophy-slot.filled {
    border: 1px solid var(--card-border);
    cursor: default;
}

.trophy-add-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 5px;
}

.trophy-lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.trophy-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.trophy-name {
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 3px;
}

.trophy-weight {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.trophy-remove {
    font-size: 0.75rem;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.trophy-remove:hover {
    background: #e74c3c;
    color: white;
}

/* ===== ACTIVITY LOG ===== */
.activity-log {
    max-height: 70px;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 4px 12px 0;
    margin-top: 4px;
}

.activity-log::-webkit-scrollbar {
    display: none;
}

.log-entry {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 1px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: logFadeIn 0.3s ease;
}

@keyframes logFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FLOAT BUTTONS (Boss, Pet, Expedition) ===== */
.btn-boss-float,
.btn-pet-float,
.btn-exped-float {
    position: absolute;
    right: 16px;
    background: rgba(10, 20, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1rem;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all var(--transition);
}

.btn-boss-float {
    top: 100px;
    border-color: rgba(231, 76, 60, 0.4);
}

.btn-pet-float {
    top: 145px;
    border-color: rgba(241, 196, 15, 0.4);
}

.btn-exped-float {
    top: 190px;
    border-color: rgba(52, 152, 219, 0.4);
}

.btn-boss-float:hover {
    background: rgba(231, 76, 60, 0.3);
}

.btn-pet-float:hover {
    background: rgba(241, 196, 15, 0.2);
}

.btn-exped-float:hover {
    background: rgba(52, 152, 219, 0.3);
}

/* ===== BOSS HP BAR ===== */
.boss-hp-track {
    width: 100%;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.boss-hp-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #e74c3c, #e67e22);
    border-radius: 9px;
    transition: width 0.15s ease;
}

.boss-hp-track.shake {
    animation: bossShake 0.1s ease;
}

@keyframes bossShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

/* ===== PET DISPLAY ===== */
.pet-display {
    position: absolute;
    bottom: 36%;
    left: 30%;
    font-size: 1.4rem;
    z-index: 6;
    animation: petBob 2s ease-in-out infinite;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

@keyframes petBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ===== EXPEDITION STAGE DOTS ===== */
.stage-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stage-dot.done {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.stage-dot.current {
    background: rgba(241, 196, 15, 0.2);
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.15);
}

/* Boss modal card */
.boss-modal-card {
    text-align: center;
}

/* Equipped btn styling */
.equipped-btn {
    background: rgba(46, 204, 113, 0.2) !important;
    border-color: rgba(46, 204, 113, 0.4) !important;
    color: #2ecc71 !important;
}