:root {
  --ink: #101010;
  --paper: #f5f4f0;
  --soft: #e8e7e1;
  --line: #d0cfc8;
  --muted: #686862;
  --accent: #ffd426;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }

.site-shell { min-height: 100vh; overflow: hidden; }
.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: var(--ink);
  color: var(--white);
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  width: 146px;
  height: 48px;
  padding: 8px 12px;
  background: var(--white);
}
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 38px; }
.main-nav a { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #c8c8c8; transition: .2s; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent); }

.home-hero {
  min-height: calc(100vh - 82px);
  position: relative;
  display: grid;
  align-items: center;
  padding: 8vw 9vw;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 33%, rgba(255,212,38,.16), transparent 23%),
    linear-gradient(135deg, #0d0d0d 0%, #181818 62%, #0d0d0d 100%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .15;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.orbit-one { width: 52vw; height: 52vw; right: -10vw; top: -8vw; }
.orbit-two { width: 30vw; height: 30vw; right: 1vw; top: 3vw; border-color: rgba(255,212,38,.3); }
.hero-copy { position: relative; z-index: 2; max-width: 780px; }
.eyebrow { margin: 0 0 22px; font-size: 11px; font-weight: 800; letter-spacing: .24em; color: #87877f; }
.home-hero .eyebrow { color: var(--accent); }
.game-logo {
  display: block;
  width: min(560px, 68vw);
  max-height: 52vh;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 14px 36px rgba(0,0,0,.34));
}
.hero-description { color: #aaa; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }
.primary-button, .secondary-button { min-width: 170px; padding: 16px 24px; text-align: center; font-size: 13px; font-weight: 800; }
.primary-button { background: var(--accent); color: var(--ink); }
.secondary-button { border: 1px solid #555; color: #ddd; }
.hero-code { position: absolute; right: 6vw; bottom: 9vw; display: flex; flex-direction: column; align-items: flex-end; z-index: 2; }
.hero-code span, .hero-code small { font-size: 9px; letter-spacing: .18em; color: #777; }
.hero-code strong { font-size: clamp(48px, 7vw, 98px); line-height: 1; letter-spacing: -.07em; color: var(--accent); }
.hero-scroll { position: absolute; left: 5vw; bottom: 34px; font-size: 9px; letter-spacing: .2em; color: #666; }

.game-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 9vw; padding: 140px 9vw; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: clamp(42px, 5.5vw, 76px); line-height: 1.08; letter-spacing: -.06em; }
.game-statement { padding-top: 46px; }
.game-statement > p { margin: 0 0 60px; max-width: 580px; font-size: 20px; line-height: 1.75; color: #3f3f3b; }
.studio-lockup-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 260px);
  align-items: center;
  gap: 24px;
  margin: 0 0 34px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
}
.studio-lockup-card span { font-size: 9px; font-weight: 900; letter-spacing: .16em; color: var(--muted); }
.studio-lockup-card img { display: block; width: 100%; height: auto; }
.game-statement dl { margin: 0; border-top: 1px solid var(--ink); }
.game-statement dl div { display: flex; justify-content: space-between; gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.game-statement dt { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--muted); }
.game-statement dd { margin: 0; font-size: 13px; font-weight: 700; }
.principles-section { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 5vw; background: var(--ink); color: var(--white); }
.principles-section article { min-height: 330px; padding: 54px 3vw; border-right: 1px solid #2f2f2f; }
.principles-section article:last-child { border-right: 0; }
.principles-section span { color: var(--accent); font: 700 11px/1 Arial; }
.principles-section h3 { margin: 90px 0 14px; font-size: 25px; letter-spacing: -.02em; }
.principles-section p { margin: 0; max-width: 310px; color: #969696; font-size: 14px; line-height: 1.7; }
.legal-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding: 120px 9vw; background: var(--accent); }
.legal-callout .eyebrow { color: #5e520b; }
.legal-callout h2 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1.1; letter-spacing: -.06em; }
.legal-callout > div:last-child { display: flex; flex-direction: column; justify-content: flex-end; }
.legal-callout > div:last-child p { max-width: 550px; font-size: 17px; line-height: 1.75; }
.legal-callout a { display: flex; justify-content: space-between; margin-top: 32px; padding: 20px 0; border-top: 2px solid var(--ink); font-size: 13px; font-weight: 900; letter-spacing: .06em; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 52px; padding: 62px 5vw 30px; background: #090909; color: #7d7d7d; }
.site-footer p { margin: 6px 0; font-size: 12px; }
.footer-logo-wrap { width: 168px; padding: 9px 12px; background: var(--white); }
.footer-logo-wrap img { display: block; width: 100%; height: auto; }
.footer-company { max-width: 620px; margin-top: 18px !important; line-height: 1.7; }
.footer-links { display: flex; gap: 24px; align-items: start; font-size: 12px; }
.footer-links a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid #222; font-size: 9px !important; letter-spacing: .12em; }

.legal-index { min-height: 75vh; padding: 110px 8vw 140px; }
.legal-index > header { max-width: 760px; margin-bottom: 80px; }
.legal-index h1 { margin: 0; font-size: clamp(56px, 9vw, 120px); letter-spacing: -.07em; line-height: .9; }
.legal-index header > p:last-child { margin-top: 32px; color: var(--muted); font-size: 17px; }
.legal-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.legal-card-grid a { position: relative; min-height: 230px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: .22s; }
.legal-card-grid a:hover { background: var(--accent); }
.legal-card-grid small { display: block; margin-top: 54px; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.legal-card-grid strong { display: block; margin-top: 8px; max-width: 250px; font-size: 18px; line-height: 1.4; }
.card-index { font-size: 10px; font-weight: 800; }
.card-arrow { position: absolute; top: 26px; right: 28px; font-size: 20px; }

.legal-layout { display: grid; grid-template-columns: 310px minmax(0, 860px); gap: 7vw; max-width: 1320px; margin: 0 auto; padding: 80px 5vw 140px; }
.legal-sidebar { position: sticky; top: 30px; align-self: start; }
.sidebar-title { margin: 0 0 24px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.legal-sidebar nav { display: flex; flex-direction: column; }
.legal-sidebar a { padding: 15px 10px; border-bottom: 1px solid var(--line); transition: .18s; }
.legal-sidebar a:hover, .legal-sidebar a.active { background: var(--accent); }
.legal-sidebar small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.legal-sidebar span { font-size: 13px; font-weight: 700; }
.legal-hero { padding: 10px 0 50px; border-bottom: 1px solid var(--ink); }
.legal-hero h1 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.12; letter-spacing: -.055em; }
.legal-hero > p:not(.eyebrow) { margin: 24px 0 0; color: var(--muted); line-height: 1.7; }
.document-meta { display: flex; gap: 12px; margin-top: 30px; align-items: center; font-size: 11px; color: var(--muted); }
.draft-badge { padding: 6px 9px; background: #deddd7; color: #51514e; font-weight: 700; }
.draft-notice { margin-top: 30px; padding: 18px 20px; border-left: 4px solid var(--accent); background: #ebe9df; font-size: 13px; line-height: 1.7; }
.legal-body { padding-top: 26px; font-size: 15px; line-height: 1.85; }
.legal-body h2 { margin: 64px 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 27px; letter-spacing: -.035em; }
.legal-body h3 { margin: 42px 0 16px; font-size: 20px; letter-spacing: -.025em; }
.legal-body p { margin: 12px 0; }
.legal-body .legal-label { margin: 28px 0 6px; font-size: 13px; }
.legal-body ul, .legal-body ol { margin: 12px 0 26px; padding-left: 24px; }
.legal-body li { padding-left: 4px; margin: 7px 0; }
.legal-loading { color: var(--muted); }
.legal-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.raw-link { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 800; }
.load-error { padding: 20px; border-left: 4px solid #c43c2f; background: #f1e4e0; line-height: 1.7; }
.owner-note { margin-top: 70px; padding: 24px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 13px; line-height: 1.75; }

.info-page { max-width: 1120px; min-height: 75vh; margin: 0 auto; padding: 105px 5vw 140px; }
.info-page > header { max-width: 760px; margin-bottom: 70px; }
.info-page h1 { margin: 0; font-size: clamp(48px, 7vw, 88px); letter-spacing: -.065em; line-height: 1; }
.info-page header > p:last-child { margin-top: 25px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.info-panel { display: grid; grid-template-columns: 90px 1fr; gap: 25px; padding: 40px 0; border-top: 1px solid var(--line); }
.primary-panel { border-top: 2px solid var(--ink); }
.step-number { font-size: 12px; font-weight: 900; color: var(--muted); }
.info-panel h2 { margin: 0 0 14px; font-size: 24px; }
.info-panel p, .info-panel li { color: #4d4d48; font-size: 15px; line-height: 1.8; }
.action-link { display: inline-block; margin-top: 13px; padding-bottom: 4px; border-bottom: 2px solid var(--ink); font-weight: 800; }
.warning-panel .step-number { color: #a68700; }
.info-footnote { margin-top: 25px; padding: 22px; background: #e9e8e2; font-size: 13px; }
.info-footnote a { text-decoration: underline; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.support-grid article { min-height: 310px; padding: 40px; background: var(--paper); }
.support-grid span, .contact-strip small { font-size: 10px; font-weight: 900; letter-spacing: .17em; color: var(--muted); }
.support-grid h2 { margin: 80px 0 14px; font-size: 26px; }
.support-grid p { min-height: 55px; color: var(--muted); line-height: 1.7; }
.support-grid a { display: inline-block; margin-top: 20px; font-weight: 800; border-bottom: 2px solid var(--ink); }
.contact-strip { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; padding: 38px 40px; background: var(--accent); }
.contact-strip strong { display: block; margin-top: 8px; font-size: 20px; }
.contact-strip p { margin: 0; font-size: 13px; line-height: 1.75; }
.support-shortcuts { display: flex; gap: 16px; margin-top: 38px; }
.support-shortcuts a { padding: 13px 18px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }

@media (max-width: 900px) {
  .site-header { height: 68px; padding: 0 22px; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 10px; }
  .brand { width: 126px; height: 42px; padding: 7px 10px; }
  .home-hero { min-height: calc(100svh - 68px); padding: 90px 24px 120px; }
  .game-logo { width: min(540px, 86vw); max-height: 46vh; }
  .hero-code { display: none; }
  .hero-scroll { left: 24px; }
  .game-section, .legal-callout { grid-template-columns: 1fr; padding: 90px 24px; }
  .game-statement { padding-top: 0; }
  .game-statement > p { font-size: 17px; }
  .principles-section { grid-template-columns: 1fr; padding: 0 24px; }
  .principles-section article { min-height: auto; padding: 42px 0; border-right: 0; border-bottom: 1px solid #2f2f2f; }
  .principles-section h3 { margin-top: 35px; }
  .site-footer { grid-template-columns: 1fr; padding: 48px 24px 26px; }
  .footer-links { flex-wrap: wrap; gap: 14px 20px; }
  .legal-index { padding: 80px 24px 100px; }
  .legal-index > header { margin-bottom: 52px; }
  .legal-card-grid { grid-template-columns: 1fr; }
  .legal-card-grid a { min-height: 170px; }
  .legal-layout { display: block; padding: 52px 24px 100px; }
  .legal-sidebar { position: static; margin-bottom: 56px; }
  .legal-sidebar nav { display: grid; grid-template-columns: 1fr 1fr; }
  .legal-sidebar a { border-right: 1px solid var(--line); }
  .legal-hero h1 { font-size: 42px; }
  .info-page { padding: 78px 24px 100px; }
  .info-panel { grid-template-columns: 45px 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .support-grid article { min-height: 270px; padding: 30px; }
  .contact-strip { grid-template-columns: 1fr; padding: 30px; }
}

@media (max-width: 520px) {
  .main-nav a:first-child { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .studio-lockup-card { grid-template-columns: 80px 1fr; padding: 18px; }
  .legal-sidebar nav { grid-template-columns: 1fr; }
  .document-meta { align-items: flex-start; flex-direction: column; }
  .info-panel { grid-template-columns: 1fr; }
  .support-shortcuts { flex-direction: column; }
}

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