@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces.woff2") format("woff2");
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #eefaf7;
    --muted: #a8c8c7;
    --muted-2: #749a9c;
    --line: rgba(194, 244, 235, 0.14);
    --line-strong: rgba(194, 244, 235, 0.26);
    --glass: rgba(6, 30, 39, 0.68);
    --glass-strong: rgba(6, 28, 37, 0.9);
    --mint: #65e8c9;
    --teal: #2cb9c8;
    --gold: #f6c96a;
    --coral: #ff8f75;
    --danger: #ff7285;
    --violet: #c49cff;
    --deep: #04141c;
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --display: "Fraunces", Georgia, serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    --safe: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--deep); color: var(--ink); font-family: var(--font); overflow: hidden; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
::selection { background: rgba(101, 232, 201, 0.28); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.icon { width: 1em; height: 1em; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.fish-svg { width: 100%; height: auto; display: block; overflow: visible; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.is-hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

#app { position: relative; width: 100vw; height: 100dvh; overflow: hidden; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
.scene-vignette {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        radial-gradient(110% 90% at 50% 45%, transparent 55%, rgba(2, 12, 16, 0.58) 100%),
        linear-gradient(180deg, rgba(2, 12, 16, 0.3) 0%, transparent 18%, transparent 74%, rgba(2, 12, 16, 0.45) 100%);
}
.scene-grain {
    position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0.055;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

/* ============================= Common UI ============================= */
.brand { display: inline-flex; align-items: center; gap: 11px; pointer-events: auto; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(145deg, var(--mint), #3bc7c5); color: #05252c;
    box-shadow: 0 10px 26px rgba(62, 215, 190, 0.28);
}
.brand-mark .icon { width: 22px; height: 22px; stroke-width: 2; }
.brand-text { display: flex; flex-direction: column; line-height: 1.03; }
.brand-text strong { font-size: 17px; letter-spacing: -0.03em; }
.brand-text small { font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand-light .brand-text small { color: rgba(233, 253, 247, 0.66); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
    background: transparent; font-size: 12px; font-weight: 700; line-height: 1.2;
    white-space: nowrap; transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { color: #05282d; background: linear-gradient(135deg, var(--mint), #46d0ce); box-shadow: 0 14px 34px rgba(66, 214, 190, 0.26); }
.btn-primary:hover { box-shadow: 0 18px 40px rgba(66, 214, 190, 0.36); }
.btn-gold { color: #3a2906; background: linear-gradient(135deg, #ffe19a, var(--gold) 56%, #eab34f); box-shadow: 0 16px 38px rgba(246, 201, 106, 0.23); }
.btn-glass { color: #f1fffb; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.14); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.025); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(194, 244, 235, 0.38); }
.btn-dark { background: rgba(3, 20, 27, 0.62); border-color: var(--line); color: var(--ink); }
.btn-danger { color: #ffe9e9; background: rgba(255, 114, 133, 0.14); border-color: rgba(255, 114, 133, 0.3); }
.btn-sm { padding: 8px 12px; border-radius: 9px; font-size: 10px; }
.btn-lg { padding: 14px 22px; font-size: 13px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-hero { padding: 16px 26px; border-radius: 15px; font-size: 14px; }
.btn-hero .icon { width: 19px; height: 19px; }
kbd { font: 700 8px/1 var(--font); padding: 3px 5px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.16); color: inherit; opacity: 0.7; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 25, 32, 0.55); color: var(--muted); transition: 0.2s; flex: 0 0 auto; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }
.icon-btn .icon { width: 17px; height: 17px; }
.hidden { display: none !important; }

/* ============================= Loading ============================= */
.loading-screen {
    position: absolute; inset: 0; z-index: 600; display: flex; flex-direction: column;
    align-items: center; justify-content: center; background:
        radial-gradient(800px 500px at 50% 40%, rgba(18, 86, 86, 0.5), transparent 65%),
        #04141c;
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loading-screen.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: #05242b; background: linear-gradient(145deg, var(--mint), #38c6c8); box-shadow: 0 0 0 12px rgba(101, 232, 201, 0.06), 0 20px 50px rgba(0, 0, 0, 0.35); }
.loader-mark .icon { width: 28px; height: 28px; stroke-width: 2; }
.loader-title { margin-top: 18px; font-family: var(--display); font-size: 29px; font-weight: 600; letter-spacing: -0.03em; }
.loader-title span { color: var(--mint); font-style: italic; }
.loader-bar { width: 190px; height: 3px; border-radius: 10px; margin-top: 18px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.loader-bar i { display: block; width: 6%; height: 100%; background: linear-gradient(90deg, var(--mint), var(--gold)); border-radius: inherit; transition: width 0.35s var(--ease); }
.loader-copy { margin-top: 10px; color: var(--muted-2); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ============================= Landing ============================= */
.landing {
    position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column;
    padding: 26px 34px 22px; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(3, 18, 24, 0.9) 0%, rgba(3, 18, 24, 0.52) 38%, rgba(3, 18, 24, 0.05) 64%, rgba(3, 18, 24, 0.32) 100%),
        linear-gradient(180deg, rgba(3, 18, 24, 0.55) 0%, transparent 24%, transparent 70%, rgba(3, 18, 24, 0.65) 100%);
    transition: opacity 0.75s var(--ease), visibility 0.75s;
}
.landing.done { opacity: 0; visibility: hidden; pointer-events: none; }
.landing-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.demo-ribbon {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px;
    border: 1px solid rgba(246, 201, 106, 0.25); background: rgba(246, 201, 106, 0.08);
    color: #f9d992; font-size: 8px; font-weight: 800; letter-spacing: 0.13em;
}
.demo-ribbon i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(246, 201, 106, 0.1); }
.landing-main {
    flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
    padding-bottom: clamp(26px, 7vh, 92px); max-width: 1440px; width: 100%; margin: 0 auto;
}
.landing-copy { max-width: 620px; pointer-events: auto; }
.landing-kicker {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 20px;
    border: 1px solid rgba(101, 232, 201, 0.24); background: rgba(101, 232, 201, 0.08);
    color: #a4f6df; font-size: 9px; font-weight: 700; letter-spacing: 0.02em;
}
.landing-kicker .icon { width: 12px; height: 12px; }
.landing-copy h1 {
    margin: 16px 0 14px; font-family: var(--display); font-weight: 600;
    font-size: clamp(50px, 6.2vw, 94px); line-height: 0.92; letter-spacing: -0.055em;
    text-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}
.landing-copy h1 em { font-style: italic; color: var(--mint); }
.landing-copy > p { max-width: 520px; color: #c0d9d6; font-size: 13px; line-height: 1.7; }
.landing-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 23px; }
.landing-features { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 27px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.11); }
.landing-features span { color: var(--muted); font-size: 9px; letter-spacing: 0.03em; }
.landing-features b { display: block; font-family: var(--display); color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1; margin-bottom: 3px; }
.landing-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: auto; }
.glass-note {
    display: flex; gap: 10px; max-width: 295px; padding: 13px 14px; border-radius: 12px;
    border: 1px solid var(--line); background: rgba(4, 24, 31, 0.54); backdrop-filter: blur(14px);
}
.glass-note-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(246, 201, 106, 0.1); color: var(--gold); flex: 0 0 auto; }
.glass-note-icon .icon { width: 14px; height: 14px; }
.glass-note strong { display: block; font-size: 10px; margin-bottom: 3px; }
.glass-note p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.landing-scroll-hint { display: flex; align-items: center; gap: 7px; color: rgba(220, 245, 240, 0.55); font-size: 8.5px; letter-spacing: 0.03em; }
.landing-scroll-hint span { width: 18px; height: 1px; background: rgba(220, 245, 240, 0.35); }
.landing-bottom { display: flex; justify-content: space-between; gap: 12px; color: rgba(201, 230, 226, 0.44); font-size: 8px; letter-spacing: 0.03em; }
.landing-keys { display: flex; align-items: center; gap: 6px; }
.landing-keys kbd { font-size: 7px; }

/* ============================= HUD ============================= */
.hud {
    position: absolute; left: 0; right: 0; top: 0; z-index: 30; display: flex;
    justify-content: space-between; align-items: flex-start; gap: 12px;
    padding: 18px 22px 0; pointer-events: none;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.hud.is-hidden { transform: translateY(-12px); }
.hud-left, .hud-right { display: flex; align-items: center; gap: 8px; pointer-events: auto; flex-wrap: wrap; }
.hud-left { align-items: flex-start; flex-direction: column; gap: 9px; }
.hud-right { justify-content: flex-end; }
.location-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 9px;
    border: 1px solid var(--line); background: rgba(4, 23, 30, 0.86); color: #d9f4ee;
    font-size: 9px; font-weight: 600; backdrop-filter: blur(12px); transition: 0.2s;
}
.location-pill:hover { border-color: var(--line-strong); background: rgba(8, 38, 46, 0.8); }
.location-pill .icon { width: 12px; height: 12px; color: var(--muted); }
.pin-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(101, 232, 201, 0.13); }
.resource-pill {
    display: inline-flex; align-items: center; gap: 4px; height: 35px; padding: 0 10px;
    border-radius: 10px; border: 1px solid var(--line); background: rgba(4, 23, 30, 0.86);
    backdrop-filter: blur(12px); font-size: 10px; font-weight: 700;
}
.resource-pill .icon { width: 14px; height: 14px; }
.resource-pill span { color: var(--muted-2); font-size: 8px; font-weight: 500; }
.resource-energy { color: #8bc9ff; }
.resource-hunger { color: var(--coral); }
.resource-meal { color: var(--gold); }
.resource-time { color: #ffd89a; }
.resource-time em { font-style: normal; font-size: 13px; line-height: 1; }
.resource-time small { margin-left: 2px; color: var(--muted-2); font-size: 7px; font-weight: 500; }
.money-pill {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 3px 12px 3px 4px;
    border: 1px solid rgba(246, 201, 106, 0.26); border-radius: 11px;
    background: linear-gradient(135deg, rgba(57, 40, 14, 0.92), rgba(16, 27, 26, 0.93));
    backdrop-filter: blur(12px); text-align: left;
}
.money-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; color: #3b2a05; background: linear-gradient(145deg, #ffe09a, var(--gold)); }
.money-icon .icon { width: 17px; height: 17px; }
.money-pill > span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.money-pill small { color: #c7a861; font-size: 7px; text-transform: uppercase; letter-spacing: 0.13em; }
.money-pill b { color: #ffe5a9; font-size: 11px; }
.hud-icon { width: 35px; height: 35px; }
.quest-panel, .rod-panel {
    position: absolute; z-index: 25; top: 96px; width: 216px; padding: 13px;
    border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(4, 23, 30, 0.88);
    backdrop-filter: blur(14px); pointer-events: auto;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.quest-panel { left: 22px; }
.rod-panel { right: 22px; }
.quest-panel.is-hidden { transform: translateX(-12px); }
.rod-panel.is-hidden { transform: translateX(12px); }
.panel-label { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 8px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 10px; }
.panel-label .icon { width: 12px; height: 12px; color: var(--gold); }
.quest-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.055); }
.quest-row:first-of-type { border-top: 0; padding-top: 0; }
.quest-check { width: 19px; height: 19px; border-radius: 5px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--muted-2); font-size: 8px; font-weight: 800; flex: 0 0 auto; }
.quest-row.is-done .quest-check { color: #05272a; background: var(--mint); }
.quest-row.is-done .quest-check .icon { width: 11px; height: 11px; }
.quest-row div { display: flex; flex-direction: column; min-width: 0; }
.quest-row b { font-size: 9.5px; }
.quest-row small { color: var(--muted-2); font-size: 7.5px; }
.quest-row em { margin-left: auto; color: var(--muted-2); font-size: 8px; font-style: normal; white-space: nowrap; }
.quest-row.is-done em { color: var(--mint); }
.rod-panel-main { display: flex; align-items: center; gap: 9px; }
.rod-glyph { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(101, 232, 201, 0.08); color: var(--mint); }
.rod-glyph .icon { width: 19px; height: 19px; }
.rod-panel-main div { display: flex; flex-direction: column; min-width: 0; }
.rod-panel-main b { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rod-panel-main small { color: var(--muted-2); font-size: 8px; }
.mini-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--mint); font-size: 8.5px; font-weight: 700; }
.mini-link .icon { width: 11px; height: 11px; }
.cast-dock {
    position: absolute; z-index: 28; left: 50%; bottom: calc(88px + var(--safe));
    transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
    pointer-events: none; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.cast-dock.is-hidden { transform: translate(-50%, 12px); }
.cast-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 20px; background: rgba(4, 22, 28, 0.52); color: #c3dfda; font-size: 8px; backdrop-filter: blur(8px); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(101, 232, 201, 0.1); }
.cast-status.is-bite .status-dot { background: var(--gold); animation: pulseDot 0.55s infinite alternate; }
@keyframes pulseDot { to { box-shadow: 0 0 0 8px rgba(246, 201, 106, 0.08); } }
.btn-cast {
    min-width: 235px; padding: 15px 23px; border-radius: 17px; color: #05282d;
    background: linear-gradient(135deg, var(--mint), #46d0ce);
    box-shadow: 0 16px 38px rgba(60, 210, 188, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    font-size: 14px; position: relative; pointer-events: auto;
}
.btn-cast:hover { transform: translateY(-2px); box-shadow: 0 22px 46px rgba(60, 210, 188, 0.36); }
.btn-cast .icon { width: 20px; height: 20px; }
.btn-cast kbd { margin-left: 7px; color: #053135; background: rgba(5, 49, 53, 0.1); border-color: rgba(5, 49, 53, 0.14); }
.btn-cast.is-busy { pointer-events: none; opacity: 0.7; }
.cast-sub { display: flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 8px; }
.cast-sub i { width: 2px; height: 2px; border-radius: 50%; background: var(--muted-2); }
.drive-hint { color: rgba(226, 250, 245, 0.7); font-size: 7.5px; letter-spacing: 0.02em; padding: 2px 7px; border-radius: 10px; background: rgba(3, 21, 27, 0.42); }
.mobile-hint { display: none; }
.dock {
    position: absolute; z-index: 32; left: 50%; bottom: calc(13px + var(--safe));
    transform: translateX(-50%); display: flex; align-items: center; gap: 3px;
    padding: 5px; border: 1px solid var(--line-strong); border-radius: 17px;
    background: rgba(5, 26, 34, 0.84); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(20px); pointer-events: auto;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.dock.is-hidden { transform: translate(-50%, 14px); }
.dock button {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-width: 62px; padding: 7px 9px 6px; border: 0; border-radius: 10px; background: transparent;
    color: var(--muted-2); font-size: 7.5px; font-weight: 600; transition: 0.2s;
}
.dock button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.dock button .icon { width: 17px; height: 17px; }
.dock button em { position: absolute; top: 3px; right: 10px; min-width: 13px; height: 13px; padding: 0 3px; display: grid; place-items: center; border-radius: 5px; background: var(--gold); color: #3a2906; font-size: 7px; font-style: normal; font-weight: 800; }
.demo-footer {
    position: absolute; z-index: 20; left: 22px; bottom: 16px; color: rgba(201, 230, 226, 0.35);
    font-size: 7px; letter-spacing: 0.05em; pointer-events: none;
}

/* ============================= Strike ============================= */
.strike-overlay {
    position: absolute; inset: 0; z-index: 70; display: grid; place-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(4, 20, 26, 0.16), rgba(2, 12, 16, 0.6));
    backdrop-filter: blur(2px);
}
.strike-card {
    width: min(470px, calc(100vw - 32px)); padding: 24px; border-radius: 22px; text-align: center;
    background: linear-gradient(160deg, #103b43, #07242d); border: 1px solid rgba(246, 201, 106, 0.38);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.65); animation: strikeIn 0.25s var(--ease);
}
@keyframes strikeIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
.strike-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.strike-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 20px; background: var(--gold); color: #3a2906; font-size: 9px; font-weight: 900; letter-spacing: 0.12em; }
.strike-badge .icon { width: 12px; height: 12px; }
.strike-top > span:last-child { color: var(--muted-2); font-size: 8px; }
.strike-card h2 { margin: 12px 0 5px; font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -0.04em; }
.strike-card p { margin: 0 0 15px; color: var(--muted); font-size: 10px; }
.timing-track { position: relative; height: 30px; border-radius: 9px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.06); }
.timing-zone { position: absolute; left: 37%; width: 26%; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(246, 201, 106, 0.06), rgba(246, 201, 106, 0.36), rgba(246, 201, 106, 0.06)); border-left: 1px dashed rgba(246, 201, 106, 0.45); border-right: 1px dashed rgba(246, 201, 106, 0.45); }
.timing-marker { position: absolute; top: -4px; left: 0; width: 4px; height: 38px; border-radius: 4px; background: #fff; box-shadow: 0 0 16px rgba(255, 255, 255, 0.8); }
.btn-reel { width: 100%; margin-top: 16px; padding: 14px; border-radius: 12px; font-size: 13px; }
.btn-reel .icon { width: 18px; height: 18px; }
.strike-card small { display: block; margin-top: 10px; color: var(--muted-2); font-size: 8px; }

/* ============================= Tutorial ============================= */
.tutorial {
    position: absolute; z-index: 55; left: 22px; top: 286px;
    width: 300px; transition: opacity 0.3s, visibility 0.3s;
}
.tutorial-card { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border-radius: 13px; border: 1px solid rgba(101, 232, 201, 0.26); background: rgba(5, 28, 36, 0.93); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.tutorial-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(101, 232, 201, 0.1); color: var(--mint); flex: 0 0 auto; }
.tutorial-icon .icon { width: 17px; height: 17px; }
.tutorial-card div { flex: 1; }
.tutorial-card b { font-size: 10px; }
.tutorial-card p { margin: 2px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.tutorial-card strong { color: var(--ink); }
.tutorial-card .icon-btn { width: 25px; height: 25px; border-color: transparent; background: transparent; }
.tutorial-card .icon-btn .icon { width: 12px; height: 12px; }

/* ============================= Panels ============================= */
.panel-overlay {
    position: absolute; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center;
    padding: 24px; background: rgba(2, 12, 16, 0.58); backdrop-filter: blur(6px);
}
.panel-sheet {
    width: min(1060px, 100%); max-height: min(820px, calc(100dvh - 48px)); overflow: hidden;
    display: flex; flex-direction: column; border-radius: 24px;
    border: 1px solid var(--line-strong); background: linear-gradient(160deg, #0c3039, #061e27 75%);
    box-shadow: var(--shadow); animation: panelIn 0.28s var(--ease);
}
@keyframes panelIn { from { transform: translateY(18px) scale(0.99); } to { transform: none; } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.panel-kicker { display: block; color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 3px; }
.panel-head h2 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.panel-close { width: 32px; height: 32px; }
.panel-body { padding: 18px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.panel-body::-webkit-scrollbar { width: 6px; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 10px; }
.panel-tabs { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; }
.tab-btn { padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); color: var(--muted); font-size: 9px; font-weight: 700; transition: 0.2s; }
.tab-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.tab-btn.is-active { color: #05272a; background: var(--mint); border-color: var(--mint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 18px 0 10px; }
.section-head:first-child { margin-top: 0; }
.section-head h3 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.section-head span { color: var(--muted-2); font-size: 8.5px; }
.panel-intro { max-width: 650px; margin: -2px 0 17px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span:first-child { color: var(--muted); font-size: 8px; font-weight: 600; }
.field-control { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(3, 21, 27, 0.55); transition: border-color 0.2s, background 0.2s; }
.field-control:focus-within { border-color: rgba(101, 232, 201, 0.55); background: rgba(3, 21, 27, 0.8); }
.field-control > .icon { width: 14px; height: 14px; color: var(--muted-2); flex: 0 0 auto; }
.field-control input, .field-control select { width: 100%; min-width: 0; padding: 8px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.field-control select { cursor: pointer; appearance: none; }
.field-control select option { background: #082832; color: var(--ink); }
.field-control input::placeholder { color: var(--muted-2); }
.field-control input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.field-control input[type="number"]::-webkit-outer-spin-button,
.field-control input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.empty-box { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 18px; }
.empty-box .empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(101, 232, 201, 0.07); color: var(--mint); margin-bottom: 12px; }
.empty-box .empty-icon .icon { width: 26px; height: 26px; }
.empty-box h3 { margin: 0 0 4px; font-family: var(--display); font-size: 22px; font-weight: 600; }
.empty-box p { max-width: 360px; margin: 0 0 14px; color: var(--muted); font-size: 10px; line-height: 1.6; }

/* Rarity */
.rarity-badge { display: inline-flex; padding: 3px 7px; border-radius: 20px; font-size: 7.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.r-common { color: #c0d1d1; background: rgba(192, 209, 209, 0.12); }
.r-uncommon { color: #81eab5; background: rgba(129, 234, 181, 0.12); }
.r-rare { color: #82c7ff; background: rgba(130, 199, 255, 0.13); }
.r-epic { color: #cba6ff; background: rgba(203, 166, 255, 0.13); }
.r-legendary { color: #ffdb83; background: rgba(255, 219, 131, 0.13); }
.r-mythic { color: #ffadad; background: linear-gradient(90deg, rgba(255, 141, 141, 0.15), rgba(196, 156, 255, 0.15)); }
.quality-badge { display: inline-flex; padding: 2px 6px; border-radius: 5px; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.q-normal { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.q-bagus { color: #a0ecc8; background: rgba(101, 232, 201, 0.1); }
.q-super { color: #9fd0ff; background: rgba(130, 199, 255, 0.12); }
.q-dewa { color: #ffdf90; background: rgba(255, 219, 131, 0.12); }

/* ============================= Sell ============================= */
.sell-summary { display: grid; grid-template-columns: 1.4fr 0.7fr; gap: 16px; margin-bottom: 16px; padding: 16px; border-radius: 15px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(17, 60, 69, 0.6), rgba(6, 30, 38, 0.45)); }
.sell-summary h3 { margin: 0 0 3px; font-family: var(--display); font-size: 24px; font-weight: 600; }
.sell-summary p { margin: 0 0 11px; color: var(--muted); font-size: 9px; }
.sell-summary-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.receipt { display: flex; flex-direction: column; justify-content: center; padding: 11px 13px; border-radius: 10px; background: rgba(2, 18, 24, 0.4); border: 1px solid rgba(255, 255, 255, 0.055); }
.receipt-row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; color: var(--muted); font-size: 9px; }
.receipt-row b { color: var(--ink); }
.receipt-total { margin-top: 5px; padding-top: 7px; border-top: 1px solid var(--line); }
.receipt-total b { color: var(--gold); font-size: 16px; font-family: var(--display); font-weight: 600; }
.inventory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.fish-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, rgba(17, 56, 65, 0.7), rgba(6, 26, 34, 0.9)); transition: 0.2s; }
.fish-tile:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.fish-tile.is-selected { border-color: rgba(101, 232, 201, 0.55); box-shadow: 0 0 0 1px rgba(101, 232, 201, 0.13); }
.fish-check { position: absolute; top: 7px; left: 7px; z-index: 2; width: 18px; height: 18px; appearance: none; border-radius: 5px; border: 1.5px solid rgba(255, 255, 255, 0.35); background: rgba(2, 16, 21, 0.5); cursor: pointer; }
.fish-check:checked { background: var(--mint); border-color: var(--mint); }
.fish-check:checked::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 8px; border-left: 2px solid #05272a; border-bottom: 2px solid #05272a; transform: rotate(-45deg); }
.tile-art { height: 92px; display: grid; place-items: center; padding: 6px; }
.tile-art svg { width: 90%; max-height: 84px; }
.tile-body { padding: 8px 9px 9px; }
.tile-body h4 { margin: 0 0 3px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { display: flex; justify-content: space-between; align-items: center; gap: 4px; color: var(--muted-2); font-size: 7px; }
.tile-price { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.tile-price b { color: var(--gold); font-size: 11px; }
.tile-price small { color: var(--muted-2); font-size: 7px; }
.sell-bar { position: sticky; bottom: -24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px -22px -24px; padding: 12px 22px calc(12px + 2px); border-top: 1px solid var(--line-strong); background: rgba(5, 27, 34, 0.97); backdrop-filter: blur(14px); }
.sell-bar-info { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sell-bar-info span { color: var(--muted); font-size: 9px; }
.sell-bar-info b { color: var(--gold); font-size: 16px; }
.sell-bar-info small { color: var(--muted-2); font-size: 7.5px; }
.sell-bar .btn { min-width: 160px; }

/* ============================= Market / Encyclopedia ============================= */
.market-toolbar { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.search-box { position: relative; flex: 1; min-width: 180px; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(3, 21, 27, 0.5); }
.search-box .icon { width: 14px; height: 14px; color: var(--muted-2); }
.search-box input { width: 100%; border: 0; background: transparent; outline: 0; font-size: 10px; }
.search-box input::placeholder { color: var(--muted-2); }
.market-toolbar select { height: 36px; padding: 0 26px 0 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(5, 27, 34, 0.8); color: var(--ink); font-size: 9px; appearance: none; }
.market-meta { display: flex; justify-content: space-between; gap: 8px; margin: 9px 0; color: var(--muted-2); font-size: 8px; }
.market-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.species-tile { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(9, 35, 43, 0.6); transition: 0.2s; }
.species-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.species-art { position: relative; height: 70px; display: grid; place-items: center; padding: 4px; }
.species-art svg { width: 88%; max-height: 64px; }
.species-art.is-locked { filter: grayscale(0.35) brightness(0.76); }
.found-pin { position: absolute; right: 5px; top: 5px; display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; border-radius: 4px; background: rgba(2, 15, 20, 0.65); color: var(--mint); font-size: 6px; font-weight: 700; }
.found-pin .icon { width: 7px; height: 7px; }
.species-info { padding: 6px 7px 7px; }
.species-info h4 { margin: 0 0 3px; font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.species-info .species-tags { display: flex; gap: 3px; flex-wrap: wrap; }
.species-tags .habitat { color: var(--muted-2); font-size: 6px; }
.species-price { display: flex; justify-content: space-between; gap: 3px; margin-top: 5px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.05); color: var(--gold); font-size: 8px; font-weight: 700; }
.species-price small { color: var(--muted-2); font-size: 6px; font-weight: 500; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted-2); font-size: 8.5px; }
.page-btn { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, 0.03); color: var(--muted); }
.page-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.page-btn.is-disabled { opacity: 0.3; pointer-events: none; }
.page-btn .icon { width: 12px; height: 12px; }

/* ============================= Rods ============================= */
.rod-current { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; padding: 15px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(17, 60, 69, 0.65), rgba(5, 28, 36, 0.45)); }
.rod-current-main { display: flex; align-items: center; gap: 12px; }
.rod-big-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(101, 232, 201, 0.09); color: var(--mint); border: 1px solid rgba(101, 232, 201, 0.16); }
.rod-big-icon .icon { width: 30px; height: 30px; }
.rod-current h3 { margin: 0 0 3px; font-family: var(--display); font-size: 22px; font-weight: 600; }
.rod-current p { margin: 0; color: var(--muted); font-size: 9px; }
.rod-current-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-content: center; }
.rod-current-stats div { padding: 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.03); text-align: center; }
.rod-current-stats small { display: block; color: var(--muted-2); font-size: 7px; }
.rod-current-stats b { font-size: 12px; }
.rod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.rod-card { display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, rgba(15, 51, 60, 0.7), rgba(6, 26, 34, 0.9)); }
.rod-card.is-current { border-color: rgba(101, 232, 201, 0.42); box-shadow: 0 0 0 1px rgba(101, 232, 201, 0.1); }
.rod-card-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.rod-tier { color: var(--muted-2); font-size: 7px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.rod-flag { padding: 2px 5px; border-radius: 4px; font-size: 6.5px; font-weight: 700; }
.rod-flag.owned { color: var(--mint); background: rgba(101, 232, 201, 0.08); }
.rod-flag.current { color: #05272a; background: var(--mint); }
.rod-flag.locked { color: var(--gold); background: rgba(246, 201, 106, 0.08); }
.rod-art { position: relative; height: 66px; display: grid; place-items: center; margin: 7px 0; border-radius: 8px; background: rgba(255, 255, 255, 0.025); overflow: hidden; }
.rod-art::before { content: ""; position: absolute; width: 100px; height: 2px; background: linear-gradient(90deg, transparent, var(--rod, var(--mint))); transform: rotate(-24deg); opacity: 0.65; }
.rod-art .icon { width: 32px; height: 32px; color: var(--rod, var(--mint)); transform: rotate(-18deg); }
.rod-art span { position: absolute; right: 7px; bottom: 0; font-family: var(--display); font-size: 27px; color: var(--rod, var(--mint)); opacity: 0.12; }
.rod-card h4 { margin: 0 0 2px; font-size: 11px; }
.rod-card p { margin: 0 0 7px; color: var(--muted-2); font-size: 7.5px; line-height: 1.45; min-height: 30px; }
.rod-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 7px; }
.rod-stats-row div { padding: 4px; border-radius: 5px; background: rgba(255, 255, 255, 0.025); text-align: center; }
.rod-stats-row small { display: block; color: var(--muted-2); font-size: 6px; }
.rod-stats-row b { font-size: 8px; }
.rod-price { display: flex; flex-direction: column; margin: 3px 0 7px; }
.rod-price b { color: var(--gold); font-size: 11px; }
.rod-price small { color: var(--muted-2); font-size: 6.5px; }
.rod-card .btn { margin-top: auto; font-size: 8px; padding: 6px 8px; }

/* ============================= Meals ============================= */
.meal-overview { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 12px; margin-bottom: 15px; }
.meal-progress-card { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(19, 61, 67, 0.65), rgba(6, 29, 37, 0.45)); }
.meal-progress-card h3 { margin: 0 0 4px; font-family: var(--display); font-size: 23px; font-weight: 600; }
.meal-progress-card p { margin: 0 0 12px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.meal-ring-row { display: flex; align-items: center; gap: 11px; }
.meal-ring { --p: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--mint) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); position: relative; flex: 0 0 auto; }
.meal-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0a2932; }
.meal-ring span { position: relative; z-index: 1; font-size: 15px; font-weight: 800; }
.meal-ring small { font-size: 8px; color: var(--muted); }
.meal-ring-copy b { display: block; font-size: 10px; }
.meal-ring-copy small { color: var(--muted-2); font-size: 8px; }
.meal-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 13px; }
.meal-slot { padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.025); text-align: left; cursor: pointer; transition: 0.2s; }
.meal-slot:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.045); }
.meal-slot.is-active { border-color: rgba(101, 232, 201, 0.55); background: rgba(101, 232, 201, 0.07); box-shadow: 0 0 0 1px rgba(101, 232, 201, 0.1); }
.meal-slot:disabled { cursor: default; }
.meal-slot.is-done { border-color: rgba(101, 232, 201, 0.18); background: rgba(101, 232, 201, 0.035); }
.meal-slot span { display: flex; align-items: center; gap: 4px; color: var(--gold); font-size: 7px; font-weight: 700; }
.meal-slot span .icon { width: 10px; height: 10px; }
.meal-slot b { display: block; margin-top: 4px; font-size: 9px; }
.meal-slot small { color: var(--muted-2); font-size: 7px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.menu-item { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.025); }
.menu-item.is-emergency { border-color: rgba(246, 201, 106, 0.16); background: rgba(246, 201, 106, 0.035); }
.menu-emoji { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, 0.05); font-size: 18px; flex: 0 0 auto; }
.menu-copy { flex: 1; min-width: 0; }
.menu-copy h4 { margin: 0 0 2px; font-size: 10px; }
.menu-copy p { margin: 0 0 4px; color: var(--muted-2); font-size: 7.5px; line-height: 1.4; }
.menu-bonus { display: flex; gap: 6px; color: var(--muted); font-size: 7px; }
.menu-bonus span { display: inline-flex; align-items: center; gap: 2px; }
.menu-bonus .icon { width: 9px; height: 9px; color: var(--mint); }
.menu-bonus span:last-child .icon { color: var(--coral); }
.menu-buy { flex: 0 0 auto; text-align: right; }
.menu-buy b { display: block; color: var(--gold); font-size: 10px; }
.menu-buy small { display: block; color: var(--muted-2); font-size: 6.5px; }
.menu-buy .btn { margin-top: 5px; font-size: 7.5px; padding: 5px 8px; }
.meal-bars { display: flex; flex-direction: column; gap: 9px; }
.bar-head { display: flex; justify-content: space-between; font-size: 8px; color: var(--muted); margin-bottom: 4px; }
.bar-head b { color: var(--ink); }
.bar { height: 5px; border-radius: 20px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8bc9ff, #54d4df); }
.bar.hunger i { background: linear-gradient(90deg, var(--coral), #ffb665); }

/* ============================= Wallet ============================= */
.wallet-top { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 12px; margin-bottom: 15px; }
.balance-card { padding: 18px; border-radius: 15px; border: 1px solid rgba(246, 201, 106, 0.18); background: radial-gradient(400px 200px at 90% 10%, rgba(246, 201, 106, 0.16), transparent 65%), linear-gradient(140deg, #133e45, #08242d); }
.balance-card > span { color: #c7a861; font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; }
.balance-card h3 { margin: 5px 0 4px; font-family: var(--display); font-size: 38px; font-weight: 600; line-height: 1; color: #ffe3a0; letter-spacing: -0.04em; }
.balance-card p { margin: 0 0 12px; color: var(--muted); font-size: 8.5px; }
.balance-actions { display: flex; gap: 6px; }
.wallet-stats { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.wallet-stat { display: flex; justify-content: space-between; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, 0.025); color: var(--muted); font-size: 8px; }
.wallet-stat b { color: var(--ink); font-size: 8.5px; }
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet-box { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.025); }
.wallet-box h4 { margin: 0 0 3px; font-size: 11px; }
.wallet-box p { margin: 0 0 9px; color: var(--muted-2); font-size: 8px; line-height: 1.5; }
.amount-grid { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.amount-chip { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.025); color: var(--muted); font-size: 7.5px; font-weight: 600; }
.amount-chip:hover, .amount-chip.is-active { color: #05272a; background: var(--mint); border-color: var(--mint); }
.fee-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; color: var(--muted); font-size: 8px; }
.fee-row b { color: var(--ink); }
.fee-row.total { margin-top: 4px; padding-top: 7px; border-top: 1px solid var(--line); }
.fee-row.total b { color: var(--gold); font-size: 12px; }
.demo-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border-radius: 4px; background: rgba(246, 201, 106, 0.1); color: var(--gold); font-size: 6.5px; font-weight: 800; letter-spacing: 0.07em; }
.history-list { display: flex; flex-direction: column; margin-top: 8px; }
.history-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.045); }
.history-row:first-child { border-top: 0; }
.history-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; flex: 0 0 auto; }
.history-icon.in { color: var(--mint); background: rgba(101, 232, 201, 0.08); }
.history-icon.out { color: var(--coral); background: rgba(255, 143, 117, 0.08); }
.history-icon .icon { width: 13px; height: 13px; }
.history-copy { display: flex; flex-direction: column; min-width: 0; }
.history-copy b { font-size: 8.5px; }
.history-copy small { color: var(--muted-2); font-size: 7px; }
.history-value { margin-left: auto; text-align: right; }
.history-value b { font-size: 8.5px; }
.history-value.in b { color: var(--mint); }
.history-value.out b { color: var(--coral); }
.history-value small { display: block; color: var(--muted-2); font-size: 6.5px; }
.qr-sheet { display: flex; gap: 12px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #06232c; margin: 9px 0; max-width: 620px; }
.qr-canvas { width: 132px; height: 132px; padding: 5px; background: #fff; flex: 0 0 auto; display: grid; place-items: center; }
.qr-canvas img, .qr-canvas canvas { max-width: 100%; height: auto !important; }
.qr-sheet h5 { margin: 0 0 3px; font-size: 10px; }
.qr-sheet p { margin: 0 0 6px; color: #527077; font-size: 8px; line-height: 1.4; }
.qr-sheet b { color: #0c5d5b; font-size: 16px; }
.qr-demo-banner { display: flex; gap: 5px; align-items: center; margin-top: 6px; color: #9b7724; font-size: 7px; }

/* ============================= Profile ============================= */
.profile-card { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(135deg, rgba(17, 57, 65, 0.65), rgba(5, 28, 36, 0.45)); margin-bottom: 13px; }
.avatar { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, var(--mint), #51bfd9); color: #05252c; font-family: var(--display); font-size: 25px; font-weight: 700; flex: 0 0 auto; }
.profile-copy h3 { margin: 0 0 2px; font-family: var(--display); font-size: 23px; font-weight: 600; }
.profile-copy p { margin: 0; color: var(--muted); font-size: 8.5px; }
.profile-actions { margin-left: auto; display: flex; gap: 5px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 13px; }
.profile-stat { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.025); }
.profile-stat small { display: block; color: var(--muted-2); font-size: 7px; margin-bottom: 3px; }
.profile-stat b { font-size: 13px; }
.profile-stat span { color: var(--muted-2); font-size: 7px; }
.rtp-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: -4px 0 13px; padding: 9px 11px; border: 1px solid rgba(246, 201, 106, 0.2);
    border-radius: 9px; background: rgba(246, 201, 106, 0.045); color: var(--muted);
    font-size: 8px;
}
.rtp-strip span { display: inline-flex; align-items: center; gap: 5px; color: #f4dfae; white-space: nowrap; }
.rtp-strip .icon { width: 12px; height: 12px; color: var(--gold); }
.rtp-strip b { color: var(--gold); font-size: 11px; }
.rtp-strip small { color: var(--muted-2); font-size: 7px; text-align: right; line-height: 1.5; }
.rtp-help { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(246, 201, 106, 0.18); border-radius: 9px; background: rgba(246, 201, 106, 0.04); }
.rtp-help b { display: block; margin-bottom: 4px; color: #f4dfae; font-size: 9px; }
.rtp-help small { display: block; color: var(--muted); font-size: 8px; line-height: 1.65; }
.settings-list { display: flex; flex-direction: column; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.045); }
.setting-row:first-child { border-top: 0; }
.setting-row b { display: block; font-size: 9px; }
.setting-row small { color: var(--muted-2); font-size: 7.5px; }
.toggle { position: relative; width: 34px; height: 19px; border-radius: 20px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.06); transition: 0.2s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--muted); transition: 0.2s; }
.toggle.on { background: rgba(101, 232, 201, 0.22); border-color: rgba(101, 232, 201, 0.3); }
.toggle.on::after { left: 16px; background: var(--mint); }
.profile-note { margin-top: 10px; padding: 9px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.045); color: var(--muted-2); font-size: 7.5px; line-height: 1.5; }

/* ============================= Location popover ============================= */
.popover {
    position: absolute; z-index: 80; width: 300px; padding: 10px;
    border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(5, 27, 35, 0.97);
    box-shadow: var(--shadow); backdrop-filter: blur(18px); animation: panelIn 0.2s var(--ease);
}
.location-list { display: flex; flex-direction: column; gap: 3px; }
.location-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; text-align: left; transition: 0.2s; }
.location-item:hover { background: rgba(255, 255, 255, 0.04); }
.location-item.is-current { border-color: rgba(101, 232, 201, 0.22); background: rgba(101, 232, 201, 0.055); }
.location-item.is-locked { opacity: 0.45; }
.location-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, 0.045); color: var(--mint); flex: 0 0 auto; }
.location-icon .icon { width: 15px; height: 15px; }
.location-item div { display: flex; flex-direction: column; min-width: 0; }
.location-item b { font-size: 9.5px; }
.location-item small { color: var(--muted-2); font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.location-item .icon:last-child { width: 12px; height: 12px; margin-left: auto; color: var(--muted-2); }
.popover-title { padding: 4px 6px 7px; color: var(--muted-2); font-size: 7px; letter-spacing: 0.13em; text-transform: uppercase; }

/* ============================= Modals / catch ============================= */
.modal-root { position: absolute; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; background: rgba(2, 12, 16, 0.72); backdrop-filter: blur(7px); }
.modal-card { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 20px; border-radius: 22px; border: 1px solid var(--line-strong); background: linear-gradient(155deg, #10343e, #071f28); box-shadow: var(--shadow); animation: modalIn 0.28s var(--ease); }
@keyframes modalIn { from { transform: translateY(12px) scale(0.99); } to { transform: none; } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 17px; line-height: 1; }
.catch-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; align-items: center; }
.catch-preview { position: relative; height: 310px; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 48%, rgba(101, 232, 201, 0.13), transparent 63%), rgba(2, 16, 22, 0.35); border: 1px solid rgba(255, 255, 255, 0.055); }
#fishPreviewCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.catch-preview-label { position: absolute; left: 11px; top: 10px; color: var(--muted-2); font-size: 7px; letter-spacing: 0.12em; text-transform: uppercase; }
.catch-info .catch-kicker { display: inline-flex; align-items: center; gap: 5px; color: var(--mint); font-size: 8px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.catch-info h2 { margin: 5px 0 6px; font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; }
.catch-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.catch-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 13px 0 10px; }
.catch-stat { padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.05); }
.catch-stat small { display: block; color: var(--muted-2); font-size: 7px; }
.catch-stat b { font-size: 10px; }
.fee-box { padding: 9px 10px; border: 1px solid rgba(246, 201, 106, 0.16); border-radius: 8px; background: rgba(246, 201, 106, 0.045); }
.fee-box .fee-line { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; padding: 2px 0; }
.fee-box .fee-line b { color: var(--ink); }
.fee-box .fee-net { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(246, 201, 106, 0.16); color: var(--gold); font-size: 9px; font-weight: 700; }
.catch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.modal-confirm { width: min(420px, 100%); text-align: center; }
.modal-confirm .confirm-icon { width: 46px; height: 46px; border-radius: 50%; margin: 4px auto 9px; display: grid; place-items: center; background: rgba(246, 201, 106, 0.1); color: var(--gold); font-size: 21px; }
.modal-confirm h2 { margin: 0 0 5px; font-family: var(--display); font-size: 25px; font-weight: 600; }
.modal-confirm p { margin: 0 0 15px; color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.modal-confirm .confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.help-modal h2 { margin: 0 0 5px; font-family: var(--display); font-size: 28px; font-weight: 600; }
.help-modal > p { color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.help-steps { display: flex; flex-direction: column; gap: 6px; margin: 13px 0; }
.help-step { display: flex; gap: 8px; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
.help-step > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: #05272a; font-size: 8px; font-weight: 800; flex: 0 0 auto; }
.help-step b { display: block; font-size: 9px; }
.help-step small { color: var(--muted-2); font-size: 8px; line-height: 1.45; }
.demo-disclaimer { padding: 8px 9px; border-radius: 7px; background: rgba(246, 201, 106, 0.06); border: 1px solid rgba(246, 201, 106, 0.12); color: #d9bd7a; font-size: 7.5px; line-height: 1.5; }

/* ============================= Toast ============================= */
.toast-stack { position: absolute; z-index: 200; right: 18px; bottom: calc(100px + var(--safe)); width: min(310px, calc(100vw - 36px)); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(5, 27, 35, 0.96); color: var(--ink); box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38); font-size: 9px; line-height: 1.45; opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; pointer-events: auto; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast .toast-icon { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: var(--mint); flex: 0 0 auto; }
.toast .toast-icon .icon { width: 12px; height: 12px; }
.toast.error { border-color: rgba(255, 114, 133, 0.32); }
.toast.error .toast-icon { color: var(--danger); }
.toast.gold .toast-icon { color: var(--gold); }

/* ============================= Responsive ============================= */
@media (max-width: 1080px) {
    .landing-copy h1 { font-size: clamp(46px, 7vw, 76px); }
    .landing-side { display: none; }
    .inventory-grid { grid-template-columns: repeat(3, 1fr); }
    .market-grid { grid-template-columns: repeat(4, 1fr); }
    .rod-grid { grid-template-columns: repeat(2, 1fr); }
    .quest-panel, .rod-panel { display: none; }
    .hud { padding: 14px 15px 0; }
    .hud-right { gap: 5px; }
    .resource-pill { height: 31px; padding: 0 7px; }
    .money-pill { height: 34px; }
    .hud-icon { width: 31px; height: 31px; }
    .cast-dock { bottom: calc(82px + var(--safe)); }
}
@media (max-width: 760px) {
    .landing { padding: 18px 16px 14px; background: linear-gradient(180deg, rgba(3, 18, 24, 0.7) 0%, rgba(3, 18, 24, 0.45) 30%, rgba(3, 18, 24, 0.45) 55%, rgba(3, 18, 24, 0.93) 100%); }
    .landing-top .demo-ribbon { font-size: 6.5px; padding: 5px 7px; }
    .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
    .brand-mark .icon { width: 19px; height: 19px; }
    .brand-text strong { font-size: 15px; }
    .brand-text small { font-size: 7px; }
    .landing-main { align-items: flex-end; padding-bottom: 14px; }
    .landing-copy h1 { font-size: clamp(39px, 12vw, 58px); }
    .landing-copy > p { font-size: 10px; max-width: 420px; }
    .landing-actions { margin-top: 15px; }
    .btn-hero { padding: 12px 17px; font-size: 11px; }
    .landing-features { gap: 14px; margin-top: 16px; padding-top: 13px; }
    .landing-features b { font-size: 18px; }
    .landing-features span { font-size: 7px; }
    .landing-bottom { font-size: 6.5px; }
    .landing-keys { display: none; }
    .hud { padding: 10px 10px 0; gap: 4px; }
    .hud-left { gap: 6px; }
    .hud .brand-text { display: none; }
    .hud .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
    .hud-right { gap: 3px; }
    .resource-pill { height: 28px; padding: 0 6px; font-size: 8px; }
    .resource-pill .icon { width: 11px; height: 11px; }
    .resource-pill span { display: none; }
    .resource-time small { display: none; }
    .resource-meal span { display: inline; }
    .money-pill { height: 31px; padding: 2px 7px 2px 3px; }
    .money-icon { width: 25px; height: 25px; }
    .money-pill small { display: none; }
    .money-pill b { font-size: 9px; }
    .hud-icon { width: 28px; height: 28px; }
    .hud-icon .icon { width: 14px; height: 14px; }
    #btnSound { display: none; }
    .location-pill { padding: 5px 7px; font-size: 7.5px; }
    .cast-dock { bottom: calc(77px + var(--safe)); }
    .btn-cast { min-width: 210px; padding: 12px 18px; border-radius: 14px; font-size: 11px; }
    .btn-cast .icon { width: 17px; height: 17px; }
    .btn-cast kbd { display: none; }
    .cast-sub { font-size: 7px; }
    .desktop-hint { display: none; }
    .mobile-hint { display: inline; }
    .dock { bottom: calc(9px + var(--safe)); padding: 4px; border-radius: 15px; gap: 0; max-width: calc(100vw - 16px); overflow-x: auto; }
    .dock button { min-width: 49px; padding: 6px 5px 5px; font-size: 6.5px; }
    .dock button .icon { width: 15px; height: 15px; }
    .dock button em { right: 4px; }
    .demo-footer { display: none; }
    .toast-stack { bottom: calc(145px + var(--safe)); }
    .panel-overlay { padding: 8px; align-items: flex-end; }
    .panel-sheet { max-height: calc(100dvh - 16px); border-radius: 19px; }
    .panel-head { padding: 15px 15px 11px; }
    .panel-head h2 { font-size: 23px; }
    .panel-body { padding: 14px 15px 20px; }
    .sell-summary { grid-template-columns: 1fr; }
    .inventory-grid { grid-template-columns: 1fr 1fr; }
    .market-grid { grid-template-columns: 1fr 1fr 1fr; }
    .rod-grid { grid-template-columns: 1fr 1fr; }
    .menu-grid { grid-template-columns: 1fr; }
    .meal-overview { grid-template-columns: 1fr; }
    .wallet-top { grid-template-columns: 1fr; }
    .wallet-grid { grid-template-columns: 1fr; }
    .qr-sheet { flex-direction: column; align-items: stretch; }
    .qr-canvas { width: 100%; height: 190px; }
    .profile-stats { grid-template-columns: 1fr 1fr; }
    .rtp-strip { flex-direction: column; align-items: flex-start; gap: 5px; }
    .rtp-strip small { text-align: left; }
    .profile-actions { width: 100%; margin-left: 0; margin-top: 7px; }
    .profile-card { flex-wrap: wrap; }
    .modal-root { padding: 8px; }
    .modal-card { padding: 15px; border-radius: 17px; }
    .catch-layout { grid-template-columns: 1fr; gap: 12px; }
    .catch-preview { height: 220px; order: 0; }
    .catch-info { order: 1; }
    .catch-info h2 { font-size: 27px; }
    .catch-actions { grid-template-columns: 1fr; }
    .strike-card { padding: 19px; }
    .strike-card h2 { font-size: 27px; }
    .tutorial { left: 50%; top: auto; bottom: calc(148px + var(--safe)); transform: translateX(-50%); width: min(92vw, 420px); }
    .sell-bar { margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px; }
    .section-head h3 { font-size: 18px; }
    .popover { width: min(290px, calc(100vw - 24px)); }
}
@media (max-width: 420px) {
    .resource-energy { display: none; }
    .resource-pill { padding: 0 5px; }
    .money-pill b { font-size: 8.5px; }
    .landing-copy h1 { font-size: 40px; }
    .landing-features { gap: 10px; }
    .landing-features b { font-size: 16px; }
    .panel-body { padding-left: 12px; padding-right: 12px; }
    .market-grid { grid-template-columns: 1fr 1fr; }
    .rod-grid { grid-template-columns: 1fr; }
    .inventory-grid { gap: 6px; }
    .tile-art { height: 82px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
