/* Name That Note (run-05): a daily picture game on a cobalt slab. Geist like the catalogue (DESIGN.md § 7.1). */
body.v2 { --t-display: "Geist", ui-sans-serif, system-ui, sans-serif; font-variation-settings: normal; min-height: 100svh; display: flex; flex-direction: column; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.toy-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.toy-back { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--t-card); box-shadow: inset 0 0 0 1px var(--t-line); text-decoration: none; font-size: 15px; font-weight: 600; }
.toy-bar .t-label { color: var(--t-ink-2); font-size: 10px; text-align: right; }
main { flex: 1; display: flex; flex-direction: column; }
.t-stage :focus-visible { outline-color: var(--toy-ink); }

/* The playing slab: title, meta, the picture and its four keys, then Vasya's bubble. */
.nt-stage { flex: 1; margin: 0 12px; padding: 18px 16px 20px; display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: "title" "meta" "board" "talk"; gap: 12px; align-content: start; }
.nt-title { grid-area: title; margin: 0; font: 800 clamp(34px,9.6vw,44px)/.95 var(--t-display); letter-spacing: -.012em; text-wrap: balance; }
.nt-meta { grid-area: meta; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nt-meta .t-label { margin: 0; }
.nt-pips { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nt-pips li { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.nt-pips li.now { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.nt-pips li.right { background: var(--t-mint); box-shadow: inset 0 0 0 2px #141414; }
.nt-pips li.missed { background: #141414; box-shadow: none; }

.nt-board { grid-area: board; display: grid; gap: 14px; min-width: 0; }
.nt-frame { position: relative; margin: 0; aspect-ratio: 3 / 2; padding: 8px; border-radius: 20px; background: #fff; box-shadow: inset 0 -6px 0 rgba(0,0,0,.14), 0 20px 40px -24px rgba(0,0,0,.55); transform: rotate(-1deg); }
.nt-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 13px; background: #e1dfd8; }
.nt-frame-wait { position: absolute; inset: 8px; border-radius: 13px; background: #e1dfd8; }
.nt-frame img:not([hidden]) + .nt-frame-wait { display: none; }
.nt-frame.deal { animation: nt-deal .55s var(--t-spring); }
@keyframes nt-deal { from { transform: translateY(18px) rotate(-4deg) scale(.97); } }
[data-state="loading"] .nt-frame-wait, [data-state="error"] .nt-frame-wait { animation: nt-wait 1.2s ease-in-out 4 alternate; }
@keyframes nt-wait { to { opacity: .55; } }

.nt-options { border: 0; margin: 0; padding: 0; min-width: 0; }
.nt-options legend { padding: 0; margin: 0 0 10px; font-weight: 700; font-size: 17px; line-height: 1.3; }
.nt-keys { display: grid; gap: 8px; }
body.v2 .nt-key { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px 13px; border: 0; border-radius: 16px; background: #fff; color: #141414; text-align: left; cursor: pointer; box-shadow: inset 0 -5px 0 rgba(0,0,0,.12); font: 600 16px/1.25 var(--t-display); transition: transform var(--t-base) var(--t-spring), background-color var(--t-base), color var(--t-base); }
.nt-key b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #141414; color: #fff; font: 600 13px/1 var(--t-mono); }
.nt-key span { min-width: 0; overflow-wrap: anywhere; }
.nt-key em { flex: none; margin-left: auto; font: 600 11px/1.2 var(--t-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
@media (hover: hover) { .nt-key:not([aria-disabled="true"]):hover { transform: translateY(-2px); } }
.nt-key:not([aria-disabled="true"]):active { transform: translateY(2px) scale(.99); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); transition-duration: var(--t-fast); }
body.v2 .nt-key[aria-disabled="true"] { cursor: default; background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.nt-key[aria-disabled="true"] b { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
body.v2 .nt-key.is-right { background: var(--t-mint); color: #141414; box-shadow: inset 0 -5px 0 rgba(0,0,0,.18); }
.nt-key.is-right b { background: #141414; box-shadow: none; }
body.v2 .nt-key.is-wrong { background: #141414; color: #fff; box-shadow: inset 0 -5px 0 rgba(255,255,255,.12); }
.nt-key.is-wrong b { background: #fff; color: #141414; box-shadow: none; }
.nt-key.pop { animation: nt-pop .45s var(--t-spring); }
@keyframes nt-pop { 40% { transform: scale(1.03); } }

.nt-talk { grid-area: talk; display: grid; gap: 12px; align-content: start; }
.nt-bubble { margin: 0; max-width: none; min-height: 0; }
#nt-say p { margin: 0 0 8px; }
#nt-say p:last-child { margin-bottom: 0; }
#nt-say .nt-gist { color: #3d3b37; font-size: 15.5px; line-height: 1.45; }
#nt-say a { color: #1a33b8; }
#nt-say .nt-read { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
#nt-say :focus-visible { outline-color: #141414; }
.nt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nt-actions .t-pill { width: 100%; font-size: 17px; }

/* The day's result: the crowd, the share card, the clock to the next five, the visitor's week and the five notes. */
.nt-result { flex: 1; margin: 0 12px; padding: 22px 16px 22px; display: grid; gap: 14px; align-content: start; }
.nt-result-main, .nt-result-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.nt-result .t-label { margin: 0; }
.nt-result-title { margin: 4px 0 0; font: 800 clamp(38px,10.4vw,76px)/.92 var(--t-display); letter-spacing: -.012em; text-wrap: balance; }
.nt-result-title:focus { outline: none; }
.nt-card { min-width: 0; border-radius: var(--t-r-m); padding: 18px; background: var(--t-card); color: var(--t-ink); box-shadow: inset 0 -5px 0 rgba(0,0,0,.08); }
.nt-card :focus-visible { outline-color: var(--t-ink); }
.nt-card .t-label { color: var(--t-ink-2); }
.nt-crowd .t-stat { margin: 0 0 8px; font-size: clamp(72px,22vw,120px); }
.nt-crowd .t-verdict { margin: 0; font-size: 19px; max-width: 34ch; }
.nt-hist { height: 84px; gap: 6px; margin: 34px 0 6px; }
.nt-hist i:not(.me) { background: #cfccc3; }
.nt-axis { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; text-align: center; margin: 0; }
.nt-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--t-ink-2); }
.nt-result .nt-share { margin: 0; background: #141414; color: #fff; }
.nt-result .nt-share .mini { background: #fff; color: #141414; font-size: 22px; letter-spacing: -.02em; }
.nt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.nt-row .t-pill { font-size: 17px; }
#toy-share-status { margin: 0; font-size: 15px; font-weight: 600; }
#toy-share-status:empty { display: none; }
.nt-h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.2; }
.nt-clock-time { margin: 6px 0 0; }
.nt-clock-time b { font: 800 44px/1 var(--t-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nt-clock .t-pill { margin-top: 12px; }
.nt-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; list-style: none; margin: 0; padding: 0; }
.nt-days li { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 58px; padding: 6px 2px; border-radius: 12px; background: var(--t-surface-2); color: var(--t-ink-2); text-align: center; }
.nt-days small { font: 500 10px/1 var(--t-mono); letter-spacing: .04em; text-transform: uppercase; }
.nt-days b { font: 800 17px/1 var(--t-display); font-variant-numeric: tabular-nums; }
.nt-days li.played { background: var(--t-cobalt); color: #fff; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.nt-days li.today:not(.played) { background: transparent; color: var(--t-ink); box-shadow: inset 0 0 0 2px var(--t-ink); }
.nt-recap { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nt-recap li { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--t-line); }
.nt-recap li:first-child { border-top: 0; }
.nt-recap img { width: 72px; height: 48px; object-fit: cover; border-radius: 9px; background: var(--t-surface-2); }
.nt-recap p { margin: 0; }
.nt-gone { width: 72px; height: 48px; border-radius: 9px; background: var(--t-surface-2); }
.nt-gone-text { min-height: 44px; display: flex; align-items: center; font-weight: 700; line-height: 1.25; color: var(--t-ink-2); }
.nt-mark { font: 600 11px/1.3 var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--t-ink-2); }
.nt-mark.right { color: #096b47; }
.nt-recap a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; line-height: 1.25; color: var(--t-ink); }
.nt-noscript { margin: 0 16px; padding: 18px; border-radius: var(--t-r-m); background: var(--t-card); }

footer { padding: 16px; font-size: 11.5px; color: var(--t-ink-2); font-family: var(--t-mono); }
/* Inline row, not flex: each separator dot rides in one nowrap span with the link after it, so a line
   never ends on a dot; the 44px-tall links set the line height, with no extra row gap. */
footer nav { display: block; }
footer nav .nt-foot-next { white-space: nowrap; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
footer p { margin: 4px 0; }

@media (prefers-color-scheme: dark) {
  .nt-frame { background: #f7f6f2; }
  body.v2 .nt-key:not([aria-disabled="true"]) { background: #f7f6f2; }
  .nt-mark.right { color: var(--t-mint); }
  .nt-hist i:not(.me) { background: #4a4844; }
}
@media (min-width: 600px) {
  .nt-keys { grid-template-columns: 1fr 1fr; }
  body.v2 .nt-key { min-height: 64px; }
  .nt-actions .t-pill { width: auto; min-width: 200px; }
}
@media (min-width: 900px) {
  .nt-stage { margin: 0 24px; padding: 40px 48px; column-gap: 48px; row-gap: 18px; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); grid-template-rows: auto auto 1fr; grid-template-areas: "title board" "meta board" "talk board"; align-content: stretch; }
  .nt-title { font-size: clamp(56px,6.4vw,96px); line-height: .88; align-self: end; }
  .nt-board { align-self: center; }
  .nt-bubble { font-size: 18px; }
  .nt-result { margin: 0 24px; padding: 40px 48px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 40px; }
}
@media (min-width: 1280px) {
  .nt-stage { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
  .nt-board { max-width: 760px; justify-self: end; width: 100%; }
}
.nt-alt { position: absolute; inset: 8px; margin: 0; display: grid; place-items: center; padding: 18px; border-radius: 13px; background: #e1dfd8; color: #141414; font-size: 16px; line-height: 1.4; text-align: center; }
