@font-face {
  font-family: "Galmuri11";
  src: url("assets/galmuri11_bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0e0e12;
  --surface: #17171d;
  --surface-high: #24242d;
  --rim: #34343f;
  --mint: #9ff5d2;
  --bone: #cfcbbf;
  --text: #f2f0e8;
  --muted: #8c8a94;
  --warn: #ffb86b;
  --ink: #0b0b10;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.65;
}

.pixel { font-family: "Galmuri11", system-ui, sans-serif; font-weight: 700; }

.sprite { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

a { color: var(--mint); }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
header.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 18px; }
header.top .brand img { width: 32px; height: 32px; border-radius: 8px; }
header.top nav a { color: var(--bone); text-decoration: none; font-size: 14px; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.25; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero p { color: var(--bone); font-size: 17px; margin: 0 0 24px; }
.hero .stage { position: relative; display: flex; justify-content: center; }
.hero .stage .bubble { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.hero .stage img { width: min(280px, 70vw); height: auto; }

.bubble {
  display: inline-block; background: var(--text); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 14px; padding: 6px 12px; font-size: 14px;
}

.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--mint); color: #0b1f17; padding: 14px 22px; border-radius: 16px; text-decoration: none; font-size: 16px; }
.cta.soon { cursor: default; opacity: 0.9; }
.note { color: var(--muted); font-size: 13px; margin-top: 10px; }
.note a { color: var(--bone); }

section { padding: 40px 0; border-top: 1px solid var(--rim); }
section h2 { font-size: 24px; margin: 0 0 8px; }
section > .wrap > p.lead { color: var(--bone); margin: 0 0 24px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--rim); border-radius: 18px; padding: 18px 16px; }
.card img { width: 112px; height: 112px; margin: 0 auto 6px; }
.card .when { color: var(--mint); font-size: 14px; }
.card h3 { margin: 4px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--bone); font-size: 14px; }
.card.over .when { color: var(--warn); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.skins { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.skin { background: var(--surface); border: 1px solid var(--rim); border-radius: 16px; padding: 12px 8px; text-align: center; }
.skin img { width: 72px; height: 72px; margin: 0 auto 6px; }
.skin span { font-size: 13px; color: var(--bone); }

ul.plain, ol.plain { margin: 0; padding-left: 20px; color: var(--bone); }
ul.plain li, ol.plain li { margin: 4px 0; }

footer { border-top: 1px solid var(--rim); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
footer a { color: var(--bone); }

/* Policy page */
.doc { max-width: 760px; padding-bottom: 48px; }
.doc h1 { font-size: 28px; margin: 24px 0 4px; }
.doc h2 { font-size: 19px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--bone); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--rim); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); color: var(--text); }
.doc .table-scroll { overflow-x: auto; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; text-align: center; }
  .hero .stage { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .skins { grid-template-columns: repeat(3, 1fr); }
}
