:root {
  --ink: #102a43;
  --muted: #627d98;
  --line: #d9e2ec;
  --paper: #f6f8fb;
  --card: #ffffff;
  --blue: #137c8b;
  --blue-dark: #0b5866;
  --coral: #ee8068;
  --yellow: #f6c85f;
  --green: #2a9d8f;
  font-family: "DM Sans", "Gowun Dodum", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; border-bottom: 1px solid rgba(217,226,236,.8); background: rgba(255,255,255,.88); }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .15em; font-size: 14px; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; color: white; background: var(--coral); border-radius: 50%; font-size: 17px; }
.topbar-note { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--green); border-radius: 50%; }
.app-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 80px; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; min-height: 410px; }
.eyebrow { margin: 0 0 18px; color: var(--coral); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
h1 { max-width: 640px; margin: 0; font-family: "Gowun Dodum", serif; font-size: clamp(40px, 6vw, 75px); line-height: 1.08; letter-spacing: -.07em; }
h1 em { color: var(--blue); font-style: normal; }
.hero-copy { max-width: 540px; margin: 25px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-art { position: relative; height: 340px; overflow: hidden; border-radius: 38% 38% 38% 12px; background: linear-gradient(145deg, #bde8e3, #f9d486 57%, #ee8068); }
.hero-art:before, .hero-art:after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.32); }
.hero-art:before { width: 220px; height: 220px; top: -65px; right: -25px; }
.hero-art:after { width: 360px; height: 150px; bottom: -62px; left: -28px; background: rgba(16,42,67,.17); transform: rotate(-14deg); }
.art-card { position: absolute; left: 32px; bottom: 35px; z-index: 1; width: 200px; padding: 20px; color: var(--ink); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 15px 35px rgba(16,42,67,.12); }
.art-card strong { display: block; font-family: "Gowun Dodum", serif; font-size: 28px; }
.art-card span { color: var(--muted); font-size: 12px; }
.btn { border: 0; border-radius: 999px; padding: 14px 24px; font-weight: 700; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--ink); box-shadow: 0 8px 20px rgba(16,42,67,.18); }
.btn-secondary { color: var(--ink); background: #e5f2f1; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin: 35px 0 18px; }
.section-head h2 { margin: 0; font-family: "Gowun Dodum", serif; font-size: 28px; letter-spacing: -.04em; }
.section-head p { margin: 0; color: var(--muted); font-size: 13px; }
.destination-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.destination-card { min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); transition: .2s ease; }
.destination-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(16,42,67,.08); }
.destination-card .flag { font-size: 31px; }
.destination-card h3 { margin: 20px 0 4px; font-family: "Gowun Dodum", serif; font-size: 25px; }
.destination-card p { margin: 0; color: var(--muted); font-size: 13px; }
.search-wrap { display: flex; gap: 10px; margin: 22px 0 12px; }
.search-wrap input { flex: 1; min-width: 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; outline: none; background: white; }
.search-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,124,139,.12); }
.search-result { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 16px; margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.search-result strong { display: block; }
.search-result small { color: var(--muted); }
.setup-card { max-width: 730px; margin: 25px auto; padding: 35px; border: 1px solid var(--line); border-radius: 26px; background: white; }
.back-link { color: var(--muted); border: 0; background: transparent; padding: 0; }
.setup-card h1, .quiz-card h1 { margin: 12px 0; font-size: clamp(34px, 6vw, 56px); }
.setup-card p { color: var(--muted); line-height: 1.7; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0; }
.choice { padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; }
.choice.active { color: white; border-color: var(--blue); background: var(--blue); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.progress { height: 7px; margin: 14px 0 28px; overflow: hidden; border-radius: 99px; background: #e7edf2; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--coral); transition: width .3s ease; }
.quiz-card { max-width: 760px; margin: 25px auto; padding: clamp(24px, 5vw, 48px); border-radius: 28px; background: white; box-shadow: 0 20px 50px rgba(16,42,67,.07); }
.quiz-card .category { color: var(--coral); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.answers { display: grid; gap: 12px; margin: 30px 0; }
.answer { display: flex; align-items: center; gap: 15px; width: 100%; padding: 17px 18px; text-align: left; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: white; }
.answer:hover { border-color: var(--blue); background: #f3fbfa; }
.answer .letter { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 50%; color: var(--blue); background: #e5f2f1; font-weight: 700; }
.answer.correct { border-color: var(--green); background: #edf9f6; }
.answer.wrong { border-color: var(--coral); background: #fff1ed; }
.explanation { padding: 18px; margin: 15px 0 24px; color: var(--muted); border-left: 3px solid var(--yellow); background: #fffaf0; line-height: 1.65; }
.result-hero { text-align: center; padding: 25px 0 30px; }
.score-ring { display: grid; place-items: center; width: 148px; height: 148px; margin: 25px auto; border: 11px solid var(--yellow); border-radius: 50%; background: white; }
.score-ring strong { font-size: 34px; }
.score-ring small { color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.summary-card { padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.summary-card h3 { margin: 0 0 16px; font-family: "Gowun Dodum", serif; font-size: 22px; }
.fact { padding: 13px 0; border-bottom: 1px solid #edf1f4; color: var(--muted); line-height: 1.6; }
.fact:last-child { border: 0; }
.mini-progress { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #e7edf2; }
.mini-progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.timeline { border-left: 2px solid #bde8e3; padding-left: 18px; }
.timeline-item { position: relative; margin: 0 0 18px; }
.timeline-item:before { content: ""; position: absolute; left: -25px; top: 6px; width: 11px; height: 11px; border: 3px solid white; border-radius: 50%; background: var(--blue); }
.timeline-item strong { display: block; color: var(--blue); }
.timeline-item span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.source-link { color: var(--blue); font-size: 12px; text-decoration: none; }
.action-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 25px 0; }
.empty { padding: 25px 0; color: var(--muted); text-align: center; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 3; max-width: 320px; padding: 13px 17px; border-radius: 12px; color: white; background: var(--ink); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 760px) { .topbar { padding: 0 20px; } .topbar-note { display: none; } .app-shell { width: min(100% - 28px, 620px); padding-top: 35px; } .hero { grid-template-columns: 1fr; gap: 20px; } .hero-art { height: 230px; } .destination-grid, .summary-grid { grid-template-columns: 1fr; } .section-head { display: block; } .section-head p { margin-top: 6px; } .setup-card { padding: 25px 20px; } }
