@font-face {
  font-family: "Jua";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jua-400-rest.woff2") format("woff2");
  unicode-range: U+AC00-D7A3;
}
@font-face {
  font-family: "Jua";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jua-400-core.woff2") format("woff2");
  unicode-range: U+20-5F, U+61-7E, U+A0, U+3131-3163, U+AC00-D7A3;
}

:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --paper-sunken: #efede8;
  --rule: #e7ecf3;
  --margin-line: #ffe3ea;
  --surface: #ffffff;
  --ink: #3a2a24;
  --ink-muted: #6b5848;
  --ink-soft: #8a735c;
  --border-soft: #dcd8d0;
  --pen: #2443c4;
  --primary: #ffb366;
  --sky: #e9f2fb;
  --note: #fff5c7;
  --focus: #2443c4;
  --radius-panel: 22px 16px 24px 18px / 16px 22px 18px 20px;
  --radius-pill: 999px;
  --font-body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-round: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 33px);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: var(--pen); text-underline-offset: 3px; }

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

.wrap {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  padding-top: 48px;
  padding-bottom: 24px;
}
.top__name {
  margin: 0;
  font: 400 clamp(40px, 9vw, 64px)/1.05 var(--font-round);
  letter-spacing: -0.5px;
}
.top__line {
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--ink-muted);
}

.games-sec { padding: 8px 0 40px; }
.games-sec__h {
  margin: 0 0 16px;
  font: 400 24px/1.2 var(--font-round);
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-panel);
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
}
.game__art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 16px;
  background: var(--sky);
  border-bottom: 2px solid var(--ink);
}
.game__art img {
  width: auto;
  max-width: 78%;
  max-height: 100%;
  height: auto;
}
.game__body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 18px 20px;
}
.game__name {
  margin: 0;
  font: 400 26px/1.15 var(--font-round);
}
.game__desc {
  margin: 0;
  color: var(--ink-muted);
}

.play {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.play__item { display: grid; gap: 6px; }
.play__item:first-child { margin-bottom: 6px; }
.play__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  font: 700 16px/1.25 var(--font-body);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}
.btn--go {
  min-height: 52px;
  font-size: 17px;
  background: var(--primary);
  box-shadow: 0 3px 0 var(--ink);
}
.btn--go:hover { filter: brightness(1.04); }
.btn--go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn--soon {
  min-height: 40px;
  padding: 6px 8px 6px 14px;
  background: var(--paper-sunken);
  border-width: 1.5px;
  border-style: dashed;
  border-color: var(--ink-soft);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-muted);
  cursor: not-allowed;
  justify-content: space-between;
}
.btn__tag {
  flex: none;
  padding: 1px 9px;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.game__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 2px dashed var(--border-soft);
  list-style: none;
  font-size: 15px;
}
.game__links a { display: inline-block; padding: 6px 0; }

.foot {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 2px dashed var(--ink-soft);
  font-size: 15px;
  color: var(--ink-muted);
}
.foot p { margin: 0 0 6px; }
.foot strong { color: var(--ink); margin-right: 6px; }
.foot__h {
  margin: 18px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.foot__legal {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot__legal a { display: inline-block; padding: 4px 0; margin-right: 12px; }

@media (min-width: 720px) {
  .top { padding-top: 72px; padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn--go:active { transform: none; }
}

/* ── 여러 쪽 공통: 머리 · 하위 메뉴 · 글 ── */
.site {
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
}
.site__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 56px;
}
.site__brand {
  font: 400 24px/1.2 var(--font-round);
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
}
.site__nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.site__nav a { padding: 10px 0; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.site__nav a[aria-current="page"],
.site__nav a:hover { text-decoration: underline; }

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 20px 0 0;
}
.sub a {
  padding: 6px 12px;
  border: 1.5px solid var(--ink-soft);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.sub a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

.doc {
  width: min(760px, 100%);
  padding: 24px 0 48px;
}
.doc h1 {
  margin: 12px 0 0;
  font: 400 clamp(30px, 7vw, 44px)/1.15 var(--font-round);
}
.doc h2 {
  margin: 40px 0 12px;
  font: 400 26px/1.25 var(--font-round);
}
.doc h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  line-height: 1.4;
}
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin: 4px 0; }
.lead {
  margin: 12px 0 0;
  font-size: 18px;
  color: var(--ink-muted);
}
.cta {
  display: inline-flex;
  width: auto;
  margin: 20px 0 6px;
  padding: 10px 28px;
}
.cta-note { margin: 0; font-size: 14px; color: var(--ink-muted); }

.panel {
  margin: 16px 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-panel);
}
.panel > :last-child { margin-bottom: 0; }
.note {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--note);
  border-radius: 12px;
  font-size: 15px;
}
.note > :last-child { margin-bottom: 0; }

.fig { margin: 16px 0; }
.fig img { display: block; max-width: 100%; height: auto; }
.fig figcaption { margin-top: 6px; font-size: 14px; color: var(--ink-muted); }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.shots figure { margin: 0; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--surface);
}
.shots figcaption { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: 12px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.card {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-panel);
}
.card img { display: block; width: 100%; max-width: 140px; height: auto; margin: 0 auto 4px; aspect-ratio: 1 / 1; object-fit: contain; }
.card b { font-size: 15px; line-height: 1.35; }
.card span { font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.card .tier {
  justify-self: start;
  padding: 0 8px;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}
.cards--coats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 96px), 1fr)); }
.cards--coats .card { padding: 8px; text-align: center; }
.cards--coats .card b { font-size: 14px; }

.tbl-wrap {
  margin: 12px 0 16px;
  overflow-x: auto;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 14px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}
.tbl caption {
  padding: 10px 12px 0;
  text-align: left;
  font-weight: 700;
}
.tbl th, .tbl td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}
.tbl thead th { background: var(--paper-sunken); white-space: nowrap; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl small { display: block; color: var(--ink-muted); font-size: 12px; }

.qa { margin: 0; }
.qa dt { margin: 24px 0 6px; font-weight: 700; font-size: 17px; }
.qa dd { margin: 0; }
.qa dd p { margin: 0 0 8px; }

.news { margin: 0; padding: 0; list-style: none; }
.news li { padding: 14px 0; border-bottom: 2px dashed var(--border-soft); }
.news time { display: block; font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.news b { display: block; margin: 2px 0 4px; font-size: 17px; }
.news p { margin: 0; }

.start {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.start a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-panel);
  color: var(--ink);
  text-decoration: none;
}
.start a:hover { box-shadow: 3px 3px 0 var(--ink); }
.start b { font-size: 17px; }
.start span { font-size: 14px; color: var(--ink-muted); }

.sec { padding: 8px 0 32px; }
.sec__h { margin: 0 0 16px; font: 400 24px/1.2 var(--font-round); }
.sec__more { display: inline-block; margin-top: 12px; padding: 6px 0; }

.next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 2px dashed var(--border-soft);
}
.next a { padding: 6px 0; font-weight: 700; }

.foot__nav { display: flex; flex-wrap: wrap; gap: 0 16px; margin-bottom: 8px; }
.foot__nav a { display: inline-block; padding: 6px 0; }
.foot__copy { margin-top: 16px !important; font-size: 13px; }

.doc .cards, .doc .shots, .doc .news, .doc .start { padding-left: 0; }
.doc .cards > li, .doc .shots > li { margin: 0; }
