:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --paper: #f3efe6; --ink: #1f2e38; --muted: #4f606b; --accent: #2d6a7a; --deep: #1c4654; --line: #cfd9d8; --white: #fdfefd; --ok: #2f6b3c; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 0, #fdfefd, var(--paper) 68%); color: var(--ink); }
a { color: inherit; }
.skip { position: absolute; left: -9999px; top: 1rem; z-index: 3; padding: .7rem 1rem; border-radius: .5rem; background: var(--white); }
.skip:focus { left: 1rem; }
.otn-header, .otn-footer { width: min(100%, 54rem); margin: 0 auto; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.otn-brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 900; text-decoration: none; }
.otn-mark { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: .65rem; background: var(--deep); color: #fff; }
.otn-home { min-height: 44px; display: inline-flex; align-items: center; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; }
.otn-home:hover, .otn-home:focus-visible { border-color: var(--accent); color: var(--deep); }
.otn-main { width: min(100%, 54rem); margin: auto; padding: .7rem 1.2rem 2rem; }
.otn-intro { padding: .6rem 0 1.1rem; }
.otn-kicker { margin: 0 0 .35rem; color: var(--accent); font-size: .73rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 40rem; margin: 0; font-size: clamp(2.4rem, 8vw, 4rem); letter-spacing: -.06em; line-height: 1.02; }
h1 span { color: var(--accent); }
.otn-intro > p:last-child { max-width: 37rem; margin: .65rem 0 0; color: var(--muted); line-height: 1.55; }
.otn-card { padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: 1.3rem; background: var(--white); box-shadow: 0 18px 48px #1f2e3812; }
.otn-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .88rem; font-weight: 750; }
.otn-ends { display: flex; justify-content: space-between; margin: .8rem 0 .3rem; color: var(--accent); font-size: .73rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.board { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
/* Phone: number | text and tag | the two move buttons stacked, so the text keeps most of the width at 360 px. */
.card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: .6rem; min-height: 3.6rem; padding: .45rem .5rem .45rem .7rem; border: 2px solid var(--line); border-radius: .9rem; background: #fff; }
.pos { grid-column: 1; grid-row: 1 / span 2; }
.text { grid-column: 2; grid-row: 1; }
.tag { grid-column: 2; grid-row: 2; }
.move-earlier { grid-column: 3; grid-row: 1; }
.move-later { grid-column: 3; grid-row: 2; }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.card.is-locked { border-color: var(--ok); background: #edf6ee; }
.pos { flex: none; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--deep); color: #fff; font-size: .85rem; font-weight: 850; }
.text { flex: 1; min-width: 0; font-weight: 700; line-height: 1.3; }
.tag { flex: none; color: var(--ok); font-size: .85rem; font-weight: 850; }
.card:not(.is-locked) .tag { color: var(--deep); font-size: 1rem; }
/* Last-check hint on a loose card: a pill of dark ink on pale ground, 16 px or more, so it reads at 360 px. */
.tag.hint { justify-self: start; padding: .15rem .55rem; border-radius: 999px; background: #e8eff0; }
.move { flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: .7rem; background: var(--paper); color: var(--deep); font: inherit; font-size: 1.3rem; font-weight: 900; cursor: pointer; }
.move:hover, .move:focus-visible { border-color: var(--accent); background: #e4eeef; }
.move:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.otn-status { min-height: 2.8rem; margin: .8rem 0 .2rem; padding: .6rem .8rem; border-radius: .75rem; background: #e8eff0; color: var(--deep); font-weight: 750; line-height: 1.45; }
.otn-status:empty { visibility: hidden; }
.otn-button { min-height: 48px; margin: .5rem .5rem 0 0; padding: .7rem 1.15rem; border: 0; border-radius: 999px; background: var(--deep); color: #fff; font: inherit; font-weight: 850; cursor: pointer; }
.otn-button:hover { background: var(--accent); }
.otn-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.result-card { text-align: center; }
.result-score { margin: .5rem 0; color: var(--accent); font-size: clamp(3.5rem, 18vw, 5.5rem); font-weight: 950; letter-spacing: -.07em; line-height: 1; }
.result-note { max-width: 32rem; margin: .5rem auto; color: var(--muted); line-height: 1.5; }
/* One row per check (the squares) and a progress line, so the breaks from textContent must show. */
.result-grid { max-width: 32rem; margin: .4rem auto .6rem; color: var(--deep); font-size: 1.3rem; line-height: 1.45; white-space: pre-line; }
.result-card h3 { margin: 1.6rem 0 .6rem; }
.result-list { margin: 0; padding: 0; list-style: none; text-align: left; display: grid; gap: .5rem; }
.result-list li { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: .7rem; line-height: 1.4; }
.result-list strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.result-tag { display: block; margin-top: .25rem; color: var(--deep); font-size: .9rem; font-weight: 800; }
.otn-footer { margin-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
[hidden] { display: none !important; }
@media (max-width: 34rem) { .otn-header, .otn-footer { padding-right: .9rem; padding-left: .9rem; } .otn-main { padding: .45rem .7rem 1.2rem; } .otn-card { padding: .8rem; border-radius: 1rem; } .otn-meta { flex-direction: column; gap: .2rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
/* Wide screens and TVs: the six cards become a left-to-right timeline, oldest on the left, with large type. */
@media (min-width: 70rem) {
  .otn-header, .otn-footer { width: min(100%, 110rem); }
  .otn-main { width: min(100%, 110rem); padding: 1rem 2.5rem 2.5rem; }
  .otn-card { padding: 2rem; }
  .board { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
  .card { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto auto; min-height: 17rem; padding: .9rem; text-align: center; }
  .pos { grid-column: 1 / span 2; grid-row: 1; width: auto; background: none; color: var(--accent); font-size: 1.2rem; }
  .text { grid-column: 1 / span 2; grid-row: 2; font-size: 1.75rem; line-height: 1.25; }
  .tag { grid-column: 1 / span 2; grid-row: 3; font-size: 1.75rem; min-height: 2.2rem; }
  .move-earlier { grid-column: 1; grid-row: 4; justify-self: start; }
  .move-later { grid-column: 2; grid-row: 4; justify-self: end; }
  .card:not(.is-locked) .tag { font-size: 2.2rem; }
  .card:not(.is-locked) .tag.hint { font-size: 1.4rem; justify-self: center; }
  .move { width: 56px; height: 56px; font-size: 0; }
  .move::after { content: attr(data-wide); font-size: 1.8rem; }
  .otn-meta, .otn-status, .otn-ends { font-size: 1.25rem; }
  .otn-button { font-size: 1.3rem; min-height: 60px; }
}
