: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; }
.fact-list .fact-wide { grid-column: 1 / -1; }
.fact-list a { color: inherit; overflow-wrap: anywhere; }

.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; }

/* ---------- Game guide (marketing) pages ---------- */
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding-bottom: 64px;
}
.guide-hero h1 {
  margin: 0;
  font-family: "Book Antiqua", "Palatino Linotype", "Noto Serif KR", serif;
  font-size: clamp(2.7rem, 7.4vw, 6.2rem);
  line-height: .95;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.guide-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.guide-tags li { padding: 3px 11px; border: 1px solid var(--ink); border-radius: 999px; background: var(--panel); font-size: .78rem; font-weight: 900; letter-spacing: .04em; }
.guide-hero .fact-list { margin-top: 26px; }

.guide-hero-visual { display: grid; gap: 34px; }
.guide-art { position: relative; margin: 0; }
.guide-art::before { content: ""; position: absolute; inset: -12px 16px 12px -12px; border: 1px solid var(--ink); background: var(--gold); }
.guide-art img { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--ink); box-shadow: var(--shadow); }

.qr-ticket {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  border: 2px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.qr-ticket.is-hero { width: calc(100% - 10px); }
.qr-ticket:hover, .qr-ticket:focus-visible { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--accent); outline: none; }
.qr-ticket-code { display: block; width: 128px; padding: 8px; border: 1px solid var(--line); background: #fff; }
.qr-ticket-code svg { display: block; width: 100%; height: auto; }
.qr-ticket-copy { display: grid; gap: 3px; min-width: 0; padding-left: 16px; border-left: 2px dashed var(--line); }
.qr-ticket-copy small { color: var(--accent); font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
.qr-ticket-copy strong { font-family: "Book Antiqua", "Palatino Linotype", "Noto Serif KR", serif; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.25; letter-spacing: -.02em; }
.qr-ticket-copy em { color: var(--muted); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .74rem; font-style: normal; line-height: 1.45; }
.qr-ticket-copy b { margin-top: 6px; color: var(--teal); font-size: .88rem; }

.guide-toc {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 14px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.guide-toc::-webkit-scrollbar { display: none; }
.guide-toc span { flex: 0 0 auto; margin-right: 6px; color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.guide-toc a { flex: 0 0 auto; padding: 5px 12px; border: 1px solid var(--line); background: var(--panel); font-size: .84rem; font-weight: 800; text-decoration: none; white-space: nowrap; transition: border-color .15s ease, color .15s ease; }
.guide-toc a:hover, .guide-toc a:focus-visible { border-color: var(--ink); color: var(--accent); }

.guide-blocks { display: grid; }
.guide-block { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 28px; padding: 46px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.guide-block-head { display: contents; }
.guide-block-no {
  color: transparent;
  font-family: "Book Antiqua", "Palatino Linotype", serif;
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: .9;
  -webkit-text-stroke: 1.5px var(--accent);
}
.guide-block h2 { grid-column: 2; grid-row: 1; margin: 0 0 16px; font-family: "Book Antiqua", "Palatino Linotype", "Noto Serif KR", serif; font-size: clamp(1.65rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; }
.guide-block-body { grid-column: 2; grid-row: 2; max-width: 860px; }
.guide-block-no { grid-column: 1; grid-row: 1 / span 2; }
.guide-block-body p { margin: 0 0 14px; color: #38423f; font-size: 1.04rem; }

.guide-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: none; }
.guide-steps li { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px 18px 18px; border: 1px solid var(--ink); background: var(--panel); box-shadow: 4px 4px 0 rgba(24, 33, 31, .14); }
.guide-step-no { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border: 1px solid var(--ink); border-radius: 50%; background: var(--gold); font-weight: 900; }
.guide-steps strong { font-size: 1.02rem; line-height: 1.3; }
.guide-steps li > span:last-child { color: var(--muted); font-size: .94rem; line-height: 1.6; }

.guide-points { display: grid; gap: 0; margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.guide-points li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.guide-points li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 10px; height: 10px; border: 1px solid var(--ink); background: var(--teal); transform: rotate(45deg); }


.guide-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 64px; }
.guide-note { padding: 24px 26px; border: 1px solid var(--ink); background: var(--panel); }
.guide-note h2 { margin: 0 0 12px; font-family: "Book Antiqua", "Palatino Linotype", "Noto Serif KR", serif; font-size: 1.45rem; letter-spacing: -.03em; }
.guide-note p { margin: 0 0 10px; color: #46504d; font-size: .95rem; }
.guide-note ul { margin: 0; padding-left: 1.2rem; }
.guide-note a { color: var(--teal); font-weight: 800; text-underline-offset: 4px; }

.guide-related { margin-top: 64px; padding-top: 40px; border-top: 2px solid var(--ink); }
.guide-related h2 { margin: 0 0 22px; font-family: "Book Antiqua", "Palatino Linotype", "Noto Serif KR", serif; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.035em; }
.guide-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guide-related-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--ink); background: var(--panel); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.guide-related-card:hover, .guide-related-card:focus-visible { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.guide-related-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--ink); }
.guide-related-card span { display: grid; gap: 4px; padding: 14px 16px 16px; }
.guide-related-card strong { font-size: 1.05rem; }
.guide-related-card small { color: var(--muted); font-size: .86rem; line-height: 1.5; }

.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; }

.lang-switch-wrap {
  position: relative;
  display: inline-block;
  align-self: center;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.lang-switch-btn:hover {
  background: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.lang-switch-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 120;
  min-width: 104px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--ink);
}

.lang-menu.hidden {
  display: none;
}

.lang-option {
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.lang-option a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  color: inherit;
  text-decoration: none;
}

.lang-option:hover,
.lang-option:focus-within {
  background: #ede6d8;
}

.lang-option.is-active a {
  color: var(--accent);
  font-weight: 900;
}

.lang-option.is-active a::after {
  content: "✓";
  margin-left: 8px;
  font-size: 0.82rem;
}

/* 공통 피드백 위젯: 테스터 피드백 수집용이므로 한글 모드가 아닐 때는 숨김 */
html:not([lang="ko"]) [data-common-feedback-widget],
[lang="en"] [data-common-feedback-widget] {
  display: none !important;
}

@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; }
  .guide-hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
  .guide-hero-visual { max-width: 620px; padding-bottom: 0; }
  .guide-toc { flex-wrap: nowrap; overflow-x: auto; }
  .guide-block { grid-template-columns: 1fr; grid-template-rows: none; padding: 34px 0; }
  .guide-block-no, .guide-block h2, .guide-block-body { grid-column: 1; grid-row: auto; }
  .guide-block-no { font-size: 2.6rem; margin-bottom: 6px; }
  .guide-related-grid { grid-template-columns: 1fr; }
  .guide-related-card { grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: none; }
  .guide-related-card img { height: 100%; border-right: 1px solid var(--ink); border-bottom: 0; }
}

@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; }
  .guide-hero h1 { font-size: clamp(2.3rem, 12vw, 3.6rem); }
  .guide-hero .fact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-hero .fact-list .fact-wide { grid-column: 1 / -1; }
  .qr-ticket { gap: 12px; padding: 12px; }
  .qr-ticket-code { width: 92px; }
  .qr-ticket-copy { padding-left: 12px; }
  .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; }
}
