/* =========================================================
   SHARK GLOBAL FISHING - 기본 스타일
   색상: 딥 네이비 / 블랙 / 화이트 / 바다색
   ========================================================= */
:root {
    --navy: #06111f;
    --navy-2: #0b1d33;
    --navy-3: #12304f;
    --sea: #0f5c8a;
    --sea-light: #4fd1ff;
    --white: #f2f6fa;
    --muted: #8aa3bd;
    --line: rgba(120, 170, 220, 0.18);
    --gold: #f2c94c;
    --red: #ff5a5f;
    --green: #3ddc97;
    --orange: #ff9f43;
    --header-h: 56px;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: radial-gradient(ellipse at top, #0c2440 0%, var(--navy) 60%) fixed, var(--navy);
    color: var(--white);
    font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

button { font-family: inherit; }
a { color: inherit; }

.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.center { text-align: center; }
.ok { color: var(--green); font-weight: 700; }
.warn { color: var(--orange); font-weight: 700; }

/* ---------------- 헤더 ---------------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px;
    background: rgba(4, 10, 20, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; font-weight: 900; letter-spacing: 0.06em; font-size: 1rem; white-space: nowrap; min-width: 0;
}
.brand-logo { width: 30px; height: 30px; }
.header-links { display: flex; gap: 8px; flex-shrink: 0; }
.nav-link {
    text-decoration: none; font-weight: 700; font-size: 0.88rem; white-space: nowrap;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s, border-color 0.2s;
}
.nav-link:hover { background: rgba(79, 209, 255, 0.14); border-color: var(--sea-light); }
.nav-yt { background: #c4161c; border-color: #c4161c; }
.nav-yt:hover { background: #e0262c; border-color: #e0262c; }

.app { padding-top: var(--header-h); min-height: calc(100vh - 40px); }

.site-footer {
    text-align: center; color: var(--muted); font-size: 0.75rem; padding: 14px; border-top: 1px solid var(--line);
}
body[data-screen="title"] .site-footer, body[data-screen="fishing"] .site-footer { display: none; }

/* ---------------- 화면 ---------------- */
.screen { display: none; max-width: 1180px; margin: 0 auto; padding: 18px 18px 40px; }
.screen.active { display: block; }

.screen-bar {
    display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.screen-bar h2 { margin: 0; font-size: 1.35rem; letter-spacing: 0.02em; }
.screen-bar h2 small { color: var(--muted); font-size: 0.85rem; font-weight: 500; margin-left: 6px; }
.back {
    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--white);
    border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer;
}
.back:hover { border-color: var(--sea-light); }

.sel-info {
    background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px 14px; margin-bottom: 16px; color: #c9d8e8;
}
.section-title { margin: 26px 0 12px; font-size: 1.05rem; color: #c9d8e8; }

/* ---------------- 버튼 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: none; border-radius: 12px; padding: 12px 20px;
    font-weight: 800; font-size: 1rem; cursor: pointer; text-decoration: none;
    color: var(--white); transition: transform 0.12s, filter 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { cursor: not-allowed; opacity: 0.45; filter: grayscale(0.6); }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; border-radius: 10px; }
.btn-lg { padding: 15px 24px; font-size: 1.08rem; }
.btn-primary { background: linear-gradient(180deg, #1aa0e6, #0b6aa8); box-shadow: 0 4px 14px rgba(26, 160, 230, 0.35); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.12); }
.btn-accent { background: linear-gradient(180deg, #ffb547, #e07b12); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--sea-light); }
.btn-mall { background: #13263d; border: 1px solid #2c5a86; color: #9fd8ff; }
.btn-mall:hover { background: #1b3657; }
.btn-danger { background: var(--red); }
.btn-locked { background: #2a3442; color: var(--muted); width: 100%; }

.btn-youtube {
    background: #e62117; font-size: 1.05rem; padding: 14px 26px; border-radius: 999px;
    box-shadow: 0 8px 24px rgba(230, 33, 23, 0.4);
}
.btn-youtube:hover { filter: brightness(1.1); }

.btn-start {
    background: linear-gradient(180deg, #ffd34d, #f29d0c); color: #1a1000;
    font-size: 1.4rem; font-weight: 900; letter-spacing: 0.08em;
    padding: 16px 48px; border-radius: 16px;
}
.btn-start.ready { box-shadow: 0 0 0 4px rgba(255, 211, 77, 0.25), 0 10px 30px rgba(242, 157, 12, 0.45); }

.btn-recommend {
    width: 100%; background: linear-gradient(90deg, #f2c94c, #ff9f43); color: #1a1000;
    font-size: 1.05rem; padding: 14px; margin-bottom: 14px;
}

.chip {
    display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
    padding: 2px 8px; border-radius: 999px; margin: 2px 3px 2px 0;
}
.chip-jigging { background: rgba(79, 163, 217, 0.18); color: #7cc6ff; border: 1px solid rgba(79, 163, 217, 0.4); }
.chip-casting { background: rgba(255, 159, 67, 0.15); color: #ffc078; border: 1px solid rgba(255, 159, 67, 0.4); }

.chip-btn {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--white);
    border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.85rem; cursor: pointer; white-space: nowrap;
}
.chip-btn.active { background: var(--sea); border-color: var(--sea-light); }
.chip-tuna { border-color: rgba(242, 201, 76, 0.5); color: var(--gold); }
.chip-tuna.active { background: #6b5208; color: #fff; }

.badge {
    display: inline-block; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.05em;
    padding: 3px 8px; border-radius: 6px; margin: 2px 4px 2px 0; vertical-align: middle;
}
.badge-tuna { background: linear-gradient(90deg, #f2c94c, #ff7b2c); color: #1a0d00; }
.badge-off { background: #26364a; color: var(--muted); }
.badge-exp { background: #3b2a6b; color: #d7c8ff; border: 1px solid #6c56c2; }
.badge-season { background: rgba(61, 220, 151, 0.18); color: var(--green); border: 1px solid rgba(61, 220, 151, 0.4); }
.badge-trophy { background: rgba(255, 90, 95, 0.15); color: #ff9da0; border: 1px solid rgba(255, 90, 95, 0.4); }

.tag {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-size: 0.7rem; font-weight: 900; padding: 3px 8px; border-radius: 6px;
}
.tag-rec { background: var(--gold); color: #1a1000; }
.tag-sel { left: auto; right: 10px; background: var(--green); color: #002414; }

/* ---------------- 첫 화면 ---------------- */
.screen.screen-title {
    max-width: none; padding: 0; position: relative; overflow: hidden;
    min-height: calc(100vh - var(--header-h));
    display: none; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #050d1a 0%, #0c2a4a 45%, #0d4a75 50%, #020a16 100%);
}
.screen-title.active { display: flex; }
.title-scene { position: absolute; inset: 0; pointer-events: none; }
.title-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.sun {
    position: absolute; right: 12%; top: 26%; width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 150, 0.9), rgba(255, 170, 80, 0.15) 60%, transparent 70%);
}
.title-box {
    position: relative; z-index: 2; text-align: center; padding: 30px 20px 60px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.title-brand { letter-spacing: 0.3em; font-size: 0.78rem; color: #9fc3e6; font-weight: 700; }
.title-main {
    margin: 0; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 0.95; font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, #ffffff 0%, #bfe6ff 60%, #4fd1ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 6px 40px rgba(79, 209, 255, 0.25);
}
.title-sub { color: #9fc3e6; letter-spacing: 0.18em; font-size: 0.82rem; font-weight: 700; }
.title-copy { font-size: 1.2rem; font-weight: 800; margin: 6px 0 10px; }
.yt-status { font-size: 0.9rem; color: #c9d8e8; min-height: 2.6em; }

/* ---------------- 메뉴 ---------------- */
.menu-head { display: flex; align-items: baseline; justify-content: space-between; }
.menu-head h2 { letter-spacing: 0.1em; }
.menu-total b { color: var(--gold); font-size: 1.3rem; }
.menu-notes {
    display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 18px;
    padding: 12px 14px; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius);
    font-size: 0.88rem; color: #c9d8e8;
}
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.menu-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 26px 12px; border-radius: 18px; cursor: pointer; color: var(--white);
    background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
    border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform 0.15s, border-color 0.2s;
}
.menu-btn:hover { transform: translateY(-3px); border-color: var(--sea-light); }
.menu-btn .mi { font-size: 2.4rem; }
.menu-btn .ml { font-size: 1.15rem; font-weight: 900; }
.menu-btn small { color: var(--muted); }
.menu-main {
    grid-column: span 4; flex-direction: row; gap: 18px; padding: 30px;
    background: linear-gradient(120deg, #0b6aa8, #0f5c8a 40%, #12304f);
    border-color: rgba(79, 209, 255, 0.5);
}
.menu-main .mi { font-size: 3rem; }
.menu-main .ml { font-size: 1.6rem; }
.menu-main small { color: #cfe8ff; }
.menu-small { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---------------- 카드 공통 ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.fish-pic { width: 100%; aspect-ratio: 2 / 1; display: flex; align-items: center; justify-content: center; }
.fish-pic svg { width: 92%; height: 100%; }
.fish-pic.big { max-width: 380px; margin: 0 auto; }
.fish-pic.glow svg { filter: drop-shadow(0 0 18px rgba(242, 201, 76, 0.7)); }

/* 지도 */
.area-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 8px; scrollbar-width: thin; }
.map-wrap {
    position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); background: #061629; box-shadow: var(--shadow);
}
.world-map { display: block; width: 100%; aspect-ratio: 2 / 1; transition: all 0.3s; }
.world-map .land { fill: #1d3a55; stroke: #3d6a92; }
.marker { cursor: pointer; }
.marker .dot { fill: var(--sea-light); stroke: #fff; }
.marker .pulse { fill: rgba(79, 209, 255, 0.25); }
.marker.tuna .dot { fill: var(--gold); }
.marker.tuna .pulse { fill: rgba(242, 201, 76, 0.25); }
.marker.locked .dot { fill: #6b7a8c; }
.marker.dim { opacity: 0.25; }
.marker.sel .dot { fill: #fff; stroke: var(--red); }
.marker text { fill: #fff; font-weight: 700; paint-order: stroke; stroke: #061629; stroke-width: 0.25em; pointer-events: none; }
.map-hint {
    position: absolute; left: 10px; bottom: 8px; font-size: 0.75rem; color: #c9d8e8;
    background: rgba(6, 17, 31, 0.7); padding: 3px 9px; border-radius: 6px;
}

.region-info {
    display: none; margin-top: 14px; padding: 16px; border-radius: var(--radius);
    background: linear-gradient(180deg, var(--navy-3), var(--navy-2)); border: 1px solid rgba(79, 209, 255, 0.4);
}
.region-info.show { display: block; }
.region-info h3 { margin: 2px 0 4px; font-size: 1.5rem; }
.region-info p { margin: 8px 0; color: #c9d8e8; }
.ri-head { display: flex; justify-content: space-between; gap: 10px; }
.ri-diff { text-align: right; font-size: 0.8rem; color: var(--muted); }
.ri-diff b { color: var(--gold); font-size: 1rem; }
.ri-fish { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.mini-fish { display: flex; flex-direction: column; align-items: center; width: 84px; background: rgba(0, 0, 0, 0.2); border-radius: 10px; padding: 4px; }
.mini-fish svg { width: 72px; height: 36px; }
.mini-fish small { font-size: 0.72rem; }
.ri-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.region-info .btn-primary { width: 100%; }

.region-card {
    padding: 14px; border-radius: var(--radius); cursor: pointer;
    background: var(--navy-2); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.15s;
}
.region-card:hover { border-color: var(--sea-light); transform: translateY(-2px); }
.region-card.selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242, 201, 76, 0.3); }
.region-card.locked { opacity: 0.6; }
.rc-top { display: flex; justify-content: space-between; font-size: 0.78rem; }
.rc-diff { color: var(--gold); }
.rc-name { font-size: 1.15rem; font-weight: 900; margin: 2px 0; }
.rc-fish { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.rc-badges { min-height: 4px; }

/* 물고기 카드 */
.fish-card, .dex-card, .gear-card, .best-card {
    position: relative; background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer;
    transition: transform 0.15s, border-color 0.2s;
}
.fish-card:hover, .dex-card:hover, .gear-card:hover { transform: translateY(-3px); border-color: var(--sea-light); }
.fc-name, .dex-name { font-size: 1.2rem; font-weight: 900; margin-top: 4px; }
.fc-badges { min-height: 22px; margin: 4px 0; }
.fc-power { font-size: 0.8rem; color: var(--gold); margin: 4px 0; }

.dex-card { text-align: center; }
.dex-card:not(.caught) .dex-name { color: var(--muted); }
.dex-rec { font-size: 0.82rem; margin-top: 6px; color: var(--gold); }
.dex-card:not(.caught) .dex-rec { color: var(--muted); }

/* 낚시 방법 */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.method-card {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 46px 20px; border-radius: 22px; cursor: pointer; color: var(--white);
    border: 2px solid var(--line); box-shadow: var(--shadow); transition: transform 0.15s, border-color 0.2s;
}
.method-casting { background: linear-gradient(160deg, #6b3a0c, #2a1a0a 70%); }
.method-jigging { background: linear-gradient(160deg, #0b4f86, #071d36 70%); }
.method-card:hover:not(.disabled) { transform: translateY(-4px); border-color: #fff; }
.method-card.disabled { opacity: 0.35; cursor: not-allowed; filter: grayscale(0.8); }
.mc-icon { font-size: 4rem; }
.mc-title { font-size: 2rem; font-weight: 900; letter-spacing: 0.08em; }
.mc-desc { color: #d6e2ee; text-align: center; }

/* 장비 */
.gear-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.step {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
    background: var(--navy-2); border: 2px solid var(--line); color: var(--white);
    border-radius: 12px; padding: 10px 12px; cursor: pointer; min-width: 0;
}
.step span { font-weight: 900; }
.step small { color: var(--muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.step.done small { color: var(--green); }
.step.active { border-color: var(--sea-light); background: var(--navy-3); }

.gear-card { cursor: default; display: flex; flex-direction: column; gap: 3px; }
.gear-card.selected { border-color: var(--green); box-shadow: 0 0 0 2px rgba(61, 220, 151, 0.3); }
.gear-img { width: 100%; aspect-ratio: 5 / 3; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.2); border-radius: 10px; overflow: hidden; }
.gear-img svg { width: 90%; height: 90%; }
.gear-img img { width: 100%; height: 100%; object-fit: contain; }
.gear-name { font-weight: 900; font-size: 1.02rem; margin-top: 6px; }
.gear-brand { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; }
.gear-target { font-size: 0.82rem; color: #c9d8e8; }
.gear-meta { font-size: 0.8rem; color: var(--muted); }
.gear-power { font-size: 0.8rem; color: var(--muted); }
.gear-power span { color: var(--gold); }
.gear-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.gear-actions .btn { flex: 1; padding: 8px 4px; }

.gear-bottom {
    position: sticky; bottom: 0; z-index: 5; margin-top: 18px; padding: 12px 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(6, 17, 31, 0.95); border: 1px solid var(--line); border-radius: var(--radius);
    backdrop-filter: blur(8px);
}
.btn-go { font-size: 1.15rem; padding: 14px 30px; }

/* 기록 */
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.tile b { display: block; font-size: 1.5rem; color: var(--gold); }
.tile span { color: var(--muted); font-size: 0.85rem; }
.best-card { display: flex; gap: 12px; align-items: center; cursor: default; }
.best-card .fish-pic { width: 42%; flex-shrink: 0; }
.best-name { font-weight: 900; font-size: 1.1rem; }
.best-size { margin: 2px 0; }
.best-size b { color: var(--gold); }
.history { display: flex; flex-direction: column; gap: 6px; }
.hist-row {
    display: grid; grid-template-columns: 120px 1fr 1fr 1fr 130px; gap: 8px; align-items: center;
    padding: 8px 12px; background: var(--navy-2); border-radius: 10px; font-size: 0.88rem;
}
.empty { text-align: center; padding: 40px 10px; color: var(--muted); background: var(--navy-2); border-radius: var(--radius); border: 1px dashed var(--line); }

.grade {
    display: inline-block; font-size: 0.7rem; font-weight: 900; padding: 2px 8px; border-radius: 6px; letter-spacing: 0.04em;
}
.grade-normal { background: #2a3a4d; color: #c9d8e8; }
.grade-good { background: #135c3f; color: #9ff5cc; }
.grade-big { background: #134e7a; color: #a9dcff; }
.grade-trophy { background: linear-gradient(90deg, #a77b06, #f2c94c); color: #1a1000; }
.grade-monster { background: linear-gradient(90deg, #8a1020, #ff5a5f, #f2c94c); color: #fff; }
.grade.big { font-size: 1.3rem; padding: 6px 16px; border-radius: 10px; }

/* ---------------- 낚시 화면 ---------------- */
.screen.screen-fishing { max-width: none; padding: 0; }
.screen-fishing.active { display: flex; flex-direction: column; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
.fish-hud {
    display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 8px 14px; background: var(--navy-2); border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.hud-right { color: var(--muted); }
.stage { position: relative; flex: 1; min-height: 240px; overflow: hidden; touch-action: none; }
#sea-canvas { position: absolute; inset: 0; display: block; }
.depth-meter {
    position: absolute; top: 10px; left: 10px; background: rgba(4, 10, 20, 0.75); border: 1px solid var(--line);
    padding: 6px 12px; border-radius: 10px; font-size: 0.9rem;
}
.depth-meter b { font-size: 1.4rem; color: var(--sea-light); }
.banner {
    position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
    max-width: calc(100% - 24px); text-align: center;
    background: rgba(4, 10, 20, 0.82); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
    font-weight: 700; font-size: 0.95rem; pointer-events: none;
}
.banner.good { border-color: var(--green); color: #b8ffe0; }
.banner.warn { border-color: var(--orange); color: #ffd9b0; }
.banner.danger { border-color: var(--red); color: #fff; background: rgba(160, 20, 30, 0.85); }
.combo {
    position: absolute; top: 18%; left: 50%; transform: translateX(-50%);
    font-weight: 900; font-size: 1.2rem; color: var(--gold); opacity: 0; pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); white-space: nowrap;
}
.combo.good { color: var(--green); }
.combo.warn { color: var(--orange); }
.big-text {
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    width: 94%; text-align: center; line-height: 1.05;
    font-size: clamp(2.2rem, 9vw, 5rem); font-weight: 900; letter-spacing: 0.04em;
    color: #fff; opacity: 0; pointer-events: none;
    text-shadow: 0 0 30px rgba(79, 209, 255, 0.9), 0 6px 0 #0b6aa8;
}
.big-text.huge { color: var(--gold); text-shadow: 0 0 40px rgba(255, 120, 40, 0.95), 0 6px 0 #8a1020; }
.big-text.fail { color: #ffb3b5; text-shadow: 0 0 30px rgba(255, 60, 60, 0.9), 0 5px 0 #5a0a10; font-size: clamp(1.8rem, 7vw, 3.6rem); }

.cast-gauge {
    display: none; position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
    width: min(520px, 86%); background: rgba(4, 10, 20, 0.85); border: 1px solid var(--line);
    border-radius: 12px; padding: 10px 12px; align-items: center; gap: 10px;
}
.cast-gauge.show { display: flex; }
.cg-track { position: relative; flex: 1; height: 16px; border-radius: 8px; background: #13263d; overflow: hidden; }
.cg-track i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #1aa0e6, #ffd34d, #ff5a5f); }
.cg-track em { position: absolute; top: -2px; bottom: -2px; width: 14px; margin-left: -7px; background: rgba(61, 220, 151, 0.85); border-radius: 4px; box-shadow: 0 0 10px var(--green); }
.cast-gauge span { font-weight: 900; min-width: 48px; text-align: right; }

.fight-hud {
    display: none; position: absolute; top: 10px; right: 10px; width: min(300px, 60%);
    background: rgba(4, 10, 20, 0.82); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.fight-hud.show { display: block; }
.fh-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.8rem; }
.fh-row label { width: 58px; flex-shrink: 0; color: var(--muted); white-space: nowrap; }
.bar { position: relative; flex: 1; height: 14px; border-radius: 7px; background: #13263d; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--green); transition: width 0.08s linear; }
.bar-tension i.warn { background: var(--orange); }
.bar-tension i.danger { background: var(--red); }
.bar-tension em { position: absolute; top: 0; bottom: 0; left: 88%; width: 2px; background: rgba(255, 255, 255, 0.6); }
.bar-stamina i { background: linear-gradient(90deg, #ff9f43, #ff5a5f); }
.fh-dist { text-align: right; font-size: 0.85rem; }
.fh-dist b { font-size: 1.3rem; color: var(--sea-light); }

.controls {
    display: flex; gap: 12px; padding: 12px; background: var(--navy); border-top: 1px solid var(--line);
    min-height: 96px; touch-action: none; user-select: none; -webkit-user-select: none;
}
.ctrl-btn {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: none; border-radius: 16px; color: #fff; cursor: pointer; min-height: 72px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); transition: transform 0.06s, box-shadow 0.06s, filter 0.1s;
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.ctrl-btn.btn-primary { background: linear-gradient(180deg, #1aa0e6, #0b6aa8); }
.ctrl-btn.btn-accent { background: linear-gradient(180deg, #ffb547, #e07b12); }
.ctrl-btn.pressed { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); filter: brightness(1.2); }
.cb-label { font-size: 1.5rem; font-weight: 900; letter-spacing: 0.05em; }
.cb-sub { font-size: 0.78rem; opacity: 0.9; }
.cb-key {
    position: absolute; top: 6px; right: 8px; font-size: 0.65rem; font-weight: 800;
    background: rgba(0, 0, 0, 0.3); padding: 1px 6px; border-radius: 4px;
}
.fishing-foot {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--navy);
}

/* ---------------- 모달 ---------------- */
.modal {
    position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
    background: rgba(2, 6, 12, 0.75); backdrop-filter: blur(4px); padding: 16px;
}
.modal.show { display: flex; }
.modal-box {
    position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: hidden;
    background: linear-gradient(180deg, #102a47, #08182b); border: 1px solid rgba(79, 209, 255, 0.35);
    border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); display: flex;
}
.modal-body { overflow-y: auto; padding: 22px; width: 100%; }
.modal-close {
    position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 1rem; cursor: pointer;
}
.detail h3 { margin: 12px 0 2px; font-size: 1.4rem; }
.detail h4 { margin: 18px 0 8px; color: #9fd8ff; }
.detail p { color: #d6e2ee; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.detail-grid > div { background: rgba(0, 0, 0, 0.2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.detail-grid .span2 { grid-column: span 2; }
.detail-grid span { font-size: 0.75rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.spec-table th, .spec-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--muted); width: 35%; font-weight: 600; }
.stat-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 0.85rem; }
.stat-row span { width: 82px; color: var(--muted); }
.stat-row b { color: var(--gold); font-size: 0.8rem; min-width: 70px; text-align: right; }
.stat-bar { flex: 1; height: 8px; border-radius: 4px; background: #13263d; overflow: hidden; }
.stat-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1aa0e6, #4fd1ff); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.detail-actions .btn { flex: 1 1 140px; }
.help .steps { padding-left: 20px; }
.help .steps li { margin: 6px 0; }

.result { text-align: center; }
.result h3 { margin: 6px 0; font-size: 1.5rem; }
.result-size { font-size: 1.2rem; }
.result-size b { font-size: 2.2rem; color: var(--gold); }
.result-meta { margin: 12px 0 4px; display: flex; flex-direction: column; gap: 3px; font-size: 0.92rem; }
.new-record {
    display: block; width: fit-content; margin-left: auto; margin-right: auto; background: linear-gradient(90deg, #f2c94c, #ff7b2c); color: #1a0d00;
    font-weight: 900; padding: 6px 18px; border-radius: 999px; margin-bottom: 10px; letter-spacing: 0.06em;
}
.fail-title { font-size: 1.8rem; font-weight: 900; color: #ffb3b5; margin: 10px 0; }

/* ---------------- 지깅 SONAR (TARGET DEPTH / JIG DEPTH) ---------------- */
.depth-meter.is-sonar { left: auto; right: 10px; padding: 8px 10px; min-width: 150px; }
.sonar { font-size: 0.78rem; }
.sn-title { font-size: 0.65rem; letter-spacing: 0.2em; color: var(--green); font-weight: 900; }
.sn-target, .sn-jig { font-weight: 700; color: #c9d8e8; }
.sn-target b { color: var(--gold); font-size: 1.15rem; }
.sn-jig b { color: var(--sea-light); font-size: 1.15rem; }
.sn-rows { margin: 4px 0; border-left: 2px solid rgba(61, 220, 151, 0.4); }
.sn-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 4px; padding: 1px 6px; color: var(--muted); min-height: 20px; }
.sn-row i { font-style: normal; }
.sn-row em { font-style: normal; font-weight: 900; color: var(--sea-light); }
.sn-row.t { background: rgba(242, 201, 76, 0.12); color: var(--gold); font-weight: 800; }
.sn-row.hit { background: rgba(61, 220, 151, 0.25); color: #fff; }
.sn-row.hit em { color: var(--green); }

/* 릴 단독 선택 안내 */
.reel-solo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-bottom: 12px; padding: 12px 14px; border-radius: var(--radius);
    background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61, 220, 151, 0.4); }
.reel-solo b { color: var(--green); }
.reel-solo .btn { min-width: 180px; }

/* 사실적인 물고기 이미지 */
.fish-pic img.fish-real { width: 96%; height: 100%; object-fit: contain; }
.mini-fish img.fish-real { width: 72px; height: 36px; object-fit: contain; }
.dex-card:not(.caught) img.fish-real { opacity: 0.85; }
