@font-face {
  font-family: 'Noto Naskh Jawi';
  src: url('../fonts/noto-naskh-jawi.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
body {
  font-family: system-ui, -apple-system, 'Segoe UI', 'Trebuchet MS', sans-serif;
  color: #2b2d42;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 56px;
  min-width: 56px;
}
.scene-bg, .scene-home {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(165deg, #fff7ed 0%, #e8f8ff 45%, #f3e8ff 100%);
}
.home-body .scene-home::before,
.play-body .scene-bg::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  left: -20%;
  top: -20%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,200,120,.35) 0 8%, transparent 8.5%),
    radial-gradient(circle at 80% 20%, rgba(130,200,255,.3) 0 6%, transparent 6.5%),
    radial-gradient(circle at 70% 75%, rgba(160,255,180,.25) 0 10%, transparent 10.5%);
  animation: bg-drift 28s ease-in-out infinite alternate;
}
.play-body[data-tema='math'] .scene-bg {
  background: linear-gradient(165deg, #90caf9 0%, #fff9c4 55%, #ffcc80 100%);
}
.play-body[data-tema='bm'] .scene-bg {
  background: linear-gradient(165deg, #e1bee7 0%, #c8e6c9 55%, #f8bbd9 100%);
}
.play-body[data-tema='science'] .scene-bg {
  background: linear-gradient(165deg, #80deea 0%, #dcedc8 50%, #b2dfdb 100%);
}
.play-body[data-tema='math'] .scene-bg::before {
  background-image:
    radial-gradient(circle at 15% 25%, rgba(33, 150, 243, 0.35) 0 12%, transparent 13%),
    radial-gradient(circle at 85% 70%, rgba(255, 152, 0, 0.3) 0 14%, transparent 15%),
    radial-gradient(circle at 50% 90%, rgba(76, 175, 80, 0.25) 0 10%, transparent 11%);
}
.play-body[data-tema='bm'] .scene-bg::before {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(186, 104, 200, 0.32) 0 11%, transparent 12%),
    radial-gradient(circle at 75% 60%, rgba(129, 199, 132, 0.3) 0 13%, transparent 14%),
    radial-gradient(circle at 40% 85%, rgba(240, 98, 146, 0.28) 0 9%, transparent 10%);
}
.play-body[data-tema='science'] .scene-bg::before {
  background-image:
    radial-gradient(circle at 25% 30%, rgba(0, 150, 136, 0.32) 0 12%, transparent 13%),
    radial-gradient(circle at 80% 25%, rgba(139, 195, 74, 0.3) 0 10%, transparent 11%),
    radial-gradient(circle at 60% 80%, rgba(77, 182, 172, 0.28) 0 14%, transparent 15%);
}
.play-body[data-tema='math'] .scene-bg::after {
  content: '1 2 3 + − ○ △ □ ★';
  position: absolute;
  inset: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #1565c0;
  opacity: .3;
  letter-spacing: 1.1rem;
  line-height: 3.4rem;
  padding: 0.75rem;
  animation: float-glyphs 22s linear infinite;
  pointer-events: none;
}
.play-body[data-tema='bm'] .scene-bg::after {
  content: 'A B C a b c ☁ ✿';
  position: absolute;
  inset: 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: #6a1b9a;
  opacity: .28;
  letter-spacing: 1rem;
  line-height: 3.2rem;
  padding: 0.75rem;
  animation: float-glyphs 26s linear infinite reverse;
  pointer-events: none;
}
.play-body[data-tema='science'] .scene-bg::after {
  content: '🍃 🪐 ✦ ● 🔬 🌿';
  position: absolute;
  inset: 0;
  font-size: 1.75rem;
  opacity: .32;
  letter-spacing: 1.4rem;
  line-height: 3.5rem;
  padding: 0.75rem;
  animation: float-glyphs 24s linear infinite;
  pointer-events: none;
}
@keyframes bg-drift { to { transform: translate(3%, 2%) rotate(1deg); } }
@keyframes float-glyphs {
  from { transform: translateY(0); }
  to { transform: translateY(-12%); }
}
@media (prefers-reduced-motion: reduce) {
  .scene-bg::before, .scene-bg::after, .scene-home::before { animation: none !important; }
  .card-juicy:active, .choice.pop, .kenyang-mascot.happy, .kenyang-mascot.celebrate, .kenyang-mascot.idle { animation: none !important; }
}
.wrap {
  max-width: 520px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem 1rem;
  position: relative;
}
.home-wrap { gap: 0.65rem; }
.home-hero { text-align: center; padding: 0.25rem 0 0.5rem; flex-shrink: 0; }
.home-kenyang { margin: 0 auto 0.15rem; width: 108px; height: 102px; }
.home-title {
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 900;
  background: linear-gradient(120deg, #2d6a4f, #40916c, #52b788);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.home-tagline { font-size: 0.95rem; opacity: 0.8; margin-top: 0.25rem; line-height: 1.35; }
.filter-block { flex-shrink: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.chip-row {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #fff;
  border: 2px solid #e8e0f0;
  color: #4a5568;
  min-height: 44px;
  box-shadow: 0 2px 0 #e2d9ec;
}
.chip.active {
  background: linear-gradient(135deg, var(--accent, #6bcb77), #95d5b2);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 0 #2d6a4f55;
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
  gap: 0.7rem;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  padding: 0.25rem 0 0.5rem;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
}
.card-juicy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 150px;
  height: auto;
  padding: 0.55rem 0.5rem 0.65rem;
  background: #fff;
  border-radius: 1.15rem;
  border: 2px solid #fff;
  box-shadow: 0 8px 22px rgba(45, 106, 79, 0.14), 0 3px 0 color-mix(in srgb, var(--card-accent, var(--accent)) 40%, #bbb);
  overflow: hidden;
  transition: transform 0.12s ease;
}
.card-juicy:active { transform: scale(0.97); animation: card-bounce 0.35s ease; }
@keyframes card-bounce {
  0% { transform: scale(1); }
  40% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
.card-top {
  position: relative;
  flex: 0 0 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.card-blob {
  position: absolute;
  width: 92px;
  height: 92px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--card-accent, #6bcb77) 55%, #fff), color-mix(in srgb, var(--card-accent, #6bcb77) 20%, #fff) 65%, transparent 72%);
  opacity: 0.95;
}
.card-emoji {
  position: relative;
  z-index: 1;
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.1));
}
.card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.12rem;
  flex: 1 1 auto;
  text-align: center;
  padding: 0 0.2rem;
}
.card-title { font-weight: 800; font-size: 0.92rem; line-height: 1.2; color: #2b2d42; }
.card-meta { font-size: 0.68rem; opacity: 0.7; font-weight: 600; }
.card-stars { font-size: 0.8rem; letter-spacing: 0.1em; color: #f4a261; margin-top: 0.15rem; }
.card-stars.dim { opacity: 0.4; color: #c9b8a8; }
.empty-msg, .soon-panel {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.soon-emoji { font-size: 2.5rem; margin-bottom: 0.35rem; }
.play-wrap { gap: 0.45rem; }
.top-bar { flex-shrink: 0; }
.top-bar .back {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  background: #fff;
  color: var(--accent, #6bcb77);
  border: 2px solid color-mix(in srgb, var(--accent) 50%, #fff);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  min-height: 48px;
}
.progress-track {
  height: 10px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.08);
  flex-shrink: 0;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent, #6bcb77), #ffd166);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.progress-label {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.6;
  text-align: center;
  flex-shrink: 0;
}
.screen { flex: 1; display: flex; flex-direction: column; gap: 0.65rem; overflow: hidden; min-height: 0; }
.screen[hidden] { display: none !important; }
.start-hero {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
}
.start-hero .big-emoji { font-size: 4.25rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.1)); }
.start-hint { font-size: 0.85rem; opacity: 0.65; max-width: 260px; }
.btn-juicy, .mula, .main-lagi, .menu {
  width: 100%;
  max-width: 300px;
  padding: 1rem 1.5rem;
  border-radius: 1.1rem;
  font-size: 1.12rem;
  font-weight: 800;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, #6bcb77) 90%, #fff), var(--accent, #6bcb77));
  color: #fff;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 55%, #000), 0 12px 24px color-mix(in srgb, var(--accent) 25%, transparent);
}
.btn-juicy:active, .mula:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.btn-juicy.secondary, .menu.btn-juicy.secondary {
  background: #fff;
  color: var(--accent, #6bcb77);
  border: 3px solid var(--accent, #6bcb77);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.prompt-juicy {
  text-align: center;
  padding: 1.15rem 1rem;
  background: rgba(255,255,255,.94);
  border-radius: 1.25rem;
  border: 3px solid color-mix(in srgb, var(--accent) 40%, #fff);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  flex-shrink: 0;
}
.prompt-emoji { font-size: 3.25rem; line-height: 1.1; max-width: 100%; text-align: center; }
.prompt-count {
  display: grid;
  grid-template-columns: repeat(var(--count-cols, 5), max-content);
  justify-content: center;
  justify-items: center;
  align-items: center;
  column-gap: 0.16em;
  row-gap: 0.12em;
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.35rem, 10.5vw, 2.5rem);
  line-height: 1;
}
.prompt-emoji-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.08em 0.12em;
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.25rem, calc(48vw / var(--count-n, 6)), 2.6rem);
  line-height: 1;
}
.prompt-count-item,
.prompt-emoji-op {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.prompt-emoji-op { font-size: 0.7em; margin: 0 0.08em; }
.prompt-text { font-size: 1.3rem; font-weight: 800; line-height: 1.25; }
.choices-juicy {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  align-content: start;
  overflow-y: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.choices-juicy:has(> .choice:first-child:nth-last-child(3)) > .choice:last-child,
.susun-grid:has(> .choice:first-child:nth-last-child(3)) > .choice:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 0.7rem) / 2);
}
.choice {
  position: relative;
  padding: 1.05rem 0.75rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 3px solid #ece6f5;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 4px 0 #ddd5ea, 0 6px 16px rgba(0,0,0,.05);
}
.choice:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #ddd5ea; }
.choice.correct {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, #fff);
}
.choice.wrong { opacity: 0.45; background: #f5f3f0; border-color: #ccc; box-shadow: none; }
.choice:disabled { cursor: default; }
.choice.pop { animation: pop-correct 0.45s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop-correct {
  0% { transform: scale(1); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.sparkle-burst {
  position: absolute;
  right: 0.35rem;
  top: 0.2rem;
  font-size: 1.1rem;
  pointer-events: none;
  animation: sparkle 0.65s ease forwards;
}
@keyframes sparkle {
  from { opacity: 1; transform: scale(0.5) rotate(0); }
  to { opacity: 0; transform: scale(1.6) rotate(40deg) translateY(-8px); }
}
.choice.picked { visibility: hidden; }
.susun-slot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.55rem;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  border-radius: 0.85rem;
  justify-content: center;
  border: 2px dashed color-mix(in srgb, var(--accent) 35%, #ccc);
}
.susun-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0.55rem;
  font-weight: 800;
}
.susun-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.end-screen {
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  gap: 0.85rem;
}
.end-screen h2 { font-size: clamp(1.75rem, 6vw, 2.2rem); font-weight: 900; z-index: 1; }
.end-screen .end-stars { font-size: 2.6rem; letter-spacing: 0.15em; color: #f4a261; margin: 0.2rem 0; z-index: 1; }
.end-screen .stars { font-size: 1rem; font-weight: 700; z-index: 1; max-width: 90%; }
.end-actions { display: flex; flex-direction: column; gap: 0.65rem; width: 100%; max-width: 300px; z-index: 1; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.kenyang-mascot {
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.12));
  line-height: 0;
}
.kenyang-mascot picture, .kenyang-mascot .kenyang-img {
  display: block;
  width: 100%;
  height: auto;
}
.mascot-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 54px;
  padding: 0.1rem 0 0;
  pointer-events: none;
}
.play-wrap .kenyang-mascot:not(.home-kenyang) {
  position: relative;
  width: 56px;
}
.kenyang-mascot.idle:not(.home-kenyang) { animation: kenyang-bob 2.8s ease-in-out infinite; }
.home-kenyang { position: relative; }
.kenyang-mascot.happy { animation: kenyang-hop 0.5s ease; }
.kenyang-mascot.sad { transform: rotate(-6deg) scale(0.94); }
.kenyang-mascot.celebrate { animation: kenyang-celebrate 0.9s ease infinite alternate; }
@keyframes kenyang-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes kenyang-hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px) scale(1.04); }
}
@keyframes kenyang-celebrate {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-7px) rotate(2deg); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.shake { animation: shake 0.35s ease; }
.seret-stage {
  display: block !important;
  grid-template-columns: none;
  padding-bottom: 0.5rem;
}
.seret-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.seret-dock {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.9);
  border-radius: 1.1rem;
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, #ccc);
  padding: 0.5rem;
}
.seret-drag {
  min-width: 72px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: #fff;
  border-radius: 1rem;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.seret-drag.dragging { cursor: grabbing; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.seret-buckets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.seret-bucket {
  min-height: 96px;
  padding: 0.65rem 0.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.94);
  border: 3px solid color-mix(in srgb, var(--accent) 35%, #ddd);
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  touch-action: manipulation;
}
.seret-bucket-single { grid-column: 1 / -1; max-width: 280px; margin: 0 auto; width: 100%; }
.seret-bucket-label { font-weight: 800; font-size: 0.95rem; }
.seret-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
  min-height: 44px;
  width: 100%;
}
.seret-chip { font-size: 1.35rem; line-height: 1; }
.seret-counter { font-size: 0.85rem; font-weight: 700; opacity: 0.75; }
.jawi-text, .prompt-jawi-wrap .jawi-text {
  font-family: 'Noto Naskh Jawi', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  font-size: clamp(1.35rem, 6vw, 2rem);
  line-height: 1.5;
  unicode-bidi: isolate;
}
.choice .jawi-text { font-size: clamp(1.2rem, 5.5vw, 1.75rem); }
.prompt-jawi .jawi-hero { font-size: clamp(2.5rem, 12vw, 3.5rem); }
.ingat-front .jawi-text { font-size: clamp(1.25rem, 5vw, 1.65rem); }
.play-body[data-tema='jawi'] .scene-bg {
  background: linear-gradient(165deg, #d7ccc8 0%, #fff8e1 50%, #c8e6c9 100%);
}
.play-body[data-tema='jawi'] .scene-bg::after {
  content: 'ا ب ت ج ڤ';
  position: absolute;
  inset: 0;
  font-family: 'Noto Naskh Jawi', serif;
  font-size: 1.4rem;
  color: #4e342e;
  opacity: .22;
  letter-spacing: 0.8rem;
  line-height: 3rem;
  padding: 0.75rem;
  animation: float-glyphs 24s linear infinite;
  pointer-events: none;
}
.play-body[data-tema='jawi'] .scene-bg::before {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(121, 85, 72, 0.28) 0 11%, transparent 12%),
    radial-gradient(circle at 78% 65%, rgba(255, 193, 7, 0.25) 0 12%, transparent 13%);
}
.play-body[data-tema='jawi'] .prompt-juicy { direction: rtl; }
.play-body[data-tema='jawi'] .prompt-jawi-wrap { direction: ltr; }
.susun-chip .jawi-text { font-size: 1.15rem; }
.play-body[data-tema='english'] .scene-bg {
  background: linear-gradient(165deg, #bbdefb 0%, #e1bee7 55%, #fff9c4 100%);
}
.ingat-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.ingat-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  text-align: center;
}
.ingat-grid {
  display: grid;
  grid-template-columns: repeat(var(--ingat-cols, 3), 1fr);
  gap: 0.45rem;
  width: 100%;
  max-width: 340px;
}
.ingat-card {
  aspect-ratio: 1;
  min-height: 72px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #f0f4ff 100%);
  box-shadow: 0 4px 0 rgba(0,0,0,.08), 0 6px 16px rgba(0,0,0,.08);
  display: grid;
  place-items: center;
  padding: 0.25rem;
  position: relative;
  overflow: hidden;
  font-size: clamp(1.1rem, 4.5vw, 1.55rem);
  font-weight: 800;
}
.ingat-back {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--accent, #6bcb77);
  font-size: 1.4rem;
}
.ingat-front {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1.1;
  text-align: center;
  word-break: break-word;
}
.ingat-card.ingat-open .ingat-back,
.ingat-card.ingat-matched .ingat-back { display: none; }
.ingat-card.ingat-open .ingat-front,
.ingat-card.ingat-matched .ingat-front { display: grid; }
.ingat-card.ingat-matched {
  box-shadow: 0 0 0 3px var(--accent, #6bcb77);
  opacity: 0.92;
}
.ingat-card.ingat-open:not(.ingat-matched) {
  box-shadow: 0 0 0 2px #90caf9;
}
.play-body[data-tema='english'] .scene-bg::after {
  content: 'A B C 1 2 3 ★';
  position: absolute;
  inset: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #3949ab;
  opacity: .26;
  letter-spacing: 1.1rem;
  line-height: 3.4rem;
  padding: 0.75rem;
  animation: float-glyphs 24s linear infinite;
  pointer-events: none;
}/* v17: Lang greets and replays the greeting when tapped */
.kenyang-mascot.mascot-tap, .mascot-tap { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mascot-tap:focus-visible { outline: 3px solid #24603e; outline-offset: 4px; border-radius: 16px; }
.mascot-tap.tap-bounce { animation: lang-tap 0.55s cubic-bezier(.3,1.6,.5,1) !important; }
@keyframes lang-tap {
  0%, 100% { translate: 0 0; scale: 1; }
  35% { translate: 0 -14px; scale: 1.08 0.95; }
  65% { translate: 0 2px; scale: 0.97 1.03; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-tap.tap-bounce { animation: none !important; }
}

/* small unobtrusive update control on /app/ */
.update-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
  padding: 0.25rem 0.7rem;
  min-height: 32px;
  min-width: 0;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: #fff;
  border: 2px solid #e8e0f0;
  color: #4a5568;
  box-shadow: 0 2px 0 #e2d9ec;
}
.update-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #e2d9ec; }
.update-btn:disabled { opacity: 0.65; cursor: default; }
.og-toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  background: #2d6a4f;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.7rem 1.05rem;
  border-radius: 16px;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  max-width: 92vw;
  text-align: center;
}
