:root {
  --bg: #0b1026;
  --ink: #f8f7ff;
  --muted: rgba(248, 247, 255, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.08);
  --accent: #ffb37a;
  --accent2: #c4b5fd;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #05070f; color: var(--ink); font-family: var(--font); }
body { overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input { font-family: inherit; }
.hidden { display: none !important; }

#app {
  position: relative;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1d1a4d 0%, var(--bg) 55%, #070a18 100%);
}

/* ---------- sky ---------- */
.sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stars { position: absolute; inset: -50%; background-repeat: repeat; }
.stars.s1 {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 150px 60px, #fff, transparent),
    radial-gradient(1px 1px at 200px 180px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 260px 20px, #fff, transparent);
  background-size: 300px 220px;
  opacity: .55;
  animation: drift 120s linear infinite;
}
.stars.s2 {
  background-image:
    radial-gradient(2px 2px at 50px 80px, rgba(255,230,200,.9), transparent),
    radial-gradient(1.5px 1.5px at 240px 140px, rgba(200,200,255,.9), transparent);
  background-size: 360px 300px;
  opacity: .5;
  animation: drift 80s linear infinite reverse, twinkle 4s ease-in-out infinite;
}
.sky .glow {
  position: absolute; left: 50%; bottom: -30%; width: 140%; height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,150,100,.28), transparent);
  filter: blur(10px);
}
@keyframes drift { to { transform: translate3d(-150px, -110px, 0); } }
@keyframes twinkle { 50% { opacity: .2; } }

/* ---------- views ---------- */
.view { position: absolute; inset: 0; display: none; flex-direction: column; }
.view.active { display: flex; animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.rise { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  display: block; width: 100%; border: 0; border-radius: 999px;
  padding: 15px 18px; font-size: 16px; font-weight: 700; letter-spacing: .5px;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform .15s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { color: #2a1238; background: linear-gradient(135deg, #ffd6a5 0%, #ffb37a 45%, #f78fb3 100%); box-shadow: 0 10px 30px rgba(247, 143, 179, .35); }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,.1); border: 1px solid var(--line); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link-btn { background: none; border: 0; color: var(--accent2); font-size: 14px; padding: 8px; cursor: pointer; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.icon-btn.small { width: 32px; height: 32px; font-size: 14px; }

/* ---------- home ---------- */
.home-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px 26px calc(24px + var(--safe-b)); overflow-y: auto; }
.chip-year { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; letter-spacing: 2px; color: var(--accent); border: 1px solid rgba(255,179,122,.4); background: rgba(255,179,122,.08); }
.home-title { margin: 18px 0 12px; font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: 1px; }
.home-title span { background: linear-gradient(90deg, #ffd6a5, #f78fb3 60%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-sub { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.home-feats { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.home-feats li { padding: 12px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.home-feats b { display: block; font-size: 26px; color: var(--accent); }
.home-feats span { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.home-form { display: flex; flex-direction: column; gap: 12px; }
.home-form label { font-size: 13px; color: var(--muted); }
input {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.07); color: var(--ink); font-size: 16px; outline: none;
}
input:focus { border-color: rgba(255,179,122,.7); box-shadow: 0 0 0 3px rgba(255,179,122,.15); }
input::placeholder { color: rgba(255,255,255,.35); }
.home-foot { margin: 22px 0 0; text-align: center; font-size: 11px; color: rgba(255,255,255,.35); }

/* ---------- quiz ---------- */
.quiz-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px 8px; }
.quiz-progress { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
#quiz-bar { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #c4b5fd, #ffb37a); transition: width .35s ease; }
.quiz-count { font-size: 13px; color: var(--muted); min-width: 40px; text-align: right; }
.quiz-body { position: relative; flex: 1; overflow-y: auto; padding: 14px 22px calc(28px + var(--safe-b)); }
.q-chapter { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.q-chapter b { font-size: 12px; letter-spacing: 2px; color: var(--accent); }
.q-chapter span { font-size: 12px; color: var(--muted); }
.q-hint { font-size: 12px; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.q-text { margin: 0 0 22px; font-size: 22px; line-height: 1.5; font-weight: 700; }
.q-options { display: flex; flex-direction: column; gap: 11px; }
.q-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 15px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); color: var(--ink); font-size: 15.5px; line-height: 1.45; cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  opacity: 0; animation: rise .45s ease forwards;
}
.q-opt:active { transform: scale(.985); }
.q-opt.selected { background: linear-gradient(135deg, rgba(196,181,253,.28), rgba(255,179,122,.22)); border-color: rgba(255,214,165,.8); }
.q-opt .emo { font-size: 26px; width: 34px; text-align: center; }
.q-opt .lbl b { display: block; font-size: 16px; }
.q-opt .lbl small { color: var(--muted); font-size: 12.5px; }
.q-slide-in { animation: qin .38s cubic-bezier(.2,.7,.2,1) both; }
@keyframes qin { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }

/* ---------- loading ---------- */
.loading-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.orb { position: relative; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(from 0deg, #c4b5fd, #f78fb3, #ffb37a, #c4b5fd); animation: spin 2.4s linear infinite; filter: blur(.5px); box-shadow: 0 0 60px rgba(247,143,179,.45); }
.orb-core { position: absolute; inset: 10px; border-radius: 50%; background: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { margin: 32px 0 20px; font-size: 20px; line-height: 1.6; font-weight: 700; }
.loading-steps { list-style: none; padding: 0; margin: 0; font-size: 14px; color: rgba(255,255,255,.3); line-height: 2.1; }
.loading-steps li { transition: color .4s; }
.loading-steps li.on { color: var(--ink); }
.loading-steps li.on::before { content: "✓ "; color: var(--accent); }

/* ---------- story ---------- */
#view-story { background: #070a18; }
.story-progress { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 5; }
.story-progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; position: relative; cursor: pointer; }
.story-progress i::after { content: ""; position: absolute; inset: 0; width: 0; background: #fff; transition: width .35s ease; }
.story-progress i.done::after, .story-progress i.cur::after { width: 100%; }
.story-progress i.lock { background: rgba(255,255,255,.12); }
.story-top { position: absolute; top: 20px; left: 16px; right: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 5; }
.story-no { font-size: 11px; letter-spacing: 1.5px; color: rgba(255,255,255,.55); }
.slides { position: relative; flex: 1; overflow: hidden; }
.slide {
  position: absolute; inset: 0; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 68px 24px calc(90px + var(--safe-b));
}
.slide.cur { display: block; animation: slideIn .5s cubic-bezier(.2,.7,.2,1) both; }
.slide.cur.back { animation-name: slideBack; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-40px) scale(.98); } to { opacity: 1; transform: none; } }
.slide .rise { animation-play-state: paused; }
.slide.cur .rise { animation-play-state: running; }

.bg-1 { background: linear-gradient(165deg, #0f172a 0%, #312e81 58%, #7c3aed 120%); }
.bg-2 { background: linear-gradient(170deg, #071025 0%, #1e3a8a 70%, #0ea5e9 140%); }
.bg-3 { background: linear-gradient(165deg, #1a0b2e 0%, #5b21b6 60%, #f472b6 130%); }
.bg-4 { background: linear-gradient(165deg, #1f1147 0%, #7c2d92 60%, #fb923c 135%); }
.bg-5 { background: linear-gradient(170deg, #06201f 0%, #115e59 65%, #34d399 145%); }
.bg-6 { background: linear-gradient(165deg, #23130a 0%, #92400e 62%, #fbbf24 140%); }
.bg-7 { background: linear-gradient(165deg, #12122a 0%, #3b1d7a 62%, #818cf8 140%); }
.bg-8 { background: linear-gradient(165deg, #1e0b1f 0%, #9d174d 62%, #fdba74 135%); }

.eyebrow { font-size: 12px; letter-spacing: 3px; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.s-title { margin: 0 0 14px; font-size: 26px; line-height: 1.4; font-weight: 800; }
.s-text { font-size: 15.5px; line-height: 1.9; color: rgba(255,255,255,.88); white-space: pre-line; }
.s-card { margin-top: 16px; padding: 16px 16px; border-radius: 18px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.s-card h4 { margin: 0 0 6px; font-size: 15px; }
.s-card p { margin: 0; font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.82); }

/* slide 1 */
.opener-wrap { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.opener-name { font-size: 15px; color: rgba(255,255,255,.7); }
.opener-big { margin: 8px 0 26px; font-size: 40px; line-height: 1.2; font-weight: 800; }
.opener-big em { font-style: normal; background: linear-gradient(90deg, #ffd6a5, #f78fb3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.genre { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 14px; }
.tap-tip { margin-top: 34px; font-size: 13px; color: rgba(255,255,255,.5); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* slide 2 curve */
.curve-box { margin: 8px -8px 0; }
.curve-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.curve-line { fill: none; stroke: url(#cgLine); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.slide.cur .curve-line { animation: draw 2s .3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.curve-area { opacity: 0; }
.slide.cur .curve-area { animation: fadeIn 1s 1.4s ease forwards; }
.curve-mark { opacity: 0; }
.slide.cur .curve-mark { animation: fadeIn .6s 2s ease forwards; }
.curve-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.curve-stats div { padding: 10px 6px; border-radius: 14px; background: rgba(255,255,255,.08); text-align: center; }
.curve-stats b { display: block; font-size: 18px; }
.curve-stats span { font-size: 11px; color: rgba(255,255,255,.6); }

/* slide 3 keyword */
.kw-wrap { text-align: center; padding-top: 10px; }
.kw-word { margin: 18px 0 4px; font-size: 120px; line-height: 1.1; font-weight: 900; letter-spacing: 8px; background: linear-gradient(180deg, #fff 20%, #ffd6a5 70%, #f78fb3); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255,214,165,.35)); }
.kw-word.len1 { font-size: 150px; }
.kw-pinyin { font-size: 13px; letter-spacing: 6px; color: rgba(255,255,255,.6); }
.kw-shape { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; }
.kw-quote { margin: 22px 0 6px; font-size: 18px; font-weight: 700; line-height: 1.6; }
.kw-wrap .s-text { text-align: left; margin-top: 12px; }

/* locked */
.kw-blur { margin: 26px 0 6px; font-size: 120px; font-weight: 900; letter-spacing: 8px; color: rgba(255,255,255,.85); filter: blur(16px); user-select: none; }
.paywall { margin-top: 10px; padding: 20px 18px; border-radius: 22px; background: rgba(12, 8, 30, .62); border: 1px solid rgba(255,214,165,.35); backdrop-filter: blur(12px); text-align: left; }
.paywall h3 { margin: 0 0 6px; font-size: 19px; }
.paywall .muted { margin: 0 0 12px; }
.paywall ul { margin: 0 0 14px; padding: 0; list-style: none; font-size: 13.5px; line-height: 2; color: rgba(255,255,255,.85); }
.paywall ul li::before { content: "🔒 "; }
.paywall input { margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.paywall .err { min-height: 18px; margin: 6px 0 0; font-size: 13px; color: #fda4af; }
.buy-tip { margin-top: 14px; padding: 13px 13px; border-radius: 16px; background: rgba(255,179,122,.1); border: 1px solid rgba(255,179,122,.26); font-size: 12.5px; line-height: 1.7; color: #ffd6a5; }
.buy-tip b { color: #fff; font-size: 13.5px; }
.buy-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.btn-direct { display: block; width: 100%; padding: 12px 14px; border-radius: 999px; border: 0; background: linear-gradient(135deg, #a7f3d0 0%, #34d399 100%); color: #052e16; font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 6px 20px rgba(52, 211, 153, .28); }
.btn-direct:active { transform: scale(.98); }
.btn-mini { display: block; width: 100%; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,214,165,.48); background: rgba(255,214,165,.14); color: #fff; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.btn-mini:active { transform: scale(.98); }
.code-ready-pill { margin-bottom: 4px; padding: 9px 12px; border-radius: 12px; background: rgba(52, 211, 153, .16); border: 1px solid rgba(110, 231, 183, .4); color: #a7f3d0; font-size: 12.5px; text-align: center; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* slide 4 archetype */
.ar-head { text-align: center; }
.ar-emoji { font-size: 76px; line-height: 1; margin: 6px 0 10px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.ar-title { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: 1px; }
.ar-tag { margin: 8px 0 14px; font-size: 15px; color: rgba(255,255,255,.75); }
.traits { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.traits span { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; }
.rare { margin-top: 14px; text-align: center; font-size: 12px; color: rgba(255,255,255,.55); }

/* slide 5 radar */
.radar-box svg { width: 100%; height: auto; display: block; }
.radar-poly { transform-origin: 160px 150px; transform: scale(0); }
.slide.cur .radar-poly { animation: grow 1.1s .3s cubic-bezier(.2,.8,.2,1.1) forwards; }
@keyframes grow { to { transform: scale(1); } }
.dim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dim-row .s-card { margin-top: 10px; }
.dim-badge { font-size: 12px; color: rgba(255,255,255,.6); }
.dim-score { font-size: 26px; font-weight: 900; }

/* slide 6 badges */
.badges { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.badge {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(255,230,180,.35);
  opacity: 0; transform: rotateX(80deg);
}
.slide.cur .badge { animation: flip .7s cubic-bezier(.2,.8,.2,1) forwards; }
.slide.cur .badge:nth-child(2) { animation-delay: .35s; }
.slide.cur .badge:nth-child(3) { animation-delay: .7s; }
@keyframes flip { to { opacity: 1; transform: none; } }
.badge .b-emo { width: 58px; height: 58px; flex: none; display: grid; place-items: center; font-size: 30px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff3c4, #f59e0b); box-shadow: 0 6px 20px rgba(245,158,11,.4); }
.badge b { display: block; font-size: 17px; margin-bottom: 3px; }
.badge small { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.78); }

/* slide 7 drain */
.remedies { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: r; }
.remedies li { position: relative; padding: 12px 12px 12px 46px; margin-bottom: 10px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 14px; line-height: 1.7; }
.remedies li::before { counter-increment: r; content: counter(r); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #1e1b4b; background: #c4b5fd; }

/* slide 8 wish */
.wish-card { margin-top: 6px; padding: 22px 18px; border-radius: 24px; background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); border: 1px solid rgba(255,230,200,.4); text-align: center; }
.wish-word { margin: 6px 0 12px; font-size: 64px; font-weight: 900; letter-spacing: 10px; background: linear-gradient(180deg, #fff, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wish-card .s-text { text-align: left; }
.yiji { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; text-align: left; }
.yiji div { padding: 12px; border-radius: 14px; background: rgba(0,0,0,.18); }
.yiji h5 { margin: 0 0 6px; font-size: 16px; }
.yiji p { margin: 0; font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.85); }
.end-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.poster-choice-title { margin: 0 0 2px; text-align: center; font-size: 13px; color: rgba(255,255,255,.78); }
.poster-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 14px 10px; border-radius: 18px; border: 0; cursor: pointer; text-align: center;
  transition: transform .15s ease;
}
.choice-btn:active { transform: scale(.97); }
.choice-btn b { font-size: 14.5px; font-weight: 800; }
.choice-btn small { font-size: 11px; opacity: .82; font-weight: 500; }
.choice-wx { color: #2a1238; background: linear-gradient(135deg, #ffd6a5 0%, #ffb37a 45%, #f78fb3 100%); box-shadow: 0 8px 24px rgba(247, 143, 179, .32); }
.choice-xhs { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,230,200,.42); }
.disclaimer { margin-top: 16px; font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.45); text-align: center; }

/* story nav */
.story-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px calc(14px + var(--safe-b)); background: linear-gradient(0deg, rgba(5,7,15,.75), transparent); z-index: 5; }
.nav-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font-size: 24px; cursor: pointer; backdrop-filter: blur(6px); }
.nav-btn[disabled] { opacity: .25; }
.nav-btn.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,255,255,.08); } }
.story-hint { font-size: 12px; color: rgba(255,255,255,.55); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(3,4,10,.72); backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.modal-card { width: 100%; max-width: 400px; padding: 22px 20px; border-radius: 22px; background: #15173a; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.modal-card h3 { margin: 0; font-size: 19px; }
.modal-card .muted { margin: 0; }
.poster-card { width: 100%; max-width: 420px; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.poster-card img { width: auto; max-width: 100%; max-height: calc(100vh - 190px); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.poster-tip { margin: 2px 0 0; font-size: 12.5px; color: #ffd6a5; text-align: center; }
.poster-actions { display: flex; gap: 10px; width: 100%; }

/* toast */
.toast { position: fixed; left: 50%; top: 18%; z-index: 80; transform: translate(-50%, -10px); max-width: 80%; padding: 11px 18px; border-radius: 14px; background: rgba(20,20,40,.92); border: 1px solid var(--line); font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transition: all .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* celebrate */
.confetti { position: fixed; top: -10px; width: 8px; height: 14px; z-index: 90; border-radius: 2px; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--x), 105vh, 0) rotate(720deg); opacity: .9; } }

@media (min-width: 481px) {
  #app { box-shadow: 0 0 80px rgba(0,0,0,.6); }
}
