/* =====================================================
   RESET & TOKENS
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
  touch-action: manipulation;
}
:root {
  --pink: #ffb6d5;
  --purple: #c8a8e9;
  --violet: #b09ce6;
  --blue: #8fd5f0;
  --teal: #a8eeee;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* =====================================================
   BACKGROUND LAYERS
   ===================================================== */
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grid-overlay {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: 1; pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}
.vignette {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, rgba(0,0,0,0.6) 90%);
  z-index: 2; pointer-events: none;
}
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 4; }

/* =====================================================
   SCREEN ROUTING
   ===================================================== */
#stage { position: relative; width: 100%; height: 100dvh; z-index: 3; overflow: hidden; }
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: max(20px, var(--safe-top)) 22px max(20px, var(--safe-bot));
  opacity: 0; pointer-events: none;
  transition: opacity 0.55s ease;
}
.screen.active { opacity: 1; pointer-events: auto; }

/* =====================================================
   INTRO
   ===================================================== */
#intro { gap: 22px; }
.logo-stage {
  position: relative;
  width: min(64vw, 280px);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.halo {
  position: absolute; inset: -18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 32%, rgba(255,182,213,0.30), transparent 55%),
    radial-gradient(circle at 72% 32%, rgba(143,213,240,0.30), transparent 55%),
    radial-gradient(circle at 30% 72%, rgba(200,168,233,0.26), transparent 60%),
    radial-gradient(circle at 70% 72%, rgba(168,238,238,0.26), transparent 60%);
  filter: blur(30px);
  opacity: 0;
  animation: halo-in 1.4s ease 0.4s forwards, halo-pulse 5s ease-in-out 2s infinite;
}
@keyframes halo-in { to { opacity: 1; } }
@keyframes halo-pulse {
  0%, 100% { opacity: 0.85; transform: scale(0.96); }
  50%      { opacity: 1.00; transform: scale(1.06); }
}
.logo-img-wrap { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.logo-img {
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(1.16); filter: blur(18px);
  animation:
    logoIn 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards,
    logoBreathe 5.5s ease-in-out 2s infinite;
}
@keyframes logoIn {
  0%   { opacity: 0; transform: scale(1.16); filter: blur(18px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); filter: blur(0px) drop-shadow(0 0 28px rgba(200,168,233,0.40)); }
}
@keyframes logoBreathe {
  0%, 100% { transform: scale(1); filter: blur(0) drop-shadow(0 0 28px rgba(200,168,233,0.40)); }
  50%      { transform: scale(1.025); filter: blur(0) drop-shadow(0 0 40px rgba(200,168,233,0.60)); }
}
.logo-shimmer {
  position: absolute; inset: 0;
  background-image: url('logo-web.png');
  background-size: contain; background-position: center; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, rgba(0,0,0,0.6) 48%, rgba(0,0,0,0.95) 50%, rgba(0,0,0,0.6) 52%, transparent 65%);
  mask-image: linear-gradient(115deg, transparent 35%, rgba(0,0,0,0.6) 48%, rgba(0,0,0,0.95) 50%, rgba(0,0,0,0.6) 52%, transparent 65%);
  -webkit-mask-size: 240% 240%; mask-size: 240% 240%;
  -webkit-mask-position: -50% 50%; mask-position: -50% 50%;
  mix-blend-mode: screen;
  filter: brightness(2) saturate(0.4);
  opacity: 0;
  animation: shimmer-in 0.6s ease 2s forwards, shimmer-sweep 4.5s ease-in-out 2.4s infinite;
}
@keyframes shimmer-in { to { opacity: 0.85; } }
@keyframes shimmer-sweep {
  0%, 100% { -webkit-mask-position: -60% 50%; mask-position: -60% 50%; }
  50%      { -webkit-mask-position:  60% 50%; mask-position:  60% 50%; }
}

.brand-text { text-align: center; opacity: 0; animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s forwards; }
.brand-text .name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  font-size: clamp(34px, 9.5vw, 44px);
  letter-spacing: 0.40em;
  background: linear-gradient(90deg, var(--pink), var(--violet) 50%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-transform: uppercase;
  padding-left: 0.40em;
}
.brand-text .tag {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); font-weight: 400;
}
.brand-text .tag-rule {
  display: inline-block; width: 36px; height: 1px;
  background: rgba(255,255,255,0.35);
  vertical-align: middle; margin: 0 12px;
}

.sample-input { width: 100%; max-width: 320px; opacity: 0; animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 2.0s forwards; }
.sample-input input {
  width: 100%; padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-family: inherit; font-size: 14px;
  text-align: center; letter-spacing: 0.04em;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, background 0.25s ease;
  outline: none;
}
.sample-input input::placeholder { color: rgba(255,255,255,0.35); font-style: italic; }
.sample-input input:focus { border-color: rgba(200,168,233,0.5); background: rgba(255,255,255,0.06); }

.cta-wrap { margin-top: 4px; opacity: 0; animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 2.3s forwards; }
.begin-btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 30px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-family: inherit; font-size: 13px; font-weight: 500;
  letter-spacing: 0.30em; text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.2s ease, background 0.3s ease, border-color 0.3s ease;
}
.begin-btn::before {
  content: ""; position: absolute; inset: -2px; border-radius: 999px;
  background: conic-gradient(from 0deg, transparent, var(--pink), var(--violet), var(--blue), transparent 60%);
  opacity: 0.55; z-index: -1;
  animation: spin 4s linear infinite;
  filter: blur(7px);
}
.begin-btn:active { transform: scale(0.97); background: rgba(255,255,255,0.08); }
.begin-btn .arrow { display: inline-block; transition: transform 0.3s ease; }
.begin-btn:active .arrow { transform: translateX(4px); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =====================================================
   EVALUATION
   ===================================================== */
#eval { justify-content: flex-start; padding-top: max(36px, calc(var(--safe-top) + 18px)); }
.eval-header {
  width: 100%; max-width: 520px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; column-gap: 14px;
  margin-bottom: 18px;
}
.mini-logo { width: 32px; height: 32px; }
.mini-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px rgba(200,168,233,0.5)); }
.dim-chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  padding: 7px 12px; border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.qcounter { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; text-align: right; min-width: 48px; }
.qcounter .num { color: #fff; }
.qcounter .sep { opacity: 0.4; margin: 0 2px; }

.progress-row { width: 100%; max-width: 520px; height: 3px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; margin-bottom: 26px; position: relative; }
.progress-fill { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, var(--pink), var(--violet), var(--blue)); border-radius: 999px; transition: width 0.55s cubic-bezier(0.65, 0, 0.35, 1); box-shadow: 0 0 12px rgba(200, 168, 233, 0.55); }

.question-area { width: 100%; max-width: 520px; flex: 1; position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.qcard {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  opacity: 0; transform: translateY(28px); pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.qcard.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.qcard.exit { opacity: 0; transform: translateY(-22px); }

.submetric-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.30em; color: rgba(255,255,255,0.45); text-transform: uppercase; }
.submetric-name {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(24px, 6.5vw, 30px); line-height: 1.18; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.submetric-tag { margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reverse-tag, .new-tag {
  display: inline-block; padding: 3px 9px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 999px; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03);
}
.new-tag {
  background: linear-gradient(135deg, rgba(255,182,213,0.20), rgba(143,213,240,0.20));
  border-color: rgba(255,255,255,0.20); color: #fff;
}
.submetric-desc {
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255,255,255,0.68);
  border-left: 1px solid rgba(255,255,255,0.10);
  padding-left: 14px;
}

.rating-section { display: flex; flex-direction: column; gap: 12px; }
.rating-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rate-btn {
  position: relative; aspect-ratio: 1 / 1.05;
  display: grid; place-items: center; border-radius: 14px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-family: var(--mono); font-size: clamp(20px, 5.6vw, 24px); font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  overflow: hidden;
}
.rate-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--violet) 50%, var(--blue));
  opacity: 0; transition: opacity 0.25s ease; z-index: -1;
}
.rate-btn:active { transform: scale(0.94); background: rgba(255,255,255,0.07); }
.rate-btn.selected {
  color: #0b0b10; border-color: transparent; background: transparent;
  box-shadow: 0 8px 28px -10px rgba(200,168,233,0.55);
  transform: scale(1.04);
}
.rate-btn.selected::before { opacity: 1; }
.rating-hint { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.42); padding: 0 4px; }

.qcard.active .rate-btn { animation: rateEnter 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.qcard.active .rate-btn:nth-child(1) { animation-delay: 0.18s; }
.qcard.active .rate-btn:nth-child(2) { animation-delay: 0.24s; }
.qcard.active .rate-btn:nth-child(3) { animation-delay: 0.30s; }
.qcard.active .rate-btn:nth-child(4) { animation-delay: 0.36s; }
.qcard.active .rate-btn:nth-child(5) { animation-delay: 0.42s; }
@keyframes rateEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; width: 100%; max-width: 520px; }
.back-btn {
  background: transparent; border: none;
  color: rgba(255,255,255,0.55);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 10px 4px; cursor: pointer;
  transition: color 0.2s ease;
}
.back-btn:active { color: #fff; }
.back-btn[disabled] { opacity: 0.25; pointer-events: none; }

/* =====================================================
   CHAPTER (dimension transition)
   ===================================================== */
.chapter-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.chapter-card.active { opacity: 1; transform: translateY(0); }
.chapter-key { font-family: var(--mono); font-size: 13px; letter-spacing: 0.40em; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.chapter-name {
  font-family: "Space Grotesk", sans-serif; font-weight: 400;
  font-size: clamp(34px, 9vw, 44px); line-height: 1.15;
  background: linear-gradient(135deg, var(--pink), var(--violet) 50%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chapter-sub { font-size: 14px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; max-width: 320px; }
.chapter-meta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: rgba(255,255,255,0.55);
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03);
}
.chapter-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.4); display: inline-block; }
.chapter-meta .accent { color: #fff; }

/* =====================================================
   RESULT  (the shareable card)
   ===================================================== */
#result {
  justify-content: flex-start;
  padding-top: max(28px, calc(var(--safe-top) + 14px));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.result-inner {
  width: 100%; max-width: 540px;
  display: flex; flex-direction: column; align-items: stretch;
  gap: 18px; padding-bottom: 24px;
}
.share-card {
  position: relative; width: 100%; border-radius: 24px;
  background:
    radial-gradient(ellipse 140% 80% at 50% 0%, rgba(200,168,233,0.18), transparent 60%),
    radial-gradient(ellipse 140% 80% at 50% 100%, rgba(143,213,240,0.16), transparent 60%),
    linear-gradient(180deg, rgba(20,20,28,0.9) 0%, rgba(8,8,14,0.92) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 28px 22px 26px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(180,160,220,0.25);
}
.share-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 1px;
  background: linear-gradient(135deg, rgba(255,182,213,0.25), rgba(143,213,240,0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.share-card-content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }

.result-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.40em; color: rgba(255,255,255,0.55); text-transform: uppercase; opacity: 0; animation: rise 0.7s ease 0.1s forwards; }

.result-logo { width: 92px; aspect-ratio: 1 / 1; opacity: 0; transform: scale(0.85); animation: resultLogoIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards; filter: drop-shadow(0 0 18px rgba(200,168,233,0.45)); }
.result-logo img { width: 100%; height: 100%; object-fit: contain; }
@keyframes resultLogoIn { to { opacity: 1; transform: scale(1); } }

.you-are-a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.40em; color: rgba(255,255,255,0.55); text-transform: uppercase; opacity: 0; animation: rise 0.7s ease 0.45s forwards; }
.analyst-title {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(36px, 11vw, 52px); line-height: 1; text-align: center;
  background: linear-gradient(135deg, var(--pink), var(--violet) 45%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: titleReveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s forwards;
}
@keyframes titleReveal {
  from { opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    filter: blur(0); }
}
.analyst-desc { text-align: center; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.78); max-width: 340px; opacity: 0; animation: rise 0.7s ease 0.85s forwards; }

.divider { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); margin: 4px 0; opacity: 0; animation: rise 0.7s ease 1.0s forwards; }

.total-row { display: flex; align-items: baseline; gap: 8px; opacity: 0; animation: rise 0.7s ease 1.05s forwards; }
.total-score {
  font-family: "Space Grotesk", sans-serif; font-weight: 300;
  font-size: clamp(46px, 14vw, 64px); line-height: 1;
  background: linear-gradient(135deg, var(--pink), var(--violet) 45%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; letter-spacing: -0.04em;
}
.total-divisor { font-family: var(--mono); font-size: 13px; letter-spacing: 0.10em; color: rgba(255,255,255,0.45); }

.product-stamp { margin-top: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.20em; color: rgba(255,255,255,0.4); text-transform: uppercase; text-align: center; word-break: break-word; opacity: 0; animation: rise 0.7s ease 1.2s forwards; }
.product-stamp .label { color: rgba(255,255,255,0.3); margin-right: 8px; }

.share-watermark { margin-top: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.32em; color: rgba(255,255,255,0.3); text-transform: uppercase; text-align: center; opacity: 0; animation: rise 0.7s ease 1.3s forwards; }

.breakdown { width: 100%; display: flex; flex-direction: column; gap: 10px; opacity: 0; animation: rise 0.7s ease 1.0s forwards; }
.breakdown-title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.30em; color: rgba(255,255,255,0.45); text-transform: uppercase; margin-bottom: 4px; }
.dim-row {
  display: grid; grid-template-columns: 32px 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.dim-row.top {
  background: linear-gradient(135deg, rgba(255,182,213,0.10), rgba(143,213,240,0.08));
  border-color: rgba(200,168,233,0.30);
}
.dim-key { font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,0.85); letter-spacing: 0.06em; font-weight: 500; }
.dim-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dim-info .label { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: #fff; overflow: hidden; }
.dim-info .label .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dim-info .label .wt { margin-left: auto; font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 0.10em; flex-shrink: 0; }
.dim-bar { height: 4px; width: 100%; background: rgba(255,255,255,0.07); border-radius: 999px; overflow: hidden; position: relative; }
.dim-bar-fill { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, var(--pink), var(--violet), var(--blue)); border-radius: 999px; transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 0 8px rgba(200,168,233,0.5); }
.dim-score { font-family: var(--mono); font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.dim-score .small { font-size: 10px; color: rgba(255,255,255,0.4); margin-left: 2px; }

.formula-line { width: 100%; text-align: center; font-family: var(--mono); font-size: 9.5px; color: rgba(255,255,255,0.32); letter-spacing: 0.10em; margin-top: 4px; line-height: 1.55; opacity: 0; animation: rise 0.7s ease 1.1s forwards; }

.submit-status { width: 100%; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.20em; color: rgba(255,255,255,0.40); text-transform: uppercase; margin-top: 4px; }
.submit-status.ok { color: rgba(168,238,238,0.80); }
.submit-status.fail { color: rgba(255,200,200,0.65); }
.submit-status .dotled { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgba(168,238,238,0.7); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 8px rgba(168,238,238,0.7); }
.submit-status.fail .dotled { background: rgba(255,180,180,0.7); box-shadow: 0 0 8px rgba(255,180,180,0.7); }
.submit-status.pending .dotled { background: rgba(255,255,255,0.5); animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: 0.3; } }

.result-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 6px; width: 100%; opacity: 0; animation: rise 0.7s ease 1.2s forwards; }
.ghost-btn {
  padding: 14px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-family: inherit; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s ease, background 0.25s ease;
}
.ghost-btn:active { transform: scale(0.97); background: rgba(255,255,255,0.08); }
.primary-btn {
  background: linear-gradient(135deg, rgba(255,182,213,0.20), rgba(143,213,240,0.20));
  border-color: rgba(255,255,255,0.25);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
