/* ===== Tokens ===== */
:root {
  --space-deep: #050b2a;
  --space-mid: #0b1550;
  --space-violet: #1a0a4a;
  --neon-cyan: #3fe1e8;
  --neon-cyan-soft: #5ad8e6;
  --accent-red: #e8432f;
  --accent-orange: #ff6b35;
  --text: #f4f8ff;
  --text-muted: rgba(244, 248, 255, 0.72);
  --card: rgba(12, 24, 80, 0.72);
  --card-border: rgba(63, 225, 232, 0.28);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-neon: 0 0 24px rgba(63, 225, 232, 0.35);
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--space-deep);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Starfield ===== */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 28% 62%, rgba(63, 225, 232, 0.7), transparent),
    radial-gradient(1px 1px at 48% 22%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 72% 38%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 88% 70%, rgba(63, 225, 232, 0.6), transparent),
    radial-gradient(1px 1px at 64% 84%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 18% 88%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 42% 48%, rgba(255, 255, 255, 0.65), transparent);
  background-size: 100% 100%;
  opacity: 0.55;
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.4; }
  to { opacity: 0.7; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}

.btn:hover {
  transform: scale(1.04);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  color: #fff;
  box-shadow: 0 8px 28px rgba(232, 67, 47, 0.45), 0 0 20px rgba(63, 225, 232, 0.2);
}

.btn--primary:hover {
  box-shadow: 0 10px 32px rgba(232, 67, 47, 0.55), var(--shadow-neon);
}

.btn--secondary {
  background: transparent;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 16px rgba(63, 225, 232, 0.2);
}

.btn--secondary:hover {
  background: rgba(63, 225, 232, 0.12);
  box-shadow: var(--shadow-neon);
}

.btn--hero {
  position: relative;
  isolation: isolate;
  margin-top: clamp(2rem, 6vw, 3.25rem);
  min-height: clamp(5.25rem, 16vw, 6.25rem);
  padding: clamp(1.25rem, 4.8vw, 1.55rem) clamp(2.6rem, 11vw, 3.75rem);
  font-size: clamp(1.35rem, 5.8vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  animation: btn-nudge 4.5s ease-in-out infinite;
}

.btn--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  box-shadow:
    0 10px 32px rgba(232, 67, 47, 0.5),
    0 0 24px rgba(63, 225, 232, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: pulse-glow 2.2s ease-in-out infinite;
}

.btn--hero:hover {
  animation-play-state: paused;
  transform: scale(1.06);
}

.btn--hero:hover::before {
  animation-play-state: paused;
  box-shadow:
    0 12px 36px rgba(232, 67, 47, 0.62),
    0 0 28px rgba(63, 225, 232, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn__label {
  position: relative;
  z-index: 2;
}

.btn__mascot {
  position: absolute;
  left: var(--mascot-x, 38%);
  bottom: var(--mascot-y, 30%);
  width: clamp(4.5rem, 18vw, 5.5rem);
  height: clamp(4.5rem, 18vw, 5.5rem);
  transform: translate(-50%, 18%);
  transform-origin: 50% 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.btn__mascot.is-visible {
  opacity: 1;
  animation: mascot-peek-hide 5.7s ease-in-out infinite;
}

.btn__mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow:
      0 10px 32px rgba(232, 67, 47, 0.5),
      0 0 20px rgba(63, 225, 232, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  50% {
    box-shadow:
      0 14px 42px rgba(232, 67, 47, 0.68),
      0 0 34px rgba(63, 225, 232, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
}

@keyframes btn-nudge {
  0%, 78%, 100% { transform: scale(1); }
  84% { transform: scale(1.035); }
  90% { transform: scale(1.01); }
  94% { transform: scale(1.04); }
}

@keyframes mascot-peek-hide {
  0%, 100% {
    /* спрятан за кнопкой, чуть видна макушка сверху */
    transform: translate(-50%, 22%) rotate(-5deg);
  }
  14% {
    transform: translate(-50%, 22%) rotate(-5deg);
  }
  36%, 54% {
    /* выпрыгнул сверху примерно на 2/3 тела */
    transform: translate(-50%, -62%) rotate(3deg);
  }
  72% {
    transform: translate(-50%, 22%) rotate(-5deg);
  }
}

.btn--social {
  flex: 1;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.btn--vk {
  background: #0077ff;
  color: #fff;
}

.btn--tg {
  background: #229ed9;
  color: #fff;
}

/* ===== Brand logo ===== */
.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 1rem;
}

.hero__logo-link {
  display: block;
  width: min(100%, 520px);
  line-height: 0;
  text-decoration: none;
  color: inherit;
  animation: logo-glow 3.6s ease-in-out infinite;
}

.hero__logo-link--sm {
  width: min(100%, 340px);
}

.hero__logo-link:hover {
  animation-duration: 2.4s;
}

.hero__logo-link:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 6px;
  border-radius: 8px;
}

.hero__logo {
  display: block;
  width: 100%;
  height: auto;
}

.hero__logo--sm {
  width: 100%;
}

@keyframes logo-glow {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 14px rgba(63, 225, 232, 0.18));
  }
  50% {
    transform: scale(1.02);
    filter: drop-shadow(0 0 22px rgba(63, 225, 232, 0.4));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo-link {
    animation: none;
    filter: drop-shadow(0 0 18px rgba(63, 225, 232, 0.25));
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 42, 0.55) 0%, rgba(5, 11, 42, 0.78) 55%, var(--space-deep) 100%),
    linear-gradient(90deg, rgba(5, 11, 42, 0.35), rgba(11, 21, 80, 0.2)),
    image-set(
      url("assets/facade.webp") type("image/webp"),
      url("assets/facade.jpg") type("image/jpeg")
    ) center / cover no-repeat;
  transform: scale(1.05);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

/* Вертикальный постер лучше заполняет экран на мобильных */
@media (max-width: 767px) {
  .hero__bg {
    background:
      linear-gradient(180deg, rgba(5, 11, 42, 0.62) 0%, rgba(5, 11, 42, 0.82) 55%, var(--space-deep) 100%),
      linear-gradient(90deg, rgba(5, 11, 42, 0.4), rgba(11, 21, 80, 0.25)),
      image-set(
        url("assets/poster.webp") type("image/webp"),
        url("assets/poster.jpg") type("image/jpeg")
      ) center top / cover no-repeat;
  }
}

@keyframes hero-drift {
  from { transform: scale(1.05) translateY(0); }
  to { transform: scale(1.1) translateY(-2%); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: fade-up 0.9s var(--ease) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__date {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan-soft);
  text-shadow: 0 0 12px rgba(63, 225, 232, 0.45);
}

.hero__title {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 5vw, 2.15rem);
  line-height: 1.25;
  color: var(--neon-cyan-soft);
  text-shadow: 0 0 12px rgba(63, 225, 232, 0.45);
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid rgba(63, 225, 232, 0.5);
  border-radius: 14px;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--neon-cyan);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ===== Quiz ===== */
.quiz-section {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem 4rem;
  max-width: 680px;
  margin: 0 auto;
  overflow: visible;
}

/* Quiz character burst (non-layout) */
.quiz-fx {
  position: absolute;
  inset: -0.5rem -1.25rem;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.quiz-fx__char {
  position: absolute;
  bottom: 12%;
  width: clamp(4.75rem, 26vw, 7.75rem);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
  will-change: transform, opacity;
}

.quiz-fx__char--left {
  left: -2%;
  transform-origin: 60% 100%;
  animation: quiz-char-left 1.85s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}

.quiz-fx__char--right {
  right: -2%;
  transform-origin: 40% 100%;
  animation: quiz-char-right 1.85s cubic-bezier(0.22, 1.15, 0.36, 1) both;
  animation-delay: 0.08s;
}

.quiz-fx__char--high {
  bottom: 38%;
  width: clamp(4rem, 22vw, 6.5rem);
}

@keyframes quiz-char-left {
  0% {
    opacity: 0;
    transform: translate(-28%, 36%) rotate(-18deg) scale(0.55);
  }
  22% {
    opacity: 1;
    transform: translate(0, -6%) rotate(-6deg) scale(1.06);
  }
  62% {
    opacity: 1;
    transform: translate(4%, 0) rotate(-2deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-10%, -18%) rotate(8deg) scale(0.9);
  }
}

@keyframes quiz-char-right {
  0% {
    opacity: 0;
    transform: translate(28%, 36%) rotate(18deg) scale(0.55);
  }
  22% {
    opacity: 1;
    transform: translate(0, -6%) rotate(6deg) scale(1.06);
  }
  62% {
    opacity: 1;
    transform: translate(-4%, 0) rotate(2deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(10%, -18%) rotate(-8deg) scale(0.9);
  }
}

.quiz__progress {
  margin-bottom: 1.25rem;
}

.quiz__progress-text {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

.quiz__progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.quiz__progress-fill {
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon-cyan), var(--accent-orange));
  box-shadow: 0 0 12px rgba(63, 225, 232, 0.5);
  transition: width 0.4s var(--ease);
}

.quiz__card {
  display: flex;
  flex-direction: column;
  min-height: 26.5rem;
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.quiz__card.is-leaving {
  opacity: 0;
  transform: translateX(-16px);
}

.quiz__card.is-entering {
  opacity: 0;
  transform: translateX(16px);
}

.quiz__question {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 4.2em;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1.3;
  text-align: center;
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.quiz__option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 4.75rem;
  padding: 1rem 1.1rem;
  text-align: left;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(63, 225, 232, 0.2);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.quiz__option:hover,
.quiz__option:focus-visible {
  background: rgba(63, 225, 232, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px rgba(63, 225, 232, 0.25);
  transform: translateY(-2px);
  outline: none;
}

.quiz__option:active {
  transform: scale(0.98);
}

.quiz__option-emoji {
  flex-shrink: 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.quiz__option-text {
  font-weight: 600;
  line-height: 1.4;
}

.quiz__option-letter {
  color: var(--neon-cyan);
  font-family: var(--font-display);
}

.quiz__back {
  display: block;
  flex-shrink: 0;
  margin: 1.25rem auto 0;
  padding: 0.4rem 0.8rem;
  min-height: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  visibility: hidden;
  pointer-events: none;
  transition: color 0.2s;
}

.quiz__back.is-active {
  visibility: visible;
  pointer-events: auto;
}

.quiz__back:hover {
  color: var(--neon-cyan);
}

/* ===== Result ===== */
.result {
  position: relative;
  text-align: center;
  padding: 1.5rem 0.5rem 0;
  animation: result-in 0.6s var(--ease) both;
}

.result[hidden],
.quiz[hidden],
.toast[hidden] {
  display: none !important;
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.result__glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: min(320px, 80vw);
  height: min(320px, 80vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 225, 232, 0.35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: 0.6; transform: translateX(-50%) scale(0.95); }
  to { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.result__portrait-wrap {
  position: relative;
  width: min(260px, 70vw);
  margin: 0 auto 1.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--accent-red), var(--accent-orange));
  box-shadow: 0 0 40px rgba(63, 225, 232, 0.4), 0 16px 40px rgba(0, 0, 0, 0.4);
}

.result__portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  box-sizing: border-box;
  padding: 7%;
  background:
    radial-gradient(circle at 50% 42%, rgba(63, 225, 232, 0.18), transparent 62%),
    var(--space-mid);
}

.result__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  color: var(--neon-cyan);
  text-shadow: 0 0 16px rgba(63, 225, 232, 0.5), 2px 2px 0 var(--accent-red);
}

.result__desc {
  margin: 0 auto 1.25rem;
  max-width: 36em;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.result__motto {
  margin: 0 auto 1.75rem;
  max-width: 28em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  font-style: italic;
}

.result__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

/* ===== Crew / decorative section ===== */
.crew {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 280px;
  padding: 3.5rem 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1550 0%, #1a0a4a 50%, #0a1a60 100%);
  border-top: 1px solid rgba(63, 225, 232, 0.15);
  border-bottom: 1px solid rgba(63, 225, 232, 0.15);
}

.crew__chars {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  gap: 0.5rem;
  pointer-events: none;
}

.crew__chars img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  padding: 6px;
  border-radius: 50%;
  border: 2px solid rgba(63, 225, 232, 0.35);
  background:
    radial-gradient(circle at 50% 42%, rgba(63, 225, 232, 0.14), transparent 65%),
    rgba(11, 21, 80, 0.92);
  box-shadow: 0 0 16px rgba(63, 225, 232, 0.2);
  opacity: 0.95;
}

.crew__chars--left {
  left: -20px;
  flex-direction: column;
}

.crew__chars--right {
  right: -20px;
  flex-direction: column;
}

.crew__chars--left img:nth-child(2) {
  margin-left: 36px;
}

.crew__chars--left img:nth-child(3) {
  margin-left: 12px;
}

.crew__chars--left img:nth-child(4) {
  margin-left: 28px;
}

.crew__chars--right img:nth-child(2) {
  margin-right: 36px;
}

.crew__chars--right img:nth-child(3) {
  margin-right: 12px;
}

.crew__chars--right img:nth-child(4) {
  margin-right: 28px;
}

.crew__center {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.crew__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 1rem;
}

.crew__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  color: var(--neon-cyan-soft);
  text-shadow: 0 0 12px rgba(63, 225, 232, 0.45);
}

.crew__text {
  margin: 0;
  color: var(--neon-cyan-soft);
  font-size: 1.05rem;
  text-shadow: 0 0 12px rgba(63, 225, 232, 0.45);
}

.crew.is-visible .crew__center {
  animation: fade-up 0.7s var(--ease) both;
}

.crew.is-visible .crew__chars img {
  animation: char-float 4s ease-in-out infinite;
}

.crew.is-visible .crew__chars img:nth-child(2) {
  animation-delay: 0.4s;
}

.crew.is-visible .crew__chars img:nth-child(3) {
  animation-delay: 0.8s;
}

.crew.is-visible .crew__chars img:nth-child(4) {
  animation-delay: 1.2s;
}

@keyframes char-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.75rem 1.25rem 2.25rem;
  text-align: center;
  background: var(--space-deep);
}

.footer__copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan-soft);
  color: var(--neon-cyan-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-shadow: 0 0 12px rgba(63, 225, 232, 0.45);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 200;
  transform: translateX(-50%);
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  background: rgba(12, 24, 80, 0.95);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--shadow-neon);
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
  animation: toast-in 0.3s var(--ease);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Breakpoints ===== */
@media (min-width: 480px) {
  .quiz__card {
    min-height: 25rem;
    padding: 1.75rem 1.5rem 2rem;
  }

  .result__actions {
    flex-direction: row;
    justify-content: center;
  }

  .result__actions .btn {
    min-width: 160px;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 2rem 6rem;
  }

  .quiz-section {
    padding: 3rem 2rem 5rem;
  }

  .crew {
    min-height: 340px;
    padding: 4rem 2rem;
  }

  .crew__chars {
    display: flex;
  }

  .crew__chars img {
    width: 100px;
    height: 100px;
  }

  .crew__center {
    max-width: 480px;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    max-width: 800px;
  }

  .quiz-section {
    max-width: 720px;
  }

  .crew__chars img {
    width: 120px;
    height: 120px;
  }

  .crew__chars--left {
    left: 2%;
  }

  .crew__chars--right {
    right: 2%;
  }

  .result__portrait-wrap {
    width: 280px;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
