:root {
  --paper: #f7f5ed; --panel: #fffdf5; --ink: #15332e; --muted: #495f55; --pine: #285a4c;
  --line: #c6cec0; --ember: #ae371f; --sun: #f2be67; --radius: 14px; --soft: #e5ebdf; --deep-ember: #872915;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif; color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .2em; }
button, select, summary, input[type=checkbox] { cursor: pointer; }
button { background: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .brand { font-family: var(--display); }
h1, h2 { letter-spacing: -.025em; line-height: 1; }
h2 { font-size: clamp(32px,4vw,48px); font-weight: 700; }
.wrap { width: min(1136px,calc(100% - 48px)); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { z-index: 5; width: auto; height: auto; padding: 12px; background: white; clip-path: none; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .mast nav, .foot nav, .brand, .actions, .utilities, .utilities > div, .setup, .arena-head, .round-meta { display: flex; align-items: center; }
.mast-inner { min-height: 72px; justify-content: space-between; gap: 12px; }
.brand { color: var(--ink); gap: 10px; font-size: 30px; font-weight: 800; line-height: 1; text-decoration: none; letter-spacing: -.025em; white-space: nowrap; }
.mark { display: inline-block; width: 35px; height: 31px; flex: none; background: var(--ink); clip-path: polygon(0 94%,35% 24%,49% 31%,57% 14%,100% 94%); position: relative; }
.mark:after { content: ""; position: absolute; inset: 0; background: var(--sun); clip-path: polygon(41% 24%,56% 24%,48% 49%,56% 46%,38% 79%,44% 55%,36% 58%); }
.mark.small { width: 27px; height: 25px; }
.mast nav, .foot nav { gap: 24px; }
.mast nav a, .foot nav a, .back { font-size: 14px; font-weight: 600; text-decoration: none; }
.mast nav a:hover, .foot nav a:hover, .back:hover, .outside:hover { text-decoration: underline; }
.top-daily { border: 1px solid var(--line); padding: 9px 15px; border-radius: 99px; }
.hero { margin: 32px 0 0; position: relative; }
.stage { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; position: relative; }

.cover { display: grid; grid-template-columns: .98fr 1.02fr; min-height: 408px; }
.intro { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(26px,3.7vw,52px); }
.eyebrow, .rules-strip, .round-meta, .route-name { font-size: 12px; letter-spacing: .105em; font-weight: 700; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--pine); }
.signal { width: 8px; height: 8px; background: var(--ember); border-radius: 50%; display: inline-block; }
.intro h1 { font-size: clamp(66px,6.7vw,96px); font-weight: 800; line-height: .9; margin: 17px 0 16px; }
.intro h1 span { display: block; color: var(--pine); font-size: .62em; font-weight: 600; margin-top: 6px; }
.dek { max-width: 34ch; font-size: 17px; line-height: 1.5; color: var(--muted); }
.setup { flex-wrap: wrap; gap: 8px 12px; margin: 22px 0 15px; }
.setup label, .timer-choice, .feedback label, #standalone > label { font-size: 14px; font-weight: 600; }
select, .answer-form input, .feedback textarea { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; min-height: 44px; }
select { font-size: 15px; }
.timer-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
input[type=checkbox] { width: 17px; height: 17px; margin: 0; accent-color: var(--pine); }
.actions { flex-wrap: wrap; gap: 10px 18px; }
.primary, .secondary, .inverse { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 19px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.primary { color: var(--panel); background: var(--ember); }
.primary:hover { background: var(--deep-ember); }
.secondary { background: var(--panel); border-color: var(--ink); }
.secondary:hover { background: var(--soft); }
.play-glyph { border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.text-cta, .inline-next { font-size: 15px; font-weight: 700; }
.text-cta { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; }
.art { background: var(--pine); overflow: hidden; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.utilities { justify-content: space-between; flex-wrap: wrap; gap: 0 16px; border-bottom: 1px solid var(--line); padding: 8px 2px; }
.rules-strip { color: var(--muted); font-size: 12px; letter-spacing: .05em; }
.rules-strip b { color: var(--muted); padding: 0 5px; }
.utilities > div { gap: 13px; }
.utilities button, .plain-btn { color: var(--pine); border: 0; font-size: 14px; font-weight: 700; min-height: 44px; padding: 2px 3px; }
.utilities button:hover, .plain-btn:hover { text-decoration: underline; }

.utilities button[aria-pressed=true] { color: var(--ember); text-decoration: underline; }
.share-msg:empty, .msg:empty { display: none; }
.loading { min-height: 430px; display: grid; place-content: center; text-align: center; gap: 11px; justify-items: center; }
.loading .mark { animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: translateY(-5px); opacity: .55; } }
.stage[data-gf-state] { height: var(--arena-height, 510px); }
.stage:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; }
.two-col, .qa, .notes { display: grid; gap: clamp(26px,6vw,86px); padding: 52px 0; grid-template-columns: minmax(0,1.4fr) minmax(0,.9fr); }
.how h2, .qa h2, .notes h2, .daily-card h2 { margin: 8px 0 16px; }
.how p:not(.eyebrow), .notes p:not(.eyebrow), .questions p { color: var(--muted); max-width: 65ch; }
.steps { padding-left: 1.4em; margin: 16px 0 18px; }
.steps li { margin-bottom: 8px; padding-left: 4px; }
.steps li::marker { color: var(--ember); font: 700 18px var(--display); }
.daily-card { align-self: start; background: var(--ink); color: var(--panel); padding: clamp(24px,3.5vw,40px); border-radius: var(--radius); border-top: 4px solid var(--sun); }
.daily-card .eyebrow { color: var(--sun); }
.today-line { font-size: 19px; font-weight: 700; margin: 12px 0 3px; }
.daily-card p:not(.eyebrow) { max-width: 39ch; }
.inverse { color: var(--ink); background: var(--sun); margin: 20px 0 7px; }
.inverse:hover { background: var(--paper); }
.outside { color: var(--sun); display: block; width: fit-content; margin-top: 8px; font-size: 14px; }
.qa, .notes { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); border-top: 1px solid var(--line); }
details { padding: 14px 0; border-bottom: 1px solid var(--line); }
details:first-child { padding-top: 0; }
summary { font-weight: 700; }
details p { padding: 8px 0 2px; }
.feedback { display: grid; justify-items: start; gap: 8px; }
.feedback textarea { width: 100%; resize: vertical; }
.note { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.foot { padding: 28px 0; border-top: 1px solid var(--line); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.foot nav { gap: 18px; flex-wrap: wrap; }
.prose { max-width: 740px; padding: 42px 0 64px; margin: auto; }
.back { display: block; width: fit-content; color: var(--pine); margin-bottom: 34px; }
.prose h1 { font-size: clamp(42px,5.7vw,70px); margin: 8px 0 24px; }
.article-copy { font-size: 17px; }
.article-copy > * { margin-bottom: 1em; }
.article-copy h2 { font-size: 32px; margin: 1.05em 0 .35em; }
.article-copy li { margin: .4em 0; }
.article-copy a { color: var(--pine); font-weight: 600; }

body.embedded { background: var(--panel); }
.arena { width: min(100%,790px); margin: auto; padding: clamp(18px,3.5vw,36px); }
.arena-head { justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.route-name { color: var(--muted); letter-spacing: .06em; }
.round-meta { justify-content: space-between; gap: 8px; color: var(--pine); }
#clock { font-variant-numeric: tabular-nums; }
#clock.urgent { color: var(--ember); }
.trail { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin: 6px 0 18px; }
.trail span { height: 5px; border-radius: 3px; background: var(--line); }
.trail .done { background: var(--pine); }
.trail .here { background: var(--ember); }
.arena h1, .arena h2 { font-size: clamp(30px,4.5vw,42px); line-height: 1.05; }
#instructions, #result-detail, #standalone p { color: var(--muted); margin: 9px 0 13px; }
.bank { display: flex; flex-wrap: wrap; gap: 8px; }
.bank button { border: 1px solid var(--line); background: var(--panel); border-radius: 7px; padding: 8px 14px; min-height: 44px; font-weight: 600; }
.bank button:enabled:hover { background: var(--soft); border-color: var(--pine); }
.bank .spent { color: var(--muted); text-decoration: line-through; background: var(--soft); }
.bank button:disabled { cursor: default; }
.answer-form { display: flex; gap: 8px; margin: 14px 0 6px; }
.answer-form input { flex: 1; min-width: 0; }
.msg { padding: 7px 0; font-size: 15px; font-weight: 600; }
.msg[data-tone=error] { color: var(--ember); }
.msg[data-tone=good] { color: var(--pine); }
#result-title { margin: 6px 0 10px; }
#answer-log { margin: 6px 0 12px; padding-left: 1.6em; columns: 2; }
.result-solution { margin: 8px 0 16px; }
#standalone > * { margin: 8px 8px 8px 0; }
@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, 600px); }
  .mast-inner { min-height: 57px; }
  .mast nav, .foot nav { gap: 14px; } .desktop-link { display: none; }
  .brand { font-size: 24px; gap: 6px; } .mark { width: 26px; height: 25px; }
  .top-daily { padding: 6px 9px; } .mast nav a { font-size: 13px; }
  .hero { margin-top: 16px; } .cover { grid-template-columns: 1fr; }
  .art { grid-row: 1; height: clamp(125px,32vw,198px); } .art img { object-position: 60% 40%; }
  .intro { padding: 20px; } .intro h1 { font-size: 56px; margin: 10px 0 12px; }
  .intro h1 span { display: inline; font-size: .56em; margin-left: 8px; }
  .dek { font-size: 16px; max-width: 42ch; }
  .setup { margin: 12px 0 10px; gap: 6px 10px; }
  .utilities { justify-content: center; } .utilities > div { gap: 18px; }
  .two-col, .qa, .notes { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
  .stage[data-gf-state] { height: var(--arena-height,555px); }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 24px); } .mast nav { gap: 8px; }

  .intro { padding: 16px; } .intro h1 { font-size: 50px; }
  .setup label { font-size: 13px; } .actions { gap: 8px 12px; } .primary { padding-inline: 14px; }
  .rules-strip { letter-spacing: 0; } .rules-strip b { padding: 0 1px; }
  .bank { gap: 6px; } .bank button { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
.direct { color: var(--pine); font-size: 14px; font-weight: 700; }
