/* Snake Titans guides (/guides/): plain static pages beside the game, in the game's colours and type. No game code is
   loaded here (seo/docs/05-snaketitans-briefs.md, R8). */
:root {
  --bg: #070b18; --panel: #0f1630; --line: #22305a; --text: #e8edf9; --soft: #c9d2ea; --dim: #93a0bf;
  --cyan: #7ff3ff; --gold: #ffd166; --pink: #ff6fb5; --green: #6dffa8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 system-ui, "Segoe UI", Roboto, sans-serif; }
a { color: var(--cyan); }
h1, h2, h3, .brand, .play, .card h3, th { font-family: "Chakra Petch", system-ui, sans-serif; }

/* the bar on every page: the mark, the breadcrumb, Play now */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 10px 16px;
  background: rgba(7, 11, 24, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { color: var(--cyan); }
.crumbs { flex: 1; min-width: 0; font-size: 14px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.play { display: inline-block; padding: 9px 20px; border-radius: 12px; background: linear-gradient(180deg, #fff3b0, #ffd166 45%, #ff9e00);
  color: #1a1200; font-weight: 700; letter-spacing: .14em; text-decoration: none; white-space: nowrap; }
.play.big { padding: 14px 34px; font-size: 18px; }

main { max-width: 820px; margin: 0 auto; padding: 28px 16px 80px; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 6px 0 18px; letter-spacing: .01em; }
h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 10px; color: var(--gold); }
h3 { font-size: 19px; margin: 26px 0 6px; color: var(--cyan); }
h4 { font-family: "Chakra Petch", system-ui, sans-serif; font-size: 17px; margin: 18px 0 4px; color: var(--text); }
p, li { color: var(--soft); }
strong { color: var(--text); }
.lead { font-size: 19px; color: var(--text); }
.meta { font-size: 14px; color: var(--dim); margin: -8px 0 18px; }

/* the centrepiece: the largest thing above the fold (R1) */
.centre { margin: 0 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.centre video, .centre img, figure video, figure img { display: block; width: 100%; height: auto; border-radius: 12px; background: #000; }
figure { margin: 18px 0; }
figcaption { font-size: 14px; color: var(--dim); margin-top: 6px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.card { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--soft); text-decoration: none; }
a.card:hover { border-color: var(--cyan); }
.card h3 { margin: 0 0 4px; font-size: 17px; color: var(--text); }
.card p { margin: 0; font-size: 15px; }

.label { margin: 0 0 6px; font-family: "Chakra Petch", system-ui, sans-serif; font-weight: 700; font-size: 19px; color: var(--cyan); }
.takeaways { margin: 0; padding-left: 20px; }
.takeaways li { margin: 4px 0; color: var(--text); }

.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--gold); font-weight: 700; white-space: nowrap; }
td { color: var(--soft); }
td.num, th.num { text-align: right; white-space: nowrap; }

/* the calculators (guides.js) */
.calc { display: grid; gap: 12px; }
.calc .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.calc label { display: grid; gap: 4px; font-size: 14px; color: var(--dim); }
.calc select, .calc input { font: inherit; color: var(--text); background: #0a1024; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 150px; }
.calc .out { padding: 14px 16px; border-radius: 12px; background: #0a1024; border: 1px solid var(--line); }
.calc .out strong { font-size: 1em; }
.calc .out .ok, .calc .out .no { display: block; font-size: 20px; margin-bottom: 4px; }
.calc .ok { color: var(--green); }
.calc .no { color: var(--pink); }

.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.board ol { margin: 6px 0 0; padding-left: 26px; }
.board li { color: var(--text); }
.board li span { float: right; color: var(--gold); font-variant-numeric: tabular-nums; }

/* the seasons page: the event card, the piece cards with their pictures */
.season-card { display: flex; gap: 18px; align-items: center; }
.season-card img { width: 160px; height: 160px; border-radius: 14px; background: #0a1024; flex: none; }
.season-card p { margin: 0 0 6px; color: var(--text); }
.season-card #season-when { font-size: 20px; font-weight: 700; }
.pieces .card img { display: block; width: 120px; height: 120px; margin: 0 auto 8px; border-radius: 12px; background: #0a1024; }
.pieces .card h3 { text-align: center; }
.pieces .card p { text-align: center; }
.next { margin-top: 44px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); text-align: center; }
.next p { margin: 0 0 12px; color: var(--text); }
footer { max-width: 820px; margin: 0 auto; padding: 0 16px 40px; font-size: 14px; color: var(--dim); }
footer a { color: var(--dim); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar { justify-content: space-between; flex-wrap: wrap; row-gap: 6px; }
  .crumbs { order: 3; flex-basis: 100%; font-size: 13px; }
  table { font-size: 14px; }
  th, td { padding: 7px 6px; }
  .pu svg { width: 22px; height: 22px; }
  .centre { padding: 10px; }
  h2 { font-size: 21px; }
}
/* a world on the modes page: its card, its answer, its Play button */
.world { margin: 18px 0 26px; }
.world .card { margin-bottom: 10px; }
.world .play { margin-top: 4px; }
