:root {
  --ink: #ecfeff; --muted: #a5f3fc; --accent: #22d3ee; --ok: #86efac; --bad: #fda4af;
  --font: "Nunito", "Noto Sans Myanmar", "Padauk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--ink); background: #164e63; }
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(34,211,238,.28), transparent 40%),
    linear-gradient(160deg, #083344, #155e75 50%, #0e7490);
}
.shell { position: relative; z-index: 1; max-width: 440px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px 36px; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero { text-align: center; margin-bottom: 14px; }
.badge { display: inline-block; padding: .28rem .7rem; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
h1 { margin: 0; font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 800; }
.sub { margin: .45rem auto .85rem; color: var(--muted); font-weight: 600; max-width: 28em; line-height: 1.4; }
.meta { display: flex; justify-content: center; }
.chip { display: inline-flex; gap: .35rem; align-items: center; padding: .4rem .75rem; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 700; }
.chip b { color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cell {
  aspect-ratio: 1; border: 0; border-radius: 18px; font-size: 1.6rem; font-weight: 800; cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 16px rgba(0,0,0,.2);
  transition: transform .12s ease, opacity .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.cell:active { transform: scale(.94); }
.cell.done { opacity: .35; background: rgba(34,211,238,.25); pointer-events: none; }
.cell.bad { animation: shake .28s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.msg { min-height: 1.4em; text-align: center; font-weight: 800; margin: 12px 0 8px; }
.msg.ok { color: var(--ok); } .msg.bad { color: var(--bad); }
.btn {
  display: block; width: 100%; border: 0; border-radius: 999px; padding: 13px 18px;
  background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 800; cursor: pointer;
}
body.lang-my { --font: "Noto Sans Myanmar", "Padauk", "Nunito", system-ui, sans-serif; }
