@font-face { font-family: "OMC Round"; src: url("../fonts/round.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #120d22; --ink: #fff; --ink2: rgba(255, 255, 255, .78); --ink3: rgba(255, 255, 255, .55);
  --glass: rgba(18, 16, 40, .42); --glass-b: rgba(255, 255, 255, .2); --card: rgba(255, 255, 255, .07);
  --gold1: #ffd25e; --gold2: #ff8f1f; --gold-edge: #b8560a; --teal: #2ee6c5;
  --font: "OMC Round", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
/* iPhone: holding a finger on something that cannot be selected makes Safari select the nearest text that can, and
   the reel button sits right above the article. So nothing on the page is selectable and nothing shows the long-press
   menu, except the pictures that are there to be saved or scanned (the share card and the two tip codes). */
html { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.share-card img, .tip-card img { -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
body {
  background: radial-gradient(120% 70% at 50% 0%, #4a2a6b 0%, #241640 45%, var(--bg) 80%) fixed, var(--bg);
  color: var(--ink); font: 500 16px/1.55 var(--font); -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--gold1); }
img { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }

/* ---- frame ---- */
.omc-wrap { display: grid; justify-items: center; gap: 12px; }
.omc-row { display: flex; align-items: flex-start; justify-content: center; gap: 20px; width: 100%; }
.stage { position: relative; width: 100vw; height: 100svh; height: 100dvh; overflow: hidden; background: #1a1230; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
#bg, #view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .36s ease; }
.travel #bg, .travel #view { opacity: 0; }   /* on the way to another place */
@media (min-width: 720px) and (min-height: 560px) {
  .omc-wrap { padding: 16px 16px 0; }
  .stage { height: min(calc(100dvh - 32px), 940px); width: min(calc(min(calc(100dvh - 32px), 940px) * .5625), 540px); border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12); }
}

/* ---- glass HUD ---- */
.glass { background: var(--glass); border: 1px solid var(--glass-b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.hud-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: max(10px, env(safe-area-inset-top)) 10px 6px; z-index: 2; }
.hud-top .sp { flex: 1; }
.round { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 0; flex: none; }
.round img { width: 26px; height: 26px; object-fit: contain; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 11px 0 4px; border-radius: 17px; white-space: nowrap; flex: none; font-size: 15px; }
.pill img { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.pill b { font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
#phase b { font-size: 13px; font-weight: 600; }
@media (max-width: 430px) { #phase b { display: none; } #phase { padding-right: 4px; } .hud-top { gap: 5px; padding-left: 8px; padding-right: 8px; } }
/* the framed game on a desktop can be as narrow as a phone while the window is wide: go by the frame, not the window
   (the trophy was pushed out of the bar by "Night · Thunderstorm") */
.stage { container-type: inline-size; }
@container (max-width: 520px) { #phase b { display: none; } #phase { padding-right: 4px; } }
@container (max-width: 430px) { #btn-view { width: 32px; padding: 0; } #btn-view span { display: none; } .goal { max-width: calc(100% - 62px); } }
.hud-top button:active, .dock button:active { transform: scale(.94); }

/* ---- dock: four round buttons around the big reel button ---- */
.dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr 112px 1fr 1fr; align-items: end; justify-items: center;
  padding: 0 8px max(14px, env(safe-area-inset-bottom)); pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock-btn { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; padding: 0; margin-bottom: 14px; }
.dock-btn img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); }
.dock-btn small { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
#btn-chum.on { box-shadow: 0 0 0 2px var(--gold1), 0 0 18px rgba(255, 200, 80, .6); }
.reel { position: relative; width: 98px; height: 98px; border-radius: 50%; padding: 0; border: 0; display: grid; place-items: center; margin-bottom: 6px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .3), rgba(20, 130, 118, .6) 55%, rgba(8, 40, 50, .85)); box-shadow: 0 0 0 3px rgba(255, 255, 255, .24), 0 10px 28px rgba(0, 0, 0, .45), inset 0 2px 6px rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .12s; touch-action: none; }
.reel img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); pointer-events: none; }
.reel svg { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); pointer-events: none; overflow: visible; }
.arc-track { fill: none; stroke: rgba(0, 0, 0, .35); stroke-width: 7; }
.arc-val { fill: none; stroke: var(--teal); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 289.03; stroke-dashoffset: 289.03; }
.reel.holding, .reel:active { transform: scale(.95); }
.reel.strike { animation: strike .5s ease-in-out infinite; background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .4), rgba(220, 50, 40, .78) 55%, rgba(90, 10, 10, .9)); }
.reel.danger { animation: shake .12s linear infinite; }
@keyframes strike { 50% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(255, 90, 70, .7), 0 0 34px rgba(255, 80, 60, .8); } }
@keyframes shake { 25% { transform: translate(1px, -1px); } 75% { transform: translate(-1px, 1px); } }
.dist { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); transition: color .15s, font-size .15s; }
.dist.out { color: #ffd23f; font-size: 15px; }   /* the fish is taking line */
.dist.low { color: #ff6b5c; font-size: 15px; }   /* and there is not much left */

.prompt { position: absolute; left: 50%; bottom: calc(140px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2; padding: 8px 18px; border-radius: 20px; white-space: nowrap; pointer-events: none;
  background: rgba(14, 12, 30, .5); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 700; font-size: 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.prompt.soft { opacity: .85; }
.prompt.aim { color: var(--gold1); }
.prompt.warn { background: linear-gradient(180deg, rgba(255, 160, 40, .88), rgba(220, 90, 20, .88)); }
.prompt.strike { background: linear-gradient(180deg, #ff5a4a, #d4231a); border-color: rgba(255, 255, 255, .5); font-size: 26px; padding: 8px 28px; animation: pop .4s ease-in-out infinite alternate; }
@keyframes pop { to { transform: translateX(-50%) scale(1.1); } }

.coach { position: absolute; left: 10px; right: 10px; top: calc(94px + env(safe-area-inset-top)); z-index: 2; display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 16px;
  background: rgba(14, 12, 30, .62); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 15px; line-height: 1.45; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.coach b { flex: none; color: var(--gold1); font-weight: 700; }
.coach.show { opacity: 1; transform: none; }

.toast { position: absolute; left: 50%; top: 27%; z-index: 3; transform: translate(-50%, 10px) scale(.9); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .18s, transform .25s cubic-bezier(.2, 1.6, .4, 1);
  font-size: 30px; font-weight: 700; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 22px rgba(0, 0, 0, .55); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast.gold { background: linear-gradient(180deg, #fff3b0, #ffc23d 50%, #ff8a1f); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 3px 0 rgba(120, 50, 0, .6)) drop-shadow(0 0 16px rgba(255, 180, 60, .6)); }
.toast.red { color: #ffd9d4; text-shadow: 0 3px 0 rgba(120, 10, 0, .6), 0 0 22px rgba(255, 40, 20, .7); }

/* ---- grandpa's current goal: a chip under the top bar ---- */
.goal { position: absolute; left: 10px; top: calc(max(10px, env(safe-area-inset-top)) + 46px); z-index: 2; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 136px); height: 32px; padding: 0 12px 0 9px; border-radius: 16px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.goal i { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--gold1); flex: none; }
.goal span { overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.goal b { color: var(--gold1); font-variant-numeric: tabular-nums; }
.goal.done { background: linear-gradient(180deg, var(--gold1), var(--gold2)); border-color: transparent; animation: goalpop .5s cubic-bezier(.2, 1.6, .4, 1); }
.goal.done span { text-shadow: 0 1px 1px rgba(120, 50, 0, .6); }
.goal.done i { background: #fff; border-color: #fff; }
.goal.done b { color: #fff; }
@keyframes goalpop { from { transform: scale(.8); } 60% { transform: scale(1.08); } }
.fighting .goal { display: none; }
/* just looking: a chip opposite the goal puts the rod down; everything on the glass fades and a tap brings it back */
#btn-view { position: absolute; right: 10px; top: calc(max(10px, env(safe-area-inset-top)) + 46px); z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px 0 9px; border-radius: 16px; font-size: 13px; font-weight: 600; white-space: nowrap; }
#btn-view svg { width: 18px; height: 18px; flex: none; }
#btn-view:active { transform: scale(.94); }
@media (max-width: 430px) { #btn-view { width: 32px; padding: 0; } #btn-view span { display: none; } .goal { max-width: calc(100% - 62px); } }
.hud-top, .dock, .goal, #btn-view { transition: opacity .45s; }
.viewing .hud-top, .viewing .dock, .viewing .goal, .viewing .coach, .viewing .prompt, .viewing .toast, .viewing #btn-view { opacity: 0 !important; pointer-events: none !important; }
.view-tip { position: absolute; left: 50%; bottom: calc(44px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2; padding: 8px 18px; border-radius: 20px; font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; animation: viewtip 5.5s ease forwards; }
@keyframes viewtip { 0% { opacity: 0; } 12%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* ---- the fight: line tension gauge under the top bar, and the big arrow ---- */
.fight { position: absolute; left: 14px; right: 14px; top: calc(max(10px, env(safe-area-inset-top)) + 50px); z-index: 2; pointer-events: none; }
.tens { position: relative; display: flex; height: 16px; border-radius: 9px; background: rgba(10, 12, 26, .6); border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.tz { height: 100%; }
.z-slack { width: 12.2%; background: #6b7484; border-radius: 8px 0 0 8px; }
.z-ok { width: 35.6%; background: linear-gradient(180deg, #5cf0a4, #1fb86a); }
.z-sweet { width: 32.2%; background: linear-gradient(180deg, #ffe27a, #ffb21f); }
.z-red { flex: 1; background: linear-gradient(180deg, #ff7a66, #d92a1e); border-radius: 0 8px 8px 0; }
#tens-needle { position: absolute; top: -7px; left: 0; width: 6px; height: 28px; margin-left: -3px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px rgba(10, 12, 26, .85), 0 0 10px rgba(255, 255, 255, .9); }
.fight.sweet .z-sweet { box-shadow: 0 0 14px rgba(255, 200, 70, .95); filter: brightness(1.15); }
.fight.danger .tens { animation: shake .1s linear infinite; }
.fight.danger .z-red { filter: brightness(1.3); box-shadow: 0 0 14px rgba(255, 60, 40, .9); }
.fight-row { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; min-height: 22px; font-size: 11px; font-weight: 700; color: var(--ink2); text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
#fight-combo { font-size: 21px; line-height: 1; color: var(--gold1); text-shadow: 0 2px 0 rgba(90, 40, 0, .7), 0 0 12px rgba(255, 190, 60, .7); }
.fighting .coach { top: calc(104px + env(safe-area-inset-top)); }
.qte { position: absolute; left: 50%; top: 61%; z-index: 3; width: 128px; height: 128px; margin: -64px 0 0 -64px; display: grid; place-items: center; pointer-events: none; --qc: #ffcf4a; animation: qin .22s cubic-bezier(.2, 1.7, .4, 1); }
.qte::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .28), rgba(20, 16, 44, .74) 70%); border: 2px solid rgba(255, 255, 255, .35); box-shadow: 0 0 34px var(--qc), inset 0 0 18px rgba(255, 255, 255, .2); }
.qte-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.qte-track { fill: none; stroke: rgba(0, 0, 0, .4); stroke-width: 7; }
.qte-time { fill: none; stroke: var(--qc); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 282.74; }
.qte-arrow { position: relative; width: 70px; height: 70px; }
.qte-arrow svg { display: block; width: 100%; height: 100%; fill: var(--qc); stroke: rgba(20, 10, 0, .55); stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 10px var(--qc)); animation: nudge .42s ease-in-out infinite; }
.d-right .qte-arrow { transform: rotate(90deg); } .d-down .qte-arrow { transform: rotate(180deg); } .d-left .qte-arrow { transform: rotate(270deg); }
@keyframes nudge { 50% { transform: translateY(-10px); } }
#qte-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; white-space: nowrap; font-weight: 700; font-size: 21px; text-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 0 14px var(--qc); }
.k-jump { --qc: #5fe1ff; } .k-land { --qc: #6dff9c; }
.qte.hit { animation: qhit .28s ease-out forwards; }
.qte.miss { animation: qmiss .28s ease-out forwards; filter: grayscale(1); }
.qte.wob { animation: qwob .25s; }
@keyframes qin { from { transform: scale(.4); opacity: 0; } }
@keyframes qhit { to { transform: scale(1.7); opacity: 0; } }
@keyframes qmiss { to { transform: scale(.7) translateY(14px); opacity: 0; } }
@keyframes qwob { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; color: #fff; }
.btn img { width: 24px; height: 24px; object-fit: contain; }
.btn--gold { background: linear-gradient(180deg, var(--gold1), var(--gold2)); text-shadow: 0 1px 1px rgba(120, 50, 0, .6); box-shadow: 0 4px 0 var(--gold-edge), 0 10px 22px rgba(255, 140, 30, .35), inset 0 2px 0 rgba(255, 255, 255, .45); }
.btn--gold:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold-edge), inset 0 2px 0 rgba(255, 255, 255, .45); }
.btn--glass { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.sm img { width: 20px; height: 20px; }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.6); }
.btn.danger { color: #ff9b8f; }
.btn.wide { width: 100%; }
.cost { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.cost img { width: 20px; height: 20px; }

/* ---- the catch reveal ---- */
.reveal { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; padding: max(16px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 32%, rgba(40, 50, 90, .55), rgba(6, 8, 20, .92) 70%); opacity: 0; transition: opacity .25s; overflow: hidden; }
.reveal.show { opacity: 1; }
.rays { position: absolute; left: 50%; top: 32%; width: 180vmax; height: 180vmax; transform: translate(-50%, -50%); pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .12) 0 7deg, transparent 7deg 20deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 55%); mask: radial-gradient(circle, #000 0, transparent 55%); animation: spin 22s linear infinite; }
.reveal.r2 .rays { background: repeating-conic-gradient(rgba(56, 189, 248, .22) 0 7deg, transparent 7deg 20deg); opacity: .7; }
.reveal.r3 .rays { background: repeating-conic-gradient(rgba(192, 132, 252, .28) 0 7deg, transparent 7deg 20deg); opacity: .8; }
.reveal.r4 .rays { background: repeating-conic-gradient(rgba(251, 191, 36, .38) 0 7deg, transparent 7deg 18deg); opacity: 1; animation-duration: 12s; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.rv-fish { position: relative; align-self: stretch; min-height: 0; width: min(92%, 440px); display: grid; place-items: center; animation: rise .5s cubic-bezier(.2, 1.5, .4, 1) both; }
/* the fish is alive on a canvas (fishcard.js): it flaps, drips and catches the light, so the box leaves it room.
   On a short screen with a full card (tags, a long line of grandpa's, the fight time) the fish gives way, not the buttons. */
.rv-fish canvas { position: relative; display: block; width: 100%; height: 100%; max-height: min(34vh, 300px); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.rv-fish .ring { position: absolute; width: min(78vw, 360px); aspect-ratio: 1; border-radius: 50%; display: none; border: 3px solid var(--ring, #ffd25e); box-shadow: 0 0 30px var(--ring, #ffd25e), inset 0 0 30px var(--ring, #ffd25e); opacity: .8; animation: pulse 2s ease-in-out infinite; }
.reveal.r2 .ring { display: block; --ring: rgba(56, 189, 248, .8); }
.reveal.r3 .ring { display: block; --ring: rgba(192, 132, 252, .85); }
.reveal.r4 .ring { display: block; --ring: rgba(255, 200, 70, .95); }
.rv-fish.v-gold canvas { filter: sepia(.7) saturate(2.4) hue-rotate(-14deg) brightness(1.12) drop-shadow(0 0 22px rgba(255, 200, 70, .9)); }
.rv-fish.v-albino canvas { filter: grayscale(1) brightness(1.4) contrast(.85) drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
@keyframes rise { from { transform: translateY(40px) scale(.6); opacity: 0; } }
@keyframes pulse { 50% { transform: scale(1.04); opacity: .55; } }
.rv-panel { position: relative; width: min(100%, 420px); padding: 16px 16px 10px; border-radius: 24px; text-align: center;
  background: linear-gradient(180deg, rgba(36, 40, 78, .9), rgba(16, 18, 40, .95)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
  animation: rise .45s .1s cubic-bezier(.2, 1.4, .4, 1) both; }
.rv-stars { margin-top: -36px; display: inline-block; padding: 3px 16px; border-radius: 999px; font-size: 22px; letter-spacing: 2px; color: var(--c);
  background: linear-gradient(180deg, #33264a, #18122a); border: 2px solid var(--c); text-shadow: 0 0 10px var(--c); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.rv-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; min-height: 6px; margin: 8px 0 2px; }
.tag { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.tag.new { background: linear-gradient(180deg, #ff6b5a, #e0352a); } .tag.rec { background: linear-gradient(180deg, #4ade80, #16a34a); }
.tag.clean { background: linear-gradient(180deg, #5fe1ff, #1d8fd1); } .tag.long { background: linear-gradient(180deg, #ffb357, #ea7a17); } .tag.giant { background: linear-gradient(180deg, #c084fc, #8b3fd9); } .tag.var-gold { background: linear-gradient(180deg, #ffd25e, #f59e0b); color: #4a2600; } .tag.var-albino { background: #e8eaf0; color: #333; }
.rv-panel h2 { margin: 4px 0 0; font-size: 28px; line-height: 1.15; font-weight: 700; }
.rv-rarity { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.rv-weight { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 2px; }
.rv-weight img { width: 34px; height: 34px; object-fit: contain; }
.rv-weight b { font-size: 42px; line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff6c4, #ffcf4a 55%, #ff9a1f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(100, 40, 0, .6)); }
.rv-weight b.done { animation: popw .35s; }
@keyframes popw { 50% { transform: scale(1.15); } }
.rv-say { margin: 6px 0 2px; font-size: 14.5px; color: var(--ink2); }
.rv-odds { margin: 0; font-size: 12px; color: var(--ink3); }
.rv-time { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0 0 2px; font-size: 13.5px; font-weight: 700; color: #ffd9a0; font-variant-numeric: tabular-nums; }
.rv-time svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.dex-note { margin: 8px 0 0; font-size: 12.5px; color: var(--ink3); text-align: center; }
.rv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.rv-actions .btn { min-width: 0; padding: 0 10px; font-size: 15px; }
.rv-actions .wide, .rv-actions .rv-links { grid-column: 1 / -1; }
.rv-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.rv-share { border: 0; background: none; color: var(--gold1); font-weight: 700; min-height: 34px; text-decoration: underline; text-underline-offset: 3px; }

/* ---- intro ---- */
.intro { position: absolute; inset: 0; z-index: 8; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: max(26px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(20, 10, 40, .3), rgba(20, 10, 40, 0) 34%, rgba(10, 6, 20, 0) 60%, rgba(10, 6, 20, .5)), url("/img/title.webp") center / cover, #2a1a40; transition: opacity .6s; }
.intro.out { opacity: 0; pointer-events: none; }
.intro-head { text-align: center; }
.intro h2 { margin: 2vh 0 8px; font-size: clamp(42px, 12vw, 58px); line-height: 1; font-weight: 700; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff, #ffe7a8 60%, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 rgba(90, 30, 60, .55)) drop-shadow(0 0 24px rgba(255, 160, 80, .45)); }
html[lang="zh"] .intro h2 { font-weight: 900; letter-spacing: .06em; }
.chip { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(20, 12, 40, .45); border: 1px solid rgba(255, 255, 255, .25); font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#intro-lines { padding: 14px 16px; border-radius: 18px; background: rgba(20, 12, 40, .4); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#intro-lines p { margin: 0 0 .5em; font-size: 16.5px; line-height: 1.55; opacity: 0; transform: translateY(6px); transition: opacity .9s, transform .9s; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
#intro-lines p:last-child { margin: 0; font-weight: 700; color: #ffe2a3; }
#intro-lines p.in { opacity: 1; transform: none; }
.intro-actions { grid-row: 4; display: flex; gap: 10px; justify-content: space-between; align-items: center; }
#intro-go { opacity: 0; transition: opacity .6s; min-height: 54px; padding: 0 26px; font-size: 18px; }
#intro-go.in { opacity: 1; }
#intro-skip { border: 0; background: rgba(20, 12, 40, .5); border-radius: 18px; padding: 8px 14px; font-size: 13px; color: var(--ink2); }

/* ---- panels ---- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(6, 4, 16, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
#panel { width: min(96vw, 520px); max-width: none; max-height: min(88svh, 760px); margin: auto; }
.sheet { position: relative; display: flex; flex-direction: column; max-height: min(88svh, 760px); border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, rgba(42, 34, 82, .97), rgba(18, 16, 40, .98)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .2); }
.sheet header { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 18px; }
.sheet h2 { flex: 1; margin: 0; display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; }
.sheet h2 small { font-size: 14px; color: var(--ink3); font-weight: 600; }
.sheet h2 .cost { margin-left: auto; font-size: 16px; color: var(--gold1); }
.sheet-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); flex: none; }
.sheet-body { overflow: auto; padding: 4px 14px 16px; overscroll-behavior: contain; }
.back { border: 0; background: rgba(255, 255, 255, .12); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; flex: none; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.tab { flex: none; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); font-weight: 700; font-size: 14px; }
.tab.on { background: linear-gradient(180deg, var(--gold1), var(--gold2)); border-color: transparent; color: #fff; text-shadow: 0 1px 1px rgba(120, 50, 0, .6); }
.tab em { font-style: normal; font-weight: 600; font-size: 12px; opacity: .8; margin-left: 2px; }
/* the fishbook's three places share the row, each with its count under its name, so none is pushed off a narrow screen */
.dex .tabs { overflow-x: visible; }
.dex .tab { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 44px; padding: 4px 6px; line-height: 1.15; font-size: 13.5px; }
.dex .tab em { margin: 0; }
.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 16px; background: var(--card); border: 1px solid rgba(255, 255, 255, .08); }
.vol { display: flex; align-items: center; gap: 10px; flex: none; }
.vol input { width: min(36vw, 170px); height: 28px; margin: 0; accent-color: var(--gold1); touch-action: pan-x; }
.vol input:disabled { opacity: .35; }
.tip-intro { margin: 2px 4px 12px; font-size: 14.5px; line-height: 1.65; color: var(--ink2); }
.tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.tip-card { margin: 0; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid rgba(255, 255, 255, .08); text-align: center; }
.tip-card h3 { margin: 0 0 8px; font-size: 15px; }
.tip-card img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; }
.tip-card figcaption { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--ink3); }
.tip-card figcaption .btn { display: flex; margin: 8px auto 0; width: fit-content; text-decoration: none; color: var(--ink); }
.tip-note { margin: 12px 4px 0; font-size: 12px; line-height: 1.55; color: var(--ink3); }
@media (max-width: 430px) { .tip-grid { grid-template-columns: 1fr; } .tip-card img { width: min(100%, 230px); margin: 0 auto; } }
.row.using { border-color: rgba(46, 230, 197, .55); background: rgba(46, 230, 197, .1); }
.row > div { min-width: 0; }
.row b { display: block; font-size: 15px; }
.row b em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--ink3); margin-left: 4px; }
.row small { display: block; color: var(--ink3); font-size: 12.5px; line-height: 1.45; }
.row .btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.pill-on { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(46, 230, 197, .2); color: var(--teal); white-space: nowrap; }
.muted { color: var(--ink3); font-size: 14px; text-align: center; }
.me { text-align: center; font-weight: 700; }
.row.rank { justify-content: flex-start; }
.row.rank .no { width: 26px; text-align: center; font-weight: 700; color: var(--gold1); }
.row.rank .av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.row.rank b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.rank .val { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.board-rows .btn { justify-self: center; }
.progress { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin: 0 2px 12px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold1), var(--gold2)); }
.dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.dex-card { display: grid; justify-items: center; gap: 2px; padding: 10px 6px 8px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14);
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03) 70%); box-shadow: inset 0 -3px 0 var(--c); }
.dex-card img { width: 100%; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.dex-card.unknown { background: rgba(255, 255, 255, .04); }
.dex-card.unknown img { filter: brightness(0) opacity(.45); }
.dex-card b { font-size: 13.5px; line-height: 1.25; }
.dex-card small { font-size: 11.5px; color: var(--ink3); }
.dex-card .st { color: var(--c); letter-spacing: 1px; }
.chapters { display: grid; gap: 8px; margin-top: 14px; }
.chap { padding: 12px 14px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); }
.chap b { font-size: 16px; } .chap p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink2); }
.sp-detail { text-align: center; }
.sp-detail img { width: 100%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .45)); }
.sp-detail canvas { display: block; width: 100%; height: 190px; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .45)); }
.sp-detail.unknown img { filter: brightness(0) opacity(.45); }
.sp-detail .rv-stars { margin-top: 6px; }
.sp-detail .rv-rarity { display: block; }
.sp-detail .say { font-size: 15px; color: var(--ink2); }
.sp-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; margin: 10px auto; max-width: 340px; }
.sp-detail dt { color: var(--ink3); font-size: 13px; } .sp-detail dd { margin: 0; font-weight: 600; font-size: 14px; }
.sp-detail .first { font-size: 12px; color: var(--ink3); }
.bait-list { display: grid; gap: 8px; }
.bait-pick { text-align: left; padding: 11px 13px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); background: var(--card); }
.bait-pick.on { border-color: rgba(46, 230, 197, .55); background: rgba(46, 230, 197, .1); }
.bait-pick b { display: block; font-size: 15px; } .bait-pick b em { font-style: normal; font-size: 12px; color: var(--ink3); margin-left: 4px; } .bait-pick small { color: var(--ink3); font-size: 12.5px; }

/* journey (maps and grandpa's list) and the forecast */
.maps { display: grid; gap: 8px; }
.map { position: relative; display: grid; grid-template-columns: 124px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid rgba(255, 255, 255, .1); }
.map img { width: 124px; height: 70px; object-fit: cover; border-radius: 10px; display: block; }
.map b { display: block; font-size: 16px; }
.map small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ink3); }
.map small.need { color: var(--gold1); font-weight: 600; }
.map.here { border-color: rgba(46, 230, 197, .55); background: rgba(46, 230, 197, .1); }
.map.locked img { filter: saturate(.4) brightness(.55); }
.map.open { border-color: var(--gold1); box-shadow: 0 0 18px rgba(255, 200, 80, .35); }
.map .lock { position: absolute; left: 56px; top: 50%; width: 28px; height: 28px; margin-top: -14px; fill: #fff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }
.map .progress { height: 6px; margin: 6px 0 0; }
.map .btn { margin-top: 6px; }
.sub { margin: 16px 2px 8px; font-size: 15px; color: var(--ink2); }
.goal-row.done { opacity: .55; }
.goal-row .gstate { flex: none; font-weight: 700; color: var(--gold1); font-variant-numeric: tabular-nums; }
.goal-row.done .gstate { color: var(--teal); }
.goal-row .cost img { width: 16px; height: 16px; }
.journey-link { margin-top: 14px; }
/* its words say what the next place still asks for: a long line, so it wraps inside the button instead of running out of it */
.btn.journey-link { white-space: normal; min-height: 48px; height: auto; padding: 10px 18px; line-height: 1.35; text-align: center; font-size: 15px; border-radius: 24px; overflow-wrap: anywhere; }
.wx-row { justify-content: flex-start; }
.wx-row img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.muted.left { text-align: left; margin: 0 2px 10px; }

/* share dialog */
.share-dialog { width: min(94vw, 420px); max-width: none; max-height: 96svh; overflow: auto; }
.share-wrap { position: relative; padding: 16px; text-align: center; border-radius: 24px; background: linear-gradient(180deg, rgba(42, 34, 82, .98), rgba(18, 16, 40, .98)); border: 1px solid rgba(255, 255, 255, .16); }
.share-title { margin: 2px 0 12px; font-size: 20px; }
.share-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); }
.share-card { position: relative; border-radius: 16px; overflow: hidden; background: #241a3d; aspect-ratio: 4 / 5; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.share-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.share-card .share-loading { position: absolute; inset: 0; display: none; place-items: center; color: var(--ink3); }
.share-card.is-loading .share-loading { display: grid; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.share-actions .btn { min-height: 44px; }
.share-actions .share-native { grid-column: 1 / -1; }
.share-note { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: var(--ink3); }

/* ---- ads (reserved, off) ---- */
.ad-slot { display: none; }
.ad-slot.is-preview { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #333 0 10px, #3c3c3c 10px 20px); color: #999; font-size: 12px; }
.ad-slot.is-preview::after { content: "AD"; }
.ad-rail { width: 160px; height: 600px; flex: none; position: sticky; top: 16px; }
.ad-banner { width: 728px; max-width: 100%; height: 90px; }
@media (max-width: 1099px) { .ad-rail { display: none !important; } }
@media (max-width: 719px) { .ad-banner { display: none !important; } }

/* ---- article ---- */
.omc-content { max-width: 720px; margin: 28px auto 0; padding: 0 18px 30px; color: var(--ink2); }
.omc-content h2 { color: #fff; font-size: 26px; margin: 1.6em 0 .4em; }
.omc-content h3 { color: #fff; font-size: 18px; margin: 1.2em 0 .3em; }
.omc-content p, .omc-content li { font-size: 16.5px; line-height: 1.75; }
.omc-content ul, .omc-content ol { padding-left: 1.3em; }
.omc-content details { border-top: 1px solid rgba(255, 255, 255, .12); padding: 10px 0; }
.omc-content summary { font-weight: 700; cursor: pointer; color: #fff; }
.omc-content .fish-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.omc-content .fish-table th, .omc-content .fish-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.omc-foot { max-width: 720px; margin: 0 auto; padding: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: var(--ink3); }
.omc-foot nav { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.omc-foot a { color: var(--ink2); }
.noscript { padding: 20px; }
