/* Take0 site styles. Direction: Lab Neon. Dark is the default theme.
   Light-mode accent text colours are darkened from the brand sheet
   (#0E8F82 -> #0A7368, #5E8A00 -> #4A6E00) so they pass 4.5:1. */

:root {
  --bg: #070B1A;
  --bg-2: #0E1730;
  --card: #0B1226;
  --line: #1D2A4D;
  --line-strong: #27335A;
  --fg: #E8F1FF;
  --fg-2: #AEBBD6;
  --muted: #7E8CAB;
  --accent: #19E6D0;
  --accent-hover: #6FF2E3;
  --accent-2: #B8F53C;
  --on-accent: #070B1A;
  --grid: rgba(25, 230, 208, 0.07);
  --glow: 0 0 18px #19E6D0;
  --btn-glow: 0 0 20px rgba(25, 230, 208, 0.35);
  --notice-bg: rgba(184, 245, 60, 0.08);

  --font-head: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: 960px;
  --text: 720px;
  --gutter: 16px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #EEF3FB;
    --bg-2: #FFFFFF;
    --card: #FFFFFF;
    --line: #C9D3E6;
    --line-strong: #B3C0D9;
    --fg: #070B1A;
    --fg-2: #4A5670;
    --muted: #5C6880;
    --accent: #0A7368;
    --accent-hover: #075A51;
    --accent-2: #4A6E00;
    --on-accent: #FFFFFF;
    --grid: rgba(10, 115, 104, 0.06);
    --glow: 0 0 10px rgba(14, 143, 130, 0.45);
    --btn-glow: 0 0 14px rgba(14, 143, 130, 0.25);
    --notice-bg: rgba(74, 110, 0, 0.07);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #EEF3FB;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --line: #C9D3E6;
  --line-strong: #B3C0D9;
  --fg: #070B1A;
  --fg-2: #4A5670;
  --muted: #5C6880;
  --accent: #0A7368;
  --accent-hover: #075A51;
  --accent-2: #4A6E00;
  --on-accent: #FFFFFF;
  --grid: rgba(10, 115, 104, 0.06);
  --glow: 0 0 10px rgba(14, 143, 130, 0.45);
  --btn-glow: 0 0 14px rgba(14, 143, 130, 0.25);
  --notice-bg: rgba(74, 110, 0, 0.07);
  color-scheme: light;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-feature-settings: "zero" 1;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* the one teal top rule */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  box-shadow: var(--glow);
}

@media (min-width: 768px) {
  body { font-size: 17px; }
  :root { --gutter: 24px; }
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
}

p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.measure { max-width: var(--text); }

/* ---------- header ---------- */

.site-header { position: relative; padding: 22px 0 0; }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  min-height: 44px;
}
.brand svg.mark { width: 32px; height: 32px; flex: none; }
.brand svg.wordmark { width: 84px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a,
.theme-toggle {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  text-decoration: none;
  padding: 10px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }

.theme-toggle {
  display: none;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  margin-left: 4px;
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { color: var(--accent); border-color: var(--line-strong); }
.theme-toggle svg { width: 16px; height: 16px; }

@media (max-width: 359px) {
  .brand svg.wordmark { display: none; }
}

/* ---------- main ---------- */

main { flex: 1; position: relative; padding: 40px 0 56px; }
@media (min-width: 768px) { main { padding: 64px 0 80px; } }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 12px;
}

.label {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.lead {
  font-size: 1.125rem;
  color: var(--fg-2);
}

.section { margin-top: 48px; }
@media (min-width: 768px) { .section { margin-top: 72px; } }

/* hero */
.hero h1.wordmark-title { margin: 0 0 6px; }
.hero h1.wordmark-title svg { width: 220px; height: auto; }
@media (min-width: 768px) { .hero h1.wordmark-title svg { width: 280px; } }

.say {
  font-family: var(--font-head);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

.display {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
@media (min-width: 768px) { .display { font-size: 3rem; } }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid var(--line-strong);
  color: var(--fg);
  flex: 1 1 140px;
}
@media (min-width: 560px) { .btn { flex: 0 0 auto; } }
.btn:hover { border-color: var(--accent); color: var(--fg); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--btn-glow);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

/* cards */
.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .cards { grid-template-columns: 3fr 2fr; gap: 20px; }
}

.card {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-art {
  position: relative;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 16px;
}
.card-art svg { width: 100%; height: 140px; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 6px; font-size: 1.35rem; }
.card-body p { color: var(--fg-2); }
.card-body .more { margin-top: auto; font-weight: 600; }

.chip {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 3px;
}
.chip-accent { border-color: var(--accent-2); color: var(--accent-2); }
.card-art .chip-accent { position: absolute; top: 14px; right: 14px; background: var(--bg-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; padding: 0; list-style: none; }

/* hexagon placeholder art */
.hex-line { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.hex-accent { fill: none; stroke: var(--accent); stroke-width: 2; }
.hex-accent-2 { fill: none; stroke: var(--accent-2); stroke-width: 2; }
.hex-dot { fill: var(--accent-2); }

/* marks inline: colours follow the theme */
.mk-zero { fill: none; stroke: var(--fg); }
.mk-slash { stroke: var(--accent-2); stroke-linecap: round; }
.wm-fg { fill: none; stroke: var(--fg); }
.wm-zero { fill: none; stroke: var(--accent); }
.wm-slash { stroke: var(--accent-2); }

/* contact */
.contact-mail {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

/* game page */
.game-hero {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 768px) {
  .game-hero { grid-template-columns: 1fr 300px; gap: 40px; }
}
.game-art {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  padding: 20px;
}
.game-art svg { width: 100%; height: 220px; }

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 16px;
}
.facts strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.facts span { color: var(--fg-2); }

.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; }
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  min-width: 170px;
  padding: 8px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  line-height: 1.25;
}
.store-badge:hover { border-color: var(--accent); color: var(--fg); }
.store-badge small {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.store-badge b { font-family: var(--font-head); font-size: 1.1rem; }
.pending {
  font-family: var(--font-head);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}

.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* breadcrumb */
.crumbs { font-size: 0.9375rem; color: var(--muted); margin: 0 0 20px; }
.crumbs a { color: var(--fg-2); }
.crumbs a:hover { color: var(--accent); }

/* prose: for policy text dropped in later */
.prose { max-width: var(--text); overflow-wrap: anywhere; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  display: block;
  overflow-x: auto;
  overflow-wrap: normal;
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.prose th { background: var(--bg-2); font-weight: 600; }

.notice {
  border: 1.5px dashed var(--accent-2);
  background: var(--notice-bg);
  color: var(--fg);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* lab */
.lab-list { list-style: none; padding: 0; margin: 0; }
.lab-list:empty { display: none; }
.empty-state {
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  padding: 24px 18px;
  color: var(--fg-2);
}

/* 404 */
.big-code {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--bg);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a {
  color: var(--fg-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
main:focus { outline: none; }

/* the deal line: what's free, what the ads are (landing + game page) */
.deal {
  border-left: 3px solid var(--accent-2);
  padding: 2px 0 2px 14px;
  margin: 0 0 18px;
  color: var(--fg);
  font-size: 1.0625rem;
  max-width: var(--text);
}
.deal strong { color: var(--fg); }

.plain-list { padding-left: 1.3em; margin: 0 0 1em; }
.plain-list li { margin-bottom: 0.6em; color: var(--fg-2); }
.plain-list strong { color: var(--fg); }

/* press page */
.press-dl { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .press-dl { grid-template-columns: 1fr 1fr; } }
.press-dl li {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.press-dl img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: none;
  border-radius: 8px;
  background: #070B1A;
}
.press-dl span { color: var(--fg-2); font-size: 0.9375rem; display: block; }
.fact-table th { width: 38%; }
