/* ARKZERO — pixel style. No external resources: fonts and images are self-hosted. */
@font-face {
  font-family: "Press Start 2P";
  src: url("/static/fonts/press-start-2p-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2019, U+201C-201D, U+2022, U+2026;
}

:root {
  --bg: #a3c8eb;
  --bg2: #b2d2f0;
  --card: #ffffff;
  --ink: #211f33;
  --fg: #211f33;
  --muted: #4a4f66;
  --line: #211f33;
  --accent: #ff8a2a;
  --accent-ink: #2a1200;
  --link: #1d5fb8;
  --gold: #ffd65c;
  --soon: #e3e8f2;
  --shadow: 4px 4px 0 var(--ink);
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --text: system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", "Sukhumvit Set", Thonburi, Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a2b;
    --bg2: #22223a;
    --card: #2a2a44;
    --ink: #0c0b14;
    --fg: #eef1fb;
    --muted: #b8bdd6;
    --line: #0c0b14;
    --link: #8cc4ff;
    --soon: #3a3a58;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--fg);
  font: 17px/1.65 var(--text);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(45deg, var(--bg) 0 14px, var(--bg2) 14px 28px);
}
img { max-width: 100%; height: auto; display: block; }
.pixelated { image-rendering: pixelated; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--pixel); font-weight: 400; line-height: 1.5; letter-spacing: .5px; margin: 0 0 .6em; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { font-family: var(--pixel), var(--text); font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(1.4rem, 4.5vw, 2.3rem); }
h2 { font-size: clamp(1rem, 3vw, 1.35rem); }
h3 { font-size: .9rem; }
:lang(th) h2 { font-size: clamp(1.15rem, 3.2vw, 1.5rem); }
:lang(th) h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #211f33; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* header / footer */
.site-header { background: #211f33; border-bottom: 4px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: block; line-height: 0; }
.brand img { width: 171px; height: 33px; }
.site-nav { display: flex; gap: 4px 18px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.site-nav a { color: #eef1fb; text-decoration: none; font-weight: 600; padding: 6px 2px; }
.site-nav a:hover { color: var(--gold); text-decoration: underline; }
.site-nav .lang { border: 2px solid #eef1fb; padding: 4px 10px; }

.site-footer { background: #211f33; color: #c9cde0; border-top: 4px solid var(--ink); margin-top: 56px; padding: 28px 0; font-size: .95rem; }
.site-footer a { color: #eef1fb; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* panels */
main { display: block; }
.panel {
  background: var(--card);
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3.5vw, 32px);
  margin: 28px 0;
}
.panel > :last-child { margin-bottom: 0; }
.lead { font-size: 1.12rem; }
.muted { color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1rem/1.2 var(--text);
  padding: 14px 20px; min-height: 48px;
  border: 4px solid var(--line); box-shadow: var(--shadow);
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.soon { background: var(--soon); color: var(--fg); cursor: default; }
.btn.soon:hover, .btn.soon:active { transform: none; box-shadow: var(--shadow); }
.btn.ghost { background: var(--card); color: var(--fg); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 22px 0 6px; }

.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 3px solid var(--line); background: var(--gold); color: #211f33; padding: 3px 10px; font-weight: 700; font-size: .92rem; }

/* hero */
.hero { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; padding-top: 8px; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.05fr 1fr; } }
.hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
@media (max-width: 819px) { .hero-art { order: -1; max-width: 300px; } }
.hero .subtitle { font-weight: 700; font-size: 1.15rem; margin-top: -.2em; }
.studio-hero { text-align: center; }
.studio-hero .lead { max-width: 640px; margin: 0 auto 1em; }

/* grids */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid > .panel { margin: 0; }
.card-game { display: flex; flex-direction: column; gap: 12px; }
.card-game img.icon { width: 96px; height: 96px; box-shadow: 0 0 0 4px var(--line); margin: 4px; }
.card-game .btn { align-self: flex-start; margin-top: auto; }
.card-soon { display: flex; flex-direction: column; justify-content: center; text-align: center; background: var(--soon); }

.world { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.world img { box-shadow: 0 4px 0 var(--line); margin-bottom: 4px; aspect-ratio: 16 / 9; width: 100%; }
.world .body { padding: 18px 20px 22px; }
.world .tag { display: inline-block; font-weight: 700; color: var(--muted); margin-bottom: 6px; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.features li h3 { margin-bottom: .5em; }
.checks { padding-left: 0; list-style: none; margin: 0 0 1em; }
.checks li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 12px; background: var(--accent); box-shadow: 2px 2px 0 var(--ink); }

/* gallery: horizontal scroll with snap — no JS */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 560px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0; list-style: none; }
.gallery li { scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery figure { padding: 4px; }
.gallery img { box-shadow: 0 0 0 4px var(--line), 8px 8px 0 var(--ink); aspect-ratio: 16 / 9; width: 100%; }
.gallery figcaption { font-weight: 600; margin-top: 8px; }

/* FAQ */
.faq details { border-top: 3px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 3px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style-position: outside; padding-left: 4px; }
.faq summary:hover { color: var(--link); }
.faq details p { margin: 10px 0 4px; }

/* long text (policies) */
.doc h2 { margin-top: 1.6em; }
.doc h2:first-of-type { margin-top: .4em; }
.doc .updated { color: var(--muted); font-weight: 600; }
.breadcrumb { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .95rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--fg); }

.center { text-align: center; }
