/* ============================================================
   SzólMi / SingATone v1.1 — „Kréta-opera” design
   Kézzel rajzolt, zsírkréta-stílusú arculat Daniel Mia-rajzaihoz.
   ============================================================ */
:root {
  --paper: #fdf5e2;          /* vajszín papír */
  --paper-card: #fffdf4;
  --ink: #4a3a85;            /* sötét kréta-lila tinta */
  --ink-soft: #8a7bb5;
  --primary: #7c5fd3;
  --primary-dark: #5b4a9e;
  --pink: #e4577e;
  --orange: #e8a23d;
  --green: #67b558;
  --teal: #4aa8a0;
  --blue: #5a9bd8;
  --crayon-border: 3px solid rgba(91, 74, 158, 0.55);
  --wobble-r: 26px 22px 28px 20px / 22px 28px 20px 26px;
  --wobble-r2: 20px 26px 22px 28px / 28px 20px 26px 22px;
  --shadow: 0 6px 18px rgba(120, 90, 60, 0.14);
  /* Egységes, letisztult betűtípus mindenhol (opening_design gomb betűje) */
  --font-head: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

/* nagy display-címek extra vastagon, másodlagos szövegek könnyedebben */
.brand-name, .game-head h1, .hero-title, .intro-title, .game-name,
.result-panel h2, .card h3, .assess-part, .stat-value, .big-instruction { font-weight: 900; }
.game-desc, .hint-line, .hint-line.small, .setting-value, .trial-when,
.stat-label, .brand-tagline, .reward-pill .reward-lbl, .game-icon + .game-body .game-desc { font-weight: 600; }

body {
  margin: 0;
  min-height: 100vh;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
/* papírszemcse */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* elszórt kréta-firkák a háttérben */
.bg-decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-note { position: absolute; font-size: 30px; opacity: 0.35; animation: bgFloat 12s ease-in-out infinite; filter: saturate(0.9); }
.bg-note.n1 { left: 3%; top: 20%; }
.bg-note.n2 { left: 93%; top: 26%; animation-delay: 2s; }
.bg-note.n3 { left: 10%; top: 76%; animation-delay: 4s; font-size: 24px; }
.bg-note.n4 { left: 86%; top: 74%; animation-delay: 6s; }
.bg-note.n5 { left: 46%; top: 10%; animation-delay: 3s; font-size: 22px; }
.bg-note.n6 { left: 64%; top: 90%; animation-delay: 8s; }
@keyframes bgFloat {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(-22px) rotate(9deg); }
}

/* ---------- fejléc ---------- */
.app-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding: 16px 26px 6px;
}
.brand-block { display: flex; align-items: center; gap: 14px; }
.brand-logo-btn {
  background: none; border: none; padding: 0; margin: 0;
  cursor: pointer; display: block; line-height: 0;
}
.brand-logo-img {
  height: 92px; width: auto; display: block;
  filter: drop-shadow(2px 3px 0 rgba(120, 90, 60, 0.14));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-logo-btn:hover .brand-logo-img { transform: rotate(-2deg) scale(1.05); }
.brand-logo-btn:active .brand-logo-img { transform: scale(0.96); }
@media (max-width: 560px) { .brand-logo-img { height: 68px; } }

/* nyitáskor a főoldal maradjon rejtve, amíg a loader+intró lejátszódik */
.app-header, main#screen { transition: opacity 0.45s ease 0.05s; }
body.booting .app-header, body.booting main#screen { opacity: 0; pointer-events: none; }
.brand-tagline { font-family: var(--font-head); font-size: 15px; color: var(--ink-soft); }
.app-nav { display: flex; gap: 8px; flex-wrap: wrap; }

main#screen { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 4px 18px 70px; }

/* ---------- gombok: kréta-kontúros pirulák ---------- */
.btn {
  font-family: var(--font-head);
  font-size: 19px; font-weight: 400; letter-spacing: 0.4px;
  color: var(--ink);
  background: #fff;
  border: var(--crayon-border);
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.14s;
  box-shadow: 0 3px 0 rgba(91, 74, 158, 0.35), var(--shadow);
}
.btn:hover:not(:disabled) { transform: translateY(-2px) rotate(-0.6deg) scale(1.03); }
.btn:active:not(:disabled) { transform: translateY(2px) scale(0.98); box-shadow: 0 1px 0 rgba(91, 74, 158, 0.35); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary {
  background: linear-gradient(180deg, #8d70e2, #6b4fc0);
  color: #fff;
  border-color: rgba(74, 58, 133, 0.8);
  box-shadow: 0 4px 0 #4a3a85, var(--shadow);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.18);
}
.btn-primary.big { font-size: 23px; padding: 13px 32px; }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--ink-soft); }
.btn-nav { padding: 7px 15px; font-size: 17px; }
.btn-small { padding: 4px 13px; font-size: 15px; margin-left: 10px; }
.btn-danger { border-color: rgba(200, 80, 80, 0.6); color: #b8474f; box-shadow: 0 3px 0 rgba(200, 80, 80, 0.4); }
.btn-answer { font-size: 22px; padding: 13px 26px; }
.track-btn.active {
  background: linear-gradient(180deg, #8d70e2, #6b4fc0);
  color: #fff; border-color: rgba(74, 58, 133, 0.8);
}

/* ---------- kártyák: papírlapok kréta-kerettel ---------- */
.card {
  position: relative;
  background: var(--paper-card);
  border: var(--crayon-border);
  border-radius: var(--wobble-r);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 16px 0;
  overflow: hidden;
}
.card:nth-child(even) { border-radius: var(--wobble-r2); }
.stage-card { text-align: center; }

.screen-in { animation: screenIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(16px) rotate(-0.4deg); } }
.pop-in { animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes popIn { from { opacity: 0; transform: scale(0.82) rotate(1.5deg); } }

.game-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.game-head h1 {
  font-family: var(--font-head);
  font-size: 34px; font-weight: 400; margin: 0; flex: 1;
  color: var(--primary-dark);
  text-shadow: 2px 2px 0 #fff;
}
.scorebar { display: flex; gap: 8px; flex-wrap: wrap; }
.scorechip {
  font-family: var(--font-head);
  background: #fff; border: 2.5px solid rgba(91, 74, 158, 0.4);
  border-radius: 999px; padding: 5px 15px;
  font-size: 16px; color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.scorechip b { color: var(--ink); font-size: 18px; }
.hint-line { font-family: var(--font-head); color: var(--ink-soft); text-align: center; font-size: 18px; }
.hint-line.small { font-size: 15px; }
.action-row { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.big-instruction { font-family: var(--font-head); font-size: 25px; min-height: 60px; color: var(--ink); }
.progressbar {
  height: 16px; border-radius: 999px;
  background: #f3e8cd;
  border: 2.5px solid rgba(91, 74, 158, 0.35);
  overflow: hidden; margin: 14px auto 4px; max-width: 480px;
}
.progressbar > div {
  height: 100%; width: 0%; border-radius: 999px;
  background: repeating-linear-gradient(45deg, var(--green), var(--green) 12px, #7cc46e 12px, #7cc46e 24px);
  transition: width 0.15s linear;
}
.badge-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.badge {
  font-family: var(--font-head);
  background: #f6eefe; border: 2.5px dashed rgba(124, 95, 211, 0.5);
  border-radius: 16px; padding: 8px 16px; font-size: 17px;
}
.badge.small { font-size: 12px; padding: 2px 8px; border-width: 1.5px; color: var(--primary-dark); }
.result-panel h2 { font-family: var(--font-head); margin: 10px 0 4px; font-size: 28px; }
.stars-big { font-size: 44px; animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* képernyő-témák: a stage-kártya felső kréta-sávja */
.game-screen .stage-card { border-top: 8px solid var(--theme, var(--primary)); }
.theme-violet { --theme: #7c5fd3; }
.theme-pink { --theme: #e4577e; }
.theme-sky { --theme: #5a9bd8; }
.theme-amber { --theme: #e8a23d; }
.theme-green { --theme: #67b558; }
.theme-plum { --theme: #9b6fdf; }

/* ============================================================
   MIA — Daniel rajzolt képkockái, áttűnéses animációval
   ============================================================ */
.mia-wrap {
  position: relative; display: inline-block;
  user-select: none; cursor: pointer;
}
.mia-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0; transition: opacity 0.14s ease;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 10px rgba(120, 90, 60, 0.25));
}
.mia-img.on { opacity: 1; }

/* mozgás-osztályok az egész karakteren */
.mia-wrap.mia-idle { animation: miaBob 3.4s ease-in-out infinite; }
@keyframes miaBob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(-1deg); } }
.mia-wrap.mia-focus { animation: miaLean 2.4s ease-in-out infinite; }
@keyframes miaLean { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-3px); } }
.mia-wrap.mia-singing { animation: miaSway 1.4s ease-in-out infinite; }
@keyframes miaSway { 0%, 100% { transform: rotate(-2.5deg) scale(1.02); } 50% { transform: rotate(2.5deg) scale(1.05); } }
.mia-wrap.mia-happy { animation: miaJump 0.55s ease-in-out infinite; }
@keyframes miaJump { 0%, 100% { transform: translateY(0) rotate(-2deg); } 40% { transform: translateY(-16px) rotate(2deg) scale(1.04); } }
.mia-wrap.mia-oops { animation: miaSad 2.6s ease-in-out infinite; filter: saturate(0.75); }
@keyframes miaSad { 0%, 100% { transform: rotate(3deg) translateY(3px); } 50% { transform: rotate(1deg) translateY(5px); } }

/* kirepülő hangjegyek */
.mia-note {
  position: absolute; top: 16%; z-index: 3;
  font-size: 26px; font-weight: 700;
  pointer-events: none;
  text-shadow: 1.5px 1.5px 0 #fff;
  animation: noteFloat 1.5s ease-out forwards;
}
@keyframes noteFloat {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6) rotate(-10deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--drift, 20px), -95px) scale(1.3) rotate(12deg); }
}

/* ---------- főoldal (design.png sablon) ---------- */
.hero-card {
  position: relative;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 24px 34px;
  background:
    radial-gradient(340px 200px at 6% 118%, rgba(155, 130, 225, 0.28), transparent 70%),
    radial-gradient(360px 220px at 99% 120%, rgba(180, 150, 230, 0.26), transparent 70%),
    var(--paper-card);
  border: var(--crayon-border);
  border-radius: 34px 30px 36px 28px / 28px 36px 30px 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 16px 0;
}
.hero-card::before {
  content: ''; position: absolute; top: 14px; right: 24px;
  width: 92px; height: 26px; opacity: 0.6;
  background: url('../assets/voicecheck/dec_sparkles.webp') center/contain no-repeat;
}
.hero-staff {
  position: absolute; right: 24px; top: 34%; width: 62px; height: auto; opacity: 0.16;
  transform: rotate(-6deg); pointer-events: none;
}
.hero-cat { flex-shrink: 0; height: 220px; display: flex; align-items: center; z-index: 1; }
.hero-text { z-index: 1; flex: 1; min-width: 260px; }
.hero-title {
  font-family: var(--font-head);
  margin: 10px 0 2px; font-size: 44px; font-weight: 900; line-height: 1.05;
  background: linear-gradient(100deg, #3f57b5, #7c5fd3 55%, #b14b9c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.2px;
}
.hero-flourish { margin: 4px 0 12px; line-height: 0; }
.hero-flourish img { width: 84px; height: auto; opacity: 0.75; }

.reward-row { display: flex; gap: 12px; flex-wrap: wrap; }
.reward-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 2.5px solid rgba(232, 162, 61, 0.5);
  border-radius: 999px; padding: 7px 18px 7px 12px;
  box-shadow: var(--shadow);
}
.reward-pill .reward-ico { font-size: 24px; }
.reward-pill b { font-family: var(--font-head); font-size: 22px; color: var(--ink); }
.reward-pill .reward-lbl { font-family: var(--font-head); font-size: 14px; color: var(--ink-soft); }
.reward-pill.streak { border-color: rgba(228, 118, 87, 0.5); }

.speech-bubble {
  display: inline-block; position: relative;
  font-family: var(--font-head);
  background: #fff;
  border: 2.5px dashed rgba(124, 95, 211, 0.55);
  border-radius: 18px 22px 20px 24px / 24px 18px 22px 20px;
  padding: 10px 18px;
  font-size: 19px;
  box-shadow: var(--shadow);
  max-width: 460px;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.speech-bubble.small { font-size: 17px; padding: 8px 14px; }
.bubble-heart { color: var(--pink); }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin: 6px 0; }
.game-card {
  position: relative;
  font-family: var(--font-body);
  text-align: left;
  background: var(--paper-card);
  border: 2.5px solid rgba(91, 74, 158, 0.18);
  border-left: 8px solid var(--theme, var(--primary));
  border-radius: 24px 20px 26px 22px / 20px 26px 22px 24px;
  box-shadow: var(--shadow);
  padding: 16px 60px 16px 16px;
  cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s;
  animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } }
.game-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 16px 34px rgba(120, 90, 60, 0.24); }
.game-card:hover .game-arrow { transform: scale(1.12) translateX(2px); }
.game-icon { flex-shrink: 0; width: 84px; height: 84px; }
.game-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(120, 90, 60, 0.18)); }
.game-body { display: flex; flex-direction: column; gap: 3px; }
.game-name { font-family: var(--font-head); font-size: 25px; color: var(--theme, var(--primary-dark)); line-height: 1; }
.game-desc { font-size: 14.5px; color: var(--ink-soft); }
.game-arrow {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--theme, var(--primary)); color: #fff;
  font-size: 24px; font-weight: 700; line-height: 1;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.octave-ctl { display: inline-flex; gap: 6px; align-items: center; }
.octave-btn { font-size: 15px; padding: 7px 14px; }

.tip-pill {
  font-family: var(--font-head);
  text-align: center; margin: 16px auto 0; max-width: 720px;
  color: var(--ink-soft); font-size: 17px;
  background: #faf3ff;
  border: 2.5px dashed rgba(124, 95, 211, 0.4);
  border-radius: 999px; padding: 10px 24px;
}

/* onboarding */
.onboard-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(74, 58, 133, 0.4);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.onboard-card {
  background: var(--paper-card);
  border: var(--crayon-border);
  border-radius: 30px 26px 32px 24px / 26px 32px 24px 30px;
  box-shadow: 0 24px 70px rgba(40, 25, 80, 0.35);
  padding: 28px 34px; text-align: center; max-width: 480px;
}
.onboard-card h2 { font-family: var(--font-head); margin: 8px 0; font-size: 28px; color: var(--primary-dark); }
.onboard-card p { color: var(--ink-soft); font-size: 17px; }
.onboard-cat { display: flex; justify-content: center; height: 170px; }
.onboard-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

/* ---------- mikrofon-kapu ---------- */
.mic-gate {
  position: absolute; inset: 8px; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  margin: 0; text-align: center;
}
.mic-gate h2 { font-family: var(--font-head); font-size: 26px; margin: 4px; }
.mic-gate-icon { font-size: 56px; animation: bgFloat 3s ease-in-out infinite; }
.mic-error { color: #b8474f; font-weight: 700; }

/* ---------- kalibráció ---------- */
.level-meter {
  max-width: 420px; margin: 12px auto 4px;
  background: #f3e8cd;
  border: 2.5px solid rgba(91, 74, 158, 0.35);
  border-radius: 999px; padding: 4px;
}
.level-bar {
  height: 24px; border-radius: 999px; width: 0%;
  background: var(--orange);
  transition: width 0.1s linear, background 0.2s;
}
.level-bar[data-state="good"] { background: var(--green); }
.level-bar[data-state="loud"] { background: var(--pink); }
.level-label { font-family: var(--font-head); margin-top: 6px; font-size: 22px; }

/* ---------- dallamlétra ---------- */
.ladder-wrap { width: 94px; height: 265px; }
.ladder {
  position: relative; width: 100%; height: 100%;
  background: linear-gradient(180deg, #f8f0fb, #fdeef2);
  border: var(--crayon-border);
  border-radius: 22px 18px 24px 20px / 18px 24px 20px 22px;
  box-shadow: var(--shadow);
  transition: opacity 0.3s;
}
.ladder-zone {
  position: absolute; left: 7%; width: 86%;
  background: rgba(103, 181, 88, 0.3);
  border: 2.5px dashed rgba(80, 150, 70, 0.6);
  border-radius: 14px;
  top: 40%; height: 20%;
  transition: height 0.3s, top 0.3s, background 0.2s;
}
.ladder.zone-hot .ladder-zone { background: rgba(103, 181, 88, 0.55); box-shadow: 0 0 16px rgba(103, 181, 88, 0.55); }
.ladder-marker {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  transition: top 0.08s linear, opacity 0.2s;
  filter: drop-shadow(1.5px 1.5px 0 #fff) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.ladder-marker.in-zone { animation: markerPulse 0.5s ease-in-out infinite; }
@keyframes markerPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.3) rotate(14deg); } }
.ladder-hint { position: absolute; left: 50%; transform: translateX(-50%); font-size: 24px; opacity: 0; transition: opacity 0.2s; }
.ladder-hint-up { top: 5px; }
.ladder-hint-down { bottom: 5px; }
.ladder-hint.on { opacity: 1; animation: hintBlink 0.8s infinite; }
@keyframes hintBlink { 50% { opacity: 0.3; } }

/* ---------- hold ring ---------- */
.ring-wrap { display: flex; align-items: center; justify-content: center; }
.ring-wrap.center { margin: 10px auto; }
.hold-ring .ring-bg { fill: none; stroke: rgba(91, 74, 158, 0.2); stroke-width: 10; stroke-dasharray: 4 7; stroke-linecap: round; }
.hold-ring .ring-fill { fill: none; stroke: var(--green); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 0.08s linear; }
.hold-ring .ring-fill.ring-full { stroke: var(--orange); }
.hold-ring .ring-emoji { font-size: 28px; }

/* ---------- lufik ---------- */
/* ---------- Lufipukkantás: dupla-rétegű keret + felhős ég + designolt lufik ---------- */
.card.stage-card.balloon-stage {
  position: relative;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(180deg, #fdf5fb 0%, #f4edfb 60%, #eef0fc 100%);
  border: 6px solid #f7a6bf;                       /* vékony korall-rózsaszín külső perem */
  box-shadow:
    0 20px 44px rgba(150, 120, 185, 0.30),         /* lágy külső árnyék */
    inset 0 0 0 4px #fff9f0,                        /* krémfehér csík a rétegek között */
    inset 0 0 0 11px #cdb8f0,                       /* lágy levendula belső perem */
    inset 0 6px 10px rgba(255, 255, 255, 0.85),     /* finom belső fénykiemelés (bevel) */
    inset 0 -10px 18px rgba(150, 120, 185, 0.10);
}
.balloon-stage .balloon-sky {
  position: relative;
  background: url('../assets/balloons/sky.webp') center 22% / cover no-repeat, linear-gradient(180deg, #bfe2f6, #eef6ec);
  border: none;
  border-radius: 30px;
  padding: 26px 12px 16px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5), inset 0 -20px 26px rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.balloon-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; min-height: 120px; }
.balloon {
  position: relative;
  display: flex; align-items: flex-start; justify-content: center;
  animation: balloonBob 2.4s ease-in-out infinite;
  animation-delay: var(--bob-delay, 0s);
}
@keyframes balloonBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
.balloon-img {
  width: 76px; height: auto; display: block;
  transform-origin: center bottom;
  transform: scale(var(--grow, 1));
  transition: transform 0.12s ease, filter 0.2s ease;
  filter: drop-shadow(0 6px 8px rgba(90, 70, 130, 0.25));
  will-change: transform;
}
.balloon.target { z-index: 3; animation-duration: 1.5s; }
.balloon.target .balloon-img {
  filter: drop-shadow(0 0 10px var(--balloon-color, #e4577e)) drop-shadow(0 6px 8px rgba(90, 70, 130, 0.3));
}
/* kitartott hangnál: a lebegés megáll, a lufi rezeg és nő */
.balloon.holding { animation-play-state: paused; }
.balloon.holding .balloon-img { animation: balloonShake 0.1s linear infinite; }
@keyframes balloonShake {
  0%   { transform: translate(-2px, 0)  rotate(-1.6deg) scale(var(--grow, 1)); }
  50%  { transform: translate(2px, -1px) rotate(1.6deg) scale(var(--grow, 1)); }
  100% { transform: translate(-2px, 0)  rotate(-1.6deg) scale(var(--grow, 1)); }
}
/* durranás pillanata → utána kipukkadva marad */
.balloon.popping { animation-play-state: paused; }
.balloon.popping .balloon-img { animation: balloonBurst 0.62s ease-out both; }
@keyframes balloonBurst {
  0%   { transform: scale(1.06); }
  100% { transform: scale(1.3); }
}
.balloon.popped { animation: none; }
.balloon.popped .balloon-img {
  transform: scale(1.05);
  opacity: 0.97;
  filter: drop-shadow(0 5px 7px rgba(90, 70, 130, 0.22));
}

.stage-mid { display: flex; align-items: center; justify-content: center; gap: 36px; margin: 14px 0; flex-wrap: wrap; }
.stage-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stage-cat.center { margin: 0 auto; }
.stage-cat .mia-wrap, #gameCat .mia-wrap { height: 160px; }

/* ---------- konfetti + dekor + toast ---------- */
.confetti {
  position: absolute; top: -12px; z-index: 20;
  animation: confettiFall 2s ease-in forwards;
  pointer-events: none;
}
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(68vh) rotate(420deg); opacity: 0; }
}
.decor-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.decor { position: absolute; font-size: 22px; opacity: 0.3; animation: bgFloat ease-in-out infinite; }

.ach-toast {
  position: fixed; top: 18px; left: 50%; z-index: 80;
  transform: translate(-50%, -130%);
  background: #fff9e6;
  border: 3px solid rgba(232, 162, 61, 0.7);
  border-radius: 20px 24px 18px 26px / 24px 18px 26px 20px;
  box-shadow: 0 14px 40px rgba(120, 90, 60, 0.35);
  padding: 12px 28px; text-align: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ach-toast.show { transform: translate(-50%, 0) rotate(-1deg); }
.ach-toast-title { font-family: var(--font-head); font-size: 15px; color: var(--ink-soft); }
.ach-toast-body { font-family: var(--font-head); font-size: 23px; }

.badge-wall { display: flex; gap: 10px 4px; flex-wrap: wrap; justify-content: center; }
.sticker {
  width: 152px; max-width: 30%;
  filter: grayscale(1) opacity(0.5);
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
}
.sticker img { width: 100%; height: auto; display: block; }
.sticker.earned { filter: none; }
.sticker.earned:hover { transform: scale(1.06) rotate(-2deg); }

/* ---------- hullámvasút ---------- */
.track-picker { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
#coasterCanvas {
  width: 100%; height: auto;
  border: var(--crayon-border);
  border-radius: 20px 24px 18px 26px / 24px 18px 26px 20px;
  box-shadow: var(--shadow);
}

/* ---------- fülelő ---------- */
.ear-orbs { display: flex; justify-content: center; gap: 32px; margin: 18px 0; }
.ear-orb {
  width: 80px; height: 80px; border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 30px; color: #fff;
  text-shadow: 1.5px 1.5px 0 rgba(74, 58, 133, 0.5);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5), transparent 44%), var(--orange);
  border: 3px solid rgba(74, 58, 133, 0.5);
  box-shadow: var(--shadow);
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s;
}
.ear-orb.lit { transform: scale(1.25) rotate(-4deg); box-shadow: 0 0 0 5px rgba(245, 198, 35, 0.5), 0 0 26px rgba(232, 162, 61, 0.8); }
.ear-answers { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; }

/* ---------- visszhang ---------- */
.echo-chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; min-height: 56px; }
.echo-chip {
  font-family: var(--font-head);
  padding: 10px 18px;
  border-radius: 16px 20px 14px 22px / 20px 14px 22px 16px;
  background: var(--chip-color, var(--primary));
  border: 3px solid rgba(74, 58, 133, 0.45);
  color: #fff; font-size: 19px;
  text-shadow: 1.5px 1.5px 0 rgba(74, 58, 133, 0.5);
  opacity: 0.4;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.echo-chip.active { opacity: 1; transform: scale(1.2) translateY(-4px) rotate(-2deg); box-shadow: 0 0 0 4px var(--paper-card), 0 0 0 7px var(--chip-color), var(--shadow); }
.echo-chip.done { opacity: 1; }
.echo-chip.done::after { content: ' ✓'; }

/* ---------- felmérő ---------- */
.assess-part { font-family: var(--font-head); color: var(--primary-dark); font-size: 23px; min-height: 28px; margin: 8px 0; }

/* ---------- fejlődés ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stat-card { text-align: center; margin: 0; padding: 16px; }
.stat-label { font-size: 13px; color: var(--ink-soft); }
.stat-value { font-family: var(--font-head); font-size: 34px; color: var(--primary-dark); }
#trendCanvas { width: 100%; height: auto; }
.trial-list { display: flex; flex-direction: column; gap: 6px; }
.trial-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  align-items: center; gap: 8px;
  background: #faf4e4;
  border: 1.5px solid rgba(91, 74, 158, 0.18);
  border-radius: 14px; padding: 8px 14px; font-size: 14px;
}
.trial-when { color: var(--ink-soft); text-align: right; }
.progress-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.card h3 { font-family: var(--font-head); font-size: 24px; margin: 4px 0 12px; color: var(--primary-dark); }

/* ---------- beállítások ---------- */
.settings-card { display: flex; flex-direction: column; gap: 4px; }
.setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 4px;
  border-bottom: 2px dashed rgba(124, 95, 211, 0.22);
  font-family: var(--font-head); font-size: 19px;
}
.setting-row select, .setting-row input[type="text"] {
  font-family: var(--font-body); font-size: 16px; padding: 8px 14px;
  border-radius: 14px; border: 2.5px solid rgba(124, 95, 211, 0.4);
  background: #fff; color: var(--ink);
}
.setting-row input[type="range"] { width: 180px; accent-color: var(--primary); }
.setting-value { font-size: 16px; color: var(--ink-soft); }

/* ---------- Mia zenei utazása (térkép) ---------- */
.journey-scroll {
  overflow-x: auto; overflow-y: hidden;
  border-radius: 26px;
  border: var(--crayon-border);
  box-shadow: var(--shadow);
  margin: 10px 0;
  -webkit-overflow-scrolling: touch;
}
.journey-map {
  position: relative;
  background:
    radial-gradient(600px 300px at 20% 120%, rgba(155,130,225,0.18), transparent 70%),
    linear-gradient(180deg, #eaf6ff 0%, #f4f0e0 60%, #eef7e6 100%);
}
.journey-road { position: absolute; inset: 0; }
.jworld {
  position: absolute; transform: translate(-50%, -50%);
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-body);
  transition: transform 0.16s cubic-bezier(0.34,1.56,0.64,1);
}
.jworld:hover { transform: translate(-50%, -50%) scale(1.06); }
.jbadge {
  position: relative;
  width: 96px; height: 96px; border-radius: 50%;
  background: #fffdf4;
  border: 4px solid #cbb9f2;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.jbadge img { width: 84%; height: 84%; object-fit: contain; }
.jbadge svg { width: 66%; height: 66%; }
.jcheck {
  position: absolute; right: -4px; top: -4px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #5bbf67; color: #fff; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #fffdf4; font-size: 15px;
}
.jlabel { text-align: center; background: rgba(255,253,244,0.9); border-radius: 12px; padding: 3px 10px; box-shadow: var(--shadow); }
.jname { display: block; font-weight: 900; font-size: 16px; color: var(--primary-dark); line-height: 1.05; }
.jtag { display: block; font-size: 12px; color: var(--ink-soft); }

.jworld.st-completed .jbadge { border-color: #7fcf88; }
.jworld.st-current .jbadge { border-color: #e8a23d; animation: jpulse 1.4s ease-in-out infinite; }
@keyframes jpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,162,61,0.5), var(--shadow); } 50% { box-shadow: 0 0 0 10px rgba(232,162,61,0), var(--shadow); } }
.jworld.st-current .jname { color: #d98a1e; }
.jworld.st-locked { filter: grayscale(0.6) opacity(0.75); }
.jworld.st-locked .jbadge { border-color: #c9c3d8; }
.jworld.st-future { filter: grayscale(1) opacity(0.5); }
.jworld.st-future .jbadge { border-style: dashed; }

.jcar {
  position: absolute; transform: translate(-50%, -50%);
  width: 92px; pointer-events: none; z-index: 5;
  animation: jcarBob 1.8s ease-in-out infinite;
}
.jcar-svg { width: 100%; height: auto; filter: drop-shadow(0 4px 5px rgba(120,90,60,0.25)); }
@keyframes jcarBob { 0%,100% { transform: translate(-50%, -50%) rotate(-1.5deg); } 50% { transform: translate(-50%, -58%) rotate(1.5deg); } }

.journey-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 140%);
  background: #fff; border: 3px solid rgba(124,95,211,0.4);
  border-radius: 16px; padding: 10px 22px; font-weight: 800; color: var(--ink);
  box-shadow: 0 12px 30px rgba(120,90,60,0.25); z-index: 90;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.journey-toast.show { transform: translate(-50%, 0); }

/* főoldali utazás-banner */
.journey-banner {
  display: flex; align-items: center; gap: 16px;
  width: 100%; text-align: left;
  background: linear-gradient(100deg, #8d70e2, #6b4fc0);
  color: #fff; border: none; cursor: pointer;
  border-radius: 24px; padding: 16px 22px; margin: 4px 0 6px;
  box-shadow: 0 6px 0 #4a3a85, var(--shadow);
  transition: transform 0.16s cubic-bezier(0.34,1.56,0.64,1);
  font-family: var(--font-body);
}
.journey-banner:hover { transform: translateY(-3px); }
.journey-banner .jb-emoji { font-size: 40px; }
.journey-banner .jb-title { font-weight: 900; font-size: 24px; }
.journey-banner .jb-sub { font-size: 14px; opacity: 0.92; }
.journey-banner .jb-go { margin-left: auto; font-size: 30px; }

/* ---------- márka-loader ---------- */
.loader-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: #0e0a1c;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: opacity 0.5s ease;
  cursor: pointer;
}
.loader-overlay.loader-out { opacity: 0; }
.loader-img { width: min(72vw, 460px); height: auto; }

/* ---------- intró ---------- */
.intro-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: opacity 0.6s ease;
}
.intro-overlay::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.intro-overlay.intro-out { opacity: 0; }
.intro-overlay.intro-out-fast { opacity: 0; transition-duration: 0.2s; }

.intro-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: min(92vw, 640px);
  padding: 30px 10px 40px;
  text-align: center;
  overflow: visible;
}
/* reflektorfény Mia mögött */
.intro-spot {
  position: absolute; top: 4%; left: 50%; transform: translateX(-50%);
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 170, 0.85), rgba(255, 232, 170, 0) 68%);
  transition: transform 0.6s ease, opacity 0.6s;
  opacity: 0.55;
}
.intro-playing .intro-spot { opacity: 1; transform: translateX(-50%) scale(1.18); }

.intro-cat { position: relative; z-index: 2; height: 235px; }

.intro-title {
  position: relative; z-index: 2;
  font-family: var(--font-head);
  font-size: 62px; font-weight: 400; margin: 4px 0 0;
  color: var(--primary-dark);
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 rgba(228, 87, 126, 0.35);
  letter-spacing: 2px;
  opacity: 0; transform: translateY(16px) scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.intro-title.on { opacity: 1; transform: translateY(0) scale(1); }
.intro-title.bounce { animation: introTitleBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes introTitleBounce {
  0% { transform: scale(1); }
  45% { transform: scale(1.16) rotate(-2deg); }
  100% { transform: scale(1); }
}
.intro-tagline {
  z-index: 2;
  font-family: var(--font-head);
  font-size: 22px; color: var(--ink-soft);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.intro-tagline.on { opacity: 1; transform: translateY(0); }

/* belépés gomb: kivágott mancs-kép, lüktet, kattintásra „belecsapós" */
.intro-enter {
  position: relative; z-index: 2; margin-top: 6px;
  background: none; border: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  animation: introPulse 1.7s ease-in-out infinite;
  transform-origin: center 70%;
}
@keyframes introPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05) rotate(-1deg); } }
.intro-enter-img {
  width: min(51vw, 264px); height: auto; display: block;
  filter: drop-shadow(0 10px 18px rgba(90, 60, 140, 0.35));
  pointer-events: none;
}
.intro-enter:hover { animation-play-state: paused; }
.intro-enter:hover .intro-enter-img { transform: scale(1.03); }
/* lökéshullám-gyűrű a becsapódáskor */
.intro-enter-ring {
  position: absolute; left: 50%; top: 60%; width: 40px; height: 40px;
  border-radius: 50%; border: 6px solid rgba(255, 214, 90, 0.9);
  transform: translate(-50%, -50%) scale(0.2); opacity: 0; pointer-events: none;
}
/* „belecsapás": a mancs gyorsan behúzódik, majd visszapattan + gyűrű robban */
.intro-enter.slap { animation: introSlap 0.42s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
@keyframes introSlap {
  0% { transform: scale(1); }
  22% { transform: scale(0.82) rotate(2deg); }
  55% { transform: scale(1.12) rotate(-1deg); }
  100% { transform: scale(1); }
}
.intro-enter.slap .intro-enter-ring { animation: introRing 0.5s ease-out both; }
@keyframes introRing {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}
.intro-enter.gone { opacity: 0; transform: scale(0.6); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease; animation: none; }
.intro-skip { position: absolute; right: 6px; bottom: 4px; z-index: 3; font-size: 16px; }

/* letisztult nyitókép (opening_design): nincs függöny, halkabb reflektor */
.intro-curtain { display: none; }
.intro-spot { opacity: 0.35 !important; }
.intro-title { font-weight: 900; }
.intro-curtain-legacy {
  position: fixed; top: 0; bottom: 0; width: 14vw; max-width: 150px; z-index: 1;
  background:
    repeating-linear-gradient(90deg,
      #8d70e2 0, #8d70e2 18px,
      #7a5cd0 18px, #7a5cd0 36px);
  border-bottom: 10px solid #e8a23d;
  opacity: 0.92;
  transition: transform 0.8s cubic-bezier(0.5, 0, 0.4, 1);
}
.intro-curtain-l { left: 0; border-radius: 0 22px 26px 0 / 0 30px 24px 0; }
.intro-curtain-r { right: 0; border-radius: 22px 0 0 26px / 30px 0 0 24px; }
.intro-playing .intro-curtain-l { transform: translateX(-108%); }
.intro-playing .intro-curtain-r { transform: translateX(108%); }

@media (max-width: 660px) {
  .intro-title { font-size: 42px; }
  .intro-cat { height: 180px; }
  .intro-curtain { width: 9vw; }
}

/* ---------- mobil + hozzáférhetőség ---------- */
@media (max-width: 660px) {
  .game-head h1 { font-size: 26px; }
  .hero-card { padding: 18px; gap: 14px; }
  .hero-cat { height: 150px; }
  .hero-title { font-size: 32px; }
  .game-grid { grid-template-columns: 1fr; }
  .ladder-wrap { height: 205px; width: 74px; }
  .btn-answer { font-size: 18px; padding: 12px 16px; }
  .trial-row { grid-template-columns: 1fr 1fr; }
  .trial-when { text-align: left; }
  .stage-mid { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ================= Hangpróba / Voice Check ================= */
.vc { position: relative; padding-top: 4px; }
.vc-head { display: flex; align-items: center; gap: 18px; max-width: 1100px; margin: 0 auto 4px; position: relative; z-index: 1; }
.vc-title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(23px, 3vw, 33px); color: var(--primary-dark); }
.vc-title-ico { width: 34px; height: auto; object-fit: contain; }
.vc-head-spacer { flex: 1; }

.vc-card {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 30px; align-items: center;
  max-width: 1100px; margin: 6px auto 0;
  background: linear-gradient(180deg, #fffdf8, #fdf7ef);
  border: 1.5px solid rgba(180, 160, 225, 0.32);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(150, 120, 185, 0.18);
  padding: 30px 38px;
}
.vc-left { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vc-mascot {
  width: clamp(190px, 22vw, 280px); height: auto; object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(120, 90, 150, 0.22));
  animation: vcMascotIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes vcMascotIn { 0% { transform: scale(0.82) translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.vc-bubble-slot { min-height: 8px; display: flex; justify-content: center; }
.vc-bubble-img { width: clamp(165px, 20vw, 235px); height: auto; object-fit: contain; margin-top: -4px; animation: vcMascotIn 0.55s ease both 0.1s; }
.vc-bubble {
  position: relative; background: #fff; border: 2px solid rgba(180, 160, 225, 0.5);
  border-radius: 16px; padding: 10px 16px; margin-top: 6px;
  font-family: var(--font-head); font-weight: 700; color: var(--primary-dark); box-shadow: var(--shadow);
}
.vc-bubble::after { content: ''; position: absolute; top: -9px; left: 34px; border: 8px solid transparent; border-bottom-color: #fff; }

.vc-right { min-width: 0; }
.vc-instr { font-family: var(--font-head); font-weight: 800; font-size: clamp(18px, 2.2vw, 22px); color: var(--ink); margin: 0 0 6px; max-width: 470px; line-height: 1.35; }
.vc-h2 { font-family: var(--font-head); font-weight: 900; font-size: clamp(19px, 2.3vw, 24px); color: var(--primary-dark); margin: 0 0 6px; max-width: 470px; }
.vc-sub { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 4px; max-width: 450px; line-height: 1.42; }

/* lépésjelző */
.vc-stepper { display: flex; align-items: flex-start; max-width: 380px; margin: 18px 0 6px; }
.vc-step { width: 78px; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.vc-step-dot {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 20px;
  background: #fff; color: var(--ink-soft); box-shadow: inset 0 0 0 2.5px #d9ccf2;
  transition: all 0.2s ease;
}
.vc-step-label { font-size: 13px; color: var(--ink-soft); font-weight: 600; text-align: center; }
.vc-step.active .vc-step-dot { background: linear-gradient(180deg, #8a6ff0, #6f55d3); color: #fff; box-shadow: 0 6px 14px rgba(124, 95, 211, 0.4), 0 0 0 5px rgba(124, 95, 211, 0.14); }
.vc-step.active .vc-step-label { color: var(--ink); font-weight: 800; }
.vc-step.done .vc-step-dot { background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(124, 95, 211, 0.3); }
.vc-step.done .vc-step-label { color: var(--ink-soft); }
.vc-step-line { flex: 1; height: 4px; border-radius: 2px; background: #e6ddf6; margin-top: 21px; transition: background 0.25s; }
.vc-step-line.done { background: var(--primary); }

/* akciók / CTA */
.vc-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.vc .btn.vc-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff;
  background: linear-gradient(180deg, #8a6ff0, #6f55d3); border: none; border-radius: 999px;
  padding: 12px 26px; box-shadow: 0 8px 18px rgba(111, 85, 211, 0.38);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s; cursor: pointer;
}
.vc .btn.vc-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(111, 85, 211, 0.45); }
.vc .btn.vc-cta:active { transform: translateY(0) scale(0.97); box-shadow: 0 5px 12px rgba(111, 85, 211, 0.35); }
.vc .btn.vc-cta:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: 0 5px 12px rgba(111, 85, 211, 0.2); }
.vc-cta-paw { width: 26px; height: auto; object-fit: contain; }
.vc-link { background: none; border: none; color: var(--primary); font-family: var(--font-head); font-weight: 700; font-size: 16px; text-decoration: underline; cursor: pointer; padding: 6px; }
.vc-link:hover { color: var(--primary-dark); }
.vc-status { font-family: var(--font-head); font-weight: 700; color: var(--ink); min-height: 24px; margin: 10px 0 2px; }

/* mikrofon vizuál */
.vc-mic-visual { position: relative; width: 172px; height: 172px; margin: 10px auto 2px; display: grid; place-items: center; }
.vc-mic-img { width: 74px; height: auto; position: relative; z-index: 2; animation: vcMicPulse 1.8s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(90, 70, 130, 0.25)); }
@keyframes vcMicPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.vc-mic-ring {
  position: absolute; left: 50%; top: 50%; width: 122px; height: 122px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(calc(1 + var(--amp, 0) * 0.7));
  background: radial-gradient(circle, rgba(124, 95, 211, 0.16), rgba(124, 95, 211, 0) 70%);
  border: 3px solid rgba(124, 95, 211, 0.35); transition: transform 0.09s ease, border-color 0.3s;
}
.vc-mic-ring2 { width: 152px; height: 152px; border-color: rgba(228, 87, 126, 0.26); background: radial-gradient(circle, rgba(228, 87, 126, 0.1), transparent 70%); }
.vc-mic-visual.is-detected .vc-mic-ring { border-color: rgba(103, 181, 88, 0.65); background: radial-gradient(circle, rgba(103, 181, 88, 0.18), transparent 70%); }
.vc-mic-visual.is-detected .vc-mic-ring2 { border-color: rgba(103, 181, 88, 0.4); }
.vc-mic-visual.is-error .vc-mic-img { animation: none; opacity: 0.6; }
.vc-mic-visual.is-error .vc-mic-ring { border-color: rgba(228, 87, 126, 0.5); border-style: dashed; }

/* hangterjedelem vizuál */
.vc-range-visual { margin: 8px 0 2px; max-width: 470px; }
.vc-range-track { position: relative; height: 26px; border-radius: 999px; background: linear-gradient(90deg, #eaf4ff, #f3ecfb 50%, #ffe9f1); box-shadow: inset 0 2px 5px rgba(90, 70, 130, 0.12); }
.vc-range-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(124, 95, 211, 0.4), rgba(228, 87, 126, 0.4)); transition: left 0.25s, width 0.25s; }
.vc-range-marker { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff; box-shadow: 0 0 0 3px var(--primary); transition: left 0.2s; z-index: 2; }
.vc-range-marker.hi { box-shadow: 0 0 0 3px var(--pink); }
.vc-range-dot { position: absolute; top: 50%; width: 34px; height: auto; transform: translate(-50%, -62%); transition: left 0.12s ease; z-index: 3; filter: drop-shadow(0 3px 4px rgba(90, 70, 130, 0.3)); }
.vc-range-note { text-align: center; font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--primary-dark); min-height: 30px; margin-top: 12px; }

/* eredmény */
.vc-result-range { display: flex; align-items: center; gap: 14px; margin: 12px 0; max-width: 460px; }
.vc-rr-note { font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 4vw, 30px); color: var(--primary-dark); background: #fff; border-radius: 16px; padding: 6px 18px; box-shadow: var(--shadow); }
.vc-rr-line { flex: 1; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--pink)); position: relative; }
.vc-result-ok { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; color: #5a8f3a; margin: 4px 0 2px; }
.vc-result-ok img { width: 26px; height: auto; }

/* háttérdísz */
.vc-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.vc-d { position: absolute; opacity: 0.5; width: 50px; height: auto; object-fit: contain; animation: vcFloat 6s ease-in-out infinite; }
.vc-d1 { left: 2%; top: 120px; width: 44px; animation-delay: 0s; }
.vc-d2 { right: 4%; top: 84px; width: 66px; animation-delay: 0.8s; }
.vc-d3 { left: 4%; top: 58%; width: 42px; animation-delay: 1.4s; }
.vc-d4 { right: 3%; bottom: 7%; width: 54px; animation-delay: 0.5s; }
.vc-d5 { left: 1%; bottom: 4%; width: 92px; opacity: 0.42; animation-delay: 1.1s; }
.vc-d6 { right: 8%; top: 30%; width: 40px; animation-delay: 1.9s; }
.vc-d7 { right: 11%; bottom: 26%; width: 42px; animation-delay: 0.3s; }
@keyframes vcFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(5deg); } }

/* reszponzív */
@media (max-width: 820px) {
  .vc-card { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px; text-align: center; }
  .vc-instr, .vc-h2, .vc-sub, .vc-range-visual, .vc-result-range { max-width: none; margin-left: auto; margin-right: auto; }
  .vc-stepper { margin-left: auto; margin-right: auto; }
  .vc-actions { justify-content: center; }
  .vc-mic-visual { margin-left: auto; margin-right: auto; }
  .vc-mascot { width: clamp(160px, 46vw, 220px); }
}
@media (max-width: 480px) {
  .vc-card { margin: 6px 10px 0; padding: 18px 16px; border-radius: 22px; }
  .vc-decor { display: none; }
  .vc .btn.vc-cta { font-size: 18px; padding: 11px 22px; }
}

   SzólMi — Hullámvasút v1.2 visual refactor
   Ezt az app.css VÉGÉRE lehet illeszteni.
   ============================================================ */

.coaster-screen {
  --coaster-purple: #6848bf;
  --coaster-purple-dark: #4a358e;
  --coaster-yellow: #ffd85a;
  --coaster-green: #72c67b;
  --coaster-cream: rgba(255, 253, 244, 0.94);
}

.coaster-head { gap: 10px; }
.coaster-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
}
.coaster-title-wrap h1 { margin: 0; }
.coaster-title-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(77, 52, 128, 0.16));
}
.coaster-scorebar .scorechip {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(7px);
}

.coaster-card {
  padding: 16px;
  border-top: 0 !important;
  overflow: visible;
  background: rgba(255, 253, 244, 0.97);
}

.coaster-track-picker {
  margin: 0 0 12px;
  gap: 8px;
}
.coaster-course-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 15px;
  border-width: 2px;
  background: #fff;
  box-shadow: 0 2px 0 rgba(91,74,158,0.28), 0 5px 14px rgba(83,65,121,0.08);
}
.coaster-course-btn.active {
  background: linear-gradient(180deg, #8d70e2, #6b4fc0);
  color: #fff;
  border-color: rgba(74,58,133,0.75);
}

.coaster-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 330px;
  overflow: hidden;
  border: 3px solid rgba(91, 74, 158, 0.45);
  border-radius: 28px 24px 30px 22px / 24px 30px 22px 28px;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,253,244,0.06)),
    url('../assets/game/coaster/rollercoaster_bg.png');
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 10px 25px rgba(88,61,122,0.14);
  isolation: isolate;
}
.coaster-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(246,252,255,0.04) 45%, rgba(49,40,97,0.10));
}

#coasterCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.coaster-cart {
  position: absolute;
  z-index: 5;
  width: clamp(104px, 13.5vw, 158px);
  height: auto;
  transform: translate(-50%, -86%);
  transform-origin: 50% 92%;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 8px 7px rgba(54,42,90,0.22));
  transition: filter 0.2s ease;
  will-change: left, top, transform;
}
.coaster-cart-hop { animation: coasterCartHop 0.5s cubic-bezier(.34,1.56,.64,1); }
@keyframes coasterCartHop {
  0%,100% { transform: translate(-50%, -86%) rotate(0deg) scale(1); }
  45% { transform: translate(-50%, -100%) rotate(-4deg) scale(1.08); }
}
.coaster-cart-finish { animation: coasterCartFinish 1.2s cubic-bezier(.34,1.56,.64,1); }
@keyframes coasterCartFinish {
  0%,100% { transform: translate(-50%, -86%) scale(1); }
  35% { transform: translate(-50%, -98%) rotate(-6deg) scale(1.15); }
  65% { transform: translate(-50%, -92%) rotate(4deg) scale(1.08); }
}

.coaster-stage-topbar {
  position: absolute;
  z-index: 7;
  left: 14px;
  right: 14px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.coaster-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid rgba(92,72,148,0.28);
  border-radius: 999px;
  background: rgba(255,253,244,0.88);
  backdrop-filter: blur(7px);
  padding: 6px 12px;
  color: var(--coaster-purple-dark);
  font: 800 14px var(--font-body);
  box-shadow: 0 4px 12px rgba(72,52,103,0.10);
}

.coaster-target-card {
  position: absolute;
  z-index: 8;
  right: 18px;
  bottom: 16px;
  width: min(240px, 34%);
  min-width: 175px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'label feedback'
    'note feedback'
    'hold hold';
  column-gap: 10px;
  align-items: center;
  text-align: left;
  background: rgba(255,253,244,0.92);
  border: 2.5px solid rgba(91,74,158,0.40);
  border-radius: 22px 18px 24px 20px / 18px 24px 20px 22px;
  padding: 10px 12px 11px;
  box-shadow: 0 10px 24px rgba(61,43,96,0.16);
  backdrop-filter: blur(8px);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.coaster-target-card.is-locking {
  transform: scale(1.02);
  border-color: rgba(232,162,61,0.72);
  box-shadow: 0 10px 26px rgba(61,43,96,0.18), 0 0 0 4px rgba(255,216,90,0.20);
}
.coaster-target-card.is-ready {
  border-color: rgba(88,174,98,0.72);
  box-shadow: 0 10px 26px rgba(61,43,96,0.18), 0 0 0 5px rgba(114,198,123,0.22);
}
.coaster-target-label {
  grid-area: label;
  color: #7c70a3;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}
.coaster-target-note {
  grid-area: note;
  color: var(--coaster-purple-dark);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  margin-top: 2px;
}
.coaster-pitch-feedback {
  grid-area: feedback;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eee8f8;
  border: 2px solid rgba(91,74,158,0.24);
  color: #8a7bb5;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.coaster-pitch-feedback.is-high,
.coaster-pitch-feedback.is-low {
  background: #fff0d8;
  color: #cf7c23;
  transform: scale(1.05);
}
.coaster-pitch-feedback.is-good {
  background: #e8f7e8;
  color: #4d9f59;
  transform: scale(1.08);
}
.coaster-pitch-feedback.is-listen {
  background: #eee8ff;
  color: #7053c2;
}
.coaster-hold-track {
  grid-area: hold;
  height: 9px;
  margin-top: 8px;
  background: #ebe4f2;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(61,43,96,0.09);
}
.coaster-hold-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f1b747, #ffd85a 55%, #72c67b);
  transition: width .07s linear;
}

.coaster-bottom-row {
  display: grid;
  grid-template-columns: minmax(250px, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.coaster-coach {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.coaster-coach #gameCat {
  width: 105px;
  height: 105px;
  flex: 0 0 105px;
}
.coaster-coach .speech-bubble {
  margin: 0;
  max-width: 320px;
  text-align: left;
}
.coaster-controls { min-width: 0; }
.coaster-main-actions {
  justify-content: flex-end;
  margin-top: 0;
}
.coaster-octave-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.coaster-octave-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}
.coaster-octave-row .octave-btn {
  padding: 5px 10px;
  font-size: 13px;
  box-shadow: 0 2px 0 rgba(91,74,158,0.25);
}

.coaster-result {
  position: relative;
  min-height: 140px;
  margin: 14px 0 0;
  padding: 18px 170px 14px 18px;
  overflow: hidden;
  background: linear-gradient(110deg, #fff8df, #f5efff);
  border: 2.5px solid rgba(232,162,61,0.48);
  border-radius: 22px;
}
.coaster-result h2 { margin-top: 0; }
.coaster-result .stars-big { font-size: 34px; }
.coaster-result p { margin-bottom: 0; }
.coaster-finish-mia {
  position: absolute;
  right: 4px;
  bottom: -28px;
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px rgba(74,58,133,0.16));
}

@media (max-width: 820px) {
  .coaster-stage { aspect-ratio: 4 / 3; min-height: 380px; }
  .coaster-target-card { width: 210px; right: 10px; bottom: 10px; }
  .coaster-bottom-row { grid-template-columns: 1fr; }
  .coaster-main-actions, .coaster-octave-row { justify-content: center; }
  .coaster-coach { justify-content: center; }
}

@media (max-width: 560px) {
  .coaster-card { padding: 10px; }
  .coaster-title-icon { width: 42px; height: 42px; }
  .coaster-title-wrap { min-width: 210px; }
  .coaster-stage { min-height: 355px; border-radius: 22px; }
  .coaster-cart { width: 92px; }
  .coaster-stage-topbar { left: 8px; right: 8px; top: 8px; }
  .coaster-mini-pill { font-size: 11px; padding: 5px 8px; }
  .coaster-target-card {
    left: 9px;
    right: 9px;
    bottom: 9px;
    width: auto;
    min-width: 0;
  }
  .coaster-track-picker {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .coaster-course-btn { flex: 0 0 auto; }
  .coaster-coach #gameCat { width: 86px; height: 86px; flex-basis: 86px; }
  .coaster-result { padding-right: 105px; }
  .coaster-finish-mia { width: 115px; height: 115px; bottom: -12px; }
}

/* ============================================================
   SZOLMI DESIGN SYSTEM v1 — egységes alapréteg (globális)
   UI primary = LILA (márka). Korall/teal/arany = akcentus + jutalom/állapot.
   Illusztráció (Mia, táj) és UI külön réteg. Konkrét tokenek a spec szerint.
   ============================================================ */
:root {
  /* — Lekerekítés — */
  --r-sm: 14px;      /* kis elemek */
  --r-btn: 26px;     /* gombok (24–28) */
  --r-card: 28px;    /* kártyák */
  --r-panel: 36px;   /* nagy játékpanelek */
  --r-badge: 999px;  /* chip / badge */

  /* — Spacing rendszer (8px alap) — */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-6: 48px; --sp-8: 64px;

  /* — Felületek / háttér — */
  --surface: #fffdf8;
  --surface-2: #fdf7ef;
  --sky: #ddf4ff;

  /* — Akcentus + állapot (funkcióhoz kötve) — */
  --coral: #ff8a65;   --coral-soft: #ffe7de;   /* másodlagos CTA-akcentus */
  --teal:  #67c7c5;   --teal-soft:  #e0f4f3;   /* másodlagos info */
  --reward: #ffd65a;                            /* csillag / arany */
  --success: #63c174; --success-soft: #e6f6e8;  /* siker */
  --almost:  #e8a23d; --almost-soft:  #fcefd6;  /* majdnem */
  --retry:   #f28b82; --retry-soft:   #fde7e5;  /* próbáld újra (nincs piros ERROR) */
  --active:  #5a9bd8; --active-soft:  #e4f0fb;  /* aktív / hallgatás */
  --text-slate: #334155;

  /* — Árnyékok (nincs kemény fekete) — */
  --shadow-soft: 0 6px 18px rgba(55, 65, 81, 0.12);
  --shadow-hover: 0 10px 24px rgba(55, 65, 81, 0.16);
  --shadow-btn: 0 6px 16px rgba(111, 85, 211, 0.20);

  /* — Mozgás — */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-hover: 0.2s; --t-press: 0.12s; --t-pop: 0.28s; --t-page: 0.35s;

  /* — Betűk: cím = Baloo 2, törzs = Nunito — */
  --font-head: 'Baloo 2', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --focus-ring: 0 0 0 3px rgba(90, 155, 216, 0.55);
}

/* — Tartalom szélesség / mobil margó — */
main#screen { max-width: 1200px; padding-left: 20px; padding-right: 20px; }

/* — Típusskála (Baloo 2 címek, Nunito törzs) — */
.hero-title, .intro-title { font-family: var(--font-head); font-weight: 700; }
.game-head h1, .vc-title, .brand-name { font-family: var(--font-head); font-weight: 700; }
.card h3, .game-name, .vc-h2 { font-size: 22px; line-height: 28px; }

/* — Kártyák: lágy, egységes lekerekítés (nincs zsírkréta-hullám) — */
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1.5px solid rgba(51, 65, 81, 0.10);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}
.card:nth-child(even) { border-radius: var(--r-card); }

/* — Gombok: puha, ruganyos, egységes; min. 44px érintés — */
.btn {
  border-radius: var(--r-btn);
  border: 1.5px solid rgba(51, 65, 81, 0.10);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-body);
  font-weight: 700; font-size: 18px; line-height: 22px;
  min-height: 44px; padding: 10px 24px;
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.03); box-shadow: var(--shadow-hover); }
.btn:active:not(:disabled) { transform: scale(0.96); box-shadow: var(--shadow-soft); transition-duration: var(--t-press); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-primary {
  background: linear-gradient(180deg, #8a6ff0, #6b4fc0);
  border-color: rgba(107, 79, 192, 0.45);
  box-shadow: var(--shadow-btn);
  color: #fff; text-shadow: none;
  min-height: 56px; padding: 15px 30px;
}
.btn-primary.big { min-height: 56px; font-size: 20px; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-soft); min-height: 44px; }
.btn-nav { min-height: 40px; padding: 8px 16px; border-color: rgba(51, 65, 81, 0.08); }
/* korall másodlagos CTA-akcentus (nem a primary) */
.btn-accent { background: linear-gradient(180deg, #ff9d7d, #ff7a52); border-color: rgba(224, 110, 70, 0.4); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 82, 0.28); }

/* — Fókusz ring mindenre — */
.btn, a, [tabindex] { }
:focus-visible { outline: none; }
button:focus-visible, a:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--r-btn); }

/* — Egységes mikrofon-állapot jelző (17. pont) — */
.mic-indicator { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; padding: 6px 14px; border-radius: var(--r-badge); font-size: 15px; }
.mic-indicator::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #b8afce; }
.mic-indicator.is-idle { background: #efeaf7; color: var(--ink-soft); }
.mic-indicator.is-listening { background: var(--active-soft); color: #3f7bb0; }
.mic-indicator.is-listening::before { background: var(--active); animation: micDotPulse 1.1s ease-in-out infinite; }
.mic-indicator.is-detected { background: var(--success-soft); color: var(--success); }
.mic-indicator.is-detected::before { background: var(--success); }
@keyframes micDotPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.55; } }

/* — Saját ikon-alaposztály: egységes fény, lágy árnyék — */
.sg-ico { display: inline-block; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 2px 3px rgba(90, 70, 130, 0.18)); }
.sg-ico-24 { width: 24px; height: 24px; }
.sg-ico-40 { width: 40px; height: 40px; }
.sg-ico-64 { width: 64px; height: 64px; }

/* ============================================================
   Kezdő-hub (home) + Felfedezés (explore) + saját ikonos háttérdísz
   ============================================================ */
/* háttérdísz: saját ikonok emoji helyett */
.bg-note { width: 34px; height: auto; opacity: 0.30; }
.bg-note.n3 { width: 30px; }
.bg-note.n5 { width: 28px; }
.bg-note.n6 { width: 30px; }

/* jutalom-ikonok (saját kép) */
.reward-ico-img { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin-right: 2px; }

/* — HUB — */
.home-hub { position: relative; max-width: 760px; margin: 0 auto; padding-top: 6px; }
.hub-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hub-d { position: absolute; width: 46px; height: auto; opacity: 0.45; animation: hubFloat 6s ease-in-out infinite; }
.hd1 { left: -2%; top: 40px; width: 56px; }
.hd2 { right: 2%; top: 20px; animation-delay: 0.8s; }
.hd3 { right: 8%; bottom: 12%; animation-delay: 1.4s; }
.hd4 { left: 0%; bottom: 6%; width: 84px; opacity: 0.4; animation-delay: 0.5s; }
@keyframes hubFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-13px) rotate(5deg); } }

.hub-hero { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 22px; margin: 10px 0 26px; flex-wrap: wrap; }
.hub-cat { flex: 0 0 auto; cursor: pointer; }
.hub-hello { text-align: left; }
.hub-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; color: var(--primary-dark); margin: 0 0 12px; }

.hub-grid { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.hub-card {
  display: flex; align-items: center; gap: 18px; width: 100%; text-align: left;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1.5px solid rgba(51, 65, 81, 0.10); border-radius: var(--r-card);
  padding: 20px 24px; box-shadow: var(--shadow-soft); cursor: pointer;
  font-family: var(--font-body);
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.hub-card:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow-hover); }
.hub-card:active { transform: scale(0.98); transition-duration: var(--t-press); }
.hub-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.hub-card-ico { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 3px 4px rgba(90, 70, 130, 0.2)); }
.hub-card-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.hub-card-name { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 28px; color: var(--ink); }
.hub-card-sub { font-size: 15px; color: var(--ink-soft); }
.hub-card-go { font-size: 32px; color: var(--primary); font-weight: 800; flex: 0 0 auto; }

.hub-card.featured {
  background: linear-gradient(180deg, #efe8ff, #e6dbff);
  border-color: rgba(124, 95, 211, 0.32);
  box-shadow: 0 14px 30px rgba(124, 95, 211, 0.22);
  padding: 26px 28px;
}
.hub-card.featured .hub-card-ico { width: 80px; height: 80px; }
.hub-card.featured .hub-card-name { color: var(--primary-dark); font-size: clamp(23px, 3vw, 27px); }

.hub-grid-row { display: flex; gap: 16px; }
.hub-grid-row .hub-card { flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; }
.hub-grid-row .hub-card-body { flex: 0 1 auto; }

@media (max-width: 620px) {
  .hub-hero { flex-direction: column; gap: 6px; }
  .hub-hello { text-align: center; }
  .hub-grid-row { flex-direction: column; }
}

/* — EXPLORE (Felfedezés) — */
.explore-head { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.explore-titles h1 { font-family: var(--font-head); font-weight: 700; margin: 0; color: var(--primary-dark); font-size: clamp(26px, 3.4vw, 34px); }
.explore-sub { color: var(--ink-soft); margin: 2px 0 0; font-size: 15px; }

/* ============================================================
   Sárkányrepülő (glider) + Horgászás (fishing) — közös coaster-osztályokat újrahasznosít
   ============================================================ */
.gl-title-wrap, .coaster-title-wrap { display: inline-flex; align-items: center; gap: 10px; }
.gl-title-ico { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(90,70,130,.25)); }
.gl-title-wrap h1 { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--primary-dark); }

.glider-card, .fishing-card { padding-top: 16px; }
.gl-stage, .fish-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 7; min-height: 300px; overflow: hidden;
  border: 1.5px solid rgba(51,65,81,0.10); border-radius: var(--r-panel);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), var(--shadow-soft); isolation: isolate; margin-bottom: 14px;
}
#glCanvas, #fishCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* glider jármű: Mia + vitorla */
.gl-craft { position: absolute; z-index: 4; transform: translate(-50%, -50%); transition: top 0.08s linear; pointer-events: none; will-change: left, top; }
.gl-mia { width: clamp(56px, 8vw, 78px); height: auto; display: block; filter: drop-shadow(0 6px 6px rgba(54,42,90,0.25)); }
.gl-sail { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); width: 92px; height: 30px;
  background: linear-gradient(180deg, #a68bf0 0%, #8a6ff0 60%, #6b4fc0 100%);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%); border-radius: 10px 10px 6px 6px;
  box-shadow: 0 3px 6px rgba(90,70,130,0.25); }
.gl-craft::after { content: ''; position: absolute; left: 50%; top: -4px; width: 2px; height: 20px; background: rgba(107,79,192,0.6); transform: translateX(-50%); }
.gl-craft.in-lane .gl-mia { filter: drop-shadow(0 0 10px rgba(255,211,77,0.9)) drop-shadow(0 6px 6px rgba(54,42,90,0.25)); }
.gl-craft.in-lane .gl-sail { box-shadow: 0 0 14px rgba(255,211,77,0.8), 0 3px 6px rgba(90,70,130,0.25); }

/* haladás sáv + mikrofon-jelző a színpadon */
.gl-progress { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.55); z-index: 5; overflow: hidden; }
.gl-progress-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--reward)); transition: width 0.12s linear; }
.gl-mic, .fish-mic { position: absolute; left: 14px; top: 12px; z-index: 5; }

/* horgászás: Mia + hal */
.fish-mia { position: absolute; z-index: 4; width: clamp(90px, 13vw, 128px); height: auto; transform: translate(-50%, -70%); filter: drop-shadow(0 8px 7px rgba(54,42,90,0.22)); pointer-events: none; }
.fish-fish { position: absolute; z-index: 3; width: clamp(42px, 6vw, 58px); height: auto; transform: translate(-50%, -50%); transition: left 0.14s, top 0.14s, opacity 0.2s; filter: drop-shadow(0 4px 5px rgba(30,60,80,0.3)); pointer-events: none; }
.fish-fish.fish-slip { animation: fishSlip 0.5s ease; }
@keyframes fishSlip { 0% { transform: translate(-50%,-50%) scale(1); } 40% { transform: translate(-50%,10%) scale(0.9) rotate(20deg); } 100% { transform: translate(-50%,-50%) scale(1); } }
.fish-fish.fish-caught { animation: fishCaught 0.9s cubic-bezier(0.34,1.56,0.64,1) forwards; }
@keyframes fishCaught { 0% { transform: translate(-50%,-50%) scale(1); } 100% { transform: translate(-380%,-320%) scale(0.7) rotate(-25deg); } }
.fish-reward-img { width: 60px; height: auto; margin: 4px 0; }

/* horgászás célkártya (coaster-stílus) */
.fish-target { position: absolute; right: 14px; bottom: 30px; z-index: 5; width: min(230px, 40%);
  background: rgba(255,253,244,0.94); border: 1.5px solid rgba(51,65,81,0.10); border-radius: 20px;
  padding: 12px 16px; box-shadow: var(--shadow-soft); text-align: center; }
.fish-target-label { display: block; font-size: 14px; color: var(--ink-soft); font-weight: 700; min-height: 18px; }
.fish-target-note { display: block; font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--primary-dark); line-height: 1.1; }

@media (max-width: 620px) {
  .fish-target { width: 46%; right: 8px; }
  .gl-mic, .fish-mic { font-size: 13px; padding: 4px 10px; }
}

/* ============================================================
   Saját ikonok a korábbi rendszer-emojik helyén (P1/5)
   ============================================================ */
/* játékcím-ikon a fejlécben */
.game-head h1 { display: inline-flex; align-items: center; gap: 10px; }
.head-ico { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 2px 3px rgba(90,70,130,.25)); }
/* kis ikon chipben / címkében / listában */
.pill-ico { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; margin-right: 6px; flex: 0 0 auto; }
.scorechip, .reward-chip, .stat-label, .coaster-mini-pill { display: inline-flex; align-items: center; gap: 4px; }
.course-ico { width: 26px; height: 26px; object-fit: contain; margin-right: 6px; }
.track-btn { display: inline-flex; align-items: center; }

/* csillagsor saját ikonokból */
.stars-big { display: flex; justify-content: center; gap: 8px; font-size: 0; }
.stars-big .star-img { width: 44px; height: 44px; object-fit: contain; animation: starPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both; filter: drop-shadow(0 3px 4px rgba(90,70,130,.28)); }
.coaster-result .stars-big .star-img, .result-panel .stars-big .star-img { width: 36px; height: 36px; }
@keyframes starPop { from { opacity: 0; transform: scale(0.4) rotate(-25deg); } }

/* létra-jelölő = csillag kép */
.ladder-marker { font-size: 0; }
.ladder-marker img { width: 34px; height: 34px; object-fit: contain; display: block; }
.ladder-hint { font-size: 20px; }

/* HoldRing ikon */
.hold-ring .ring-icon { pointer-events: none; }

/* mikrofon-kapu ikon */
.mic-gate-icon { font-size: 0; animation: bgFloat 3s ease-in-out infinite; }
.mic-gate-icon img { width: 62px; height: auto; object-fit: contain; }

/* konfetti + dekor most képek */
.confetti { width: 24px; height: auto; object-fit: contain; }
.decor { width: 26px; height: auto; object-fit: contain; opacity: 0.3; }

/* achievement toast ikonnal */
.ach-toast { display: flex; align-items: center; gap: 12px; }
.ach-toast-ico { width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto; }

/* oktáv-gombok: min. 44px érintés, egységes */
.octave-btn { min-width: 44px; }

@media (max-width: 620px) {
  .head-ico { width: 32px; height: 32px; }
  .stars-big .star-img { width: 34px; height: 34px; }
}

/* játékbeli mikrofon-jelző elhelyezése */
.game-mic { position: absolute; left: 12px; top: 10px; z-index: 6; }
.game-mic-inline { align-self: center; margin: 4px auto; }
.balloon-sky { position: relative; }

/* --- nyitólap csempék: új témák + lapos (nem Mia-illusztrációs) ikonok --- */
.theme-teal { --theme: #4aa8a0; }
.theme-gold { --theme: #e8a23d; }
.game-card.is-flat .game-icon { width: 64px; height: 64px; display: grid; place-items: center; }
.game-card.is-flat .game-icon img { width: 52px; height: 52px; }

/* ============================================================
   Fejléc-elkülönítés + „teljes képernyős lényeg" (auto-görgetés)
   ============================================================ */
/* A fejléc saját, kissé világosabb felületen ül, finom elválasztó vonallal. */
.app-header {
  background: linear-gradient(180deg, #fffdf8 0%, #fdf8ee 100%);
  border-bottom: 1.5px solid rgba(51, 65, 81, 0.09);
  box-shadow: 0 3px 12px rgba(55, 65, 81, 0.06);
  padding: 12px 26px 12px;
  margin-bottom: 6px;
}

/* Játék/aloldal: a tartalom kitölti a képernyőt, így a fejléc kigördülhet. */
body.immersive main#screen { min-height: calc(100vh - 6px); }
/* a görgetés ne vágja le a tartalom tetejét */
body.immersive main#screen > * { scroll-margin-top: 0; }

/* mikrofon-jelző saját ikonnal */
.mic-indicator { gap: 7px; }
.mic-indicator::before { display: none; }
.mic-ind-ico { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.mic-indicator.is-listening .mic-ind-ico { animation: micIcoPulse 1.2s ease-in-out infinite; }
@keyframes micIcoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }

/* háttérdísz: halvány fekete-fehér ikonok */
.bg-note { width: 40px; opacity: 0.16; }
.bg-note.n3, .bg-note.n5 { width: 44px; }

/* lufi szólmizációs felirata (a rajzon nincs rásütve szöveg) */
.balloon { position: relative; }
.balloon-label {
  position: absolute; left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head); font-weight: 800; font-size: 21px;
  color: #fff; pointer-events: none; z-index: 2;
  text-shadow: 0 2px 3px rgba(40,30,70,0.45), 0 0 2px rgba(40,30,70,0.5);
  transition: opacity 0.15s ease;
}
.balloon.popping .balloon-label, .balloon.popped .balloon-label { opacity: 0; }

/* ============================================================
   LUFIPUKKASZTÁS v3 — a Hullámvasút elrendezésével
   ============================================================ */
.bp-card { padding-top: 16px; }

/* — szint-gombok (kidolgozott, zárolható) — */
.bp-levels { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.bp-level-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 8px; border-radius: var(--r-badge);
  background: #fff; border: 1.5px solid rgba(51, 65, 81, 0.10);
  box-shadow: var(--shadow-soft); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--ink-soft);
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease), background 0.2s;
}
.bp-lvl-badge {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head);
  font-weight: 800; font-size: 16px;
  background: #f1ecfb; color: var(--primary-dark);
}
.bp-lvl-name { white-space: nowrap; }
.bp-level-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.bp-level-btn:active:not(:disabled) { transform: scale(0.97); }
.bp-level-btn.done .bp-lvl-badge { background: var(--success-soft); color: var(--success); }
.bp-level-btn.active {
  background: linear-gradient(180deg, #8a6ff0, #6b4fc0); color: #fff;
  border-color: rgba(107, 79, 192, 0.45);
  box-shadow: 0 7px 16px rgba(111, 85, 211, 0.34);
}
.bp-level-btn.active .bp-lvl-badge { background: rgba(255,255,255,0.9); color: var(--primary-dark); }
.bp-level-btn.locked { opacity: 0.5; cursor: default; box-shadow: none; }
.bp-level-btn.locked .bp-lvl-badge { background: #eee9f4; font-size: 13px; }

/* — nagyobb lufi-mező — */
.bp-stage {
  aspect-ratio: 16 / 7.6; min-height: 400px;
  background: url('../assets/balloons/sky.webp') center 26% / cover no-repeat,
              linear-gradient(180deg, #cfeaf9, #eef6ec);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 62px 18px 18px;
}
.bp-stage .balloon-row {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; width: 100%;
}
.bp-stage .balloon-img { width: 104px; height: auto; }
.bp-stage .balloon-row.mid { gap: 26px; }
.bp-stage .balloon-row.mid .balloon-img { width: 124px; }
.bp-stage .balloon-row.few { gap: 56px; }
.bp-stage .balloon-row.few .balloon-img { width: 158px; }
.bp-stage .balloon-label { font-size: 22px; top: 38%; }
.bp-stage .balloon-row.mid .balloon-label { font-size: 25px; }
.bp-stage .balloon-row.few .balloon-label { font-size: 31px; }

/* szint-pirula a színpad tetején */
.bp-lvl-pill { display: inline-flex; align-items: center; gap: 8px; }
.bp-lvl-dots { letter-spacing: 2px; color: var(--reward); font-size: 12px; }

/* — függőleges hangmagasság-mutató a színpad bal szélén — */
.bp-meter { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 5; }
.bp-meter-track {
  position: relative; width: 46px; height: 190px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 2px 6px rgba(90, 70, 130, 0.16), 0 3px 10px rgba(55,65,81,0.10);
  overflow: hidden;
}
.bp-zone {
  position: absolute; left: 5px; right: 5px; border-radius: 999px;
  background: rgba(99, 193, 116, 0.34);
  box-shadow: inset 0 0 0 2px rgba(99, 193, 116, 0.6);
  transition: height 0.3s var(--ease), top 0.3s var(--ease);
}
.bp-needle {
  position: absolute; left: 50%; width: 34px; height: 10px; border-radius: 999px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #8a6ff0, #6b4fc0);
  box-shadow: 0 2px 6px rgba(90, 70, 130, 0.4);
  opacity: 0; transition: top 0.08s linear, opacity 0.2s, background 0.2s;
}
.bp-needle.on { opacity: 1; }
.bp-needle.good { background: linear-gradient(180deg, #7ed48d, #4faa5e); box-shadow: 0 0 12px rgba(99, 193, 116, 0.85); }

/* — célkártya a gyűrűvel (hullámvasút-stílus) — */
.bp-target-card { display: flex; flex-direction: column; align-items: center; gap: 4px; width: min(240px, 42%); }
.bp-ring { line-height: 0; margin: 2px 0; }
.bp-note { font-size: 26px; }

@media (max-width: 760px) {
  .bp-stage { min-height: 320px; padding: 50px 10px 12px; }
  .bp-meter { left: 8px; }
  .bp-meter-track { width: 36px; height: 140px; }
  .bp-stage .balloon-img { width: 74px; }
  .bp-stage .balloon-row.few .balloon-img { width: 116px; }
  .bp-level-btn .bp-lvl-name { display: none; }
  .bp-level-btn { padding: 6px; }
}


/* ============================================================
   Játék végi eredmény-ablak (felugró) — 5 csillag + két gomb
   ============================================================ */
.result-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 20px;
  background: rgba(60, 48, 92, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.24s var(--ease);
}
.result-overlay.show { opacity: 1; }

.result-modal {
  position: relative;
  width: min(520px, 94vw);
  padding: 30px 34px 26px;
  text-align: center;
  background:
    radial-gradient(300px 180px at 4% 110%, rgba(255, 214, 90, 0.30), transparent 70%),
    radial-gradient(320px 200px at 100% 112%, rgba(155, 130, 225, 0.28), transparent 70%),
    var(--paper-card);
  border: 2px solid rgba(232, 162, 61, 0.45);
  border-radius: var(--r-panel);
  box-shadow: 0 24px 60px rgba(55, 65, 81, 0.30);
}
.rm-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(27px, 4vw, 34px); color: var(--primary-dark);
  margin: 0 0 12px;
}
.rm-stars { display: flex; justify-content: center; gap: 8px; margin: 4px 0 14px; }
.rs-star {
  width: 46px; height: 46px; object-fit: contain;
  animation: starPop 0.46s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.rs-star.on { filter: drop-shadow(0 3px 6px rgba(224, 169, 47, 0.5)); }
.rm-line { margin: 4px 0; color: var(--ink); font-size: 16.5px; }
.rm-line:first-of-type { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--primary-dark); }

.rm-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.rm-repeat {
  width: 60px; height: 60px; min-height: 60px; padding: 0; flex: 0 0 auto;
  border-radius: 50%; background: #fff;
  font-size: 30px; line-height: 1; color: var(--primary);
  display: grid; place-items: center;
}
.rm-repeat:hover:not(:disabled) { color: var(--primary-dark); transform: translateY(-2px) rotate(-25deg) scale(1.04); }
.rm-next { min-height: 60px; font-size: 21px; padding: 0 34px; }
.rm-mia {
  position: absolute; right: -14px; bottom: -10px;
  width: clamp(96px, 22%, 136px); height: auto; pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(54, 42, 90, 0.22));
  animation: rmMia 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.15s;
}
@keyframes rmMia { from { opacity: 0; transform: translateY(24px) scale(0.8); } }

@media (max-width: 520px) {
  .result-modal { padding: 24px 18px 20px; }
  .rs-star { width: 36px; height: 36px; }
  .rm-mia { width: 88px; right: -8px; }
  .rm-next { font-size: 18px; padding: 0 24px; }
}

/* ---------- indulás: csak a mancs, belecsapásra jön Mia + az intró ---------- */
.intro-overlay.intro-await .intro-cat,
.intro-overlay.intro-await .intro-title,
.intro-overlay.intro-await .intro-tagline,
.intro-overlay.intro-await .intro-skip,
.intro-overlay.intro-await .intro-spot,
.intro-overlay.intro-await .intro-curtain { opacity: 0 !important; pointer-events: none; }
.intro-overlay.intro-await .intro-stage,
.intro-overlay.paw-center .intro-stage { position: relative; }
/* a mancs középen marad, amíg a lenyomás-animáció le nem megy */
.intro-overlay.paw-center .intro-enter {
  position: absolute; left: 50%; top: 50%; margin: 0;
}
.intro-overlay.intro-await .intro-enter { animation: pawWait 2.4s ease-in-out infinite; }
.intro-overlay.paw-center .intro-enter-img { width: min(58vw, 300px); }
/* középre igazítva a scale-es „slap" animáció elrontaná a translate-et:
   a lenyomást maguk a képkockák mutatják, itt csak a gyors elhalványulás kell */
.intro-overlay.paw-center .intro-enter.slap {
  animation: none;
  transform: translate(-50%, -50%);
}
.intro-overlay.paw-center .intro-enter.gone {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
  animation: none;
}
@keyframes pawWait {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
  50%      { transform: translate(-50%, -50%) scale(1.06) rotate(2deg); }
}
/* a Mia/cím visszaúszása a csapás után */
.intro-overlay .intro-cat,
.intro-overlay .intro-title,
.intro-overlay .intro-tagline,
.intro-overlay .intro-spot { transition: opacity 0.45s var(--ease); }

/* ============================================================
   „Milyen hang ez?" — hallási megkülönböztetés
   ============================================================ */
.sm-stage {
  aspect-ratio: 16 / 7.4; min-height: 380px;
  background: linear-gradient(180deg, #e6f7ea 0%, #f3f9ec 55%, #fdf7ef 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 62px 20px 20px;
}
.sm-choices { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; width: 100%; }
.sm-choices.two { gap: 64px; }

.sm-choice {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(51, 65, 81, 0.10);
  border-radius: var(--r-card);
  padding: 14px 16px 12px; cursor: pointer;
  box-shadow: var(--shadow-soft);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease), border-color 0.2s;
}
.sm-choice:hover { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-hover); }
.sm-choice:active { transform: scale(0.97); }
.sm-choice:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sm-img { width: clamp(96px, 15vw, 168px); height: auto; object-fit: contain; display: block; transition: transform 0.25s var(--ease); }
.sm-choices.two .sm-img { width: clamp(120px, 19vw, 210px); }
.sm-label { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink-soft); }

.sm-choice.is-right { border-color: rgba(99, 193, 116, 0.7); background: var(--success-soft); }
.sm-choice.is-right .sm-img { animation: smRight 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sm-choice.is-right .sm-label { color: var(--success); }
@keyframes smRight { 0% { transform: scale(1); } 40% { transform: scale(1.16) rotate(-4deg); } 100% { transform: scale(1); } }

.sm-choice.is-wrong { border-color: rgba(242, 139, 130, 0.7); background: var(--retry-soft); }
.sm-choice.is-wrong .sm-img { animation: smWrong 0.5s ease; }
@keyframes smWrong { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

.sm-replay { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 760px) {
  .sm-stage { min-height: 300px; padding: 56px 10px 14px; }
  .sm-choices { gap: 14px; }
  .sm-choices.two { gap: 28px; }
  .sm-label { font-size: 15px; }
}
