@font-face{font-family:Crimson;src:url("CrimsonPro-Regular.ttf");font-display:swap}
@font-face{font-family:Instrument;src:url("InstrumentSans-Regular.ttf");font-display:swap}
:root {
  color-scheme: light;
  --green:#1d4b38;
  --berry:#892438;
  --ink:#252b26;
  --muted:#524f49;
  --paper:#fcfaf5;
  --line:#d9d1c4;
  font-family:Instrument, -apple-system, Arial, sans-serif;
  color:var(--ink);
  background:var(--paper);
}
* {box-sizing:border-box}
body,h1,h2,p,ul {margin:0}
.screen {max-width:1080px; margin:auto; padding:0 clamp(12px,4vw,44px) 28px}
button,a {font:inherit; color:var(--green)}
button {cursor:pointer; touch-action:manipulation}
button:disabled {cursor:default; color:var(--muted)}
a {text-underline-offset:.22em}
:focus-visible {outline:3px solid #164ba2;outline-offset:3px}
header {display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);min-height:66px;gap:12px}
.brand {color:var(--berry);font:600 1.48rem Crimson,Georgia,serif}
header a {font-size:1rem;font-weight:600}
.intro {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:26px 0 24px}
.intro img {width:134px;height:auto;mix-blend-mode:multiply;margin-right:6%}
.topic {font-size:.83rem;letter-spacing:.11em;text-transform:uppercase;font-weight:650;color:var(--berry)}
h1,h2 {font-family:Crimson,Georgia,serif;line-height:1.05;color:var(--green)}
h1 {font-size:clamp(2.6rem,6vw,4.1rem);font-weight:500;letter-spacing:-.035em;margin:.06em 0 .15em}
.intro p:last-child {font-size:1.1rem;line-height:1.5}
.game {display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);align-items:start;gap:0 clamp(28px,5vw,60px)}
.play {grid-row:span 2}
.paper {background:white;border-radius:16px;padding:14px;box-shadow:0 5px 24px #5232150b, 0 0 0 1px var(--line)}
.board {display:grid;position:relative;grid-template:repeat(12,minmax(0,1fr)) / repeat(12,minmax(0,1fr));width:100%;aspect-ratio:1;container-type:inline-size}
.tile {z-index:1;display:grid;place-items:center;width:100%;height:100%;min-width:0;min-height:0;font:600 22px/1 Instrument,Arial,sans-serif;font-size:5cqw;color:var(--ink);background:transparent;border:none;user-select:none;-webkit-user-select:none;padding:0}
.tile:disabled {color:var(--ink)}
.mark {position:absolute;border:2px solid #327253;border-radius:999px;background:#64ad8143;pointer-events:none}
.mark.answer {border-color:var(--berry);background:#f366722b}
.tile[aria-pressed=true] {color:white;background:var(--berry);border-radius:50%}
.tile:focus-visible {outline-offset:-2px}
@media(hover:hover){.tile:not(:disabled):not([aria-pressed=true]):hover {background:#c5c1a647;border-radius:50%}}
.status {min-height:2.6em;text-align:center;line-height:1.4;padding-top:12px;color:var(--green);font-weight:600}
.toolbar {display:flex;flex-wrap:wrap;justify-content:center;gap:5px 12px}
.action,.cta {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;font-weight:600;line-height:1.26;border-radius:8px;border:1px solid var(--green);background:transparent;text-align:center}
.print {background:var(--green);color:white}
.reset {border-color:transparent;text-decoration:underline;text-underline-offset:.22em}
.wordsTop {display:flex;align-items:center;justify-content:space-between;gap:12px}
h2 {font-weight:600;font-size:1.8rem;letter-spacing:-.02em}
.count {font-weight:600;background:#e3eddf;padding:7px 12px;border-radius:12px;color:var(--green);white-space:nowrap}
.words {padding:18px 0 24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;gap:13px 12px}
.words li {font-weight:600;font-size:clamp(.98rem,1.55vw,1.1rem)}
.found {text-decoration:line-through;color:var(--green)}
.found:after {display:inline-block;content:' ✓';margin-left:5px}
.offer {background:#f1ebdf;display:grid;grid-template-columns:32% 1fr;gap:19px;border-radius:14px;padding:22px;align-items:center;scroll-margin:20px}
.offer img {width:100%;height:auto;box-shadow:0 5px 12px #372f2233}
.offer h2 {color:var(--berry);font-size:1.6rem}
.offer p {font-size:1rem;line-height:1.43;margin:9px 0 13px}
.cta {text-decoration:none;color:white;background:var(--berry);border-color:var(--berry);padding:10px 14px}
.cta:hover,.print:hover {filter:brightness(1.18)}
.help {border-top:1px solid var(--line);margin:30px 0 18px;padding:14px 0 0;line-height:1.5}
.help summary {cursor:pointer;color:var(--green);font-weight:600}
.help p {max-width:65ch;padding-top:10px}
footer {color:var(--muted);font-size:.92rem;line-height:1.5}
.printSheets,.mobileList {display:none}
[hidden] {display:none!important}
@media(max-width:850px){
  .screen {max-width:600px;padding-left:14px;padding-right:14px}
  header {min-height:54px}
  .intro {padding:18px 0;display:block;position:relative}
  .intro img {width:72px;position:absolute;top:8px;right:0;margin:0}
  .topic,h1 {padding-right:72px}
  .topic {font-size:.74rem;letter-spacing:.07em}
  h1 {font-size:clamp(2rem,9vw,2.85rem);margin-bottom:12px}
  .intro p:last-child {font-size:1rem;line-height:1.35}
  .game {display:flex;flex-direction:column;gap:16px}
  .game>*,.play>* {width:100%}
  .play {display:contents}
  .status {min-height:1.45em;padding-top:0;margin-bottom:2px}
  .toolbar {order:3;gap:8px}
  .offer {order:4;margin-top:10px}
  .wordsTop h2 {font-size:1.55rem}
  .words {padding:12px 0 2px;gap:7px}
  .paper {padding:5px;border-radius:10px}
}
@media(max-width:410px){
  .screen {padding-left:10px;padding-right:10px}
  .brand {font-size:1.27rem}
  header a {font-size:.9rem}
  .offer {gap:14px;padding:14px}
  .offer h2 {font-size:1.35rem}
  .cta,.action {padding:8px 10px}
  .intro img {width:58px;top:13px}
  .topic,h1 {padding-right:58px}
  .topic {font-size:.69rem}
  .mark {border-width:1.5px}
  .game {gap:10px}
}
@media(forced-colors:active){.tile[aria-pressed=true]{outline:3px dotted Highlight;outline-offset:-4px}.mark{border:2px solid CanvasText}}
@media print {
  @page {margin:.43in}
  :root {background:white;color:black}
  .screen {display:none}
  .printSheets {display:block;font-family:Arial,sans-serif}
  .sheet {text-align:center;break-inside:avoid}
  .sheet+.sheet {break-before:page}
  .sheet h2 {font:700 25pt/1.1 Georgia,serif;color:black;letter-spacing:0}
  .sheet p {margin:.08in auto .14in;font:14pt/1.1 Arial,sans-serif}
  .sheet .board {container-type:normal;height:6.24in;width:6.24in;margin:auto}
  .sheet .tile {font:700 30pt/1 Arial,sans-serif;color:black}
  .sheet .mark {background:none;border:1.7pt solid black}
  .sheet ul {padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,1fr);font:22pt/1.23 Arial,sans-serif;margin:.15in auto}
  .sheet footer {display:flex;justify-content:center;align-items:center;text-align:left;gap:.12in;border-top:1pt solid #bbb;padding-top:.06in;font:13pt/1.3 Arial,sans-serif;color:black}
  .sheet a {color:inherit;text-decoration:none}
  .sheet img {width:.85in;height:.85in}
}
