html, body {
  width: 100vw;
  overflow-x: hidden !important;
  overflow-y: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #fffbe6 0%, #e6f9ff 80%);
  font-family: 'Comic Neue', 'Baloo 2', Arial, sans-serif;
}

@keyframes countYesPulse {
  0% {
    transform: scale(1) rotate(-2deg) ;
    box-shadow: 0 2px 22px #ffd54f99, 0 0 18px #fffde4;
  }
  60% {
    transform: scale(1.07) rotate(2deg);
    box-shadow: 0 4px 32px #fffde466, 0 0 36px #ffe082;
  }
  100% {
    transform: scale(1.12) rotate(-3deg);
    box-shadow: 0 6px 40px #ffd54faa, 0 0 44px #fffde4;
  }
}


/* Hauptbereich für Sessions */
.session-text-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100vw;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 20px 110px 20px; /* Unten Platz für Froschbalken! */
  background: none;
  box-shadow: none;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Mobilanpassung: unten weniger Padding für kleinere Screens */
@media (max-width: 600px) {
  .session-text-area {
    max-width: 98vw;
    width: 100vw;
    padding: 0 12px 65px 12px; /* Weniger Abstand für Frog Bar */
  }
}

/* Animierte Textzeilen */
.animated-lines {
  box-sizing: border-box;
  padding-top: 12px;
  padding-left: 0;
  padding-right: 0;
  min-height: 7em;
  max-height: 8.5em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center !important;
  text-align: center !important;
  overflow: hidden;
}

@media (max-width: 600px) {
  .animated-lines {
    max-width: 98vw;
    width: 100vw;
    max-height: calc(100vh - 190px);
  }
}

/* Animierter Text */
.animated-text {
  width: 100%;
  box-sizing: border-box;
  font-size: 1.22rem;            /* Aus dem zweiten Block (oder 1.3rem wenn dir das besser gefällt) */
  margin: 0 0 17px 0;            /* Aus dem zweiten Block, sieht harmonischer aus */
  background: none;
  border-radius: 0;
  box-shadow: none;
  animation: fadeInText 1s;
  text-align: center !important;
  color: #383838;
  font-weight: 500;
}
@keyframes fadeInText {
  from { opacity: 0; transform: translateY(20px);}
  to   { opacity: 1; transform: translateY(0);}
}
.animated-text.glitter {
  position: relative;
  overflow: visible;
}
.animated-text.glitter::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.7),
    #ffe082bb 65%,
    transparent
  );
  background-size: 200% 100%;
  animation: glitterShine 2.5s linear infinite;
  z-index: 2;
  border-radius: 12px;
}
@keyframes glitterShine {
  from { background-position: -180% 0; }
  to   { background-position: 180% 0; }
}

/* Floating Video */
.floating-video {
  position: fixed;
  right: 18px;
  bottom: 90px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 4;
  box-shadow: 0 6px 32px #b2ebf2, 0 2px 24px #fbc02d;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-video video, 
.floating-video img.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: contain;
  background: url('images/video-placeholder.png') center center no-repeat #fff;
  background-size: cover;
  background: #eee;
  pointer-events: none;
}

@media (max-width: 600px) {
  .floating-video { width: 110px; height: 110px; right: 6px; bottom: 68px; }
  .floating-video video, .floating-video img.avatar { width: 90px; height: 90px; }
}

/* Play-Button Overlay */
.custom-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd54f 60%, #81d4fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 8px #b3e5fc;
  z-index: 45;
  cursor: pointer;
  transition: transform 0.1s;
}
.custom-play-btn svg {
  width: 36px;
  height: 36px;
  fill: #383838;
}

/* Next-Button */
.centered-next-btn {
  display: block;
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ffe082 40%, #81d4fa 100%);
  color: #333;
  font-size: 1.22rem;
  border-radius: 36px;
  padding: 1rem 3.4rem;
  border: none;
  font-weight: bold;
  box-shadow: 0 4px 22px #b3e5fc88, 0 0 6px #ffd54f66;
  letter-spacing: 0.02em;
  cursor: pointer;
  z-index: 101;
  transition: background 0.22s, transform 0.12s;
}
@media (max-width: 600px) {
  .centered-next-btn { font-size: 1rem; padding: 0.8rem 1.7rem; bottom: 90px;}
}

/* Buttons-Container für animals & rhyme */
.animals-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100vw;
}
.animals-buttons button {
  min-width: 64px;
  max-width: 92px;
  padding: 0.7em 0.7em;
  font-size: 1.15rem;
  /* weitere Styles wie gewünscht */
}
.rhyme-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.rhyme-buttons button {
  width: 100%;                   /* Maximal breit im Container */
  min-width: 120px;
  max-width: 340px;
  align-self: center;
  padding: 1em 0.7em;
  font-size: 1.18rem;
  font-weight: 700;
  border: none;
  background: #fffbe6;
  border-radius: 16px;
  box-shadow: 0 2px 10px #81d4fa55;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  margin: 0;                     /* Kein zusätzlicher Außenabstand */
}
@media (max-width: 600px) {
  .rhyme-buttons {
    max-width: 100vw;
    padding: 0 3vw;
  }
  .rhyme-buttons button {
    max-width: 96vw;
  }
}



/* Frog Progress Bar */
.frog-bar-track {
  display: flex;
  gap: 30px;
  position: relative;
  min-width: 240px;
  max-width: 340px;
  margin: 0 auto;
  justify-content: center;
}
#progressFrogBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 60;
  pointer-events: none;
  height: 60px;
}
.frog-bar-spot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e0f7fa;
  border: 2.5px solid #90caf9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.frog-bar-done {
  background: #b2dfdb;
  border: 2.5px solid #388e3c;
}
.frog-bar-spot.active {
  box-shadow: 0 0 18px #ffd54f;
  border: 3.2px solid #ffd54f;
}
#jumpingFrog {
  position: absolute;
  bottom: 22px;
  left: 0;
  width: 44px;
  height: 44px;
  object-fit: contain;
  z-index: 2;
  transition: left 0.5s cubic-bezier(.39,1.35,.51,1.01);
  animation: frogHop 0.45s;
}
@keyframes frogHop {
  0% { transform: translateY(0);}
  30% { transform: translateY(-22px);}
  60% { transform: translateY(-5px);}
  100% { transform: translateY(0);}
}

/* Rotation Notice */
.rotation-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(230,249,255, 0.93);
  text-align: center;
  pointer-events: auto;
}
.rotate-icon {
  width: 70px; height: 70px; margin-bottom: 18px;
}
@media (max-width: 600px) {
  .rotate-icon { width: 45px; height: 45px; margin-bottom: 8px;}
}

/* Intro Heading & Avatar */
.intro-heading {
  font-family: 'Baloo 2', 'Comic Neue', Arial, sans-serif;
  font-size: 2.2rem;
  color: #44a2ff;
  margin-top: 0;
  margin-bottom: 9px;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px #fffbe6, 0 1px 8px #b3e5fc88;
}
.intro-avatar-small {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 16px #ffe08266, 0 2px 8px #b3e5fc88;
  background: #fff;
  margin: 0;
}

/* Glitzer und Pop Animationen, Buttons usw. */
/* ... (Deine weiteren bestehenden Animations- und Modul-Styles kannst du einfach unten dranhängen) ... */

/* Schattierte Tierbilder (Shadow-Game) */
.shadow-image {
  filter: grayscale(1) brightness(0.12) blur(0.5px);
  opacity: 0.92;
}
.shadow-buttons {
  display: flex;
  flex-direction: row;   /* Hauptunterschied: horizontal! */
  justify-content: center;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
}

.shadow-buttons button {
  width: 90px;
  height: 90px;
  max-width: 100px;
  max-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fffbe6;
  border: 2px solid #ffd54f;
  border-radius: 20px;
  box-shadow: 0 2px 10px #81d4fa88;
  cursor: pointer;
  transition: border 0.18s, box-shadow 0.18s;
}
.shadow-buttons button img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  pointer-events: none;
}
#countingOverlay {
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0;
  bottom: 36%;
  z-index: 999;
  pointer-events: none;
}
.count-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffbe6;
  border-radius: 18px;
  box-shadow: 0 2px 12px #ffd54faa;
  padding: 10px 28px;
  min-width: 160px;
  min-height: 68px;
  font-family: inherit;
}
.chatgpt-quiz-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fffbe6;
  padding: 12px 8px 8px 8px;
  text-align: center;
  border-bottom: 2px dashed #ffd54f;
  box-shadow: 0 2px 6px #ffd54f55;
  animation: wiggle 2.8s infinite ease-in-out;
}

.chatgpt-quiz-heading {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  color: #44a2ff;
  text-shadow: 0 1px 6px #fff9c4;
  animation: glitterShine 3.5s linear infinite;
}

.chatgpt-question {
  font-size: 1.6rem;
  font-weight: bold;
  text-align: center;
  margin: 18px 0 18px 0;
  max-width: 90vw;
  line-height: 1.35;
  color: #383838;
  font-family: 'Baloo 2', 'Comic Neue', Arial, sans-serif;
}
.chatgpt-quiz-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 10px auto;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}
@keyframes yay-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.yay-animated {
  animation: yay-bounce 1.4s ease-in-out infinite;
  color: #ffa000;
  text-shadow: 0 0 4px #fff9c4, 0 0 12px #ffd54f;
  font-weight: 700;
}
.yay-over-image {
  position: absolute;
  top: -24px;
  left: 60%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 4px #fff, 0 0 10px #ffd54f;
  animation: yay-bounce 1s ease-in-out infinite;
  color: #ffa000;
  pointer-events: none;
}
@keyframes sticker-fly {
  0% {
    transform: translateX(-120px) translateY(0) rotate(0deg) scale(0.8);
    opacity: 0.5;
    filter: brightness(1.2);
  }
  50% {
    transform: translateX(50vw) translateY(-40px) rotate(20deg) scale(1.1);
    opacity: 1;
    filter: brightness(1.6);
  }
  100% {
    transform: translateX(90vw) translateY(-100px) rotate(45deg) scale(0.9);
    opacity: 0;
    filter: brightness(1);
  }
}

.sticker-animate {
  animation: sticker-fly 1.4s ease-out forwards;
  z-index: 999;
  position: absolute;
  width: 80px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.reward-animated {
  animation: reward-glow 2s ease-in-out infinite;
  transition: transform 0.3s ease;
}
@keyframes reward-pulse {
  0%   { transform: scale(1.04); box-shadow: 0 0 32px #fff9c4; }
  100% { transform: scale(1.13); box-shadow: 0 0 42px 8px #ffe082; }
}
@keyframes reward-glow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px #fff176) brightness(1.1);
  }
  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 14px #ffe082) brightness(1.4);
  }
}
/* wird im JS gesetzt: */
.reward-star-animals {
  animation: reward-pulse 1.25s infinite alternate, reward-glow 2s infinite linear;
}
.animals-reward-container {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 15vh;
  z-index: 500;
  background: #fffbe6;
  padding: 26px 30px 30px 30px;
  border-radius: 30px;
  box-shadow: 0 10px 40px #b2ebf2, 0 4px 24px #ffd54f99;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 260px;
}

.animals-reward-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px #ffd54faa;
}
.animals-reward-yay {
  font-size: 1.16rem;
  font-weight: bold;
  color: #faaf08;
  text-align: center;
  text-shadow: 0 1px 8px #fffde7, 0 0 10px #ffd54f;
  margin-bottom: 10px;
  animation: yay-bounce 1.6s infinite;
}
.animals-correct-text {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #43a047;
  text-align: center;
}
.rainbow-btn-animated {
  animation: rainbowPulse 1.1s infinite alternate;
}
@keyframes rainbowPulse {
  0%   { filter: brightness(1); }
  100% { filter: brightness(1.16) drop-shadow(0 0 18px #ffd54f88); }
}
.main-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.color-circle {
  width: 110px;
  height: 110px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  border: 5px solid #ffd54f;
  box-shadow: 0 2px 32px #ffd54faa, 0 0 32px #aeea00aa;
}


.confetti-overlay {
  pointer-events: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 9999;
  overflow: visible;
}
.confetti-piece {
  position: absolute;
  top: -2vh;
  width: 14px; height: 14px;
  border-radius: 3px;
  opacity: 0.9;
  animation: confetti-fall 1.6s cubic-bezier(.2,.7,.7,1) forwards;
}
@keyframes confetti-fall {
  to {
    top: 92vh;
    transform: rotate(350deg) scale(0.8) translateY(9vh);
    opacity: 0.3;
  }
}
.glow-effect {
  box-shadow: 0 0 18px 8px #ffe082, 0 0 60px 12px #fff17666 !important;
  transition: box-shadow 0.24s;
}
.party-emoji {
  position: fixed;
  z-index: 9999;
  animation: emoji-pop 1.2s cubic-bezier(.17,.67,.83,.21) forwards;
  pointer-events: none;
  user-select: none;
}
@keyframes emoji-pop {
  0% { transform: scale(0.5) translateY(0); opacity: 0.5; }
  60% { transform: scale(1.25) translateY(-30px) rotate(10deg);}
  100% { transform: scale(0.9) translateY(-130px) rotate(-8deg); opacity: 0; }
}
.shake {
  animation: shake-anim 0.45s cubic-bezier(.19, .46, .75, .85);
}
@keyframes shake-anim {
  10%, 90% { transform: translateX(-2px);}
  20%, 80% { transform: translateX(4px);}
  30%, 50%, 70% { transform: translateX(-8px);}
  40%, 60% { transform: translateX(8px);}
}
.sparkle-anim {
  position: fixed;
  left: 50vw;
  top: 33vh;
  font-size: 3.4rem;
  color: #ffd54f;
  z-index: 9999;
  pointer-events: none;
  filter: blur(0.6px) brightness(1.5);
  animation: sparkle-fade 1.1s;
}
@keyframes sparkle-fade {
  0% { opacity: 0; transform: scale(0.7);}
  30% { opacity: 1; transform: scale(1.4);}
  100% { opacity: 0; transform: scale(0.7);}
}
.bounce-anim {
  animation: bounce-pop 0.55s cubic-bezier(.5,1.6,.7,1.0);
}
@keyframes bounce-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.18); }
  70%  { transform: scale(0.92);}
  100% { transform: scale(1); }
}
.rainbow-emoji-anim {
  position: fixed;
  left: 44vw;
  top: 42vh;
  font-size: 5rem;
  z-index: 9999;
  pointer-events: none;
  animation: rainbow-float 1s cubic-bezier(.5,.1,.7,1.3);
}
@keyframes rainbow-float {
  0%   { opacity: 0; transform: scale(0.7) translateY(0);}
  35%  { opacity: 1; transform: scale(1.1) translateY(-15px);}
  85%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.1) translateY(-100px);}
}
@keyframes bounce {
  0%,100% { transform: translateY(0);}
  50% { transform: translateY(-28px);}
}
@keyframes wiggle {
  0%,100% { transform: rotate(0deg);}
  25% { transform: rotate(-10deg);}
  50% { transform: rotate(10deg);}
  75% { transform: rotate(-5deg);}
}
@keyframes tada {
  0% { transform: scale(1);}
  10%, 20% { transform: scale(0.9) rotate(-3deg);}
  30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg);}
  40%, 60%, 80% { transform: scale(1.1) rotate(-3deg);}
  100% { transform: scale(1);}
}

.avatar-bounce { animation: bounce 1s .1s both infinite cubic-bezier(.36,0.07,.19,.97);}
.avatar-wiggle { animation: wiggle 1.1s both;}
.avatar-tada   { animation: tada 0.9s both;}



#videoAvatarBox {
  width: 160px;
  height: 160px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 6000;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 32px #b2ebf2, 0 2px 24px #fbc02d;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
#videoAvatarBox video,
#videoAvatarBox img.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  display: block;
}
.quiz-question {
  font-size: 1.35rem;
  font-family: 'Comic Neue', 'Baloo 2', Arial, sans-serif;
  color: #1976d2;
  font-weight: bold;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 18px;
  padding: 12px 6px 6px 6px;
  background: linear-gradient(90deg, #fffbe6 80%, #e3f2fd 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px #b2ebf288;
}

.quiz-buttons, .sequence-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin: 18px auto 0 auto;
  width: 100%;
  max-width: 340px;
}



.session-heading,
#mainTitle {
  text-align: center !important;
  width: 100%;
  display: block;
}
.btn-correct {
  background: #b9f6ca !important;
  color: #267323 !important;
}
.btn-wrong {
  background: #ffd1d1 !important;
  color: #b71c1c !important;
}
.quiz-feedback {
  min-height: 2em;
  font-size: 1.16rem;
  font-weight: bold;
  text-align: center;
  margin: 13px 0 60px 0; 
  transition: color 0.2s;
}
.memory-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.memory-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  backface-visibility: hidden;
  transition: opacity 0.3s ease;
}

.memory-card img.front {
  z-index: 2;
  opacity: 0;
}

.memory-card.flipped img.front {
  opacity: 1;
}
#memoryGameContainer {
  margin: 0 auto;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: rgba(255,255,246,0.97);
  border-radius: 22px;
  box-shadow: 0 4px 22px #ffd54f44;
  padding: 12px;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  #memoryGameContainer, .memory-grid {
    max-width: 96vw;
    width: 96vw;
  }
}
.wait-spinner {
  display: inline-block;
  margin-left: 14px;
  width: 28px;
  height: 28px;
  border: 4px solid #ffd54f;
  border-radius: 50%;
  border-top: 4px solid #4fc3f7;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  box-shadow: 0 2px 12px #ffe08255;
}


.universal-spinner .spinner-animation {
  width: 36px;
  height: 36px;
  border: 5px solid #ffd54f;
  border-top: 5px solid #00bfa5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

.puzzle-complete-popup {
  animation: popupBounce 0.65s cubic-bezier(.38,2.2,.7,.9);
}
@keyframes popupBounce {
  0% { transform: scale(0.7) translate(-50%,-50%);}
  65% { transform: scale(1.06) translate(-50%,-50%);}
  100% { transform: scale(1) translate(-50%,-50%);}
}
.quiz-choice-btn, .sequence-choice-btn {
  width: 100%;
  min-width: 120px;
  max-width: 340px;
  padding: 1.1em 0.7em;
  font-size: 1.21rem;
  font-family: 'Comic Neue', 'Baloo 2', Arial, sans-serif;
  font-weight: bold;
  border: none;
  border-radius: 19px;
  background: linear-gradient(90deg, #fffde7 60%, #ffe082 100%);
  color: #383838;
  box-shadow: 0 4px 18px #81d4fa55, 0 2px 12px #ffd54faa;
  text-align: center;
  margin: 0 0 12px 0;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s, color 0.14s;
  cursor: pointer;
  outline: none;
  letter-spacing: 0.01em;
}

.quiz-choice-btn.selected,
.sequence-choice-btn.selected {
  background: #ffe47a;
  color: #383838;
  border: 2.3px solid #ffd600;
  transform: scale(0.96);
  box-shadow: 0 0 16px #ffe082bb;
}

.quiz-choice-btn.correct,
.sequence-choice-btn.correct {
  background: #b9f6ca !important;
  color: #267323 !important;
  border: 2.3px solid #39c839 !important;
  box-shadow: 0 0 18px #8ae67a99;
}

.quiz-choice-btn.wrong,
.sequence-choice-btn.wrong {
  background: #ffd1d1 !important;
  color: #b71c1c !important;
  border: 2.3px solid #ff6060 !important;
  box-shadow: 0 0 14px #ffadad88;
}

.quiz-choice-btn:disabled,
.sequence-choice-btn:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}
.animal-funfact {
  margin: 18px 0 0 0;
  padding: 10px 18px;
  font-size: 1.13em;
  background: #fffde4;
  border-radius: 18px;
  color: #34495e;
  box-shadow: 0 2px 8px #ffe08244;
  text-align: center;
  font-weight: 600;
  max-width: 360px;
}

.animal-listen-btn {
  font-size: 1.11rem;
  font-family: 'Comic Neue', 'Baloo 2', Arial, sans-serif;
  font-weight: bold;
  background: linear-gradient(90deg, #ffd54f 60%, #81d4fa 100%);
  color: #333;
  border: none;
  border-radius: 14px;
  padding: 0.72em 1.6em 0.72em 1.3em;
  margin-left: 8px;
  box-shadow: 0 2px 10px #ffd54f55;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  outline: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.animal-listen-btn:active {
  background: #ffe082;
  transform: scale(0.95);
}
.animal-listen-btn.bounce-anim {
  animation: bounce-pop 0.45s cubic-bezier(.4,1.8,.8,1.0);
}
@keyframes bounce-pop {
  0%   { transform: scale(1);}
  40%  { transform: scale(1.12);}
  60%  { transform: scale(0.93);}
  100% { transform: scale(1);}
}
@media (max-width: 600px) {
  .animal-listen-btn {
    font-size: 1rem;
    padding: 0.66em 1.1em 0.66em 1em;
    min-width: 74px;
  }
}


.sequence-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
  min-height: 52px;
}
.sequence-box {
  min-width: 38px;
  min-height: 38px;
  max-width: 46px;
  max-height: 46px;
  border-radius: 12px;
  margin: 0 2px;
  box-shadow: 0 2px 10px #eee;
  display: inline-block;
  transition: background 0.2s;
  border: 2px solid #fff;
}
.sequence-box.sequence-highlight {
  outline: 2.5px solid #ffd54f;
  box-shadow: 0 0 13px #ffd54faa;
  animation: sequenceHighlight 0.6s;
}
@keyframes sequenceHighlight {
  0% { transform: scale(1.00);}
  60% { transform: scale(1.09);}
  100% { transform: scale(1.00);}
}
.sequence-row-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.repeat-sequence-btn {
  background: #e0f2f1;
  color: #1976d2;
  font-size: 1.3em;
  border-radius: 50%;
  border: 1.5px solid #4fc3f7;
  width: 38px; height: 38px;
  margin-left: 8px;
  cursor: pointer;
  box-shadow: 0 1px 6px #b3e5fc44;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.19s, box-shadow 0.19s;
}
.repeat-sequence-btn:hover {
  background: #b2ebf2;
  color: #0d47a1;
}

.user-sequence-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 10px 0;
  min-height: 44px;
}
.user-sequence-row .user-sequence-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  max-width: 46px;
  max-height: 46px;
  border-radius: 12px;
  box-shadow: 0 1px 7px #ffecb3;
  font-weight: bold;
  color: #fff;
  font-size: 1em;
  margin-right: 2px;
  transition: background 0.16s, color 0.16s;
}
.user-sequence-row .user-sequence-item .remove-x {
  position: absolute;
  top: -8px; right: -8px;
  font-size: 1.1em;
  background: #fff2;
  color: #c82121;
  border-radius: 50%;
  padding: 2px 5px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
  z-index: 2;
  transition: background 0.16s, color 0.16s;
}
.user-sequence-row .user-sequence-item .remove-x:hover {
  color: #9a1313;
  background: #fff6;
}

/* Quiz Button Styling: 2 Buttons pro Reihe, farblich */
.quiz-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}
.quiz-choice-btn {
  flex: 0 0 48%;        /* immer 2 pro Reihe, auch mobil */
  min-width: 38vw;
  max-width: 140px;
  height: 42px;
  border-radius: 28px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border: 2px solid #fffde4;
  box-shadow: 0 1px 7px #ffecb3;
  cursor: pointer;
  margin-bottom: 3px;
  transition: background 0.18s, color 0.18s;
  color: #fff;
  word-break: break-word;
  background: #4fa6ff;
}
.quiz-choice-btn.yellow, 
.quiz-choice-btn[style*="background: yellow"], 
.quiz-choice-btn[style*="background: #ffff00"], 
.quiz-choice-btn[style*="background: rgb(255, 255, 0)"] {
  color: #222 !important;
}
.quiz-choice-btn.selected {
  box-shadow: 0 0 0 3px #ffd54f;
  border: 2.2px solid #ffd54f;
  opacity: 0.9;
}
.quiz-choice-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.wait-spinner {
  margin: 14px auto 6px auto;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #7ec1ff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1.1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
.quiz-feedback {
  font-size: 1.1em;
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
}

.animal-funfact {
  font-size: 1.12em;
  text-align: center;
  color: #555;
  margin-top: 14px;
}

@media (max-width: 440px) {
  .sequence-container { gap: 4px !important; }
  .user-sequence-row { gap: 4px !important; }
  .quiz-buttons { gap: 4px !important; }
  .quiz-choice-btn {
    flex: 0 0 48% !important;
    min-width: 30vw !important;
    font-size: 0.85em !important;
    padding: 8px 0 !important;
    margin-bottom: 7px !important;
  }
  .user-sequence-row .user-sequence-item {
    font-size: 0.96em;
    min-width: 32px;
    min-height: 32px;
    max-width: 34vw;
    max-height: 36px;
  }
}
.center-spinner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dragdrop-draggable, .dragdrop-target {
  touch-action: none !important;
  user-select: none !important;
}
.tapmatch-item.selected {
  background: #ffe082 !important;
  box-shadow: 0 0 12px #ffe082;
}
.tapmatch-item.matched, .tapmatch-target.matched {
  filter: grayscale(0.5) brightness(1.1);
  opacity: 0.65;
  pointer-events: none;
}
.tapmatch-item.wrong, .tapmatch-target.wrong {
  background: #ffd1d1 !important;
}
.tapmatch-locked {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transition: opacity 0.3s;
}
.drawing-root { 
  max-width: 370px;
  margin: 10px auto 0 auto;      /* <- war vorher 32px */
  background: #fff9ef;
  padding: 10px 12px 4px 12px;   /* padding oben etwas reduziert */
  border-radius: 28px;
  box-shadow: 0 2px 16px #ffd54f33;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
