/* FIFTY SPARKS — one stylesheet, system fonts, no JavaScript. Palette from the V3 brand lockup. */
:root {
  --night: #0d1512;
  --night-2: #131e1a;
  --panel: #18251f;
  --line: #24352d;
  --gold: #f5c451;
  --gold-deep: #d9a531;
  --cream: #f6eedb;
  --soft: #c9c0a6;
  --mute: #8f9a8f;
  --teal: #5fd3b2;
  --radius: 18px;
  --wrap: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--mute); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* draft banner (preview builds only) */
.draft { background: repeating-linear-gradient(135deg, #3a2f12 0 12px, #33290f 12px 24px); color: var(--gold); font-size: .86rem; padding: 8px 0; text-align: center; border-bottom: 1px solid #5a4719; }
.todo { display: inline-block; color: var(--night); background: var(--gold); border-radius: 6px; padding: 0 7px; font-size: .85em; font-weight: 700; }

/* header / footer */
header.site { position: sticky; top: 0; z-index: 5; background: rgba(13, 21, 18, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .word { width: 140px; }
.nav { display: flex; align-items: center; gap: 4px; font-size: .95rem; }
.nav a { color: var(--soft); padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--cream); background: var(--panel); text-decoration: none; }
.nav .lang { border: 1px solid var(--line); color: var(--cream); margin-left: 6px; font-weight: 600; }
footer.site { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 48px; color: var(--mute); font-size: .92rem; }
.foot { display: grid; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 700; letter-spacing: .06em; }
.foot-brand em { font-style: normal; font-weight: 400; color: var(--mute); letter-spacing: 0; margin-left: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--soft); }
.copy { margin: 0; }

/* buttons & chips */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: .96rem; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--gold); color: var(--night); }
.btn.primary:hover { background: #ffd469; }
.btn.ghost { border-color: var(--line); color: var(--cream); background: var(--night-2); }
.btn.ghost:hover { border-color: var(--soft); }
.btn.pending { border: 1px dashed #4a5a51; color: var(--mute); background: transparent; cursor: default; }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); letter-spacing: .02em; }
.chip.status-coming_soon { color: var(--gold); border-color: #5a4719; background: #241e0e; }
.chip.status-in_development { color: var(--teal); border-color: #22493d; background: #102620; }
.chip.status-released { color: var(--night); background: var(--teal); border-color: var(--teal); }

/* home hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 420px; background: radial-gradient(closest-side, rgba(245, 196, 81, .16), transparent); pointer-events: none; }
.hero-in { position: relative; display: grid; justify-items: center; }
.hero-symbol { width: clamp(84px, 16vw, 120px); margin-bottom: 22px; }
.hero-word { margin: 0 0 14px; }
.hero-word img { width: clamp(240px, 56vw, 460px); }
.slogan { font-size: clamp(1.15rem, 2.6vw, 1.45rem); color: var(--gold); font-weight: 700; letter-spacing: .01em; margin-bottom: 14px; }
.intro { max-width: 34em; color: var(--soft); margin-bottom: 28px; }
.hero .actions { justify-content: center; }

/* sections */
.block { margin-top: 64px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.more { font-weight: 600; white-space: nowrap; }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--mute); font-weight: 700; margin-bottom: 18px; }
.page-head { padding-top: 56px; }
.lead { color: var(--soft); font-size: 1.06rem; max-width: 40em; }

/* featured game */
.featured { margin-top: 24px; }
.feature-card { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1024 / 500; }
.feature-info { padding: 30px; display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-content: center; }
.feature-icon { width: 72px; border-radius: 18px; }
.feature-info h3 { font-size: 1.5rem; margin: 6px 0 2px; }
.feature-info h3 a { color: var(--cream); }
.feature-info .muted { margin: 0; }
.feature-text, .feature-info .chips, .feature-info .actions { grid-column: 1 / -1; }
.feature-text { color: var(--soft); margin: 0; }

/* game cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.game-card { display: flex; gap: 18px; padding: 20px; transition: border-color .2s; }
.game-card:hover { border-color: #3d5246; }
.card-icon img { width: 88px; border-radius: 20px; }
.card-body h3 { margin: 2px 0 0; }
.card-body h3 a { color: var(--cream); }
.card-body .muted { font-size: .88rem; margin-bottom: 8px; }
.card-body p:not(.chips):not(.muted) { color: var(--soft); font-size: .95rem; margin-bottom: 12px; }

/* principles / features / topics */
.principles, .features, .topics { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.principles li, .features li, .topics li { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.principles li { border-top: 2px solid var(--gold); }
@media (min-width: 900px) { .features, .topics { grid-template-columns: repeat(3, 1fr); } }
.principles p, .features p, .topics p { color: var(--soft); margin: 0; font-size: .96rem; }

/* game page */
.game-hero { padding-top: 32px; }
.game-art { width: 100%; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); aspect-ratio: 1024 / 500; object-fit: cover; }
.game-head { display: flex; align-items: center; gap: 18px; margin: 28px 0 20px; }
.game-icon { width: 96px; border-radius: 24px; flex: none; }
.game-head h1 { margin: 0; }
.game-head p { margin: 2px 0 0; }
.meta-list { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 20px; }
.meta-list div { display: grid; gap: 4px; }
.meta-list dt { font-size: .78rem; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; }
.meta-list dd { margin: 0; display: flex; gap: 6px; }
.download { margin-top: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night-2); }
.download h2 { font-size: 1rem; color: var(--mute); margin-bottom: 12px; }

/* screenshots: touch-drag carousel, no visible scrollbar */
.shots { list-style: none; margin: 0 -16px; padding: 4px 16px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 240px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots li { scroll-snap-align: start; }
.shots img { border-radius: 16px; border: 1px solid var(--line); aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .shots { margin: 0; padding: 4px 0 8px; grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; } }
.notes { padding-left: 1.2em; color: var(--soft); margin: 0 0 24px; }
.notes li { margin-bottom: 6px; }

/* support */
.contact { padding: 26px; border-radius: var(--radius); background: linear-gradient(135deg, #1f2a1c, var(--panel)); border: 1px solid #3a3a1f; }
.contact p:last-child { margin: 0; }
.faq { margin-bottom: 36px; scroll-margin-top: 90px; }
.faq h3 { color: var(--gold); margin-bottom: 12px; }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--night-2); margin-bottom: 10px; }
summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.3rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details > p { padding: 0 18px; color: var(--soft); }
details > p:last-child { padding-bottom: 6px; }

/* legal documents */
.doc { max-width: 760px; padding-top: 40px; }
.crumb { font-size: .92rem; }
.doc .meta { color: var(--soft); font-size: .93rem; padding: 16px 18px; background: var(--night-2); border: 1px solid var(--line); border-radius: 14px; }
.doc section { scroll-margin-top: 90px; margin-top: 36px; }
.doc h2 { font-size: 1.2rem; }
.doc p, .doc li { color: var(--soft); }
.toc { padding: 18px 20px; border-left: 2px solid var(--gold); background: var(--night-2); border-radius: 0 14px 14px 0; margin: 24px 0; font-size: .94rem; }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; }
.table-scroll { overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.table-scroll::-webkit-scrollbar { display: none; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--soft); }
th { background: var(--panel); color: var(--cream); }

/* mobile */
@media (max-width: 760px) {
  .brand .word { display: none; }
  .nav a { padding: 8px 10px; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-info { padding: 22px; }
  .hero { padding: 52px 0 40px; }
  .block { margin-top: 52px; }
  .game-card { padding: 16px; gap: 14px; }
  .card-icon img { width: 72px; border-radius: 17px; }
  .game-icon { width: 76px; border-radius: 19px; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
