/* Burmese (Myanmar) support. The font is bundled so every phone shows Unicode Burmese the same way.
   "U9 Myanmar" only covers Burmese characters, so Latin text still falls through to Fredoka. */
@font-face{font-family:"U9 Myanmar";src:url("../fonts/noto-myanmar-400.woff2") format("woff2");font-weight:300 500;font-display:swap;unicode-range:U+1000-109F,U+200C-200D,U+25CC}
@font-face{font-family:"U9 Myanmar";src:url("../fonts/noto-myanmar-700.woff2") format("woff2");font-weight:600 900;font-display:swap;unicode-range:U+1000-109F,U+200C-200D,U+25CC}
html[lang],html[lang] body{font-family:"U9 Myanmar","Fredoka","Baloo 2","Trebuchet MS",system-ui,sans-serif}
html[lang] :is(.obj b,.k-screen,.k-key),html[lang] svg text{font-family:"U9 Myanmar","Fredoka",sans-serif}

/* language button beside the U9 Kids logo (home page) */
.lang-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;align-self:flex-start;margin-top:6px;min-height:36px;padding:3px 10px;border:2px solid #fff;border-radius:999px;background:#fff;color:#35207a;font:700 14px/1.5 "U9 Myanmar","Fredoka",system-ui,sans-serif;box-shadow:0 3px 8px rgba(30,10,90,.3);cursor:pointer;white-space:nowrap}
.lang-btn:active{transform:scale(.95)}
.lang-ic{font-family:var(--emoji);font-size:14px;line-height:1}
/* narrow phones: the button drops under the KIDS letters so the header never overflows */
.front2 .f2-head .u9-home-brand{flex-wrap:nowrap}
@media(max-width:520px){
  .front2 .f2-head{position:relative}
  .front2 .f2-head .lang-btn{position:absolute;left:calc(14px + clamp(52px,17.5vw,96px) + clamp(4px,1.3vw,8px));top:calc(15px + var(--safe-top) + clamp(52px,17.5vw,96px) - 30px);margin:0;min-height:30px;font-size:13px;padding:1px 9px;z-index:3}
  .front2 .f2-head .u9-home-kids{margin-bottom:34px}
}
@media(max-width:340px){.front2 .f2-head .lang-btn{left:65px;top:calc(15px + var(--safe-top) + 26px)}}

/* Fun Games heading in Burmese (the English heading is a picture) */
.fun-heading-my{display:flex;flex-direction:column;align-items:center;gap:4px;margin:0 auto;text-align:center;min-width:0}
.fun-heading-my b{color:#ffd83d;font-size:clamp(24px,7.4vw,38px);line-height:1.6;text-shadow:0 2px 0 #b8419a,0 4px 10px rgba(40,10,90,.55)}
.fun-heading-my span{background:linear-gradient(#8f55f0,#6a2fd4);color:#fff;border:2px solid #d9bcff;border-radius:999px;padding:2px 14px;font-weight:700;font-size:clamp(13px,3.8vw,18px);line-height:1.7}

/* Burmese letters stack above and below the line, so they need taller lines */
html[lang=my] body{line-height:1.6}
html[lang=my] :is(h1,h2,h3,h4,.h1,.h2,.sub,.btn,.pill,.mi,.li,.unit-h b,.unit-h small,.subj-head,.f2-hi,.f2-sub,.agepill,.buddy-tag small,.buddy-tag b,.soon,.soonpill,.ustamp,.tag,.times,.seg2 button,.pk-l,.starbank,.stat span,.toast,.mbox p,.small,.gate .q){line-height:1.65}
html[lang=my] .policy{line-height:1.55}
html[lang=my] .f2-hi{font-size:clamp(24px,7vw,36px)}
html[lang=my] .f2-sub{max-width:62vw}
html[lang=my] .seg2 button{font-size:13px}
html[lang=my] .pk-l{font-size:11px}
/* longer Burmese labels: keep the top bars and footer buttons on one line */
html[lang=my] .f2-greet .agepill b{font-size:15px;white-space:nowrap}
html[lang=my] .learn2 .khead{gap:5px;padding-left:10px;padding-right:10px}
html[lang=my] .learn2 .agepill{padding:3px 7px;gap:3px}
html[lang=my] .learn2 .agepill b{font-size:12px;white-space:nowrap}
html[lang=my] .footer-btns .btn{font-size:16px;white-space:nowrap;padding-left:8px;padding-right:8px}
html[lang=my] #clock{line-height:1.2;padding:3px 10px;font-size:13px;top:8px}
@media(max-width:380px){html[lang=my] .learn2 .khead{gap:3px;padding-left:6px;padding-right:6px}html[lang=my] .learn2 .home-back,html[lang=my] .learn2 .learn-refresh,html[lang=my] .learn2 .khead .gt-share.sm{width:36px;height:36px}html[lang=my] .learn2 .mini-av{width:40px;height:40px}html[lang=my] .learn2 .coin-chip .coin-val{font-size:14px}}
@media(max-width:340px){html[lang=my] .learn2 .agepill b{font-size:11px}html[lang=my] .learn2 .agepill{padding:2px 4px}html[lang=my] .footer-btns .btn{font-size:14px}}
@media(max-width:340px){html[lang=my] .learn2 .khead{gap:2px;padding-left:4px;padding-right:4px}html[lang=my] .learn2 .coin-chip{padding-left:4px;padding-right:6px}}
/* lesson game cards: leave room for the Burmese Play button */
html[lang=my] .game .side .play{padding:5px 8px;font-size:13px;white-space:nowrap}
html[lang=my] .game .side .soonpill{font-size:11px}
html[lang=my] .game .info h3{line-height:1.3;overflow-wrap:normal}
html[lang=my] .game .info p.times{font-size:11px;line-height:1.7}
html[lang=my] .btns .btn{white-space:nowrap;padding-left:14px;padding-right:14px}
html[lang=my] .age{white-space:nowrap}
@media(max-width:340px){html[lang=my] .game .info p.times{font-size:10px}html[lang=my] .game .side .play{padding:4px 6px;font-size:12px}}
