/* Robot classroom page for ngoaingubolt.bdu.edu.vn.
   Tokens and components (header .hd/.nav-a/.nav-cta, .exam-visual, .why-card tones, .chip, .pill, .btn, .brand-bolt)
   are copied from the live site's /pages/iflc_bdu_website_v3.html so the page matches it. Only .room-*, .robot-*,
   .chat-* and .song-* are new, built from the same tokens. Kid sizing: one-tap targets of 52 px and up, icon + word. */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Nunito:wght@700;800;900&display=swap');
@font-face{font-family:"BoltBrand";src:url('/bolt/fonts/vni-redrock.woff2') format('woff2');font-display:swap}
.brand-bolt{font-family:"BoltBrand",sans-serif;color:#ED1B24;font-size:1.2em;text-transform:none}
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --red:#E31C3D;--red-deep:#B8122E;--sun:#FFC400;--sun-soft:#FFF4C2;--sky:#1E40D8;--sky-soft:#E3E9FF;
  --mint:#10B060;--mint-soft:#DDF7E8;--violet:#7A3FF0;--violet-soft:#EEE6FF;--ink:#14183A;--muted:#4A5170;
  --line:rgba(20,24,58,.1);--bg:#FFFFFF;--white:#fff;--max:1160px;--r:18px;--ease:cubic-bezier(.32,.72,0,1);
}
body{font-family:'Be Vietnam Pro',system-ui,sans-serif;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.65;overflow-x:hidden}
h1,h2,h3,.display{font-family:'Nunito',sans-serif;font-weight:800;text-wrap:balance}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Site header */
header{background:var(--white);position:sticky;top:0;z-index:50;box-shadow:0 4px 24px rgba(26,31,54,.06)}
.hd{max-width:1400px;margin:0 auto;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:78px}
.logo a{display:flex;align-items:center;gap:12px}
.logo-img{height:58px;width:auto;max-width:min(200px,38vw);object-fit:contain}
.logo .brand-bolt{font-size:44px;line-height:1}
nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.nav-a{padding:8px 12px;border-radius:999px;font-size:13.5px;font-weight:600;color:var(--muted);transition:.2s var(--ease)}
.nav-a:hover,.nav-a.on{background:var(--sun-soft);color:var(--ink)}
.nav-cta{background:var(--red);color:#fff!important;padding:10px 18px;border-radius:999px;font-weight:700;box-shadow:0 8px 20px rgba(227,28,61,.25);transition:transform .25s var(--ease),background .2s}
.nav-cta:hover{background:var(--red-deep);transform:translateY(-2px) scale(1.03)}
.nav-cta .brand-bolt{color:#fff;font-size:1.15em}
.nav-sound{display:inline-flex;align-items:center;gap:6px;min-height:44px;border:0;background:none;cursor:pointer}
.nav-sound .ico{width:20px;height:20px;--tone:var(--sky)}
.nav-sound[aria-pressed="false"] .ico{--tone:var(--red)}

/* Site components */
.exam-visual{position:relative;z-index:1;overflow:hidden;background:#dff5ff;border:3px solid var(--sky);border-radius:20px;box-shadow:8px 8px 0 var(--sun)}
.why-card{position:relative;border-radius:20px;background:var(--why-bg,#fff);color:var(--why-ink,var(--ink));border:0;box-shadow:0 5px 0 var(--why-edge,rgba(20,24,58,.15));transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.why-card:hover{transform:translateY(-3px);box-shadow:0 8px 0 var(--why-edge,rgba(20,24,58,.15))}
.why-card:active{transform:translateY(3px);box-shadow:0 2px 0 var(--why-edge,rgba(20,24,58,.15))}
.why-sun{--why-bg:#FFC400;--why-edge:#D99A00;--why-ink:#14183A;--tone:#14183A}
.why-sky{--why-bg:#1E40D8;--why-edge:#132C9E;--why-ink:#fff;--tone:#fff}
.why-mint{--why-bg:#10B060;--why-edge:#0A8045;--why-ink:#fff;--tone:#fff}
.why-violet{--why-bg:#7A3FF0;--why-edge:#5424B8;--why-ink:#fff;--tone:#fff}
.why-coral{--why-bg:#E31C3D;--why-edge:#A50E27;--why-ink:#fff;--tone:#fff}
.why-teal{--why-bg:#FF7A00;--why-edge:#C25C00;--why-ink:#fff;--tone:#fff}
.chip{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border-radius:999px;background:var(--white);border:1px solid var(--line);font-size:13px;font-weight:700;color:var(--ink);box-shadow:0 4px 12px rgba(26,31,54,.04)}
.chip:hover{border-color:var(--sky);color:var(--sky)}
.chip:active{transform:scale(.97)}
.pill{display:inline-flex;align-items:center;gap:6px;background:var(--white);border:1px solid var(--line);padding:6px 14px;border-radius:999px;font-size:12px;font-weight:700;color:#334155;box-shadow:0 4px 12px rgba(26,31,54,.04)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:13px 22px;border-radius:999px;font-weight:800;font-size:14px;border:0;cursor:pointer;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.btn:active{transform:scale(.98)}
.btn-red{background:var(--red);color:#fff;box-shadow:0 10px 24px rgba(227,28,61,.28)}
.btn-red:hover{background:var(--red-deep)}

/* Icons: Phosphor duotone in the card's colour, no tile behind them */
.ico{display:inline-grid;place-items:center;flex-shrink:0;color:var(--tone,currentColor)}
.ico svg{width:100%;height:100%}
.ico .duo{opacity:.32}
.tone-sky{--tone:#1E40D8}.tone-violet{--tone:#7A3FF0}.tone-coral{--tone:#E31C3D}.tone-sun{--tone:#E0A000}.tone-mint{--tone:#10B060}

/* Page layout */
.room{max-width:1400px;margin:0 auto;padding:22px 20px 40px;display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:24px;align-items:start}
.room-main{display:flex;flex-direction:column;gap:22px;min-width:0}
/* Sized from the width: inside the iframe 100vh is the iframe's own height, which grows with the content. */
.room-visual{height:max(400px,min(clamp(420px,calc((min(100vw,1400px) - 454px) * .66),700px),calc(var(--view-h,900px) - 260px)))}
.robot-stage{position:absolute;inset:0;touch-action:pan-y;cursor:grab}
.robot-stage canvas{display:block;width:100%;height:100%;outline:none}
.robot-stage canvas:focus-visible{box-shadow:inset 0 0 0 3px var(--sun)}
/* Flat room (bolt-flat.mjs) on machines without 3D: picture-sized box scaled to cover the stage, like the 3D camera. */
body.is-flat .robot-stage{cursor:default;overflow:hidden}
body.is-flat .robot-hint{display:none}
.flat-room{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none}
.flat-room>*{position:absolute;display:block}
.flat-bg{left:0;top:0;width:100%;height:100%}
.flat-robot{background-repeat:no-repeat}
.robot-bubble{position:absolute;left:20px;top:20px;max-width:min(360px,calc(100% - 40px));padding:12px 18px;background:var(--white);border:2.5px solid rgba(27,163,224,.32);border-radius:var(--r);box-shadow:0 4px 0 #5CC0F0,0 14px 28px rgba(26,31,54,.07);pointer-events:none}
.robot-bubble::after{content:"";position:absolute;left:46px;bottom:-11px;width:18px;height:18px;background:var(--white);border-right:2.5px solid rgba(27,163,224,.32);border-bottom:2.5px solid rgba(27,163,224,.32);transform:rotate(45deg)}
.robot-bubble b{display:block;font-family:'Nunito',sans-serif;font-weight:900;font-size:24px;line-height:1.2}
.robot-bubble span{display:block;font-size:14px;font-weight:600;color:var(--muted);margin-top:2px}
.robot-bubble.pop{animation:robotPop .45s var(--ease)}
@keyframes robotPop{0%{transform:scale(.85);opacity:.4}60%{transform:scale(1.04)}100%{transform:scale(1);opacity:1}}
.robot-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);color:var(--sky);white-space:nowrap;pointer-events:none}

.robot-actions{list-style:none;display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.robot-action{width:100%;min-height:78px;padding:8px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;text-align:center}
.robot-action .ico{width:32px;height:32px;animation:whyFloat 3.4s ease-in-out infinite}
.robot-actions li:nth-child(2) .ico{animation-delay:.35s}.robot-actions li:nth-child(3) .ico{animation-delay:.7s}
.robot-actions li:nth-child(4) .ico{animation-delay:.2s}.robot-actions li:nth-child(5) .ico{animation-delay:.55s}.robot-actions li:nth-child(6) .ico{animation-delay:.9s}
@keyframes whyFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.robot-action strong{font-family:'Nunito',sans-serif;font-weight:900;font-size:15px;line-height:1.15}
.robot-action small{font-size:11.5px;font-weight:700;color:inherit;opacity:.85;line-height:1.1}
.robot-action[aria-pressed="true"],.song[aria-pressed="true"]{transform:translateY(3px);box-shadow:0 2px 0 var(--why-edge);outline:3px solid var(--ink);outline-offset:2px}
button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--sky);outline-offset:3px}

.room-side{display:flex;flex-direction:column;gap:18px;min-width:0}
.room-card{background:#fff;border:0;border-radius:22px;padding:16px;box-shadow:0 6px 18px rgba(30,64,216,.08)}
.room-card-title{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:900;line-height:1.2;margin-bottom:12px}
.room-card-title .ico{width:34px;height:34px}

.chat-log{list-style:none;height:260px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:4px 4px 8px;scroll-behavior:smooth}
.chat-msg{display:flex;gap:8px;align-items:flex-end;max-width:92%}
.chat-msg .ico{width:30px;height:30px;color:var(--sky)}
.chat-msg p{padding:9px 13px;border-radius:16px;font-size:14.5px;line-height:1.45;font-weight:600}
.chat-msg p small{display:block;font-size:12.5px;font-weight:600;color:var(--muted);margin-top:2px}
.chat-msg.bot p{background:var(--white);border:2px solid rgba(27,163,224,.25);border-bottom-left-radius:4px}
.chat-msg.bot p b{font-family:'Nunito',sans-serif;font-weight:900;font-size:16px}
.chat-msg.kid{align-self:flex-end}
.chat-msg.kid p{background:#FFE8E2;border:2px solid rgba(232,93,76,.25);border-bottom-right-radius:4px}
.chat-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}
.chat-chip{min-height:44px;padding:8px 14px;font-size:13.5px;cursor:pointer}
.chat-chip .ico{width:22px;height:22px;color:var(--sky)}
.chat-form{display:flex;gap:8px}
.chat-form input{flex:1;width:0;min-width:0;min-height:52px;padding:0 18px;border-radius:999px;border:2px solid rgba(26,31,54,.1);background:var(--white);font-size:16px}
.chat-form input:focus{border-color:var(--sky);outline:none}
.chat-send{width:52px;height:52px;padding:0}
.chat-send .ico{width:26px;height:26px;color:#fff;--tone:#fff}
.chat-send .ico .duo{opacity:.45}

.chat-mic{width:52px;height:52px;padding:0;flex-shrink:0;background:var(--white);border:2px solid rgba(27,163,224,.45);box-shadow:0 6px 16px rgba(27,163,224,.18)}
.chat-mic .ico{width:26px;height:26px;--tone:var(--sky)}
.chat-mic:hover{border-color:var(--sky);background:var(--sky-soft)}
.chat-mic[aria-pressed="true"]{background:var(--red);border-color:var(--red);animation:micPulse 1.2s ease-out infinite}
.chat-mic[aria-pressed="true"] .ico{--tone:#fff}
.chat-mic.is-off{opacity:.5}
@keyframes micPulse{0%{box-shadow:0 0 0 0 rgba(227,28,61,.45)}100%{box-shadow:0 0 0 14px rgba(227,28,61,0)}}
.chat-send:disabled{opacity:.55;cursor:wait}
.chat-msg.typing b{letter-spacing:.2em;color:var(--muted);animation:typingBlink 1s ease-in-out infinite}
@keyframes typingBlink{50%{opacity:.35}}

/* Guests play in the open room. What needs an account carries a lock and opens the sheet (bolt-gate.mjs): Zalo for
   the parent, sign-in, then the first profile. Flat tones only: no gradients on new parts. */
body{position:relative}
.song.is-locked{--why-bg:#fff;--why-edge:#D5DAEA;--why-ink:#4A5170;--tone:#8A90A2;box-shadow:inset 0 0 0 2px #E3E7F3,0 3px 0 var(--why-edge)}
.song.is-locked .ico{width:24px;height:24px;margin:2px 0}
.song.is-locked small{opacity:.7}
.lock-tag{display:none;margin-left:auto;padding:5px 12px;border-radius:999px;background:#F1ECE3;color:var(--muted);font-size:13px;font-weight:700;white-space:nowrap}
body.is-guest .lock-tag:not(:empty){display:block}
body.is-guest .chat-log{height:auto}
.guest-bar{padding:8px}
.guest-get{flex:1;min-height:46px;padding:11px 14px;font-size:15px;white-space:nowrap}
.guest-bar .me-btn{white-space:nowrap}
.guest-get .ico{width:22px;height:22px;--tone:#fff}
.guest-get .ico .duo{opacity:.45}

.sheet[hidden]{display:none}
.sheet{position:absolute;inset:0;z-index:60}
.sheet-backdrop{position:absolute;inset:0;background:rgba(26,31,54,.5)}
.sheet-card{position:absolute;left:50%;top:12px;width:min(420px,calc(100% - 24px));max-height:calc(100% - 24px);overflow-y:auto;overscroll-behavior:contain;transform:translateX(-50%);padding:22px;box-shadow:0 24px 60px rgba(26,31,54,.28);animation:sheetIn .28s var(--ease)}
@keyframes sheetIn{from{opacity:0;transform:translate(-50%,14px)}to{opacity:1;transform:translate(-50%,0)}}
.sheet-close{position:absolute;top:10px;right:10px;width:48px;height:48px;display:grid;place-items:center;border:0;border-radius:50%;background:#F1ECE3;cursor:pointer;transition:background .2s,transform .2s var(--ease)}
.sheet-close:hover{background:#E7DFD2}
.sheet-close:active{transform:scale(.94)}
.sheet-close .ico{width:22px;height:22px;color:var(--ink)}
.sheet-card .room-card-title{padding-right:52px;font-size:22px}
.unlock-head{display:flex;align-items:center;gap:10px}
.unlock-head>.ico{width:44px;height:44px}
.unlock-head .room-card-title{padding-right:52px}
.unlock-qr{display:none;width:200px;height:200px;align-self:center;padding:10px;border-radius:var(--r);background:var(--white);border:1px solid var(--line)}
a.gate-submit{text-decoration:none}
@media(min-width:720px){.unlock-qr{display:block}}
.gate{display:flex;flex-direction:column;gap:14px}
.gate{display:flex;flex-direction:column;gap:14px}
.gate .room-card-title{margin-bottom:0}
.gate-note{font-weight:600;color:var(--muted)}
.gate-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:999px;background:#F1ECE3}
.gate-tab{min-height:44px;border:0;border-radius:999px;background:none;font-weight:800;font-size:14.5px;color:var(--muted);cursor:pointer;transition:background .2s var(--ease),color .2s}
.gate-tab[aria-selected="true"]{background:var(--white);color:var(--ink);box-shadow:0 2px 8px rgba(26,31,54,.08)}
.gate-form{display:flex;flex-direction:column;gap:12px}
.gate-field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700;color:var(--ink)}
.gate-input{min-height:52px;padding:0 18px;border-radius:999px;border:2px solid rgba(26,31,54,.14);background:var(--white);font-size:16px;font-weight:600;width:100%}
.gate-input::placeholder{color:#7A8194;font-weight:500}
.gate-input:focus{border-color:var(--sky);outline:none}
.gate-error{font-size:14px;font-weight:700;color:var(--red-deep)}
.gate-error[hidden]{display:none}
.gate-submit{width:100%;min-height:54px;font-size:16px}
.gate-submit:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.gate-label{font-family:'Nunito',sans-serif;font-size:16px;font-weight:900;margin-bottom:-4px}
.gate-pick{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pick-tile{position:relative;min-height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:22px;border:2.5px solid rgba(26,31,54,.1);background:var(--white);cursor:pointer;transition:transform .2s var(--ease),border-color .2s,background .2s}
.pick-tile .ico{width:44px;height:44px}
.pick-tile strong{font-family:'Nunito',sans-serif;font-weight:900;font-size:16px}
.pick-tile .pick-sound{position:absolute;top:10px;right:10px;width:20px;height:20px;color:var(--muted);--tone:var(--muted)}
.pick-tile:hover{transform:translateY(-2px);border-color:var(--tone)}
.pick-tile:active{transform:scale(.98)}
.pick-tile[aria-checked="true"]{border-color:var(--tone);background:var(--pick-bg)}
.pick-tile.tone-sky{--pick-bg:var(--sky-soft)}.pick-tile.tone-coral{--pick-bg:#FFE9E5}
.gate-pick-skins{grid-template-columns:repeat(2,1fr);gap:8px}
.pick-tile-skin{min-height:56px;flex-direction:row;gap:10px;padding:8px 12px;border-radius:14px;border-width:2px}
.pick-tile-skin strong{font-size:14.5px;font-weight:800;color:var(--ink)}
.gate-skin-dots{display:inline-flex;gap:3px;align-items:center}
.gate-skin-dots span{width:11px;height:11px;border-radius:50%;background:var(--swatch);border:1px solid rgba(26,31,54,.15)}
.pick-tile-skin[aria-checked="true"]{border-color:var(--sky);background:var(--sky-soft)}
.gate-actions{display:flex;flex-direction:column;align-items:center;gap:6px}
.gate-link{min-height:44px;border:0;background:none;font-weight:700;color:var(--muted);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.me-bar[hidden]{display:none}
.me-bar{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 14px;background:#fff;border:0;border-radius:999px;box-shadow:0 6px 18px rgba(30,64,216,.08)}
.me-kid{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--sky-soft)}
.me-kid.tone-coral{background:#FFE9E5}
.me-kid .ico{width:24px;height:24px}
.me-bar b{flex:1;min-width:0;font-family:'Nunito',sans-serif;font-weight:900;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-btn{min-height:44px;padding:8px 14px;cursor:pointer}
.me-btn .ico{width:20px;height:20px;color:var(--muted)}
@media(max-width:979px){.me-bar{grid-column:1/-1}}
@media(max-width:720px){.me-bar{align-self:stretch}}

.song-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-height:356px;overflow-y:auto;padding:4px 4px 10px;margin:-4px -4px 0;overscroll-behavior:contain}
.song{min-height:84px;padding:8px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;text-align:center}
.song:hover{transform:translateY(-3px)}
.song .ico{width:28px;height:28px}
.song strong{font-family:'Nunito',sans-serif;font-weight:900;font-size:14px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.song-note{grid-column:1/-1;font-size:14px;font-weight:600;color:var(--muted);padding:6px 2px}
.song small{font-size:11.5px;font-weight:700;color:inherit;opacity:.85;line-height:1.2}

/* Room switch on the stage: two picture buttons, bottom left. */
.room-switch[hidden]{display:none}
.room-switch{position:absolute;left:14px;bottom:14px;z-index:10;display:flex;gap:6px;padding:5px;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 4px 14px rgba(26,31,54,.12)}
.room-tile{display:inline-flex;align-items:center;gap:7px;min-height:48px;padding:6px 14px 6px 10px;border:0;border-radius:999px;background:none;font-weight:800;font-size:14px;color:var(--muted);cursor:pointer;transition:background .2s var(--ease),color .2s,transform .2s var(--ease)}
.room-tile .ico{width:30px;height:30px;--tone:var(--muted)}
.room-tile:hover{background:#F1ECE3}
.room-tile:active{transform:scale(.96)}
.room-tile[aria-pressed="true"]{background:var(--sky-soft);color:var(--ink)}
.room-tile[aria-pressed="true"] .ico{--tone:var(--sky)}
.room-tile[aria-busy="true"]{opacity:.6;cursor:progress}

/* Đố vui cùng Bolt: ages, then one question at a time with big taps, then the parent's result. */
.room-card-count{margin-left:auto;font-family:'Be Vietnam Pro',sans-serif;font-size:13px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.exam-card[hidden]{display:none}
.exam-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:2px 2px 6px}
.exam-item{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:64px;padding:10px 12px;text-decoration:none}
.exam-item strong{font-family:'Nunito',sans-serif;font-size:14.5px;font-weight:900;line-height:1.2}
.exam-item small{font-size:12px;font-weight:700;opacity:.85}

.robot-outfits{display:flex;flex-wrap:wrap;gap:10px}
.robot-outfit{min-height:52px;padding:10px 16px;font-size:14.5px;cursor:pointer}
.robot-outfit i{display:flex;gap:3px}
.robot-outfit i span{width:12px;height:12px;border-radius:50%;background:var(--swatch);border:1px solid rgba(26,31,54,.12)}
.robot-outfit[aria-pressed="true"]{border:2px solid var(--sky);color:var(--sky);background:var(--sky-soft)}

@media(max-width:1240px) and (min-width:980px){
  .room{grid-template-columns:minmax(0,1fr) 360px}
  .robot-actions{grid-template-columns:repeat(3,1fr)}
  .robot-action{min-height:72px}
}
@media(max-width:979px){
  .room{grid-template-columns:1fr}
  .room-visual{height:clamp(340px,62vw,560px)}
  .robot-actions{grid-template-columns:repeat(3,1fr)}
  .room-side{display:grid;grid-template-columns:1fr 1fr;align-items:start}
  .guest-bar,.exam-card{grid-column:1/-1}
  .chat-card{grid-row:span 2}
}
@media(max-width:720px){
  .hd{min-height:68px}
  .logo-img{height:46px}
  .nav-a.on,.nav-sound-label{display:none}
  .nav-sound .ico{width:24px;height:24px}
  .room{padding:14px 14px 32px;gap:18px}
  .room-side{display:flex}
  .exam-visual{box-shadow:6px 6px 0 rgba(244,194,61,.9)}
  .robot-action{min-height:70px}
  .robot-action .ico{width:28px;height:28px}
  .robot-bubble{left:12px;top:12px;max-width:calc(100% - 24px);padding:8px 13px}
  .robot-bubble::after{left:30px}
  .robot-bubble b{font-size:19px}
  .robot-bubble span{font-size:13px}
  /* One column on phones: what the child can play first, then the mock tests, chat and songs. */
  .room{display:flex;flex-direction:column;align-items:stretch}
  .room-visual{height:clamp(400px,112vw,520px)}
  .room-main,.room-side{display:contents}
  .room-visual{order:1}.robot-actions{order:2}.me-bar{order:3}
  .exam-card{order:4}.chat-card{order:5}.song-card{order:6}
  .robot-hint{display:none}
  .room-switch{left:10px;bottom:10px}
  .room-tile{padding:6px 12px 6px 8px;font-size:13.5px}
  .sheet-card{padding:18px}
}
@media(prefers-reduced-motion:reduce){
  .robot-action .ico,.robot-bubble.pop,.chat-mic[aria-pressed="true"],.chat-msg.typing b,.sheet-card{animation:none}
  .why-card,.btn,.nav-cta{transition:none}
}

.robot-sound-pill{position:absolute;top:16px;right:16px;z-index:10;cursor:pointer;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border:1.5px solid var(--sky);box-shadow:0 4px 14px rgba(26,31,54,.08);transition:transform .2s var(--ease),background .2s}
.robot-sound-pill:hover{transform:scale(1.04)}
.robot-sound-pill .ico{width:18px;height:18px;--tone:var(--sky)}
.robot-sound-pill[aria-pressed="false"] .ico{--tone:var(--red)}
/* Voice picker: four compact rows (boy / girl robot, voice 1 and 2) instead of two tall tiles. */
.gate-pick-voices{gap:8px}
.pick-tile-voice{min-height:56px;flex-direction:row;gap:10px;padding:8px 14px;border-radius:14px;border-width:2px;justify-content:flex-start}
.pick-tile-voice .ico{width:28px;height:28px}
.pick-tile-voice strong{font-size:14.5px;font-weight:800;color:var(--ink)}
.pick-tile-voice .pick-sound{top:50%;right:12px;transform:translateY(-50%)}
/* Customise: a small pill under the sound pill and a panel that stays open until closed. */
.robot-custom-pill{position:absolute;top:60px;right:16px;z-index:10;cursor:pointer;background:rgba(255,255,255,.94);border:1.5px solid var(--sky);box-shadow:0 4px 14px rgba(26,31,54,.08)}
.robot-custom-pill .ico{width:18px;height:18px;--tone:var(--sky)}
.robot-custom-pill[aria-expanded="true"]{background:var(--sky);color:#fff}
.robot-custom-pill[aria-expanded="true"] .ico{--tone:#fff}
.custom-panel{position:absolute;top:104px;right:16px;z-index:12;width:min(320px,calc(100% - 32px));padding:14px;border-radius:18px;background:#fff;box-shadow:0 14px 34px rgba(20,24,58,.18);display:flex;flex-direction:column;gap:10px}
.custom-panel[hidden]{display:none}
.custom-title{font-size:14px;font-weight:900;color:var(--ink)}
.custom-panel .robot-outfit{min-height:44px;padding:8px 14px;font-size:14px}
.custom-voice-btn{min-height:44px;cursor:pointer}
.custom-voice-btn .ico{width:18px;height:18px}
@media(max-width:720px){.robot-custom-pill{top:56px;right:12px}.custom-panel{top:100px;right:12px}}
/* Sample answers from the robot sit before the helpers, in the robot's colour. */
.chat-chip.is-answer{background:var(--sky);border-color:var(--sky);color:#fff}
.chat-chip.is-answer:hover{background:#132C9E;color:#fff}
/* Stop while a song plays: in the middle of the stage, above the floor. */
.song-stop{position:absolute;left:50%;bottom:16px;z-index:11;transform:translateX(-50%);min-height:44px;padding:10px 20px;font-size:15px}
.song-stop[hidden]{display:none}
.song-stop .ico{width:20px;height:20px;--tone:#fff}
.robot-outfit.is-locked{color:var(--muted)}
.robot-outfit.is-locked .ico{width:16px;height:16px;--tone:#8A90A2}
.room-switch{padding:4px}
.room-tile{white-space:nowrap;min-height:40px;padding:6px 12px 6px 8px;font-size:13.5px}
.room-tile .ico{width:22px;height:22px}
@media(max-width:720px){.robot-bubble{max-width:calc(100% - 84px)}}
