/* Forester Games — shared styles
   Palette: hunter green house colours, amber for Don't Say a Word,
   coral for Tic-Tac-Doh. Quicksand throughout, matching the games. */

:root{
  --forest:#16301f;
  --forest-lift:#1d3d29;
  --hunter:#245038;
  --moss:#356b48;
  --sprout:#5d9b6d;
  --bone:#f4efdf;
  --bone-dim:#c9c2ad;
  --amber:#e6a63c;
  --coral:#e8735a;
  --ink:#0d1f14;
  --shadow:0 5px 0 var(--ink);
  --shadow-sm:0 4px 0 var(--ink);
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}

body{
  background:var(--forest);
  background-image:radial-gradient(circle at 50% -10%,var(--forest-lift) 0%,var(--forest) 60%);
  color:var(--bone);
  font-family:Quicksand,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:500;
  line-height:1.6;
  min-height:100vh;
  padding:2rem 1.25rem 4rem;
}

.wrap{max-width:44rem;margin:0 auto}
.wrap-narrow{max-width:38rem;margin:0 auto}

/* ---------- masthead ---------- */
.masthead{
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;margin-bottom:3.5rem;flex-wrap:wrap;
}
.wordmark{
  display:inline-flex;align-items:center;gap:.55rem;
  font-weight:700;font-size:1.05rem;letter-spacing:-.01em;
  color:var(--bone);text-decoration:none;
}
.wordmark .pip{
  width:1.55rem;height:1.55rem;border-radius:8px;
  background:var(--sprout);border:3px solid var(--ink);
  box-shadow:0 3px 0 var(--ink);
  display:grid;place-items:center;
  font-size:.8rem;font-weight:700;color:var(--ink);
}
.masthead nav{display:flex;gap:1.25rem;font-size:.93rem;font-weight:600}
.masthead nav a{color:var(--bone-dim);text-decoration:none}
.masthead nav a:hover{color:var(--bone)}
.masthead nav a:focus-visible,.wordmark:focus-visible{
  outline:3px solid var(--sprout);outline-offset:3px;border-radius:4px;
}

/* ---------- hero ---------- */
.hero{text-align:center;margin-bottom:4rem}
.hero h1{
  font-size:clamp(2.1rem,7vw,3.1rem);font-weight:700;
  letter-spacing:-.025em;line-height:1.08;margin-bottom:.85rem;
}
.hero p{
  color:var(--bone-dim);font-size:1.08rem;
  max-width:30rem;margin:0 auto;
}

/* letter tiles */
.tiles{display:flex;gap:.4rem;justify-content:center;flex-wrap:wrap;margin-bottom:1.9rem}
.tile{
  width:2.9rem;height:3.4rem;display:grid;place-items:center;
  font-size:1.5rem;font-weight:700;color:var(--ink);
  background:var(--bone);border-radius:12px;
  border:3px solid var(--ink);box-shadow:var(--shadow-sm);
  animation:drop .42s cubic-bezier(.2,.9,.3,1.4) backwards;
}
.tile.empty{
  background:transparent;color:transparent;
  border:3px dashed rgba(244,239,223,.32);box-shadow:none;animation:none;
}
.tile:nth-child(1){animation-delay:.05s}
.tile:nth-child(2){animation-delay:.13s}
.tile:nth-child(3){animation-delay:.21s}
.tile:nth-child(4){animation-delay:.29s}
.tile:nth-child(5){animation-delay:.37s}
.tile:nth-child(6){animation-delay:.45s}
.tile:nth-child(7){animation-delay:.53s}
@keyframes drop{
  from{opacity:0;transform:translateY(-14px) rotate(-4deg)}
  to{opacity:1;transform:none}
}

/* ---------- section labels ---------- */
h2.eyebrow{
  font-size:.78rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--sprout);margin:0 0 1.1rem;
}

/* ---------- game cards ---------- */
.game{
  background:var(--hunter);border:3px solid var(--ink);
  border-radius:22px;box-shadow:var(--shadow);
  padding:1.6rem 1.5rem;margin-bottom:1.4rem;
}
.game.soon{background:#1f4430}
.game-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.7rem}
.game h3{font-size:1.4rem;font-weight:700;letter-spacing:-.01em}
.game p{color:#dfd9c6;font-size:1rem}
.game p + p{margin-top:.7rem}

.badge{
  flex:none;font-size:.7rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;padding:.32rem .7rem;border-radius:999px;
  border:2px solid var(--ink);color:var(--ink);white-space:nowrap;
}
.badge.live{background:var(--amber)}
.badge.soon{background:var(--coral)}

.rule{
  display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1.1rem;
  font-size:.82rem;font-weight:600;color:var(--bone-dim);
}
.rule span{
  border:2px dashed rgba(244,239,223,.28);
  border-radius:999px;padding:.25rem .7rem;
}

/* tic-tac-toe glyph */
.grid3{
  display:grid;grid-template-columns:repeat(3,2.1rem);
  grid-template-rows:repeat(3,2.1rem);gap:.3rem;margin-top:1.2rem;
}
.cell{
  border:3px dashed rgba(244,239,223,.26);border-radius:9px;
  display:grid;place-items:center;font-weight:700;font-size:1.05rem;
  color:var(--bone-dim);
}
.cell.x{color:var(--coral);border-style:solid;border-color:var(--ink);background:#1a3826}
.cell.o{color:var(--amber);border-style:solid;border-color:var(--ink);background:#1a3826}

/* ---------- buttons ---------- */
.btn{
  display:inline-block;background:var(--amber);color:var(--ink);
  font-family:inherit;font-weight:700;font-size:1rem;text-decoration:none;
  padding:.75rem 1.5rem;border-radius:14px;border:3px solid var(--ink);
  box-shadow:var(--shadow-sm);margin-top:1.3rem;
  transition:transform .12s ease,box-shadow .12s ease;
}
.btn:hover{transform:translateY(2px);box-shadow:0 2px 0 var(--ink)}
.btn:active{transform:translateY(4px);box-shadow:0 0 0 var(--ink)}
.btn:focus-visible{outline:3px solid var(--sprout);outline-offset:3px}
.btn.ghost{
  background:transparent;color:var(--bone);border-color:var(--sprout);
  box-shadow:0 4px 0 var(--moss);
}
.btn.ghost:hover{box-shadow:0 2px 0 var(--moss)}
.btn.ghost:active{box-shadow:0 0 0 var(--moss)}

/* ---------- FAQ / content cards ---------- */
.card{
  background:var(--hunter);border:3px solid var(--ink);
  border-radius:18px;box-shadow:var(--shadow);
  padding:1.15rem 1.3rem;margin-bottom:.9rem;
}
.card h3{font-size:1.02rem;font-weight:700;margin-bottom:.35rem}
.card p{color:#dfd9c6;font-size:.97rem}
.card p + p{margin-top:.6rem}

.contact{
  background:var(--bone);color:var(--ink);border:3px solid var(--ink);
  border-radius:18px;box-shadow:var(--shadow);
  padding:1.5rem 1.3rem;text-align:center;
}
.contact p{font-size:.97rem;color:#33402f}
.contact .btn{margin-top:1.1rem}

/* ---------- legal pages ---------- */
.legal{
  background:var(--bone);color:#1c2a20;
  border:3px solid var(--ink);border-radius:20px;box-shadow:var(--shadow);
  padding:2rem 1.75rem;
}
.legal h1{font-size:1.6rem;font-weight:700;color:var(--ink);margin-bottom:.35rem}
.legal .stamp{font-size:.9rem;color:#5c6b5f;margin-bottom:1.75rem}
.legal p{font-size:.93rem;line-height:1.7;margin-bottom:1.1rem}
.legal p b{color:var(--ink)}
.legal a{color:#2c6540;text-underline-offset:2px;word-break:break-word}
.legal a:focus-visible{outline:2px solid var(--moss);outline-offset:2px;border-radius:2px}

/* ---------- footer ---------- */
footer{
  margin-top:3.5rem;padding-top:1.75rem;text-align:center;
  border-top:2px dashed rgba(244,239,223,.18);
  color:var(--bone-dim);font-size:.86rem;line-height:1.9;
}
footer a{color:var(--sprout);text-underline-offset:3px}
footer a:focus-visible{outline:2px solid var(--sprout);outline-offset:2px;border-radius:2px}
footer .fineprint{margin-top:.6rem;font-size:.8rem;color:#8f9a8c}

@media (max-width:420px){
  .tile{width:2.3rem;height:2.8rem;font-size:1.2rem;border-radius:10px}
  .legal{padding:1.5rem 1.15rem}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .tile{animation:none}
  .btn{transition:none}
}
