/* =========================================================
   교과서 여행 지도 — 디자인 시스템
   사진이 주인공인 디자인 · 큰 글씨 · 듣는 학습
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #2563eb; --navy: #0f172a; --ink: #1e293b; --sub: #475569;
  --line: #e2e8f0; --bg: #f8fafc; --card: #ffffff;
  --r: 16px; --shadow: 0 4px 24px rgba(2, 6, 23, .08);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', 'Malgun Gothic', -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------------- 상단바 ---------------- */
.topbar { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-ic { font-size: 30px; }
.brand-tx b { font-size: 17px; display: block; line-height: 1.2; }
.brand-tx small { font-size: 11px; color: var(--sub); }
.topnav { display: flex; gap: 6px; margin-left: auto; }
.nav-btn { border: none; background: transparent; font-size: 14px; font-weight: 600; color: var(--sub); padding: 9px 14px; border-radius: 12px; transition: .15s; }
.nav-btn.on, .nav-btn:hover { background: #eff6ff; color: var(--blue); }
.badge-bar { display: flex; align-items: center; gap: 8px; background: #fffbeb; border: 1px solid #fde68a; padding: 7px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.badge-bar b { background: #f59e0b; color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 12px; }

/* ---------------- 시네마틱 히어로 ---------------- */
.hero { position: relative; overflow: hidden; background: #05080f; perspective: 1100px; }
.hero-stage { position: absolute; inset: -4%; transform: scale(1.06); transition: transform .35s ease-out; will-change: transform; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.kb { animation-duration: 16s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
.kb-0 { animation-name: kbA; } .kb-1 { animation-name: kbB; } .kb-2 { animation-name: kbC; } .kb-3 { animation-name: kbD; }
@keyframes kbA { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2.2%, -1.4%); } }
@keyframes kbB { from { transform: scale(1.14) translate(1.8%, 1.2%); } to { transform: scale(1.03) translate(0, 0); } }
@keyframes kbC { from { transform: scale(1.04) translate(-1.5%, 1.2%); } to { transform: scale(1.15) translate(1.6%, -1.5%); } }
@keyframes kbD { from { transform: scale(1.12) translate(0, -1.8%); } to { transform: scale(1.02) translate(-1.2%, 1.0%); } }
.hero-vignette { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(3, 7, 18, .82) 0%, rgba(3, 7, 18, .55) 38%, rgba(3, 7, 18, .12) 70%, rgba(3, 7, 18, .35) 100%),
              radial-gradient(120% 90% at 50% 115%, rgba(3, 7, 18, .75), transparent 55%); }
.hero-shine { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shine::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 32%; left: -45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .09) 45%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, .09) 55%, transparent);
  transform: skewX(-14deg); animation: shineSweep 9s ease-in-out infinite; }
@keyframes shineSweep { 0%, 55% { left: -45%; } 85%, 100% { left: 125%; } }
.hero-in { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 86px 24px 96px; color: #fff; }
.hero-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .22em; color: #93c5fd; text-transform: uppercase; margin-bottom: 14px; animation: riseIn .9s ease both; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.22; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 4px 28px rgba(0, 0, 0, .55); animation: riseIn .9s .12s ease both; }
.grad-tx { background: linear-gradient(92deg, #ffffff, #93c5fd 45%, #fcd34d 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradFlow 7s ease infinite; }
@keyframes gradFlow { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hero p { font-size: clamp(15px, 2vw, 19px); margin-top: 16px; opacity: .92; max-width: 560px; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); animation: riseIn .9s .24s ease both; }
.hero-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; animation: riseIn .9s .36s ease both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.btn-hero { background: #fff; color: var(--navy); border: none; font-size: 16px; font-weight: 700; padding: 14px 26px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 32px rgba(0, 0, 0, .4); transition: .2s; }
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.btn-hero.speaking { background: #fef3c7; }
.btn-hero-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(10px); }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .22); }
.hero-loc { position: absolute; right: 26px; bottom: 56px; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: rgba(8, 14, 28, .45); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 18px; border-radius: 999px; backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.hero-loc.pop { animation: locPop .6s ease; }
@keyframes locPop { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
.loc-pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; display: flex; justify-content: center; gap: 9px; }
.hero-dot { position: relative; width: 22px; height: 4px; border-radius: 999px; border: none; background: rgba(255, 255, 255, .3); cursor: pointer; transition: .3s; padding: 0; }
.hero-dot::after { content: ''; position: absolute; top: -16px; bottom: -16px; left: -6px; right: -6px; }
.hero-dot.on { background: #fff; width: 38px; }
@media (prefers-reduced-motion: reduce) { .kb, .hero-shine::after, .grad-tx { animation: none !important; } }

/* ---------------- 지도 영역 ---------------- */
.map-section { max-width: 1280px; margin: 0 auto; padding: 24px 20px; }
.map-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 14px; }
.mode-toggle { display: flex; background: #e2e8f0; border-radius: 999px; padding: 4px; }
.mode-btn { border: none; background: transparent; padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--sub); transition: .15s; }
.mode-btn.on { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(2,6,23,.12); }
.grade-filter { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sub); }
.grade-filter select { font-family: inherit; font-size: 14px; font-weight: 600; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.map-wrap { display: grid; grid-template-columns: 1fr 440px; gap: 16px; height: 620px; }
#map { border-radius: var(--r); box-shadow: var(--shadow); z-index: 1; height: 100%; }

/* 지도 핀 (사진 원형) */
.pin-wrap { background: none; border: none; }
.pin { position: relative; width: 60px; text-align: center; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); transition: .15s; }
.pin:hover { transform: scale(1.12); }
.pin img, .pin-noimg { width: 54px !important; height: 54px !important; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff; margin: 0 auto; }
.pin-noimg { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; }
.pin span { display: inline-block; margin-top: 3px; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* ---------------- 상세 패널 ---------------- */
.region-panel { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow-y: auto; height: 100%; }
.panel-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--sub); text-align: center; font-size: 15px; gap: 12px; padding: 20px; }
.pe-ic { font-size: 44px; }
.panel-hero { position: relative; height: 230px; }
.panel-hero img, .panel-hero-noimg { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r) var(--r) 0 0; }
.panel-hero-noimg { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-size: 40px; font-weight: 800; }
.panel-hero-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,6,23,.75), transparent 55%); border-radius: var(--r) var(--r) 0 0; }
.panel-close { position: absolute; top: 12px; right: 12px; border: none; background: rgba(2,6,23,.55); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.panel-hero-tx { position: absolute; left: 18px; right: 18px; bottom: 14px; color: #fff; }
.panel-hero-tx h2 { font-size: 23px; font-weight: 800; }
.panel-hero-tx p { font-size: 13px; opacity: .92; }
.panel-media { display: flex; gap: 8px; padding: 14px 16px 4px; flex-wrap: wrap; }
.media-btn { flex: 1; min-width: 110px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: .15s; }
.media-btn:hover { border-color: var(--blue); color: var(--blue); }
.media-voice { background: var(--blue); color: #fff; border-color: var(--blue); }
.media-voice:hover { color: #fff; opacity: .92; }
.media-voice.speaking { background: #f59e0b; border-color: #f59e0b; }
.panel-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px 0; }
.panel-gallery figure { margin: 0; }
.panel-gallery img { width: 100%; height: 76px; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: .15s; }
.panel-gallery img:hover { transform: scale(1.04); }
.panel-gallery figcaption { font-size: 10.5px; color: var(--sub); text-align: center; margin-top: 3px; }
.panel-intro { padding: 14px 18px 4px; font-size: 14.5px; color: var(--ink); }
.panel-special { margin: 12px 16px 0; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.panel-special b { font-size: 13.5px; }
.panel-special p { color: #92400e; margin-top: 4px; }
.panel-sec { padding: 18px 16px 4px; }
.panel-sec h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 10px; }
.panel-sec h3 small { font-weight: 600; color: var(--sub); font-size: 12px; }
.subj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.chip-pkg { background: #fef3c7; color: #92400e; }
.link-item { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; }
.link-grade { flex-shrink: 0; color: #fff; font-size: 11px; font-weight: 800; border-radius: 8px; padding: 5px 8px; line-height: 1.2; text-align: center; }
.link-tx b { font-size: 13.5px; display: block; }
.link-tx p { font-size: 13px; color: var(--sub); margin-top: 2px; }
.link-tts { margin-left: auto; flex-shrink: 0; border: none; background: #e0e7ff; border-radius: 50%; width: 36px; height: 36px; font-size: 15px; }
.link-tts.speaking { background: #fde68a; }
.panel-none { color: var(--sub); font-size: 13.5px; background: var(--bg); border-radius: 12px; padding: 14px; }
.act-item { background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-size: 13.5px; }
.act-item .act-type { float: right; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.act-item b { font-size: 14.5px; }
.act-item small { color: var(--sub); }
.act-item p { color: var(--sub); font-size: 13px; margin-top: 4px; }
.course-line { position: relative; padding-left: 4px; }
.course-stop { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; }
.cs-time { flex-shrink: 0; width: 64px; font-size: 11.5px; font-weight: 800; color: var(--sub); padding-top: 3px; }
.cs-dot { flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.cs-tx b { font-size: 13.5px; }
.cs-tx p { font-size: 12.5px; color: var(--sub); }
.mission-list { padding-left: 4px; list-style: none; }
.mission-list li { font-size: 13.5px; padding: 7px 10px; background: var(--bg); border-radius: 10px; margin-bottom: 6px; }
.mission-list li::before { content: '📷 '; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 16px 8px; }
.btn { border: none; border-radius: 12px; font-size: 14px; font-weight: 700; padding: 12px 18px; transition: .15s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #f1f5f9; color: var(--sub); }
.btn-line { background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-size: 13px; padding: 10px 14px; }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.btn-quiz { background: linear-gradient(120deg, #7c3aed, #2563eb); color: #fff; width: 100%; font-size: 15px; padding: 14px; }
.btn-lg { width: 100%; font-size: 16px; padding: 15px; margin-top: 10px; }
.pkg-box { margin: 16px; background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1.5px solid #c7d2fe; border-radius: 16px; padding: 18px; }
.pkg-box h3 { font-size: 16px; }
.pkg-box > p { font-size: 13px; color: var(--sub); margin-top: 6px; }
.pkg-list { list-style: none; margin-top: 10px; font-size: 13px; }
.pkg-list li { padding: 2.5px 0; }
.pkg-buy { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.pkg-price { font-size: 26px; font-weight: 800; color: var(--navy); }
.pkg-price small { font-size: 14px; }
.pkg-paid { background: linear-gradient(135deg, #ecfdf5, #f0fdfa); border-color: #6ee7b7; }
.pkg-owned { background: #10b981; color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.pkg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pkg-world { background: linear-gradient(135deg, #fffbeb, #fff7ed); border-color: #fcd34d; }

/* ---------------- 지역 카드 그리드 ---------------- */
.region-cards { max-width: 1280px; margin: 0 auto; padding: 16px 20px 56px; }
.region-cards h2 { font-size: 23px; font-weight: 800; margin: 18px 0 16px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rcard { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: .18s; }
.rcard:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(2,6,23,.14); }
.rcard-img { position: relative; height: 150px; }
.rcard-img img, .rcard-noimg { width: 100%; height: 100%; object-fit: cover; }
.rcard-noimg { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.92); font-size: 26px; font-weight: 800; }
.rcard-stamp { position: absolute; top: 10px; right: 10px; font-size: 22px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.rcard-body { padding: 13px 15px 15px; }
.rcard-body h3 { font-size: 16px; font-weight: 800; }
.rcard-body p { font-size: 12.5px; color: var(--sub); margin-top: 3px; min-height: 34px; }
.rcard-meta { display: flex; gap: 6px; margin-top: 9px; }

/* ---------------- 교과서 탐색 ---------------- */
.cur-view, .trip-view { max-width: 1280px; margin: 0 auto; padding: 36px 20px 64px; }
.cur-head h1 { font-size: 30px; font-weight: 800; }
.cur-head p { color: var(--sub); margin: 8px 0 14px; font-size: 15px; }
.cur-head .btn-hero { background: var(--blue); color: #fff; font-size: 14px; padding: 11px 20px; box-shadow: none; }
.grade-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.gtab { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 20px; font-size: 14.5px; font-weight: 700; color: var(--sub); transition: .15s; }
.gtab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.cur-card { background: var(--card); border-radius: var(--r); border-top: 4px solid; box-shadow: var(--shadow); padding: 18px 20px; }
.cur-card h3 { font-size: 17px; font-weight: 800; }
.cur-card h3 small { display: block; font-size: 11px; color: var(--sub); font-weight: 500; margin-top: 2px; }
.cur-ov { font-size: 13.5px; color: var(--sub); margin: 8px 0 10px; }
.tts-mini { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.tts-mini.speaking { background: #fef3c7; border-color: #fcd34d; }
.cur-card details { margin-top: 12px; }
.cur-card summary { font-size: 13.5px; font-weight: 700; color: var(--blue); cursor: pointer; }
.unit-list { padding: 10px 0 0 22px; }
.unit-list li { margin-bottom: 8px; font-size: 13.5px; }
.unit-list li p { font-size: 12.5px; color: var(--sub); }
.cur-regions { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.cur-regions b { font-size: 13px; }
.cur-regions > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.region-chip { background: #fff; border: 1.5px solid; border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 700; transition: .15s; }
.region-chip:hover { transform: scale(1.06); }

/* ---------------- 내 여행 ---------------- */
.trip-badge { background: linear-gradient(120deg, #fffbeb, #fef3c7); border: 1.5px solid #fde68a; border-radius: var(--r); padding: 22px; text-align: center; margin-bottom: 28px; }
.tb-big { font-size: 30px; font-weight: 800; }
.trip-badge p { color: #92400e; font-size: 14px; margin-top: 6px; }
.trip-h2 { font-size: 19px; font-weight: 800; margin: 26px 0 14px; }
.stamp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.stamp { position: relative; text-align: center; cursor: pointer; opacity: .45; filter: grayscale(.9); transition: .18s; }
.stamp.got { opacity: 1; filter: none; }
.stamp:hover { transform: scale(1.06); }
.stamp img, .stamp-noimg { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto; border: 3px solid #fff; box-shadow: var(--shadow); }
.stamp span { display: block; font-size: 12px; font-weight: 700; margin-top: 6px; }
.stamp-date { position: absolute; top: -4px; right: 4px; background: #10b981; color: #fff; font-size: 9.5px; border-radius: 999px; padding: 2px 7px; }
.stamp-lock { position: absolute; top: 28px; left: 0; right: 0; font-size: 22px; }
.mycourse-list { margin-bottom: 16px; }
.mc-item { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; margin-bottom: 10px; }
.mc-num { background: var(--navy); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.mc-item img, .mc-noimg { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.mc-tx { flex: 1; min-width: 0; }
.mc-tx b { font-size: 14.5px; }
.mc-tx p { font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-go { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; }
.mc-del { border: none; background: #fee2e2; color: #b91c1c; border-radius: 50%; width: 34px; height: 34px; font-size: 13px; }

/* ---------------- 공통 체험처 (전국 공통 — 점선·회색 톤으로 지역특화와 구분) ---------------- */
.legend-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.legend-item { font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.legend-local { background: color-mix(in srgb, var(--c, #2563eb) 12%, white); color: var(--c, #2563eb); border: 1.5px solid var(--c, #2563eb); }
.legend-common { background: #f1f5f9; color: #475569; border: 1.5px dashed #94a3b8; }
.common-sec { background: #f8fafc; border-top: 2px dashed #cbd5e1; margin-top: 12px; padding-bottom: 14px; }
.common-note { font-size: 12.5px; color: var(--sub); margin-bottom: 10px; }
.common-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.common-card { background: #fff; border: 1.5px dashed #94a3b8; border-radius: 12px; padding: 10px 6px; text-align: center; transition: .15s; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.common-card:hover { border-color: var(--blue); border-style: solid; transform: translateY(-2px); }
.common-card .cc-ic { font-size: 22px; }
.common-card b { font-size: 11.5px; }
.common-card small { font-size: 10px; color: var(--sub); }
.common-card.sm { flex-direction: row; padding: 8px 10px; gap: 6px; }
.common-card.sm .cc-ic { font-size: 16px; }
.tag-common { background: #f1f5f9; color: #475569; border: 1px dashed #94a3b8; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.tag-local { background: #eff6ff; color: var(--blue); border: 1px solid var(--blue); font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.common-modal .cm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.common-modal .cm-head h3 { margin-bottom: 2px; }
.cm-theme { font-size: 12.5px; color: var(--sub); }
.cc-ic.big { font-size: 38px; }
.cm-tip { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 11px 14px; font-size: 13px; color: #92400e; margin: 12px 0; }

/* ---------------- 3D 교과서 책장 ---------------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 20px; padding: 10px 4px 26px; }
.book-slot { perspective: 1200px; }
.book { position: relative; width: 100%; aspect-ratio: 3 / 4; cursor: pointer; transform-style: preserve-3d; transition: transform .25s; }
.book:hover { transform: translateY(-6px) rotateZ(-1deg); }
.book-cover { position: absolute; inset: 0; z-index: 2; border-radius: 6px 14px 14px 6px;
  background: linear-gradient(135deg, var(--bc), color-mix(in srgb, var(--bc) 55%, #0f172a));
  box-shadow: inset 6px 0 10px -6px rgba(0,0,0,.5), 0 10px 24px rgba(2,6,23,.25);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transform-origin: left center; transition: transform .7s cubic-bezier(.4, 0, .2, 1); backface-visibility: hidden; }
.book.open .book-cover { transform: rotateY(-130deg); }
.bc-band { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.18); padding: 4px 0; }
.bc-ic { font-size: 44px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.bc-title { font-size: 22px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.bc-sub { font-size: 9.5px; opacity: .85; padding: 0 12px; text-align: center; }
.bc-pub { position: absolute; bottom: 12px; font-size: 9px; opacity: .75; letter-spacing: 1px; }
.book-page { position: absolute; inset: 0; border-radius: 6px 14px 14px 6px; background: repeating-linear-gradient(#fff, #fff 28px, #f1f5f9 29px); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; box-shadow: inset -4px 0 8px -4px rgba(0,0,0,.15); }
.bp-hint { font-size: 13px; font-weight: 700; color: var(--sub); }
.book.open .book-page .bp-hint::after { content: ' 👇 아래에 펼쳐졌어요!'; }
.book-detail { scroll-margin-top: 90px; }
.bd-card { background: #fff; border: 2px solid; border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 24px; margin-top: 6px; animation: bookopen .5s ease; }
@keyframes bookopen { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.bd-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.bd-head h3 { font-size: 19px; font-weight: 800; }
.bd-std { background: #f0fdf4; border: 1px solid #86efac; border-radius: 12px; padding: 12px 16px; font-size: 13px; margin: 12px 0; }
.bd-std ul { padding-left: 18px; margin-top: 6px; }
.bd-std li { margin: 3px 0; }
.bd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.bd-label { font-size: 13.5px; display: block; margin: 10px 0 8px; }
.bd-regions { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-region { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; transition: .15s; }
.bd-region:hover { transform: translateY(-3px); border-color: var(--blue); }
.bd-region img, .bd-noimg { width: 58px; height: 42px; border-radius: 8px; object-fit: cover; display: block; }
.bd-region span { font-size: 11px; font-weight: 700; }
.bd-commons { display: flex; flex-wrap: wrap; gap: 8px; }
.cur-disclaimer { font-size: 11px; color: var(--sub); margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }

/* ---------------- 참여하기 ---------------- */
.join-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 6px; }
.join-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; }
.join-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.join-card > p { font-size: 13px; color: var(--sub); margin-bottom: 12px; }
.join-card label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.join-card input, .join-card select, .join-card textarea { display: block; width: 100%; margin-top: 4px; font-family: inherit; font-size: 13.5px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.join-card textarea { resize: vertical; }
.join-card input:focus, .join-card select:focus, .join-card textarea:focus { outline: none; border-color: var(--blue); }
.join-privacy { font-size: 11px; color: var(--sub); margin: 6px 0 10px; }
.join-privacy a { color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.join-how { background: linear-gradient(135deg, #eff6ff, #f5f3ff); }
.how-list { list-style: none; }
.how-list li { font-size: 13px; padding: 7px 0; border-bottom: 1px dashed #c7d2fe; }
.how-list li:last-child { border-bottom: none; }
.review-list { margin-top: 12px; }
.review-item { background: var(--bg); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; font-size: 13px; }
.review-item p { color: var(--ink); margin: 3px 0; }
.review-item small { color: var(--sub); font-size: 11px; }

/* ---------------- 모달 공통 ---------------- */
.modal-bg { position: fixed; inset: 0; background: rgba(2, 6, 23, .65); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(4px); }
.modal { background: #fff; border-radius: 20px; padding: 26px; max-width: 520px; width: 100%; max-height: 88vh; overflow-y: auto; }
.modal h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.quiz-modal { text-align: center; }
.quiz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.quiz-num { background: #ede9fe; color: #7c3aed; font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.quiz-q { font-size: 19px; margin: 10px 0 18px; }
.quiz-opts { display: grid; gap: 9px; margin-bottom: 14px; }
.quiz-opt { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 16px; font-size: 15px; font-weight: 600; text-align: left; transition: .15s; }
.quiz-opt:hover:not(:disabled) { border-color: #7c3aed; background: #faf5ff; }
.quiz-opt.correct { border-color: #10b981; background: #ecfdf5; }
.quiz-opt.wrong { border-color: #ef4444; background: #fef2f2; }
.quiz-exp { font-size: 13.5px; padding: 11px 14px; border-radius: 12px; margin-bottom: 12px; }
.quiz-exp.ok { background: #ecfdf5; color: #065f46; }
.quiz-exp.no { background: #fef2f2; color: #991b1b; }
.quiz-result { font-size: 54px; }
.quiz-modal .btn { margin: 4px; }
.pay-modal { max-width: 560px; }
.pay-desc { font-size: 13.5px; color: var(--sub); }
.pay-includes { list-style: none; font-size: 13px; margin: 10px 0; }
.pay-includes li { padding: 2px 0; }
.pay-price { background: var(--bg); border-radius: 12px; padding: 12px 16px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.pay-price strong { font-size: 21px; }
.pay-test-notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; font-size: 12px; color: #92400e; padding: 10px 12px; margin: 10px 0; }
.pay-legal { font-size: 11.5px; color: var(--sub); margin-top: 10px; text-align: center; }
.pay-legal a { color: var(--blue); }
.legal-modal { max-width: 640px; }
.legal-body { font-size: 13px; color: var(--ink); max-height: 56vh; overflow-y: auto; padding-right: 8px; margin-bottom: 14px; }
.legal-body h4 { font-size: 13.5px; margin: 14px 0 4px; color: var(--navy); }
.legal-body p { margin-bottom: 6px; }
.legal-date { color: var(--sub); margin-top: 14px; }
.biz-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.biz-table th, .biz-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.biz-table th { background: var(--bg); width: 130px; }

/* ---------------- 슬라이드쇼 ---------------- */
.ss-overlay { position: fixed; inset: 0; background: #000; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ss-stage { width: 100%; height: 100%; position: absolute; inset: 0; }
.ss-img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 5s ease-in-out infinite alternate; }
.ss-noimg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 40px; font-weight: 800; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.ss-close { position: absolute; top: 18px; right: 18px; z-index: 3; border: none; background: rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 700; backdrop-filter: blur(6px); }
.ss-caption { position: absolute; bottom: 76px; z-index: 2; color: #fff; font-size: 21px; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.ss-progress { position: absolute; bottom: 52px; z-index: 2; display: flex; gap: 7px; }
.ss-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); }
.ss-dot.on { background: #fff; }
.ss-hint { position: absolute; bottom: 22px; z-index: 2; color: rgba(255,255,255,.75); font-size: 12.5px; }
.img-zoom { flex-direction: column; }
.zoom-fig { max-width: 92vw; max-height: 84vh; margin: 0; }
.zoom-fig img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: 12px; }
.zoom-fig figcaption { color: #fff; text-align: center; font-size: 15px; margin-top: 12px; }

/* ---------------- 토스트 ---------------- */
#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; padding: 13px 26px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; z-index: 4000; box-shadow: 0 8px 28px rgba(0,0,0,.3); max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 푸터 ---------------- */
#siteFooter { background: var(--navy); color: #cbd5e1; margin-top: 20px; }
.footer-in { max-width: 1280px; margin: 0 auto; padding: 36px 24px; }
.footer-brand { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-line { font-size: 12.5px; color: #94a3b8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 16px 0; }
.footer-links a { color: #e2e8f0; font-size: 13px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: 11.5px; color: #64748b; line-height: 1.7; }

/* ---------------- 반응형 ---------------- */
@media (max-width: 980px) {
  .map-wrap { grid-template-columns: 1fr; height: auto; }
  #map { height: 420px; }
  .region-panel { height: auto; max-height: none; }
  .region-panel:not(.open) { display: flex; min-height: 130px; }
  /* 모바일: 앱처럼 하단 탭바 */
  .topnav { position: fixed; bottom: 0; left: 0; right: 0; margin-left: 0; z-index: 1500; display: flex; justify-content: space-around; gap: 0;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(2, 6, 23, .1); }
  .nav-btn { font-size: 12px; padding: 10px 5px; flex: 1; min-width: 0; text-align: center; border-radius: 10px; white-space: nowrap; letter-spacing: 0; }
  body { padding-bottom: 70px; }
  .brand-tx small { display: none; }
  .badge-bar span { display: none; }
  .hero-in { padding: 52px 20px 72px; }
  .hero-loc { right: 14px; bottom: 44px; font-size: 11.5px; padding: 7px 14px; }
  .grade-filter { margin-left: 0; width: 100%; }
  .grade-filter select { flex: 1; }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .rcard-img { height: 110px; }
  .cur-grid { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
  .bd-cols { grid-template-columns: 1fr; }
  .common-grid { grid-template-columns: repeat(2, 1fr); }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .join-grid { grid-template-columns: 1fr; }
  .test-banner { flex-direction: column; text-align: center; gap: 8px; }
  .search-bar { width: 100%; }
}

/* ---------------- 온보딩 ---------------- */
.onboard-modal { text-align: center; max-width: 440px; }
.ob-ic { font-size: 52px; animation: obFloat 2.4s ease-in-out infinite; }
@keyframes obFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.onboard-modal p { font-size: 14px; color: var(--sub); margin: 8px 0 16px; }
.ob-grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.ob-grade { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 6px; font-size: 14px; font-weight: 700; transition: .15s; }
.ob-grade:hover { border-color: var(--blue); background: #eff6ff; color: var(--blue); transform: translateY(-2px); }

/* ---------------- 통합 검색 ---------------- */
.search-bar { position: relative; display: flex; align-items: center; min-width: 250px; flex: 1; max-width: 380px; }
.search-ic { position: absolute; left: 13px; font-size: 14px; pointer-events: none; }
.search-bar input { width: 100%; font-family: inherit; font-size: 13.5px; padding: 10px 14px 10px 36px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.search-bar input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #2563eb22; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 14px; box-shadow: 0 16px 48px rgba(2, 6, 23, .18); z-index: 600; max-height: 320px; overflow-y: auto; display: none; }
.search-results.open { display: block; }
.sr-item { display: block; width: 100%; text-align: left; border: none; background: #fff; padding: 10px 14px; border-bottom: 1px solid var(--bg); cursor: pointer; }
.sr-item:hover { background: #eff6ff; }
.sr-item b { font-size: 13.5px; margin-right: 6px; }
.sr-label { font-size: 10.5px; background: var(--bg); color: var(--sub); border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.sr-item p { font-size: 12px; color: var(--sub); margin-top: 2px; }
.sr-none { padding: 14px; font-size: 13px; color: var(--sub); }

/* ---------------- 광고 슬롯 ---------------- */
.ad-slot { position: relative; margin: 14px 0; border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); min-height: 90px; }
.ad-tag { position: absolute; top: 6px; right: 8px; font-size: 9px; font-weight: 800; color: #64748b; letter-spacing: .1em; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; z-index: 1; }
.ad-preview { display: flex; align-items: center; justify-content: center; }
.ad-preview p { font-size: 12px; color: var(--sub); padding: 30px 16px; text-align: center; }
.region-panel .ad-slot { margin: 14px 16px; }

/* ---------------- 게임화: 레벨·왕관 핀·데일리 ---------------- */
.lv-chip { background: linear-gradient(120deg, #7c3aed, #2563eb); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 9px; }
.pin-crown { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 17px; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); animation: obFloat 2.2s ease-in-out infinite; }
.pin.pin-done img, .pin.pin-done .pin-noimg { border-color: #fcd34d; box-shadow: 0 0 0 2px #f59e0b; }
.daily-card { display: flex; align-items: center; gap: 16px; cursor: pointer; margin: 6px 0 14px; padding: 22px 24px; border-radius: 18px;
  background-color: #0f172a; background-size: cover; background-position: center; color: #fff; box-shadow: 0 10px 32px rgba(2, 6, 23, .35); transition: .2s; }
.daily-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(2, 6, 23, .45); }
.daily-card .dc-tx { flex: 1; }
.dc-tag { display: inline-block; background: rgba(252, 211, 77, .95); color: #78350f; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 12px; margin-bottom: 7px; }
.daily-card b { display: block; font-size: 17px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.daily-card p { font-size: 12.5px; opacity: .88; margin-top: 3px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.daily-modal { text-align: center; }
.dm-img { width: calc(100% + 52px); margin: -26px -26px 14px; height: 170px; object-fit: cover; border-radius: 20px 20px 0 0; }
.dm-intro { font-size: 13.5px; color: var(--sub); margin: 8px 0 12px; }
.dm-mission { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; font-size: 13px; padding: 11px 14px; margin-bottom: 12px; }
.dm-quiz { background: var(--bg); border-radius: 14px; padding: 14px 16px; text-align: left; }
.dm-quiz > b { font-size: 13.5px; }
.dm-q { font-size: 14.5px; font-weight: 700; margin: 6px 0 10px; }
.dm-exp { font-size: 13px; padding: 0; margin-top: 8px; }
.dm-exp.ok { color: #065f46; } .dm-exp.no { color: #991b1b; }
.dm-actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }

/* ---------------- 여행 유형 테스트 ---------------- */
.test-banner { display: flex; align-items: center; gap: 16px; cursor: pointer; margin: 6px 0 18px; padding: 18px 22px; border-radius: 18px;
  background: linear-gradient(110deg, #0f172a, #1e3a8a 55%, #7c3aed); color: #fff; box-shadow: 0 10px 32px rgba(30, 58, 138, .35); transition: .2s; }
.test-banner:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(30, 58, 138, .45); }
.tb-emojis { font-size: 22px; letter-spacing: 2px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.test-banner .tb-tx { flex: 1; }
.test-banner .tb-tx b { font-size: 16.5px; }
.test-banner .tb-tx p { font-size: 12.5px; opacity: .85; margin-top: 2px; }
.tb-go { background: #fff; color: #1e3a8a; font-size: 13px; font-weight: 800; padding: 9px 18px; border-radius: 999px; white-space: nowrap; }
.test-modal { text-align: center; }
.test-result .tr-emoji { font-size: 58px; animation: obFloat 2.4s ease-in-out infinite; }
.tr-sub { font-size: 13px; color: var(--sub); margin-top: 6px; }
.tr-name { font-size: 24px; font-weight: 800; background: linear-gradient(92deg, #1e3a8a, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 4px 0 8px; }
.tr-desc { font-size: 13.5px; color: var(--ink); margin-bottom: 14px; }
.test-result .bd-regions { justify-content: center; margin: 10px 0 16px; }
.tr-share { display: flex; gap: 8px; justify-content: center; }
.tr-foot { font-size: 11.5px; color: var(--sub); margin-top: 12px; }

/* ---------------- ⚡ 스피드 퀴즈 (아케이드) ---------------- */
.speed-banner { display: flex; align-items: center; gap: 16px; cursor: pointer; margin: 6px 0 18px; padding: 18px 22px; border-radius: 18px;
  background: linear-gradient(110deg, #7c2d12, #b45309 50%, #f59e0b); color: #fff; box-shadow: 0 10px 32px rgba(180, 83, 9, .38); transition: .2s; }
.speed-banner:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(180, 83, 9, .5); }
.speed-banner .sp-emoji-sm { font-size: 26px; filter: drop-shadow(0 2px 5px rgba(0,0,0,.35)); animation: spPulse 1.4s ease-in-out infinite; }
.speed-banner .tb-tx { flex: 1; }
.speed-banner .tb-tx b { font-size: 16.5px; }
.speed-banner .tb-tx p { font-size: 12.5px; opacity: .9; margin-top: 2px; }
.sp-go { background: #fff; color: #b45309; }
@keyframes spPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ---------------- 📸 포토 퀴즈 (아케이드) ---------------- */
.photo-banner { display: flex; align-items: center; gap: 16px; cursor: pointer; margin: 6px 0 18px; padding: 18px 22px; border-radius: 18px;
  background: linear-gradient(110deg, #064e3b, #047857 50%, #10b981); color: #fff; box-shadow: 0 10px 32px rgba(6, 95, 70, .38); transition: .2s; }
.photo-banner:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(6, 95, 70, .5); }
.photo-banner .sp-emoji-sm { font-size: 26px; filter: drop-shadow(0 2px 5px rgba(0,0,0,.35)); animation: spPulse 1.4s ease-in-out infinite; }
.photo-banner .tb-tx { flex: 1; }
.photo-banner .tb-tx b { font-size: 16.5px; }
.photo-banner .tb-tx p { font-size: 12.5px; opacity: .9; margin-top: 2px; }
.pq-go { background: #fff; color: #047857; }

.speed-modal { text-align: center; }
.speed-modal .sp-emoji { font-size: 56px; animation: obFloat 2.4s ease-in-out infinite; }
.sp-desc { font-size: 13.5px; color: var(--sub); margin: 6px 0 12px; line-height: 1.55; }
.sp-best { font-size: 13.5px; color: #b45309; font-weight: 700; margin-bottom: 8px; }
.sp-hud { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sp-score { font-size: 17px; font-weight: 800; color: var(--ink); }
.sp-timer { font-size: 30px; font-weight: 900; color: #b45309; min-width: 56px; font-variant-numeric: tabular-nums; transition: color .2s, transform .2s; }
.sp-timer.danger { color: #dc2626; animation: spTick .6s ease-in-out infinite; }
@keyframes spTick { 0%,100% { transform: scale(1); } 50% { transform: scale(1.22); } }
.sp-combo { font-size: 17px; font-weight: 800; color: #ea580c; min-width: 56px; text-align: right; }
.sp-q { text-align: center; }
.sp-opt { text-align: center; }
.sp-result { display: flex; gap: 10px; justify-content: center; margin: 16px 0 6px; }
.sp-result div { background: #fff7ed; border: 1.5px solid #fed7aa; border-radius: 14px; padding: 12px 8px; flex: 1; }
.sp-result b { display: block; font-size: 24px; font-weight: 900; color: #b45309; }
.sp-result span { font-size: 11.5px; color: var(--sub); }
.sp-title { font-size: 14.5px; color: var(--ink); margin: 10px 0 14px; }
.sp-title b { color: #b45309; }

/* ---------------- 📱 PWA 설치 칩 ---------------- */
.pwa-chip { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2500;
  display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 8px 28px rgba(2, 6, 23, .35); cursor: pointer; animation: pwaUp .4s ease; }
.pwa-chip .pwa-x { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  background: rgba(255,255,255,.18); border-radius: 50%; font-size: 11px; }
@keyframes pwaUp { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 560px) {
  .speed-banner { flex-direction: column; text-align: center; gap: 8px; }
  .photo-banner { flex-direction: column; text-align: center; gap: 8px; }
}

/* ============ 무료 미션북 리드마그넷 (v7) ============ */
.btn-hero-gift { background: linear-gradient(135deg,#f59e0b,#e11d48); color:#fff; border:none; box-shadow:0 10px 32px rgba(225,29,72,.45); }
.btn-hero-gift:hover { filter:brightness(1.05); }

.mb-section { max-width: 1180px; margin: 30px auto 8px; padding: 0 18px; }
.mb-head { text-align:center; margin-bottom: 18px; }
.mb-eyebrow { display:inline-block; background:#fff7ed; color:#ea580c; font-weight:700; font-size:12px; letter-spacing:.5px; padding:5px 14px; border-radius:999px; border:1px solid #fed7aa; }
.mb-head h2 { font-size:26px; margin:10px 0 6px; }
.mb-head p { color:#475569; max-width:660px; margin:0 auto; line-height:1.7; font-size:14px; }
.mb-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:18px; }
.mb-card { display:flex; flex-direction:column; background:#fff; border:1px solid #e2e8f0; border-radius:16px; overflow:hidden; text-decoration:none; color:inherit; box-shadow:0 6px 20px rgba(2,6,23,.06); transition:.2s; }
.mb-card:hover { transform:translateY(-4px); box-shadow:0 14px 36px rgba(2,6,23,.14); border-color:var(--c,#e11d48); }
.mb-cover { height:120px; display:flex; align-items:center; justify-content:center; position:relative; color:#fff; }
.mb-kr { font-size:34px; font-weight:800; letter-spacing:-1px; }
.mb-pg { position:absolute; top:10px; right:12px; background:rgba(255,255,255,.2); border-radius:999px; padding:3px 10px; font-size:11px; font-weight:700; }
.mb-tx { padding:14px 16px; display:flex; flex-direction:column; gap:4px; }
.mb-tx b { font-size:15px; }
.mb-tx small { color:#64748b; font-size:12px; line-height:1.5; }
.mb-dl { margin-top:8px; color:var(--c,#e11d48); font-weight:700; font-size:13px; }
.mb-value-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:14px; }
.mb-value-grid div { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:13px 14px; }
.mb-value-grid b { display:block; color:#0f172a; font-size:13px; margin-bottom:3px; }
.mb-value-grid span { display:block; color:#64748b; font-size:12px; line-height:1.55; }

/* 패키지 박스 — 무료체험/준비중 */
.pkg-free { border:1.5px solid #fecdd3; background:linear-gradient(180deg,#fff,#fff7f8); }
.pkg-free-badge { display:inline-block; background:linear-gradient(135deg,#f59e0b,#e11d48); color:#fff; font-weight:700; font-size:12px; padding:5px 12px; border-radius:999px; margin-bottom:8px; }
.pkg-dl { background:linear-gradient(135deg,#e11d48,#9f1239)!important; }
.pkg-dl small { opacity:.85; font-weight:600; }
.pkg-free-note { font-size:12.5px; color:#64748b; line-height:1.6; margin-top:10px; }
.pkg-share { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.pkg-share .btn-line { flex:1; min-width:120px; text-align:center; text-decoration:none; }
.pkg-soon-tag { background:#f1f5f9; color:#64748b; font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px; margin-left:6px; }

@media (max-width: 760px) {
  .mb-grid { grid-template-columns:1fr; }
  .mb-value-grid { grid-template-columns:1fr 1fr; }
}

/* ============ v8 — 미션북 수집 게임화 + 소식받기 ============ */
.mb-progress { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; margin:6px 0 16px; background:#fff7ed; border:1px solid #fed7aa; border-radius:999px; padding:8px 16px; }
.mb-prog-tx { font-size:13px; color:#9a3412; font-weight:700; }
.mb-prog-tx b { color:#ea580c; }
.mb-dots { display:flex; gap:4px; }
.mb-dot { font-size:14px; filter:grayscale(1); opacity:.5; }
.mb-dot.on { filter:none; opacity:1; }
.mb-prog-hint { font-size:12px; color:#9a3412; }
.mb-passport { background:#fff!important; border:1.5px solid #e11d48!important; color:#e11d48!important; font-weight:700; padding:6px 14px; border-radius:999px; cursor:pointer; }
.mb-passport:hover { background:#fff1f2!important; }

.mb-sub { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; margin-top:18px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px; padding:14px 16px; }
.mb-sub-tx { font-weight:700; font-size:14px; color:#0f172a; }
.mb-sub select, .mb-sub input[type=email] { border:1px solid #cbd5e1; border-radius:8px; padding:9px 12px; font-size:13px; font-family:inherit; }
.mb-sub input[type=email] { min-width:200px; }
.mb-sub .btn-primary { padding:9px 18px; }
.mb-sub-note { text-align:center; font-size:11px; color:#64748b; margin-top:8px; }

@media (max-width:560px){
  .mb-sub { flex-direction:column; align-items:stretch; }
  .mb-sub select, .mb-sub input[type=email], .mb-sub .btn-primary { width:100%; }
  .mb-value-grid { grid-template-columns:1fr; }
}

/* ============ 유료 전환 전 신뢰·품질 강화 ============ */
.section-kicker { display:inline-flex; align-items:center; color:#0f766e; font-size:11.5px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.promise-section, .trust-section, .beta-section { max-width:1180px; margin:34px auto 0; padding:0 18px; }
.promise-head { max-width:760px; margin-bottom:18px; }
.promise-head h2, .trust-panel h2, .beta-copy h2 { font-size:28px; line-height:1.25; margin:8px 0 8px; color:#0f172a; letter-spacing:0; }
.promise-head p, .trust-panel p, .beta-copy p { color:#475569; font-size:14.5px; line-height:1.8; }
.promise-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.promise-card { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:18px; box-shadow:0 6px 20px rgba(2,6,23,.05); }
.promise-num { display:flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:#0f172a; color:#fff; font-size:13px; font-weight:800; margin-bottom:12px; }
.promise-card h3, .quality-card h3 { font-size:16px; margin-bottom:6px; color:#0f172a; }
.promise-card p, .quality-card p { color:#64748b; font-size:13px; line-height:1.7; }
.trust-section { background:#fff; border:1px solid #e2e8f0; border-radius:18px; padding:24px; box-shadow:0 8px 28px rgba(2,6,23,.06); }
.trust-panel { display:grid; grid-template-columns:1.1fr .9fr; gap:24px; align-items:center; }
.trust-metrics { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.trust-metrics div { background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:15px 14px; }
.trust-metrics b { display:block; color:#0f766e; font-size:26px; line-height:1.1; }
.trust-metrics span { color:#64748b; font-size:12px; font-weight:700; }
.quality-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px; }
.quality-card { background:linear-gradient(180deg,#ffffff,#f8fafc); border:1px solid #e2e8f0; border-radius:14px; padding:16px; }
.beta-section { display:grid; grid-template-columns:.9fr 1.1fr; gap:24px; align-items:start; background:#0f172a; color:#fff; border-radius:20px; padding:26px; box-shadow:0 14px 40px rgba(15,23,42,.18); }
.beta-section .section-kicker { color:#7dd3fc; }
.beta-copy h2 { color:#fff; }
.beta-copy p { color:#cbd5e1; }
.beta-form { display:grid; grid-template-columns:1fr 1fr; gap:10px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:16px; padding:16px; backdrop-filter:blur(10px); }
.beta-form label { display:flex; flex-direction:column; gap:5px; color:#e2e8f0; font-size:12px; font-weight:800; }
.beta-form input, .beta-form select, .beta-form textarea { width:100%; border:1px solid rgba(255,255,255,.24); border-radius:10px; background:#fff; color:#0f172a; font-family:inherit; font-size:13px; padding:10px 12px; }
.beta-wide, .beta-form .btn-primary, .beta-note { grid-column:1 / -1; }
.beta-form .btn-primary { min-height:44px; background:#0f766e; }
.beta-note { color:#94a3b8; font-size:11px; text-align:center; margin-top:2px; }

@media (max-width:900px){
  .promise-grid, .quality-grid { grid-template-columns:repeat(2,1fr); }
  .trust-panel, .beta-section { grid-template-columns:1fr; }
}
@media (max-width:560px){
  .promise-section, .trust-section, .beta-section { margin-top:24px; }
  .promise-head h2, .trust-panel h2, .beta-copy h2 { font-size:22px; }
  .promise-grid, .quality-grid, .trust-metrics, .beta-form { grid-template-columns:1fr; }
  .trust-section, .beta-section { border-radius:16px; padding:18px; }
}
/* ============ GEO/SEO 정적 FAQ 블록 (v9) ============ */
.seo-faq { background:#0f172a; color:#cbd5e1; padding:44px 18px; }
.seo-faq-in { max-width:820px; margin:0 auto; }
.seo-faq h2 { color:#fff; font-size:22px; margin:20px 0 8px; }
.seo-faq h2:first-child { margin-top:0; }
.seo-faq h3 { color:#fff; font-size:16px; margin:18px 0 4px; }
.seo-faq p { font-size:14px; line-height:1.8; margin:0 0 6px; color:#cbd5e1; }
.seo-faq strong { color:#fff; }
.seo-faq em { color:#fbbf24; font-style:normal; font-weight:600; }
.seo-faq-note { font-size:11px; color:#64748b; margin-top:22px; border-top:1px solid #1e293b; padding-top:14px; }
/* ============ v10 — 가독성·태블릿 반응형 + B2B 폼 ============ */
.join-b2b { border-color:#bfdbfe; background:linear-gradient(180deg,#fff,#eff6ff); }
.join-b2b h3 { color:#1e3a8a; }
@media (min-width:761px) and (max-width:1024px){
  .mb-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .mb-head h2 { font-size:21px; }
  .seo-faq { padding:34px 16px; }
  .seo-faq h2 { font-size:19px; }
  .hero-ctas { flex-direction:column; align-items:stretch; }
  .hero-ctas .btn-hero { width:100%; justify-content:center; }
  .btn-hero, .nav-btn, .panel-actions .btn, .pkg-dl, .mb-sub .btn-primary { min-height:44px; }
}
.panel-intro { line-height:1.85; }
/* ============ v11 — 화면 모드 토글 (모바일/PC 하이브리드) ============ */
.view-toggle{ display:none; }
@media (pointer:coarse){
  .view-toggle{ display:inline-flex; align-items:center; gap:6px; position:fixed; right:12px;
    bottom:calc(82px + env(safe-area-inset-bottom)); z-index:3000;
    background:#0f172a; color:#fff; border:none; border-radius:999px;
    font-family:Pretendard,'Malgun Gothic',sans-serif; font-size:13px; font-weight:700;
    padding:10px 16px; box-shadow:0 8px 24px rgba(2,6,23,.35); cursor:pointer; }
  .view-toggle:active{ transform:scale(.97); }
}
/* ============ v12 — 실시간 체험 연계 (Supabase) ============ */
.exp-sec h3 small{ color:#0f766e; font-weight:700; font-size:11px; }
.exp-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:8px; }
.exp-card{ display:flex; flex-direction:column; border:1px solid #e2e8f0; border-radius:12px; overflow:hidden; text-decoration:none; color:inherit; background:#fff; transition:transform .15s ease, box-shadow .15s ease; }
.exp-card:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(2,6,23,.1); }
.exp-img{ height:84px; background-size:cover; background-position:center; background-color:#e2e8f0; }
.exp-tx{ padding:8px 10px; }
.exp-tx b{ font-size:12.5px; display:block; line-height:1.4; }
.exp-meta{ display:flex; flex-wrap:wrap; gap:6px; margin-top:5px; font-size:10.5px; color:#64748b; }
.exp-cat{ color:#0f766e; font-weight:700; }
.exp-price{ color:#e11d48; font-weight:700; }
.exp-loading{ font-size:13px; color:#64748b; padding:10px 0; }
.exp-src{ font-size:10.5px; color:#64748b; margin-top:8px; }
@media(max-width:560px){ .exp-grid{ grid-template-columns:1fr; } }
/* ============ v13 — 체험 교육태그 + 홈 인기 체험 ============ */
.exp-tags{ margin-top:5px; }
.exp-tag{ background:#ecfdf5; color:#0f766e; border:1px solid #a7f3d0; border-radius:6px; padding:1px 7px; font-size:10px; font-weight:700; }
.exp-home{ max-width:1180px; margin:18px auto 0; padding:0 18px; }
.exp-home h2{ font-size:21px; margin:10px 0 2px; letter-spacing:-.01em; }
.exp-home-sub{ color:#64748b; font-size:13px; margin:0 0 6px; }
.exp-home .exp-grid{ grid-template-columns:repeat(4,1fr); }
.exp-home .exp-img{ height:96px; }
@media(max-width:900px){ .exp-home .exp-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .exp-home .exp-grid{ grid-template-columns:1fr; } }
/* ============ v14 — 체험 필터·더보기·카드 건수 배지 ============ */
.exp-filters{ display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 4px; }
.exp-chip{ border:1px solid #cbd5e1; background:#fff; color:#475569; border-radius:999px; padding:5px 12px; font-size:12px; font-weight:700; cursor:pointer; transition:.12s; }
.exp-chip.on{ background:#0f172a; color:#fff; border-color:#0f172a; }
.exp-chip-free.on{ background:#059669; border-color:#059669; }
.exp-more{ display:block; width:100%; margin-top:10px; border:1px dashed #cbd5e1; background:#f8fafc; color:#334155; border-radius:10px; padding:10px; font-size:13px; font-weight:700; cursor:pointer; }
.exp-more:hover{ background:#f1f5f9; }
.exp-none-f{ font-size:13px; color:#64748b; padding:12px 0; text-align:center; }
.rcard-expcount{ background:#ecfeff!important; color:#0e7490!important; }
/* ============ v15 — 교과매칭·지도표시·검색통합·우리동네 ============ */
.exp-subj{ background:#eff6ff; color:#1e40af; border:1px solid #bfdbfe; border-radius:6px; padding:1px 7px; font-size:10px; font-weight:700; margin-right:4px; }
.exp-chip-map{ border-color:#0f766e!important; color:#0f766e!important; }
.exp-home-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.exp-near-btn{ flex-shrink:0; background:#0f172a; color:#fff; border:none; border-radius:999px; padding:9px 16px; font-size:13px; font-weight:700; cursor:pointer; }
.exp-near-btn:hover{ filter:brightness(1.12); }
.sr-group{ font-size:11px; font-weight:800; color:#0f766e; padding:8px 14px 4px; border-top:1px solid #e2e8f0; }
.sr-exp .sr-item{ text-decoration:none; color:inherit; display:block; }
.near-modal{ max-width:760px; }
.near-sub{ font-size:13px; color:#64748b; margin:4px 0 12px; }
@media(max-width:560px){ .exp-home-head{ flex-direction:column; } .exp-near-btn{ width:100%; } }
/* ============ 회원·계정 시스템 (otn-account.js, AUTH_ENABLED=false 동안은 렌더 안 됨) ============ */
.acct-prompt-banner{ position:fixed; left:16px; right:16px; bottom:16px; z-index:1900; background:var(--navy,#0f172a); color:#fff; border-radius:16px; box-shadow:0 12px 32px rgba(2,6,23,.35); padding:14px 18px; animation:acctSlideUp .3s ease; }
@keyframes acctSlideUp{ from{ transform:translateY(30px); opacity:0; } to{ transform:translateY(0); opacity:1; } }
.acct-prompt-inner{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.acct-prompt-inner span{ font-size:13.5px; line-height:1.5; }
.acct-prompt-actions{ display:flex; gap:8px; flex-shrink:0; }
.acct-prompt-actions .btn-hero{ background:#2563eb; color:#fff; font-size:13px; padding:9px 16px; box-shadow:none; }
.acct-prompt-actions .btn-ghost{ background:rgba(255,255,255,.15); color:#fff; font-size:13px; padding:9px 14px; }
@media(max-width:560px){ .acct-prompt-inner{ flex-direction:column; align-items:stretch; text-align:center; } .acct-prompt-actions{ justify-content:center; } }
.acct-modal{ max-width:380px; text-align:left; }
.acct-sub{ font-size:13px; color:var(--sub,#64748b); margin:0 0 14px; }
.acct-input{ width:100%; border:1.5px solid var(--line,#e2e8f0); border-radius:10px; padding:11px 14px; font-size:14px; margin-bottom:12px; box-sizing:border-box; }
.acct-check{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--sub,#64748b); margin-bottom:8px; line-height:1.5; }
.acct-check input{ flex-shrink:0; }
.acct-submit{ width:100%; margin-top:10px; background:#2563eb; color:#fff; box-shadow:none; }
.acct-msg{ font-size:12.5px; color:#64748b; margin-top:10px; min-height:16px; }
/* ============ v19 — 패밀리 서비스 (함께 운영하는 서비스) ============ */
.fam-wrap{ background:#f8fafc; border-top:1px solid var(--line,#e2e8f0); padding:36px 20px; }
.fam-inner{ max-width:960px; margin:0 auto; text-align:center; }
.fam-title{ font-size:20px; font-weight:800; color:var(--navy,#0f172a); margin:0 0 6px; }
.fam-sub{ font-size:13px; color:var(--sub,#64748b); margin:0 0 18px; }
.fam-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.fam-card{ display:flex; flex-direction:column; gap:6px; align-items:flex-start; text-align:left; text-decoration:none; background:#fff; border:1px solid var(--line,#e2e8f0); border-radius:14px; padding:18px 20px; transition:.15s; }
.fam-card:hover{ border-color:#0f766e; box-shadow:0 8px 20px rgba(2,6,23,.08); transform:translateY(-2px); }
.fam-name{ font-size:15px; font-weight:800; color:var(--navy,#0f172a); }
.fam-desc{ font-size:13px; color:var(--sub,#64748b); line-height:1.5; }
.fam-go{ font-size:12px; font-weight:700; color:#0f766e; margin-top:4px; }
@media(max-width:560px){ .fam-grid{ grid-template-columns:1fr; } .fam-wrap{ padding:28px 16px; } }
