/* Site styles. Brand colors come from assets/theme.css (generated by build.mjs from
   site.config.json). Nunito (SIL OFL 1.1, see fonts/Nunito-OFL.txt) is self-hosted. */
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --text-2: #6E5B4D;
  --shadow: #EEDFD0;
  --divider: #F5ECE2;
  --radius-card: 24px;
  --radius-tile: 20px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Block palette */
  --coral: #FF6B5B; --tangerine: #FFA62B; --sun: #FFD43B; --mint: #3DD68C; --sky: #3EC1F3; --ocean: #4C7DFF; --grape: #A06BFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b, strong { font-weight: 900; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.display { font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.accent { color: var(--accent); }
.eyebrow { font-size: 14px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.card { background: var(--card); border-radius: var(--radius-card); box-shadow: 0 4px 0 var(--shadow); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom: 2px solid var(--divider); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 900; line-height: 1; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.wordmark img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 16px; font-weight: 800; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: inline-flex; align-items: center; background: var(--accent); color: var(--on-accent) !important; padding: 9px 16px; border-radius: 999px; font-weight: 900 !important; box-shadow: 0 3px 0 var(--accent-2); }
.nav-links li.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--card); border-radius: 999px; box-shadow: 0 2px 0 var(--shadow); }
.lang a, .lang span { font-size: 13px !important; font-weight: 900 !important; letter-spacing: 0.04em; padding: 6px 9px; border-radius: 999px; line-height: 1; text-decoration: none; }
.lang span[aria-current] { background: var(--text); color: var(--bg); }
@media (max-width: 640px) { .nav-support { display: none; } }
@media (max-width: 480px) { .nav-download { display: none; } .wordmark { font-size: 23px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 19px; font-weight: 900; text-decoration: none; box-shadow: 0 5px 0 var(--accent-2);
  transition: transform .08s ease, box-shadow .08s ease; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--accent-2); }
.btn-ghost { background: var(--card); color: var(--text); box-shadow: 0 5px 0 var(--shadow); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--shadow); }
@media (max-width: 600px) { .btn { width: 100%; } }

/* ---------- Home ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); }
.hero h1 span { color: var(--accent); }
.hero-lede { font-size: clamp(19px, 1.8vw, 22px); color: var(--text-2); max-width: 32em; margin: 22px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-note { font-size: 15px; color: var(--text-2); }
.hero-art { position: relative; padding: 18px; }
.hero-art .board { transform: rotate(-3deg); }
.hero-art .mascot { position: absolute; right: -6px; bottom: -18px; width: clamp(88px, 28%, 132px); border-radius: 26%; box-shadow: 0 5px 0 var(--shadow); transform: rotate(6deg); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 420px; } }

.board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; padding: 12px; background: var(--card); border-radius: var(--radius-card); box-shadow: 0 4px 0 var(--shadow); aspect-ratio: 1; }
.board i { display: block; border-radius: 26%; background: var(--divider); }
.board i.b { box-shadow: inset 0 -4px 0 rgba(0,0,0,.16), inset 0 3px 0 rgba(255,255,255,.5), 0 2px 0 rgba(43,29,22,.12); }
.b.coral { background: var(--coral); } .b.tangerine { background: var(--tangerine); } .b.sun { background: var(--sun); } .b.mint { background: var(--mint); }
.b.sky { background: var(--sky); } .b.ocean { background: var(--ocean); } .b.grape { background: var(--grape); }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { padding-top: 0; }
.section-title { font-size: clamp(34px, 5vw, 56px); max-width: 18em; }
.section-intro { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 36em; margin: 18px 0 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 4vw, 48px); }
.features.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { background: var(--card); border-radius: var(--radius-card); box-shadow: 0 4px 0 var(--shadow); padding: 26px; }
.feature h3 { font-size: 24px; font-weight: 900; line-height: 1.15; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--text-2); }
.feature .dot { display: block; width: 34px; height: 34px; border-radius: 26%; margin-bottom: 16px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.16), inset 0 3px 0 rgba(255,255,255,.5); }
@media (max-width: 860px) { .features, .features.four { grid-template-columns: minmax(0, 1fr); } }
.fair-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 46em; }
.fair-list li { background: var(--card); border-radius: var(--radius-tile); box-shadow: 0 4px 0 var(--shadow); padding: 18px 22px; color: var(--text-2); }
.fair-list li b { color: var(--text); }
.pro { background: var(--accent); color: var(--on-accent); border-radius: var(--radius-card); box-shadow: 0 5px 0 var(--accent-2); padding: clamp(28px, 5vw, 56px); }
.pro .eyebrow { color: var(--on-accent); opacity: .85; }
.pro .section-intro { color: var(--on-accent); opacity: .92; }
.pro ul { margin: 22px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.pro .fine-print { font-size: 15px; opacity: .85; margin: 22px 0 0; max-width: 46em; }
.text-links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 26px; font-weight: 900; }
.text-links a { color: var(--accent); text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 52px; color: var(--text-2); font-size: 15px; border-top: 2px solid var(--divider); }
.footer .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 40px; align-items: start; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; }
.footer nav a { text-decoration: none; color: var(--text); font-weight: 800; }
.footer nav a:hover { color: var(--accent); }
.footer .fine { grid-column: 1 / -1; font-size: 13px; max-width: 64em; margin: 0; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: minmax(0, 1fr); } .footer nav { justify-content: flex-start; } }

/* ---------- Text pages (legal, support) ---------- */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); max-width: 16em; }
.page-head p { font-size: 18px; color: var(--text-2); max-width: 36em; margin: 18px 0 0; }
.prose { max-width: 760px; padding-bottom: clamp(64px, 9vw, 120px); }
.prose h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; margin: 52px 0 12px; scroll-margin-top: 84px; }
.prose h3 { font-size: 20px; font-weight: 900; margin: 30px 0 6px; }
.prose p, .prose li { font-size: 18px; color: var(--text-2); }
.prose strong, .prose b { color: var(--text); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose code { font-family: var(--font); font-weight: 900; color: var(--text); }
.legal-rule { margin: 48px 0 0; height: 2px; border: 0; background: var(--divider); }
.table-wrap { overflow-x: auto; margin: 22px 0; border-radius: var(--radius-tile); background: var(--card); box-shadow: 0 4px 0 var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 13px 16px; border-bottom: 2px solid var(--divider); vertical-align: top; }
.prose th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); font-weight: 900; }
.prose td { color: var(--text-2); }
.prose td:first-child { color: var(--text); font-weight: 900; }
.prose tr:last-child td { border-bottom: 0; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: 96px; max-width: 340px; padding-bottom: 40px; }
.toc p { font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 6px 18px; background: var(--card); border-radius: var(--radius-tile); box-shadow: 0 4px 0 var(--shadow); }
.toc li { border-bottom: 2px solid var(--divider); }
.toc li:last-child { border-bottom: 0; }
.toc a { display: block; padding: 9px 0; font-size: 15px; font-weight: 800; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (max-width: 1060px) { .legal-layout { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.translation-note { background: var(--card); border-left: 6px solid var(--accent); border-radius: 0 var(--radius-tile) var(--radius-tile) 0; padding: 14px 18px; color: var(--text) !important; margin: 0 0 28px; box-shadow: 0 4px 0 var(--shadow); }
.contact-card { background: var(--card); border-radius: var(--radius-card); box-shadow: 0 4px 0 var(--shadow); padding: 24px 28px; margin: 8px 0 20px; }
.contact-card a.mail { font-size: clamp(26px, 4vw, 40px); font-weight: 900; line-height: 1.1; color: var(--accent); text-decoration: none; word-break: break-word; }
.contact-card span { display: block; margin-top: 8px; color: var(--text-2); font-size: 16px; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding: 4px 0 4px 50px; margin: 12px 0; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 30%;
  background: var(--accent); color: var(--on-accent); font-weight: 900; font-size: 17px; display: grid; place-items: center; box-shadow: inset 0 -4px 0 rgba(0,0,0,.16); }
.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; padding: 0; list-style: none; }
.faq-nav a { display: inline-block; background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 800; color: var(--text) !important; text-decoration: none; box-shadow: 0 3px 0 var(--shadow); }

/* ---------- Duel invite ---------- */
.duel-page { display: flex; min-height: 100vh; min-height: 100svh; }
.duel { width: 100%; max-width: 520px; margin: auto; padding: 32px 16px 40px; text-align: center; }
.duel-card { background: var(--card); border-radius: 28px; box-shadow: 0 5px 0 var(--shadow); padding: 32px 22px 26px; }
.duel-icon { width: 112px; height: 112px; border-radius: 26%; margin: 0 auto 20px; box-shadow: 0 5px 0 var(--shadow); }
.duel h1 { font-size: clamp(28px, 7vw, 36px); font-weight: 900; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.duel-body { color: var(--text-2); margin: 14px 0 0; }
.duel-code { margin: 16px 0 0; font-size: 15px; color: var(--text-2); }
.duel-code b { display: inline-block; background: var(--divider); color: var(--text); padding: 3px 10px; border-radius: 8px; letter-spacing: 0.06em; word-break: break-all; }
.duel-actions { display: grid; gap: 14px; margin-top: 26px; }
.duel-actions .btn { width: 100%; }
.duel-actions [hidden] { display: none; }
.duel-note { font-size: 14px; color: var(--text-2); margin: 20px 0 0; }
.duel-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 24px; font-size: 15px; }
.duel-links a { color: var(--text-2); text-decoration: none; font-weight: 800; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 900; }
.skip:focus { left: 8px; }
.template-note { margin: 0 0 28px; border: 2px dashed var(--accent); border-radius: var(--radius-tile); padding: 14px 18px; }
.template-note p { margin: 0; color: var(--text) !important; }
