/* Nurikabe-only styles. Header, home, lobby, buttons, modal and toast come from /game-shell.css. */
:root { --nk-sea: #2c4a73; --nk-sea-ink: #e8eef8; --nk-land: #f6f3ec; --nk-grid: rgba(0,0,0,.16); --nk-bad: #d93a32; --nk-good: #1f9a4b; --nk-hint: #f5a524; --hint: #e0870b; --nk-island: #b9e3a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --nk-sea: #5b84c4; --nk-sea-ink: #0f1420; --nk-land: #2a2a31; --nk-grid: rgba(255,255,255,.14); --nk-island: #2f5a32; } }

.nk-daily h2 { margin: 6px 0 4px; font: 700 24px var(--font-display); }
.nk-resume { margin: 10px 0 0; font-size: 14px; }

.nk-game { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; max-width: 720px; }
.nk-game .game-head { grid-template-columns: auto 1fr auto auto auto; }
.nk-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 0; }
.nk-strip:empty { display: none; }
.nk-strip .chip { min-width: 130px; flex: 0 1 190px; position: relative; overflow: hidden; }
.nk-strip .chip .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); transition: width .4s; }
.nk-strip .stat { color: var(--sub); font-size: 14px; }
.nk-strip .stat b { color: var(--text); }

.nk-banner { border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; }
.nk-banner.win { border-color: var(--nk-good); box-shadow: 0 0 0 2px color-mix(in srgb, var(--nk-good) 30%, transparent); }
.nk-banner h3 { margin: 0; font: 700 20px var(--font-display); }
.nk-banner .sub { color: var(--sub); font-size: 14.5px; }
.nk-banner .sub > span, .nk-banner .sub > ol { display: block; margin-top: 4px; }
.nk-banner .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nk-banner .standings { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 3px; }
.nk-banner .standings .pl { display: inline-block; width: 1.6em; color: var(--sub); }
.nk-key b { font-weight: 700; }
.nk-key .k-right { color: var(--nk-sea); } .nk-key .k-miss { color: var(--nk-good); } .nk-key .k-wrong { color: var(--nk-bad); }

.nk-hint { border: 1px solid color-mix(in srgb, var(--nk-hint) 60%, var(--border)); background: color-mix(in srgb, var(--nk-hint) 10%, var(--surface)); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.nk-hint b.title { font-size: 15.5px; }
.nk-hint p { margin: 0; font-size: 14.5px; }
.nk-hint .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nk-hint .actions a { font-size: 14px; color: var(--sub); }

.nk-board-wrap { display: flex; justify-content: center; position: relative; }
.nk-board { width: min(100%, 620px, calc(100dvh - 290px)); min-width: 240px; height: auto; aspect-ratio: 1; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 6px; }
.nk-board-wrap.hidden-board .nk-board { filter: blur(14px); opacity: .5; pointer-events: none; }
.nk-board .cell { fill: var(--nk-land); stroke: var(--nk-grid); stroke-width: 1; }
.nk-board .cell.sea { fill: var(--nk-sea); }
.nk-board .cell.land { fill: var(--nk-island); }
.nk-board .cell.land.hover { fill: color-mix(in srgb, var(--nk-island) 85%, var(--text)); }
.nk-board .cell.hover { fill: color-mix(in srgb, var(--nk-land) 85%, var(--text)); }
.nk-board .cell.sea.hover { fill: color-mix(in srgb, var(--nk-sea) 85%, var(--text)); }
.nk-board .cell.pre-sea { fill: color-mix(in srgb, var(--nk-sea) 35%, var(--nk-land)); }
.nk-board .cell.pre-land { fill: color-mix(in srgb, var(--nk-island) 55%, var(--nk-land)); }
.nk-board .num { font: 700 22px var(--font-display); fill: var(--text); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.nk-board .num.done { fill: var(--sub); opacity: .55; }
.nk-board .num.bad { fill: var(--nk-bad); }
.nk-board .dot { fill: var(--text); opacity: .7; pointer-events: none; }
.nk-board .frame { fill: none; stroke: var(--text); stroke-width: 2.5; pointer-events: none; }
.nk-board .pool { fill: none; stroke: var(--nk-bad); stroke-width: 3; stroke-dasharray: 6 4; pointer-events: none; }
.nk-board .bad-cell { fill: var(--nk-bad); opacity: .18; pointer-events: none; }
.nk-board .hint-focus { fill: none; stroke: var(--nk-hint); stroke-width: 3.5; pointer-events: none; }
.nk-board .hint-target { fill: var(--nk-hint); opacity: .35; pointer-events: none; animation: nk-blink 1.2s ease-in-out infinite; }
@keyframes nk-blink { 50% { opacity: .1; } }
/* Solution overlay (after a race you didn't finish, or Reveal in practice). */
.nk-board .sol-miss { fill: url(#nkMiss); pointer-events: none; }
.nk-board .sol-wrong { fill: var(--nk-bad); opacity: .55; pointer-events: none; }
.nk-board .sol-wrong-x { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; pointer-events: none; }


@media (max-width: 720px) {
  .nk-board { width: 100%; }
  .nk-strip .chip { min-width: 0; flex: 1 1 110px; }
  .nk-board .num { font-size: 20px; }
}

.nk-menu { display: grid; gap: 8px; }
.nk-menu button { text-align: left; padding: 10px 14px; }
