/* ===========================================================
   ENGLOSMOS — Cosmic English Adventure
   Shared stylesheet: Light → Darkness → Light system
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Quicksand:wght@400;500;600;700&family=Orbitron:wght@500;700&display=swap');

:root {
  /* palette */
  --void: #06040F;
  --deep: #140B2E;
  --purple: #5A2E8C;
  --purple-bright: #9457D6;
  --blue-dark: #1B1F4B;
  --blue: #2E5FA3;
  --blue-light: #7FD6FF;
  --white: #FDFBFF;
  --glow: #C69CFF;
  --star: #FFFFFF;
  --gold: #FFD873;

  --font-display: 'Baloo 2', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  --font-mono: 'Orbitron', sans-serif;

  --radius: 22px;

  /* page-specific nebula photo — overridden per page in each HTML file's <head> */
  --nebula: url('assets/bg-home.jpg');
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- NAV ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FDFBFF;
  border-bottom: 1px solid #ECE3FF;
  box-shadow: 0 2px 12px rgba(90,46,140,0.08);
}

/* ---- unified header: logo, inline text nav (tablet+desktop), hamburger (mobile only) ---- */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 28px;
}
.brand { flex-shrink: 0; }
.brand img {
  height: auto;
  width: clamp(100px, 18vw, 200px);
  display: block;
  filter: drop-shadow(0 0 16px rgba(198,156,255,0.55));
}
.nav-links-inline {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links-inline a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #4A3D6B;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav-links-inline a:hover, .nav-links-inline a.active { color: var(--purple-bright); }
.nav-home-icon { font-size: 1.4rem; line-height: 1; }
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  border: none;
  background: rgba(90,46,140,0.08);
  border-radius: 14px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .2s ease;
}
.menu-btn:hover, .menu-btn:focus-visible { background: rgba(90,46,140,0.16); }
.menu-btn .bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
  flex-shrink: 0;
}
.menu-btn .bars span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--purple);
}
.menu-btn .menu-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--purple);
}
/* tablet: header shrinks a step from desktop, still roomier than phone.
   Range goes up to 1200px (not 1024px) so landscape tablets — iPad Air/Pro
   landscape is 1180-1194px wide — get the smaller header too; at those widths
   but with a much shorter viewport height, a desktop-sized header ate a big
   share of the visible screen. */
@media (min-width: 641px) and (max-width: 1200px) {
  .nav-row { padding: 8px 20px; gap: 12px; }
  .brand img { width: clamp(80px, 11vw, 128px); }
  .nav-links-inline { gap: 14px; }
  .nav-links-inline a { font-size: 0.85rem; }
  .nav-home-icon { font-size: 1.15rem; }
}
/* mobile: inline text nav gives way to the hamburger drawer, as before */
@media (max-width: 640px) {
  .nav-row { padding: 10px 20px; }
  .brand img { width: clamp(90px, 30vw, 150px); }
  .nav-links-inline { display: none; }
  .menu-btn { display: flex; padding: 8px 14px; gap: 7px; }
  .menu-btn .bars { width: 18px; height: 14px; gap: 4px; }
  .menu-btn .menu-label { font-size: 0.82rem; }
}

/* ---- nav drawer (dropdown list, opened by hamburger) ---- */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 11, 46, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
}
.nav-drawer.open { display: flex; }
.nav-drawer-panel {
  background: var(--white);
  width: min(300px, 82vw);
  height: 100%;
  padding: 24px;
  box-shadow: -6px 0 30px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer-close {
  align-self: flex-end;
  border: none;
  background: none;
  font-size: 1.4rem;
  color: var(--purple);
  cursor: pointer;
  margin-bottom: 18px;
}
.nav-drawer-panel a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #4A3D6B;
  padding: 12px 6px;
  border-bottom: 1px solid #ECE3FF;
  text-decoration: none;
}
.nav-drawer-panel a:hover, .nav-drawer-panel a.active { color: var(--purple-bright); }

/* ---------------- ZONE SYSTEM ---------------- */
.zone {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}

.zone-light {
  background: linear-gradient(180deg, #FFFFFF 0%, #EAF4FF 55%, #DCEEFF 100%);
  color: var(--deep);
}
.zone-light h1, .zone-light h2, .zone-light h3 { color: #2A1B4D; }
.zone-light .eyebrow { color: var(--purple); }
.zone-light p { color: #443A5C; }

.zone-transition-down {
  background: linear-gradient(180deg, #DCEEFF 0%, #7FA9DE 25%, #33397A 55%, #150B32 80%, var(--void) 100%);
  padding: 70px 0;
  position: relative;
}
.zone-transition-down::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--nebula) center/cover;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
}

.zone-dark {
  background:
    linear-gradient(180deg, var(--void) 0%, rgba(6,4,15,0.4) 30%, rgba(6,4,15,0.4) 70%, var(--void) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(42,24,84,0.55) 0%, transparent 55%),
    var(--nebula);
  background-size: cover;
  background-position: center;
  color: var(--white);
  min-height: 340px;
  display: flex;
  align-items: center;
}

.zone-transition-up {
  background: linear-gradient(180deg, var(--void) 0%, #150B32 20%, #33397A 45%, #7FA9DE 75%, #EAF4FF 100%);
  padding: 70px 0;
  position: relative;
}
.zone-transition-up::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--nebula) center/cover;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* starfield */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff 100%, transparent),
    radial-gradient(1px 1px at 25% 60%, #fff 100%, transparent),
    radial-gradient(2px 2px at 40% 15%, #fff 100%, transparent),
    radial-gradient(1px 1px at 55% 80%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 70% 35%, #fff 100%, transparent),
    radial-gradient(1px 1px at 85% 55%, #fff 100%, transparent),
    radial-gradient(2px 2px at 92% 20%, #fff 100%, transparent),
    radial-gradient(1px 1px at 15% 85%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 60% 60%, #fff 100%, transparent),
    radial-gradient(1px 1px at 35% 40%, #fff 100%, transparent);
  background-repeat: repeat;
  background-size: 340px 340px;
  opacity: 0.9;
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }

/* nebula glow blobs — real nebula photos, softened into ambient accents */
.nebula-blob {
  position: absolute;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  filter: blur(50px) saturate(1.15);
  opacity: 0.5;
  pointer-events: none;
}

/* ---------------- COMETS ---------------- */
.comet-field {
  position: relative;
  z-index: 2;
  width: 100%;
}
.comet {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 0 16px var(--glow), 0 2px 6px rgba(0,0,0,0.5);
  opacity: 0;
}
.comet::before {
  content: '';
  width: 42px;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--white));
  box-shadow: 0 0 16px 3px var(--gold);
  flex-shrink: 0;
}

/* three comets in a stage, stacked so they don't overlap */
.comet.slot-1 { top: 12%; }
.comet.slot-2 { top: 46%; }
.comet.slot-3 { top: 78%; }
.comet.slot-solo { top: 50%; transform: translateY(-50%); }

/* direction: left -> right */
.comet.dir-ltr {
  left: -38%;
  animation: fly-ltr 13s linear infinite;
}
@keyframes fly-ltr {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(155vw, 50px); opacity: 0; }
}

/* direction: right -> left (trail flips to the other side) */
.comet.dir-rtl {
  right: -38%;
  flex-direction: row-reverse;
  animation: fly-rtl 13s linear infinite;
}
.comet.dir-rtl::before {
  /* light points the opposite way for right-to-left travel */
  background: linear-gradient(90deg, transparent, var(--gold), var(--white));
}
@keyframes fly-rtl {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(-155vw, 50px); opacity: 0; }
}

/* direction: diagonal, steeper vertical drop */
.comet.dir-diag {
  left: -38%;
  top: 4%;
  animation: fly-diag 14s linear infinite;
}
@keyframes fly-diag {
  0%   { transform: translate(0, 0) rotate(18deg); opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(150vw, 280px) rotate(18deg); opacity: 0; }
}

/* direction: diagonal, rising — starts low-left, drifts up toward the right */
.comet.dir-diag-up {
  left: -38%;
  top: 84%;
  animation: fly-diag-up 14s linear infinite;
}
@keyframes fly-diag-up {
  0%   { transform: translate(0, 0) rotate(-18deg); opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(150vw, -280px) rotate(-18deg); opacity: 0; }
}

/* ---------------- TYPOGRAPHY ---------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
.zone-dark h1, .zone-dark h2, .zone-dark h3,
.zone-transition-down h1, .zone-transition-down h2,
.zone-transition-up h1, .zone-transition-up h2 {
  color: var(--white);
  text-shadow: 0 0 18px var(--glow), 0 0 4px rgba(255,255,255,0.4);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  display: inline-block;
  margin-bottom: 14px;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero-sub { font-size: 1.1rem; max-width: 52ch; margin-top: 16px; }

/* ---- Home page: big welcoming logo, placed in the page body (not the header) ---- */
.home-big-logo {
  display: block;
  width: min(360px, 68vw);
  margin: 30px auto 0;
  filter: drop-shadow(0 0 26px rgba(198,156,255,0.55));
}
.zone-dark p, .zone-transition-down p, .zone-transition-up p { color: #D8CFFB; }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--purple-bright));
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 14px 28px;
  position: relative;
  box-shadow: 0 0 0 rgba(148, 87, 214, 0);
  transition: box-shadow .3s ease, transform .2s ease;
}
.btn:hover, .btn:focus-visible {
  box-shadow: 0 0 24px 4px rgba(148, 87, 214, 0.55);
  transform: translateY(-2px);
}
.btn::before {
  content: '';
  width: 8px; height: 8px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  transition: transform .5s ease;
}
.btn:hover::before { transform: rotate(360deg); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--purple);
  color: var(--purple);
}
.btn-ghost:hover { box-shadow: 0 0 18px rgba(90,46,140,0.3); }

/* ---------------- FEATURE BLOCKS ---------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 780px) { .features { grid-template-columns: 1fr; } }
.feature-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(10, 6, 26, 0.18);
  border: 1px solid rgba(198,156,255,0.3);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, var(--glow), var(--purple));
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(148,87,214,0.4);
  font-size: 1.4rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--white); text-shadow: 0 1px 5px rgba(0,0,0,0.6); }
.feature-card p { color: var(--white); font-size: 0.95rem; text-shadow: 0 1px 4px rgba(0,0,0,0.55); }

/* ---------------- REVIEWS / TESTIMONIALS ---------------- */
.reviews-section { margin-top: 8px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 40px;
}
@media (max-width: 780px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 18px;
  padding: 26px;
  border: 1px solid rgba(198,156,255,0.3);
  box-shadow: 0 10px 28px rgba(10,6,26,0.16);
}
.review-stars {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.review-quote {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
  margin-bottom: 16px;
}
.review-author {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.review-author .name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
  font-size: 0.92rem;
}
.review-author .date {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--blue-light);
}
.review-source {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--blue-light);
}
.review-source a { color: var(--glow); text-decoration: underline; }

/* ---------------- GALAXY CARDS ---------------- */
.galaxy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 780px) { .galaxy-cards { grid-template-columns: 1fr; } }
.galaxy-card {
  border-radius: var(--radius);
  padding: 32px 26px;
  background: radial-gradient(circle at 70% 20%, rgba(148,87,214,0.5), transparent 60%), linear-gradient(160deg, var(--blue-dark), var(--void));
  color: var(--white);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(198,156,255,0.3);
  transition: transform .3s ease, box-shadow .3s ease;
}
.galaxy-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(90,46,140,0.35); }
.galaxy-card .planets-mini {
  display: flex; gap: 10px; margin-bottom: 18px;
}
.planet-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--glow), var(--purple-bright) 60%, var(--blue-dark));
  box-shadow: 0 0 10px rgba(148,87,214,0.7);
}
.planet-dot:nth-child(2) { background: radial-gradient(circle at 35% 30%, var(--blue-light), var(--blue) 60%, var(--blue-dark)); }
.planet-dot:nth-child(3) { background: radial-gradient(circle at 35% 30%, var(--gold), #C98A2E 60%, var(--blue-dark)); }
.galaxy-card h3 { font-size: 1.3rem; margin-bottom: 8px; text-shadow: 0 0 12px var(--glow); }
.galaxy-card p { color: #C9BEEE; font-size: 0.92rem; margin-bottom: 20px; }

/* ---------------- SPIRAL ---------------- */
.spiral {
  width: 140px; height: 140px;
  margin: 28px auto 0;
  opacity: 0.9;
}
.spiral path { animation: pulse-spiral 3.4s ease-in-out infinite; transform-origin: center; }
@keyframes pulse-spiral { 0%,100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }

/* ---------------- PLANET / ORBIT LIST (galaxy pages) ---------------- */
.orbit-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.planet-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(198,156,255,0.35);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.planet-card:hover, .planet-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(198,156,255,0.75);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  outline: none;
}
.planet-card::after {
  content: 'Tap for details ✦';
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
}
.planet-card .pid {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.planet-card h4 { margin-top: 8px; font-size: 1.05rem; color: var(--white); text-shadow: 0 0 10px var(--glow); }
.planet-card .ring {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--blue-light);
  margin-top: 14px;
  position: relative;
}
.planet-card .ring::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--glow), var(--purple-bright));
  box-shadow: 0 0 14px var(--glow);
}

/* Planet system detail modal (opens on click/tap of a planet card) */
.planet-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,3,15,0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.planet-modal-overlay.open { opacity: 1; pointer-events: auto; }
.planet-modal {
  position: relative;
  max-width: 420px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(30,20,55,0.97), rgba(15,10,35,0.97));
  border: 1px solid rgba(198,156,255,0.45);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.94) translateY(8px);
  transition: transform .2s ease;
}
.planet-modal-overlay.open .planet-modal { transform: scale(1) translateY(0); }
.planet-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.planet-modal-close:hover { background: rgba(255,255,255,0.18); }
.planet-modal-pid {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.planet-modal h3 { margin: 6px 0 4px; color: var(--white); text-shadow: 0 0 10px var(--glow); font-size: 1.3rem; padding-right: 30px; }
.planet-modal-distance { color: var(--blue-light); font-size: 0.88rem; margin: 0; }
.planet-modal-count { color: rgba(255,255,255,0.6); font-size: 0.8rem; margin: 2px 0 16px; }
.planet-modal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.planet-modal-list li {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--white);
  font-size: 0.9rem;
}

/* ---------------- LEVELS MAP (vortex with depth) ---------------- */
.vortex-map {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1/1;
  margin: 56px auto 0;
  border-radius: 50%;
  overflow: visible;
}
.vortex-map .vortex-img {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: url('assets/vortex-spiral.jpg') center/cover;
  box-shadow: 0 0 60px 10px rgba(148,87,214,0.45);
  -webkit-mask-image: radial-gradient(circle, #000 48%, transparent 88%);
          mask-image: radial-gradient(circle, #000 48%, transparent 88%);
  animation: vortex-spin 140s linear infinite;
}
@keyframes vortex-spin { to { transform: rotate(360deg); } }

.vortex-planet {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
/* Depth A — foreground, large, sharp */
.vortex-planet.depth-a {
  width: 74px; height: 74px;
  background: radial-gradient(circle at 32% 28%, #FFF7E0, var(--gold) 45%, #B5791F 85%);
  box-shadow: 0 0 26px 4px rgba(255,216,115,0.6);
  z-index: 5;
}
/* Depth B — mid-spiral, smaller, slightly softened */
.vortex-planet.depth-b {
  width: 42px; height: 42px;
  background: radial-gradient(circle at 32% 28%, #DCEBFF, var(--blue-light) 50%, var(--blue) 90%);
  box-shadow: 0 0 16px 2px rgba(127,214,255,0.5);
  filter: blur(0.4px);
  opacity: 0.92;
  z-index: 4;
}
/* Depth C — far back, small, blurred */
.vortex-planet.depth-c {
  width: 22px; height: 22px;
  background: radial-gradient(circle at 32% 28%, #E9D6FF, var(--purple-bright) 55%, var(--purple) 90%);
  filter: blur(2.2px);
  opacity: 0.65;
  z-index: 3;
}

.vortex-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  white-space: nowrap;
  transform: translate(-50%, 6px);
  pointer-events: none;
}

.ring-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-light);
}
.ring-legend span { display: flex; align-items: center; gap: 8px; }
.ring-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.leg-a { background: var(--gold); }
.leg-b { background: var(--blue-light); }
.leg-c { background: var(--purple-bright); }

/* ---------------- LEVELS MAP: DNA-Earth orbit path (planets strung along the helix ribbon) ---------------- */
.dna-path-map {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 34px auto 0;
  aspect-ratio: 521/499;
}
.dna-path-fade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('assets/dna-earth.png');
  background-size: cover;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 58% 58% at center, #000 42%, transparent 88%);
          mask-image: radial-gradient(ellipse 58% 58% at center, #000 42%, transparent 88%);
}
@supports (width: 1cqw) {
  .dna-path-map { container-type: inline-size; }
}
.orbit-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: block;
  cursor: pointer;
  width: calc(var(--sz) * 5px);
  height: calc(var(--sz) * 5px);
  box-shadow: 0 0 12px 2px var(--dot-glow);
  transition: transform .25s ease, box-shadow .25s ease;
  z-index: 2;
}
@supports (width: 1cqw) {
  .orbit-dot { width: calc(var(--sz) * 1.35cqw); height: calc(var(--sz) * 1.35cqw); }
}
.orbit-dot.depth-a { background: radial-gradient(circle at 32% 28%, #FFF7E0, var(--gold) 45%, #B5791F 85%); --dot-glow: rgba(255,216,115,0.65); }
.orbit-dot.depth-b { background: radial-gradient(circle at 32% 28%, #DCEBFF, var(--blue-light) 50%, var(--blue) 90%); --dot-glow: rgba(127,214,255,0.6); }
.orbit-dot.depth-c { background: radial-gradient(circle at 32% 28%, #E9D6FF, var(--purple-bright) 55%, var(--purple) 90%); --dot-glow: rgba(198,156,255,0.6); }
.orbit-dot:hover, .orbit-dot:focus-visible {
  transform: translate(-50%, -50%) scale(1.6);
  box-shadow: 0 0 22px 6px var(--dot-glow);
  z-index: 6;
}
.orbit-dot::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: 135%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(15,10,35,0.94);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 5px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  border: 1px solid rgba(198,156,255,0.4);
}
.orbit-dot:hover::after, .orbit-dot:focus-visible::after { opacity: 1; }
@media (max-width: 640px) {
  .dna-path-map { border-width: 4px; }
  .orbit-dot::after { font-size: 0.62rem; padding: 4px 8px; }
}

/* ---------------- ABOUT: video frame ---------------- */
.video-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 6px solid #E7ECF5;
  box-shadow:
    0 0 40px rgba(148,87,214,0.5),
    inset 0 10px 24px rgba(255,255,255,0.35);
  background: var(--void);
}
.video-frame::before {
  content: '';
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 32px;
  background: radial-gradient(circle, rgba(198,156,255,0.5), transparent 70%);
  filter: blur(10px);
}
.video-frame video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--void);
}
.video-label {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(6,4,15,0.55);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  z-index: 2;
  pointer-events: none;
}

.about-media-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}
@media (max-width: 780px) { .about-media-row { grid-template-columns: 1fr; } }

/* ---------------- ABOUT: astronaut hero banner (full page-width background) ---------------- */
.astro-section {
  --hero-h: min(82vh, 760px);
  position: relative;
  min-height: calc(var(--hero-h) + 40px);
  overflow: visible;
  padding: 64px 0 70px;
}
.astro-fullbg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--hero-h);
  overflow: hidden;
  z-index: 0;
}
.astro-fullbg .astro-nebula-layer {
  position: absolute;
  inset: 0;
  background: url('assets/nebula-transition.jpg') center/cover no-repeat;
  filter: blur(2px);
  z-index: 1;
  /* fades out over the last quarter of the hero so it crossfades into whatever
     page background sits behind it (e.g. the About page's repeating starfield),
     instead of ending in a hard line */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.astro-fullbg .astro-bg {
  position: absolute;
  inset: 0;
  background: url('assets/ms-galya-astronaut.jpg') center top / cover no-repeat;
  z-index: 2;
  /* fades to transparent toward the bottom so the nebula layer shows through gently */
  -webkit-mask-image: linear-gradient(to bottom, #000 48%, transparent 84%);
          mask-image: linear-gradient(to bottom, #000 48%, transparent 84%);
}

.astro-content { position: relative; z-index: 3; }
.astro-text-panel {
  max-width: 520px;
  text-align: left;
  margin: 0 auto 0 0;
}
@media (min-width: 761px) {
  .astro-text-panel { margin-left: -8px; }
}

.astro-video {
  position: absolute;
  left: 60%;
  top: calc(var(--hero-h) * 0.83);
  width: min(300px, 30%);
  margin: 0;
  border-width: 5px;
  z-index: 4;
}
@media (max-width: 760px) {
  /* the floating overlap only works with room to spare; on phones the video
     drops into normal flow below the text panel instead of over the image */
  .astro-section { --hero-h: min(52vh, 400px); min-height: auto; padding: 36px 0 40px; }
  .astro-text-panel { max-width: 100%; margin: 130px auto 0; text-align: center; padding: 28px 24px; }
  .astro-video {
    position: static;
    width: min(280px, 78vw);
    margin: 22px auto 0;
    border-width: 4px;
  }
}

/* ---------------- ABOUT: astronaut helmet ---------------- */
.helmet-frame {
  position: relative;
  width: min(340px, 80vw);
  margin: 0 auto;
  aspect-ratio: 1/1;
}
.helmet-frame .glow-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,156,255,0.55), transparent 70%);
  filter: blur(6px);
}
.helmet-frame .visor {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid #E7ECF5;
  box-shadow:
    inset 0 -18px 40px rgba(20,10,50,0.35),
    inset 0 10px 24px rgba(255,255,255,0.5),
    0 0 40px rgba(148,87,214,0.5);
}
.helmet-frame .visor img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 22%;
  filter: saturate(1.05) contrast(1.02);
}
.helmet-frame .visor::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(127,214,255,0.28) 0%, transparent 35%, transparent 70%, rgba(90,46,140,0.25) 100%);
  pointer-events: none;
}
.helmet-frame .collar {
  position: absolute;
  bottom: -14px; left: 50%;
  transform: translateX(-50%);
  width: 62%;
  height: 30px;
  background: linear-gradient(180deg, #E7ECF5, #B9C2D6);
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

/* ---------------- ABOUT sections ---------------- */
.about-sections {
  display: grid;
  gap: 40px;
}
.about-block h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.about-block h3::before { content: '✦'; color: var(--gold); }
.about-block p { max-width: 68ch; }

/* ---------------- CONTACT / FORM ---------------- */
.contact-icons {
  display: flex;
  gap: 20px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.icon-orbit {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(198,156,255,0.4);
  background: rgba(255,255,255,0.04);
  font-family: var(--font-body);
  font-weight: 600;
  transition: transform .3s ease, box-shadow .3s ease;
}
.icon-orbit:hover { transform: rotate(-3deg) translateY(-2px); box-shadow: 0 0 18px rgba(148,87,214,0.5); }
.icon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.icon-brand {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.icon-brand.icon-whatsapp { background: #25D366; box-shadow: 0 0 10px rgba(37,211,102,0.55); }
.icon-brand.icon-viber { background: #7360F2; box-shadow: 0 0 10px rgba(115,96,242,0.55); }
.icon-brand svg { width: 15px; height: 15px; display: block; }

.capsule-form {
  margin-top: 48px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(10,6,26,0.2);
  border: 1px solid rgba(198,156,255,0.3);
  position: relative;
}
.capsule-form::before {
  content: '';
  position: absolute;
  top: -1px; left: 40px; right: 40px; height: 5px;
  background: linear-gradient(90deg, var(--purple-bright), var(--blue-light), var(--gold));
  border-radius: 0 0 8px 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
input, textarea {
  width: 100%;
  border: 1.5px solid #DCCFFF;
  border-radius: 14px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #FBF9FF;
  color: #2A1B4D;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 4px rgba(148,87,214,0.15);
}
textarea { resize: vertical; min-height: 110px; }
.form-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--blue-light);
}

/* ---------------- LEVELS MAP: galaxies sit in-page between the comets (no separate pages) ---------------- */
.galaxy-section { scroll-margin-top: 90px; }

/* ---------------- MISSIONS (galaxy page endings) ---------------- */
.missions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 780px) { .missions { grid-template-columns: 1fr; } }
.mission-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 18px;
  padding: 26px;
  border: 1px solid rgba(198,156,255,0.3);
  box-shadow: 0 8px 24px rgba(10,6,26,0.14);
}
.mission-card .mnum { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold); letter-spacing: 0.08em; }
.mission-card h4 { margin: 8px 0; color: var(--white); text-shadow: 0 1px 5px rgba(0,0,0,0.6); }
.mission-card p { color: var(--white); font-size: 0.9rem; text-shadow: 0 1px 4px rgba(0,0,0,0.55); }

.missions-accent {
  position: relative;
}
.missions-accent::before {
  content: '';
  position: absolute;
  top: -40px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: url('assets/blob-missions.jpg') center/cover;
  filter: blur(40px) saturate(1.1);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* ---------------- IMPRESSUM ---------------- */
.legal-block {
  max-width: 700px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(198,156,255,0.3);
  border-radius: 18px;
  padding: 32px;
}
.legal-block dt { font-family: var(--font-mono); font-size: 0.72rem; color: var(--blue-light); letter-spacing: 0.06em; margin-top: 16px; }
.legal-block dt:first-child { margin-top: 0; }
.legal-block dd { color: var(--white); font-size: 1rem; margin-top: 4px; }

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: #FDFBFF;
  color: #4A3D6B;
  padding: 40px 0;
  font-size: 0.85rem;
  text-shadow: none;
  border-top: 1px solid #ECE3FF;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a:hover { color: var(--purple-bright); }

/* tablet (incl. landscape): footer shrinks to match the smaller header —
   it previously stayed full desktop size on tablets, which on a shorter
   landscape screen made header + footer together eat a big share of it */
@media (min-width: 641px) and (max-width: 1200px) {
  .site-footer { padding: 20px 0; font-size: 0.78rem; }
  .lang-bar-footer { margin-top: 12px; gap: 3px; }
  .lang-flag-btn { padding: 4px 6px; }
  .flag-icon { width: 19px; height: 13px; }
}

/* misc */
.center { text-align: center; }
.mt-lg { margin-top: 56px; }

/* ---------------- LANGUAGE BAR (footer only — flags, shown on mobile and desktop) ---------------- */
.lang-bar-footer {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.lang-bar-footer .lang-globe {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #7A6E99;
  margin-right: 6px;
}
.lang-flag-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 1.15rem;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 8px;
  opacity: 0.75;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}
.flag-icon {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
  display: block;
}
.lang-flag-btn .lang-code {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.03em;
  color: #7A6E99;
}
.lang-flag-btn:hover, .lang-flag-btn:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(90,46,140,0.08);
}
.lang-flag-btn.active { opacity: 1; background: rgba(255,216,115,0.35); }
.lang-flag-btn.lang-more {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #7A6E99;
  padding: 5px 9px;
}

/* ---------------- CONTINUOUS PAGE BACKGROUND (Home) ---------------- */
.cosmic-flow {
  background: var(--page-bg, url('assets/bg-home-full.jpg')) top center / cover no-repeat;
  position: relative;
}
.cosmic-flow .flow-section {
  padding: 90px 0;
  position: relative;
}
.cosmic-flow .flow-section.tight { padding: 50px 0; }
.cosmic-flow .panel {
  background: rgba(10, 8, 28, 0.42);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(198,156,255,0.18);
  border-radius: 28px;
  padding: 44px;
}
.cosmic-flow .panel-light {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(198,156,255,0.3);
  border-radius: 28px;
  padding: 44px;
  color: var(--white);
}
.cosmic-flow .panel-light h1,
.cosmic-flow .panel-light h2,
.cosmic-flow .panel-light h3 { color: var(--white); text-shadow: 0 1px 5px rgba(0,0,0,0.6); }
.cosmic-flow .panel-light p { color: var(--white); text-shadow: 0 1px 4px rgba(0,0,0,0.55); }

/* ---------------- LEVEL-CHECK TEST ---------------- */
.test-panel { color: var(--white); }
.test-panel p { text-shadow: 0 1px 4px rgba(0,0,0,0.55); }

.test-progress { margin-bottom: 36px; }
.test-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.test-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--purple-bright));
  border-radius: 999px;
  transition: width .35s ease;
}
.test-progress-label {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--glow);
  text-align: center;
}

.test-field { margin-bottom: 22px; }
.test-field label,
.test-field-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}

.test-choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
.test-choice {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(198,156,255,0.4);
  border-radius: 999px;
  padding: 10px 20px;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.test-choice:hover { transform: translateY(-1px); border-color: var(--purple-bright); }
.test-choice.selected {
  background: linear-gradient(135deg, var(--blue), var(--purple-bright));
  border-color: transparent;
}

.test-error { color: #FFB4B4; font-size: 0.85rem; margin-top: -8px; margin-bottom: 18px; }

.test-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 28px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.6);
}
.test-options {
  display: grid;
  gap: 14px;
}
.quiz-option {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(198,156,255,0.35);
  border-radius: 18px;
  padding: 16px 20px;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.quiz-option:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--purple-bright); background: rgba(255,255,255,0.1); }
.quiz-option:disabled { cursor: default; }
.quiz-option.correct { background: rgba(96, 214, 130, 0.35); border-color: #60D682; }
.quiz-option.wrong { background: rgba(214, 96, 96, 0.3); border-color: #D66060; }

.result-badge {
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--void);
}
.result-badge-a { background: radial-gradient(circle at 32% 28%, #FFF7E0, var(--gold) 45%, #B5791F 85%); box-shadow: 0 0 30px rgba(255,216,115,0.55); }
.result-badge-b { background: radial-gradient(circle at 32% 28%, #DCEBFF, var(--blue-light) 50%, var(--blue) 90%); box-shadow: 0 0 30px rgba(127,214,255,0.5); }
.result-badge-c { background: radial-gradient(circle at 32% 28%, #E9D6FF, var(--purple-bright) 55%, var(--purple) 90%); box-shadow: 0 0 30px rgba(198,156,255,0.5); }
#step-result h2 { text-shadow: 0 1px 5px rgba(0,0,0,0.6); }
.result-cefr {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.test-sent-note {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--blue-light);
}

/* Small "take the test" invite after each galaxy's planet list */
.test-invite { margin-top: 26px; }
.test-invite a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  padding: 8px 4px;
  transition: transform .2s ease, color .2s ease;
}
.test-invite a:hover { transform: translateY(-1px); color: var(--white); }

/* Listen (text-to-speech) button next to the question prompt — for
   pre-reading learners on the younger track */
.q-prompt-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.q-listen-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(198,156,255,0.15);
  border: 1px solid rgba(198,156,255,0.45);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.q-listen-btn:hover { transform: scale(1.08); background: rgba(198,156,255,0.28); }
.q-listen-btn[hidden] { display: none; }
.q-listen-btn.speaking { animation: q-listen-pulse 1s ease-in-out infinite; }
@keyframes q-listen-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198,156,255,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(198,156,255,0); }
}

/* "I don't know / skip" button — small, tucked bottom-right, easy to
   find but not encouraging skipping over trying */
.q-skip-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.q-skip-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.q-skip-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); transform: translateY(-1px); }
.q-skip-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.q-skip-arrow { font-size: 0.9rem; }
