/* ══════════════════════════════════════════════
   LAWTYPE · Design System
══════════════════════════════════════════════ */
:root {
  --gold:    #c9a84c;
  --gold-l:  #f0cc70;
  --gold-d:  #6a5520;
  --gold-g:  rgba(201,168,76,.14);
  --bg:      #07070f;
  --bg2:     #0b0b18;
  --card:    #0f0f1e;
  --bd:      #1c1c2e;
  --bd2:     #242438;
  --text:    #ede8d8;
  --text2:   #8a849a;
  --text3:   #4e4862;
  --accent:  #8b7fff;
  --green:   #5dcea0;
  --red:     #f08080;
  --serif:   'EB Garamond', Georgia, serif;
  --sans:    'Inter', 'PingFang SC', 'Helvetica Neue', sans-serif;
  --r:       14px;
  --r2:      20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── UTILS ──────────────────────────────────── */
.screen { display: none; min-height: 100vh; flex-direction: column; align-items: center; }
.screen.active { display: flex; }

.gt {
  background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 45%, #b08030 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hi { font-style: italic; }

/* ── LANG TOGGLE ────────────────────────────── */
.lang-btn {
  position: absolute; top: 20px; right: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: var(--text2); background: var(--card); border: 1px solid var(--bd2);
  padding: 5px 12px; border-radius: 20px; cursor: pointer; transition: .2s;
  z-index: 10;
}
.lang-btn:hover { border-color: var(--gold-d); color: var(--gold); }

/* ── GENDER TOGGLE ──────────────────────────── */
.gender-toggle {
  display: flex;
  background: var(--card);
  border: 1px solid var(--bd2);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
}
.gender-btn {
  padding: 9px 24px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.gender-btn.active {
  background: rgba(201,168,76,.18);
  color: var(--gold-l);
  border: 1px solid var(--gold-d);
}
.gender-btn:hover:not(.active) { color: var(--text); }

/* ══════════════════════════════════════════════
   INTRO
══════════════════════════════════════════════ */
#intro {
  background: radial-gradient(ellipse 80% 50% at 50% -5%, #1e1640 0%, var(--bg) 60%);
  padding-top: 60px;
  position: relative;
}
.intro-inner { padding: 0 24px; text-align: center; max-width: 460px; margin-bottom: 36px; }

.intro-badge {
  display: inline-block;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 600; color: var(--gold);
  border: 1px solid var(--gold-d); padding: 6px 16px; border-radius: 50px;
  background: rgba(201,168,76,.06); margin-bottom: 28px;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,.18); }
  50%      { box-shadow: 0 0 0 6px rgba(201,168,76,0); }
}
.intro-eyebrow { font-size: 12px; color: var(--text3); letter-spacing: 1px; margin-bottom: 12px; }
.intro-title {
  font-family: var(--serif);
  font-size: clamp(36px, 10vw, 58px);
  font-weight: 800; line-height: 1.1; letter-spacing: -1px;
  color: var(--text); margin-bottom: 18px;
}
.intro-sub { font-size: 15px; color: var(--text2); line-height: 1.75; }

/* marquee */
.marquee-wrap {
  width: 100%; overflow: hidden; margin-bottom: 36px;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.mq-row { display: flex; gap: 10px; margin-bottom: 8px; }
.mq-inner { display: flex; gap: 10px; flex-shrink: 0; animation: scrollL 30s linear infinite; }
.mq-row.rev .mq-inner { animation: scrollR 34s linear infinite; }
@keyframes scrollL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.pcard {
  flex-shrink: 0; width: 124px; padding: 12px 10px 10px;
  background: var(--card); border-radius: var(--r);
  border: 1px solid var(--bd2); text-align: center; cursor: default;
  transition: border-color .2s, transform .2s;
}
.pcard:hover { transform: translateY(-2px); }
.pcard.rare { border-color: rgba(139,127,255,.3); background: rgba(139,127,255,.06); }
.pcard-emoji { font-size: 26px; display: block; margin-bottom: 4px; }
.pcard-type { font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: 1px; display: block; margin-bottom: 2px; }
.pcard-cn { font-size: 9px; color: var(--text3); display: block; letter-spacing: .5px; }
.pcard-rare-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 3px; vertical-align: middle; }

/* cta */
.intro-cta { padding: 0 24px; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 48px; }

/* ── BUTTONS ────────────────────────────────── */
.btn-primary {
  width: 100%; padding: 18px; font-size: 16px; font-weight: 700; letter-spacing: .4px;
  font-family: var(--sans);
  background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 50%, #a07828 100%);
  color: var(--bg); border: none; border-radius: 50px; cursor: pointer;
  box-shadow: 0 8px 36px rgba(201,168,76,.28); transition: box-shadow .2s, transform .15s;
}
.btn-primary:hover { box-shadow: 0 12px 48px rgba(201,168,76,.4); }
.btn-primary:active { transform: scale(.975); }
.btn-secondary {
  width: 100%; padding: 15px; font-size: 14px; font-weight: 600;
  color: var(--text2); background: transparent;
  border: 1px solid var(--bd2); border-radius: 50px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--gold-d); color: var(--text); }
.intro-meta { font-size: 11px; color: var(--text3); text-align: center; letter-spacing: .5px; }

/* ══════════════════════════════════════════════
   QUIZ
══════════════════════════════════════════════ */
#quiz { background: var(--bg); padding-top: 24px; }
.quiz-top { width: 100%; max-width: 560px; padding: 0 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.prog-row { display: flex; justify-content: space-between; align-items: center; }
.prog-n { font-size: 12px; color: var(--text3); }
.prog-pct { font-size: 12px; font-weight: 600; color: var(--gold); }
.prog-track { height: 3px; background: var(--bd); border-radius: 2px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-l)); border-radius: 2px; transition: width .5s cubic-bezier(.4,0,.2,1); width: 0%; }

.mod-pill {
  display: inline-block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; padding: 4px 12px; border-radius: 50px; border: 1px solid; width: fit-content;
}
.mod-a { color: var(--gold);   border-color: var(--gold-d); background: rgba(201,168,76,.07); }
.mod-b { color: var(--accent); border-color: #3d3680;       background: rgba(139,127,255,.07); }
.mod-c { color: var(--green);  border-color: #2a6050;       background: rgba(93,206,160,.07); }
.mod-d { color: #60c8ff;       border-color: #1e4a70;       background: rgba(96,200,255,.07); }
.mod-e { color: var(--text2);  border-color: var(--bd2);    background: rgba(255,255,255,.04); }

.q-body { flex: 1; width: 100%; max-width: 560px; padding: 0 20px 40px; }
.q-text {
  font-family: var(--serif); font-size: clamp(17px, 4.5vw, 21px);
  font-weight: 600; line-height: 1.55; color: var(--text); margin-bottom: 22px;
}
.opts { display: flex; flex-direction: column; }

/* ── Likert scale ───────────────────────────── */
.likert-wrap { padding: 16px 0 8px; }
.likert-extremes {
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 16px;
  letter-spacing: .3px;
}
.likert-scale {
  display: flex; justify-content: space-between; align-items: center;
  position: relative;
}
.likert-scale::before {
  content: ''; position: absolute; top: 50%; transform: translateY(-50%);
  left: 22px; right: 22px; height: 1.5px; background: rgba(255,255,255,.18);
}
.likert-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s;
}
.likert-btn:active { transform: scale(.9); }
.likert-dot {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.likert-btn:hover .likert-dot { border-color: var(--gold-d); }

/* size progression: smaller on ends, larger in middle */
.likert-btn:nth-child(1) .likert-dot,
.likert-btn:nth-child(5) .likert-dot { width: 22px; height: 22px; }
.likert-btn:nth-child(2) .likert-dot,
.likert-btn:nth-child(4) .likert-dot { width: 26px; height: 26px; }
.likert-btn:nth-child(3) .likert-dot { width: 30px; height: 30px; }

/* selected states — colour coded by position */
.likert-btn:nth-child(1).selected .likert-dot { border-color: #f08080; background: rgba(240,128,128,.25); box-shadow: 0 0 0 4px rgba(240,128,128,.1); }
.likert-btn:nth-child(2).selected .likert-dot { border-color: #e09060; background: rgba(224,144,96,.2); box-shadow: 0 0 0 4px rgba(224,144,96,.1); }
.likert-btn:nth-child(3).selected .likert-dot { border-color: var(--gold-d); background: rgba(201,168,76,.15); box-shadow: 0 0 0 4px rgba(201,168,76,.08); }
.likert-btn:nth-child(4).selected .likert-dot { border-color: var(--gold); background: rgba(201,168,76,.22); box-shadow: 0 0 0 4px rgba(201,168,76,.1); }
.likert-btn:nth-child(5).selected .likert-dot { border-color: var(--green); background: rgba(93,206,160,.25); box-shadow: 0 0 0 4px rgba(93,206,160,.1); }

.btn-next {
  margin-top: 22px; width: 100%; padding: 16px;
  font-size: 15px; font-weight: 700; letter-spacing: .4px; font-family: var(--sans);
  background: linear-gradient(135deg, var(--gold-l), var(--gold), #a07828);
  color: var(--bg); border: none; border-radius: 50px; cursor: pointer;
  opacity: .3; pointer-events: none; transition: opacity .22s, transform .12s;
}
.btn-next.ready { opacity: 1; pointer-events: all; }
.btn-next.ready:active { transform: scale(.98); }

/* ══════════════════════════════════════════════
   LOADING
══════════════════════════════════════════════ */
#loading { justify-content: center; align-items: center; background: var(--bg); }
.loading-box { text-align: center; padding: 40px 24px; }
.spin-ring {
  width: 68px; height: 68px; border-radius: 50%;
  border: 2px solid var(--bd2); border-top-color: var(--gold);
  animation: spin 1s linear infinite; margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-h { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.loading-s { font-size: 13px; color: var(--text2); margin-bottom: 24px; }
.loading-names { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.loading-name {
  font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--gold-d);
  animation: nameFlash 2.4s ease-in-out infinite;
}
.loading-name:nth-child(2) { animation-delay: .4s; }
.loading-name:nth-child(3) { animation-delay: .8s; }
.loading-name:nth-child(4) { animation-delay: 1.2s; }
@keyframes nameFlash { 0%,100% { opacity: .25; } 50% { opacity: 1; color: var(--gold-l); } }

/* ══════════════════════════════════════════════
   RESULT
══════════════════════════════════════════════ */
#result { background: var(--bg); padding-bottom: 60px; align-items: center; }

/* rare banner */
.rare-banner {
  display: none; width: 100%; max-width: 560px;
  align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(90deg, rgba(139,127,255,.15), rgba(201,168,76,.12), rgba(139,127,255,.15));
  border-bottom: 1px solid rgba(139,127,255,.2);
  padding: 12px 24px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  color: #b0a8ff; text-transform: uppercase;
}
.rare-banner.show { display: flex; }
.rare-icon { font-size: 10px; }

.res-wrap { width: 100%; max-width: 560px; padding: 24px 20px 0; display: flex; flex-direction: column; gap: 14px; }

/* hero card */
.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #13102a 0%, #0c0c1c 55%, #080814 100%);
  border: 1px solid rgba(201,168,76,.22); border-radius: 24px;
  padding: 40px 28px 32px; text-align: center;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 30%, var(--gold-l) 50%, var(--gold) 70%, transparent 95%);
}
.hero-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 200px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(201,168,76,.12) 0%, transparent 70%);
}
.hero-emoji-ring {
  position: relative;
  width: 110px; height: 110px; margin: 0 auto 14px;
  border-radius: 50%; border: 1px solid rgba(201,168,76,.2);
  background: rgba(201,168,76,.05);
  overflow: hidden; animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn { from { transform: scale(0) rotate(-15deg); opacity: 0; } }
.hero-type { font-family: var(--serif); font-size: clamp(42px, 11vw, 60px); font-weight: 800; letter-spacing: 4px; line-height: 1; animation: fadeUp .5s ease .1s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.hero-cn { font-size: 14px; color: var(--text2); letter-spacing: 2px; margin: 8px 0 18px; animation: fadeUp .5s ease .2s both; }
.hero-quote {
  font-size: 14px; line-height: 1.8; color: var(--text);
  background: rgba(255,255,255,.04); border-left: 2px solid var(--gold);
  border-radius: 0 10px 10px 0; padding: 13px 16px; text-align: left;
  animation: fadeUp .5s ease .3s both;
}

/* sections */
.card-section {}
.sec-title { font-size: 10px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }

/* LIS */
.lis-card { background: var(--card); border: 1px solid var(--bd2); border-radius: var(--r2); padding: 20px; display: flex; align-items: center; gap: 20px; }
.lis-ring-wrap { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.lis-svg {}
.lis-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lis-num { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1; }
.lis-of { font-size: 10px; color: var(--text3); }
.lis-lvl { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.lis-desc { font-size: 12px; color: var(--text2); line-height: 1.6; }

/* Radar */
.radar-card { background: var(--card); border: 1px solid var(--bd2); border-radius: var(--r2); padding: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.radar-legend { flex: 1; min-width: 130px; }
.dim-row { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.dim-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dim-name { font-size: 11px; color: var(--text2); flex: 1; }
.dim-bar-bg { width: 36px; height: 3px; background: var(--bd); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.dim-bar-fill { height: 100%; border-radius: 2px; }
.dim-val { font-size: 11px; font-weight: 700; color: var(--gold); min-width: 22px; text-align: right; }

/* Tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 50px; }
.tg { background: rgba(93,206,160,.1); color: #5dcea0; border: 1px solid rgba(93,206,160,.2); }
.tr { background: rgba(240,128,128,.08); color: #f08080; border: 1px solid rgba(240,128,128,.14); }

/* Upgrade */
.upgrade-card { background: linear-gradient(135deg, rgba(139,127,255,.08), rgba(201,168,76,.06)); border: 1px solid rgba(139,127,255,.18); border-radius: var(--r2); padding: 18px 20px; }
.upgrade-label { font-size: 10px; color: var(--accent); letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.upgrade-body { font-size: 14px; color: var(--text); line-height: 1.7; }
.upgrade-body strong { color: var(--gold-l); }

/* ══════════════════════════════════════════════
   CLAIM CARD — premium white
══════════════════════════════════════════════ */
.claim-card {
  position: relative; overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 9 / 16;
  background: #06060f;
  box-shadow: 0 12px 60px rgba(0,0,0,.8), 0 0 0 1.5px rgba(201,168,76,.35);
  margin: 0 auto;
  max-width: 300px;
}
/* inner gold frame */
.claim-card::before {
  content: ''; position: absolute; inset: 8px; z-index: 3;
  border: 1px solid rgba(201,168,76,.22); border-radius: 14px;
  pointer-events: none;
}
/* ── Rare card metallic effects ──────────────── */
.claim-card--rare {
  animation: rareBorder 4s linear infinite;
}
.claim-card--rare::before {
  border-color: rgba(201,168,76,.5);
  animation: rareFrame 4s linear infinite;
}
/* shimmer sweep */
.claim-card--rare::after {
  content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  border-radius: 20px;
  background: linear-gradient(
    112deg,
    transparent 28%,
    rgba(255,255,255,.04) 44%,
    rgba(255,255,255,.13) 50%,
    rgba(255,255,255,.04) 56%,
    transparent 72%
  );
  animation: rareSweep 3.2s ease-in-out infinite;
}
@keyframes rareBorder {
  0%   { box-shadow: 0 12px 60px rgba(0,0,0,.8), 0 0 0 1.5px #c9a84c, 0 0 24px rgba(201,168,76,.3); }
  25%  { box-shadow: 0 12px 60px rgba(0,0,0,.8), 0 0 0 1.5px #8b7fff, 0 0 24px rgba(139,127,255,.35); }
  50%  { box-shadow: 0 12px 60px rgba(0,0,0,.8), 0 0 0 1.5px #5dcea0, 0 0 24px rgba(93,206,160,.3); }
  75%  { box-shadow: 0 12px 60px rgba(0,0,0,.8), 0 0 0 1.5px #f0cc70, 0 0 24px rgba(240,204,112,.3); }
  100% { box-shadow: 0 12px 60px rgba(0,0,0,.8), 0 0 0 1.5px #c9a84c, 0 0 24px rgba(201,168,76,.3); }
}
@keyframes rareFrame {
  0%   { border-color: rgba(201,168,76,.55); }
  25%  { border-color: rgba(139,127,255,.55); }
  50%  { border-color: rgba(93,206,160,.45); }
  75%  { border-color: rgba(240,204,112,.55); }
  100% { border-color: rgba(201,168,76,.55); }
}
@keyframes rareSweep {
  0%   { transform: translateX(-120%); }
  55%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
/* freeze all animations during html2canvas capture */
.claim-card--capturing,
.claim-card--capturing * { animation: none !important; transition: none !important; }
.claim-card--capturing::before,
.claim-card--capturing::after { animation: none !important; }

/* sparkle dots */
.rare-spark {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #fff; z-index: 7; pointer-events: none;
  animation: sparkFloat var(--dur, 2s) ease-in var(--delay, 0s) infinite;
  opacity: 0;
}
@keyframes sparkFloat {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  10%  { opacity: 1; }
  80%  { opacity: .6; }
  100% { opacity: 0; transform: translateY(-60px) scale(0); }
}

/* full-bleed character image */
.claim-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  z-index: 0;
}
/* top gradient + brand row */
.claim-brand-row {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 48px;
  background: linear-gradient(to bottom, rgba(4,4,14,.8) 0%, transparent 100%);
  font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(240,204,112,.7);
}
.claim-rare-row {
  position: absolute; top: 44px; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #c0aeff;
}
/* bottom text overlay */
.claim-bottom-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 52px 22px 18px;
  background: linear-gradient(to top, rgba(4,4,14,.93) 50%, rgba(4,4,14,.6) 75%, transparent 100%);
  text-align: center;
}
.claim-type {
  font-family: var(--serif); font-size: clamp(38px, 11vw, 52px);
  font-weight: 800; letter-spacing: 6px; line-height: 1;
  color: var(--gold-l);
  margin-bottom: 5px;
}
.claim-cn {
  font-size: 12px; color: rgba(240,220,160,.75); letter-spacing: 3px;
}
.claim-rule {
  height: 1px; margin: 10px 12px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.5) 30%, rgba(201,168,76,.5) 70%, transparent);
}
.claim-strengths {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 2px 0 10px;
}
.claim-strength-tag {
  font-size: 10px; color: rgba(240,204,112,.85);
  border: 1px solid rgba(201,168,76,.35);
  padding: 4px 10px; border-radius: 20px;
  background: rgba(201,168,76,.1);
  letter-spacing: .5px;
}
.claim-qr-row {
  display: flex; align-items: center; gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(201,168,76,.15);
}
.claim-qr-img {
  width: 40px; height: 40px; border-radius: 5px;
  border: 1px solid rgba(201,168,76,.3); flex-shrink: 0;
}
.claim-qr-label {
  font-size: 10px; color: rgba(255,255,255,.38);
  line-height: 1.6; text-align: left;
}
.claim-radar-row {
  display: flex; align-items: center; gap: 8px; padding: 0;
}
.claim-radar-legend { flex: 1; overflow: hidden; }
.claim-radar-legend .dim-row {
  display: flex; align-items: center; gap: 4px; margin-bottom: 3px;
}
.claim-radar-legend .dim-dot { width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; }
.claim-radar-legend .dim-name {
  flex: 1; font-size: 9px; color: rgba(255,255,255,.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.claim-radar-legend .dim-val { font-size: 9px; color: rgba(255,255,255,.38); min-width: 18px; text-align: right; }

.sc-rare-badge { display: none; }

.claim-btn { display: block; text-decoration: none; text-align: center; cursor: pointer; }
.share-tip { font-size: 11px; color: var(--text3); text-align: center; margin-top: 6px; }

/* ── CONFETTI ───────────────────────────────── */
#confetti-wrap { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti-p {
  position: absolute; top: -10px; width: 8px; height: 8px;
  opacity: 0; animation: fall linear forwards;
}
@keyframes fall {
  0%   { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ── TOAST ─────────────────────────────────── */
.toast {
  position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%);
  background: rgba(201,168,76,.95); backdrop-filter: blur(10px);
  color: var(--bg); font-size: 13px; font-weight: 700;
  padding: 11px 22px; border-radius: 50px;
  opacity: 0; pointer-events: none; transition: opacity .28s;
  z-index: 200; white-space: nowrap;
}
.toast.show { opacity: 1; }

/* ── RESPONSIVE ────────────────────────────── */
@media (min-width: 580px) {
  .intro-inner, .intro-cta { padding-left: 36px; padding-right: 36px; }
  .quiz-top, .q-body, .res-wrap { padding-left: 32px; padding-right: 32px; }
}
