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

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* 앱 내부 웹뷰(안드로이드 WebView / iOS WKWebView)는 기본값이 auto 라서 본문 글자를 제멋대로 키운다.
     그래서 같은 페이지가 모바일 브라우저에서는 정상인데 게임 안에서만 크게 보인다. 여기서 기준 크기로 고정한다. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.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: 150px;
  height: 48px;
}
.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-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 5vw;
  align-items: center;
  /* 넓은 화면에서 두 칸이 좌우 끝으로 벌어지면 가운데가 비어 한 덩어리로 읽히지 않는다. */
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}
.hero-copy { min-width: 0; }
.hero-keyvisual { min-width: 0; }
/* 폭만 정하고 높이는 비율대로 둔다. 이미지 안에 게임명과 출시 안내가 이미 들어 있어 잘리면 안 된다. */
.hero-keyvisual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 26px 60px rgba(0,0,0,.5);
}
.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(430px, 60vw);
  max-height: 34vh;
  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: 26px; }
.secondary-button { min-width: 150px; padding: 15px 22px; text-align: center; font-size: 13px; font-weight: 800; border: 1px solid #555; color: #ddd; }
.hero-scroll { position: absolute; left: 5vw; bottom: 34px; font-size: 9px; letter-spacing: .2em; color: #666; }

/*
  스토어 내려받기 버튼. 두 이미지의 원본 비율이 서로 달라(구글 478x142, 애플 259x80)
  폭을 맞추면 높이가 어긋난다. 그래서 높이를 기준으로 두고 폭은 비율대로 따라가게 한다.
*/
/* 주소가 없는 동안에는 버튼 옆에 사유가 붙으므로, 버튼 사이 간격을 사유와의 간격보다 넓게 벌려야 짝이 구분된다. */
.store-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 34px; }
.store-button { display: inline-flex; align-items: center; transition: .2s; }
.store-button img { display: block; height: 54px; width: auto; }
.store-button:hover, .store-button:focus-visible { transform: translateY(-2px); }
/* 주소가 아직 없는 스토어. 눌리지 않는다는 것이 보여야 하므로 흐리게 두고 사유를 옆에 적는다. */
.store-button.is-pending { gap: 10px; cursor: default; opacity: .45; }
.store-button.is-pending:hover { transform: none; }
.store-button.is-pending em { font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .08em; color: #8f8f88; }

.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(--ink);
  border: 1px solid #2a2a2a;
}
.studio-lockup-card span { font-size: 9px; font-weight: 900; letter-spacing: .16em; color: #8f8f88; }
.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; }
.principles-section p + p { margin-top: 16px; }
.principles-section a { color: var(--accent); font-weight: 800; }
.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; }
.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; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; align-items: center; font-size: 11px; color: var(--muted); }
.document-meta > span { max-width: 100%; overflow-wrap: anywhere; }
/* 시행일 선택기. 문서 제목 바로 아래에서 어느 시점의 문안을 보고 있는지 알리고 바꾸는 자리다. */
.version-select { display: inline-flex; align-items: center; gap: 10px; }
.version-select > span { font-size: 10px; font-weight: 900; letter-spacing: .14em; color: var(--ink); }
.version-select select {
  padding: 9px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.version-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.archive-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; }

.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; }
/* 문의 시 필수 기재 항목. 목록으로 끊어 두어야 빠뜨린 항목을 스스로 확인할 수 있다. */
.contact-required ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.contact-required li { position: relative; padding-left: 17px; font-size: 13px; line-height: 1.6; }
.contact-required li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 2px; background: var(--ink); }
.contact-required li b { font-weight: 900; }
.contact-required .contact-warning { margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(16,16,16,.28); font-size: 12px; color: #5e520b; }
.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; }

/* 확률정보 */
.probability-page .legal-sidebar a { display: block; }
.prob-system { padding-top: 26px; }
.prob-system + .prob-system { margin-top: 74px; }
.prob-system > h2 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 27px; letter-spacing: -.035em; }
.prob-cost { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.prob-notes { margin: 0 0 24px; padding-left: 20px; font-size: 14px; line-height: 1.85; }
.prob-facts { margin: 0 0 30px; border-top: 1px solid var(--ink); }
.prob-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prob-facts dt { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.prob-facts dd { margin: 0; font-size: 14px; line-height: 1.7; }
.prob-table-wrap { overflow-x: auto; margin: 0 0 26px; border: 1px solid var(--line); background: var(--white); }
.prob-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.prob-table caption { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.prob-table th, .prob-table td { padding: 11px 16px; border-bottom: 1px solid var(--soft); text-align: left; vertical-align: top; }
.prob-table thead th { background: var(--soft); font-size: 11px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.prob-table tbody th { font-weight: 700; }
.prob-table tbody tr:last-child th, .prob-table tbody tr:last-child td { border-bottom: 0; }
.prob-rate { font-weight: 800; white-space: nowrap; }
.prob-exact { color: var(--muted); font-size: 12px; white-space: nowrap; }
.prob-total { margin: 0; padding: 16px 18px; border-left: 4px solid var(--accent); background: #ebe9df; font-size: 13px; line-height: 1.75; }
.prob-retry { padding: 11px 18px; border: 1px solid var(--ink); background: var(--accent); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.prob-error-detail { margin: 8px 0 0; color: var(--muted); font-size: 13px; word-break: break-all; }

/* 내려받기 / 사전예약 종료 안내 */
.nav-cta { padding: 9px 16px; background: var(--accent); color: var(--ink) !important; letter-spacing: .06em; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--white); }

.download-band { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding: 110px 9vw; background: var(--ink); color: var(--white); }
.download-band .eyebrow { color: var(--accent); }
.download-band h2 { margin: 0; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.1; letter-spacing: -.06em; }
.download-band > div:last-child { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.download-band p { margin: 0; max-width: 520px; color: #a8a8a2; font-size: 16px; line-height: 1.8; }

.preorder-hero { position: relative; overflow: hidden; padding: 74px 9vw 0; color: var(--white); background: linear-gradient(135deg, #0d0d0d 0%, #181818 62%, #0d0d0d 100%); }
/*
  캐릭터가 왼쪽 한 칸을 세로로 다 쓰고, 오른쪽 칸에 로고와 보상 안내가 쌓인다.
  영역 이름으로 배치해 두면 좁은 화면에서 순서만 다시 짜면 되므로 마크업을 건드릴 필요가 없다.
*/
.preorder-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0 46px;
  /* 캐릭터 PNG 는 좌우에 투명 여백이 넓어 실제 인물은 이 칸 폭의 절반 정도만 차지한다.
     그래서 칸을 넉넉히 잡아야 사람 크기가 로고와 균형이 맞는다. */
  grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
  grid-template-areas:
    "visual brand"
    "visual reward"
    "visual note";
  align-content: center;
  /* 오른쪽 칸의 내용이 왼쪽에 정렬되므로, 칸을 넓은 화면 폭에 맞추면 오른쪽이 통째로 빈다. */
  max-width: 1020px;
  margin: 0 auto;
}
.hero-visual { grid-area: visual; align-self: end; }
/* 폭만 지정하고 높이는 비율대로 따라가게 둔다. 높이를 함께 지정하면 캐릭터가 눌린다. */
.hero-visual img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 38px rgba(0,0,0,.55)); }
.hero-brand { grid-area: brand; padding-top: 8px; }
.preorder-logo { display: block; width: min(380px, 72vw); max-height: 152px; object-fit: contain; object-position: left center; }

/*
  종료 안내 뱃지. 접수가 끝났다는 사실이 첫 화면에서 한 번에 읽혀야 하므로
  보상 수량이 있던 자리에 같은 무게로 둔다.
*/
.preorder-closed-badge {
  grid-area: reward;
  justify-self: start;
  margin: 30px 0 0 26px;
  padding: 20px 34px;
  border: 1px solid rgba(255, 212, 38, .42);
  background: linear-gradient(118deg, rgba(255, 212, 38, .16), rgba(255, 212, 38, .03) 62%);
}
.closed-label { margin: 0; font-size: 10px; font-weight: 900; letter-spacing: .18em; color: var(--accent); }
.closed-headline { margin: 10px 0 0; font-size: clamp(24px, 3vw, 38px); font-weight: 800; line-height: 1.22; letter-spacing: -.045em; }
/* 안내 문구는 카드 밖에 둔다. 카드 안에 넣으면 좁은 화면에서 카드가 세로로 길어져 신청 폼을 밀어낸다. */
.preorder-reward-note { grid-area: note; margin: 16px 0 70px 26px; max-width: 420px; color: #86867f; font-size: 12px; line-height: 1.75; }

.preorder-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 6vw; max-width: 1320px; margin: 0 auto; padding: 90px 5vw 130px; }
.preorder-info h2 { margin: 0 0 20px; font-size: 34px; letter-spacing: -.04em; }
.preorder-info h3 { margin: 54px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 18px; letter-spacing: -.02em; }
.preorder-lead { margin: 0; max-width: 560px; color: #4d4d48; font-size: 16px; line-height: 1.85; }
.preorder-terms { margin: 0; border-top: 2px solid var(--ink); }
.preorder-terms > div { display: grid; grid-template-columns: 116px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.preorder-terms dt { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.preorder-terms dd { margin: 0; font-size: 14px; line-height: 1.75; }
.preorder-note { margin: 26px 0 0; padding: 18px 20px; border-left: 4px solid var(--accent); background: #ebe9df; font-size: 13px; line-height: 1.8; }
.preorder-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.preorder-links a { padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; }

.preorder-form-card { align-self: start; padding: 42px 40px; background: var(--white); border: 1px solid var(--line); }
.preorder-form-card h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: -.035em; }
.preorder-form-card .preorder-lead { font-size: 15px; }
/* 밝은 카드 위에서는 어두운 배경용 회색이 묻힌다. */
.preorder-form-card .store-button.is-pending em { color: var(--muted); }
.preorder-form-footnote { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.75; }
.preorder-form-footnote a { text-decoration: underline; }

@media (max-width: 900px) {
  .site-header { height: 68px; padding: 0 22px; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 10px; }
  .brand { width: 128px; height: 42px; }
  .home-hero { min-height: calc(100svh - 68px); padding: 74px 24px 110px; }
  /* 좁은 화면에서는 키비주얼을 위로 올린다. 출시 사실이 적힌 이미지를 먼저 보여 주는 편이 읽히기 쉽다. */
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-keyvisual { order: -1; max-width: 460px; }
  .game-logo { width: min(420px, 74vw); max-height: 28vh; }
  .store-button img { height: 48px; }
  .hero-scroll { display: none; }
  .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; }
  .download-band { grid-template-columns: 1fr; gap: 34px; padding: 80px 24px; }
  .download-band > div:last-child { align-items: stretch; }
  /* 좁은 화면에서는 캐릭터를 안내 뱃지 옆으로 옮긴다. 위아래로 쌓으면 첫 화면이 캐릭터로만 채워진다. */
  .preorder-hero { padding: 34px 24px 0; }
  /* 로고를 오른쪽 칸으로 옮기고 캐릭터가 두 줄을 세로로 관통하게 한다.
     로고가 한 줄을 통째로 쓰면 캐릭터와 보상 카드가 아래로 밀려 각각 따로 노는 것처럼 보인다. */
  .preorder-hero-inner {
    gap: 0 10px;
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-areas:
      "visual brand"
      "visual reward"
      "note note";
  }
  .hero-brand { padding-top: 4px; }
  /* 폭 대신 높이로 제한한다. 로고가 정사각형에 가까워 폭을 채우면 세로로 너무 커진다. */
  .preorder-logo { width: auto; max-width: 100%; max-height: 96px; }
  .preorder-closed-badge { align-self: center; justify-self: stretch; margin: 16px 0 0; padding: 14px 16px; }
  .closed-headline { margin-top: 6px; font-size: 22px; }
  .preorder-reward-note { margin: 14px 0 0; font-size: 11px; }
  .preorder-main { grid-template-columns: 1fr; gap: 54px; padding: 34px 24px 96px; }
  /* 내려받기 카드를 안내문 위로 올린다. 페이지에 들어온 사람이 다음에 할 일이 그것뿐이다. */
  .preorder-form-card { order: -1; padding: 30px 22px; }
}

@media (max-width: 520px) {
  /* 좁은 화면에서는 헤더에 다운로드 버튼을 남기는 것이 우선이다. 메뉴를 다 넣으면 로고와 붙어 버린다.
     감춘 GAME, PROBABILITY, SUPPORT 는 푸터에서 모두 접근할 수 있다. */
  .main-nav a:first-child, .main-nav a:nth-child(2), .main-nav a:nth-child(4) { display: none; }
  .main-nav { gap: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  /* 320px 기기에서도 두 버튼이 한 줄에 들어가지 않으므로 세로로 쌓고 크기를 키운다. */
  .store-buttons { flex-direction: column; align-items: flex-start; gap: 12px; }
  .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; }
  .prob-facts > div { grid-template-columns: 1fr; gap: 6px; }
  /* 캐릭터 칸을 화면 폭에 비례시킨다. 고정 폭이면 320px 기기에서 오른쪽 칸이 좁아 카드가 넘친다. */
  .preorder-hero-inner { gap: 0 8px; grid-template-columns: clamp(96px, 34vw, 138px) minmax(0, 1fr); }
  /* 기본 자간으로는 PRE-REGISTRATION 이 좁은 칸에서 두 줄로 접힌다. */
  .preorder-hero .eyebrow { margin-bottom: 14px; font-size: 9px; letter-spacing: .1em; }
  .preorder-logo { max-height: 86px; }
  .preorder-closed-badge { padding: 13px 14px; }
  /* 문구가 한 줄을 유지해야 하므로 칸 폭에 따라 크기가 줄어들게 한다. 320px 기기까지 넘치지 않는다. */
  .closed-headline { font-size: clamp(16px, 5.2vw, 22px); }
  .preorder-terms > div { grid-template-columns: 1fr; gap: 6px; }
}

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