:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --surface: #fffdf9;
  --ink: #201f1c;
  --muted: #716c63;
  --line: #ddd7cd;
  --slot: #eae4da;
  --accent: #c94f46;
  --accent-soft: #f4d7d2;
  --green: #708c69;
  --gold: #d89d45;
  --purple: #9c6ca2;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(calc(100% - 40px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.hero {
  width: min(calc(100% - 40px), var(--max));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 580px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.release-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.game-preview {
  width: min(100%, 500px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 18px 18px 0 var(--slot);
}

.preview-top {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.preview-dots {
  display: flex;
  gap: 5px;
}

.preview-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.pixel-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}

.pixel {
  position: relative;
  aspect-ratio: 1;
  background: #efe9df;
}

.pixel::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: var(--jewel, #ddd5c8);
  box-shadow: inset 0 -0.18em 0 color-mix(in srgb, var(--jewel, #ddd5c8) 70%, #000);
}

.pixel::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 34%;
  left: 44%;
  width: 10%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
}

.pixel.empty::before {
  display: none;
}

.pixel.empty::after {
  background: #ded7cc;
  box-shadow: none;
}

.red { --jewel: #e95e54; background: #ce4f47; }
.pink { --jewel: #f29a91; background: #dc7f76; }
.green { --jewel: #7c9d74; background: #688862; }
.brown { --jewel: #8b6450; background: #71503f; }
.gold { --jewel: #e1ad55; background: #c89543; }

.preview-tray {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}

.preview-tray i {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--slot);
}

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.step-number {
  width: 38px;
  height: 38px;
  margin-bottom: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.collection-block {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(40px, 8vw, 96px);
  align-items: center;
}

.collection-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.collection-copy p {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.frame {
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.mini-art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--slot);
  color: var(--accent);
  font-size: clamp(34px, 5vw, 58px);
}

.frame:nth-child(2) .mini-art { color: var(--gold); }
.frame:nth-child(3) .mini-art { color: var(--green); }
.frame:nth-child(4) .mini-art { color: var(--purple); }

.frame p {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
}

.legal-main {
  width: min(calc(100% - 40px), 820px);
  margin: 0 auto;
  padding: 80px 0 120px;
}

.legal-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  margin-bottom: 16px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.effective-date {
  color: var(--muted);
  font-size: 14px;
}

.summary-box {
  margin: 0 0 48px;
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.summary-box strong {
  display: block;
  margin-bottom: 8px;
}

.summary-box p:last-child {
  margin-bottom: 0;
}

.legal-section {
  margin-top: 52px;
}

.legal-section h2 {
  margin-bottom: 18px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 28px 0 10px;
  font-size: 17px;
}

.legal-section p,
.legal-section li {
  color: #4f4b45;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f0ebe3;
  font-size: 12px;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

.source-list a {
  color: var(--accent);
}

@media (max-width: 820px) {
  .nav-links a:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 64px 0 88px;
  }

  .hero-visual {
    grid-row: 1;
  }

  .game-preview {
    width: min(88vw, 460px);
  }

  .steps,
  .collection-block {
    grid-template-columns: 1fr;
  }

  .collection-copy {
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    gap: 14px;
    font-size: 12px;
  }

  .nav-links a:first-child,
  .nav-links a:nth-child(2) {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .game-preview {
    box-shadow: 10px 10px 0 var(--slot);
  }

  .section {
    padding: 80px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .step {
    min-height: auto;
  }

  .step-number {
    margin-bottom: 32px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .legal-main {
    padding: 56px 0 88px;
  }

  .legal-header {
    margin-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
