/* 서체 = 앱 번들 폰트(lib/core/design/app_theme.dart AppFont: display Jua · body GowunDodum).
   앱 assets/fonts/*.ttf 를 무손실 woff2 로 컨테이너만 바꿔 자체 호스팅(SIL OFL 1.1, Reserved Font Name 없음). */
@font-face {
  font-family: "Jua";
  src: url("fonts/Jua-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GowunDodum";
  src: url("fonts/GowunDodum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #141a33;
  --ink: #f2e8d5;
  --muted: #b7b9cf;
  --accent: #e3a72f;
  --accent-strong: #f7efc9;
  --on-accent: #1e1a17;
  --red: #b8322a;
  --orb: #4fd1b5;
  --surface: #1b2242;
  --surface-soft: #1f2a44;
  --line: #3a4675;
  --shadow: 0 14px 36px rgb(11 14 30 / 45%);
  --display: "Jua", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --body: "GowunDodum", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -8%, rgb(247 239 201 / 12%), transparent 36rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
}

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

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

.site-header {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero img.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 640px;
  margin: 0 auto 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px;
}

.store-badge img {
  display: block;
  height: 40px;
  width: auto;
}

.notice {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 640px;
  margin: 0 auto 28px;
}

.notice strong {
  color: var(--ink);
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

section h2 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

section > p.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 28px;
}

.loop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.loop-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.loop-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--red);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.loop-step h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.loop-step p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.shots figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
}

.shots figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 16.5px;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.principles {
  display: grid;
  gap: 12px;
}

.principle {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.principle strong {
  display: block;
  margin-bottom: 4px;
}

.principle span {
  color: var(--muted);
  font-size: 14px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.faq-list p {
  color: var(--ink);
  margin: 10px 0 0;
  font-size: 14px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card a {
  font-size: 18px;
  font-weight: 700;
}

.support-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.support-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.support-form select,
.support-form input,
.support-form textarea {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}

.support-form button {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.support-form button:hover {
  background: var(--accent-strong);
}

.support-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

#form-status {
  font-size: 13.5px;
  color: var(--muted);
  min-height: 1.2em;
  margin: 0;
}

.policy h2 {
  margin-top: 36px;
}

.policy h2:first-of-type {
  margin-top: 0;
}

.policy p,
.policy li {
  color: var(--ink);
  font-size: 15px;
}

.table-scroll {
  overflow-x: auto;
  margin: 12px 0;
  -webkit-overflow-scrolling: touch;
}

.policy table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}

.policy th,
.policy td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
}

.policy th {
  background: var(--surface-soft);
  color: var(--ink);
}

.meta-date {
  color: var(--muted);
  font-size: 13.5px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer .privacy-link {
  font-weight: 700;
  color: var(--accent);
}

footer a {
  color: var(--muted);
}

footer .trademark {
  font-size: 11.5px;
  color: var(--muted);
  opacity: 0.8;
  margin-top: 8px;
}

/* Breadcrumb — 화면 표시와 BreadcrumbList 스키마를 1:1로 맞춘다. */
.breadcrumb { font-size: 13px; line-height: 1.5; }
.breadcrumb ol {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  opacity: .7;
}
.breadcrumb li + li::before { content: "/"; opacity: .5; margin-right: 6px; }
.breadcrumb a { color: inherit; }

/* 귀신 소탕전 — 무기·귀신·맵 이름 칩 */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chips span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 13px;
  color: var(--ink);
}

/* 제목·버튼·숫자 = 앱 display(Jua). 두 서체 모두 굵기가 하나뿐이라 가짜 볼드를 만들지 않게 400 으로 둔다. */
h1, h2, h3, .brand, .btn, .support-form button, .loop-step .num {
  font-family: var(--display);
  font-weight: 400;
}
