/* Kukdoku website — one stylesheet for every page (built by tools/build_website.js). */
:root {
  --bg: #09090d;
  --bg-2: #101018;
  --card: #15151f;
  --card-2: #1b1b28;
  --line: #2a2a3a;
  --text: #ededf3;
  --muted: #a6a6b8;
  --accent: #ff7a1a;
  --accent-2: #ffb347;
  --accent-ink: #1a0d02;
  --radius: 18px;
  --wrap: 1120px;
  --display: "Lilita One", "Trebuchet MS", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd199; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 9, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img.bird { width: 34px; height: 38px; object-fit: contain; }
.brand img.word { width: 132px; height: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--card-2); }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 16px/1 var(--body); text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 28px rgba(255, 122, 26, .28); }
.btn-primary:hover { color: var(--accent-ink); box-shadow: 0 10px 34px rgba(255, 122, 26, .42); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); background: var(--card-2); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; transform: none; }
.chip { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 5px 11px; border-radius: 999px; background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.chip.hot { color: var(--accent-2); border-color: rgba(255, 179, 71, .35); background: rgba(255, 122, 26, .1); }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; border-radius: 14px; background: #000; border: 1px solid #3a3a48; color: #fff; text-decoration: none; }
.store-btn svg { width: 28px; height: 28px; }
.store-btn small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #cfcfdb; line-height: 1.2; }
.store-btn strong { display: block; font: 700 19px/1.15 var(--body); }
.store-btn:hover { color: #fff; border-color: #5a5a70; }

/* ---------- studio hero ---------- */
.hero { position: relative; padding: 72px 0 64px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, .22), transparent 70%);
  pointer-events: none;
}
.hero .bird { width: min(240px, 52vw); margin: 0 auto 8px; filter: drop-shadow(0 18px 40px rgba(255, 102, 0, .35)); animation: float 6s ease-in-out infinite; }
.hero .word { width: min(620px, 88vw); margin: 0 auto; }
.hero .tag { width: min(420px, 74vw); margin: 18px auto 0; opacity: .9; }
.hero p.lead { max-width: 640px; margin: 26px auto 30px; color: var(--muted); font-size: 19px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .hero .bird { animation: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 20px; }
.kicker { display: block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.sub { color: var(--muted); max-width: 640px; margin: 0 0 32px; }

/* game cards */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.game-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-3px); border-color: #3b3b52; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); color: var(--text); }
.game-card .shot { position: relative; aspect-ratio: 16 / 9; background: #0c2415; }
.game-card .shot img { width: 100%; height: 100%; object-fit: cover; }
.game-card .shot .icon { position: absolute; left: 16px; bottom: -26px; width: 64px; height: 64px; border-radius: 16px; border: 3px solid var(--card); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.game-card .body { padding: 36px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card .body h3 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0; }
.game-card .body p { margin: 0; color: var(--muted); }
.game-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.game-card.soon { justify-content: center; align-items: center; text-align: center; padding: 40px 24px; min-height: 320px; background: repeating-linear-gradient(135deg, var(--card), var(--card) 14px, var(--card-2) 14px, var(--card-2) 28px); }
.game-card.soon .spark { line-height: 1; margin-bottom: 8px; color: var(--accent-2); }
.game-card.soon .spark svg { width: 46px; height: 46px; }

/* values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.value svg { width: 30px; height: 30px; color: var(--accent-2); margin-bottom: 10px; }
.value p { margin: 0; color: var(--muted); font-size: 16px; }

.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, #1d1208, var(--card)); border: 1px solid rgba(255, 122, 26, .3); border-radius: var(--radius); padding: 28px; }
.contact-card p { margin: 0; color: var(--muted); }

/* ---------- game page ---------- */
.game-hero { position: relative; padding: 56px 0 48px; overflow: hidden; }
.game-hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.game-hero .logo { width: min(460px, 100%); filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .5)); }
.game-hero .tagline { font-size: 22px; font-weight: 700; margin: 14px 0 10px; }
.game-hero p { color: #d7ddd6; }
.game-hero .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.game-hero .facts .chip { background: rgba(0, 0, 0, .35); color: #e3eadf; border-color: rgba(255, 255, 255, .14); }
.game-hero .hero-shot { border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); overflow: hidden; }
.game-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.prose-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 36px; }
.prose-cols p { margin: 0 0 14px; color: #d6d6e0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature svg { width: 28px; height: 28px; margin-bottom: 8px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 640px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; overscroll-behavior-x: contain; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style-position: outside; }
.faq details[open] summary { color: var(--accent-2); }
.faq details p { margin: 0 0 12px; color: #d2d2dc; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.help-grid a.value { text-decoration: none; color: var(--text); }
.help-grid a.value:hover { border-color: #3b3b52; }

/* ---------- legal / document pages ---------- */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.doc h2 { font-family: var(--body); font-weight: 800; font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: #dcdce6; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 8px; }
.toc ol { margin: 6px 0 0; columns: 2 220px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent-2); }
.note { background: rgba(255, 122, 26, .08); border: 1px solid rgba(255, 122, 26, .3); border-radius: 14px; padding: 16px 18px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: var(--text); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .word { width: 150px; margin-bottom: 10px; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; }

@media (max-width: 820px) {
  .game-hero .grid { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .brand img.word { display: none; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  section.block { padding: 48px 0; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .nav a.hide-sm { display: none; }
}
