:root { color-scheme: light; --ink:#2b1c19; --muted:#796862; --rose:#e85270; --rose-dark:#ce3e5b; --peach:#fff0e8; --cream:#fffaf5; --line:#eadbd4; --paper:#fffdfb; --green:#4d8c72; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust:100%; }
body { overflow-x:hidden; margin:0; min-height:100vh; background:radial-gradient(circle at 100% 0%,rgba(255,216,204,.56),transparent 34%),linear-gradient(180deg,#fff8f4 0%,#fffdfb 55%,#f8f0ea 100%); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif; -webkit-font-smoothing:antialiased; }
.shell { min-width:0; width:min(100%,480px); margin:0 auto; padding:22px 18px calc(44px + env(safe-area-inset-bottom)); }
.hero { min-height:100svh; display:flex; flex-direction:column; justify-content:center; padding-top:max(36px,env(safe-area-inset-top)); }
.topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.brand { display:inline-flex; align-items:center; gap:6px; color:var(--rose); font-size:18px; font-weight:900; letter-spacing:-.04em; text-decoration:none; }
.brand span { font-size:24px; transform:rotate(-22deg); }
.prototype-badge { border:1px solid var(--line); border-radius:99px; background:rgba(255,255,255,.68); color:var(--muted); padding:6px 10px; font-size:11px; font-weight:750; }
.eyebrow { margin:0 0 10px; color:var(--rose); font-size:14px; font-weight:800; letter-spacing:.02em; }
h1 { margin:0; font-size:clamp(34px,10vw,48px); line-height:1.13; letter-spacing:-.045em; }
h1 span { color:var(--rose); }
.lead,.intro>p:last-child { margin:18px 0 30px; color:var(--muted); line-height:1.7; }
.hero-mark { display:flex; align-items:center; justify-content:center; height:120px; margin-bottom:30px; }
.hero-mark span { display:grid; place-items:center; width:82px; height:82px; border:1px solid rgba(255,255,255,.8); border-radius:50%; background:linear-gradient(145deg,#ffd8ce,#ffb9c6); color:#8e3547; font-size:16px; font-weight:900; box-shadow:0 18px 38px rgba(186,92,103,.16); }
.hero-mark span:nth-child(2) { margin-left:-18px; background:linear-gradient(145deg,#ffe8ba,#ffc99e); color:#8a563a; }
.hero-mark span:nth-child(3) { width:94px; height:94px; margin-left:-18px; background:linear-gradient(145deg,#ef6d83,#d94162); color:white; font-size:18px; z-index:1; }
.hero-copy { text-align:center; }
.hero-action { margin-top:2px; }
.collection-link { display:block; margin-top:14px; color:var(--rose-dark); font-size:13px; font-weight:800; text-align:center; text-underline-offset:4px; }
.preview-note { display:flex; flex-direction:column; gap:5px; margin-top:22px; border:1px solid rgba(234,219,212,.75); border-radius:16px; background:rgba(255,255,255,.56); padding:14px 16px; color:var(--muted); font-size:12px; line-height:1.5; text-align:center; }
.preview-note strong { color:var(--ink); font-size:13px; }
.card { padding:26px 20px; border:1px solid rgba(234,219,212,.9); border-radius:26px; background:rgba(255,253,251,.94); box-shadow:0 16px 44px rgba(74,39,28,.075); }
.intro { margin-bottom:14px; }
.intro h1 { font-size:34px; }
.step-orb { display:grid; place-items:center; width:48px; height:48px; margin-bottom:18px; border-radius:15px; background:linear-gradient(145deg,#ff8ba0,var(--rose)); color:white; font-family:serif; font-size:22px; font-weight:800; box-shadow:0 9px 22px rgba(233,82,112,.2); transform:rotate(-3deg); }
.form-card { display:grid; gap:17px; }
.field-heading { display:flex; align-items:center; gap:9px; }
.field-heading>span { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:var(--peach); color:var(--rose-dark); font-size:12px; font-weight:900; }
.field-heading strong { font-size:17px; letter-spacing:-.025em; }
.form-divider { height:1px; margin:4px 0; background:var(--line); }
label { display:grid; gap:8px; font-size:15px; font-weight:800; }
label span { color:var(--muted); font-size:12px; font-weight:500; }
.field-note { margin:-9px 0 0; color:var(--muted); font-size:12px; line-height:1.55; }
input { width:100%; min-height:52px; border:1px solid var(--line); border-radius:14px; background:white; padding:0 14px; color:var(--ink); font:inherit; }
input:focus,select:focus { outline:3px solid rgba(233,95,117,.18); border-color:var(--rose); }
.picker-field { min-width:0; margin:0; border:0; padding:0; }
.picker-field legend { margin-bottom:8px; padding:0; font-size:15px; font-weight:800; }
.wheel-row { display:grid; min-width:0; grid-template-columns:1.2fr 1fr 1fr; gap:7px; }
.wheel-row label { position:relative; display:block; }
.wheel-row select { display:block; min-width:0; width:100%; height:48px; appearance:auto; border:1px solid var(--line); border-radius:12px; background:white; color:var(--ink); padding:0 4px; font:inherit; font-size:16px; font-weight:650; text-align:center; }
.time-wheel { grid-template-columns:repeat(2,1fr); }
.picker-hint { margin:7px 2px 0; color:var(--muted); font-size:11px; }
.sr-only { position:absolute!important; overflow:hidden; width:1px; height:1px; margin:-1px; padding:0; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.option-box { overflow:hidden; border:1px solid var(--line); border-radius:15px; background:var(--cream); }
.check { grid-template-columns:24px 1fr; align-items:center; gap:10px; min-height:48px; padding:0 13px; font-weight:650; }
.check+.check { border-top:1px solid var(--line); }
.check span { color:var(--ink); font-size:14px; font-weight:700; }
.check.sub-option { padding-left:28px; background:#fff6f1; }
.check input { width:22px; min-height:22px; accent-color:var(--rose); }
.primary { display:flex; min-height:56px; align-items:center; justify-content:center; gap:9px; border:0; border-radius:17px; background:linear-gradient(135deg,#ed607a,var(--rose-dark)); color:white; padding:0 20px; font-size:17px; font-weight:900; text-decoration:none; cursor:pointer; box-shadow:0 10px 24px rgba(206,62,91,.24); transition:transform .15s ease,box-shadow .15s ease; }
.primary:active { transform:translateY(1px); box-shadow:0 6px 14px rgba(206,62,91,.2); }
button.primary:disabled { opacity:.55; cursor:wait; }
.fine { margin:14px 0 0; color:var(--muted); font-size:12px; line-height:1.55; text-align:center; }
.privacy-note { display:flex; align-items:center; justify-content:center; gap:6px; margin:12px 0 0; color:var(--green); font-size:12px; font-weight:750; }
.privacy-note span { font-size:7px; }
.privacy-note.centered { margin:0; }
.hidden { display:none !important; }
.error { padding:14px 16px; border-radius:14px; background:#fff0f0; color:#a5303d; font-weight:700; }
.result { margin-top:14px; }
.result h2 { margin:0 0 8px; font-size:26px; }
.result-owner { margin:0 0 12px; color:var(--muted); font-size:13px; font-weight:800; text-align:center; }
.result-note { color:var(--muted); line-height:1.55; }
.character-card { position:relative; overflow:hidden; border-radius:24px; background:linear-gradient(145deg,#fff0e8 0%,#ffdbe2 58%,#ffc8d2 100%); padding:27px 18px 20px; text-align:center; box-shadow:0 16px 34px rgba(177,66,89,.14); }
.character-card::before,.character-card::after { content:""; position:absolute; border-radius:50%; background:rgba(255,255,255,.35); }
.character-card::before { width:130px; height:130px; top:-72px; left:-48px; }.character-card::after { width:90px; height:90px; right:-38px; bottom:90px; }
.character-kicker { position:relative; margin:0 0 13px; color:var(--rose-dark); font-size:12px; font-weight:900; letter-spacing:.05em; }
.character-symbol { position:relative; display:grid; place-items:center; width:64px; height:64px; margin:0 auto 14px; border:1px solid rgba(255,255,255,.8); border-radius:22px; background:rgba(255,255,255,.72); color:var(--rose-dark); font-family:serif; font-size:30px; font-weight:900; box-shadow:0 10px 25px rgba(177,66,89,.12); transform:rotate(-3deg); }
.character-card h2 { position:relative; margin:0; font-size:30px; line-height:1.18; letter-spacing:-.05em; }
.character-tagline { position:relative; margin:9px 0 0; color:#6d4549; font-size:14px; line-height:1.55; }
.character-tags { position:relative; display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:15px; }
.character-tags span { border:1px solid rgba(206,62,91,.15); border-radius:99px; background:rgba(255,255,255,.62); color:var(--rose-dark); padding:6px 9px; font-size:11px; font-weight:800; }
.social-role { position:relative; display:flex; flex-direction:column; gap:6px; margin-top:19px; border-radius:15px; background:rgba(255,255,255,.7); padding:13px; }
.social-role small { color:var(--muted); font-size:10px; }.social-role strong { font-size:13px; line-height:1.55; }
.primary-share { position:relative; border:0; background:var(--rose-dark); color:white; box-shadow:0 8px 20px rgba(177,66,89,.2); }
.share-nudge { position:relative; margin:9px 0 0; color:#8a5d61; font-size:10px; }
.pillars { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:20px; }
.pillar { padding:15px 4px; border:1px solid #f3ddd4; border-radius:17px; background:linear-gradient(180deg,#fff4ed,#ffebe3); text-align:center; }
.pillar small { display:block; color:var(--muted); margin-bottom:8px; }
.pillar strong { display:block; font-family:serif; font-size:24px; }
.pillar em { display:block; margin-top:3px; color:var(--muted); font-size:12px; font-style:normal; }
.candidate + .candidate { margin-top:24px; padding-top:24px; border-top:1px solid var(--line); }
.easy-reading { margin-top:18px; }
.easy-reading header { padding:10px 2px 15px; }
.easy-reading header span { color:var(--rose); font-size:11px; font-weight:850; }
.easy-reading header h3 { margin:5px 0 0; font-size:22px; line-height:1.35; letter-spacing:-.04em; }
.easy-reading article { display:grid; grid-template-columns:38px 1fr; gap:11px; margin-top:9px; border:1px solid var(--line); border-radius:16px; background:#fffaf7; padding:15px 13px; }
.easy-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:13px; background:var(--peach); color:var(--rose-dark); font-size:12px; font-weight:900; }
.easy-reading h4 { margin:1px 0 6px; font-size:14px; }
.easy-reading article p { margin:0; color:var(--muted); font-size:14px; line-height:1.75; word-break:keep-all; }
.raw-chart { margin-top:18px; border-top:1px solid var(--line); }
.raw-chart>summary { position:relative; padding:17px 38px 10px 2px; cursor:pointer; color:var(--muted); font-size:13px; font-weight:800; list-style:none; }
.raw-chart>summary::-webkit-details-marker { display:none; }.raw-chart>summary::after { content:"＋"; position:absolute; top:18px; right:4px; color:var(--rose); }.raw-chart[open]>summary::after { content:"−"; }
.raw-chart>summary span { display:block; margin-top:3px; font-size:10px; font-weight:500; }
.raw-chart>div>p { margin:10px 0 0; color:var(--muted); font-size:11px; text-align:center; }
.reading-disclaimer { margin:22px 0 0; border-left:3px solid var(--line); padding-left:11px; color:var(--muted); font-size:11px; line-height:1.6; }
.share-button { width:100%; min-height:52px; margin-top:20px; border:1px solid var(--rose); border-radius:15px; background:white; color:var(--rose-dark); font:inherit; font-size:15px; font-weight:850; }
.result-actions { margin-top:18px; text-align:center; }
.pdf-button { width:100%; min-height:50px; border:1px solid var(--ink); border-radius:15px; background:var(--ink); color:white; font:inherit; font-size:14px; font-weight:850; cursor:pointer; }
.result-actions small { display:block; margin-top:7px; color:var(--muted); font-size:10px; }
.loading-open { overflow:hidden; }
.loading-screen { position:fixed; z-index:20; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; background:radial-gradient(circle at 50% 35%,#fff0e8,#fffaf7 55%,#f8eee8); padding:28px; text-align:center; }
.loading-screen h2 { margin:0; font-size:25px; letter-spacing:-.04em; }
.loading-message { min-height:46px; margin:14px 0 22px; color:var(--muted); font-size:14px; line-height:1.6; }
.loading-orbit { position:relative; display:grid; place-items:center; width:112px; height:112px; margin-bottom:28px; border-radius:50%; background:rgba(255,255,255,.6); }
.loading-orbit strong { display:grid; place-items:center; width:58px; height:58px; border-radius:19px; background:linear-gradient(145deg,#ef7188,var(--rose-dark)); color:white; font-family:serif; font-size:25px; box-shadow:0 12px 28px rgba(206,62,91,.25); }
.loading-orbit i { position:absolute; width:10px; height:10px; border-radius:50%; background:var(--rose); animation:orbit 1.8s linear infinite; }
.loading-orbit i:nth-child(2) { animation-delay:-.6s; background:#f0a468; }.loading-orbit i:nth-child(3) { animation-delay:-1.2s; background:#8ba98d; }
.loading-bar { overflow:hidden; width:min(240px,72vw); height:5px; border-radius:99px; background:#eadfd8; }
.loading-bar i { display:block; width:45%; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--rose),#f2a26c); animation:loading-bar 1.15s ease-in-out infinite alternate; }
@keyframes orbit { from { transform:rotate(0deg) translateX(48px) rotate(0deg); } to { transform:rotate(360deg) translateX(48px) rotate(-360deg); } }
@keyframes loading-bar { from { transform:translateX(-30%); } to { transform:translateX(150%); } }
@media (max-width:390px) { .shell{padding-inline:14px}.card{padding-inline:16px}.wheel-row{gap:6px}.pillar strong{font-size:20px}.pillar em{font-size:11px}.hero-mark{transform:scale(.9)} }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; } }
@media print {
  @page { size:A4; margin:12mm; }
  * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  body { overflow:visible; min-height:0; background:white; }
  .shell { width:auto; max-width:none; margin:0; padding:0; }
  .topbar,.intro,.form-card,.error,.loading-screen,.share-button,.share-nudge,.result-actions { display:none!important; }
  .result { display:block!important; margin:0; border:0; border-radius:0; background:white; padding:0; box-shadow:none; }
  .result-owner { margin-bottom:8px; }
  .character-card { padding:18px; box-shadow:none; break-inside:avoid; }
  .character-symbol { width:52px; height:52px; margin-bottom:9px; font-size:24px; }
  .character-card h2 { font-size:25px; }
  .character-tags { margin-top:9px; }
  .social-role { margin-top:10px; padding:9px; }
  .easy-reading { margin-top:12px; }
  .easy-reading header { padding:5px 2px 9px; }
  .easy-reading header h3 { font-size:19px; }
  .easy-reading article { margin-top:6px; padding:10px; break-inside:avoid; }
  .easy-reading article p { font-size:12px; line-height:1.55; }
  .reading-disclaimer { margin-top:12px; }
  .raw-chart>summary { display:none; }
  .raw-chart>div { display:block!important; }
  .raw-chart { margin-top:12px; break-inside:avoid; }
  .pillars { margin-top:10px; }
  .pillar { padding:9px 3px; }
  .pillar strong { font-size:19px; }
  .candidate+.candidate { break-before:page; }
}
