:root {
  color-scheme: light;
  --bg: #f4f1ed;
  --card: #fdfbfa;
  --surface-2: #ebe7e4;
  --ink: #110c09;
  --ink-soft: #524c48;
  --ink-faint: #938e8b;
  --line: #dcd6d2;
  --accent: #d7371d;
  --accent-soft: #fed7cf;
  --npc-1: #1a1512;
  --npc-2: #3c3733;
  --npc-3: #635c59;
  --npc-4: #857f7b;
  --shadow: 0 30px 70px -30px rgb(17 12 9 / 22%);
  --display: "Black Han Sans", "Apple SD Gothic Neo", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Gothic A1", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

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

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.2px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 20px;
  text-decoration: none;
}

.brand svg {
  flex-shrink: 0;
}

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

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

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

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

.hero {
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.3;
  margin: 0 0 18px;
  letter-spacing: 0.2px;
}

.hero p.lead {
  color: var(--ink-soft);
  font-size: clamp(15.5px, 2vw, 17.5px);
  max-width: 520px;
  margin: 0 0 28px;
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 15px;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 24px rgb(215 55 29 / 30%);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--ink);
}

/* 히어로 채팅 목업 — design/Game1.dc.html 축소 재현 */
.phone-mock {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  max-width: 420px;
  margin: 0 auto;
}

.phone-mock-npcs {
  display: flex;
  justify-content: space-between;
  padding: 0 4px 16px;
}

.npc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--display);
  font-size: 15px;
}

.phone-mock-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-row.is-user {
  justify-content: flex-end;
}

.chat-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  flex-shrink: 0;
}

.bubble {
  max-width: 76%;
  padding: 9px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
}

.chat-row.is-user .bubble {
  background: var(--ink);
  color: white;
  border-radius: 16px 16px 4px 16px;
}

.mock-caption {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  margin: 16px 0 0;
}

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

.section-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}

section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 10px;
}

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

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

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

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

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

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

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

.mode-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.mode-card.is-highlight {
  border-color: var(--ink);
}

.mode-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.mode-card h3 {
  font-family: var(--display);
  font-size: 18px;
  margin: 0 0 8px;
}

.mode-card p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 14px;
}

.mode-example {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.mode-example b {
  color: var(--ink);
}

.diff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.diff-pill {
  flex: 1 1 200px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.diff-pill .diff-label {
  display: inline-block;
  font-family: var(--display);
  font-size: 14px;
  margin-bottom: 6px;
}

.diff-pill .diff-label.is-easy { color: var(--ink-soft); }
.diff-pill .diff-label.is-normal { color: var(--ink); }
.diff-pill .diff-label.is-hard { color: var(--accent); }

.diff-pill p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

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

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

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

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
}

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

.contact-card-form {
  text-align: left;
}

.support-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

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

.support-form input,
.support-form select,
.support-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  width: 100%;
}

.support-form textarea {
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.support-form button {
  justify-self: start;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 11px 26px;
  font-family: var(--display);
  font-size: 14px;
  cursor: pointer;
}

.support-form button:hover {
  opacity: 0.92;
}

.support-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#form-status {
  font-size: 14px;
  margin: 0;
  min-height: 20px;
}

#form-status[data-state="ok"] {
  color: var(--accent);
}

#form-status[data-state="error"] {
  color: #b3261e;
}

.form-note {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 14px;
}

.policy h2 {
  font-family: var(--display);
  font-size: 19px;
  margin-top: 36px;
}

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

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

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

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

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

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

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

footer a {
  color: var(--ink-faint);
}

/* Breadcrumb — 화면 표시와 BreadcrumbList 스키마를 1:1로 맞춘다. */
.breadcrumb {
  font-size: 12px;
  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;
  color: var(--ink-faint);
}
.breadcrumb li + li::before {
  content: "/";
  opacity: 0.5;
  margin-right: 6px;
}
.breadcrumb a {
  color: inherit;
}
