:root {
  --paper: #F7F5EF;
  --paper-light: #FFFEFA;
  --ink: #173D30;
  --grass: #39734F;
  --tomato: #B65842;
  --muted: #58685D;
  --rule: #CDD4C7;
  --control: #7C8C80;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; left: 16px; top: -60px; padding: 12px 16px; color: var(--paper); background: var(--ink); }
.skip-link:focus { top: 10px; }

.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; text-decoration: none; white-space: nowrap; }
.brand img { width: 46px; height: 46px; }
.brand-name { font-size: 23px; font-weight: 770; letter-spacing: -.055em; }
.brand-name em { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.07em; }
.header-nav { display: flex; align-items: center; gap: 27px; font-size: 14px; }
.header-nav a { text-decoration-color: transparent; }
.header-nav a:hover { text-decoration-color: currentColor; }
.nav-play { min-height: 44px; padding: 9px 14px; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 4px 11px 4px 11px; font-size: 13px; font-weight: 700; }
.nav-play:hover, .primary-button:hover { background: var(--grass); border-color: var(--grass); }
.nav-play span { padding-left: 9px; }

.hero { min-height: 635px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: 54px 72px; }
.eyebrow { margin: 0; color: var(--grass); font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.eyebrow-ball { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border: 2px solid var(--tomato); border-radius: 50%; }
.hero h1 { max-width: 600px; margin: 25px 0 24px; font-family: var(--serif); font-size: clamp(52px, 5.9vw, 78px); font-weight: 400; line-height: 1.02; letter-spacing: -.06em; }
.hero h1 i { color: var(--grass); font-weight: 400; }
.hero-description { max-width: 485px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 23px; margin-top: 34px; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 12px 20px; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 4px 13px 4px 12px; font-size: 14px; font-weight: 730; text-align: left; }
.primary-button:disabled { cursor: not-allowed; opacity: .55; }
.hero-cadence { color: var(--muted); font-size: 12px; line-height: 1.6; }
.hero-cadence strong { color: var(--ink); }
.hero-illustration { position: relative; height: 470px; isolation: isolate; }
.hero-orbits { position: absolute; inset: 20px 2% auto; width: 96%; height: 400px; }
.hero-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; min-width: 173px; min-height: 72px; padding: 10px 13px; background: var(--paper-light); border: 1px solid var(--rule); border-radius: 3px 10px 3px 8px; box-shadow: 2px 3px 0 #DDE2D7; }
.hero-chip b, .hero-chip small { display: block; }
.hero-chip b { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.hero-chip small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.chip-icon { display: grid; place-items: center; width: 37px; height: 37px; flex: none; color: var(--ink); background: #EBEEE4; border: 1px solid var(--rule); border-radius: 6px; font-family: var(--serif); font-size: 23px; }
.chip-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip-one { top: 38px; left: 1%; transform: rotate(-2deg); }
.chip-two { top: 80px; right: 0; transform: rotate(2deg); }
.chip-three { bottom: 105px; left: 0; transform: rotate(1deg); }
.chip-four { bottom: 68px; right: 3%; transform: rotate(-2deg); }
.hero-secret { position: absolute; z-index: 1; left: 48%; top: 47%; display: grid; place-items: center; width: 66px; height: 66px; color: var(--paper); background: var(--tomato); border-radius: 48% 52% 42% 58%; font: italic 43px var(--serif); transform: translate(-50%, -50%); }
.hero-caption { position: absolute; bottom: 0; left: 28%; margin: 0; color: var(--muted); font: italic 17px var(--serif); }

.how { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding-block: 61px 68px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.how-heading h2 { max-width: 380px; margin: 18px 0 15px; font: 400 clamp(36px, 4vw, 50px)/1.08 var(--serif); letter-spacing: -.055em; }
.how-heading > p:last-child { max-width: 400px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 23px; padding: 13px 0 21px; border-bottom: 1px solid var(--rule); }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.step-number { min-width: 29px; color: var(--tomato); font: italic 20px var(--serif); }
.steps h3 { margin: 0 0 5px; font-size: 16px; }
.steps p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.game { padding-top: 72px; scroll-margin-top: 25px; }
.how { scroll-margin-top: 34px; }
.game-topline { display: flex; justify-content: space-between; gap: 20px; }
.edition { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .07em; }
.game-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin: 10px 0 26px; }
.game-heading h2 { margin: 0; font: 400 clamp(38px, 5vw, 59px)/1.08 var(--serif); letter-spacing: -.055em; }
.game-heading p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.date-control { position: relative; width: 245px; flex: none; }
.date-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.calendar-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 47px; padding: 9px 13px; color: var(--ink); background: var(--paper-light); border: 1.5px solid var(--control); border-radius: 5px; text-align: left; font-size: 14px; }
.calendar-toggle:disabled { opacity: .65; cursor: not-allowed; }
.calendar-toggle span:last-child { color: var(--grass); font-size: 19px; }
.calendar { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: min(318px, calc(100vw - 30px)); padding: 16px; background: var(--paper-light); border: 1px solid var(--rule); border-radius: 5px 12px 5px 12px; box-shadow: 0 18px 40px #173D3025; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.calendar-head strong { font: 400 22px var(--serif); }
.calendar-head button { width: 34px; height: 34px; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 5px; }
.calendar-head button:disabled { opacity: .3; cursor: not-allowed; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.calendar-weekdays { margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.calendar-days button, .calendar-days > span { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 0; border-radius: 5px; }
.calendar-days button { color: var(--ink); background: #E9F0E7; font-size: 13px; font-weight: 750; }
.calendar-days button:hover:not(:disabled) { color: white; background: var(--grass); }
.calendar-days button:disabled { color: #A2A9A0; background: transparent; cursor: not-allowed; font-weight: 400; }
.calendar-days button.selected { color: white; background: var(--ink); }
.calendar-note { margin: 11px 0 0 !important; color: var(--muted); font-size: 11px !important; }
.demo-banner { margin: 0 0 18px; padding: 11px 15px; color: var(--ink); background: #EFEADC; border-left: 3px solid var(--tomato); font-size: 13px; line-height: 1.5; }
.game-content { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; padding: 40px 0 42px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.clue-panel { position: relative; min-height: 510px; display: grid; place-items: center; }
.clue-orbits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.clue-list { position: relative; z-index: 1; width: 100%; min-height: 490px; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: space-between; column-gap: 64px; row-gap: 178px; list-style: none; }
.clue-card { min-height: 116px; display: flex; gap: 10px; align-items: flex-start; padding: 16px 13px; background: var(--paper-light); border: 1px solid var(--rule); border-radius: 4px 10px 4px 8px; box-shadow: 2px 2px 0 #E1E5DA; }
.clue-card:nth-child(1) { transform: rotate(-1.3deg); }
.clue-card:nth-child(2) { transform: rotate(1.1deg); }
.clue-card:nth-child(3) { transform: rotate(.8deg); }
.clue-card:nth-child(4) { transform: rotate(-.9deg); }
.clue-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; color: var(--ink); background: #E9EFE5; border-radius: 4px; }
.clue-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clue-number { display: block; color: var(--grass); font-size: 10px; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.clue-copy strong { display: block; margin-top: 4px; font-family: var(--serif); font-size: 20px; line-height: 1.12; }
.clue-context { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.answer-centre { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 60px; height: 60px; color: var(--paper); background: var(--tomato); border: 4px solid var(--paper); border-radius: 50%; transform: translate(-50%, -50%); font: italic 37px var(--serif); }
.answer-panel { padding: 25px 0 15px 36px; border-left: 1px solid var(--rule); }
.answer-panel h3 { max-width: 330px; margin: 15px 0 13px; font: 400 38px/1.08 var(--serif); letter-spacing: -.05em; }
.answer-lead { max-width: 330px; margin: 0 0 23px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.answer-type { margin: 0 0 21px; color: var(--grass); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.pattern-block { margin-bottom: 22px; padding: 14px 0 15px; border-block: 1px solid var(--rule); }
.pattern-block > span { display: block; color: var(--muted); font-size: 12px; }
.pattern { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 11px; }
.pattern-word { display: inline-flex; gap: 5px; margin-right: 12px; }
.pattern-cell { display: inline-block; width: 13px; height: 16px; border-bottom: 2px solid var(--grass); }
.answer-panel label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 720; }
.answer-panel input { width: 100%; min-height: 51px; padding: 12px 14px; color: var(--ink); background: var(--paper-light); border: 1.5px solid var(--control); border-radius: 5px; font-size: 15px; }
.answer-panel input::placeholder { color: #68786D; }
.answer-panel form .primary-button { width: 100%; margin-top: 10px; }
.attempts { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; }
.attempt-marks { display: inline-flex; gap: 5px; }
.attempt-marks i { width: 10px; height: 10px; border: 1.5px solid var(--grass); border-radius: 50%; }
.attempt-marks i.spent { background: var(--grass); }
.guess-history { display: grid; gap: 13px; margin-top: 20px; }
.guess-row small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.guess-tiles { display: flex; flex-wrap: wrap; gap: 4px; }
.guess-tile, .tile-key span { display: inline-grid; place-items: center; width: 29px; height: 32px; border-radius: 3px; font-size: 13px; font-weight: 800; }
.guess-tile.correct, .tile-key .key-correct { color: white; background: #33784F; }
.guess-tile.present, .tile-key .key-present { color: #2B2D21; background: #E7C661; }
.guess-tile.absent, .tile-key .key-absent { color: #4C554D; background: #DDE1D8; }
.tile-key { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 17px 0 0; color: var(--muted); font-size: 11px; }
.tile-key span { width: 19px; height: 20px; font-size: 10px; }
.tile-key span:not(:first-child) { margin-left: 8px; }
.quiet-note { margin: 21px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.feedback { min-height: 26px; margin: 13px 0 0; color: var(--ink); font-size: 13px; font-weight: 650; }
.feedback.error { color: #91432F; }
.game-empty { margin: 0; padding: 36px 0; color: var(--muted); font-size: 15px; }

.result { margin-top: 36px; padding: 30px 34px 34px; background: #EEF2E9; border: 1px solid var(--rule); border-radius: 5px; }
.result h3 { margin: 0 0 10px; font: 400 37px var(--serif); letter-spacing: -.045em; }
.result > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.result .answer-reveal { color: var(--grass); font-style: italic; }
.connection-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.connection-list li { padding: 17px 0; border-top: 1px solid var(--rule); }
.connection-list strong { display: block; margin-bottom: 5px; font-size: 14px; }
.connection-list p { margin: 0 0 9px; color: var(--ink); font-size: 13px; line-height: 1.55; }
.connection-list a { color: var(--grass); font-size: 12px; font-weight: 700; }
.share { display: flex; align-items: center; gap: 16px; margin-top: 21px; }
.share button { min-height: 43px; padding: 9px 14px; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 4px 9px 4px 9px; font-size: 13px; font-weight: 700; }
.share button:hover { background: #E8EEE4; }
.share p { margin: 0; color: var(--muted); font-size: 12px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 90px; padding: 24px 0 42px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; }
.site-footer details { max-width: 720px; }
.site-footer summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.site-footer p { margin: 12px 0 0; line-height: 1.6; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr .84fr; gap: 25px; }
  .hero h1 { font-size: clamp(49px, 5.8vw, 65px); }
  .hero-chip { min-width: 150px; }
  .game-content { gap: 26px; }
  .clue-list { column-gap: 25px; }
  .answer-panel { padding-left: 24px; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 55px 33px; }
  .hero-illustration { width: min(550px, 100%); margin-inline: auto; }
  .how { grid-template-columns: 1fr; gap: 30px; }
  .game-content { grid-template-columns: 1fr; }
  .clue-panel { max-width: 620px; width: 100%; margin-inline: auto; }
  .answer-panel { padding: 22px 0 10px; border-left: 0; border-top: 1px solid var(--rule); }
  .answer-panel h3, .answer-lead { max-width: none; }
}
@media (max-width: 590px) {
  .shell { width: min(100% - 30px, 1160px); }
  .site-header { min-height: 72px; }
  .brand { gap: 5px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 19px; }
  .brand-name em { font-size: 21px; }
  .header-nav { gap: 0; }
  .header-nav a { display: none; }
  .nav-play { min-height: 40px; padding: 7px 9px; font-size: 11px; }
  .nav-play span { padding-left: 2px; }
  .hero { min-height: 0; padding-block: 48px 47px; }
  .hero h1 { margin-block: 20px; font-size: clamp(45px, 11vw, 62px); }
  .hero-description { font-size: 16px; }
  .hero-actions { flex-wrap: wrap; gap: 15px; }
  .hero-illustration { height: 375px; }
  .hero-orbits { top: 0; height: 355px; }
  .hero-chip { min-width: 125px; min-height: 59px; gap: 7px; padding: 7px; }
  .hero-chip b { font-size: 16px; }
  .hero-chip small { font-size: 9px; }
  .chip-icon { width: 29px; height: 29px; font-size: 18px; }
  .chip-one { top: 23px; }
  .chip-two { top: 50px; }
  .chip-three { bottom: 90px; }
  .chip-four { bottom: 72px; }
  .hero-secret { width: 50px; height: 50px; font-size: 32px; }
  .hero-caption { left: 18%; bottom: 8px; }
  .how { padding-block: 45px; }
  .game { padding-top: 47px; }
  .game-topline { align-items: center; }
  .edition { text-align: right; font-size: 10px; }
  .game-heading { align-items: stretch; flex-direction: column; margin-bottom: 22px; }
  .game-heading h2 { font-size: 41px; }
  .date-control { width: 100%; }
  .game-content { padding-top: 21px; }
  .clue-panel { display: block; min-height: 0; }
  .clue-orbits { display: none; }
  .clue-list { min-height: 0; padding: 0; column-gap: 11px; row-gap: 11px; }
  .clue-card { min-height: 120px; display: block; padding: 11px; transform: none !important; }
  .clue-icon { width: 31px; height: 31px; margin-bottom: 5px; }
  .clue-icon svg { width: 22px; height: 22px; }
  .clue-copy strong { font-size: 18px; }
  .clue-context { font-size: 12px; }
  .answer-centre { position: static; width: 45px; height: 45px; margin: 12px auto 0; border-width: 2px; font-size: 28px; transform: none; }
  .answer-panel h3 { font-size: 36px; }
  .result { padding: 23px 18px; }
  .connection-list { grid-template-columns: 1fr; }
  .share { align-items: start; flex-direction: column; }
  .site-footer { margin-top: 60px; }
}
@media (max-width: 360px) {
  .nav-play { font-size: 0; }
  .nav-play span { font-size: 17px; }
  .hero-chip { min-width: 111px; }
  .hero-chip small { display: none; }
  .clue-copy strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
dialog { border: 1px solid #39734F; border-radius: 16px; padding: 28px; max-width: 430px; width: calc(100% - 48px); background: #FFFEFA; color: #173D30; }
dialog::backdrop { background: rgb(23 61 48 / 45%); }
dialog button, #hint-button { min-height: 44px; margin: 8px 8px 0 0; }
#hint-text { font-size: 1.15rem; }
