@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --bg: #07070c;
  --bg2: #101018;
  --card: rgba(255,255,255,0.045);
  --card-solid: #14141f;
  --stroke: rgba(255,255,255,0.08);
  --stroke-strong: rgba(255,255,255,0.14);
  --pink: #ff3d6e;
  --pink2: #ff7aa2;
  --cyan: #3de7ff;
  --yellow: #ffe566;
  --purple: #b56cff;
  --text: #f7f7fb;
  --muted: #9a9aaf;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body {
  padding-bottom: calc(28px + var(--safe-bottom));
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255,61,110,.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(61,231,255,.16), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(181,108,255,.1), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; }

.app {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding: 0 0 8px;
}

/* ===== LANG TOGGLE ===== */
.lang-toggle {
  display: inline-flex;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .3px;
  transition: .2s ease;
}
.lang-toggle button.active {
  background: linear-gradient(135deg, var(--pink), #ff6b8a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,61,110,.35);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 0;
}

/* ===== HOME ===== */
.hero { padding: 10px 18px 8px; }
.brand-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 0 18px; gap: 10px; flex-wrap: wrap;
}
.logo {
  font-size: 20px; font-weight: 900; letter-spacing: -.2px;
  background: linear-gradient(100deg, var(--pink), var(--yellow) 55%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-pill {
  font-size: 11px; color: var(--muted);
  background: rgba(255,255,255,.04);
  padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(30px, 8vw, 38px);
  line-height: 1.12; font-weight: 900;
  letter-spacing: -1px; margin-bottom: 12px;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--pink), var(--pink2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: 11px; padding: 5px 11px; border-radius: 999px; font-weight: 600;
  background: rgba(255,61,110,.12); color: #ff9db5; border: 1px solid rgba(255,61,110,.28);
}
.badge.cyan { background: rgba(61,231,255,.1); color: var(--cyan); border-color: rgba(61,231,255,.28); }
.badge.yellow { background: rgba(255,229,102,.1); color: var(--yellow); border-color: rgba(255,229,102,.28); }

.section { padding: 6px 16px 20px; }
.section-title {
  font-size: 12px; color: var(--muted); letter-spacing: 1.5px;
  text-transform: uppercase; margin: 14px 6px 12px; font-weight: 700;
}

.test-list { display: flex; flex-direction: column; gap: 12px; }
.test-card {
  display: flex; gap: 14px; align-items: stretch;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border-radius: var(--radius);
  padding: 15px;
  border: 1px solid var(--stroke);
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  animation: rise .45s ease both;
}
.test-card:nth-child(2) { animation-delay: .04s; }
.test-card:nth-child(3) { animation-delay: .08s; }
.test-card:nth-child(4) { animation-delay: .12s; }
.test-card:nth-child(5) { animation-delay: .16s; }
.test-card:hover { border-color: var(--stroke-strong); box-shadow: 0 14px 36px rgba(0,0,0,.32); }
.test-card:active { transform: scale(.985); }
.test-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent, var(--pink));
  box-shadow: 0 0 18px var(--accent, var(--pink));
}
.test-emoji {
  width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
}
.test-meta { flex: 1; min-width: 0; }
.test-meta h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.2px; }
.test-meta p { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.test-tags { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.tag {
  font-size: 10px; padding: 3px 8px; border-radius: 7px; font-weight: 600;
  background: rgba(255,255,255,.06); color: #c8c8d8;
}
.tag.hot {
  background: rgba(255,61,110,.18); color: #ff8aaa;
  animation: pulse 2.2s ease infinite;
}
/* Wave26: featured = work-species */
.test-card--featured {
  border-color: color-mix(in srgb, var(--accent, var(--pink)) 55%, var(--stroke));
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 0 1px color-mix(in srgb, var(--accent, var(--pink)) 35%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent, var(--pink)) 14%, rgba(255,255,255,.08)), rgba(255,255,255,.03));
  padding-top: 22px;
}
.test-card--featured .test-meta h3 { font-size: 18px; }
.featured-ribbon {
  position: absolute; top: 10px; right: -2px;
  font-size: 10px; font-weight: 800; letter-spacing: .4px;
  padding: 4px 10px 4px 12px; border-radius: 8px 0 0 8px;
  background: var(--accent, var(--pink)); color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent, var(--pink)) 45%, transparent);
}
.tag.featured-tag {
  background: rgba(255,229,102,.16); color: #ffe566;
}
.go-btn {
  align-self: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent, var(--pink)); color: #fff;
  display: grid; place-items: center; font-size: 18px; font-weight: 900;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent, var(--pink)) 45%, transparent);
}

.ad-slot {
  margin: 14px 16px; padding: 18px; border-radius: var(--radius-sm);
  border: 1.5px dashed rgba(255,255,255,.12); background: rgba(255,255,255,.02);
  text-align: center; color: var(--muted); font-size: 12px;
}
.ad-slot strong { display: block; color: #6a6a7a; font-size: 10px; margin-bottom: 4px; letter-spacing: 1.2px; }

.footer {
  text-align: center; padding: 20px 16px 36px; color: #5a5a6a; font-size: 11px; line-height: 1.65;
}
.footer a { color: #7a7a8a; text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { color: #b0b0c0; }
.footer-dirs { display: inline-block; margin-top: 6px; opacity: .85; }
.footer-badge { display: inline-block; margin-top: 10px; }
.footer-badge img { vertical-align: middle; opacity: .9; }

/* ===== QUIZ ===== */
.quiz-top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7,7,12,.82); backdrop-filter: blur(16px) saturate(1.2);
  padding: 12px 16px 12px; border-bottom: 1px solid var(--stroke);
}
.quiz-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.back-btn {
  background: rgba(255,255,255,.05); color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--stroke);
}
.quiz-progress-text { font-size: 12px; color: var(--muted); font-weight: 600; }
.progress-bar {
  height: 7px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  border-radius: 99px; transition: width .28s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 12px rgba(255,61,110,.5);
}
.quiz-body { padding: 26px 18px; animation: rise .35s ease; }
.q-emoji { font-size: 42px; margin-bottom: 14px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); }
.q-title {
  font-size: clamp(22px, 6vw, 26px); font-weight: 900; line-height: 1.3;
  margin-bottom: 22px; letter-spacing: -.4px;
}
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  text-align: left; padding: 15px 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1.5px solid var(--stroke);
  border-radius: 16px; color: var(--text); font-size: 14.5px; line-height: 1.4; font-weight: 500;
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
.option:hover { border-color: var(--stroke-strong); }
.option:active { transform: scale(.985); }
.option.selected {
  border-color: rgba(255,61,110,.7);
  background: rgba(255,61,110,.14);
  box-shadow: 0 8px 24px rgba(255,61,110,.18);
}
.option .opt-letter {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 8px; font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,.08); margin-right: 10px; vertical-align: middle;
}
.option.selected .opt-letter { background: var(--pink); color: #fff; }

/* ===== RESULT ===== */
.result-wrap { padding: 18px 16px 40px; animation: rise .4s ease; }
.result-card-preview {
  border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(circle at 85% 8%, rgba(255,61,110,.35), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(61,231,255,.2), transparent 40%),
    linear-gradient(165deg, #1b1224 0%, #0c1520 48%, #16102a 100%);
  border: 1px solid rgba(255,255,255,.12);
  padding: 30px 22px 22px;
  position: relative;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,61,110,.08);
}
.result-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px; font-weight: 700;
}
.result-emoji {
  font-size: 64px; margin-bottom: 8px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.35));
  animation: pop .5s cubic-bezier(.2,1.4,.3,1);
}
.result-title {
  font-size: clamp(28px, 7vw, 34px); font-weight: 900; line-height: 1.15;
  margin-bottom: 12px; letter-spacing: -.6px;
  background: linear-gradient(100deg, #fff 20%, var(--yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-desc {
  font-size: 14.5px; line-height: 1.65; color: #d6d6e4;
  margin-bottom: 16px;
}
.result-traits { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.trait {
  font-size: 12px; padding: 7px 12px; border-radius: 999px; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #ffe9a8;
}
.result-brand {
  font-size: 11px; color: #7a7a8a;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.result-brand b {
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}

.action-stack { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; border-radius: 16px; font-size: 15px; font-weight: 800; width: 100%;
  transition: transform .12s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn-secondary {
  background: rgba(255,255,255,.05); color: var(--text); border: 1.5px solid var(--stroke-strong);
}
.btn-ghost {
  background: transparent; color: var(--cyan); border: 1.5px dashed rgba(61,231,255,.4);
}
.btn-douyin {
  background: #0b0b10; color: #fff; border: 1.5px solid #2a2a38;
}
.btn-douyin::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 8px 0 0 var(--pink);
  margin-right: 4px;
}
.btn-share-xl {
  background: linear-gradient(100deg, #ff3d6e, #ff7aa2 50%, #ffe566);
  color: #120810;
  font-size: 16px; font-weight: 900;
  padding: 17px 16px; border-radius: 16px;
  box-shadow: 0 12px 30px rgba(255,61,110,.4);
  letter-spacing: .2px; min-height: 54px;
}
.btn-share-xl.alt {
  background: linear-gradient(100deg, #3de7ff, #b56cff);
  color: #07070c;
  box-shadow: 0 12px 30px rgba(61,231,255,.25);
}
.btn-colleague {
  background: rgba(255,229,102,.06);
  color: var(--yellow);
  border: 1.5px solid rgba(255,229,102,.45);
  font-size: 15px; font-weight: 800;
  padding: 15px; min-height: 50px;
}

.share-hint {
  margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5;
}
.share-copy-box {
  margin-top: 12px; padding: 14px; background: rgba(255,255,255,.03); border-radius: 14px;
  font-size: 13px; color: #b0b0c0; line-height: 1.55; border: 1px solid var(--stroke);
  word-break: break-word; white-space: pre-wrap;
}

.hidden { display: none !important; }

.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(16px);
  background: rgba(255,255,255,.96); color: #111; padding: 12px 18px;
  border-radius: 999px; font-size: 13.5px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 100;
  max-width: calc(100vw - 40px); text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

#shareCanvas { position: absolute; left: -9999px; top: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  from { opacity: 0; transform: scale(.7); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

@media (min-width: 481px) {
  .app {
    margin-top: 12px; margin-bottom: 24px;
    border: 1px solid var(--stroke);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
    overflow: clip;
    background: rgba(7,7,12,.55);
  }
}

html[data-lang="en"] .hero h1 { letter-spacing: -1.2px; }
html[data-lang="en"] .q-title { letter-spacing: -.5px; }

/* ===== BGM / MUTE ===== */
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.btn-mute {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid var(--stroke);
  color: var(--text); font-size: 16px; line-height: 1;
  display: grid; place-items: center;
  transition: .2s ease;
}
.btn-mute:hover { border-color: var(--stroke-strong); background: rgba(255,255,255,.1); }
.btn-mute[aria-pressed="true"] { opacity: .7; }

.bgm-prompt {
  position: fixed; left: 50%; bottom: calc(28px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 90;
  width: min(360px, calc(100vw - 28px));
  background: rgba(18,18,28,.94);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  display: flex; flex-direction: column; gap: 10px;
  animation: rise .35s ease;
}
.bgm-prompt p { font-size: 13.5px; color: #e8e8f2; line-height: 1.45; font-weight: 600; }
.bgm-prompt-actions { display: flex; gap: 8px; }
.bgm-prompt-actions button {
  flex: 1; padding: 10px 12px; border-radius: 12px; font-weight: 800; font-size: 13px;
}
.bgm-yes {
  background: linear-gradient(100deg, var(--pink), var(--yellow));
  color: #120810;
}
.bgm-no {
  background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--stroke);
}

/* ===== ONBOARDING ===== */
#onboarding {
  position: fixed; inset: 0; z-index: 80;
  pointer-events: none;
}
#onboarding:not(.hidden) { pointer-events: auto; }
#ob-backdrop {
  position: absolute; inset: 0;
  background: rgba(3,3,8,.55);
  backdrop-filter: blur(2px);
}
.ob-card {
  position: absolute; left: 50%; bottom: calc(24px + var(--safe-bottom));
  transform: translateX(-50%);
  width: min(400px, calc(100vw - 24px));
  background: linear-gradient(160deg, #1a1226, #0e1420);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 18px 16px 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  animation: rise .35s ease;
  z-index: 2;
}
.ob-card h3 {
  font-size: 17px; font-weight: 900; margin-bottom: 8px;
  background: linear-gradient(90deg, #fff, var(--yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ob-card p { font-size: 13.5px; color: #c8c8d8; line-height: 1.55; margin-bottom: 14px; }
.ob-actions { display: flex; gap: 8px; align-items: center; }
.ob-actions .ob-next {
  flex: 1; padding: 12px; border-radius: 14px; font-weight: 900; font-size: 14px;
  background: linear-gradient(100deg, var(--pink), #ff7aa2 55%, var(--yellow));
  color: #120810;
}
.ob-actions .ob-skip {
  padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 13px;
  background: transparent; color: var(--muted); border: 1px solid var(--stroke);
}

.ob-spotlight {
  position: relative; z-index: 85 !important;
  box-shadow: 0 0 0 3px rgba(255,61,110,.55), 0 0 28px rgba(255,61,110,.35) !important;
  animation: glowpulse 1.6s ease infinite;
  border-radius: inherit;
}

@keyframes glowpulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,61,110,.5), 0 0 20px rgba(255,61,110,.25); }
  50% { box-shadow: 0 0 0 5px rgba(61,231,255,.55), 0 0 32px rgba(61,231,255,.3); }
}

/* ===== MICRO MOTION ===== */
.progress-fill {
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 12px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55));
  filter: blur(1px);
  opacity: .7;
}
.quiz-body.q-enter { animation: rise .32s ease; }
.result-card-preview.result-reveal {
  animation: resultReveal .55s cubic-bezier(.2,1.1,.3,1) both;
}
@keyframes resultReveal {
  0% { opacity: 0; transform: scale(.92) translateY(12px); filter: blur(4px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.btn-share-xl.pulse-share {
  animation: sharePulse 1.8s ease-in-out infinite;
}
@keyframes sharePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 30px rgba(255,61,110,.4); }
  50% { transform: scale(1.02); box-shadow: 0 16px 40px rgba(255,61,110,.55), 0 0 0 6px rgba(255,61,110,.12); }
}


/* ===== BATTLE / SHARE FUNNEL ===== */
.result-stamp {
  position: absolute; top: 18px; right: 16px;
  font-size: 11px; font-weight: 900; letter-spacing: 2px;
  color: #ff3d6e; border: 2px solid rgba(255,61,110,.65);
  padding: 4px 8px; border-radius: 6px; transform: rotate(8deg);
  background: rgba(255,61,110,.08);
  text-shadow: 0 0 12px rgba(255,61,110,.35);
}
.battle-banner {
  margin-top: 14px; padding: 14px 16px; border-radius: 16px;
  background:
    linear-gradient(105deg, rgba(255,61,110,.18), rgba(255,229,102,.1) 55%, rgba(61,231,255,.12));
  border: 1.5px solid rgba(255,229,102,.4);
  box-shadow: 0 10px 28px rgba(255,61,110,.15);
  animation: battleIn .45s ease both;
}
.battle-banner-title { font-size: 15px; font-weight: 900; color: #ffe566; margin-bottom: 4px; }
.battle-banner-sub { font-size: 12.5px; color: #d6d6e4; line-height: 1.45; }
@keyframes battleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn-battle {
  background: linear-gradient(100deg, #ffe566, #ff9f43 55%, #ff3d6e);
  color: #1a0c08;
  font-size: 16px; font-weight: 900;
  padding: 17px 16px; border-radius: 16px; min-height: 54px;
  box-shadow: 0 12px 32px rgba(255,159,67,.4);
  animation: sharePulse 1.8s ease-in-out infinite;
}
.share-copy-box a, .share-copy-box .share-url-hl {
  color: #3de7ff; font-weight: 700; word-break: break-all;
}

.share-funnel {
  margin: 12px 0 4px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(61,231,255,.35);
  background: rgba(61,231,255,.06);
  text-align: center;
}
.share-funnel-step {
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: .2px;
}

.btn-battle.pulse-battle {
  animation: battlePulse 1.2s ease-in-out infinite;
}
@keyframes battlePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 32px rgba(255,159,67,.4); }
  50% { transform: scale(1.045); box-shadow: 0 18px 44px rgba(255,61,110,.55), 0 0 0 8px rgba(255,229,102,.18); }
}


/* Wave18 · home CTA / less friction */
.hero-cta-wrap { margin: 6px 0 4px; }
.btn-start-now {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 14px 18px;
  border-radius: 16px; border: 1px solid rgba(255,45,85,.45);
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b35 100%);
  color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .2px;
  text-decoration: none; box-shadow: 0 12px 28px rgba(255,45,85,.28);
}
.btn-start-now:active { transform: scale(.985); }
.hero-cta-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.ad-slot-deferred { display: none !important; }


/* Wave20 · result share + next-test visibility */
.action-stack-primary { margin-top: 14px; gap: 12px; }
.action-stack-primary .btn-share-xl,
.action-stack-primary .btn-battle {
  font-size: 17px;
  min-height: 58px;
  padding: 18px 16px;
  border: 2px solid rgba(255,255,255,.18);
}
.action-stack-primary .btn-share-xl {
  box-shadow: 0 14px 34px rgba(255,61,110,.48), 0 0 0 1px rgba(255,229,102,.15);
}
.action-stack-secondary { margin-top: 10px; gap: 8px; opacity: .92; }

.next-tests-panel {
  margin: 18px 0 8px;
  padding: 16px 14px 14px;
  border-radius: 18px;
  border: 1.5px solid rgba(61,231,255,.45);
  background:
    linear-gradient(145deg, rgba(61,231,255,.12), rgba(181,108,255,.1) 55%, rgba(255,61,110,.08));
  box-shadow: 0 12px 32px rgba(61,231,255,.12);
}
.next-tests-label {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--cyan);
  margin-bottom: 10px;
}
.btn-another-xl {
  background: linear-gradient(100deg, #3de7ff, #b56cff 55%, #ff7aa2);
  color: #07070c;
  font-size: 17px;
  font-weight: 900;
  padding: 17px 16px;
  border-radius: 16px;
  min-height: 56px;
  box-shadow: 0 12px 30px rgba(61,231,255,.35);
  border: none;
  margin-bottom: 8px;
  animation: anotherPulse 2s ease-in-out infinite;
}
.btn-retake-lg {
  background: rgba(255,255,255,.07);
  color: #f2f2fa;
  border: 1.5px solid rgba(255,255,255,.28);
  font-size: 15px;
  font-weight: 800;
  padding: 14px 16px;
  min-height: 50px;
  border-radius: 14px;
}
@keyframes anotherPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 30px rgba(61,231,255,.35); }
  50% { transform: scale(1.02); box-shadow: 0 16px 40px rgba(181,108,255,.45), 0 0 0 6px rgba(61,231,255,.12); }
}
.ad-slot-result-bottom { opacity: .75; }
.share-funnel {
  border-width: 1.5px;
  background: rgba(61,231,255,.1);
}
.share-funnel-step { font-size: 14px; }


/* Wave22 · duel funnel */
.btn-battle-hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 19px !important; min-height: 72px !important; padding: 16px 16px !important;
  border: 2.5px solid #ffe566 !important;
  box-shadow: 0 16px 40px rgba(255,61,110,.55), 0 0 0 4px rgba(255,229,102,.18) !important;
}
.btn-battle-hero .bb-main { font-size: 19px; font-weight: 900; letter-spacing: .3px; }
.btn-battle-hero .bb-sub { font-size: 12px; font-weight: 700; opacity: .78; }
.challenge-banner {
  margin: 12px 16px 0; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(105deg, rgba(255,61,110,.28), rgba(255,159,67,.18) 60%, rgba(255,229,102,.14));
  border: 2px solid rgba(255,61,110,.65);
  box-shadow: 0 12px 30px rgba(255,61,110,.28);
  animation: battleIn .45s ease both, challengeShake 2.4s ease-in-out .5s 2;
}
.challenge-title { font-size: 16px; font-weight: 900; color: #ffe566; margin-bottom: 4px; line-height: 1.35; }
.challenge-sub { font-size: 13px; color: #f1e6ea; font-weight: 700; }
@keyframes challengeShake {
  0%, 100% { transform: translateX(0); }
  10%, 30% { transform: translateX(-3px) rotate(-.4deg); }
  20%, 40% { transform: translateX(3px) rotate(.4deg); }
  50% { transform: translateX(0); }
}
.vs-panel {
  position: relative; margin-top: 14px; padding: 18px 16px 14px; border-radius: 18px; text-align: center;
  background: linear-gradient(120deg, rgba(61,231,255,.16), rgba(255,61,110,.2));
  border: 2px solid rgba(255,229,102,.55);
}
.vs-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: #ff3d6e; color: #fff; font-weight: 900; font-size: 13px; letter-spacing: 2px;
  padding: 4px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(255,61,110,.5);
}
.vs-title { font-size: 15px; font-weight: 900; color: #fff; line-height: 1.45; }
.vs-verdict { margin-top: 6px; font-size: 13px; color: #ffe566; font-weight: 800; }
.hidden.challenge-banner, .hidden.vs-panel { display: none !important; }
