@font-face{font-family:"DM Sans";src:url("fonts/dm-sans-normal.woff2") format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url("fonts/instrument-serif-normal.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url("fonts/instrument-serif-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
:root {
  font-family:"DM Sans",Arial,sans-serif;
  color:#1c302c;
  background:#faf9f5;
  --ink:#1c302c;
  --forest:#174f43;
  --muted:#576761;
  --rule:#d8ded5;
  --paper:#faf9f5;
  --serif:"Instrument Serif",Georgia,serif;
}
* { box-sizing:border-box }
body { margin:0; min-height:100svh; -webkit-font-smoothing:antialiased }
button, input, select { font:inherit }
button, select { cursor:pointer }
button { border:0; background:none; color:inherit }
a { color:var(--forest); text-underline-offset:.18em }
button:disabled, input:disabled { cursor:default; opacity:.5 }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline:3px solid #a34f20; outline-offset:3px }
[hidden] { display:none !important }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.wrap { width:min(1060px,calc(100% - 80px)); margin-inline:auto }
.masthead { border-bottom:1px solid var(--rule) }
.masthead-inner { min-height:80px; display:flex; align-items:center; gap:clamp(30px,6vw,88px) }
.brand { font:2.45rem/.9 var(--serif); letter-spacing:-.05em; display:inline-flex; align-items:center; gap:11px; text-decoration:none; color:var(--ink) }
.brand-mark { display:inline-block; position:relative; border-radius:50%; width:30px; height:30px; border:2px solid #1f604e; background:radial-gradient(circle,#1f604e 0 3px,transparent 3.5px 7px,#1f604e 7.5px 9px,transparent 9.5px) }
.brand-mark::after { position:absolute; content:""; width:7px; height:7px; border-radius:50%; background:#cf6437; right:0; top:1px; box-shadow:0 0 0 2px var(--paper) }
nav { display:flex; gap:28px; align-self:stretch; align-items:stretch }
.nav-item, .help-button { font-size:.92rem; font-weight:600; text-decoration:none; color:var(--muted) }
.nav-item { display:inline-flex; align-items:center; padding:3px 0 0; position:relative }
.nav-item.active { color:var(--ink) }
.nav-item.active::after { content:""; position:absolute; inset:auto 0 -1px; height:3px; background:var(--forest) }
.nav-item:hover, .help-button:hover, .actions button:hover, footer button:hover { color:#93602b }
.help-button { margin-left:auto; display:flex; gap:8px; align-items:center; padding:8px 0 }
.help-button span { display:inline-grid; width:18px; height:18px; place-items:center; border:1.5px solid currentColor; border-radius:50%; font-size:.75rem; line-height:1 }
.help-label { font-weight:inherit }
.play-area { display:grid; grid-template-columns:minmax(0,1fr) minmax(295px,.67fr); gap:clamp(34px,7vw,104px); align-items:start; margin-block:54px 32px }
.play { min-width:0; padding-top:3px }
.edition { display:flex; gap:10px; align-items:center; font-size:.75rem; line-height:1.4; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted) }
.edition i { height:8px; width:8px; border-radius:50%; background:#ce6b41 }
.edition-line { width:22px; height:1px; background:#b0bbb0 }
.edition time { font-weight:500; letter-spacing:.07em }
h1,h2,h3,p { margin:0 }
h1 { font:clamp(3.1rem,5.6vw,5.2rem)/1.02 var(--serif); letter-spacing:-.035em; margin:18px 0 14px }
h1 em { color:#296044; font-weight:400; white-space:nowrap }
.intro { max-width:475px; font-size:1.08rem; line-height:1.6; color:var(--muted) }
#guess-form { margin-top:29px }
form label { display:block; font-weight:650; font-size:.91rem; margin-bottom:8px }
.guess-controls,.date-controls { display:flex; gap:9px }
input { color:var(--ink); width:100%; min-width:0; border:1px solid #aebbb1; border-radius:7px; padding:12px 15px; background:#fffefa }
input::placeholder { color:#738077 }
.guess-controls input { font-size:1.08rem; height:52px }
.primary,.secondary { padding:10px 24px; font-weight:650; border-radius:7px }
.primary { background:var(--forest); color:white }
.primary:hover:not(:disabled) { background:#0e3c32 }
.secondary { box-shadow:inset 0 0 0 1px #b6c1b5 }
.actions { display:flex; gap:21px; margin-top:12px }
.actions button, .history-foot button, .text-button { font-size:.89rem; font-weight:600; color:var(--muted); padding:7px 0; display:inline-flex; align-items:center; gap:8px }
.hint-icon,.flag-icon { display:inline-block; position:relative; width:14px; height:15px }
.hint-icon::before { content:""; position:absolute; top:0; left:2px; width:9px; height:10px; box-sizing:border-box; border:1.5px solid currentColor; border-radius:50% 50% 35% 35% }
.hint-icon::after { position:absolute; content:""; height:2px; width:5px; background:currentColor; top:11px; left:4px }
.flag-icon { border-left:1.5px solid currentColor; height:14px }
.flag-icon::after { position:absolute; top:0; content:""; width:9px; height:6px; border:1.5px solid currentColor; border-left:0; transform:skewY(-8deg) }
.feedback,.letter-clue { font-size:.91rem; line-height:1.45; margin-top:9px; color:var(--forest) }
.feedback:empty { margin-top:0 }
.feedback.error { color:#994322 }
.meter { position:relative; overflow:hidden; border-radius:13px; background:#193c34; color:#f4f4e7; padding:22px 26px 18px; box-shadow:inset 0 0 0 1px #173a32 }
.meter-head { display:flex; align-items:center; justify-content:space-between }
.meter h2 { font:1.85rem/1.1 var(--serif); letter-spacing:-.015em }
.meter-unit { font-size:.78rem; font-weight:600; color:#c1cdbb; letter-spacing:.09em }
.dial { width:min(100%,310px); margin:10px auto 0; position:relative; aspect-ratio:2/1 }
.dial canvas { width:100%; height:100%; display:block }
.dial-readout { position:absolute; left:13%; right:13%; bottom:3%; display:grid; justify-items:center; pointer-events:none; line-height:1.1 }
#meter-value { font:clamp(2.4rem,4.5vw,3.8rem)/.95 var(--serif); letter-spacing:-.04em; font-variant-numeric:tabular-nums }
#meter-caption { font-size:.78rem; letter-spacing:.03em; color:#d4ded0; margin-top:6px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.dial-ends { display:flex; justify-content:space-between; max-width:310px; margin:5px auto 17px; font-size:.74rem; color:#c1cdbb }
.benchmarks { border-top:1px solid #49665a; padding-top:15px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) }
.benchmarks div { display:grid; gap:4px; text-align:center }
.benchmarks div:first-child { text-align:left }
.benchmarks div:last-child { text-align:right }
.benchmarks span { font-size:.75rem; color:#cad5c6 }
.benchmarks strong { font-size:1.05rem; font-weight:550; font-variant-numeric:tabular-nums }
.history { border-top:1px solid #adb9ad; padding-top:20px }
.history-head,.history-name,.history-foot,footer { display:flex; align-items:center }
.history-head,.history-foot { justify-content:space-between; gap:12px }
.history-name { gap:12px }
.history h2,.dialog-inner h2 { font:2.25rem/1.1 var(--serif); letter-spacing:-.025em }
.count { display:inline-grid; place-items:center; min-width:26px; height:24px; padding-inline:7px; background:#e8ede4; border-radius:30px; color:#486246; font-size:.82rem; font-weight:650 }
.sort-control { position:relative }
select { appearance:none; padding:7px 28px 7px 10px; color:var(--muted); background:transparent; border:1px solid var(--rule); border-radius:5px; font-size:.83rem }
.sort-control::after { content:""; position:absolute; top:37%; right:12px; width:5px; height:5px; border-right:1.5px solid var(--muted); border-bottom:1.5px solid var(--muted); transform:rotate(45deg); pointer-events:none }
.history-table-wrap { margin-top:18px }
table { width:100%; border-collapse:collapse; text-align:left; table-layout:fixed; font-variant-numeric:tabular-nums }
thead { background:#eef1e9 }
th { color:#526052; font-size:.75rem; font-weight:650; letter-spacing:.055em; text-transform:uppercase; padding:10px 14px }
th:first-child { width:9%; border-radius:5px 0 0 5px }
th:nth-child(2) { width:39% }
th:nth-child(3) { width:24% }
th:last-child { border-radius:0 5px 5px 0 }
td { padding:12px 14px; border-bottom:1px solid var(--rule); font-size:.94rem; overflow-wrap:anywhere }
td:first-child { color:var(--muted); font-size:.83rem }
.guess-word { font-weight:650 }
.hint-label { font-size:.7rem; margin-left:7px; color:var(--muted); font-weight:500 }
.score-cell { font-weight:550 }
.rank { display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:.88rem }
.rank-dot { width:8px; height:8px; border-radius:50%; background:#768a8a; flex:none }
.rank-dot.warm { background:#b37d2c }.rank-dot.hot { background:#c25f31 }.rank-dot.exact { background:#218259 }
.empty-history { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:12px 16px; min-height:92px; padding:20px 10px; border-bottom:1px solid var(--rule) }
.empty-history p,.history-foot,footer { font-size:.85rem; color:var(--muted) }
.starters { display:flex; gap:6px; flex-wrap:wrap }
.starters button { border:1px solid #cbd4c9; border-radius:20px; padding:5px 13px; color:#36513e; font-size:.85rem; background:#f5f6ef }
.starters button:hover { border-color:#6a8370; background:#e8efe2 }
.history-foot { padding-top:11px; min-height:35px }
.history-foot button,.text-button { color:var(--forest); text-decoration:underline; text-underline-offset:3px }
footer { gap:17px; border-top:1px solid var(--rule); padding:17px 0 23px; margin-top:46px }
.footer-brand { color:#425949; font:1.45rem/1 var(--serif); text-decoration:none; letter-spacing:-.035em }
footer button { color:var(--muted); padding:4px 0; font-size:.81rem }
.next-word { margin-left:auto; font-size:.8rem }
#countdown { color:var(--ink); font-variant-numeric:tabular-nums }
.day-banner,.end-card { background:#e8efe4; border:1px solid #cad7c7; border-radius:7px; padding:13px 16px; font-size:.95rem; line-height:1.45; margin-top:18px }
.end-card strong { font-size:1.25rem }.end-card p { margin-top:3px }
dialog { padding:0; width:min(460px,calc(100% - 32px)); max-height:85svh; border-radius:12px; border:1px solid #cbd2c8; background:var(--paper); color:var(--ink); box-shadow:0 20px 90px #12282240 }
dialog::backdrop { background:#1128226b }
.dialog-inner { position:relative; padding:28px }
.close { position:absolute; top:12px; right:12px; width:36px; height:36px; font-size:1.65rem; color:var(--muted) }
.dialog-inner h2 { margin-bottom:17px; padding-right:24px }
.dialog-inner p,.credits-page p { line-height:1.6; color:var(--muted); margin-bottom:14px }
.dialog-inner h3,.credits-page h2 { font-size:1rem; margin:20px 0 6px }
.dialog-actions,.date-controls { display:flex; gap:9px; margin-top:10px }
.recent-list { display:grid }
.recent-list a { display:flex; justify-content:space-between; align-items:center; gap:10px; text-decoration:none; min-height:34px; border-bottom:1px solid var(--rule); font-size:.9rem }
.recent-list a:hover { text-decoration:underline }
.recent-list small { color:var(--muted) }
.credits-page { max-width:720px; padding-block:32px }
.credits-page h1 { font-size:3.3rem }
@media(min-width:1400px) { .play-area { margin-top:65px } }
@media(max-width:830px) {
  .wrap { width:calc(100% - 48px) }
  .masthead-inner { min-height:68px; gap:32px }
  .play-area { gap:26px; grid-template-columns:minmax(0,1fr) minmax(260px,.68fr); margin-top:38px }
  .meter { padding:18px 16px 16px }
  .intro { font-size:1rem }
  h1 { font-size:3.4rem }
}
@media(max-width:650px) {
  .wrap { width:calc(100% - 36px) }
  .masthead-inner { min-height:62px; gap:18px }
  .brand { font-size:1.9rem; gap:6px }.brand-mark { transform:scale(.8); margin-inline:-3px }
  nav { gap:14px }.nav-item,.help-button { font-size:.8rem; white-space:nowrap }
  .help-button { gap:5px }.help-button span { width:15px; height:15px; font-size:.66rem }
  .play-area { grid-template-columns:minmax(0,1fr); gap:20px; margin-block:27px 23px }
  .play { padding:0 }.edition { font-size:.67rem; gap:8px }
  h1 { font-size:clamp(3.1rem,10.5vw,4.05rem); margin:13px 0 9px }
  .intro { max-width:35em }.guess-controls input { height:48px }
  #guess-form { margin-top:18px }.actions { margin-top:6px }
  .meter { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); padding:15px 18px; gap:0 16px; align-items:center }
  .meter-head { grid-column:1; grid-row:1; align-self:start }.meter h2 { font-size:1.55rem }.meter-unit { display:none }
  .dial { grid-column:1; grid-row:2; margin-top:5px }.dial-ends { grid-column:1; grid-row:3; width:100%; margin:2px 0 0; font-size:.65rem }
  #meter-value { font-size:clamp(1.9rem,6.4vw,2.7rem) }#meter-caption { font-size:.68rem; margin-top:2px }
  .benchmarks { grid-column:2; grid-row:1/4; display:grid; grid-template-columns:1fr; gap:7px; padding:0 0 0 14px; border-top:0; border-left:1px solid #49665a; height:100%; align-content:center }
  .benchmarks div,.benchmarks div:last-child { text-align:left; gap:1px }.benchmarks span { font-size:.7rem }.benchmarks strong { font-size:.9rem }
  .history { padding-top:13px }.history h2 { font-size:1.9rem }.history-table-wrap { margin-top:13px }
  th,td { padding:9px 6px }th { font-size:.66rem }th:first-child { width:10% }th:nth-child(2) { width:31% }th:nth-child(3) { width:24% }td,.rank { font-size:.84rem }
  .empty-history { gap:8px; flex-direction:column; min-height:90px }.history-foot { font-size:.78rem }
  footer { margin-top:27px; gap:12px }
}
@media(max-width:480px) {
  .help-button { justify-content:center; min-width:32px; min-height:40px }
  .help-button span { width:20px; height:20px; font-size:.8rem }
  .help-label { display:none }
}
@media(max-width:380px) {
  .wrap { width:calc(100% - 24px) }.masthead-inner { gap:11px }nav { gap:9px }
  .brand { font-size:1.7rem }.next-word { font-size:.7rem }
}
