/* Dalam skrin game: sorok teks jenama pada phone supaya tajuk tak terpotong & pill tak berhimpit */
@media (max-width:560px){
  .app.in-game .brand-t{display:none}
  .app.in-game .brand{gap:0;flex:none}
}
/* Skrin pendek (browser phone + bar alamat): mampatkan home supaya kad mode TAK terpotong */
@media (max-height:780px){
  .hello-hi{display:none}
  .hello-card{padding:9px 12px}
  .hero{height:88px}
}
@media (max-height:690px){
  .age-note{display:none}
  .mode-card .ic{font-size:26px}
  .mode-card .t{font-size:16px}
  .hello-ava{width:48px;height:48px;font-size:27px}
  .stat .sic{width:30px;height:30px}
  .stat b{font-size:16px}
}
@media (max-width:520px){
  .topbar{gap:6px}
  .brand{gap:7px}
  .mark{width:38px;height:38px;font-size:25px;border-radius:13px;padding-bottom:5px}
  .brand-t b{font-size:14.5px}
  .brand-t span{display:none}
  .pill{padding:7px 10px;font-size:13.5px;gap:5px}
  .pill svg{width:15px;height:15px}
  .icon-btn{width:38px;height:38px}
  .icon-btn svg{width:18px;height:18px}
}
@media (max-width:380px){
  .brand-t b{font-size:13.5px}
  .pill{padding:6px 8px;font-size:13px}
  .mode-card .t{font-size:15.5px}
  .mode-card .d{font-size:11px;line-height:1.25}
  .stat b{font-size:16px}
  .hello-ava{width:50px;height:50px;font-size:28px}
}
/* Skrin lebar: hero lebih tinggi; peringkat desktop kandungan dibuka
   lebih luas (pendekatan Step 3 English) — grid kenal kekal 5 kolum. */
@media (min-width:700px){
  .hero{height:128px}
}
@media (min-width:900px){
  .app{max-width:880px}
  .hero{height:160px}
}
@media (max-height:640px){
  .hello-hi{display:none}
  .age-note{display:none}
  .word-reveal{height:86px;min-height:86px}
  .mode-card .ic{font-size:24px}
  .hero{height:72px}
}

/* === DuniaMisi Polish: Motion, Visual Harmony & 580px/1.15x Viewport Fit === */
@keyframes dmPopIn {
  0% { opacity: 0; transform: scale(.86) translateY(7px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.mode-card, .choice, .tile, .sambung-tile {
  animation: dmPopIn .34s cubic-bezier(.34, 1.56, .64, 1) both;
  transition: transform .14s cubic-bezier(.34, 1.56, .64, 1), box-shadow .14s ease;
}
.mode-card:nth-child(2), .choice:nth-child(2), .tile:nth-child(2) { animation-delay: .04s; }
.mode-card:nth-child(3), .choice:nth-child(3), .tile:nth-child(3) { animation-delay: .08s; }
.mode-card:nth-child(4), .choice:nth-child(4), .tile:nth-child(4) { animation-delay: .12s; }
.mode-card:nth-child(5) { animation-delay: .16s; }
button:active, .mode-card:active, .choice:active, .tile:active {
  transform: scale(.95) translateY(2px);
}
@media (max-height: 600px) {
  .hello-card { padding: 6px 10px; }
  .hero { height: 68px; }
  .mode-card { padding: 5px 6px; gap: 2px; }
  .mode-card .ic { font-size: 22px; }
  .mode-card .t { font-size: clamp(12px, 3.2vw, 14px); line-height: 1.15; }
  .choice, .tile { min-height: 44px; padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
