:root {
  --cream: #f7f0df;
  --cream-2: #fffaf0;
  --paper: #fffdf8;
  --forest: #173f35;
  --forest-2: #245848;
  --ink: #172f29;
  --muted: #5f7069;
  --sage: #dfe8d9;
  --sage-2: #eef3ea;
  --gold: #bd8732;
  --gold-soft: #edcf8e;
  --rust: #a95037;
  --line: rgba(23, 63, 53, 0.16);
  --shadow: 0 24px 70px rgba(26, 50, 41, 0.14);
  --radius: 22px;
  --radius-lg: 34px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.65 var(--sans); text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(800px, calc(100% - 36px)); margin-inline: auto; }

.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--forest); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(189, 99, 69, 0.65); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(23, 63, 53, 0.1); background: rgba(247, 240, 223, 0.91); backdrop-filter: blur(16px); }
.nav-wrap { width: min(1160px, calc(100% - 36px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 1.06rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.brand-logo { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); object-fit: cover; box-shadow: 3px 4px 0 rgba(189,135,50,.28); }
.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-links a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 999px; color: #3f5850; font-size: .86rem; font-weight: 750; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current='page'] { background: rgba(255,255,255,.68); color: var(--forest); }

.eyebrow, .hero-kicker, .demo-label { margin: 0 0 13px; color: var(--rust); font-size: .74rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.display, .section-title { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.05em; line-height: .98; }
.display { max-width: 720px; font-size: clamp(3.3rem, 7.3vw, 6.2rem); }
.display em { color: var(--forest-2); font-style: normal; }
.section-title { font-size: clamp(2.35rem, 5vw, 4.4rem); }
.lede { max-width: 650px; margin: 22px 0 0; color: #485e56; font-size: clamp(1.05rem, 2vw, 1.24rem); }
.section { padding: 100px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 42px; margin-bottom: 44px; }
.section-head .section-title { max-width: 680px; }
.section-note { max-width: 390px; margin: 0; color: var(--muted); }

.hero { position: relative; overflow: hidden; padding: 70px 0 78px; }
.hero::before { content: ''; position: absolute; width: 560px; height: 560px; top: -290px; right: -100px; border: 1px solid rgba(189,135,50,.25); border-radius: 50%; box-shadow: 0 0 0 70px rgba(189,135,50,.04), 0 0 0 140px rgba(189,135,50,.03); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(46px, 7vw, 96px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); }
.hero-kicker::before { content: ''; width: 35px; height: 1px; background: var(--gold); }
.hero-sub { max-width: 620px; margin: 25px 0 0; color: #445c53; font-size: clamp(1.04rem, 1.7vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--forest); border-radius: 999px; background: var(--forest); color: white; font-size: .9rem; font-weight: 820; text-decoration: none; box-shadow: 0 10px 24px rgba(23,63,53,.15); transition: transform .18s ease, background-color .18s ease; }
.button:hover { background: #0d3128; transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--forest); box-shadow: none; }
.button.secondary:hover { background: rgba(255,255,255,.55); }
.button.disabled { cursor: default; opacity: .86; pointer-events: none; }
.button.disabled:hover { background: var(--forest); transform: none; }
.microcopy { margin: 13px 0 0; color: var(--muted); font-size: .76rem; }
.hero-shot { position: relative; width: min(380px, 100%); height: 650px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(23,63,53,.18); border-radius: 42px; background: var(--paper); box-shadow: var(--shadow), -20px 22px 0 rgba(189,135,50,.18); transform: rotate(1.5deg); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-shot figcaption { position: absolute; right: 18px; bottom: 18px; left: 18px; padding: 12px 16px; border-radius: 999px; background: rgba(23,63,53,.92); color: #fff; font-size: .78rem; font-weight: 800; text-align: center; backdrop-filter: blur(8px); }

.trust-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.28); }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.trust-item { padding: 22px 26px; text-align: center; font-size: .82rem; font-weight: 800; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item span { display: block; color: var(--rust); font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }

.game-overview { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.overview-card { min-height: 320px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.overview-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(23,63,53,.09); }
.overview-card.word-link { background: var(--forest); color: #fff; }
.overview-card.chain-reaction { background: var(--paper); }
.overview-card.last-link { background: var(--sage); }
.card-index { color: var(--gold-soft); font-family: var(--serif); }
.chain-reaction .card-index, .last-link .card-index { color: var(--rust); }
.overview-card h3 { margin: auto 0 10px; font-family: var(--serif); font-size: clamp(2rem,3vw,3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.overview-card p { margin: 0; color: inherit; font-size: .98rem; }
.word-link p { color: #dce8e2; }
.text-link { margin-top: 26px; font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.game-details { background: var(--paper); }
.game-detail { padding: 104px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.game-detail.alt { background: var(--sage-2); }
.detail-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(46px,7vw,90px); }
.detail-grid.reverse .detail-copy { order: 2; }
.detail-copy p:not(.eyebrow) { max-width: 520px; margin: 24px 0 0; color: #485f56; font-size: 1.02rem; }
.feature-list { display: grid; gap: 8px; margin: 25px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: var(--forest); font-size: .85rem; font-weight: 800; }
.feature-list li::before { content: '•'; color: var(--gold); font-size: 1.4rem; line-height: .7; }
.mechanic-panel { min-height: 470px; display: flex; flex-direction: column; justify-content: center; padding: clamp(25px,5vw,48px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream-2); box-shadow: 0 22px 55px rgba(23,63,53,.08); }

.clue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clue-grid span { padding: 18px 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; text-align: center; }
.answer-pill { width: 170px; margin: 22px auto; padding: 10px 20px 14px; border-radius: 18px; background: var(--forest); color: #fff; text-align: center; }
.answer-pill small { display: block; color: var(--gold-soft); font-size: .65rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.answer-pill strong { font-family: var(--serif); font-size: 2rem; }
.connections { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.connections span { padding: 9px; border-bottom: 1px solid var(--line); font-size: .78rem; text-align: center; }
.connections strong { color: var(--forest-2); }

.chain-demo { background: var(--forest); color: #fff; }
.chain-demo .demo-label { color: var(--gold-soft); }
.word-chain { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; }
.word-chain span { padding: 13px 15px; border: 1px solid rgba(255,255,255,.3); border-radius: 13px; background: rgba(255,255,255,.08); font-family: var(--serif); font-size: .98rem; }
.word-chain i { color: var(--gold-soft); font-style: normal; }
.chain-readout { margin: 28px auto 0; color: #d7e5de; font-size: .8rem; line-height: 1.9; text-align: center; }

.last-demo { background: #f5e6d4; }
.last-demo .demo-label { margin-bottom: 4px; text-align: center; }
.root-word { margin: 0 auto 24px; color: var(--forest); font-family: var(--serif); font-size: 2.7rem; font-weight: 700; letter-spacing: .05em; }
.last-demo blockquote { max-width: 440px; margin: 0 auto 26px; color: #354a42; font-family: var(--serif); font-size: 1.32rem; line-height: 1.35; text-align: center; }
.letter-row { display: flex; justify-content: center; gap: 7px; }
.letter-row span { width: 44px; height: 49px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 10px; background: rgba(255,255,255,.55); font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.answer-reveal { margin: 20px 0 0; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-align: center; }
.answer-reveal strong { color: var(--forest); }

.daily-section { background: var(--cream); }
.daily-grid { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: clamp(42px,7vw,92px); }
.today-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.today-head { display: flex; justify-content: space-between; padding: 3px 3px 18px; border-bottom: 1px solid var(--line); font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.today-head span:last-child { color: var(--muted); }
.today-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; padding: 19px 3px; border-bottom: 1px solid var(--line); }
.today-row strong { font-family: var(--serif); font-size: 1.2rem; }
.today-row small { color: var(--muted); }
.game-dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-green { background: var(--forest-2); }.dot-gold { background: var(--gold); }.dot-rust { background: var(--rust); }
.today-footer { padding: 20px 3px 3px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.progress-track { height: 7px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #e5e4dc; }
.progress-track i { display: block; width: 66%; height: 100%; background: var(--forest-2); }

.practice-section { background: var(--forest); color: #fff; }
.practice-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.practice-card { grid-column: span 4; min-height: 260px; padding: 27px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.practice-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--gold-soft); color: var(--forest); font-family: var(--serif); font-weight: 700; }
.practice-card h3 { margin: 52px 0 9px; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.practice-card p { margin: 0; color: #ccddd5; font-size: .88rem; }
.practice-copy { grid-column: 3 / span 8; padding: 60px 20px 0; text-align: center; }
.practice-copy .eyebrow { color: var(--gold-soft); }
.practice-copy p:last-child { max-width: 600px; margin: 22px auto 0; color: #ccddd5; }

.results-section { background: var(--paper); }
.results-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.result-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-2); }
.result-mark { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: var(--sage); color: var(--forest); font-size: 1.35rem; }
.result-card h3 { margin: 42px 0 8px; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.result-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.cta-section { padding: 90px 0; }
.cta-panel { position: relative; overflow: hidden; padding: clamp(42px,7vw,78px); border-radius: var(--radius-lg); background: var(--forest); color: #fff; text-align: center; }
.cta-panel::after { content: 'CG'; position: absolute; right: -20px; bottom: -75px; color: rgba(255,255,255,.04); font: 13rem/1 var(--serif); }
.cta-panel > * { position: relative; z-index: 1; }
.cta-icon { margin: 0 auto 22px; border-radius: 24px; box-shadow: 7px 8px 0 rgba(237,207,142,.25); }
.cta-panel .eyebrow { color: var(--gold-soft); }
.cta-panel .section-title { max-width: 760px; margin-inline: auto; }
.cta-panel p:not(.eyebrow) { max-width: 590px; margin: 20px auto 0; color: #d5e3dc; }
.cta-panel .actions { justify-content: center; }
.cta-panel .button { border-color: var(--gold-soft); background: var(--gold-soft); color: var(--forest); box-shadow: none; }
.cta-panel .button.disabled:hover { background: var(--gold-soft); }

.page-hero { padding: 70px 0 52px; border-bottom: 1px solid var(--line); }
.page-hero .display { max-width: 100%; font-size: clamp(3rem,7vw,5.6rem); }
.content-section { padding: 70px 0 100px; }
.prose h2 { margin: 52px 0 14px; font: 500 2rem/1.15 var(--serif); letter-spacing: -.025em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 1rem; }
.prose p, .prose li { color: #445b53; }
.prose ul, .prose ol { padding-left: 23px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--forest); font-weight: 750; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.notice { margin: 30px 0; padding: 22px 24px; border: 1px solid rgba(189,135,50,.45); border-radius: var(--radius); background: #fff8e6; }
.notice p { margin: 0; }
.faq { display: grid; gap: 12px; margin-top: 28px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.faq summary { position: relative; padding: 18px 54px 18px 20px; cursor: pointer; list-style: none; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; top: 14px; right: 20px; color: var(--gold); font: 1.55rem var(--serif); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 20px 20px; }
.contact-card { margin-top: 54px; padding: 34px; border-radius: var(--radius-lg); background: var(--forest); color: #fff; }
.contact-card h2 { margin: 0 0 9px; font: 500 2.2rem var(--serif); }
.contact-card p { margin: 0; color: #d9e6e0; }
.contact-card a { display: inline-block; margin-top: 19px; color: var(--gold-soft); font-size: 1.05rem; font-weight: 800; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; color: var(--muted); font-size: .86rem; }
.data-table { width: 100%; margin: 24px 0 12px; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: var(--sage-2); color: var(--forest); }

.site-footer { padding: 46px 0 34px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: start; }
.footer-copy { max-width: 410px; margin: 14px 0 0; color: var(--muted); font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.footer-links a { color: #40594f; font-size: .86rem; font-weight: 750; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copyright { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: #78827e; font-size: .76rem; }

@media (max-width: 900px) {
  .hero-grid, .detail-grid, .daily-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-kicker, .actions { justify-content: center; }
  .hero-sub, .microcopy { margin-inline: auto; }
  .hero-shot { height: 620px; margin-top: 20px; }
  .section-head { align-items: start; flex-direction: column; }
  .game-overview, .results-grid { grid-template-columns: 1fr; }
  .overview-card { min-height: 260px; }
  .detail-grid.reverse .detail-copy { order: 0; }
  .detail-copy { text-align: center; }
  .detail-copy p:not(.eyebrow) { margin-inline: auto; }
  .feature-list { width: fit-content; margin-inline: auto; text-align: left; }
  .practice-card { grid-column: span 12; min-height: 210px; }
  .practice-card h3 { margin-top: 36px; }
  .practice-copy { grid-column: span 12; padding-top: 38px; }
}

@media (max-width: 640px) {
  .nav-wrap { min-height: 66px; }
  .brand { font-size: .94rem; }
  .brand-logo { width: 38px; height: 38px; border-radius: 11px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0 8px; font-size: .77rem; }
  .nav-links a:nth-child(2) { display: none; }
  .hero { padding: 50px 0 58px; }
  .display { font-size: clamp(2.85rem,14vw,4.6rem); }
  .hero-sub { font-size: 1rem; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-shot { width: min(340px,92%); height: 560px; border-radius: 34px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-top: 1px solid var(--line); border-left: 0; }
  .section, .game-detail { padding: 76px 0; }
  .mechanic-panel { min-height: 410px; padding: 24px 18px; }
  .word-chain span { padding: 10px 11px; font-size: .84rem; }
  .letter-row { gap: 4px; }
  .letter-row span { width: 38px; height: 44px; }
  .today-card { padding: 20px; }
  .today-row { grid-template-columns: 10px 1fr; }
  .today-row small { grid-column: 2; }
  .page-hero { padding-top: 52px; }
  .content-section { padding-top: 52px; }
  .data-table { display: block; overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 350px) {
  .nav-links a:first-child { display: none; }
  .display { font-size: 2.7rem; }
  .hero-shot { height: 520px; }
  .clue-grid span { padding: 14px 7px; font-size: 1rem; }
  .connections { grid-template-columns: 1fr; }
  .mechanic-panel { min-height: 450px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .actions { display: none; }
  body { background: #fff; color: #000; }
  .content-section { padding-top: 20px; }
  .prose p, .prose li { color: #000; }
}
