/* ==========================================================================
   ARUCA Strength Test page (strength.php). Builds on css/aruca.css tokens.
   ========================================================================== */

.st-page [hidden] { display: none !important; }

/* ---------- Intro ---------- */
.st-intro { min-height: 100dvh; display: flex; align-items: center; }
.st-intro .container { width: 100%; }
.st-intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.st-intro h1 { max-width: 16ch; }
.st-intro-map { margin: 0; }

.st-lang {
  display: inline-flex; padding: 4px; gap: 4px; margin-bottom: 1.75rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04);
}
.st-lang button {
  border: 0; background: transparent; color: var(--space-text); cursor: pointer;
  padding: 0.45rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.88rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.st-lang button[aria-pressed="true"] { background: var(--yellow); color: var(--yellow-deep); }
.st-lang button:focus-visible, .st-back:focus-visible, .st-exit:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}
.st-lang-sm { margin: 0; }
.st-lang-sm button { padding: 0.3rem 0.7rem; font-size: 0.78rem; }
.st-intro .st-lang, .st-result-hero .st-lang { display: flex; width: fit-content; }

.st-steps { display: grid; gap: 0.9rem; margin: 2rem 0 2.25rem; }
.st-steps li { display: flex; align-items: center; gap: 0.9rem; }
.st-steps strong { display: block; color: #fff; }
.st-steps li span:not(.step-dot) { display: block; color: var(--space-muted); font-size: 0.88rem; }
.st-intro-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.st-account-note {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem;
  color: var(--space-muted); font-size: 0.88rem;
}
.st-account-note svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue-glow); }

/* ==========================================================================
   Taking the test: a night sky that fills with one star per answer
   ========================================================================== */
body.st-focus { background: var(--space); color: var(--space-text); }
body.st-focus .navbar, body.st-focus .site-footer { display: none; }
body.st-focus #stApp { position: relative; z-index: 1; }

.st-sky {
  --glow: 0.25;
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  opacity: 0; transition: opacity 0.6s var(--ease);
  background:
    radial-gradient(90% 60% at 50% 115%, rgba(52, 168, 222, calc(var(--glow) * 0.28)), transparent 70%),
    radial-gradient(60% 45% at 85% -5%, rgba(255, 218, 104, calc(var(--glow) * 0.12)), transparent 70%),
    var(--space);
}
.st-sky.is-on { opacity: 1; }
.st-dust, .st-star {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
}
.st-dust { background: #fff; opacity: 0.22; }
.st-star {
  background: var(--sc); box-shadow: 0 0 calc(var(--s) * 2.5) var(--sc);
  animation: st-twinkle 4.5s ease-in-out infinite; animation-delay: calc(var(--d) * -1);
}
@keyframes st-twinkle { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.45; } }
.st-shoot {
  position: absolute; top: 14%; left: -12%; width: 160px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95));
  transform: rotate(14deg);
}
.st-shoot.is-go { animation: st-shoot 1.3s cubic-bezier(.3, .6, .3, 1) forwards; }
@keyframes st-shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(14deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(120vw, 30vh) rotate(14deg); }
}

/* ---------- Top bar ---------- */
.st-bar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(7, 14, 26, 0.72); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.st-bar .navbar-logo { font-size: 1.05rem; }
.st-bar-right { display: flex; align-items: center; gap: 0.75rem; }
.st-progress { display: grid; gap: 0.5rem; max-width: 520px; width: 100%; justify-self: center; }
.st-progress-label { font-size: 0.62rem; color: var(--space-muted); }
.st-progress-track {
  position: relative; height: 6px; margin: 6px 12px 6px 0;
  border-radius: 999px; background: rgba(255, 255, 255, 0.12);
}
.st-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-glow), var(--yellow));
  box-shadow: 0 0 12px rgba(255, 218, 104, 0.45);
  transition: width 0.5s var(--ease);
}
.st-mile {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--space-2); border: 1.5px solid rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.45);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.st-mile .dicon { width: 14px; height: 14px; }
.st-mile.is-lit {
  background: var(--c); border-color: var(--c); color: var(--space);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent), 0 0 18px var(--c);
  animation: st-mile-pop 0.6s var(--ease);
}
@keyframes st-mile-pop { 0% { transform: translate(-50%, -50%) scale(0.6); } 60% { transform: translate(-50%, -50%) scale(1.25); } 100% { transform: translate(-50%, -50%) scale(1); } }
.st-exit {
  display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--space-text);
  padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
}
.st-exit svg { width: 15px; height: 15px; }
.st-exit:hover { border-color: #fff; color: #fff; }

/* ---------- Stage ---------- */
.st-stage {
  max-width: 940px; margin: 0 auto;
  min-height: calc(100dvh - 64px);
  padding: clamp(2.5rem, 8vh, 5rem) 1.5rem 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.st-center { align-items: center; text-align: center; }
.st-q { animation: st-in 0.45s var(--ease) both; transition: opacity 0.17s ease, transform 0.17s ease; }
.st-q.is-leaving { opacity: 0; transform: translateY(-14px); }
@keyframes st-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.st-statement {
  color: #fff; text-align: center;
  font-size: clamp(1.55rem, 3.6vw, 2.45rem); line-height: 1.25; letter-spacing: -0.02em;
  max-width: 26ch; margin: 0 auto 3rem; min-height: 2.5em;
  display: flex; align-items: center; justify-content: center;
  text-wrap: balance;
}
.st-eyebrow { font-size: 0.72rem; color: var(--yellow); margin-bottom: 1.1rem; }

/* ---------- Answer orbs (Part 1 scale and Part 2 dots) ---------- */
.st-lo  { --tone: var(--blue-glow); }
.st-hi  { --tone: var(--yellow); }
.st-mid { --tone: rgba(232, 241, 249, 0.55); }
.st-lg { --o: 74px; }
.st-md { --o: 60px; }
.st-sm { --o: 46px; }

.st-scale {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.4rem, 2vw, 1.5rem);
  max-width: 780px; margin: 0 auto;
}
.st-opt, .st-dot {
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--space-muted);
  display: grid; justify-items: center; align-content: start; gap: 0.85rem;
  font: inherit; font-size: 0.88rem; font-weight: 500; line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}
.st-opt { grid-template-rows: 80px auto; }
.st-opt:focus-visible, .st-dot:focus-visible { outline: none; }
.st-opt:focus-visible .st-orb, .st-dot:focus-visible .st-orb { outline: 3px solid var(--blue); outline-offset: 5px; }
.st-orb {
  position: relative; align-self: center;
  width: var(--o); height: var(--o); border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--tone);
  background: color-mix(in srgb, var(--tone) 8%, transparent);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.st-orb .st-key { font-size: 0.72rem; color: var(--tone); transition: color 0.2s var(--ease); }
.st-opt-label { max-width: 12ch; transition: color 0.2s var(--ease); }
@media (hover: hover) {
  .st-opt:hover .st-orb, .st-dot:hover .st-orb {
    transform: scale(1.08); background: color-mix(in srgb, var(--tone) 22%, transparent);
    box-shadow: 0 0 22px color-mix(in srgb, var(--tone) 35%, transparent);
  }
  .st-opt:hover .st-opt-label { color: #fff; }
}
.st-opt[aria-pressed="true"] .st-orb, .st-dot[aria-pressed="true"] .st-orb {
  background: var(--tone);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--tone) 22%, transparent), 0 0 30px var(--tone);
}
.st-opt[aria-pressed="true"] .st-key, .st-dot[aria-pressed="true"] .st-key { color: var(--space); }
.st-opt[aria-pressed="true"] .st-opt-label { color: #fff; }
.is-picked .st-orb { animation: st-pop 0.38s var(--ease); }
.is-picked .st-orb::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--tone); animation: st-ring 0.65s ease-out forwards;
}
@keyframes st-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes st-ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }

.st-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; }
.st-back {
  display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
  border: 0; background: transparent; color: var(--space-muted); font-weight: 600; font-size: 0.92rem;
}
.st-back svg { width: 16px; height: 16px; }
.st-back:hover { color: #fff; }
.st-hint { color: var(--space-muted); font-size: 0.86rem; text-align: right; }

/* ---------- Bridge, waiting, error ---------- */
.st-bridge-text { color: var(--space-text); max-width: 56ch; margin: 0 auto 2rem; font-size: 1.05rem; }
.st-bridge .st-statement { margin-bottom: 1.25rem; min-height: 0; }
.st-wait .st-statement { min-height: 0; margin-bottom: 0; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.st-spark {
  display: block; width: 18px; height: 18px; margin: 0 auto 1.75rem; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 30px 6px rgba(255, 218, 104, 0.55);
  animation: st-breathe 1.4s ease-in-out infinite;
}
@keyframes st-breathe { 0%, 100% { transform: scale(0.8); opacity: 0.7; } 50% { transform: scale(1.25); opacity: 1; } }

/* ---------- Part 2 ---------- */
.st-b-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.7rem; }
.st-b-top .st-hint { text-align: left; }
.st-timer { font-size: 0.85rem; color: #fff; }
.st-timebar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); margin-bottom: 2rem; }
.st-timebar span {
  display: block; height: 100%; width: 100%; border-radius: 999px;
  background: var(--yellow); box-shadow: 0 0 12px rgba(255, 218, 104, 0.6);
}
.st-timebar.is-low span { background: #ff7b7b; box-shadow: 0 0 12px rgba(255, 123, 123, 0.7); }

.st-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.st-side {
  margin: 0; padding: 1.6rem 1.5rem; min-height: 160px;
  display: flex; align-items: center; gap: 0.9rem;
  border-radius: var(--r-card); color: #fff;
  background: rgba(255, 255, 255, 0.05); border: 1.5px solid rgba(255, 255, 255, 0.14);
  font-size: clamp(1.05rem, 2vw, 1.28rem); font-weight: 600; line-height: 1.38;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.st-left { --tone: var(--blue-glow); }
.st-right { --tone: var(--yellow); flex-direction: row-reverse; text-align: right; }
.st-side-tag {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; font-size: 0.7rem;
  background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone);
}
.st-side.is-chosen {
  border-color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 15%, transparent), 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}
.st-vs {
  align-self: center; font-size: 0.62rem; text-transform: uppercase; color: var(--space-muted);
  padding: 0.45rem 0.6rem; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
}
.st-dots { display: flex; justify-content: center; align-items: center; gap: clamp(0.75rem, 3vw, 1.75rem); margin-top: 2.25rem; }
.st-dots-legend {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; margin-top: 1rem;
  color: var(--space-muted); font-size: 0.82rem; font-weight: 500;
}
.st-dots-legend span:nth-child(2) { text-align: center; }
.st-dots-legend span:last-child { text-align: right; }
.st-dots-legend b { font-family: var(--font-pixel); font-weight: 400; color: var(--blue-glow); }
.st-dots-legend span:last-child b { color: var(--yellow); }

/* ==========================================================================
   Result
   ========================================================================== */
.st-result-hero { padding-bottom: 4rem; }
.st-result-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.st-result-hero .st-lang { margin-bottom: 1.5rem; }
.st-result-hero h1 { margin: 2.2rem 0 1rem; }
.st-profile-tag { color: var(--yellow); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.75rem; }
.st-hook {
  display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem;
  padding: 0.85rem 1rem; border-radius: 14px;
  background: var(--paper-tint); border: 1px dashed #c9d6e2; color: var(--ink); font-size: 0.9rem;
}
.st-hook svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.2rem; color: var(--blue-text); }
.st-hook-dark { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); color: var(--space-text); max-width: 60ch; }
.st-hook-dark svg { color: var(--yellow); }
.st-versatile { margin-top: 1rem; color: var(--space-muted); font-size: 0.9rem; max-width: 60ch; }
.st-versatile .pixel { color: var(--blue-glow); margin-right: 0.5rem; font-size: 0.75rem; }

/* #1 strength character standing in front of the strength map */
/* light card tinted in the domain color, close to the artwork's own background, so edges read clean */
.st-hero-art {
  position: relative; margin: 0 auto; width: 100%; max-width: 440px; aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  border-radius: var(--r-media);
  background:
    radial-gradient(70% 45% at 50% 100%, color-mix(in srgb, var(--c) 45%, white), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, white), color-mix(in srgb, var(--c) 24%, white));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.st-pedestal {
  position: absolute; left: 50%; bottom: 6%; width: 62%; height: 44px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 55%, transparent), transparent);
}
.st-hero-char {
  position: relative; z-index: 1; height: 82%; max-width: 88%; width: auto; object-fit: contain;
  margin-bottom: 8%;
  filter: drop-shadow(0 14px 18px rgba(7, 14, 26, 0.18));
  animation: st-rise 0.9s var(--ease) 0.15s both;
}
@keyframes st-rise { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: none; } }
.st-hero-art figcaption {
  position: absolute; z-index: 2; top: 1rem; left: 1rem;
  display: grid; gap: 0.2rem; padding: 0.7rem 1rem; border-radius: 14px;
  background: rgba(7, 14, 26, 0.75); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.st-hero-art figcaption .pixel { font-size: 0.58rem; color: var(--c); }
.st-hero-art figcaption strong { color: #fff; font-size: 1.15rem; }

.st-result-body { padding-top: 4rem; }
.st-block { margin-bottom: 4rem; }
.st-block > h2 { margin-bottom: 1.5rem; }
.st-flags {
  display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 2.5rem;
  padding: 1rem 1.25rem; border-radius: 14px; background: #fff6e0; color: #6b5a20; font-size: 0.92rem;
}
.st-flags svg { width: 18px; height: 18px; flex-shrink: 0; }

.st-domain-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.st-domain-map {
  margin: 0; padding: 1.25rem; border-radius: var(--r-media);
  background: radial-gradient(120% 100% at 70% 10%, #0f2138 0%, var(--space) 60%);
}
.st-domains { display: grid; gap: 1.1rem; }
.st-domains li { display: grid; grid-template-columns: 90px 1fr 48px; gap: 0.4rem 1rem; align-items: center; }
.st-dname, .st-chip { display: inline-flex; align-items: center; gap: 0.4rem; }
.st-dname { color: var(--ct); font-size: 0.85rem; }
.st-dname .dicon { width: 16px; height: 16px; }
.st-dbar { height: 14px; border-radius: 999px; background: var(--paper-tint); border: 1px solid var(--line); overflow: hidden; }
.st-dbar span { display: block; height: 100%; background: var(--c); border-radius: 999px; }
.st-dscore { font-family: var(--font-pixel); font-size: 0.9rem; text-align: right; }
.st-dsum { grid-column: 2 / 4; color: var(--muted); font-size: 0.85rem; }

/* Top 5: each strength with its character */
.st-top-list { display: grid; gap: 1rem; }
.st-top {
  display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem;
  padding: 1.1rem 1.75rem 1.1rem 1.1rem; border-radius: var(--r-card);
  background: #fff; border: 1px solid var(--line);
}
.st-top-art {
  min-height: 180px; border-radius: 16px; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; padding: 0.75rem 0.5rem 0;
  background: radial-gradient(90% 55% at 50% 100%, color-mix(in srgb, var(--c) 38%, white), color-mix(in srgb, var(--c) 10%, white));
}
.st-top-art img { width: 100%; height: 190px; object-fit: contain; object-position: bottom; }
.st-top-body { padding: 0.5rem 0; }
.st-top-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin-bottom: 0.75rem; }
.st-rank { font-size: 1.1rem; color: var(--ct); }
.st-top h3 { font-size: 1.35rem; }
.st-tagline { color: var(--muted); font-size: 0.9rem; }
.st-chip { font-size: 0.62rem; padding: 0.35em 0.9em; border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, white); color: var(--ct); }
.st-chip .dicon { width: 13px; height: 13px; }
.st-teaser { color: var(--ink); }

.st-locked-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.st-locked-list li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 1.2rem; border-radius: 16px; border: 1.5px dashed #c9d6e2; color: var(--muted); font-weight: 500;
  background: repeating-linear-gradient(135deg, #fff, #fff 10px, var(--paper-tint) 10px, var(--paper-tint) 20px);
}
.st-locked-list svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--blue-text); margin-top: 0.15rem; }

.st-cta { margin-bottom: 2rem; }
.st-save-card {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.75rem; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--paper-tint);
}
.st-save-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.st-save-card p { color: var(--muted); font-size: 0.92rem; max-width: 56ch; }
.st-save-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.st-saved { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.92rem; }
.st-saved svg { width: 17px; height: 17px; color: #1d7f55; }
.st-saved a { color: var(--blue-text); font-weight: 600; }
.st-result-body .st-back { color: var(--muted); }
.st-result-body .st-back:hover { color: var(--ink); }
.st-result-foot { margin-top: 2.5rem; display: grid; gap: 1rem; justify-items: start; }
.st-disclaimer { color: var(--muted); font-size: 0.82rem; max-width: 80ch; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .st-locked-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .st-intro-grid, .st-result-grid { grid-template-columns: 1fr; }
  .st-intro-map { max-width: 360px; margin: 0 auto; width: 100%; }
  .st-bar { grid-template-columns: 1fr auto; gap: 0.6rem 1rem; }
  .st-bar .navbar-logo { font-size: 0.95rem; }
  .st-progress { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .st-exit span { display: none; }
  .st-mile { width: 22px; height: 22px; }
  .st-mile .dicon { width: 12px; height: 12px; }

  .st-stage { min-height: calc(100dvh - 96px); padding: 2rem 1rem 2rem; }
  .st-statement { margin-bottom: 2.25rem; }
  .st-scale { gap: 0.2rem; }
  .st-lg { --o: 54px; } .st-md { --o: 44px; } .st-sm { --o: 36px; }
  .st-opt { grid-template-rows: 58px auto; gap: 0.6rem; font-size: 0.72rem; }
  .st-opt-label { max-width: 10ch; }
  .st-foot { flex-direction: column-reverse; align-items: flex-start; gap: 1.25rem; margin-top: 2.25rem; }
  .st-hint { text-align: left; color: var(--blue-glow); font-weight: 500; }

  .st-pair { grid-template-columns: 1fr; gap: 0.6rem; }
  .st-vs { justify-self: center; }
  .st-right { flex-direction: row; text-align: left; }
  .st-side { min-height: 0; padding: 1.2rem; }
  .st-dots-legend { font-size: 0.75rem; }

  .st-hero-art { max-width: 340px; }
  .st-domain-grid { grid-template-columns: 1fr; }
  .st-domain-map { max-width: 360px; width: 100%; margin: 0 auto; }
  .st-locked-list { grid-template-columns: 1fr; }
  .st-save-card { flex-direction: column; align-items: flex-start; }
  .st-domains li { grid-template-columns: 70px 1fr 40px; }

  /* card: character + title side by side, text full width below */
  .st-top { grid-template-columns: 96px 1fr; gap: 0.25rem 1rem; padding: 1rem; }
  .st-top-body { display: contents; }
  .st-top-art { grid-row: 1; min-height: 120px; padding-top: 0.5rem; }
  .st-top-art img { height: 120px; }
  .st-top-head { grid-row: 1; grid-column: 2; grid-template-columns: auto 1fr; gap: 0.4rem 0.75rem; margin: 0; align-self: center; }
  .st-top-head .st-chip { grid-column: 1 / -1; justify-self: start; }
  .st-teaser, .st-top .st-hook { grid-column: 1 / -1; }
  .st-teaser { margin-top: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .st-q, .st-star, .st-hero-char, .st-spark, .is-picked .st-orb, .is-picked .st-orb::after, .st-mile.is-lit { animation: none !important; }
  .st-q { transition: none; }
}

/* ---------- Footer sits flush against the dark intro (no white strip) ---------- */
.st-page .site-footer { margin-top: 0; }

/* ---------- Guide popup: benefits + how the test works ---------- */
.st-guide-open {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: 0; border: 0; background: none;
  color: var(--blue-glow); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
.st-guide-open svg { width: 18px; height: 18px; }
.st-guide {
  margin: auto; width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px;
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, .45); overflow: hidden;
}
.st-guide[open] { display: flex; flex-direction: column; animation: guide-in .45s var(--ease); }
.st-guide::backdrop { background: rgba(7, 14, 26, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes guide-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.st-guide-x {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer;
}
.st-guide-x svg { width: 18px; height: 18px; }
.st-guide-track { overflow-y: auto; }
.st-guide-slide { display: none; padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem) 1rem; }
.st-guide-slide.is-active { display: block; animation: slide-in .4s var(--ease); }
@keyframes slide-in { from { opacity: 0; transform: translateX(18px); } }
.st-guide-kicker { font-size: .62rem; color: var(--blue-text); margin-bottom: .75rem; padding-right: 3rem; }
.st-guide h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -.03em; margin-bottom: 1.4rem; padding-right: 2rem; }
.st-guide-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.st-guide-benefits > div {
  display: grid; gap: .25rem; padding: 1rem; border-radius: 18px;
  background: color-mix(in srgb, var(--c) 12%, white); border: 1px solid color-mix(in srgb, var(--c) 35%, white);
}
.st-guide-benefits span:not(.st-guide-ico) { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.st-guide-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c); color: var(--space); margin-bottom: .35rem; }
.st-guide-ico svg { width: 18px; height: 18px; }
.st-guide-demo { padding: 1.4rem; border-radius: 18px; background: var(--space); color: #fff; margin-bottom: 1.2rem; }
.st-guide-q { font-size: 1.1rem; font-weight: 600; text-align: center; margin-bottom: 1rem; }
.st-guide-scale { display: flex; justify-content: center; gap: .55rem; }
.st-guide-scale span {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, .3); color: var(--space-text);
}
.st-guide-scale span.on { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-deep); animation: pop 1.8s var(--ease) infinite; }
@keyframes pop { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.15); } }
.st-guide-scale-l { display: flex; justify-content: space-between; max-width: 290px; margin: .6rem auto 0; font-size: .74rem; color: var(--space-muted); }
.st-guide-timer { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-bottom: 1rem; }
.st-guide-timer span { display: block; height: 100%; background: var(--yellow); animation: timer 4s linear infinite; }
@keyframes timer { from { width: 100%; } to { width: 0; } }
.st-guide-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; }
.st-guide-pair div { padding: 1rem; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .2); font-size: .9rem; text-align: center; min-height: 86px; display: grid; place-items: center; }
.st-guide-pair div.on { border-color: var(--blue-glow); background: rgba(108, 196, 239, .15); }
.st-guide-pair b { font-family: var(--font-pixel); font-size: .7rem; color: var(--yellow); }
.st-guide-tips { display: grid; gap: .55rem; }
.st-guide-tips li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.st-guide-tips svg { flex: none; width: 18px; height: 18px; color: var(--blue-text); margin-top: 2px; }
.st-guide-result { display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; align-items: center; }
.st-guide-art {
  margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: radial-gradient(70% 45% at 50% 100%, color-mix(in srgb, var(--c) 42%, white), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--c) 8%, white), color-mix(in srgb, var(--c) 22%, white));
  border: 1px solid var(--line);
}
.st-guide-art img { width: 88%; height: 88%; object-fit: contain; object-position: bottom; }
.st-guide-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.st-guide-chips li { display: inline-flex; gap: .4rem; align-items: center; padding: .3rem .7rem .3rem .3rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 55%, white); font-weight: 600; font-size: .85rem; }
.st-guide-chips b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--space); font-size: .72rem; }
.st-guide-result p { color: var(--muted); font-size: .92rem; }
.st-guide-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem; border-top: 1px solid var(--line); }
.st-guide-dots { display: flex; gap: .4rem; }
.st-guide-dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.st-guide-dots span.on { width: 24px; background: var(--blue); }
.st-guide-nav { display: flex; gap: .5rem; }
.st-guide-btn { padding: .7rem 1.2rem; }
.st-guide-btn[hidden] { display: none !important; }
@media (max-width: 560px) {
  .st-guide-benefits, .st-guide-result { grid-template-columns: 1fr; }
  .st-guide-art { width: 120px; }
  .st-guide-pair { grid-template-columns: 1fr; }
  .st-guide-pair b { justify-self: center; }
  .st-guide-scale span { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-guide[open], .st-guide-slide.is-active, .st-guide-scale span.on, .st-guide-timer span { animation: none; }
}

/* ---------- "Kok aku banget?" insights ---------- */
.st-aha-eyebrow { color: var(--blue-text) !important; margin-bottom: .75rem; }
.st-aha-lead { color: var(--muted); margin: -.75rem 0 1.5rem; }
.st-aha-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.st-aha-card {
  position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.5rem; border-radius: var(--r-card);
  background: color-mix(in srgb, var(--c) 9%, white); border: 1.5px solid color-mix(in srgb, var(--c) 35%, white);
  animation: aha-in .7s var(--ease) both; animation-delay: var(--d);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
@keyframes aha-in { from { opacity: 0; transform: translateY(18px); } }
.st-aha-card.is-hit { border-color: var(--c); box-shadow: 0 16px 40px color-mix(in srgb, var(--c) 30%, transparent); transform: translateY(-3px); }
.st-aha-label { display: flex; gap: .4rem; align-items: center; font-size: .62rem; color: var(--ct); }
.st-aha-label svg { width: 16px; height: 16px; }
.st-aha-text { font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.5; color: var(--ink); font-weight: 500; flex: 1; }
.st-aha-react {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .9rem; background: #fff; color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--c) 45%, white);
  transition: background .2s, transform .2s var(--ease);
}
.st-aha-react:hover { transform: translateY(-1px); }
.st-aha-react[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--space); }
.st-aha-react[aria-pressed="true"] .st-aha-emoji { animation: aha-pop .5s var(--ease); }
@keyframes aha-pop { 50% { transform: scale(1.6) rotate(12deg); } }
.st-aha-react:focus-visible, .st-aha-unlock:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.st-aha-locked { overflow: hidden; }
.st-aha-blur { filter: blur(6px); user-select: none; }
.st-aha-unlock {
  position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 999px; background: var(--space); color: #fff; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(7, 14, 26, .3);
}
.st-aha-unlock svg { width: 16px; height: 16px; }
.st-aha-nudge {
  margin-top: 1.25rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; border-radius: var(--r-card); background: var(--space); color: var(--space-text); animation: aha-in .5s var(--ease);
}
.st-aha-nudge p { max-width: 60ch; }
.st-aha-nudge strong { color: var(--yellow); }
.st-offers { scroll-margin-top: calc(var(--nav-h) + 1rem); }
@media (max-width: 700px) { .st-aha-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .st-aha-card, .st-aha-nudge, .st-aha-react .st-aha-emoji { animation: none !important; } }

/* ---------- Big start button (replaces the intro domain map) ---------- */
.st-big-start {
  position: relative; justify-self: center; width: min(360px, 80vw); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-content: center; gap: .6rem; text-align: center; font: inherit; color: var(--yellow-deep);
  background: radial-gradient(circle at 35% 30%, #fff2bf 0%, var(--yellow) 45%, #f2bd2c 100%);
  box-shadow: 0 0 0 14px rgba(255, 218, 104, .12), 0 0 0 30px rgba(255, 218, 104, .06), 0 30px 80px rgba(255, 218, 104, .35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: big-breathe 3.2s ease-in-out infinite;
}
.st-big-start:hover { transform: scale(1.04); box-shadow: 0 0 0 18px rgba(255, 218, 104, .16), 0 0 0 38px rgba(255, 218, 104, .08), 0 34px 90px rgba(255, 218, 104, .45); }
.st-big-start:active { transform: scale(.98); }
.st-big-start:focus-visible { outline: 4px solid #fff; outline-offset: 8px; }
.st-big-start .pixel { font-size: .7rem; letter-spacing: .04em; }
.st-big-start strong { font-size: clamp(2rem, 4.5vw, 2.8rem); letter-spacing: -.03em; line-height: 1; }
.st-big-start .st-big-meta { font-size: .88rem; font-weight: 600; opacity: .8; }
.st-big-start svg { width: 34px; height: 34px; justify-self: center; transition: transform .3s var(--ease); }
.st-big-start:hover svg { transform: translateX(6px); }
@keyframes big-breathe { 50% { box-shadow: 0 0 0 22px rgba(255, 218, 104, .1), 0 0 0 44px rgba(255, 218, 104, .04), 0 30px 80px rgba(255, 218, 104, .3); } }
@media (max-width: 900px) { .st-big-start { width: min(260px, 70vw); margin-top: 1rem; } }
@media (prefers-reduced-motion: reduce) { .st-big-start { animation: none; } }
.st-aha-title { font-size: clamp(2.2rem, 5vw, 3.4rem) !important; }
.st-aha-locked { margin-top: 1rem; min-height: 150px; }
.st-aha-blur { filter: blur(5px); user-select: none; }
.st-aha-text .st-aha-blur { display: inline; }

/* ---------- Quiet zone behind the question: stars fade out where people read ---------- */
.st-stage { position: relative; isolation: isolate; }
.st-stage::before {
  content: ""; position: absolute; z-index: -1; inset: 4% -6%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(7, 14, 26, .97) 0%, rgba(7, 14, 26, .9) 55%, rgba(7, 14, 26, .55) 80%, transparent 100%);
}
body.st-focus .st-sky .st-dust, body.st-focus .st-sky .st-star { opacity: .55; }

/* ---------- Part 2: two statements, two clear colours ---------- */
.st-stage-b { --a: #6cc4ef; --b: #ffa24c; }
.st-stage-b .st-left { --tone: var(--a); }
.st-stage-b .st-right { --tone: var(--b); }
.st-stage-b .st-side {
  cursor: pointer; border-width: 2px; border-color: color-mix(in srgb, var(--tone) 70%, transparent);
  background: color-mix(in srgb, var(--tone) 14%, var(--space));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 20%, transparent);
}
.st-stage-b .st-side:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--tone) 22%, var(--space)); box-shadow: 0 0 30px color-mix(in srgb, var(--tone) 30%, transparent); }
.st-stage-b .st-side:focus-visible { outline: 3px solid var(--tone); outline-offset: 4px; }
.st-stage-b .st-side-tag { width: 34px; height: 34px; font-size: .8rem; background: var(--tone); color: var(--space); }
.st-stage-b .st-side.is-chosen { background: color-mix(in srgb, var(--tone) 30%, var(--space)); border-color: var(--tone); }
.st-stage-b .st-vs { color: #fff; border-color: rgba(255, 255, 255, .35); background: var(--space); }
.st-stage-b .st-lo { --tone: var(--a); }
.st-stage-b .st-hi { --tone: var(--b); }
.st-stage-b .st-dot .st-orb { background: color-mix(in srgb, var(--tone) 18%, transparent); border-width: 2.5px; }
.st-stage-b .st-dot.st-mid .st-orb { background: rgba(255, 255, 255, .06); }
.st-stage-b .st-dots-legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--space); }
.st-stage-b .st-dots-legend span:first-child b { background: var(--a); }
.st-stage-b .st-dots-legend span:last-child b { background: var(--b); }

/* ---------- Sign-in prompt before the test ---------- */
.st-gate { width: min(480px, calc(100vw - 32px)); }
.st-gate-body { padding: clamp(1.75rem, 4vw, 2.5rem); }
.st-gate h2 { margin-bottom: 1.1rem; }
.st-gate-points { display: grid; gap: .7rem; margin-bottom: 1.6rem; }
.st-gate-points li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); font-size: .95rem; }
.st-gate-points svg { flex: none; width: 20px; height: 20px; color: var(--blue-text); margin-top: 1px; }
.st-gate-actions { display: grid; gap: .7rem; }
.st-gate-google {
  width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: .7rem; padding: 1rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; background: #fff; color: #1f1f1f; border: 1.5px solid #747775;
  transition: box-shadow .2s, transform .2s var(--ease);
}
.st-gate-google:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .14); transform: translateY(-1px); }
.st-gate-google svg { width: 22px; height: 22px; }
.st-gate-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.st-gate-row .btn { justify-content: center; padding: .9rem 1rem; font-size: 1rem; }
.st-gate-guest { margin-top: 1.25rem; text-align: center; font-size: .8rem; color: var(--muted); }
.st-gate-guest button { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.st-gate-guest button:hover { color: var(--ink); }
.st-class-tag{display:inline-flex;gap:.45rem;align-items:center;margin:0 0 1rem;padding:.4rem .9rem;border-radius:999px;background:rgba(255,218,104,.14);border:1px solid rgba(255,218,104,.4);color:#ffe9a6;font-size:.88rem}.st-class-tag svg{width:16px;height:16px}
