/* Arrow Board · site. CSS escrito a mao, sem build e sem CDN.
   Tokens da lousa, copiados de design/prototypes/jogo-2026-09-30.html. */

@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/overpass-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --font: "Overpass", "Roboto", system-ui, sans-serif;
  --chrome: #12241F;
  --plate: #2A5B4C;
  --frame: #B58B55;
  --piece: #F4F1E6;
  --ink: #F0EEE4;
  --ink-soft: #9DB8AC;
  --surface: #1A342C;
  --line: #2B4B41;
  --focus: #9AD4F5;
  --track: .08em;
  --r-plate: 14px;
  --r-ctl: 16px;
  --frame-w: 6px;
  --heart: #FF5A5F;
  --grain: .38;
  --armed: #9AD4F5;
  --block: #F59A8E;
  --ray: rgba(244, 241, 230, .4);
  --cta: #F4F1E6;
  --cta-ink: #1E4A3E;
  --tray: #8E6A3D;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--chrome);
  color: var(--ink);
  font: 500 17px/1.55 var(--font);
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
svg { display: block; }

/* ── topo e rodape ─────────────────────────────────────────────────────── */
.top, .foot {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 800 20px/1 var(--font);
  letter-spacing: .01em;
  text-decoration: none;
}
.brand svg { width: 26px; height: 26px; }

.langs { display: flex; gap: 4px; }
.top .langs { margin-left: auto; }
/* na pagina do jogo o topo e o rodape seguem a largura dela */
body.wide .top, body.wide .foot { max-width: 1040px; padding-left: 28px; padding-right: 28px; }
.langs a {
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  font: 700 14px/1 var(--font);
  color: var(--ink-soft);
  text-decoration: none;
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.foot {
  margin-top: auto;
  padding-top: 24px;
  padding-bottom: 28px;
  font: 700 14px/1 var(--font);
  color: var(--ink-soft);
}
.foot nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); min-height: 44px; display: inline-flex; align-items: center; }
.foot > nav > a { padding: 0 4px; }
.foot a:hover { color: var(--ink); }
/* a linha do rodape fica dentro da margem, como no prototipo */
.foot { position: relative; }
.foot::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; border-top: 1px solid var(--line); }
body.wide .foot::before { left: 28px; right: 28px; }

/* ── pagina do jogo ────────────────────────────────────────────────────────
   Portada de design/prototypes/site-2026-10-12.html. Os @container de la sao
   @media aqui, com as mesmas larguras. */
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.cap { font: 700 12px/1 var(--font); letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-soft); }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 52px; padding-bottom: 72px; }
.hero h1 { margin: 0; font: 800 54px/1.04 var(--font); letter-spacing: -.01em; text-wrap: balance; }
.hero .lead { margin: 20px 0 0; max-width: 30em; font: 500 19px/1.5 var(--font); color: var(--ink-soft); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  min-height: 56px; padding: 0 22px; border-radius: var(--r-ctl);
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cta); color: var(--cta-ink);
  font: 800 16px/1 var(--font); letter-spacing: .01em; text-decoration: none;
}
.store svg { width: 20px; height: 20px; }

.easel { padding: 0 10px; }
.plate {
  position: relative; background: var(--plate); color: var(--piece);
  border: var(--frame-w) solid var(--frame); border-radius: var(--r-plate);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.plate canvas { display: block; width: 100%; height: auto; }
.hero .plate { padding: 10px; }
/* a canaleta com o giz e o apagador, como no icone aprovado (G4) */
.tray { position: relative; height: 10px; margin: 0 -10px; border-radius: 5px; background: var(--tray); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.tray .chalk { position: absolute; left: 24%; bottom: 9px; width: 44px; height: 9px; border-radius: 5px; background: var(--piece); transform: rotate(-14deg); transform-origin: left bottom; }
.tray .eraser { position: absolute; right: 16%; bottom: 10px; width: 64px; height: 24px; border-radius: 6px; background: var(--block); overflow: hidden; }
.tray .eraser::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--tray); }

/* a regra, em tres cartoes */
.block { padding-top: 8px; padding-bottom: 64px; }
.block > .cap { margin-bottom: 18px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 16px; display: flex; flex-direction: column; }
.rule .plate { border-width: 4px; border-radius: 10px; box-shadow: none; padding: 6px; }
.rule h2 { margin: 18px 0 0; font: 800 20px/1.2 var(--font); text-wrap: balance; }
.rule p { margin: 8px 0 0; font: 500 16px/1.45 var(--font); color: var(--ink-soft); }
.rule .state { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 700 14px/1.3 var(--font); color: var(--ink); }
.hearts { display: flex; gap: 5px; }
.heart { width: 22px; height: 22px; color: var(--heart); }
.heart path { fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.heart.lost { color: var(--ink-soft); }
.heart.lost path { fill: none; }

/* o resto do jogo, em quatro fatos */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.fact svg.ico { width: 28px; height: 28px; color: var(--piece); }
.fact h2 { margin: 14px 0 0; font: 800 17px/1.25 var(--font); }
.fact p { margin: 6px 0 0; font: 500 15px/1.45 var(--font); color: var(--ink-soft); }
.swatches { display: flex; gap: 6px; height: 28px; align-items: center; }
.sw { width: 28px; height: 28px; border-radius: 6px; border: 3px solid; display: grid; place-items: center; }
.sw svg { width: 14px; height: 14px; }
.sw.lousa { background: #2A5B4C; border-color: #B58B55; color: #F4F1E6; }
.sw.branco { background: #FDFDFB; border-color: #A9B2B6; color: #1B1F22; }
.sw.preta { background: #24282B; border-color: #6B5A45; color: #EFECE2; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; padding-bottom: 56px; }
  .hero h1 { font-size: 42px; }
  .easel { max-width: 460px; width: 100%; margin: 0 auto; }
  .rules { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .wrap, body.wide .top, body.wide .foot { padding-left: 18px; padding-right: 18px; }
  body.wide .foot::before { left: 18px; right: 18px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 17px; }
  .store { flex: 1 1 140px; justify-content: center; }
  .brand { font-size: 18px; }
  .langs a { padding: 0 9px; }
}

/* ── documento (privacidade) ───────────────────────────────────────────── */
.doc {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}
.doc h1 { margin: 16px 0 8px; font: 800 clamp(30px, 7vw, 40px)/1.1 var(--font); }
.doc .meta { margin: 0 0 28px; font: 700 13px/1.4 var(--font); letter-spacing: .04em; color: var(--ink-soft); }
.doc h2 { margin: 36px 0 10px; font: 800 20px/1.2 var(--font); }
.doc p { margin: 0 0 12px; max-width: 68ch; }
.doc ul { margin: 0 0 12px; padding-left: 22px; max-width: 68ch; }
.doc li { margin-bottom: 6px; }
.doc a { overflow-wrap: anywhere; }

.doc table {
  width: 100%;
  margin: 4px 0 16px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
}
.doc th, .doc td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.doc thead th { border-top: 0; font: 700 12px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.doc tbody th { font-weight: 800; }

/* Em tela estreita a tabela vira uma lista de cartoes: tres colunas nao cabem. */
@media (max-width: 560px) {
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { padding: 12px 14px; border-top: 1px solid var(--line); }
  .doc tr:first-child { border-top: 0; }
  .doc th, .doc td { padding: 0; border: 0; }
  .doc td { margin-top: 6px; color: var(--ink); }
}

/* ── consentimento de cookies ──────────────────────────────────────────────
   Mesma forma da barra do site do tunerwear: embaixo, sem prender a pagina. */
[hidden] { display: none !important; }

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 0 16px 16px;
  transform: translateY(100%); opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.consent[data-open] { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

.consent-card {
  max-width: 896px; margin: 0 auto; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.consent-main { display: flex; flex-direction: column; gap: 16px; }
.consent-text { flex: 1; }
.consent-text h2 { margin: 0 0 6px; font: 800 16px/1.3 var(--font); }
.consent-text p { margin: 0; font: 500 14px/1.55 var(--font); color: var(--ink-soft); }
.consent-text a { color: var(--ink); }

/* os dois botoes principais no primeiro nivel, com o mesmo tamanho e peso */
.consent-actions { display: flex; flex-direction: column-reverse; gap: 8px; }
.consent-btn, .consent-quiet {
  min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  font: 700 14px/1 var(--font); background: none; color: var(--ink);
  border: 1px solid var(--ink-soft);
}
.consent-btn:hover { background: rgba(240, 238, 228, .06); }
.consent-accept { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.consent-accept:hover { background: #fff; }
.consent-quiet { border-color: transparent; color: var(--ink-soft); font-size: 13px; padding: 0 12px; }
.consent-quiet:hover { color: var(--ink); }
.consent button:focus-visible, .consent input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.consent-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.consent-cat { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.consent-cat input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--cta); cursor: pointer; }
.consent-locked { opacity: .6; cursor: not-allowed; }
.consent-locked input { cursor: not-allowed; }
.consent-cat-name { display: block; font: 700 14px/1.4 var(--font); color: var(--ink); }
.consent-always { margin-left: 4px; font: 500 12px/1 var(--font); color: var(--ink-soft); }
.consent-cat-desc { display: block; margin-top: 2px; font: 500 13px/1.5 var(--font); color: var(--ink-soft); }
.consent-save { display: flex; justify-content: flex-end; margin-top: 8px; }

@media (min-width: 640px) {
  .consent-card { padding: 24px; }
  .consent-main { flex-direction: row; align-items: flex-start; gap: 24px; }
  .consent-actions { flex-direction: row; align-items: center; flex: none; }
}
