:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #66716b;
  --paper: #f7f3ea;
  --panel: #fffdfa;
  --line: #d9d1c3;
  --accent: #c9472c;
  --teal: #18746b;
  --gold: #d99f2b;
  --shadow: 8px 8px 0 #18211f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 33, 31, .055) 1px, transparent 1px),
    linear-gradient(rgba(24, 33, 31, .05) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family: "Aptos", "Malgun Gothic", sans-serif;
  line-height: 1.7;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.public-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}
.public-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.public-brand img { width: 42px; height: 42px; border-radius: 9px; box-shadow: 4px 4px 0 var(--ink); }
.public-brand strong, .public-brand small { display: block; }
.public-brand small { color: var(--muted); font-size: .74rem; letter-spacing: .08em; }
.public-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.public-nav a { font-size: .9rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.public-nav a:hover, .public-nav a:focus-visible { color: var(--accent); }

.public-main { padding: 52px 0 84px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 30px; color: var(--muted); font-size: .85rem; }
.breadcrumbs a { text-underline-offset: 4px; }
.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  padding-bottom: 52px;
  border-bottom: 2px solid var(--ink);
}
.public-hero.is-text-only { grid-template-columns: minmax(0, 820px); }
.public-kicker { margin: 0 0 13px; color: var(--accent); font-size: .79rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.public-hero h1 {
  max-width: 15ch;
  margin: 0;
  font-family: "Book Antiqua", "Palatino Linotype", "Noto Serif KR", serif;
  font-size: clamp(2.55rem, 7vw, 5.9rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.public-hero.is-text-only h1 { max-width: 18ch; font-size: clamp(2.45rem, 6vw, 5.2rem); }
.public-lead { max-width: 62ch; margin: 24px 0 0; color: #38423f; font-size: clamp(1.04rem, 2vw, 1.25rem); }
.public-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.public-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--gold);
  transition: transform .16s ease, box-shadow .16s ease;
}
.public-button.secondary { background: var(--panel); color: var(--ink); box-shadow: none; }
.public-button:hover, .public-button:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--accent); }
.public-hero-media { position: relative; }
.public-hero-media::before { content: ""; position: absolute; inset: -10px 14px 10px -10px; border: 1px solid var(--ink); background: var(--gold); }
.public-hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--ink); box-shadow: var(--shadow); }

.fact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 34px 0 0; padding: 1px; background: var(--ink); list-style: none; }
.fact-list li { min-width: 0; padding: 14px; background: var(--panel); }
.fact-list span, .fact-list strong { display: block; }
.fact-list span { color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.fact-list strong { margin-top: 2px; font-size: 1rem; }

.public-section { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; padding: 50px 0; border-bottom: 1px solid var(--line); }
.section-number { color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .14em; }
.section-content { max-width: 800px; }
.section-content h2 { margin: 0 0 18px; font-family: "Book Antiqua", "Palatino Linotype", "Noto Serif KR", serif; font-size: clamp(1.7rem, 4vw, 2.75rem); line-height: 1.12; letter-spacing: -.035em; }
.section-content h3 { margin: 28px 0 8px; font-size: 1.06rem; }
.section-content p { margin: 0 0 14px; }
.section-content ul, .section-content ol { margin: 0; padding-left: 1.4rem; }
.section-content li + li { margin-top: 13px; }
.section-content a { color: var(--teal); font-weight: 800; text-underline-offset: 4px; }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 190px; border: 1px solid var(--ink); background: var(--panel); box-shadow: 5px 5px 0 rgba(24, 33, 31, .18); }
.game-card img { width: 100%; height: 100%; object-fit: cover; border-right: 1px solid var(--ink); }
.game-card-body { padding: 18px; }
.game-card small { color: var(--accent); font-weight: 900; letter-spacing: .1em; }
.game-card h2 { margin: 5px 0 8px; font-family: "Book Antiqua", "Palatino Linotype", "Noto Serif KR", serif; font-size: 1.45rem; line-height: 1.15; }
.game-card p { margin: 0; color: #46504d; font-size: .94rem; }
.game-card-links { display: flex; gap: 14px; margin-top: 14px; }
.game-card a { font-size: .86rem; font-weight: 900; text-underline-offset: 4px; }

.notice-box { margin-top: 28px; padding: 18px 20px; border-left: 5px solid var(--teal); background: #e9f1ed; }
.notice-box strong { display: block; margin-bottom: 4px; }
.notice-box p { margin: 0; }
.legal-date { margin-top: 20px; color: var(--muted); font-size: .88rem; }
.contact-card { display: inline-grid; gap: 7px; margin-top: 22px; padding: 22px; border: 1px solid var(--ink); background: var(--panel); box-shadow: var(--shadow); }
.contact-card span { color: var(--muted); font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.contact-card a { color: var(--teal); font-size: clamp(1.05rem, 3vw, 1.45rem); font-weight: 900; }

.public-footer { padding: 28px 0 46px; border-top: 2px solid var(--ink); }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-owner strong, .footer-owner span { display: block; }
.footer-owner span { margin-top: 5px; color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.footer-links a { font-size: .86rem; font-weight: 800; text-underline-offset: 4px; }
.footer-note { margin: 22px 0 0; color: var(--muted); font-size: .78rem; }

@media (max-width: 820px) {
  .public-header { align-items: flex-start; padding: 16px 0; }
  .public-nav { max-width: 220px; }
  .public-hero { grid-template-columns: 1fr; }
  .public-hero-media { max-width: 620px; }
  .public-section { grid-template-columns: 1fr; gap: 12px; }
  .game-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .public-shell { width: min(100% - 22px, 1180px); }
  .public-header { display: grid; }
  .public-nav { max-width: none; justify-content: flex-start; }
  .public-main { padding-top: 32px; }
  .public-hero h1 { font-size: clamp(2.45rem, 15vw, 4.2rem); }
  .fact-list { grid-template-columns: 1fr; }
  .game-card { grid-template-columns: 110px minmax(0, 1fr); }
  .game-card-body { padding: 14px; }
  .footer-grid { display: grid; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
