:root {
  --bg1: #7A46C4; --bg2: #FA96D7; --main: #6C34AA; --deep: #3A1668; --accent: #FFE246;
  --pink: #E65AC8; --ink: #2A1340; --soft: #F6EEFF; --line: #E7D8FA; --onBg: #fff;
  --display: 'Black Han Sans', sans-serif; --round: 'Jua', sans-serif;
  --body: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --card: #fff; --r: 24px;
  --shadow: 0 10px 30px rgba(40, 10, 70, .18), 0 2px 6px rgba(40, 10, 70, .08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg1); }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); font-family: var(--body);
  background: linear-gradient(165deg, var(--bg1) 0%, var(--bg2) 100%) fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere;
}
button { font: inherit; cursor: pointer; border: 0; }
img { display: block; }
#app { position: relative; max-width: 480px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); z-index: 1; }

/* 떠다니는 이모지 */
#sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
#sky span { position: absolute; bottom: -60px; font-size: 26px; opacity: .4; animation: rise linear infinite; filter: saturate(1.1); }
@keyframes rise { from { transform: translateY(0) rotate(0); } to { transform: translateY(-120vh) rotate(260deg); } }

.screen { display: none; }
.screen.active { display: block; animation: screenIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 인트로 ---------- */
#intro { text-align: center; color: var(--onBg); }
.friend-banner {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 14px; margin: 4px 0 14px;
  font-size: 14px; line-height: 1.45; box-shadow: var(--shadow); font-weight: 600;
  animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both .2s;
}
.friend-banner b { color: var(--main); }
.kicker {
  display: inline-block; margin: 6px 0 10px; padding: 7px 14px; border-radius: 99px;
  background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); font-weight: 700; font-size: 13px; letter-spacing: .02em;
  border: 1px solid rgba(255, 255, 255, .35);
}
.brand-slim .kicker { background: rgba(255, 255, 255, .7); border-color: #fff; }
.hero-title {
  font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: -.01em;
  font-size: clamp(40px, 12.5vw, 58px);
}
.hero-title .l1 { display: block; font-size: .62em; opacity: .95; margin-bottom: 4px; }
.hero-title .l2 {
  display: block; color: var(--accent);
  text-shadow: 0 3px 0 var(--deep), 0 6px 18px rgba(0, 0, 0, .25);
  -webkit-text-stroke: 1px var(--deep);
}
.brand-slim .hero-title .l2 { color: var(--main); text-shadow: 0 3px 0 #fff, 0 8px 18px rgba(240, 102, 140, .35); -webkit-text-stroke: 0; }
.hero-stage { position: relative; height: 330px; margin: 6px auto 0; max-width: 360px; }
.hero-ring {
  position: absolute; left: 50%; top: 52%; width: 270px; height: 270px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .15) 55%, rgba(255, 255, 255, 0) 70%);
}
.hero-char {
  position: absolute; left: 50%; bottom: 0; height: 320px; width: auto; transform: translateX(-50%);
  filter: drop-shadow(0 14px 18px rgba(30, 0, 60, .28)); animation: charIn .8s cubic-bezier(.2, 1.3, .4, 1) both .1s;
}
.brand-slim .hero-char { height: 260px; bottom: 26px; filter: drop-shadow(0 18px 14px rgba(240, 102, 140, .25)); }
@keyframes charIn { from { opacity: 0; transform: translateX(-50%) translateY(30px) scale(.9); } to { opacity: 1; transform: translateX(-50%); } }
.hero-chip {
  position: absolute; background: #fff; color: var(--ink); font-weight: 800; font-size: 13px; padding: 8px 12px; border-radius: 99px;
  box-shadow: var(--shadow); white-space: nowrap; animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.hero-chip.c1 { left: 0; top: 70px; animation-delay: .5s; }
.hero-chip.c2 { right: 2px; top: 130px; animation-delay: .65s; }
.hero-chip.c3 { left: 6px; bottom: 50px; animation-delay: .8s; }
@keyframes pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
.lead { white-space: pre-line; font-size: 16px; line-height: 1.6; font-weight: 600; margin: 16px 0 18px; }
.nick { display: block; text-align: left; background: rgba(255, 255, 255, .95); border-radius: 18px; padding: 10px 16px 12px; box-shadow: var(--shadow); margin-bottom: 14px; }
.nick span { display: block; font-size: 12px; color: #8a7896; font-weight: 700; margin-bottom: 4px; }
.nick input { width: 100%; border: 0; outline: 0; font: 700 18px var(--body); color: var(--ink); background: transparent; padding: 2px 0; }
.mini { font-size: 12px; opacity: .85; margin: 14px 0 0; line-height: 1.5; }

.btn-main {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 18px 20px; border-radius: 20px; font-weight: 900; font-size: 18px; text-decoration: none;
  color: var(--deep); background: var(--accent);
  box-shadow: 0 6px 0 var(--deep), 0 14px 24px rgba(30, 0, 60, .3); transition: transform .12s, box-shadow .12s;
  overflow: hidden;
}
.brand-slim .btn-main { color: #fff; background: var(--main); box-shadow: 0 6px 0 #C94A70, 0 14px 24px rgba(240, 102, 140, .35); }
.btn-main:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--deep), 0 6px 12px rgba(30, 0, 60, .3); }
.btn-main::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg);
  animation: shine 2.8s ease-in-out infinite 1s;
}
@keyframes shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }
.btn-sub {
  display: flex; align-items: center; justify-content: center; width: 100%; padding: 15px 18px; border-radius: 18px;
  background: #fff; color: var(--main); font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: var(--shadow);
}
.btn-ghost { display: block; margin: 22px auto 0; background: transparent; color: var(--onBg); font-weight: 700; font-size: 15px; padding: 10px 16px; }

/* ---------- 질문 ---------- */
#quiz { color: var(--onBg); }
.quiz-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.back { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .25); color: var(--onBg); font-size: 26px; line-height: 1; padding-bottom: 3px; flex: none; }
.brand-slim .back { background: rgba(255, 255, 255, .8); }
.route { position: relative; flex: 1; height: 30px; }
.route-line { position: absolute; left: 0; right: 22px; top: 50%; border-top: 3px dashed rgba(255, 255, 255, .55); }
.brand-slim .route-line { border-color: rgba(74, 51, 64, .25); }
.route-fill { position: absolute; left: 0; top: calc(50% - 2px); height: 4px; border-radius: 4px; background: var(--accent); width: 0; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.brand-slim .route-fill { background: var(--main); }
.route-plane { position: absolute; top: 50%; left: 0; transform: translate(-50%, -54%); font-size: 22px; transition: left .5s cubic-bezier(.2, .8, .2, 1); }
.route-end { position: absolute; right: -2px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.qcount { font-weight: 800; font-size: 14px; min-width: 36px; text-align: right; }
.q-head { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.q-char { height: 120px; width: auto; filter: drop-shadow(0 6px 10px rgba(30, 0, 60, .25)); }
.brand-slim .q-char { height: 96px; }
.bubble {
  position: relative; background: #fff; color: var(--ink); font-weight: 800; padding: 11px 14px; border-radius: 16px 16px 16px 4px;
  margin-bottom: 52px; box-shadow: var(--shadow); font-size: 15px; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.q-title { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 12px 0 4px; line-height: 1.2; }
.q-sub { margin: 0 0 16px; font-size: 14px; opacity: .85; min-height: 1em; font-weight: 600; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opts.list { grid-template-columns: 1fr; }
.opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px 14px 13px;
  background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 4px 0 var(--line), var(--shadow);
  animation: optIn .45s cubic-bezier(.2, 1.2, .4, 1) both; transition: transform .12s;
}
.opts.list .opt { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
.opt:active, .opt.picked { transform: scale(.96); }
.opt.picked { background: var(--accent); box-shadow: 0 4px 0 var(--deep), var(--shadow); }
.brand-slim .opt.picked { background: #FFE3EC; box-shadow: 0 4px 0 var(--main), var(--shadow); }
.opt .oe { font-size: 30px; line-height: 1.1; }
.opt .ot { font-weight: 900; font-size: 17px; }
.opt .os { font-size: 12.5px; color: #8a7896; font-weight: 600; }
.opts.list .opt .ox { display: flex; flex-direction: column; }
@keyframes optIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- 로딩 ---------- */
#loading { text-align: center; color: var(--onBg); padding-top: 40px; }
.flight { position: relative; height: 130px; max-width: 320px; margin: 0 auto; }
.flight .arc { position: absolute; inset: 0; width: 100%; height: 120px; stroke: rgba(255, 255, 255, .7); }
.brand-slim .flight .arc { stroke: rgba(74, 51, 64, .35); }
.flag { position: absolute; bottom: 0; font-size: 15px; font-weight: 900; background: #fff; color: var(--deep); padding: 6px 10px; border-radius: 99px; box-shadow: var(--shadow); }
.flag.kr { left: 0; } .flag.jp { right: 0; }
.plane { position: absolute; font-size: 30px; left: 0; top: 0; offset-path: path('M20 100 Q150 -20 280 100'); offset-rotate: auto 45deg; animation: fly 2.6s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.load-char { height: 210px; width: auto; margin: 10px auto 6px; filter: drop-shadow(0 10px 14px rgba(30, 0, 60, .25)); animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.brand-slim .load-char { height: 170px; }
.load-text { font-family: var(--round); font-size: 22px; margin: 14px 0; min-height: 30px; }
.load-bar { height: 12px; border-radius: 12px; background: rgba(255, 255, 255, .35); overflow: hidden; max-width: 300px; margin: 0 auto; }
.load-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 12px; transition: width .3s; }
.brand-slim .load-bar i { background: var(--main); }

/* ---------- 결과 ---------- */
#result { position: relative; }
#confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 30; }
.r-hello { color: var(--onBg); text-align: center; font-family: var(--round); font-size: 19px; margin: 4px 0 12px; }
.type-card {
  position: relative; background: var(--card); border-radius: 30px; padding: 22px 20px 20px; box-shadow: var(--shadow); overflow: hidden;
  animation: cardIn .8s cubic-bezier(.2, 1.2, .3, 1) both;
}
@keyframes cardIn { from { opacity: 0; transform: perspective(800px) rotateY(-70deg) scale(.85); } to { opacity: 1; transform: none; } }
.type-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 210px;
  background: radial-gradient(120% 90% at 50% 0%, var(--tcolor, var(--soft)) 0%, transparent 70%); opacity: .22;
}
.tc-top { position: relative; text-align: left; padding-right: 120px; min-height: 196px; }
.tc-label { display: inline-block; background: var(--deep); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 99px; }
.tc-emoji { font-size: 58px; line-height: 1; margin: 10px 0 4px; animation: pop .7s cubic-bezier(.2, 1.6, .4, 1) both .5s; }
.tc-name { font-family: var(--display); font-weight: 400; font-size: 33px; line-height: 1.12; margin: 0 0 8px; color: var(--deep); word-break: keep-all; }
.tc-tag { white-space: pre-line; font-weight: 800; font-size: 15px; line-height: 1.5; margin: 0; color: var(--ink); }
.tc-char { position: absolute; right: 2px; top: 16px; height: 240px; width: auto; filter: drop-shadow(0 8px 10px rgba(30, 0, 60, .18)); animation: charPeek .8s cubic-bezier(.2, 1.3, .4, 1) both .6s; }
.brand-slim .tc-char { height: 150px; top: 40px; right: -6px; }
@keyframes charPeek { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.tc-desc { list-style: none; padding: 14px 16px; margin: 14px 0 16px; background: var(--soft); border-radius: 18px; position: relative; }
.tc-desc li { font-size: 14px; font-weight: 600; line-height: 1.5; padding-left: 20px; position: relative; }
.tc-desc li + li { margin-top: 5px; }
.tc-desc li::before { content: '✔'; position: absolute; left: 0; color: var(--main); font-weight: 900; }
.stats { display: grid; gap: 8px; }
.stat { display: grid; grid-template-columns: 52px 1fr 34px; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.stat .bar { height: 12px; background: #F1ECF4; border-radius: 12px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; width: 0; border-radius: 12px; background: linear-gradient(90deg, var(--main), var(--pink)); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.brand-slim .stat .bar i { background: linear-gradient(90deg, #F7A1BA, var(--main)); }
.stat .num { text-align: right; color: var(--main); font-variant-numeric: tabular-nums; }
.hashtags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.hashtags span { font-size: 12.5px; font-weight: 800; color: var(--main); background: var(--soft); padding: 5px 10px; border-radius: 99px; }

.share-row { display: grid; gap: 10px; margin: 18px 0; }
.compat-box {
  background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--shadow); text-align: center; margin-bottom: 14px;
  animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.compat-box .pair { font-weight: 800; font-size: 15px; }
.compat-box .score { font-family: var(--display); font-size: 64px; line-height: 1; margin: 8px 0; color: var(--main); }
.compat-box .score small { font-size: 26px; }
.compat-box p { margin: 0; font-weight: 700; font-size: 14px; }
.mates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mate { background: rgba(255, 255, 255, .95); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.mate span { display: block; font-size: 12px; font-weight: 800; color: #8a7896; margin-bottom: 6px; }
.mate b { font-size: 15px; line-height: 1.35; display: block; }
.mate.good span::before { content: '💞 '; }
.mate.bad span::before { content: '⚡ '; }

.panel { background: #fff; border-radius: 26px; padding: 20px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.panel h3 { margin: 0; font-size: 19px; font-weight: 900; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.panel-head span { font-size: 12px; color: #8a7896; font-weight: 700; white-space: nowrap; }
.panel-lead { margin: -4px 0 12px; font-size: 13.5px; color: #6e5d7a; line-height: 1.5; font-weight: 600; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.summary div { background: var(--soft); border-radius: 16px; padding: 10px 6px; text-align: center; }
.summary small { display: block; font-size: 11.5px; color: #8a7896; font-weight: 700; }
.summary b { font-size: 17px; font-weight: 900; color: var(--deep); font-variant-numeric: tabular-nums; }
.day-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.day-tabs button { flex: none; padding: 9px 14px; border-radius: 99px; background: var(--soft); color: var(--ink); font-weight: 800; font-size: 14px; }
.day-tabs button.on { background: var(--deep); color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 25px; top: 10px; bottom: 10px; border-left: 2px dashed var(--line); }
.tl { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 8px 0; animation: optIn .4s both; }
.tl .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 21px; position: relative; z-index: 1; border: 3px solid #fff; }
.tl .tx { padding-top: 2px; }
.tl .tm { font-size: 12px; font-weight: 800; color: var(--main); font-variant-numeric: tabular-nums; }
.tl .tt { font-weight: 800; font-size: 15.5px; line-height: 1.35; }
.tl .ts { font-size: 12.5px; color: #7a6a86; font-weight: 600; margin-top: 2px; line-height: 1.45; }
.tl .badge { display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: #E9F8F0; color: #1E8A55; }
.tl.clinic .ic { background: var(--accent); }
.brand-slim .tl.clinic .ic { background: #FFE3EC; }
.tl.clinic .tt { color: var(--main); }
.tl.meal .badge { background: #FFF1E6; color: #C25A12; }
.day-total { margin-top: 8px; text-align: right; font-size: 13px; font-weight: 800; color: #1E8A55; }

.wallet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wallet-num { background: var(--soft); border-radius: 16px; padding: 10px 6px; text-align: center; }
.wallet-num span { display: block; font-size: 11.5px; color: #8a7896; font-weight: 700; }
.wallet-num b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.wallet-num.left b { color: #1E8A55; }
.wallet-num.left.minus b { color: #D9480F; }
.meter { height: 14px; background: #F1ECF4; border-radius: 14px; overflow: hidden; margin: 12px 0; }
.meter i { display: block; height: 100%; width: 0; border-radius: 14px; background: linear-gradient(90deg, #4CD08B, #2FBF71); transition: width .5s cubic-bezier(.2, .8, .2, 1), background .3s; }
.meter.over i { background: linear-gradient(90deg, #FFA94D, #FF6B6B); }
.coin-say { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.coin-say img { height: 70px; width: auto; flex: none; }
.coin-say p { margin: 0; background: var(--soft); border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-weight: 800; font-size: 14px; line-height: 1.45; }
.foods { display: grid; gap: 8px; }
.food {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; text-align: left; padding: 10px 12px;
  background: #fff; border: 2px solid var(--line); border-radius: 16px; color: var(--ink); transition: all .15s;
}
.food .fe { font-size: 24px; }
.food .fn { font-weight: 800; font-size: 14.5px; }
.food .ft { font-size: 12px; color: #8a7896; font-weight: 600; }
.food .fc { font-weight: 900; font-size: 14px; color: var(--main); white-space: nowrap; }
.food.on { border-color: var(--main); background: var(--soft); }
.food.on .fc::before { content: '✔ '; }

.tips p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; font-weight: 600; background: var(--soft); border-radius: 16px; padding: 12px 14px; }

.clinic-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.clinic-head img { height: 46px; width: auto; }
.clinic-head small { display: block; font-size: 12px; font-weight: 800; color: var(--main); }
.branch { background: var(--soft); border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.55; font-weight: 600; }
.branch b { color: var(--deep); }
.branch .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.branch .chips span { background: #fff; border-radius: 99px; padding: 5px 10px; font-size: 12.5px; font-weight: 800; color: var(--main); }
.flow { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; position: relative; }
.flow li { text-align: center; font-size: 12.5px; font-weight: 800; line-height: 1.35; }
.flow b { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; background: var(--deep); color: #fff; font-size: 15px; }
.price { border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; margin-bottom: 16px; }
.price-head { font-weight: 900; font-size: 15px; margin-bottom: 6px; }
.price-head small { font-size: 11px; color: #8a7896; font-weight: 700; margin-left: 4px; }
.prow { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 700; }
.prow b { color: var(--main); font-size: 16px; }
.fee { margin: 8px 0 0; font-size: 12px; color: #6e5d7a; font-weight: 600; line-height: 1.5; }
.cta { margin-bottom: 14px; }
.notice summary { cursor: pointer; font-weight: 800; font-size: 13.5px; color: #6e5d7a; padding: 6px 0; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice li { font-size: 12px; line-height: 1.55; color: #6e5d7a; margin-bottom: 4px; }
.foot { color: var(--onBg); text-align: center; }

/* 모달 */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 5, 35, .72); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: 100%; max-width: 400px; max-height: 100%; display: flex; flex-direction: column; gap: 10px; animation: pop .4s cubic-bezier(.2, 1.3, .4, 1) both; }
.modal-box img { width: 100%; max-height: 64vh; object-fit: contain; border-radius: 18px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.modal-hint { color: #fff; text-align: center; font-size: 13px; font-weight: 700; margin: 0; }
.modal-x { position: absolute; right: -4px; top: -6px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; z-index: 2; }
.modal-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-btns .btn-main, .modal-btns .btn-sub { padding: 14px; font-size: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 60;
  background: rgba(30, 10, 45, .92); color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 700; font-size: 14px; transition: all .3s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #sky { display: none; }
}
