
:root { --ink:#14201a; --dim:#55635b; --line:#d9e1dc; --bg:#fbfaf6; --card:#fff; --green:#1d5a45; --dark:#0f2a21;
        --yellow:#ffd54a; --red:#b3261e; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 "Source Sans 3", system-ui, -apple-system, Segoe UI, Arial, sans-serif; }
a { color: var(--green); }
h1, h2, h3, .brand, .btn { font-family: "Bricolage Grotesque", system-ui, Arial, sans-serif; }
h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.1; margin: 0.4em 0 0.3em; }
h2 { font-size: 24px; margin: 1.4em 0 0.5em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
header.top { background: var(--dark); color: #fff; }
header.top .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 21px; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; }
nav.main { display: flex; gap: 4px 16px; flex-wrap: wrap; font-weight: 600; }
nav.main a { color: #e8f0ec; text-decoration: none; }
nav.main a:hover { color: var(--yellow); }
.crumbs { font-size: 14px; color: var(--dim); margin-top: 14px; }
.lead { font-size: 19px; color: var(--dim); margin: 0 0 18px; }
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; cursor: pointer;
       background: var(--green); color: #fff; text-decoration: none; }
.btn.alt { background: #e6ece8; color: var(--ink); }
.btn.gold { background: var(--yellow); color: var(--ink); }
.tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; }
.puzzle { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.puzzle svg { width: 100%; height: auto; display: block; max-width: 640px; margin: 0 auto; }
.maze-svg { width: 100%; height: auto; max-height: 82vh; }
svg text.lbl { font-family: "Bricolage Grotesque", Arial, sans-serif; font-weight: 800; text-anchor: middle; fill: #000; letter-spacing: 2px; }
.ws text { text-anchor: middle; font-family: "Atkinson Hyperlegible", Arial, sans-serif; font-weight: 700; font-size: 70px; fill: #000; }
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 16px; margin: 16px 0 0;
         font: 700 17px "Atkinson Hyperlegible", Arial, sans-serif; letter-spacing: .03em; }
.words label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.words input:checked + span { text-decoration: line-through; color: #8a958f; }
.hidden { display: none !important; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--green); }
.card b { display: block; font-family: "Bricolage Grotesque", Arial, sans-serif; font-size: 17px; }
.card span { color: var(--dim); font-size: 14px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e6ece8; color: var(--green); }
.cta { margin: 26px 0; padding: 18px; border-radius: 14px; background: var(--dark); color: #fff; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cta p { margin: 0; font-size: 17px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.sud { border-collapse: collapse; margin: 0 auto; touch-action: manipulation; }
.sud td { width: calc((100vw - 64px) / 9); height: calc((100vw - 64px) / 9); max-width: 54px; max-height: 54px; border: 1px solid #888; padding: 0; text-align: center;
          font: 700 clamp(18px, 5.5vw, 28px) "Atkinson Hyperlegible", Arial, sans-serif; }
.sud td:nth-child(3n) { border-right: 3px solid #111; } .sud td:first-child { border-left: 3px solid #111; }
.sud tr:nth-child(3n) td { border-bottom: 3px solid #111; } .sud tr:first-child td { border-top: 3px solid #111; }
.sud input { width: 100%; height: 100%; border: 0; text-align: center; font: inherit; color: var(--green); background: transparent; padding: 0; }
.sud input.bad { background: #ffe1dc; color: var(--red); }
.sud input.good { background: #e3f4e9; }
@media (min-width: 560px) { .sud td { width: 54px; height: 54px; } }
@media (max-width: 559px) { .puzzle { padding: 8px; } .wrap { padding: 0 12px; } }
.teaser { font: 700 clamp(22px, 4vw, 30px)/1.3 "Bricolage Grotesque", Arial, sans-serif; margin: 6px 0 14px; }
.timer { font: 800 46px "Bricolage Grotesque", Arial, sans-serif; color: var(--green); }
.answer { background: #fff7d6; border-radius: 12px; padding: 14px; margin-top: 12px; }
footer { margin-top: 40px; padding: 26px 0; background: #eef2ef; font-size: 14px; color: var(--dim); }
footer a { color: var(--dim); margin-right: 14px; }
.ad { margin: 18px 0; min-height: 0; }
@media print {
  header.top, footer, nav, .tools, .cta, .pager, .crumbs, .lead, .ad, .noprint, h2.more, .cards { display: none !important; }
  body { background: #fff; } .puzzle { border: 0; padding: 0; }
  .puzzle svg { max-width: none; }
  .words { font-size: 14pt; }
}
