:root {
  color-scheme: only light;
  --bg: #fbfaf7;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #f3f4f7;
  --surface-translucent: rgba(255, 255, 255, 0.94);
  --text: #1b1d24;
  --muted: #545a67;
  --dim: #6d7381;
  --line: rgba(24, 26, 34, 0.12);
  --line-strong: rgba(24, 26, 34, 0.26);
  --focus: #1b1d24;
  --accent: #6b28c9;
  --accent-strong: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.12);
  --on-accent: #ffffff;
  --danger: #c62828;
  --danger-soft: rgba(198, 40, 40, 0.1);
  --warning: #b45309;
  --warning-soft: rgba(180, 83, 9, 0.12);
  --success: #15803d;
  --success-soft: rgba(21, 128, 61, 0.12);
  --info: #1d4ed8;
  --info-soft: rgba(29, 78, 216, 0.1);
  --overlay: rgba(24, 26, 34, 0.46);
  --shadow: 0 12px 32px rgba(24, 26, 34, 0.1);
  --hc-bg: #ffffff;
  --hc-surface-soft: #f2f2f2;
  --hc-text: #000000;
  --hc-accent: #003b80;
  --hc-focus: #005fcc;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --touch: 44px;

  /* v9 어트랙션 브랜드 5색. colors.js와 함께만 관리한다. */
  --brick-red: #b23a2b;
  --brick-red-ink: #8e2a1c;
  --brick-red-soft: rgba(178, 58, 43, 0.12);
  --metal-silver: #b7bec9;
  --metal-silver-ink: #4a5361;
  --metal-silver-soft: rgba(90, 100, 115, 0.14);
  --forest-green: #2e8b57;
  --forest-green-ink: #1b6b41;
  --forest-green-soft: rgba(46, 139, 87, 0.12);
  --sunset-orange: #f07a2a;
  --sunset-orange-ink: #9a4708;
  --sunset-orange-soft: rgba(240, 122, 42, 0.14);
  --neon-purple: #9b4dff;
  --neon-purple-ink: #6522c4;
  --neon-purple-soft: rgba(155, 77, 255, 0.12);

  /* 스팟 미션·컬러 슬롯·컬러 헌팅 전용 5색. */
  --hunt-red: #d84a3a;
  --hunt-red-ink: #9a2d21;
  --hunt-red-soft: rgba(216, 74, 58, 0.12);
  --hunt-blue: #3478d4;
  --hunt-blue-ink: #1f559e;
  --hunt-blue-soft: rgba(52, 120, 212, 0.12);
  --hunt-green: #2e8b57;
  --hunt-green-ink: #1b6b41;
  --hunt-green-soft: rgba(46, 139, 87, 0.12);
  --hunt-orange: #f07a2a;
  --hunt-orange-ink: #9a4708;
  --hunt-orange-soft: rgba(240, 122, 42, 0.14);
  --hunt-purple: #9b4dff;
  --hunt-purple-ink: #6522c4;
  --hunt-purple-soft: rgba(155, 77, 255, 0.12);
  /* 구 컴포넌트의 시각 표현을 유지하는 호환 별칭. */
  --energy-red: var(--hunt-red);
  --energy-red-ink: var(--hunt-red-ink);
  --energy-red-soft: var(--hunt-red-soft);
  --energy-blue: var(--hunt-blue);
  --energy-blue-ink: var(--hunt-blue-ink);
  --energy-blue-soft: var(--hunt-blue-soft);
  --energy-green: var(--hunt-green);
  --energy-green-ink: var(--hunt-green-ink);
  --energy-green-soft: var(--hunt-green-soft);
  --energy-orange: var(--hunt-orange);
  --energy-orange-ink: var(--hunt-orange-ink);
  --energy-orange-soft: var(--hunt-orange-soft);
  --energy-purple: var(--hunt-purple);
  --energy-purple-ink: var(--hunt-purple-ink);
  --energy-purple-soft: var(--hunt-purple-soft);
  --energy-spectrum: conic-gradient(
    from 20deg,
    var(--energy-red),
    var(--energy-blue),
    var(--energy-green),
    var(--energy-orange),
    var(--energy-purple),
    var(--energy-red)
  );
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 90% 2%, var(--energy-purple-soft), transparent 20%),
    radial-gradient(circle at 2% 76%, var(--energy-green-soft), transparent 21%),
    var(--bg);
  color: var(--text);
  box-shadow: none;
  accent-color: var(--accent-strong);
}
body.large-text { font-size: 112.5%; }
body.high-contrast {
  --bg: var(--hc-bg);
  --bg-elevated: var(--hc-bg);
  --surface: var(--hc-bg);
  --surface-strong: var(--hc-bg);
  --surface-soft: var(--hc-surface-soft);
  --surface-translucent: var(--hc-bg);
  --text: var(--hc-text);
  --muted: var(--hc-text);
  --dim: var(--hc-text);
  --line: var(--hc-text);
  --line-strong: var(--hc-text);
  --focus: var(--hc-focus);
  --accent: var(--hc-accent);
  --accent-strong: var(--hc-text);
  --accent-soft: var(--hc-surface-soft);
  --danger: var(--hc-text);
  --danger-soft: var(--hc-surface-soft);
  --warning: var(--hc-text);
  --warning-soft: var(--hc-surface-soft);
  --success: var(--hc-text);
  --success-soft: var(--hc-surface-soft);
  --info: var(--hc-text);
  --info-soft: var(--hc-surface-soft);
  --overlay: rgba(0, 0, 0, 0.62);
  --shadow: none;
  --energy-red: var(--hc-text);
  --energy-red-ink: var(--hc-text);
  --energy-red-soft: var(--hc-bg);
  --energy-blue: var(--hc-text);
  --energy-blue-ink: var(--hc-text);
  --energy-blue-soft: var(--hc-bg);
  --energy-green: var(--hc-text);
  --energy-green-ink: var(--hc-text);
  --energy-green-soft: var(--hc-bg);
  --energy-orange: var(--hc-text);
  --energy-orange-ink: var(--hc-text);
  --energy-orange-soft: var(--hc-bg);
  --energy-purple: var(--hc-text);
  --energy-purple-ink: var(--hc-text);
  --energy-purple-soft: var(--hc-bg);
  --energy-spectrum: var(--hc-text);
  --hunt-red: var(--hc-text);
  --hunt-red-ink: var(--hc-text);
  --hunt-red-soft: var(--hc-bg);
  --hunt-blue: var(--hc-text);
  --hunt-blue-ink: var(--hc-text);
  --hunt-blue-soft: var(--hc-bg);
  --hunt-green: var(--hc-text);
  --hunt-green-ink: var(--hc-text);
  --hunt-green-soft: var(--hc-bg);
  --hunt-orange: var(--hc-text);
  --hunt-orange-ink: var(--hc-text);
  --hunt-orange-soft: var(--hc-bg);
  --hunt-purple: var(--hc-text);
  --hunt-purple-ink: var(--hc-text);
  --hunt-purple-soft: var(--hc-bg);
}
body.low-stimulus *,
body.low-stimulus *::before,
body.low-stimulus *::after { animation: none !important; transition: none !important; }
body.low-power .glass { backdrop-filter: none; }
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { min-height: var(--touch); }
button { color: inherit; }
a { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
img, canvas, video { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.app-shell { min-height: 100dvh; }
body:is([data-page="park"], [data-page="attraction"], [data-page="colorHunting"], [data-page="hiddenMission"], [data-page="finish"]) .app-shell {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
.stack { display: grid; gap: 14px; }
.stack--lg { gap: 22px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }
.micro { color: var(--dim); font-size: 0.76rem; line-height: 1.55; }
.eyebrow { color: var(--accent); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.page { padding: 24px 18px calc(42px + env(safe-area-inset-bottom)); }
.page--narrow { max-width: 430px; margin: 0 auto; }
.page-title { font-size: clamp(1.8rem, 8vw, 2.65rem); font-weight: 950; line-height: 1.08; letter-spacing: -0.045em; }
.page-lead { margin-top: 10px; color: var(--muted); line-height: 1.7; }
.section-title { font-size: 1.3rem; font-weight: 900; letter-spacing: -0.025em; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: calc(60px + env(safe-area-inset-top));
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: end;
  padding: env(safe-area-inset-top) 8px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-translucent);
  backdrop-filter: blur(18px);
}
.topbar__title { align-self: center; overflow: hidden; text-align: center; font-size: 0.9rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn {
  width: var(--touch);
  height: var(--touch);
  display: inline-grid;
  place-items: center;
  align-self: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.iconbtn:hover { background: var(--surface-soft); }

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 0 18px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--accent-strong); color: var(--on-accent); box-shadow: 0 10px 24px var(--accent-soft); }
.btn--secondary { border-color: var(--line-strong); background: var(--surface-strong); color: var(--text); }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--text); }
.btn--danger { background: var(--danger); color: var(--on-accent); }
.btn--warning { background: var(--warning); color: var(--on-accent); }
.btn--block { width: 100%; }
.btn--small { min-height: var(--touch); padding-inline: 13px; font-size: 0.82rem; }
.text-button { min-height: var(--touch); border: 0; padding: 0 4px; background: transparent; color: var(--accent); font-weight: 800; cursor: pointer; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card--soft { box-shadow: none; background: var(--surface); }
.card--warning { border-color: var(--warning); background: var(--warning-soft); }
.card--success { border-color: var(--success); background: var(--success-soft); }
.card--danger { border-color: var(--danger); background: var(--danger-soft); }
.card h2, .card h3 { margin-bottom: 8px; }
.card p + p { margin-top: 8px; }
.card p, .card li { line-height: 1.65; }
.card ul { padding-left: 20px; }
.provisional { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 9px; border: 1px solid var(--warning); border-radius: 999px; background: var(--surface); color: var(--warning); font-size: 0.72rem; font-weight: 900; }
.status-pill { display: inline-flex; align-items: center; min-height: 30px; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 0.74rem; font-weight: 850; }
.status-pill[data-tone="success"] { border-color: var(--success); color: var(--success); }
.status-pill[data-tone="warning"] { border-color: var(--warning); color: var(--warning); }
.status-pill[data-tone="danger"] { border-color: var(--danger); color: var(--danger); }

.landing {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: calc(42px + env(safe-area-inset-top)) 22px calc(84px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 15% 8%, var(--energy-red-soft), transparent 26%),
    radial-gradient(circle at 88% 20%, var(--energy-orange-soft), transparent 25%),
    radial-gradient(circle at 50% 85%, var(--energy-purple-soft), transparent 34%);
}
.landing__brand { text-align: center; }
.landing__title { font-size: clamp(2.45rem, 13vw, 4rem); font-weight: 950; line-height: 0.98; letter-spacing: -0.06em; }
.landing__title span { display: block; color: var(--accent); }
.landing__info-link { position: absolute; right: 22px; bottom: calc(18px + env(safe-area-inset-bottom)); left: 22px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.fact-list { display: grid; gap: 12px; }
.fact-list div { display: grid; grid-template-columns: minmax(80px, 0.34fr) 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fact-list dt { color: var(--muted); font-size: 0.8rem; font-weight: 800; }
.fact-list dd { line-height: 1.55; }

.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.stepper span { height: 5px; border-radius: 999px; background: var(--surface-soft); }
.stepper span.is-active, .stepper span.is-done { background: var(--accent-strong); }
.tutorial-card { min-height: 390px; display: grid; align-content: center; gap: 20px; text-align: center; }
.tutorial-card__icon { font-size: 3.2rem; }
.tutorial-card h1 { font-size: 2rem; }
.tutorial-card p { color: var(--muted); line-height: 1.75; }

.field { display: grid; gap: 7px; }
.field label, .fieldset-label { font-size: 0.82rem; font-weight: 850; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 11px 13px;
  background: var(--bg-elevated);
  color: var(--text);
}
.field textarea { min-height: 100px; resize: vertical; }
.field-error { color: var(--danger); font-size: 0.78rem; line-height: 1.45; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { min-height: 50px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; background: var(--surface); }
.choice input { width: 20px; height: 20px; min-height: 20px; }
.check-list { display: grid; gap: 10px; list-style: none; }
.check-item { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 10px; min-height: var(--touch); padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.check-item input { width: 21px; height: 21px; min-height: 21px; margin: 2px 0 0; }

.stampbar {
  position: sticky;
  top: calc(60px + env(safe-area-inset-top));
  z-index: 15;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-translucent);
  backdrop-filter: blur(16px);
}
.stampbar__head { margin-bottom: 8px; }
.stampbar__head strong { font-size: 0.82rem; }
.stampbar__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; list-style: none; }
.stampbar__stamp { min-width: 0; display: grid; justify-items: center; gap: 3px; color: var(--dim); font-size: 0.6rem; font-weight: 850; text-align: center; }
.stampbar__stamp span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 11px; background: var(--surface); }
.stampbar__stamp.is-earned { color: var(--stamp-ink); }
.stampbar__stamp.is-earned span:first-child { border-style: solid; border-color: var(--stamp-ink); background: var(--stamp-soft); }
.ops-banner { padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--info-soft); color: var(--text); line-height: 1.5; }
.ops-banner[data-tone="warning"] { background: var(--warning-soft); }
.ops-banner[data-tone="danger"] { background: var(--danger-soft); }
.ops-banner .micro, .card--success .micro { color: var(--muted); }
.demo-banner { position: fixed; inset: 0 0 auto; z-index: 60; width: 100%; max-width: 480px; min-height: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto; padding: 5px 12px; background: var(--warning); color: var(--on-accent); font-size: 0.74rem; font-weight: 950; text-align: center; }
.has-demo .app-shell { padding-top: 32px; }
.has-demo .topbar { top: 32px; }
.has-demo .stampbar { top: calc(92px + env(safe-area-inset-top)); }
.offline-badge { position: fixed; z-index: 55; right: max(12px, env(safe-area-inset-right)); bottom: calc(80px + env(safe-area-inset-bottom)); min-height: 34px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--surface-strong); box-shadow: var(--shadow); font-size: 0.72rem; font-weight: 850; }

.attraction-list { display: grid; gap: 14px; }
.attraction-card {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 174px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 21px;
  background: radial-gradient(circle at 88% 16%, var(--stamp-soft), transparent 42%), var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.attraction-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--stamp-base); }
.attraction-card__status { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 5px; color: var(--stamp-ink); font-size: 0.72rem; font-weight: 900; }
.attraction-card__color { margin-bottom: 7px; color: var(--stamp-ink); font-size: 0.74rem; font-weight: 950; }
.attraction-card__name { max-width: 100%; overflow-wrap: anywhere; font-size: 1.35rem; font-weight: 950; letter-spacing: -0.03em; }
.attraction-card__location { max-width: 100%; margin-top: 7px; overflow-wrap: anywhere; color: var(--stamp-ink); font-size: 0.78rem; font-weight: 850; line-height: 1.45; }

.panel-overlay, .modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  max-width: 480px;
  margin: 0 auto;
  background: var(--overlay);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.panel-overlay.is-open, .modal-overlay.is-open { opacity: 1; }
.panel { position: absolute; inset: 0 0 0 auto; width: min(92%, 420px); overflow-y: auto; padding: calc(30px + env(safe-area-inset-top)) 22px calc(30px + env(safe-area-inset-bottom)); border-left: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transform: translateX(100%); transition: transform 0.25s ease; }
.panel-overlay.is-open .panel { transform: none; }
.panel__close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.panel__symbol { width: 56px; height: 56px; display: grid; place-items: center; margin: 46px 0 14px; border: 2px solid var(--stamp-ink); border-radius: 17px; background: var(--stamp-soft); color: var(--stamp-ink); font-size: 1.7rem; }
.panel h2 { font-size: 1.8rem; line-height: 1.2; }
.panel__block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.panel__block h3 { margin-bottom: 7px; font-size: 0.82rem; }
.panel__block p { color: var(--muted); line-height: 1.7; }
.modal-overlay { display: grid; place-items: center; padding: 22px; }
.modal { width: 100%; max-width: 350px; border: 1px solid var(--line); border-radius: 22px; padding: 23px; background: var(--surface); box-shadow: var(--shadow); text-align: center; transform: scale(0.95); transition: transform 0.2s ease; }
.modal-overlay.is-open .modal { transform: none; }
.modal h2 { font-size: 1.2rem; }
.modal p { margin: 9px 0 20px; color: var(--muted); line-height: 1.6; }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.color-heading { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 14px; }
.color-heading > div:last-child { min-width: 0; }
.color-heading__mark { width: 60px; height: 60px; display: grid; place-items: center; border: 2px solid var(--stamp-ink); border-radius: 18px; background: var(--stamp-soft); color: var(--stamp-ink); font-size: 1.8rem; }
.color-heading h1 { font-size: 1.65rem; line-height: 1.2; }
.color-heading p { overflow-wrap: anywhere; line-height: 1.55; }
.color-hunting-mark, .hidden-mark { width: 60px; height: 60px; display: grid; place-items: center; border: 3px solid var(--surface); border-radius: 19px; box-shadow: 0 0 0 1px var(--line), var(--shadow); font-size: 1.75rem; }
.color-hunting-mark { background: var(--energy-spectrum); }
.hidden-mark { border-color: var(--surface); background: var(--accent-soft); color: var(--accent); }
.mission-location { border-color: var(--stamp-ink); background: radial-gradient(circle at 92% 8%, var(--stamp-soft), transparent 46%), var(--surface); }
.mission-location .split { flex-wrap: wrap; }
.mission-location__name { overflow-wrap: anywhere; color: var(--stamp-ink); font-size: 1.2rem; font-weight: 950; letter-spacing: -0.02em; }
.mission-flow { display: grid; gap: 10px; list-style: none; }
.mission-flow li { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 11px; }
.mission-flow li > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--stamp-ink); border-radius: 50%; background: var(--stamp-soft); color: var(--stamp-ink); font-size: 0.78rem; font-weight: 950; }
.mission-flow p { min-width: 0; overflow-wrap: anywhere; }
.compact-steps { counter-reset: compact-step; display: grid; gap: 9px; list-style: none; }
.compact-steps li { counter-increment: compact-step; min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; overflow-wrap: anywhere; }
.compact-steps li::before { content: counter(compact-step); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 0.72rem; font-weight: 950; }
.color-hunt-grid { display: grid; gap: 12px; list-style: none; }
.color-hunt-card { min-width: 0; display: grid; align-content: start; gap: 8px; overflow: hidden; border: 1px solid var(--line); border-top: 5px solid var(--stamp-base); border-radius: var(--radius-md); padding: 13px; background: radial-gradient(circle at 90% 5%, var(--stamp-soft), transparent 48%), var(--surface); box-shadow: var(--shadow); }
.color-hunt-card.is-ready { border-color: var(--stamp-ink); border-top-color: var(--stamp-base); }
.color-hunt-card > strong { overflow-wrap: anywhere; color: var(--stamp-ink); font-size: 1rem; }
.color-hunt-card > span { overflow-wrap: anywhere; color: var(--muted); font-size: 0.76rem; line-height: 1.45; }
.color-hunt-card .btn { min-width: 0; margin-top: 2px; padding-inline: 10px; overflow-wrap: anywhere; font-size: 0.78rem; }
.color-hunt-card__preview, .color-hunt-card__symbol { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--stamp-soft); }
.color-hunt-card__preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.color-hunt-card__symbol { display: grid; place-items: center; color: var(--stamp-ink); font-size: 2.35rem; }
.card .unlock-list { padding: 0; }
.unlock-list { display: grid; gap: 9px; list-style: none; }
.unlock-list li { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; padding: 10px 11px; background: var(--surface); overflow-wrap: anywhere; }
.unlock-list li > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-weight: 950; }
.unlock-list li.is-complete { border-color: var(--success); background: var(--success-soft); }
.unlock-list li.is-complete > span:first-child { border-color: var(--success); background: var(--success); color: var(--on-accent); }
.puzzle-placeholder { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 12px; border: 2px dashed var(--line-strong); border-radius: var(--radius-md); padding: 22px; background: linear-gradient(145deg, var(--surface), var(--accent-soft)); text-align: center; }
.puzzle-placeholder > span { width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); color: var(--accent); font-size: 1.8rem; font-weight: 950; }
.puzzle-placeholder p { max-width: 24rem; overflow-wrap: anywhere; color: var(--muted); }
.result-card { border-color: var(--stamp-ink); background: var(--stamp-soft); }
.safety-lock { position: fixed; inset: 0; z-index: 100; max-width: 480px; margin: 0 auto; display: grid; place-items: center; padding: 28px; background: var(--bg); text-align: center; }
.safety-lock__icon { font-size: 4rem; }
.safety-lock h2 { margin: 16px 0 8px; }
.safety-lock p { color: var(--muted); line-height: 1.7; }
.camera-preview { min-height: 220px; display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--bg-elevated); }
.camera-preview img { width: 100%; height: 100%; max-height: 340px; object-fit: contain; }

.score-total { font-size: 3rem; font-weight: 950; letter-spacing: -0.05em; }
.score-list { display: grid; gap: 8px; list-style: none; }
.score-list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.score-list strong { color: var(--accent); }
.finish-pass { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 28px; padding: 28px 20px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.finish-pass::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--energy-spectrum); }
.finish-pass__stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 24px 0; }
.finish-pass__stamp { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--stamp-ink); border-radius: 15px; background: var(--stamp-soft); color: var(--stamp-ink); font-size: 1.2rem; animation: stamp-pop 0.45s ease both; animation-delay: calc(var(--i) * 90ms); }
.verification-code { margin: 12px 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 2rem; font-weight: 950; letter-spacing: 0.12em; }
@keyframes stamp-pop { from { opacity: 0; transform: scale(0.7) rotate(-8deg); } to { opacity: 1; transform: none; } }

.setting-list { display: grid; gap: 10px; }
.setting-row { min-height: 62px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.setting-row label, .setting-row strong { font-weight: 850; }
.setting-row p { margin-top: 4px; color: var(--muted); font-size: 0.76rem; line-height: 1.45; }
.switch { width: 52px; height: 30px; min-height: 30px; appearance: none; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-soft); cursor: pointer; }
.switch::after { content: ""; display: block; width: 24px; height: 24px; margin: 2px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 4px var(--line-strong); transition: transform 0.18s ease; }
.switch:checked { background: var(--accent-strong); }
.switch:checked::after { transform: translateX(22px); }
.info-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; }
.info-nav a { flex: 0 0 auto; min-height: var(--touch); display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 13px; background: var(--surface); color: var(--text); font-size: 0.78rem; font-weight: 850; text-decoration: none; }
.policy-section { scroll-margin-top: 78px; }
.policy-section h2 { margin-bottom: 10px; }
.policy-section p, .policy-section li { color: var(--muted); line-height: 1.75; }
.policy-section ul { padding-left: 20px; }
.ops-grid { display: grid; gap: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { border: 1px solid var(--line); border-radius: 13px; padding: 12px 8px; background: var(--surface); text-align: center; }
.stat strong { display: block; font-size: 1.35rem; }
.stat span { color: var(--muted); font-size: 0.7rem; }

.bottom-nav { position: fixed; z-index: 40; inset: auto 0 0; max-width: 480px; min-height: calc(68px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; padding: 6px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--surface-translucent); backdrop-filter: blur(18px); }
.bottom-nav a { min-width: 0; display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 12px; color: var(--muted); font-size: 0.65rem; font-weight: 850; text-decoration: none; }
.bottom-nav a span:first-child { font-size: 1.15rem; }
.bottom-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--text); }
.emergency-btn { border: 1px solid var(--danger); background: var(--surface-strong); color: var(--danger); font-size: 0.72rem; font-weight: 950; }
.site-footer { padding: 24px 18px calc(86px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.73rem; line-height: 1.65; text-align: center; }

@media (min-width: 360px) {
  .color-hunt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 481px) {
  body { border-inline: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

#progressSyncStatus { position: fixed; z-index: 10000; top: 0; left: 0; right: 0; margin: 0; padding: 10px 16px; background: #fff1c2; color: #322600; font-size: 13px; text-align: center; }
