
    /* ═════════════════════════════════════════════════════════════════
       TEMA CERIA ANAK: BUBBLY, PASTEL, HIGH CONTRAST & TOUCH-FRIENDLY
       ═════════════════════════════════════════════════════════════════ */
    :root {
      --primary: #ff4081;
      --primary-light: #ff79b0;
      --secondary: #ffb300;
      --secondary-light: #ffe57f;
      --accent-cyan: #00e5ff;
      --accent-green: #00e676;
      --accent-purple: #b388ff;
      --bg-sky: linear-gradient(180deg, #b3e5fc 0%, #e1f5fe 60%, #fff9c4 100%);
      --card-bg: #ffffff;
      --text-dark: #2c3e50;
      --text-purple: #4a148c;
      --shadow-bubble: 0 10px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
      --shadow-press: 0 4px 0 rgba(0, 0, 0, 0.15);
      --font-bubble: 'Fredoka', 'Quicksand', sans-serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      user-select: none;
      -webkit-user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      font-family: var(--font-bubble);
      background: var(--bg-sky);
      min-height: 100vh;
      color: var(--text-dark);
      overflow-x: hidden;
      position: relative;
    }

    /* Awan Melayang di Latar Belakang */
    .clouds-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
    }
    .cloud {
      position: absolute;
      background: rgba(255, 255, 255, 0.7);
      border-radius: 100px;
      animation: floatClouds linear infinite;
    }
    .cloud::before, .cloud::after {
      content: '';
      position: absolute;
      background: rgba(255, 255, 255, 0.7);
      border-radius: 50%;
    }
    .cloud1 { width: 140px; height: 45px; top: 10%; left: -160px; animation-duration: 28s; }
    .cloud1::before { width: 60px; height: 60px; top: -25px; left: 20px; }
    .cloud1::after { width: 45px; height: 45px; top: -15px; left: 65px; }

    .cloud2 { width: 190px; height: 55px; top: 25%; left: -220px; animation-duration: 38s; animation-delay: 8s; }
    .cloud2::before { width: 80px; height: 80px; top: -35px; left: 30px; }
    .cloud2::after { width: 60px; height: 60px; top: -20px; left: 95px; }

    @keyframes floatClouds {
      from { transform: translateX(0); }
      to { transform: translateX(calc(100vw + 300px)); }
    }

    /* ─── APP WRAPPER ─── */
    .app-wrapper {
      position: relative;
      z-index: 1;
      max-width: 1080px;
      margin: 0 auto;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      padding: 12px 16px 40px;
    }

    /* ─── HEADER CERIA ─── */
    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(255, 255, 255, 0.88);
      backdrop-filter: blur(12px);
      padding: 10px 20px;
      border-radius: 28px;
      box-shadow: var(--shadow-bubble);
      border: 3px solid #ffffff;
      margin-bottom: 16px;
    }

    .brand-syifa {
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
    }
    .brand-avatar {
      width: 52px;
      height: 52px;
      background: linear-gradient(135deg, #ff80ab, #ff4081);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      box-shadow: 0 4px 10px rgba(255, 64, 129, 0.4);
      border: 3px solid #ffffff;
      animation: pulseAvatar 2s infinite ease-in-out;
    }
    @keyframes pulseAvatar {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.06); }
    }
    .brand-title {
      font-size: 24px;
      font-weight: 700;
      background: linear-gradient(135deg, #d81b60, #8e24aa);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      line-height: 1.1;
    }
    .brand-sub {
      font-size: 13px;
      color: #7b1fa2;
      font-weight: 600;
    }

    .top-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .star-badge {
      display: flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, #fff3e0, #ffe082);
      border: 2px solid #ffb300;
      padding: 6px 14px;
      border-radius: 20px;
      box-shadow: 0 4px 8px rgba(255, 179, 0, 0.25);
      cursor: pointer;
      transition: transform 0.2s;
    }
    .star-badge:hover { transform: scale(1.05); }
    .star-badge i { font-size: 22px; color: #ff9100; animation: spinStar 4s infinite linear; }
    @keyframes spinStar {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .star-count {
      font-size: 20px;
      font-weight: 700;
      color: #e65100;
    }

    .btn-circle {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 2px solid #ffffff;
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      color: #5c6bc0;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      transition: all 0.2s;
    }
    /* Kid-friendly: tombol lebih hidup */
    .btn-circle {
      transition: transform 0.15s ease;
    }
    .btn-circle:active {
      transform: scale(0.88) rotate(-8deg);
    }
    .btn-circle:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }
    .btn-sound.muted i { color: #e53935; }

    /* ─── MENU UTAMA BERMAIN (PLAYGROUND DASHBOARD) ─── */
    .playground-hero {
      text-align: center;
      margin: 10px 0 24px;
      position: relative;
    }
    .greeting-bubble {
      display: inline-block;
      background: #ffffff;
      border: 3px solid #ff80ab;
      padding: 10px 24px;
      border-radius: 30px;
      box-shadow: var(--shadow-bubble);
      font-size: 22px;
      font-weight: 700;
      color: #c2185b;
      margin-bottom: 8px;
      animation: bounceGreeting 2.5s infinite;
    }
    @keyframes bounceGreeting {
      0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
      40% { transform: translateY(-8px); }
      60% { transform: translateY(-4px); }
    }

    /* ─── FITUR AVATAR KARAKTER CILIK (LAKI-LAKI & PEREMPUAN) ─── */
    .child-avatar-pill {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: #ffffff;
      border: 3px solid #ffca28;
      padding: 6px 16px 6px 8px;
      border-radius: 35px;
      box-shadow: 0 6px 16px rgba(255, 193, 7, 0.35);
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      margin-bottom: 8px;
      user-select: none;
    }
    .child-avatar-pill:hover {
      transform: translateY(-2px) scale(1.04);
      border-color: #f57f17;
      box-shadow: 0 8px 22px rgba(255, 193, 7, 0.5);
    }
    .child-avatar-img-wrap {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: linear-gradient(135deg, #fff9c4, #ffe082);
      border: 2px solid #ffd54f;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    }
    .child-avatar-label {
      text-align: left;
      line-height: 1.25;
    }
    .child-avatar-label .avatar-role-title {
      display: block;
      font-weight: 800;
      font-size: 13px;
      color: #e65100;
    }
    .child-avatar-label .avatar-change-hint {
      font-size: 10px;
      font-weight: 700;
      color: #78909c;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .gender-toggle-btn {
      flex: 1;
      padding: 10px 14px;
      border-radius: 16px;
      border: 2px solid #cfd8dc;
      background: #f5f5f5;
      font-family: var(--font-bubble);
      font-weight: 700;
      font-size: 13px;
      color: #546e7a;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .gender-toggle-btn.active.boy {
      background: #e3f2fd;
      border-color: #2196f3;
      color: #0d47a1;
      box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
    }
    .gender-toggle-btn.active.girl {
      background: #fce4ec;
      border-color: #e91e63;
      color: #880e4f;
      box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
    }

    .avatar-card-item {
      background: #ffffff;
      border: 2px solid #e0e0e0;
      border-radius: 16px;
      padding: 10px 6px;
      text-align: center;
      cursor: pointer;
      position: relative;
      transition: all 0.2s ease;
    }
    .avatar-card-item:hover {
      transform: translateY(-3px);
      border-color: #ffb300;
      box-shadow: 0 6px 14px rgba(255, 179, 0, 0.25);
    }
    .avatar-card-item.selected {
      border: 3px solid #ff4081;
      background: #fff5f8;
      box-shadow: 0 6px 16px rgba(255, 64, 129, 0.35);
    }
    .avatar-card-item .avatar-card-icon {
      font-size: 32px;
      margin-bottom: 4px;
      display: block;
    }
    .avatar-card-item .avatar-card-name {
      font-size: 11px;
      font-weight: 800;
      color: #37474f;
      line-height: 1.2;
    }
    .avatar-card-item.vip-locked {
      opacity: 0.85;
      background: #fafafa;
    }
    .avatar-card-item .vip-lock-pill {
      position: absolute;
      top: -6px;
      right: -6px;
      background: linear-gradient(135deg, #f59e0b, #ec4899);
      color: #ffffff;
      font-size: 9px;
      font-weight: 800;
      padding: 2px 6px;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    .game-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 20px;
      margin-bottom: 24px;
    }

    .game-card {
      background: #ffffff;
      border-radius: 32px;
      padding: 24px 20px;
      text-align: center;
      border: 4px solid #ffffff;
      box-shadow: var(--shadow-bubble);
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .game-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    }
    .game-card:active {
      transform: translateY(2px) scale(0.98);
    }

    .game-card.card-memory {
      background: linear-gradient(145deg, #fff0f5 0%, #ffe4ec 100%);
      border-color: #ff80ab;
    }
    .game-card.card-quiz {
      background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
      border-color: #66bb6a;
    }
    .game-card.card-letter {
      background: linear-gradient(145deg, #fff8e1 0%, #ffecb3 100%);
      border-color: #ffca28;
    }
    .game-card.card-sort {
      background: linear-gradient(145deg, #e1f5fe 0%, #b3e5fc 100%);
      border-color: #29b6f6;
    }
    .game-card.card-stickers {
      background: linear-gradient(145deg, #f3e5f5 0%, #e1bee7 100%);
      border-color: #ab47bc;
    }

    .game-card-icon {
      width: 90px;
      height: 90px;
      border-radius: 28px;
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 46px;
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
      margin-bottom: 14px;
      transition: transform 0.3s;
    }
    .game-card:hover .game-card-icon {
      transform: scale(1.12) rotate(5deg);
    }

    .game-card-title {
      font-size: 22px;
      font-weight: 700;
      color: #2c3e50;
      margin-bottom: 6px;
    }
    .game-card-desc {
      font-size: 14px;
      color: #546e7a;
      line-height: 1.3;
      margin-bottom: 14px;
    }
    .game-card-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 16px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.9);
      box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    }

    /* ─── GAME SCREENS WRAPPER ─── */
    .game-screen {
      display: none;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(12px);
      border-radius: 36px;
      padding: 24px;
      box-shadow: var(--shadow-bubble);
      border: 4px solid #ffffff;
      margin-bottom: 24px;
      animation: fadeInScreen 0.3s ease;
    }
    @keyframes fadeInScreen {
      from { opacity: 0; transform: translateY(14px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .game-screen.active {
      display: block;
    }

    .screen-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 14px;
      border-bottom: 3px dashed #e0e0e0;
    }
    .btn-back {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      border-radius: 24px;
      border: none;
      background: #ffecb3;
      color: #ff6f00;
      font-family: var(--font-bubble);
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: var(--shadow-press);
      transition: transform 0.15s;
    }
    .btn-back:active { transform: translateY(2px); }

    .screen-title {
      font-size: 26px;
      font-weight: 700;
      color: #880e4f;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    /* ─── GAME 1: MEMORI AJAIB (MEMORY MATCH) ─── */
    .memory-controls {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-bottom: 18px;
      flex-wrap: wrap;
    }
    .chip-btn {
      padding: 8px 18px;
      border-radius: 20px;
      border: 2px solid #b39ddb;
      background: #ede7f6;
      color: #4a148c;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
    }
    .chip-btn.active {
      background: #7e57c2;
      color: #ffffff;
      border-color: #512da8;
      box-shadow: 0 4px 8px rgba(126, 87, 194, 0.4);
    }

    .memory-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      max-width: 680px;
      margin: 0 auto;
      perspective: 1000px;
    }
    @media (max-width: 600px) {
      .memory-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    }
    /* Mode rapat untuk jumlah kartu banyak (12, 16, 20 kartu) */
    .memory-grid.dense-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      max-width: 640px;
    }
    .memory-grid.dense-grid .card-front .card-emoji {
      font-size: 36px;
    }
    .memory-grid.dense-grid .card-front .card-name {
      font-size: 13px;
    }
    .memory-grid.dense-grid .card-back {
      font-size: 28px;
    }
    .memory-grid.dense-grid .memory-card {
      border-radius: 18px;
    }
    .memory-grid.dense-grid .card-face {
      border-radius: 18px;
      padding: 6px;
    }
    @media (max-width: 520px) {
      .memory-grid.dense-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
      }
      .memory-grid.dense-grid .card-front .card-emoji {
        font-size: 26px;
      }
      .memory-grid.dense-grid .card-front .card-name {
        font-size: 11px;
      }
      .memory-grid.dense-grid .card-back {
        font-size: 22px;
      }
      .memory-grid.dense-grid .memory-card {
        border-radius: 14px;
      }
      .memory-grid.dense-grid .card-face {
        border-radius: 14px;
        padding: 4px;
      }
    }

    .memory-card {
      aspect-ratio: 1 / 1.1;
      border-radius: 24px;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
    }
    .memory-card.flipped {
      transform: rotateY(180deg);
    }
    .memory-card.matched {
      transform: rotateY(180deg) scale(0.96);
      pointer-events: none;
      animation: pulseMatch 0.8s ease;
    }
    @keyframes pulseMatch {
      0%, 100% { transform: rotateY(180deg) scale(0.96); }
      50% { transform: rotateY(180deg) scale(1.08); }
    }

    .card-face {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow-bubble);
      border: 3px solid #ffffff;
    }
    .card-back {
      background: linear-gradient(135deg, #ff80ab, #ff4081);
      color: #ffffff;
      font-size: 34px;
    }
    .card-front {
      background: #ffffff;
      transform: rotateY(180deg);
      border: 3px solid #ff80ab;
      padding: 8px;
    }
    .card-front .card-emoji {
      font-size: 46px;
      line-height: 1;
      margin-bottom: 4px;
    }
    .card-front .card-img {
      width: 80%;
      height: 60%;
      object-fit: contain;
      border-radius: 12px;
      margin-bottom: 4px;
    }
    .card-front .card-name {
      font-size: 15px;
      font-weight: 700;
      color: #c2185b;
      text-align: center;
    }

    /* ─── GAME 2: TEBAK CERIA (QUIZ GUESS) ─── */
    .quiz-container {
      max-width: 680px;
      margin: 0 auto;
      text-align: center;
    }
    .quiz-question-box {
      background: linear-gradient(135deg, #e0f7fa, #80deea);
      border-radius: 30px;
      padding: 20px 24px;
      border: 4px solid #00acc1;
      box-shadow: var(--shadow-bubble);
      margin-bottom: 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }
    .quiz-question-text {
      font-size: 26px;
      font-weight: 700;
      color: #006064;
    }
    .btn-speak-question {
      background: #ffffff;
      border: 2px solid #00838f;
      color: #00838f;
      padding: 8px 20px;
      border-radius: 20px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: transform 0.2s;
    }
    .btn-speak-question:hover { transform: scale(1.05); }

    .quiz-options-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 18px;
    }
    @media (max-width: 500px) {
      .quiz-options-grid { grid-template-columns: 1fr; }
    }
    .quiz-opt-btn {
      background: #ffffff;
      border-radius: 28px;
      padding: 20px;
      border: 4px solid #e0e0e0;
      box-shadow: var(--shadow-bubble);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 16px;
      transition: all 0.2s;
    }
    .quiz-opt-btn:hover {
      border-color: #29b6f6;
      transform: translateY(-4px);
    }
    .quiz-opt-emoji {
      font-size: 52px;
      width: 70px;
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #e1f5fe;
      border-radius: 20px;
    }
    .quiz-opt-label {
      font-size: 22px;
      font-weight: 700;
      color: #37474f;
      text-align: left;
    }

    /* ─── GAME 3: COCOK HURUF AWAL ─── */
    .letter-stage {
      max-width: 680px;
      margin: 0 auto;
      text-align: center;
    }
    .letter-big-circle {
      width: 130px;
      height: 130px;
      border-radius: 50%;
      background: linear-gradient(135deg, #fff3e0, #ffb74d);
      border: 6px solid #f57c00;
      margin: 0 auto 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 72px;
      font-weight: 800;
      color: #e65100;
      box-shadow: 0 10px 20px rgba(245, 124, 0, 0.3);
      cursor: pointer;
      animation: popLetter 1.8s infinite ease-in-out;
    }
    @keyframes popLetter {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.08); }
    }

    /* ─── GAME 4: PILAH KATEGORI (SORTING) ─── */
    .sorting-stage {
      max-width: 720px;
      margin: 0 auto;
      text-align: center;
    }
    .sort-target-card {
      background: #ffffff;
      border: 4px solid #ab47bc;
      border-radius: 30px;
      padding: 24px;
      margin-bottom: 24px;
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      box-shadow: var(--shadow-bubble);
      animation: floatTarget 2s infinite ease-in-out;
    }
    @keyframes floatTarget {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }
    .sort-target-emoji { font-size: 64px; }
    .sort-target-name { font-size: 26px; font-weight: 700; color: #4a148c; }

    .basket-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }
    @media (max-width: 600px) {
      .basket-grid { grid-template-columns: 1fr; }
    }
    .basket-btn {
      background: #ffffff;
      border-radius: 28px;
      padding: 20px 14px;
      border: 4px solid #ffffff;
      box-shadow: var(--shadow-bubble);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      transition: all 0.2s;
    }
    .basket-btn:hover { transform: translateY(-6px); }
    .basket-btn.b-hewan { border-color: #66bb6a; background: #f1f8e9; }
    .basket-btn.b-tanaman { border-color: #ffb74d; background: #fff8e1; }
    .basket-btn.b-benda { border-color: #4fc3f7; background: #e1f5fe; }
    .basket-icon { font-size: 44px; }
    .basket-label { font-size: 18px; font-weight: 700; color: #263238; }

    /* ─── GAME 5: BUKU STIKER ANAKKU ─── */
    .stickers-shelf {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 18px;
      padding: 10px 0;
    }
    .sticker-item {
      background: #ffffff;
      border-radius: 24px;
      padding: 16px 10px;
      text-align: center;
      border: 3px dashed #d1c4e9;
      box-shadow: 0 4px 10px rgba(0,0,0,0.06);
      transition: transform 0.2s;
    }
    .sticker-item.unlocked {
      border: 3px solid #ffca28;
      background: linear-gradient(145deg, #ffffff, #fffde7);
      animation: popSticker 0.5s ease;
    }
    .sticker-item.locked {
      opacity: 0.5;
      filter: grayscale(1);
    }
    .sticker-icon { font-size: 48px; margin-bottom: 6px; }
    .sticker-name { font-size: 13px; font-weight: 700; color: #4527a0; line-height: 1.2; }

    /* ─── MODAL ORANG TUA / ADMIN ─── */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .modal-overlay.active { display: flex; }

    .modal-card {
      background: #ffffff;
      border-radius: 32px;
      max-width: 650px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      padding: 28px 24px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.25);
      position: relative;
    }
    .modal-close {
      position: absolute;
      top: 20px;
      right: 20px;
      background: #f5f5f5;
      border: none;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      font-size: 16px;
      cursor: pointer;
    }
    .modal-title {
      font-size: 24px;
      font-weight: 700;
      color: #37474f;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    /* Tab Admin */
    .admin-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 20px;
      border-bottom: 2px solid #eeeeee;
      padding-bottom: 10px;
    }
    .tab-btn {
      padding: 8px 16px;
      border-radius: 18px;
      border: none;
      background: #f5f5f5;
      color: #616161;
      font-family: var(--font-bubble);
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
    }
    .tab-btn.active {
      background: #e91e63;
      color: #ffffff;
    }

    .voice-slot-card {
      background: #fafafa;
      border: 1px solid #e0e0e0;
      border-radius: 16px;
      padding: 12px 14px;
      transition: all 0.2s ease;
    }
    .voice-slot-card:hover {
      border-color: #b0bec5;
      background: #ffffff;
    }

    .voice-gender-card {
      transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .voice-gender-card.active {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    .form-group {
      margin-bottom: 14px;
    }
    .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 700;
      color: #455a64;
      margin-bottom: 6px;
    }
    .form-control {
      width: 100%;
      padding: 10px 14px;
      border-radius: 14px;
      border: 2px solid #cfd8dc;
      font-family: var(--font-bubble);
      font-size: 15px;
      outline: none;
    }
    .form-control:focus { border-color: #e91e63; }

    .btn-save {
      width: 100%;
      padding: 12px;
      border-radius: 20px;
      border: none;
      background: linear-gradient(135deg, #e91e63, #c2185b);
      color: #ffffff;
      font-family: var(--font-bubble);
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
    }

    /* PIN Modal */
    .pin-display {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin: 20px 0;
    }
    .pin-dot {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 3px solid #ff4081;
      background: transparent;
      transition: all 0.2s;
    }
    .pin-dot.filled {
      background: #ff4081;
      transform: scale(1.15);
    }
    .numpad {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      max-width: 280px;
      margin: 0 auto;
    }
    .num-btn {
      aspect-ratio: 1;
      border-radius: 50%;
      border: 2px solid #e0e0e0;
      background: #fafafa;
      font-size: 24px;
      font-weight: 700;
      color: #37474f;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
    }
    .num-btn:active {
      background: #ff80ab;
      color: #ffffff;
      transform: scale(0.92);
    }

    /* ─── TOAST / BANNER PUJIAN ─── */
    .cheer-banner {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0);
      background: rgba(255, 255, 255, 0.98);
      border: 5px solid #ffb300;
      border-radius: 36px;
      padding: 28px 36px;
      text-align: center;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      z-index: 2000;
      pointer-events: none;
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .cheer-banner.show {
      transform: translate(-50%, -50%) scale(1);
    }
    .cheer-emoji { font-size: 72px; animation: bounceEmoji 0.6s infinite alternate; }
    @keyframes bounceEmoji { from { transform: translateY(0); } to { transform: translateY(-12px); } }
    .cheer-text { font-size: 28px; font-weight: 800; color: #e65100; margin-top: 8px; }
    .cheer-stars { font-size: 32px; color: #ffb300; margin-top: 6px; }

    /* ═════════════════════════════════════════════════════════════════
       GAYA BARU: PETUALANGAN MENARA BINTANG & 5 MINI GAMES TAMBAHAN
       ═════════════════════════════════════════════════════════════════ */
    /* Hero Banner Petualangan di Home */
    .adventure-hero-banner {
      background: linear-gradient(135deg, #ff6f00, #ff8f00 40%, #ffd54f 100%);
      border-radius: 32px;
      padding: 22px 24px;
      margin-bottom: 24px;
      box-shadow: 0 12px 28px rgba(255, 111, 0, 0.28);
      border: 4px solid #ffffff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform 0.25s, box-shadow 0.25s;
    }
    .adventure-hero-banner:hover {
      transform: translateY(-4px) scale(1.01);
      box-shadow: 0 16px 36px rgba(255, 111, 0, 0.35);
    }
    .adventure-hero-info {
      position: relative;
      z-index: 2;
    }
    .adventure-hero-tag {
      display: inline-block;
      background: rgba(255,255,255,0.95);
      color: #e65100;
      font-size: 12px;
      font-weight: 800;
      padding: 4px 14px;
      border-radius: 20px;
      margin-bottom: 8px;
      letter-spacing: 0.5px;
    }
    .adventure-hero-title {
      font-size: 26px;
      font-weight: 800;
      color: #ffffff;
      text-shadow: 0 2px 4px rgba(0,0,0,0.25);
      line-height: 1.2;
      margin-bottom: 6px;
    }
    .adventure-hero-desc {
      font-size: 14px;
      color: #fff9c4;
      font-weight: 600;
      max-width: 480px;
    }
    .adventure-hero-btn {
      background: #ffffff;
      color: #e65100;
      border: none;
      padding: 12px 22px;
      border-radius: 22px;
      font-size: 16px;
      font-weight: 800;
      box-shadow: 0 6px 14px rgba(0,0,0,0.15);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
      transition: transform 0.2s;
    }
    .adventure-hero-btn:hover { transform: scale(1.08); }
    .adventure-hero-art {
      font-size: 72px;
      line-height: 1;
      animation: catFloat 2s infinite ease-in-out alternate;
    }
    @keyframes catFloat {
      from { transform: translateY(0) rotate(-3deg); }
      to { transform: translateY(-10px) rotate(3deg); }
    }

    /* Screen Petualangan Menara Bintang — 30 Stasiun Winding Realm */
    .adventure-realm-card {
      background: #ffffff;
      border-radius: 36px;
      padding: 16px;
      border: 4px solid #ffffff;
      box-shadow: var(--shadow-bubble);
      margin-bottom: 24px;
      position: relative;
    }
    
    /* 3D Character Selector Cards */
    .adventure-char-selector {
      background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
      border: 3px solid #d1c4e9;
      border-radius: 26px;
      padding: 12px 14px;
      margin-bottom: 14px;
      box-shadow: inset 0 2px 6px rgba(255,255,255,0.8);
    }
    .char-3d-row {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding: 6px 4px 12px;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      justify-content: flex-start;
    }
    @media (min-width: 820px) {
      .char-3d-row {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
      }
    }
    .char-3d-card {
      scroll-snap-align: start;
      flex: 0 0 84px;
    }
    .char-3d-card {
      background: linear-gradient(180deg, #ffffff 0%, #f3e5f5 100%);
      border: 3px solid #d1c4e9;
      border-bottom: 7px solid #b39ddb;
      border-radius: 22px;
      padding: 8px 10px 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
      width: 86px;
      box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.9),
        inset 0 -3px 6px rgba(126,87,194,0.12),
        0 6px 0 rgba(126,87,194,0.15),
        0 10px 20px rgba(0,0,0,0.12);
      position: relative;
    }
    .char-3d-card:hover {
      transform: translateY(-4px) scale(1.05);
      border-color: #9c27b0;
      border-bottom-color: #7b1fa2;
      box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.9),
        inset 0 -3px 6px rgba(156,39,176,0.15),
        0 10px 0 rgba(123,31,162,0.18),
        0 16px 28px rgba(156,39,176,0.28);
    }
    .char-3d-card:active {
      transform: translateY(3px) scale(0.97);
      border-bottom-width: 2px;
      box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.12),
        0 2px 0 rgba(126,87,194,0.15),
        0 4px 10px rgba(0,0,0,0.1);
    }
    .char-3d-card.active {
      background: linear-gradient(180deg, #9575cd 0%, #7e57c2 60%, #6a3ec0 100%);
      border-color: #ffd700;
      border-bottom: 7px solid #c89600;
      box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.45),
        inset 0 -4px 8px rgba(0,0,0,0.18),
        0 6px 0 rgba(150,110,0,0.35),
        0 12px 28px rgba(126,87,194,0.5),
        0 0 20px rgba(255,215,0,0.35);
      transform: translateY(-4px) scale(1.08);
    }
    .char-3d-photo-box {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      overflow: hidden;
      border: 3px solid #ffffff;
      background: radial-gradient(circle at 35% 30%, #fffde7 0%, #fff8e1 55%, #ffecb3 100%);
      box-shadow:
        inset 0 -4px 8px rgba(0,0,0,0.12),
        inset 0 3px 5px rgba(255,255,255,0.8),
        0 5px 0 rgba(0,0,0,0.08),
        0 8px 14px rgba(0,0,0,0.18);
      margin-bottom: 5px;
      position: relative;
      transition: transform 0.28s;
    }
    .char-3d-photo-box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .char-3d-card.active .char-3d-photo-box {
      border-color: #ffd700;
      box-shadow: 0 0 16px rgba(255, 215, 0, 0.8), 0 4px 10px rgba(0,0,0,0.25);
      animation: avatar3DBounce 1.6s infinite ease-in-out;
    }
    @keyframes avatar3DBounce {
      0%, 100% { transform: translateY(0) scale(1); }
      50% { transform: translateY(-5px) scale(1.04); }
    }
    .char-3d-label {
      font-size: 11px;
      font-weight: 800;
      color: #4a148c;
      text-align: center;
      line-height: 1.2;
    }
    .char-3d-card.active .char-3d-label {
      color: #ffffff;
      text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }
    .char-3d-tag-badge {
      position: absolute;
      top: -6px;
      right: -4px;
      background: #ffd700;
      color: #5d4037;
      font-size: 9px;
      font-weight: 900;
      padding: 1px 5px;
      border-radius: 8px;
      border: 1px solid #ffffff;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    /* Overall Adventure Progress Header */
    .adv-progress-summary {
      background: linear-gradient(135deg, #fffde7, #fff8e1);
      border: 2px solid #ffe082;
      border-radius: 20px;
      padding: 12px 18px;
      margin-bottom: 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
    }
    .adv-progress-bar-wrap {
      flex: 1;
      min-width: 220px;
    }
    .adv-progress-track {
      width: 100%;
      height: 16px;
      background: #e0e0e0;
      border-radius: 12px;
      overflow: hidden;
      border: 2px solid #ffffff;
      box-shadow: inset 0 2px 5px rgba(0,0,0,0.15);
      position: relative;
    }
    .adv-progress-fill {
      height: 100%;
      width: 10%;
      background: linear-gradient(90deg, #ff9800, #ffeb3b, #00e676);
      border-radius: 12px;
      transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
      box-shadow: 0 0 10px rgba(255, 235, 59, 0.8);
    }

    /* Quick Jump Anchor Buttons */
    .adv-quick-jumps {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 14px;
    }
    .adv-jump-btn {
      flex: 1;
      min-width: 90px;
      padding: 8px 10px;
      border-radius: 16px;
      font-size: 11px;
      font-weight: 800;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      color: #ffffff;
      transition: all 0.2s;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    .adv-jump-btn:hover { transform: translateY(-2px); }
    .jump-z1 { background: linear-gradient(135deg, #43a047, #66bb6a); }
    .jump-z2 { background: linear-gradient(135deg, #00acc1, #26c6da); }
    .jump-z3 { background: linear-gradient(135deg, #e91e63, #ec407a); }
    .jump-z4 { background: linear-gradient(135deg, #7e57c2, #ab47bc); }
    .jump-z5 { background: linear-gradient(135deg, #ff9800, #ffb74d); }

    /* The Grand Winding Realm World Map Container */
    .adventure-world-map {
      position: relative;
      width: 100%;
      border-radius: 30px;
      overflow: hidden;
      border: 4px solid #ffffff;
      box-shadow: 0 12px 30px rgba(0,0,0,0.12);
      background: #b3e5fc;
      display: flex;
      flex-direction: column;
    }

    /* Jalur Garis Putus-Putus Menghubungkan Stasiun Peta (SVG Trail) */
    #adventurePathSvg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 3;
      overflow: visible;
    }
    #adventurePathSvg path.trail-glow {
      stroke: rgba(255, 255, 255, 0.95);
      stroke-width: 12;
      stroke-linecap: round;
      stroke-linejoin: round;
      filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
    }
    #adventurePathSvg path.trail-dash {
      stroke: #ff9800;
      stroke-width: 6;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 14, 12;
      animation: adventureDash 30s linear infinite;
    }
    @keyframes adventureDash {
      to {
        stroke-dashoffset: -1000;
      }
    }

    /* 4 Themed Biome Zones */
    .biome-zone {
      position: relative;
      padding: 24px 14px 34px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
    }
    .biome-zone-1 {
      background: linear-gradient(180deg, #c8e6c9 0%, #a5d6a7 40%, #81c784 100%);
      border-bottom: 5px dashed #4caf50;
    }
    .biome-zone-2 {
      background: linear-gradient(180deg, #b2ebf2 0%, #80deea 40%, #4dd0e1 100%);
      border-bottom: 5px dashed #00acc1;
    }
    .biome-zone-3 {
      background: linear-gradient(180deg, #f8bbd0 0%, #f48fb1 40%, #f06292 100%);
      border-bottom: 5px dashed #d81b60;
    }
    .biome-zone-4 {
      background: linear-gradient(180deg, #d1c4e9 0%, #b39ddb 30%, #9575cd 100%);
      border-bottom: 5px dashed #7e57c2;
    }
    .biome-zone-5 {
      background: linear-gradient(180deg, #ffe0b2 0%, #ffcc80 40%, #ffb74d 100%);
    }

    /* Biome Header Banner */
    .biome-banner {
      background: rgba(255, 255, 255, 0.95);
      border-radius: 20px;
      padding: 8px 18px;
      font-size: 13px;
      font-weight: 800;
      box-shadow: 0 6px 16px rgba(0,0,0,0.12);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 3px solid #ffffff;
      margin-bottom: 6px;
      z-index: 5;
    }
    .biome-zone-1 .biome-banner { color: #2e7d32; border-color: #a5d6a7; }
    .biome-zone-2 .biome-banner { color: #006064; border-color: #80deea; }
    .biome-zone-3 .biome-banner { color: #880e4f; border-color: #f48fb1; }
    .biome-zone-4 .biome-banner { color: #4a148c; border-color: #b39ddb; }
    .biome-zone-5 .biome-banner { color: #e65100; border-color: #ffcc80; }

    /* Grand Menara Bintang Citadel at Peak */
    .peak-citadel-card {
      background: radial-gradient(circle at 50% 30%, #fff9c4, #ffd54f 60%, #ffb300 100%);
      border: 4px solid #ffffff;
      border-radius: 26px;
      padding: 16px 20px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(255, 179, 0, 0.5), 0 0 35px rgba(255, 235, 59, 0.6);
      margin-top: 10px;
      position: relative;
      animation: citadelGlow 2.4s infinite alternate ease-in-out;
      width: 92%;
      max-width: 360px;
      z-index: 5;
    }
    @keyframes citadelGlow {
      0% { transform: scale(1); box-shadow: 0 10px 30px rgba(255, 179, 0, 0.5), 0 0 20px rgba(255, 235, 59, 0.4); }
      100% { transform: scale(1.02); box-shadow: 0 14px 36px rgba(255, 179, 0, 0.7), 0 0 45px rgba(255, 235, 59, 0.9); }
    }
    .peak-citadel-crown {
      font-size: 42px;
      line-height: 1;
      margin-bottom: 4px;
      animation: crownBob 1.5s infinite ease-in-out alternate;
    }
    @keyframes crownBob {
      from { transform: translateY(0) rotate(-3deg); }
      to { transform: translateY(-7px) rotate(3deg); }
    }
    .peak-citadel-title {
      font-size: 16px;
      font-weight: 900;
      color: #e65100;
      text-shadow: 0 1px 2px #fff9c4;
      margin-bottom: 4px;
    }
    .peak-citadel-sub {
      font-size: 12px;
      font-weight: 700;
      color: #6d4c41;
    }

    /* Stepping Stone Node (1 to 18) */
    .adv-station-node {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      position: relative;
      z-index: 10;
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
      width: 100%;
      max-width: 240px;
    }
    .adv-station-node:hover {
      transform: scale(1.08);
      z-index: 20;
    }
    .adv-station-node:active {
      transform: scale(0.96);
    }
    .station-align-left {
      align-self: flex-start;
      margin-left: 8%;
    }
    .station-align-right {
      align-self: flex-end;
      margin-right: 8%;
    }
    .station-align-center {
      align-self: center;
    }

    /* 3D Stepping Stone Button Pedestal */
    .stone-pedestal {
      width: 74px;
      height: 74px;
      border-radius: 50%;
      background: #ffffff;
      border: 5px solid #ff4081;
      box-shadow: 0 8px 0 #c2185b, 0 14px 20px rgba(0,0,0,0.22);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      transition: all 0.2s;
    }
    .adv-station-node:active .stone-pedestal {
      transform: translateY(4px);
      box-shadow: 0 4px 0 #c2185b, 0 8px 12px rgba(0,0,0,0.22);
    }
    .biome-zone-1 .stone-pedestal { border-color: #43a047; box-shadow: 0 8px 0 #2e7d32, 0 14px 20px rgba(0,0,0,0.2); }
    .biome-zone-2 .stone-pedestal { border-color: #00acc1; box-shadow: 0 8px 0 #00838f, 0 14px 20px rgba(0,0,0,0.2); }
    .biome-zone-3 .stone-pedestal { border-color: #e91e63; box-shadow: 0 8px 0 #ad1457, 0 14px 20px rgba(0,0,0,0.2); }
    .biome-zone-4 .stone-pedestal { border-color: #7e57c2; box-shadow: 0 8px 0 #512da8, 0 14px 20px rgba(0,0,0,0.25); }
    .biome-zone-5 .stone-pedestal { border-color: #ff9800; box-shadow: 0 8px 0 #e65100, 0 14px 20px rgba(0,0,0,0.18); }
    .adv-station-node.station-18 .stone-pedestal {
      width: 88px;
      height: 88px;
      border-color: #ffd700;
      background: radial-gradient(circle at 35% 30%, #ffffff, #fff9c4 70%, #ffecb3 100%);
      box-shadow: 0 10px 0 #f57f17, 0 16px 26px rgba(245, 127, 23, 0.45);
    }

    .stone-number-badge {
      position: absolute;
      top: -8px;
      left: -8px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #ffd700;
      color: #3e2723;
      border: 2px solid #ffffff;
      font-size: 13px;
      font-weight: 900;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 3px 6px rgba(0,0,0,0.25);
    }
    .stone-emoji {
      font-size: 32px;
      line-height: 1;
    }
    .adv-station-node.station-18 .stone-emoji {
      font-size: 40px;
    }

    /* Pulsing Golden Aura for Current/Next Station */
    .stone-aura-pulse {
      position: absolute;
      inset: -10px;
      border-radius: 50%;
      border: 4px solid #ffd700;
      opacity: 0.8;
      animation: stoneAura 1.8s infinite ease-out;
      pointer-events: none;
    }
    @keyframes stoneAura {
      0% { transform: scale(0.9); opacity: 0.9; }
      100% { transform: scale(1.35); opacity: 0; }
    }

    /* Stepping Stone Info Card (Title + Stars) */
    .stone-card-info {
      background: rgba(255, 255, 255, 0.96);
      border-radius: 16px;
      padding: 5px 12px;
      margin-top: 8px;
      text-align: center;
      box-shadow: 0 4px 12px rgba(0,0,0,0.14);
      border: 2px solid #ffffff;
      white-space: nowrap;
      pointer-events: none;
    }
    .stone-card-title {
      font-size: 12px;
      font-weight: 800;
      color: #263238;
      line-height: 1.2;
    }
    .stone-card-stars {
      font-size: 11px;
      margin-top: 2px;
      color: #ffb300;
      letter-spacing: 1px;
    }

    /* 3D Moving Character Token on World Map */
    .adv-3d-token {
      position: absolute;
      transform: translate(-50%, -85%);
      z-index: 50;
      pointer-events: none;
      transition: left 1.1s cubic-bezier(0.34, 1.56, 0.64, 1), top 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .token-3d-orb {
      width: 76px;
      height: 88px;
      border-radius: 22px;
      background: radial-gradient(circle at 35% 28%, #ffffff 0%, #fff8e1 40%, #ffecb3 75%, #ffd54f 100%);
      border: 4px solid #ffffff;
      box-shadow:
        inset 0 -6px 12px rgba(255,143,0,0.35),
        inset 0 4px 8px rgba(255,255,255,0.9),
        0 6px 0 rgba(200,130,0,0.3),
        0 12px 28px rgba(255,143,0,0.5),
        0 0 24px rgba(255,215,0,0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
      animation: tokenFloat 2.4s infinite ease-in-out;
    }
    .token-3d-orb::after {
      content: '';
      position: absolute;
      top: 6%;
      left: 12%;
      width: 38%;
      height: 26%;
      background: radial-gradient(ellipse, rgba(255,255,255,0.85) 0%, transparent 70%);
      border-radius: 50%;
      transform: rotate(-18deg);
      pointer-events: none;
    }
    .token-3d-orb img {
      width: 100%;
      height: 100%;
      border-radius: 16px;
      object-fit: cover;
      object-position: center 15%;
    }
    @keyframes tokenFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-7px); }
    }
    .token-3d-orb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 16px;
      display: block;
    }
    @keyframes token3DHop {
      0% { transform: translateY(0) scale(1, 1); }
      50% { transform: translateY(-16px) scale(0.96, 1.08); }
      100% { transform: translateY(0) scale(1.05, 0.95); }
    }
    .token-3d-shadow {
      width: 36px;
      height: 10px;
      background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 70%);
      border-radius: 50%;
      animation: tokenShadowPulse 0.9s infinite alternate ease-in-out;
      margin-top: -5px;
    }
    @keyframes tokenShadowPulse {
      0% { transform: scale(1); opacity: 0.5; }
      100% { transform: scale(0.55); opacity: 0.18; }
    }
    .token-3d-tag {
      background: linear-gradient(135deg, #e91e63, #c2185b);
      color: #ffffff;
      font-size: 11px;
      font-weight: 900;
      padding: 3px 10px;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(194, 24, 91, 0.45);
      margin-top: 3px;
      white-space: nowrap;
      border: 2px solid #ffffff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    /* Animated Footstep Markers between Stations */
    .footstep-trail {
      display: flex;
      gap: 8px;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.85);
      text-shadow: 0 1px 3px rgba(0,0,0,0.2);
      animation: stepGlow 1.8s infinite alternate ease-in-out;
    }
    @keyframes stepGlow {
      from { opacity: 0.4; transform: scale(0.92); }
      to { opacity: 0.95; transform: scale(1.08); }
    }

    /* Bilah Indikator 3 Bintang & Kesulitan */
    .game-assist-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #f1f8e9;
      border: 2px solid #dcedc8;
      border-radius: 20px;
      padding: 10px 18px;
      margin-bottom: 20px;
      flex-wrap: wrap;
      gap: 10px;
    }
    .attempt-stars-box {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      font-weight: 700;
      color: #33691e;
    }
    .attempt-stars-box .star-icon {
      font-size: 20px;
      color: #ffb300;
      transition: transform 0.3s, color 0.3s;
    }
    .attempt-stars-box .star-icon.dimmed {
      color: #cfd8dc;
      transform: scale(0.85);
    }
    .difficulty-chips {
      display: inline-flex;
      gap: 6px;
    }
    .diff-chip {
      background: #ffffff;
      border: 2px solid #c5e1a5;
      color: #558b2f;
      padding: 5px 12px;
      border-radius: 14px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
    }
    .diff-chip.active {
      background: #7cb342;
      border-color: #558b2f;
      color: #ffffff;
      box-shadow: 0 4px 8px rgba(85, 139, 47, 0.3);
    }

    /* Animasi Umpan Balik Positif: Wobble & Fade Out */
    @keyframes gentleWobble {
      0%, 100% { transform: translateX(0); }
      20%, 60% { transform: translateX(-6px) rotate(-2deg); }
      40%, 80% { transform: translateX(6px) rotate(2deg); }
    }
    .wobble-gentle {
      animation: gentleWobble 0.5s ease-in-out;
    }
    .opt-fade-out {
      opacity: 0.25 !important;
      transform: scale(0.92) !important;
      pointer-events: none !important;
      filter: grayscale(0.8) !important;
      transition: opacity 0.4s, transform 0.4s;
    }

    /* ── GAME TAMBAHAN 1: LENGKAPI POLA BERULANG ── */
    .pattern-stage {
      max-width: 720px;
      margin: 0 auto;
      text-align: center;
    }
    .pattern-track-box {
      background: #ffffff;
      border: 4px solid #80deea;
      border-radius: 30px;
      padding: 24px 16px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-bubble);
    }
    .pattern-track {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 14px;
    }
    .pattern-slot {
      width: 76px;
      height: 76px;
      border-radius: 20px;
      background: #e0f7fa;
      border: 3px solid #b2ebf2;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 44px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    }
    .pattern-slot.missing {
      background: #fff9c4;
      border: 3px dashed #fbc02d;
      color: #f57f17;
      font-size: 38px;
      font-weight: 800;
      animation: popSlot 1.5s infinite ease-in-out alternate;
    }
    @keyframes popSlot {
      from { transform: scale(1); border-color: #fbc02d; }
      to { transform: scale(1.08); border-color: #e65100; }
    }
    .pattern-choices-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 16px;
      max-width: 600px;
      margin: 0 auto;
    }
    .pattern-choice-btn {
      background: #ffffff;
      border: 3px solid #e0e0e0;
      border-radius: 24px;
      padding: 16px;
      cursor: pointer;
      box-shadow: var(--shadow-bubble);
      transition: all 0.2s;
      text-align: center;
    }
    .pattern-choice-btn:hover {
      border-color: #00bcd4;
      transform: translateY(-4px);
    }
    .pattern-choice-emoji { font-size: 52px; margin-bottom: 6px; }
    .pattern-choice-label { font-size: 16px; font-weight: 700; color: #006064; }

    /* ── GAME TAMBAHAN 2: BAYANGAN MISTERIUS ── */
    .shadow-stage {
      max-width: 680px;
      margin: 0 auto;
      text-align: center;
    }
    .shadow-target-box {
      background: linear-gradient(135deg, #ede7f6, #d1c4e9);
      border: 4px solid #b388ff;
      border-radius: 30px;
      padding: 24px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-bubble);
      position: relative;
    }
    .shadow-mystery-silhouette {
      font-size: 96px;
      filter: brightness(0) contrast(300%) drop-shadow(0 10px 18px rgba(0,0,0,0.35));
      margin-bottom: 8px;
      display: inline-block;
      animation: shadowPulse 2s infinite ease-in-out alternate;
    }
    @keyframes shadowPulse {
      from { transform: scale(1); }
      to { transform: scale(1.06); }
    }
    .shadow-choices-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 16px;
    }

    /* ── GAME TAMBAHAN 3: SIAPA YANG BERBEDA (ODD ONE OUT) ── */
    .odd-stage {
      max-width: 720px;
      margin: 0 auto;
      text-align: center;
    }
    .odd-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 18px;
      margin-top: 20px;
    }
    @media (max-width: 500px) {
      .odd-grid { grid-template-columns: 1fr; }
    }
    .odd-card-btn {
      background: #ffffff;
      border: 4px solid #e0e0e0;
      border-radius: 28px;
      padding: 20px;
      cursor: pointer;
      box-shadow: var(--shadow-bubble);
      display: flex;
      align-items: center;
      gap: 16px;
      transition: all 0.2s;
    }
    .odd-card-btn:hover {
      border-color: #ff9800;
      transform: translateY(-4px);
    }
    .odd-card-icon {
      font-size: 52px;
      width: 70px;
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fff3e0;
      border-radius: 20px;
    }
    .odd-card-info {
      text-align: left;
    }
    .odd-card-name { font-size: 20px; font-weight: 700; color: #37474f; }
    .odd-card-cat { font-size: 13px; font-weight: 600; color: #ff9800; }

    /* ── GAME TAMBAHAN 4: HITUNG CEPAT BENDA NYATA ── */
    .count-stage {
      max-width: 680px;
      margin: 0 auto;
      text-align: center;
    }
    .count-arena {
      background: linear-gradient(180deg, #e1f5fe 0%, #fff9c4 100%);
      border: 4px solid #4fc3f7;
      border-radius: 30px;
      min-height: 180px;
      padding: 24px 20px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-bubble);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 18px;
      flex-wrap: wrap;
    }
    .count-bubble-item {
      font-size: 56px;
      filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
      animation: countBob 2s infinite ease-in-out alternate;
    }
    @keyframes countBob {
      from { transform: translateY(0); }
      to { transform: translateY(-12px); }
    }
    .count-keypad {
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .count-num-btn {
      width: 68px;
      height: 78px;
      border-radius: 22px;
      background: #ffffff;
      border: 3px solid #ffb300;
      box-shadow: var(--shadow-bubble);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .count-num-btn:hover {
      background: #fff8e1;
      transform: translateY(-4px) scale(1.05);
      border-color: #ff8f00;
    }
    .count-num-val { font-size: 28px; font-weight: 800; color: #e65100; line-height: 1; }
    .count-num-dots { font-size: 11px; color: #ff8f00; margin-top: 4px; letter-spacing: 1px; }

    /* ── GAME TAMBAHAN 5: JEJAK JALUR & LABIRIN MAKANAN ── */
    .trace-stage {
      max-width: 720px;
      margin: 0 auto;
      text-align: center;
    }
    .trace-arena {
      background: #ffffff;
      border: 4px solid #a5d6a7;
      border-radius: 30px;
      padding: 24px 18px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-bubble);
    }
    .trace-layout {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 14px;
    }
    .trace-animal-card {
      background: #e8f5e9;
      border: 3px solid #81c784;
      border-radius: 24px;
      padding: 16px;
      width: 140px;
      text-align: center;
    }
    .trace-animal-emoji { font-size: 54px; margin-bottom: 6px; }
    .trace-animal-title { font-size: 16px; font-weight: 700; color: #2e7d32; }
    .trace-paths-col {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .trace-path-btn {
      background: #f1f8e9;
      border: 3px dashed #7cb342;
      border-radius: 18px;
      padding: 12px 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 14px;
      font-weight: 700;
      color: #33691e;
      transition: all 0.2s;
    }
    .trace-path-btn:hover {
      background: #dcedc8;
      border-style: solid;
      transform: scale(1.02);
    }
    .trace-path-btn.selected-correct {
      background: #c8e6c9;
      border: 3px solid #2e7d32;
      color: #1b5e20;
    }
    .trace-food-options {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 140px;
    }
    .trace-food-btn {
      background: #fffde7;
      border: 3px solid #fff176;
      border-radius: 20px;
      padding: 10px;
      cursor: pointer;
      text-align: center;
      transition: all 0.2s;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    .trace-food-btn:hover {
      border-color: #fbc02d;
      transform: scale(1.06);
    }
    .trace-food-emoji { font-size: 38px; }
    .trace-food-label { font-size: 12px; font-weight: 700; color: #f57f17; margin-top: 2px; }

    /* ─── PANGKAT PETUALANG & PROGRESS BAR ─── */
    .adventurer-rank-pill {
      background: linear-gradient(135deg, #fff3e0, #ffe082);
      border: 2px solid #ffb300;
      border-radius: 20px;
      padding: 5px 12px;
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      box-shadow: 0 3px 8px rgba(255, 179, 0, 0.25);
      transition: transform 0.2s;
    }
    .adventurer-rank-pill:hover { transform: scale(1.04); }
    .rank-pill-badge { font-size: 18px; }
    .rank-pill-title { font-size: 12px; font-weight: 800; color: #e65100; white-space: nowrap; }
    .rank-pill-bar-box {
      width: 48px;
      height: 7px;
      background: rgba(255,255,255,0.7);
      border-radius: 4px;
      overflow: hidden;
    }
    .rank-pill-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #ff9800, #e91e63);
      border-radius: 4px;
      width: 0%;
      transition: width 0.4s ease;
    }

    .adventurer-progress-card {
      background: linear-gradient(135deg, #ffffff, #fff8e1);
      border: 3px solid #ffe082;
      border-radius: 24px;
      padding: 16px 20px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-bubble);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
    }
    .adv-info-col { display: flex; align-items: center; gap: 14px; }
    .adv-icon-large {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      background: linear-gradient(135deg, #ffd54f, #ffb300);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      box-shadow: 0 4px 12px rgba(255, 179, 0, 0.35);
    }
    .adv-text-title { font-size: 17px; font-weight: 800; color: #e65100; }
    .adv-text-sub { font-size: 12px; color: #795548; font-weight: 600; margin-top: 2px; }
    .adv-bar-col { flex: 1; min-width: 180px; max-width: 320px; }
    .adv-bar-header { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; color: #f57f17; margin-bottom: 5px; }
    .adv-bar-track {
      height: 12px;
      background: #eee;
      border-radius: 6px;
      overflow: hidden;
      border: 1px solid #ffd54f;
    }
    .adv-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #ffb300, #e91e63);
      width: 15%;
      border-radius: 6px;
      transition: width 0.5s ease;
    }

    /* ─── FILTER KATEGORI GAME (HOME) ─── */
    .game-filter-bar {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 8px;
      margin-bottom: 18px;
      scrollbar-width: none;
    }
    .game-filter-bar::-webkit-scrollbar { display: none; }
    .filter-pill {
      background: #ffffff;
      border: 2px solid #e0e0e0;
      color: #616161;
      padding: 7px 16px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.2s;
    }
    .filter-pill:hover { border-color: #ff80ab; color: #c2185b; }
    .filter-pill.active {
      background: linear-gradient(135deg, #ff4081, #f50057);
      border-color: #f50057;
      color: #ffffff;
      box-shadow: 0 4px 10px rgba(245, 0, 87, 0.3);
    }

    /* ─── GAME 10: TAMAN HIJAIYAH CERIA ─── */
    .hijaiyah-stage { max-width: 680px; margin: 0 auto; text-align: center; }
    .hijaiyah-card-box {
      background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
      border: 4px solid #43a047;
      border-radius: 30px;
      padding: 24px;
      box-shadow: var(--shadow-bubble);
      margin-bottom: 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }
    .hijaiyah-arabic-char {
      font-family: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif;
      font-size: 80px;
      line-height: 1.1;
      color: #1b5e20;
      text-shadow: 0 3px 10px rgba(46, 125, 50, 0.2);
    }
    .hijaiyah-latin-name { font-size: 24px; font-weight: 800; color: #2e7d32; }
    .hijaiyah-options-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 16px;
      max-width: 520px;
      margin: 0 auto;
    }
    .hijaiyah-opt-btn {
      background: #ffffff;
      border: 3px solid #81c784;
      border-radius: 24px;
      padding: 16px;
      font-family: 'Amiri', serif;
      font-size: 50px;
      color: #1b5e20;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    .hijaiyah-opt-btn:hover { border-color: #2e7d32; transform: scale(1.05); }

    /* ─── GAME 11: BALON TERBANG HIJAIYAH ─── */
    .balloon-sky-arena {
      height: 380px;
      background: linear-gradient(180deg, #bbdefb, #e3f2fd 60%, #c8e6c9 100%);
      border-radius: 30px;
      border: 4px solid #64b5f6;
      position: relative;
      overflow: hidden;
      margin-bottom: 20px;
      box-shadow: var(--shadow-bubble);
    }
    .flying-balloon {
      position: absolute;
      width: 84px;
      height: 104px;
      border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      font-family: 'Amiri', serif;
      font-size: 42px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: inset -6px -6px 12px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.12);
      transition: transform 0.1s;
      animation: floatUp 8s linear infinite;
    }
    .flying-balloon::after {
      content: '';
      position: absolute;
      bottom: -10px;
      width: 2px;
      height: 18px;
      background: rgba(0,0,0,0.25);
    }
    @keyframes floatUp {
      0% { transform: translateY(390px) rotate(-3deg); }
      50% { transform: translateY(180px) rotate(4deg); }
      100% { transform: translateY(-120px) rotate(-3deg); }
    }

    /* ─── GAME 12: KENAL WARNA & CAMPUR CAT AJAIB (LAB REALISTIS) ─── */
    .color-stage { max-width: 680px; margin: 0 auto; text-align: center; }
    .color-mixing-bench {
      background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 100%);
      border: 3px solid #f8bbd0;
      border-radius: 32px;
      padding: 20px 16px;
      margin: 0 auto 20px;
      box-shadow: 0 10px 30px rgba(233, 30, 99, 0.08);
      position: relative;
      overflow: hidden;
    }
    .color-source-ingredients {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 24px;
      margin-bottom: 10px;
    }
    .source-paint-can {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
    }
    .paint-can-swatch {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      border: 4px solid #ffffff;
      box-shadow: 0 6px 16px rgba(0,0,0,0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      transition: all 0.3s;
    }
    .paint-can-label {
      font-size: 13px;
      font-weight: 800;
      color: #37474f;
      margin-top: 4px;
    }
    .paint-drip-stream {
      position: absolute;
      top: 56px;
      width: 6px;
      height: 0px;
      border-radius: 3px;
      opacity: 0;
      transition: height 0.4s ease, opacity 0.3s ease;
      z-index: 2;
    }
    .paint-drip-stream.flowing {
      height: 52px;
      opacity: 1;
      animation: paintFlowPulse 0.4s infinite alternate;
    }
    @keyframes paintFlowPulse {
      from { width: 5px; filter: brightness(1); }
      to { width: 8px; filter: brightness(1.2); }
    }
    .mix-plus-symbol {
      font-size: 26px;
      font-weight: 900;
      color: #ad1457;
      background: #fce4ec;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    }
    .magical-beaker-wrapper {
      position: relative;
      width: 140px;
      height: 146px;
      margin: 8px auto 12px;
    }
    .beaker-glass {
      width: 126px;
      height: 136px;
      margin: 0 auto;
      border: 4px solid rgba(255, 255, 255, 0.95);
      border-top: none;
      border-radius: 12px 12px 42px 42px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(240, 248, 255, 0.25));
      box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.8), 0 10px 25px rgba(0,0,0,0.12);
      backdrop-filter: blur(4px);
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }
    .beaker-graduations {
      position: absolute;
      left: 8px;
      top: 20px;
      bottom: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      pointer-events: none;
      z-index: 5;
    }
    .beaker-graduations span {
      width: 12px;
      height: 2px;
      background: rgba(255, 255, 255, 0.85);
      border-radius: 1px;
    }
    .beaker-liquid {
      width: 100%;
      height: 65%;
      border-radius: 0 0 38px 38px;
      background: #ffffff;
      position: relative;
      transition: height 0.6s ease, background 0.8s ease;
      overflow: hidden;
    }
    .liquid-surface-wave {
      position: absolute;
      top: -6px;
      left: -20%;
      width: 140%;
      height: 12px;
      background: rgba(255, 255, 255, 0.35);
      border-radius: 50%;
      animation: waveFloat 2s infinite ease-in-out;
    }
    @keyframes waveFloat {
      0%, 100% { transform: translateY(0) scaleY(1); }
      50% { transform: translateY(2px) scaleY(1.3); }
    }
    .liquid-swirl-glow {
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 0.5s;
    }
    .liquid-swirl-glow.swirling {
      opacity: 1;
      animation: liquidSwirlSpin 0.9s infinite linear;
    }
    @keyframes liquidSwirlSpin {
      0% { transform: rotate(0deg) scale(1); filter: blur(2px); }
      50% { transform: rotate(180deg) scale(1.15); filter: blur(4px); }
      100% { transform: rotate(360deg) scale(1); filter: blur(2px); }
    }
    .beaker-pedestal {
      width: 106px;
      height: 10px;
      background: #cfd8dc;
      border-radius: 6px;
      margin: 2px auto 0;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .mix-result-banner {
      font-size: 15px;
      font-weight: 800;
      color: #880e4f;
      background: rgba(255, 255, 255, 0.9);
      border-radius: 18px;
      padding: 8px 18px;
      display: inline-block;
      margin-top: 8px;
      box-shadow: 0 3px 10px rgba(0,0,0,0.05);
      transition: all 0.3s;
    }
    .color-jars-grid {
      display: flex;
      justify-content: center;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 24px;
    }
    .color-jar-btn {
      min-width: 74px;
      height: 74px;
      border-radius: 22px;
      border: 4px solid #ffffff;
      box-shadow: 0 6px 16px rgba(0,0,0,0.15);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
      padding: 4px 8px;
    }
    .color-jar-btn:hover {
      transform: scale(1.1) translateY(-3px);
      box-shadow: 0 10px 22px rgba(0,0,0,0.22);
    }

    /* ─── GAME 13: TEBAK EMOSI SI KUCING ─── */
    .emotion-stage { max-width: 640px; margin: 0 auto; text-align: center; }
    .emotion-story-box {
      background: #fff8e1;
      border: 3px solid #ffe082;
      border-radius: 28px;
      padding: 20px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-bubble);
    }
    .cat-emotion-avatar {
      font-size: 80px;
      animation: gentleBounce 2s infinite ease-in-out;
      margin-bottom: 10px;
    }
    @keyframes gentleBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }
    .emotion-options-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 14px;
    }
    .emotion-opt-btn {
      background: #ffffff;
      border: 3px solid #ffcc80;
      border-radius: 22px;
      padding: 14px;
      cursor: pointer;
      font-size: 15px;
      font-weight: 800;
      color: #e65100;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      transition: all 0.2s;
    }
    .emotion-opt-btn:hover { border-color: #f57c00; transform: scale(1.05); }

    /* ─── GAME 14: SUSUN BENTUK GEOMETRI ─── */
    .shapes-stage { max-width: 680px; margin: 0 auto; text-align: center; }
    .shapes-target-box {
      background: #ede7f6;
      border: 4px solid #b39ddb;
      border-radius: 30px;
      padding: 24px;
      margin-bottom: 24px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 18px;
      box-shadow: var(--shadow-bubble);
    }
    .shape-placeholder {
      width: 100px;
      height: 100px;
      border: 3px dashed #7e57c2;
      border-radius: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 52px;
      color: #9575cd;
      background: rgba(255,255,255,0.7);
    }
    .shapes-options-grid {
      display: flex;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    .shape-opt-btn {
      width: 90px;
      height: 90px;
      border-radius: 24px;
      background: #ffffff;
      border: 3px solid #d1c4e9;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 44px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,0,0,0.06);
      transition: transform 0.2s;
    }
    .shape-opt-btn:hover { border-color: #673ab7; transform: scale(1.08); }

    /* ─── GAME 15: BESAR VS KECIL & PERBANDINGAN ─── */
    .size-stage { max-width: 680px; margin: 0 auto; text-align: center; }
    .size-compare-row {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
      margin-bottom: 24px;
    }
    .size-card-btn {
      flex: 1;
      max-width: 220px;
      background: #ffffff;
      border: 4px solid #e0e0e0;
      border-radius: 28px;
      padding: 20px 14px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.06);
      transition: all 0.2s;
    }
    .size-card-btn:hover { border-color: #4caf50; transform: scale(1.04); }

    /* ─── GAME 16: SIANG, MALAM & CUACA ─── */
    .weather-stage { max-width: 680px; margin: 0 auto; text-align: center; }
    .weather-sky-card {
      height: 180px;
      border-radius: 28px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-bottom: 24px;
      box-shadow: var(--shadow-bubble);
      color: #fff;
      font-weight: 800;
    }

    /* ─── GAME 17: PIANO CILIK TANGGA NADA ─── */
    .music-stage { max-width: 720px; margin: 0 auto; text-align: center; }
    .xylophone-board {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      gap: 8px;
      padding: 24px 16px;
      background: #424242;
      border-radius: 28px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.25);
      margin-bottom: 24px;
    }
    .xylophone-key {
      flex: 1;
      max-width: 65px;
      border-radius: 14px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 16px 0;
      color: #ffffff;
      font-weight: 800;
      box-shadow: inset 0 3px 6px rgba(255,255,255,0.4), 0 6px 12px rgba(0,0,0,0.3);
      transition: transform 0.1s, filter 0.1s;
      user-select: none;
    }
    .xylophone-key:active { transform: translateY(6px); filter: brightness(1.2); }
    .xylophone-key.playing-note {
      transform: translateY(-8px) scale(1.08) !important;
      filter: brightness(1.35) !important;
      box-shadow: 0 0 25px #ffeb3b, 0 8px 18px rgba(0,0,0,0.35) !important;
      border: 3px solid #ffffff !important;
      z-index: 6;
    }
    .xylophone-key.target-pulse {
      animation: keyPulseGlow 1.2s infinite alternate ease-in-out;
      transform: scale(1.06);
      box-shadow: 0 0 20px #ffd700, 0 6px 16px rgba(0,0,0,0.3) !important;
      z-index: 5;
    }
    @keyframes keyPulseGlow {
      from { transform: scale(1.02); filter: brightness(1.05); }
      to { transform: scale(1.08); filter: brightness(1.3); }
    }

    /* ─── GAME 18: MANDI & RAWAT SAHABAT SATWA ─── */
    .pet-stage { max-width: 680px; margin: 0 auto; text-align: center; }
    .pet-tub-box {
      background: linear-gradient(180deg, #e1f5fe, #b3e5fc);
      border: 4px solid #4fc3f7;
      border-radius: 34px;
      padding: 26px;
      margin-bottom: 24px;
      position: relative;
      box-shadow: var(--shadow-bubble);
      min-height: 220px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .pet-tools-row {
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .pet-tool-btn {
      background: #ffffff;
      border: 3px solid #81d4fa;
      border-radius: 20px;
      padding: 10px 16px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 800;
      color: #0277bd;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s;
    }
    .pet-tool-btn:hover { border-color: #0288d1; transform: scale(1.05); }

    /* ─── GAME 19: ENDLESS GELEMBUNG BINTANG AJAIB ─── */
    .endless-bubble-stage { max-width: 760px; margin: 0 auto; text-align: center; }
    .bubble-sky-arena {
      height: 440px;
      background: radial-gradient(circle at 50% 30%, #311b92, #0d47a1 60%, #000a12 100%);
      border-radius: 32px;
      border: 4px solid #7986cb;
      position: relative;
      overflow: hidden;
      touch-action: none;
      box-shadow: 0 12px 36px rgba(0,0,0,0.3);
      margin-bottom: 20px;
    }
    .bubble-item-entity {
      position: absolute;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.85), rgba(255,255,255,0.2) 40%, rgba(129, 212, 250, 0.45) 80%, rgba(236, 64, 122, 0.3) 100%);
      border: 2px solid rgba(255,255,255,0.6);
      box-shadow: 0 0 16px rgba(255,255,255,0.4), inset 0 0 10px rgba(255,255,255,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      user-select: none;
      animation: floatEndless linear forwards;
    }
    @keyframes floatEndless {
      from { transform: translateY(450px) scale(0.9); }
      to { transform: translateY(-120px) scale(1.05); }
    }
    .bubble-sparkle {
      position: absolute;
      pointer-events: none;
      font-size: 20px;
      animation: sparkleFade 0.6s ease-out forwards;
    }
    @keyframes sparkleFade {
      0% { transform: scale(0.5); opacity: 1; }
      100% { transform: scale(1.8) translateY(-20px); opacity: 0; }
    }
    .endless-score-pill {
      background: linear-gradient(135deg, #ffd54f, #ffb300);
      border: 2px solid #fff;
      color: #3e2723;
      padding: 6px 16px;
      border-radius: 20px;
      font-weight: 800;
      font-size: 15px;
      display: flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    /* Footer */
    .app-footer {
      text-align: center;
      margin-top: auto;
      font-size: 13px;
      color: #78909c;
      font-weight: 600;
      padding-top: 16px;
    }
    .app-footer a {
      color: #d81b60;
      text-decoration: none;
      font-weight: 700;
    }
  
    /* ═════════════════════════════════════════════════════════════════
       GAME 19 & 20: BENGKEL MOBIL CILIK (BOYS) & BUTIK BUSANA (GIRLS)
       ═════════════════════════════════════════════════════════════════ */
    /* Panggung Bengkel Mobil Cilik */
    .garage-stage-card {
      background: linear-gradient(180deg, #eceff1 0%, #cfd8dc 100%);
      border: 4px solid #78909c;
      border-radius: 28px;
      padding: 18px;
      text-align: center;
      box-shadow: var(--shadow-bubble);
      margin-bottom: 20px;
      position: relative;
      overflow: hidden;
    }
    .garage-floor-stripes {
      position: absolute;
      bottom: 0; left: 0; right: 0; height: 16px;
      background: repeating-linear-gradient(45deg, #ffd600, #ffd600 15px, #263238 15px, #263238 30px);
    }
    .garage-vehicle-display {
      font-size: 72px;
      line-height: 1;
      margin: 12px 0;
      filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .garage-vehicle-display.revving {
      animation: carRev 0.5s ease-in-out;
    }
    @keyframes carRev {
      0%, 100% { transform: scale(1) translateX(0); }
      30% { transform: scale(1.1) translateX(-6px) rotate(-3deg); }
      70% { transform: scale(1.12) translateX(12px) rotate(3deg); }
    }
    .garage-prompt-banner {
      background: #ffffff;
      border-radius: 18px;
      padding: 10px 18px;
      font-size: 15px;
      font-weight: 800;
      color: #263238;
      border: 2px solid #b0bec5;
      display: inline-block;
      margin-bottom: 14px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    }
    .garage-options-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 12px;
      max-width: 600px;
      margin: 0 auto;
    }
    .garage-option-card {
      background: #ffffff;
      border: 3px solid #ff9800;
      border-radius: 20px;
      padding: 14px 10px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      transition: all 0.22s ease;
      box-shadow: 0 6px 0 #e65100, 0 10px 18px rgba(0,0,0,0.1);
    }
    .garage-option-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 0 #e65100, 0 14px 22px rgba(230, 81, 0, 0.25);
    }
    .garage-option-card:active {
      transform: translateY(4px);
      box-shadow: 0 2px 0 #e65100;
    }
    .garage-option-emoji {
      font-size: 42px;
      line-height: 1;
    }
    .garage-option-name {
      font-size: 13px;
      font-weight: 800;
      color: #37474f;
      text-align: center;
    }

    /* Panggung Butik Busana & Aksesori Putri */
    .dress-stage-card {
      background: linear-gradient(180deg, #fce4ec 0%, #f8bbd0 100%);
      border: 4px solid #f06292;
      border-radius: 28px;
      padding: 18px;
      text-align: center;
      box-shadow: var(--shadow-bubble);
      margin-bottom: 20px;
      position: relative;
    }
    .dress-mannequin-box {
      background: radial-gradient(circle at 50% 40%, #ffffff, #fce4ec 70%);
      width: 140px;
      height: 140px;
      border-radius: 50%;
      border: 4px solid #ffffff;
      box-shadow: 0 8px 24px rgba(233, 30, 99, 0.25), inset 0 2px 8px rgba(255,255,255,0.8);
      margin: 10px auto;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .dress-mannequin-box.twirl {
      animation: dressTwirl 0.6s ease-in-out;
    }
    @keyframes dressTwirl {
      0% { transform: scale(1) rotate(0deg); }
      50% { transform: scale(1.18) rotate(180deg); }
      100% { transform: scale(1) rotate(360deg); }
    }
    .dress-doll-emoji {
      font-size: 64px;
      line-height: 1;
      filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    }
    .dress-prompt-banner {
      background: #ffffff;
      border-radius: 18px;
      padding: 10px 18px;
      font-size: 15px;
      font-weight: 800;
      color: #880e4f;
      border: 2px solid #f48fb1;
      display: inline-block;
      margin-bottom: 14px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    }
    .dress-options-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 12px;
      max-width: 600px;
      margin: 0 auto;
    }
    .dress-option-card {
      background: #ffffff;
      border: 3px solid #ec407a;
      border-radius: 20px;
      padding: 14px 10px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      transition: all 0.22s ease;
      box-shadow: 0 6px 0 #ad1457, 0 10px 18px rgba(0,0,0,0.1);
    }
    .dress-option-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 0 #ad1457, 0 14px 22px rgba(173, 20, 87, 0.25);
    }
    .dress-option-card:active {
      transform: translateY(4px);
      box-shadow: 0 2px 0 #ad1457;
    }
    .dress-option-emoji {
      font-size: 42px;
      line-height: 1;
    }
    .dress-option-name {
      font-size: 13px;
      font-weight: 800;
      color: #4a148c;
      text-align: center;
    }

    /* ─── FITUR PETUALANGAN: PEMILIHAN KARAKTER & TOKEN BERGERAK ─── */
    .adventure-character-selector {
      background: linear-gradient(135deg, #ede7f6, #f3e5f5);
      border: 3px solid #d1c4e9;
      border-radius: 24px;
      padding: 12px 16px;
      margin-bottom: 14px;
    }
    .character-avatars-row {
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .char-avatar-card {
      background: #ffffff;
      border: 3px solid #b39ddb;
      border-radius: 18px;
      padding: 8px 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      transition: all 0.25s ease;
      min-width: 80px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    }
    .char-avatar-card:hover {
      transform: translateY(-4px) scale(1.04);
      border-color: #7e57c2;
    }
    .char-avatar-card.active {
      background: linear-gradient(135deg, #7e57c2, #5e35b1);
      border-color: #ffeb3b;
      box-shadow: 0 6px 16px rgba(126, 87, 194, 0.45);
      transform: translateY(-4px) scale(1.06);
    }
    .char-avatar-emoji {
      font-size: 32px;
      line-height: 1.1;
      margin-bottom: 4px;
      transition: transform 0.2s;
    }
    .char-avatar-card.active .char-avatar-emoji {
      transform: scale(1.15);
      animation: charWiggle 1.4s infinite ease-in-out;
    }
    @keyframes charWiggle {
      0%, 100% { transform: scale(1.15) rotate(0deg); }
      25% { transform: scale(1.15) rotate(-8deg); }
      75% { transform: scale(1.15) rotate(8deg); }
    }
    .char-avatar-name {
      font-size: 11px;
      font-weight: 800;
      color: #4a148c;
      text-align: center;
    }
    .char-avatar-card.active .char-avatar-name {
      color: #ffffff;
    }

    /* Token Karakter Berjalan di Peta */
    .adv-moving-token {
      position: absolute;
      transform: translate(-50%, -85%);
      z-index: 25;
      pointer-events: none;
      transition: left 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), top 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .token-character-bounce {
      font-size: 38px;
      filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
      animation: characterHop 0.8s infinite alternate ease-in-out;
    }
    @keyframes characterHop {
      0% { transform: translateY(0) scale(1, 1); }
      50% { transform: translateY(-16px) scale(0.95, 1.08); }
      100% { transform: translateY(0) scale(1.05, 0.95); }
    }
    .token-character-shadow {
      width: 24px;
      height: 8px;
      background: rgba(0,0,0,0.35);
      border-radius: 50%;
      animation: shadowPulse 0.8s infinite alternate ease-in-out;
      margin-top: -4px;
    }
    @keyframes shadowPulse {
      0% { transform: scale(1); opacity: 0.4; }
      100% { transform: scale(0.6); opacity: 0.15; }
    }
    .token-name-tag {
      background: #e91e63;
      color: #ffffff;
      font-size: 10px;
      font-weight: 900;
      padding: 2px 8px;
      border-radius: 10px;
      border: 2px solid #ffffff;
      box-shadow: 0 2px 6px rgba(0,0,0,0.25);
      white-space: nowrap;
      margin-top: 2px;
      animation: tagBob 1.6s infinite ease-in-out;
    }
    @keyframes tagBob {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-2px); }
    }

    /* Universal Difficulty Chips across games */
    .game-diff-bar {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }
    .game-diff-btn {
      padding: 6px 14px;
      border-radius: 20px;
      border: 2px solid #b39ddb;
      background: #ffffff;
      color: #4a148c;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      transition: all 0.2s;
    }
    .game-diff-btn:hover {
      background: #f3e5f5;
    }
    .game-diff-btn.active {
      background: #7e57c2;
      color: #ffffff;
      border-color: #512da8;
      box-shadow: 0 3px 8px rgba(126, 87, 194, 0.4);
    }

    /* ─── TIER & DEMO ACCESS STYLING ─── */
    .tier-demo-banner {
      background: linear-gradient(135deg, #ec4899, #8b5cf6);
      color: white;
      padding: 10px 18px;
      border-radius: 20px;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
      box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
      border: 2px solid #ffffff;
    }
    .tier-free-banner {
      background: linear-gradient(135deg, #3b82f6, #06b6d4);
      color: white;
      padding: 10px 18px;
      border-radius: 20px;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
      box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
      border: 2px solid #ffffff;
    }
    .tier-banner-left {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13.5px;
      font-weight: 600;
    }
    .tier-banner-pill {
      background: #ffffff;
      color: #8b5cf6;
      font-size: 11px;
      font-weight: 800;
      padding: 3px 10px;
      border-radius: 20px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
    .tier-banner-pill.free {
      color: #0284c7;
    }
    .tier-banner-btn {
      background: #ffffff;
      color: #7c3aed;
      text-decoration: none;
      padding: 7px 16px;
      border-radius: 20px;
      font-size: 12.5px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 3px 8px rgba(0,0,0,0.15);
      cursor: pointer;
      transition: all 0.2s;
    }
    .tier-banner-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    }
    .tier-banner-btn.upgrade {
      background: #fbbf24;
      color: #78350f;
    }
    .station-locked-tier {
      opacity: 0.88;
      filter: saturate(0.85);
    }
    .tier-lock-pill {
      position: absolute;
      top: -10px;
      right: -8px;
      background: linear-gradient(135deg, #ef4444, #f97316);
      color: white;
      font-size: 10.5px;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 12px;
      border: 2px solid white;
      box-shadow: 0 2px 6px rgba(0,0,0,0.25);
      display: flex;
      align-items: center;
      gap: 4px;
      z-index: 10;
    }
    .tier-free-pill {
      position: absolute;
      top: -10px;
      right: -8px;
      background: linear-gradient(135deg, #10b981, #059669);
      color: white;
      font-size: 10px;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 12px;
      border: 2px solid white;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
      display: flex;
      align-items: center;
      gap: 4px;
      z-index: 10;
    }
    .card-locked-tier {
      position: relative;
    }
    .card-tier-lock-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(239, 68, 68, 0.95);
      color: white;
      font-size: 11px;
      font-weight: 800;
      padding: 3px 9px;
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
      display: flex;
      align-items: center;
      gap: 4px;
      z-index: 5;
    }
    .card-tier-free-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(16, 185, 129, 0.95);
      color: white;
      font-size: 11px;
      font-weight: 800;
      padding: 3px 9px;
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      gap: 4px;
      z-index: 5;
    }
    .tier-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.75);
      backdrop-filter: blur(8px);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      animation: fadeIn 0.25s ease-out;
    }
    .tier-modal-card {
      background: #ffffff;
      border-radius: 28px;
      max-width: 500px;
      width: 100%;
      padding: 24px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
      border: 4px solid #fbcfe8;
      position: relative;
      text-align: center;
      animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .tier-modal-close {
      position: absolute;
      top: 14px;
      right: 16px;
      background: #f1f5f9;
      border: none;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      font-size: 18px;
      font-weight: 700;
      color: #64748b;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .tier-modal-close:hover {
      background: #e2e8f0;
      color: #1e293b;
    }
    .tier-modal-icon {
      font-size: 42px;
      margin-bottom: 8px;
    }
    .tier-modal-title {
      font-size: 20px;
      font-weight: 800;
      color: #1e293b;
      margin-bottom: 6px;
    }
    .tier-modal-desc {
      font-size: 13.5px;
      color: #64748b;
      line-height: 1.5;
      margin-bottom: 16px;
    }
    .btn-tier-cta-register {
      background: linear-gradient(135deg, #ec4899, #8b5cf6);
      color: white !important;
      text-decoration: none;
      padding: 12px 20px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 800;
      display: block;
      box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
      transition: all 0.25s;
      margin-bottom: 14px;
    }
    .btn-tier-cta-register:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
    }
    .tier-grid-boxes {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 16px;
      text-align: left;
    }
    .tier-box-option {
      background: #f8fafc;
      border: 2px solid #e2e8f0;
      border-radius: 18px;
      padding: 12px;
      display: flex;
      flex-direction: column;
      position: relative;
    }
    .tier-box-option.vip {
      background: #fffbeb;
      border-color: #f59e0b;
    }
    .tier-opt-badge {
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #10b981;
    }
    .tier-opt-badge.vip {
      color: #d97706;
    }
    .tier-opt-title {
      font-size: 13px;
      font-weight: 800;
      color: #1e293b;
      margin: 3px 0 6px;
    }
    .tier-opt-list {
      list-style: none;
      padding: 0;
      margin: 0 0 10px;
      font-size: 11px;
      color: #475569;
      line-height: 1.45;
    }
    .tier-opt-list li {
      margin-bottom: 3px;
    }
    .btn-tier-wa {
      background: #10b981;
      color: white;
      text-decoration: none;
      padding: 6px 10px;
      border-radius: 12px;
      font-size: 11.5px;
      font-weight: 700;
      text-align: center;
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      transition: background 0.2s;
    }
    .btn-tier-wa:hover {
      background: #059669;
    }
    .btn-tier-wa.vip {
      background: linear-gradient(135deg, #f59e0b, #ec4899);
    }
    .btn-tier-dismiss {
      background: #f1f5f9;
      color: #64748b;
      border: none;
      padding: 8px 16px;
      border-radius: 16px;
      font-size: 12.5px;
      font-weight: 700;
      cursor: pointer;
    }
    .btn-tier-dismiss:hover {
      background: #e2e8f0;
      color: #334155;
    }
    .btn-tier-portal {
      background: #3b82f6;
      color: white;
      text-decoration: none;
      padding: 8px 16px;
      border-radius: 16px;
      font-size: 12.5px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    /* ─── RESPONSIVE ENHANCEMENTS (HP, TABLET, LAPTOP, PC) ─── */
    @media (max-width: 600px) {
      /* Banner Hero Beranda di HP */
      .adventure-hero-banner {
        padding: 14px 14px !important;
        border-radius: 20px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
      }
      .adventure-hero-title {
        font-size: 18px !important;
        line-height: 1.25 !important;
      }
      .adventure-hero-desc {
        font-size: 11.5px !important;
        line-height: 1.45 !important;
      }
      .adventure-hero-art {
        display: none !important;
      }
      .adventure-hero-btn {
        width: 100% !important;
        justify-content: center !important;
        font-size: 13px !important;
        padding: 10px 14px !important;
      }
      /* Card Panduan & Pintasan Sapaan di HP */
      .adv-companion-card {
        padding: 10px 12px !important;
        border-radius: 16px !important;
        margin: 8px 0 12px !important;
      }
      .adv-companion-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 6px !important;
      }
      .adv-companion-actions .btn-back {
        width: 100% !important;
        justify-content: center !important;
        font-size: 12px !important;
        padding: 8px 6px !important;
        white-space: nowrap !important;
      }
      /* Quick Jump Zona Buttons di HP */
      .adv-quick-jumps {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
      }
      .adv-jump-btn {
        width: 100% !important;
        padding: 6px 4px !important;
        font-size: 11px !important;
        text-align: center !important;
      }
      .app-wrapper {
        padding: 8px 10px 30px;
      }
      .top-bar {
        padding: 8px 12px;
        border-radius: 20px;
        margin-bottom: 12px;
        gap: 6px;
        flex-wrap: wrap;
      }
      .top-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
        margin-left: 0;
        margin-top: 6px;
        flex-basis: 100%;
        flex-shrink: 0;
      }
      .brand-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
      }
      .brand-title {
        font-size: 17px;
      }
      .brand-sub {
        display: none;
      }
      .adventurer-rank-pill {
        padding: 4px 8px;
        gap: 4px;
      }
      .rank-pill-title {
        font-size: 11px;
      }
      .rank-pill-bar-box {
        display: none;
      }
      .star-badge {
        padding: 4px 8px;
        border-radius: 14px;
        gap: 5px;
      }
      .star-badge i {
        font-size: 16px;
      }
      .star-count {
        font-size: 15px;
      }
      .btn-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
      }
      .tier-demo-banner, .tier-free-banner {
        padding: 8px 12px;
        border-radius: 16px;
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
      }
      .tier-banner-left {
        font-size: 12px;
      }
      .tier-banner-btn {
        width: 100%;
        justify-content: center;
      }
      .tier-modal-card {
        padding: 18px 14px;
        border-radius: 22px;
        max-height: 90vh;
        overflow-y: auto;
      }
      .tier-grid-boxes {
        grid-template-columns: 1fr;
        gap: 10px;
      }
      .game-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }
      .screen-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
      }
      .screen-title {
        font-size: 20px;
      }
      .btn-back {
        padding: 8px 14px;
        font-size: 14px;
      }
      /* Mini Games Mobile Optimizations */
      .xylophone-board {
        padding: 14px 6px;
        gap: 4px;
        border-radius: 20px;
        margin-bottom: 16px;
      }
      .xylophone-key {
        padding: 10px 0;
        border-radius: 10px;
        font-size: 11px;
      }
      .key-note {
        font-size: 10px;
      }
      .key-solfege {
        font-size: 12px;
      }
      .trace-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
      }
      .trace-animal-card {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 10px 14px;
      }
      .trace-animal-emoji {
        font-size: 40px;
        margin-bottom: 0;
      }
      .trace-animal-title {
        font-size: 16px;
      }
      .memory-grid {
        gap: 8px;
        max-width: 100%;
      }
      .memory-card {
        font-size: 26px;
        border-radius: 14px;
        min-height: 64px;
      }
      .dense-grid {
        gap: 8px;
        max-width: 100%;
      }
      .pattern-choices-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
      }
      .hijaiyah-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }
      .count-arena {
        padding: 14px 10px;
      }
      .count-items-grid {
        gap: 8px;
      }
      .sorting-stage {
        padding: 10px 6px;
      }
      .sorting-baskets-row {
        gap: 8px;
      }
      .balloon-sky-arena {
        height: 330px;
      }
      .bubble-sky-arena {
        height: 330px;
      }
      .adv-station-node {
        max-width: 180px;
      }
      .adv-text-title {
        font-size: 13px;
      }
      .adv-text-sub {
        font-size: 10.5px;
      }
      .adv-3d-token {
        width: 52px;
        height: 52px;
        font-size: 24px;
      }
    }

    @media (min-width: 601px) and (max-width: 1024px) {
      .app-wrapper {
        padding: 12px 18px 40px;
      }
      .top-bar {
        padding: 12px 18px;
      }
      .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
      }
      .tier-modal-card {
        max-width: 480px;
        max-height: 90vh;
        overflow-y: auto;
      }
    }

    @media (min-width: 1025px) {
      .app-wrapper {
        max-width: 1060px;
        margin: 0 auto;
      }
      .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
      }
      .tier-modal-card {
        max-width: 520px;
        max-height: 90vh;
        overflow-y: auto;
      }
    }

    /* ═══ KID-FRIENDLY ICONS: warna ceria & animasi playful ═══ */
    .btn-circle.btn-sound {
      background: linear-gradient(135deg, #e3f2fd, #bbdefb) !important;
      border-color: #64b5f6 !important;
      color: #1565c0 !important;
    }
    .btn-circle[onclick*="openParentModal"] {
      background: linear-gradient(135deg, #f3e5f5, #e1bee7) !important;
      border-color: #ba68c8 !important;
      color: #7b1fa2 !important;
    }
    .btn-circle:hover {
      transform: scale(1.12) rotate(6deg);
    }
    .star-badge {
      animation: starWiggle 3s infinite ease-in-out;
    }
    @keyframes starWiggle {
      0%, 100% { transform: rotate(0deg); }
      5% { transform: rotate(-8deg) scale(1.05); }
      10% { transform: rotate(8deg) scale(1.05); }
      15% { transform: rotate(0deg) scale(1); }
    }
    .rank-pill-badge {
      animation: badgeBounce 2.5s infinite ease-in-out;
      display: inline-block;
    }
    @keyframes badgeBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-3px); }
    }

    /* Hilangkan tap delay di HP */
    button, .btn-circle, .num-btn, .char-3d-card {
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }
    /* Garis peta progresif: terang = sudah dilewati, redup = belum */
    .trail-dash-future {
      stroke: rgba(180,180,200,0.35);
      stroke-width: 5;
      stroke-dasharray: 12 10;
      stroke-linecap: round;
      fill: none;
    }
    .trail-glow-done {
      stroke: rgba(255,200,60,0.55);
      stroke-width: 11;
      stroke-linecap: round;
      fill: none;
      filter: blur(5px);
    }
    .trail-dash-done {
      stroke: #ffb300;
      stroke-width: 5;
      stroke-dasharray: 12 10;
      stroke-linecap: round;
      fill: none;
      animation: dashMarch 1.1s linear infinite;
    }
    @keyframes dashMarch {
      to { stroke-dashoffset: -22; }
    }

    /* ── Anti-stretch guard: foto karakter tidak boleh gepeng/lonjong ── */
    .token-3d-orb { aspect-ratio: 76 / 88; flex-shrink: 0; }
    .char-3d-photo-box { aspect-ratio: 1 / 1; flex-shrink: 0; }
    .token-3d-orb img, .char-3d-photo-box img, #advSpeechAvatarImg {
      width: 100% !important; height: 100% !important;
      object-fit: cover !important; flex-shrink: 0; display: block;
    }

    /* ── Mode landscape HP: padatkan agar soal langsung kelihatan tanpa scroll ── */
    @media (orientation: landscape) and (max-height: 500px) {
      .game-screen { padding: 14px; border-radius: 24px; margin-bottom: 12px; }
      .screen-header { margin-bottom: 10px; padding-bottom: 8px; }
      .screen-title { font-size: 18px !important; }
      .btn-back { padding: 6px 12px; font-size: 13px; }
      .quiz-question-box { padding: 12px 16px; margin-bottom: 12px; border-radius: 20px; gap: 8px; }
      .quiz-question-text { font-size: 20px; }
      .btn-speak-question { padding: 6px 14px; font-size: 14px; }
      .quiz-options-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
      .quiz-opt-btn { padding: 10px 12px; border-radius: 18px; gap: 10px; }
      .quiz-opt-emoji { font-size: 36px; width: 48px; height: 48px; }
      .quiz-opt-label { font-size: 14px; }
      .adv-quick-jumps { flex-wrap: wrap; gap: 6px; }
      .adv-jump-btn { padding: 6px 10px; font-size: 12px; }
      .token-3d-orb { width: 60px; height: 70px; }
      .biome-zone { padding: 14px 10px 20px; gap: 14px; }
      .stone-pedestal { transform: scale(0.85); }
    }
