/* =====================================================================
   DUNIA CILIK — REKA BENTUK v4: "MAINAN 3D PREMIUM · KAMPUNG FANTASI"
   Lapisan visual SAHAJA. Tiada perubahan pada logik aplikasi.
   Bergantung pada kelas & atribut sedia ada (+ data-avatar untuk maskot).
   ===================================================================== */
:root {
  --toy-ring: 0 0 0 4px rgba(255, 255, 255, .9);
  --toy-shadow: 0 14px 26px rgba(80, 45, 20, .18);
  --card: #fffdf8;
  --mascot-bg: radial-gradient(circle at 50% 38%, #fffdf8 0 52%, #ffe9bf 53% 100%);
}

/* ---------- MASKOT (menggantikan emoji watak) ---------- */
[data-avatar="mimi"], .guide .char[aria-label^="Mimi"] { --mascot: url("../visual-assets/mascots/mimi.svg"); }
[data-avatar="bobo"], .guide .char[aria-label^="Bobo"] { --mascot: url("../visual-assets/mascots/bobo.svg"); }
[data-avatar="coco"], .guide .char[aria-label^="Coco"] { --mascot: url("../visual-assets/mascots/coco.svg"); }
[data-avatar="dino"], .guide .char[aria-label^="Dino"] { --mascot: url("../visual-assets/mascots/dino.svg"); }
[data-avatar="lala"], .guide .char[aria-label^="Lala"] { --mascot: url("../visual-assets/mascots/lala.svg"); }
.guide .char,
.avatar:is([data-avatar="mimi"], [data-avatar="bobo"], [data-avatar="coco"], [data-avatar="dino"], [data-avatar="lala"]),
.emo:is([data-avatar="mimi"], [data-avatar="bobo"], [data-avatar="coco"], [data-avatar="dino"], [data-avatar="lala"]) {
  font-size: 0 !important; color: transparent;
}
.guide .char { background: var(--mascot) 50% 62% / 92% no-repeat, var(--mascot-bg) !important; width: 76px !important; height: 76px !important; box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(242, 169, 34, .45), 0 8px 16px rgba(80, 45, 20, .22) !important; }
.avatar:is([data-avatar="mimi"], [data-avatar="bobo"], [data-avatar="coco"], [data-avatar="dino"], [data-avatar="lala"]) {
  background: var(--mascot) 50% 70% / 96% no-repeat, var(--mascot-bg) !important;
}
.emo:is([data-avatar="mimi"], [data-avatar="bobo"], [data-avatar="coco"], [data-avatar="dino"], [data-avatar="lala"]) {
  display: inline-block; width: 72px; height: 72px; background: var(--mascot) center / contain no-repeat; vertical-align: middle; filter: drop-shadow(0 4px 4px rgba(80, 45, 20, .18)) !important;
}
.play-cta .pc-char[data-avatar] { width: 84px; height: 84px; }
.logo + .guide, .screen > div > .emo[data-avatar] { margin: 0 4px; }
.coll-item .emo[data-avatar] { width: 70px; height: 70px; }

/* ---------- TIPOGRAFI ---------- */
.topbar .title, .section-title, .modal h2, .player-name, .mode-card .name, .tier-head .tag { letter-spacing: .2px; }
.logo h1 { font-size: clamp(46px, 11vw, 76px) !important; filter: none !important; }
.logo h1 .l1, .logo h1 .l2 { text-shadow: 0 3px 0 #fff, 0 -2px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff, 0 7px 0 rgba(111, 63, 34, .22), 0 12px 18px rgba(111, 63, 34, .18); }
.logo h1 .logo-wau { width: .95em !important; height: 1.15em !important; filter: drop-shadow(0 5px 4px rgba(111, 63, 34, .25)); animation: wauFly 6s ease-in-out infinite; transform-origin: 50% 0; }
.logo p { font-weight: 800; letter-spacing: .3px; }
.section-title { font-size: 27px; text-shadow: 0 2px 0 rgba(255, 255, 255, .8); }

/* ---------- BUTANG MAINAN 3D ---------- */
.btn {
  border-radius: 26px; border: 3px solid rgba(255, 255, 255, .65);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12), inset 0 3px 0 rgba(255, 255, 255, .35), 0 7px 0 var(--bd), var(--toy-shadow);
}
.btn::before { top: 4px; height: 34%; }
.btn:active { transform: translateY(6px) scale(.98); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 1px 0 var(--bd), 0 4px 10px rgba(80, 45, 20, .15); }
.btn.ghost { border-color: #fff; box-shadow: inset 0 -4px 0 #f1e2c9, 0 6px 0 #e3cfae, var(--toy-shadow); }
.btn-round { border: 3px solid rgba(255, 255, 255, .8); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 6px 0 var(--bd), 0 10px 18px rgba(80, 45, 20, .22); }
.btn-round:active { transform: translateY(5px) scale(.96); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14), 0 1px 0 var(--bd); }
.btn:focus-visible, .btn-round:focus-visible, .choice:focus-visible, .mode-card:focus-visible, .tile-btn:focus-visible { outline: 4px solid #2e5aac; outline-offset: 3px; }

/* ---------- HALAMAN UTAMA ---------- */
.player-card { border: 3px solid #fff; background: linear-gradient(180deg, #fffdf8, #fff3dc) !important; box-shadow: 0 6px 0 #ecd6b0, var(--toy-shadow) !important; }
.pill { border: 2px solid #fff; background: linear-gradient(180deg, #fffdf8, #fff3dc) !important; box-shadow: 0 4px 0 #ecd6b0, 0 8px 14px rgba(80, 45, 20, .1) !important; }

.play-cta { border: 4px solid rgba(255, 255, 255, .75); border-radius: 36px; min-height: 128px; box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .14), 0 9px 0 var(--hero2), 0 18px 32px rgba(31, 122, 80, .3) !important; }
.play-cta:active { transform: translateY(7px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 2px 0 var(--hero2) !important; }
.play-cta .pc-play { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .08), 0 6px 0 rgba(0, 0, 0, .15), 0 0 0 6px rgba(255, 255, 255, .35); }
.play-cta::after { display: block !important; width: 70px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent); animation: shine 4.2s ease-in-out infinite; }

.tile-btn { border: 4px solid rgba(255, 255, 255, .7); border-radius: 30px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12), 0 7px 0 rgba(0, 0, 0, .18), var(--toy-shadow) !important; transition: transform .12s; }
.tile-btn:hover { transform: translateY(-3px) rotate(-.6deg); }
.tile-btn:active { transform: translateY(6px) scale(.97); }
.tile-btn .tb-ico { width: 68px; height: 68px; border-radius: 50%; font-size: 44px; background: radial-gradient(circle at 40% 32%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .16)) !important; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1), 0 0 0 3px rgba(255, 255, 255, .35); animation: icoBob 3.4s ease-in-out infinite; }
.tile-btn:nth-child(2) .tb-ico { animation-delay: -.8s; } .tile-btn:nth-child(3) .tb-ico { animation-delay: -1.6s; } .tile-btn:nth-child(4) .tb-ico { animation-delay: -2.4s; }
@keyframes icoBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-4deg); } }
.tile-btn.parent-link { border: 3px solid #fff; animation: none; }
.tile-btn.parent-link .tb-ico { animation: none; }

/* ---------- KAD PERMAINAN PREMIUM ---------- */
.mode-card {
  border: 4px solid #fff; border-radius: 32px; padding: 0 10px 14px !important; overflow: hidden; gap: 8px;
  background: #fffdf8 !important;
  box-shadow: 0 8px 0 #e3cfae, var(--toy-shadow) !important;
  box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 55%, #6f3f22), var(--toy-shadow) !important;
  animation: cardIn .55s cubic-bezier(.2, .9, .3, 1.3) both;
  transition: transform .14s, box-shadow .14s;
}
.mode-card::before {
  /* pentas berwarna di bahagian atas kad, dengan corak songket & jalur pucuk rebung */
  content: "" !important; display: block !important; position: absolute; left: 0; right: 0; top: 0; height: 74px !important; opacity: 1 !important;
  -webkit-mask: none !important; mask: none !important;
  background: var(--songket) 0 0 / 26px 26px, linear-gradient(160deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c)) !important;
}
.mode-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 66px; height: 14px; pointer-events: none;
  background: var(--c); -webkit-mask: var(--pucuk) 0 0 / 20px 14px repeat-x; mask: var(--pucuk) 0 0 / 20px 14px repeat-x;
}
.mode-card .mc-ico { margin-top: 18px; z-index: 1; width: 100px !important; height: 100px !important; filter: drop-shadow(0 6px 6px rgba(80, 45, 20, .2)); transition: transform .2s; }
.mode-card .mc-ring { box-shadow: 0 0 0 4px #fff; }
.mode-card .mc-ring::after { inset: 8px !important; background: radial-gradient(circle at 38% 30%, #ffffff, #fff4dc) !important; box-shadow: inset 0 -5px 0 rgba(111, 63, 34, .08); }
.mode-card .mc-ico .mode-art { width: 66px !important; height: 66px !important; }
.mode-card .name { position: relative; z-index: 1; font-size: 19px !important; min-height: 44px; }
.mode-card .meta { position: relative; z-index: 1; border: 2px solid #fff; box-shadow: 0 3px 0 rgba(111, 63, 34, .1); }
.mode-card:hover { transform: translateY(-4px); }
.mode-card:hover .mc-ico { transform: translateY(-3px) rotate(-4deg) scale(1.04); }
.mode-card:active { transform: translateY(6px) scale(.98); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 55%, #6f3f22) !important; }
.mode-card .done-badge { z-index: 2; top: 10px; right: 10px; font-size: 32px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .2)); }
.mode-card .lock-ic { z-index: 2; }
.mode-grid .mode-card:nth-child(1) { animation-delay: .02s; } .mode-grid .mode-card:nth-child(2) { animation-delay: .06s; }
.mode-grid .mode-card:nth-child(3) { animation-delay: .1s; } .mode-grid .mode-card:nth-child(4) { animation-delay: .14s; }
.mode-grid .mode-card:nth-child(5) { animation-delay: .18s; } .mode-grid .mode-card:nth-child(6) { animation-delay: .22s; }
.mode-grid .mode-card:nth-child(7) { animation-delay: .26s; } .mode-grid .mode-card:nth-child(8) { animation-delay: .3s; }
.mode-grid .mode-card:nth-child(n+9) { animation-delay: .34s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .mode-card .mc-ico { width: 88px !important; height: 88px !important; } .mode-card .mc-ico .mode-art { width: 58px !important; height: 58px !important; } .mode-card::before { height: 66px !important; } .mode-card::after { top: 58px; } .mode-card .name { font-size: 17px !important; } }

/* ---------- GELEMBUNG KATA & PANEL ---------- */
.guide .bubble { border: 3px solid #fff; background: linear-gradient(180deg, #fffdf8, #fff6e4) !important; box-shadow: 0 5px 0 #ecd6b0, 0 10px 20px rgba(80, 45, 20, .1) !important; font-size: clamp(18px, 4.4vw, 23px); }
.guide .bubble::before { border-right-color: #fffaf0 !important; left: -12px; border-width: 12px; }
.panel, .daily-item, .coll-item, .explore-card, .tier-card { border: 3px solid #fff; box-shadow: 0 6px 0 #ecd6b0, 0 10px 22px rgba(80, 45, 20, .1) !important; }
.daily-item { border-radius: 28px; transition: transform .12s; }
.daily-item:active, .coll-item:active, .explore-card:active { transform: translateY(4px) scale(.98); }
.coll-item:hover, .explore-card:hover { transform: translateY(-3px); }
.coll-item.on { box-shadow: 0 0 0 4px var(--pandan), 0 6px 0 #ecd6b0 !important; }
.tabs button { border: 3px solid #fff; box-shadow: 0 4px 0 #ecd6b0 !important; transition: transform .1s; }
.tabs button:active { transform: translateY(3px); }
.tabs button.on { box-shadow: 0 4px 0 var(--terung-d) !important; }
.topbar .title { border: 3px solid #fff; background: linear-gradient(180deg, #fffdf8, #fff3dc) !important; box-shadow: 0 5px 0 #ecd6b0, 0 10px 18px rgba(80, 45, 20, .1) !important; }

/* ---------- PETA LEVEL: syiling mainan ---------- */
.tier-card { border-radius: 34px; background: linear-gradient(180deg, #fffdf8, #fff4e0) !important; }
.lvl { border: 4px solid #fff; box-shadow: inset 0 -5px 0 rgba(111, 63, 34, .1), 0 6px 0 #e3cfae, 0 10px 16px rgba(80, 45, 20, .14); transition: transform .12s; }
.lvl.done { box-shadow: inset 0 -5px 0 rgba(150, 90, 0, .25), inset 0 0 0 4px rgba(255, 255, 255, .35), 0 6px 0 var(--kunyit-d), 0 10px 16px rgba(201, 130, 11, .3); text-shadow: 0 2px 0 rgba(255, 255, 255, .5); }
.lvl.current { animation: nodePulse 1.6s ease-in-out infinite !important; }
@keyframes nodePulse { 0%, 100% { transform: scale(1); box-shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 0 0 0 rgba(255, 255, 255, .9), 0 10px 22px rgba(80, 45, 20, .25); } 50% { transform: scale(1.07); box-shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 0 0 10px rgba(255, 255, 255, 0), 0 10px 22px rgba(80, 45, 20, .25); } }
.lvl:active { transform: translateY(5px) scale(.96); }
.lv-node .me { width: 40px; height: 40px; }

/* ---------- SKRIN PERMAINAN: papan mainan ---------- */
.play-head { background: linear-gradient(180deg, rgba(255, 253, 248, .92), rgba(255, 243, 220, .92)); border: 3px solid #fff; border-radius: 34px; padding: 8px; box-shadow: 0 5px 0 #ecd6b0, 0 10px 20px rgba(80, 45, 20, .12); }
.play-head .progress, .play-title { box-shadow: inset 0 2px 4px rgba(111, 63, 34, .08) !important; background: #fff !important; }
.stage {
  border: 6px solid #fff !important; border-radius: 38px !important;
  background: var(--songket) 0 0 / 34px 34px, linear-gradient(180deg, #fffdf8, #fff5e2) !important;
  box-shadow: 0 0 0 4px var(--mc, var(--primary)), 0 12px 0 rgba(111, 63, 34, .12), 0 20px 36px rgba(80, 45, 20, .16) !important;
}
.stage::before { top: 0 !important; }
.choice {
  border: 4px solid #fff; border-radius: 30px;
  background: linear-gradient(180deg, #ffffff, #fff4df) !important;
  box-shadow: inset 0 -6px 0 rgba(111, 63, 34, .07), 0 7px 0 #e8d3b0, 0 12px 20px rgba(80, 45, 20, .12) !important;
  transition: transform .14s cubic-bezier(.3, 1.4, .5, 1), box-shadow .14s;
}
.choice:hover { transform: translateY(-4px) rotate(-1deg); }
.choice:active { transform: translateY(6px) scale(.95); box-shadow: inset 0 -3px 0 rgba(111, 63, 34, .07), 0 1px 0 #e8d3b0 !important; }
.choice.right { background: linear-gradient(180deg, #ecfff3, #c4f3d5) !important; box-shadow: 0 0 0 5px #2f9e6a, 0 7px 0 #1f7a50, 0 0 30px rgba(47, 158, 106, .45) !important; animation: rightPop .55s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes rightPop { 0% { transform: scale(.9); } 50% { transform: scale(1.12) rotate(2deg); } 100% { transform: scale(1); } }
.choice.wrong { background: linear-gradient(180deg, #fff4f1, #ffdcd4) !important; box-shadow: 0 0 0 4px #e2553f, 0 7px 0 #b53a28 !important; }
.drag-src { border: 4px solid #fff; background: linear-gradient(180deg, #ffffff, #fff4df) !important; box-shadow: inset 0 -5px 0 rgba(111, 63, 34, .07), 0 6px 0 #e8d3b0, 0 10px 16px rgba(80, 45, 20, .12) !important; transition: transform .12s; }
.drag-src:hover { transform: translateY(-3px) rotate(-2deg); }
.drag-ghost { transform: translate(-50%, -50%) scale(1.16) rotate(-4deg) !important; }
.drop-zone { border-width: 4px; border-color: #e1c99f; background: rgba(255, 250, 238, .85); }
.drop-zone.filled { border-color: var(--pandan); background: #e9fff1; }
.mcard .f, .cell.cover { border: 4px solid #fff; }
.mcard .b { border: 4px solid #fff; }
.strip .s, .slots .slot { border-radius: 20px; }
.swatch { border-width: 5px; box-shadow: 0 5px 0 rgba(0, 0, 0, .18), 0 8px 12px rgba(80, 45, 20, .15); transition: transform .12s; }
.swatch.on { transform: scale(1.22) translateY(-3px); }
.dpad button { border: 3px solid rgba(255, 255, 255, .8); border-radius: 24px; }
.maze, .scene, .dots-pad, .draw-pad, .color-art, .diff-pane, .puzzle-board { border: 5px solid #fff; box-shadow: 0 7px 0 #e8d3b0, 0 12px 22px rgba(80, 45, 20, .14) !important; }
.speaker-art { filter: drop-shadow(0 8px 8px rgba(46, 90, 172, .25)); }
.star-pill { border: 3px solid #fff !important; }

/* ---------- GANJARAN: sinar matahari & bintang ---------- */
.modal { border: 5px solid #fff; background: linear-gradient(180deg, #fffdf8, #fff4df) !important; }
.win-head { overflow: hidden; }
.win-head::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 255, 255, .22) 0 10deg, rgba(255, 255, 255, 0) 10deg 20deg);
  animation: rays 14s linear infinite; border-radius: 50%;
}
.win-head > * { position: relative; }
.win-head .emo { animation: trophyBounce 1.6s ease-in-out infinite; display: inline-block !important; }
@keyframes rays { to { transform: rotate(360deg); } }
@keyframes trophyBounce { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-8px) scale(1.06); } }
.win-stars .ic { font-size: 54px !important; filter: drop-shadow(0 4px 0 rgba(150, 90, 0, .35)); }
.reward-list .pill { animation: cardIn .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.reward-list .pill:nth-child(2) { animation-delay: .12s; } .reward-list .pill:nth-child(3) { animation-delay: .24s; } .reward-list .pill:nth-child(n+4) { animation-delay: .36s; }
.toast { border: 3px solid #fff; animation: toastBounce .45s cubic-bezier(.2, 1.6, .4, 1) !important; }
@keyframes toastBounce { from { opacity: 0; transform: translate(-50%, -24px) scale(.7); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* ---------- MAIN BEBAS: ikon ilustrasi ---------- */
.free-grid .tile-btn .emo { font-size: 0 !important; width: 78px; height: 78px; background: center / contain no-repeat; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .2)); }
.free-grid .tile-btn:nth-child(1) .emo { background-image: url("../visual-assets/icons/mewarna.svg"); }
.free-grid .tile-btn:nth-child(2) .emo { background-image: url("../visual-assets/icons/lukis.svg"); }
.free-grid .tile-btn:nth-child(3) .emo { background-image: url("../visual-assets/icons/bunyi.svg"); }
.free-grid .tile-btn:nth-child(4) .emo { background-image: url("../visual-assets/icons/susun.svg"); }
.free-grid .tile-btn:nth-child(5) .emo { background-image: url("../visual-assets/icons/puzzle.svg"); }
.free-grid .tile-btn:nth-child(6) .emo { background-image: url("../visual-assets/icons/teroka.svg"); }
.free-grid .tile-btn { min-height: 150px; }

/* ---------- Ruang Ibu Bapa: kekal kemas & mudah dibaca ---------- */
.parent .panel { border-width: 2px; box-shadow: 0 4px 0 #ecd6b0 !important; }

@media (prefers-reduced-motion: reduce) {
  .mode-card, .reward-list .pill, .tile-btn .tb-ico, .win-head::before, .win-head .emo, .lvl.current { animation: none !important; }
}

/* ---------- LATAR KAMPUNG FANTASI ---------- */
html[data-theme="kampung"] body { background: linear-gradient(180deg, #ffcf7a 0%, #ffe1a6 26%, #fff0d2 52%, #fff6e6 100%) !important; }
html[data-theme="kampung"] .sun { width: 120px !important; height: 120px !important; top: 18px !important; right: 22px !important; }
html[data-theme="kampung"] .sun::before { content: ""; position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 255, 255, .28) 0 8deg, rgba(255, 255, 255, 0) 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%); animation: rays 40s linear infinite; }
html[data-theme="kampung"] .land { height: min(34vh, 290px) !important; }
@media (prefers-reduced-motion: reduce) { html[data-theme="kampung"] .sun::before { animation: none; } }

/* Telefon: elak teks CTA terbungkus dua baris */
@media (max-width: 640px) {
  .play-cta .pc-char[data-avatar] { width: 62px; height: 62px; }
  .play-cta .pc-text b { white-space: nowrap; font-size: clamp(22px, 6.6vw, 30px); }
  .play-cta .pc-text span { font-size: 14px; }
  .play-cta .pc-sub { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Kad masuk CILIK RACING (laman utama) ---------- */
.rc-entry {
  position: relative; display: flex; align-items: center; width: 100%; min-height: 128px; margin: 4px 0 14px; padding: 14px 18px; overflow: hidden; cursor: pointer; text-align: left;
  border-radius: 30px; border: 4px solid #fff; color: #fff;
  background: linear-gradient(120deg, #2e5aac 0%, #4dabf7 55%, #8fd6ff 100%);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .14), 0 8px 0 #1f3f7a, 0 16px 28px rgba(46, 90, 172, .3);
}
.rc-entry::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -40px; height: 90px; background: repeating-linear-gradient(90deg, #26262b 0 22px, #fff 22px 44px); transform: perspective(200px) rotateX(55deg); opacity: .22; }
.rc-entry:active { transform: translateY(5px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 3px 0 #1f3f7a; }
.rc-entry-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.rc-entry-txt small { align-self: flex-start; background: #ffd23a; color: #7a4a00; font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 99px; letter-spacing: 1px; box-shadow: 0 2px 0 #c99512; }
.rc-entry-txt b { font-size: clamp(26px, 6.6vw, 36px); line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, .2); font-style: italic; }
.rc-entry-txt span { font-weight: 700; font-size: 15px; opacity: .95; }
.rc-entry-art { position: absolute; right: -6px; bottom: -4px; height: 128px; width: auto; z-index: 0; animation: rcEntry 1.6s ease-in-out infinite; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .18)); }
@keyframes rcEntry { 50% { transform: translateY(-4px); } }
@media (max-width: 420px) { .rc-entry-art { height: 104px; right: -30px; } }
@media (prefers-reduced-motion: reduce) { .rc-entry-art { animation: none; } }
/* satu lajur (telefon): kad dalam lajur sisi; dua lajur: kad dalam lajur utama */
.rc-entry.in-main { display: none; }
@media (min-width: 980px), (orientation: landscape) and (min-width: 700px) and (max-width: 979px) {
  .rc-entry.in-side { display: none; }
  .rc-entry.in-main { display: flex; }
}
.rc-entry.locked { filter: grayscale(.75); opacity: .8; }
.rc-entry .lock-ic { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #6b628c; }
.rc-entry .lock-ic svg { width: 22px; height: 22px; }
/* Kad masuk TEKA SILANG CILIK */
.rc-entry.ts-entry { background: linear-gradient(120deg, #7048e8 0%, #9775fa 55%, #d0bfff 100%); box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .14), 0 8px 0 #4527a0, 0 16px 28px rgba(112, 72, 232, .3); }
.rc-entry.ts-entry::before { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .12) 0 14px, transparent 14px 28px); transform: none; bottom: 0; top: 0; height: auto; opacity: 1; }
.rc-entry.ts-entry .rc-entry-art { height: 118px; right: 4px; bottom: 2px; }
@media (max-width: 420px) { .rc-entry.ts-entry .rc-entry-art { height: 96px; right: -14px; } }
/* Kad masuk TAMAN AKHLAK */
.rc-entry.ak-entry { background: linear-gradient(120deg, #2f9e6a 0%, #51cf66 55%, #b2f2bb 100%); box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .14), 0 8px 0 #1f7a50, 0 16px 28px rgba(47, 158, 106, .3); }
.rc-entry.ak-entry::before { background: radial-gradient(circle at 20% 120%, rgba(255, 255, 255, .25) 0 60px, transparent 61px), radial-gradient(circle at 70% -20%, rgba(255, 255, 255, .2) 0 50px, transparent 51px); transform: none; inset: 0; height: auto; opacity: 1; }
.rc-entry.ak-entry .rc-entry-art { height: 124px; right: 2px; bottom: 0; }
@media (max-width: 420px) { .rc-entry.ak-entry .rc-entry-art { height: 100px; right: -12px; } }

/* ---------- MUAT SATU SKRIN: skrin bermain 15 permainan asal ---------- */
.fz > * { zoom: var(--fz, 1); }
.screen.play-fit { height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; flex: none; overflow: hidden; gap: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.play-fit > * { flex-shrink: 0; }
.play-fit .stage { flex: 1 1 0; min-height: 0; overflow: hidden; justify-content: safe center; }
@media (max-height: 700px) { .screen.play-fit { gap: 6px; padding-top: max(6px, env(safe-area-inset-top)); } .play-fit .stage { padding: 12px 10px; } }
