/* ===== Zon Game ===== */
.g-wrap {
  --g: #1565e0;
  position: relative; overflow: hidden; background: #fff; border-radius: 28px; border: 3px solid var(--g);
  box-shadow: 0 14px 0 rgba(11, 26, 78, .08), var(--shadow-lg); padding: 24px; min-height: 420px;
  max-width: 720px; margin: 0 auto;
}
.g-start, .g-end { text-align: center; padding: 10px 0; }
.g-emoji { font-size: 4.5rem; line-height: 1; margin-bottom: 8px; animation: bob 3s ease-in-out infinite; }
.g-topic { display: inline-block; background: var(--g); color: #fff; font-weight: 800; padding: 4px 14px; border-radius: 99px; font-size: .85rem; }
.g-start h3 { font-size: 2rem; margin: 10px 0 6px; }
.g-start p { color: var(--muted); max-width: 460px; margin: 0 auto 18px; }
.g-best { font-weight: 700; color: var(--ink) !important; }
.g-start .btn { margin: 6px; }

.g-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-head); font-weight: 700; }
.g-name { color: var(--g); font-size: 1.15rem; }
.g-meter { background: #f0f1f8; padding: 4px 14px; border-radius: 99px; }
.g-meter.warn { background: #ffe1e1; color: #c62828; animation: shake .4s infinite; }
.g-score { background: #fff4d6; padding: 4px 14px; border-radius: 99px; color: #a15c00; }
.g-bar { height: 10px; background: #f0f1f8; border-radius: 99px; margin: 12px 0 8px; overflow: hidden; }
.g-bar span { display: block; height: 100%; width: 0; background: var(--g); border-radius: 99px; transition: width .4s; }

.g-kiki { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; min-height: 56px; }
.g-kiki img { width: 52px; transition: transform .3s; }
.g-kiki.happy img { animation: bob .6s ease 2; transform: scale(1.15); }
.g-kiki.sad img { animation: shake .4s ease 1; }
.g-say { background: #f4f0ff; color: var(--purple); font-family: var(--font-head); font-weight: 700; padding: 8px 14px; border-radius: 16px 16px 16px 4px; }

.g-q { text-align: center; margin: 10px 0 18px; }
.g-q.pop { animation: pop .35s ease; }
.g-eq { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 7vw, 3rem); color: var(--navy); background: #f4f8ff; border-radius: 20px; padding: 18px; }
.g-eq.small { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.g-ask { font-size: 1.15rem; font-weight: 700; margin: 12px 0 0; }
.g-svg { width: 200px; max-width: 70%; height: auto; margin: 0 auto; display: block; }
.g-svg.wide { width: 340px; max-width: 100%; }
.g-chart-title { font-weight: 800; color: var(--muted); margin: 0 0 4px; }

.g-shop { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.g-item { background: #f2fff5; border: 2px dashed var(--green); border-radius: 18px; padding: 12px 16px; display: flex; flex-direction: column; align-items: center; min-width: 96px; }
.g-item span { font-size: 2.2rem; line-height: 1.1; }
.g-item b { font-size: .95rem; }
.g-item em { font-style: normal; font-weight: 800; color: var(--green); }

.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; font-weight: 800; }
.frac span:first-child { border-bottom: 3px solid currentColor; padding: 0 4px; }

.g-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.g-opt {
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; padding: 16px 10px; min-height: 68px;
  border-radius: 18px; border: 3px solid #e1e4f3; background: #fff; color: var(--navy); cursor: pointer;
  box-shadow: 0 5px 0 #e1e4f3; transition: transform .1s, border-color .15s, background .15s;
}
.g-opt:hover:not(:disabled) { border-color: var(--g); transform: translateY(-2px); }
.g-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 #e1e4f3; }
.g-opt.right { background: #dcfce4; border-color: #1fae4b; color: #0f6b2e; box-shadow: 0 5px 0 #1fae4b; animation: pop .35s; }
.g-opt.wrong { background: #ffe4e4; border-color: #e5484d; color: #a3171c; box-shadow: 0 5px 0 #e5484d; animation: shake .35s; }
.g-opt:disabled { cursor: default; }

.g-end-kiki { width: 120px; margin: 0 auto; animation: bob 2.4s ease-in-out infinite; }
.g-stars { font-size: 3.4rem; letter-spacing: 6px; margin: 4px 0; }
.g-stars span { color: #e3e5f0; display: inline-block; }
.g-stars span.on { color: #ffc21a; text-shadow: 0 4px 0 #e09a00; animation: pop .5s both; }
.g-final { font-size: 1.25rem; }
.g-new { display: inline-block; background: var(--pink); color: #fff; font-weight: 800; font-size: .8rem; padding: 3px 10px; border-radius: 99px; margin-left: 6px; }
.g-end-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

.g-confetti { position: absolute; top: -40px; animation: fall 2.4s ease-in forwards; pointer-events: none; z-index: 5; }
@keyframes fall { to { transform: translateY(560px) rotate(360deg); opacity: 0; } }

@media (max-width: 520px) {
  .g-wrap { padding: 16px; border-radius: 22px; }
  .g-opt { font-size: 1.15rem; min-height: 60px; }
}

/* Pilihan game (Zon Game) */
.game-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.game-card {
  border: 0; cursor: pointer; text-align: left; font: inherit; color: #fff; border-radius: 26px; padding: 22px;
  position: relative; overflow: hidden; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .15); transition: transform .18s;
}
.game-card:hover { transform: translateY(-5px) rotate(-1deg); }
.game-card .gc-emoji { position: absolute; top: 12px; right: 14px; font-size: 3.6rem; transform: rotate(10deg); }
.game-card h3 { color: #fff; margin: 0 0 2px; font-size: 1.45rem; }
.game-card small { font-weight: 800; opacity: .9; }
.game-card .gc-stars { position: absolute; top: 16px; left: 18px; background: rgba(255, 255, 255, .25); border-radius: 99px; padding: 2px 10px; font-weight: 800; font-size: .9rem; }
.zone-stats { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.zone-stats .badge { font-size: 1rem; }
.mute-btn { background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 6px 14px; font-weight: 800; cursor: pointer; font-family: inherit; }
