/* Game On! phone page (/play/). White, navy, red and greys; Nunito bold; nothing under 16px. */
:root {
  --navy: #1C1838; --red: #E0136F; --g1: #4A4766; --g2: #6B6888; --g3: #8F8CA8; --g4: #D5D8EC; --g5: #E8EBF8; --g6: #F3F5FF;
  --A: #1C1838; --B: #E0136F; --C: #4A4766; --D: #6B6888; --r: 10px;
  --font: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif; color-scheme: light;
}
[hidden] { display: none !important }
* { box-sizing: border-box; font-style: normal; -webkit-tap-highlight-color: transparent }
html, body { margin: 0; min-height: 100%; background: #fff }
body.gqe-play { color: var(--navy); font: 800 18px/1.35 var(--font); overflow-x: hidden }
button, input { font: inherit; color: inherit }
button { cursor: pointer }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px }
.ic { width: 1em; height: 1em; fill: currentColor; vertical-align: -.13em; flex: none }
#play { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); max-width: 640px; margin: 0 auto }
.card { display: flex; flex-direction: column; gap: 14px; animation: pop .3s both }
.card.center { align-items: center; text-align: center; justify-content: center }
.card.grow { flex: 1 }
.pv.join .card { margin: auto 0; width: 100% }
.stack { display: flex; flex-direction: column; gap: 12px; width: 100% }
.plogo { font-size: 58px; font-weight: 900; line-height: 1; letter-spacing: -.02em; display: flex; justify-content: center; gap: .12em; align-items: baseline }
.plogo.small { font-size: 36px }
.on { color: var(--red) }
.bang { display: inline-block; color: var(--red); transform-origin: bottom center; animation: bang 2.4s ease-in-out infinite }
@keyframes bang { 0%, 70%, 100% { transform: rotate(0) } 78% { transform: rotate(14deg) } 86% { transform: rotate(-10deg) } 94% { transform: rotate(6deg) } }
.lead { margin: 0; color: var(--g1); font-size: 19px }
.lead b { color: var(--navy) }
.lbl { margin: 0; font-size: 16px; color: var(--g1); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; text-align: left; width: 100% }
.gname { font-size: 20px; color: var(--g1) }
.big-in { width: 100%; border: 3px solid var(--g4); border-radius: var(--r); padding: 14px 16px; font-size: 32px; font-weight: 900; text-align: center; background: #fff; letter-spacing: .04em }
.big-in:focus { border-color: var(--navy); outline: none }
.err { margin: 0; color: var(--navy); background: #fff; border-radius: 8px; padding: 8px 12px; box-shadow: inset 0 0 0 2px var(--red); font-size: 17px; width: 100% }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: var(--r); padding: 14px 20px; font-weight: 900; font-size: 20px; background: var(--navy); color: #fff; box-shadow: 0 10px 22px -6px color-mix(in srgb, #000a 55%, transparent); transition: transform .12s, background .15s }
.btn:hover { background: var(--red) }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 6px -2px color-mix(in srgb, #000a 55%, transparent) }
.btn:disabled { background: var(--g4); color: var(--g1); box-shadow: none }
.btn.ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--g4) }
.btn.ghost:hover { color: var(--red); box-shadow: inset 0 0 0 2px var(--red) }
.btn.big { font-size: 24px; padding: 16px 22px }
.btn.full { width: 100% }
.btn.busy { opacity: .7 }

/* avatars */
.av { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 22px; flex: none; overflow: hidden }
.av.av-img { background: #fff; box-shadow: inset 0 0 0 2px var(--g5) }
.av img { width: 100%; height: 100%; object-fit: contain }
.av.huge { width: 120px; height: 120px; font-size: 64px }
.av.bounce { animation: bounce 1.6s ease-in-out infinite }
@keyframes bounce { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.me-big { display: flex; flex-direction: column; align-items: center; gap: 8px }
.me-big .nick { font-size: 28px; font-weight: 900; overflow-wrap: anywhere }
.avpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; flex-shrink: 0 }
.avb { border: 0; background: var(--g6); border-radius: var(--r); padding: 10px 0; display: grid; place-items: center; transition: transform .12s, box-shadow .12s }
.avb .av { width: 54px; height: 54px; font-size: 30px }
.avb:hover { box-shadow: inset 0 0 0 2px var(--red) }
.avb.on { box-shadow: inset 0 0 0 3px var(--red); background: #fff; transform: scale(1.05) }

/* top bar in the game */
.ptop { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--g5); margin-bottom: 10px }
.ptop .nick { font-weight: 900; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0 }
.ptop .sp { flex: 1 }
.ptop .score { font-weight: 900; font-size: 19px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap }
.ptop .score .ic { color: var(--red) }
.tchip { background: var(--g5); border-radius: 8px; padding: 2px 8px; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40% }
.big-msg { margin: 0; font-size: 38px; font-weight: 900; line-height: 1.1 }
.bigic { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 60px; background: var(--g5); color: var(--navy); animation: popin .5s cubic-bezier(.2, 1.5, .4, 1) both }
.res.ok .bigic { background: var(--navy); color: #fff }
.res.no .bigic { background: #fff; color: var(--red); box-shadow: inset 0 0 0 5px var(--red) }
.bigic.medal { background: var(--red); color: #fff }
.bigic.medal.m2 { background: var(--navy) }
.bigic.medal.m3 { background: var(--g1) }
@keyframes popin { 0% { transform: scale(0) } 70% { transform: scale(1.12) } 100% { transform: none } }
@keyframes pop { from { transform: scale(.94); opacity: 0 } to { transform: none; opacity: 1 } }
.pts { font-size: 54px; font-weight: 900; color: var(--navy); animation: popin .6s .15s both }
.streak { display: inline-flex; gap: 6px; align-items: center; font-size: 20px; font-weight: 900; color: var(--navy) }
.streak .ic { color: var(--red) }
.rank { font-size: 22px; color: var(--g1); background: var(--g6); border-radius: var(--r); padding: 10px 16px }
.rank b { color: var(--navy); font-size: 28px }
.rankbig { font-size: 84px; font-weight: 900; line-height: 1; color: var(--red) }
.rightans { display: flex; align-items: center; gap: 12px; color: #fff; border-radius: var(--r); padding: 12px 16px; font-size: 22px; font-weight: 900; width: 100%; text-align: left }
.rightans .shp { width: 34px; height: 34px; flex: none }
.dots { display: flex; gap: 8px }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--g4); animation: dot 1.2s ease-in-out infinite }
.dots i:nth-child(2) { animation-delay: .2s }
.dots i:nth-child(3) { animation-delay: .4s }
@keyframes dot { 0%, 100% { transform: scale(.7); background: var(--g4) } 50% { transform: scale(1.1); background: var(--red) } }

/* question */
.pv.question { min-height: 100vh; min-height: 100dvh }
.qinfo { display: flex; align-items: center; gap: 12px; color: var(--g1); font-size: 17px }
.tbar { flex: 1; height: 12px; background: var(--g5); border-radius: 6px; overflow: hidden }
.tbar span { display: block; height: 100%; width: var(--w); background: var(--red); border-radius: 6px }
.tbar span.run { width: 0; transition: width var(--d) linear }
.pq { margin: 10px 0; white-space: pre-line; font-size: 21px; font-weight: 900; line-height: 1.25 }
.answers { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; min-height: 52vh }
.ans { border: 0; border-radius: var(--r); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; font-size: 18px; font-weight: 900; line-height: 1.2; box-shadow: 0 11px 24px -7px color-mix(in srgb, #000a 55%, transparent); transition: transform .12s, opacity .2s; overflow-wrap: anywhere }
.ans .shp { width: 56px; height: 56px; flex: none }
.ans:active { transform: translateY(4px); box-shadow: 0 2px 6px -2px color-mix(in srgb, #000a 55%, transparent) }
.ans.faded { opacity: .25 }
.ans.picked { transform: scale(1.03); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--red) }
.a0 { background: var(--A) } .a1 { background: var(--B) } .a2 { background: var(--C) } .a3 { background: var(--D) }
.sent { width: 140px; height: 140px; border-radius: var(--r); display: grid; place-items: center; animation: popin .5s both }
.sent .shp { width: 84px; height: 84px }
.offline { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); background: #fff; color: var(--navy); border-radius: var(--r); padding: 10px 16px; box-shadow: inset 0 0 0 2px var(--red), 0 10px 30px #1C183830; font-size: 17px; z-index: 50 }
.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff; border-radius: var(--r); padding: 12px 18px; font-size: 17px; max-width: calc(100% - 32px) }
.toast.bad { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 3px var(--red) }
@media (min-width: 700px) { .ans { font-size: 22px } .pq { font-size: 26px } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition: none !important } }

/* ================= v0.2: her logo, animals, mini-games ================= */
.logo-img { display: block; height: auto; max-width: 100%; user-select: none; -webkit-user-drag: none }
.plogo { display: flex; justify-content: center }
.plogo .logo-img { width: min(260px, 70vw); animation: drop 1s cubic-bezier(.3, 1.5, .5, 1) both }
.plogo.small .logo-img { width: min(150px, 42vw) }
@keyframes drop { 0% { transform: translateY(-60vh) } 60% { transform: none } 75% { transform: translateY(-14px) scale(1.03, .97) } 100% { transform: none } }
.av.av-img { background: #fff; box-shadow: 0 0 0 2px var(--g5) }
.av.av-img img { transform: scale(1.08) }
.av.big { width: 44px; height: 44px }
.av.huge { width: 140px; height: 140px }
.ptop .av { width: 44px; height: 44px }
.avname { color: var(--g1); font-size: 18px; min-height: 24px }
.avpick { grid-template-columns: repeat(4, 1fr) }
.avb { position: relative; padding: 8px 0 }
.avb .av { width: 62px; height: 62px }
.avb.taken .av { opacity: .35 }
.avb .tk { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); background: var(--g5); color: var(--g1); border-radius: 6px; padding: 0 6px; font-size: 16px; line-height: 1.3 }
.stickyjoin { position: sticky; bottom: 0; background: #fff; padding: 10px 0 4px; width: 100%; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -10px 16px #fff }
@media (min-width: 560px) { .avpick { grid-template-columns: repeat(5, 1fr) } }

/* mini-games */
.mgintro .kicker { color: var(--red); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: 16px }
.mgcount { height: 120px; display: grid; place-items: center }
.mgcount span { font-size: 100px; font-weight: 900; color: var(--red); line-height: 1; animation: popin .8s both }
.mgcount .ready { font-size: 34px; color: var(--navy); animation: none }
.pv.mini.playing { min-height: 100vh; min-height: 100dvh }
.mghead { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 22px }
.mgscore { display: inline-flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 900 }
.mgscore .ic { color: var(--red) }
#mgsc.bump { animation: bump .3s }
@keyframes bump { 50% { transform: scale(1.4) } }
.mgt { margin: 8px 0 12px; flex: none; height: 14px }
.mgt span { transition: width .1s linear; width: 100% }
.mgarea { flex: 1; display: flex; flex-direction: column; gap: 14px; align-items: stretch; justify-content: flex-start; min-height: 0 }
.mgsub { margin: 0; color: var(--g1); text-align: center; font-size: 18px }
.mgmsg { margin: auto; font-size: 32px; font-weight: 900; display: flex; gap: 10px; align-items: center }
.mgmsg .ic { color: var(--red) }
.tapbtn { margin: auto; width: min(72vw, 340px); aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 60px; font-weight: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 18px 38px -14px color-mix(in srgb, #1C1838 55%, transparent), 0 20px 40px #1C183840; touch-action: manipulation; user-select: none }
.tapbtn .ic { font-size: 70px }
.tapbtn.hit { animation: tap .12s }
@keyframes tap { 50% { transform: translateY(8px) scale(.96); box-shadow: 0 10px 22px -6px color-mix(in srgb, #1C1838 55%, transparent) } }
.tapbtn:hover { background: var(--navy); box-shadow: 0 18px 38px -14px color-mix(in srgb, #000 55%, transparent), 0 20px 40px #1C183840 }
.slots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap }
.slots span { width: 44px; height: 54px; border-bottom: 4px solid var(--g4); display: grid; place-items: center; font-size: 30px; font-weight: 900; cursor: pointer }
.slots span.on { border-color: var(--navy) }
.slots.good span, .built.good .bw { background: var(--navy); color: #fff; border-radius: 8px }
.tiles { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap }
.tile { min-width: 54px; height: 58px; border: 0; border-radius: var(--r); background: var(--navy); color: #fff; font-size: 28px; font-weight: 900; box-shadow: 0 11px 24px -7px color-mix(in srgb, #000a 55%, transparent); padding: 0 12px; touch-action: manipulation }
.tile:hover { background: var(--red) }
.tile:disabled { opacity: .2; box-shadow: none }
.tile.w { font-size: 20px; height: 50px }
.row2 { display: flex; gap: 10px; justify-content: center }
.shake { animation: shake .4s }
@keyframes shake { 20%, 60% { transform: translateX(-10px) } 40%, 80% { transform: translateX(10px) } }
.memgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; flex: 1 }
.memgrid .mcard { min-height: 70px }
@media (min-width: 440px) { .memgrid { grid-template-columns: repeat(3, 1fr) } .memgrid .mcard { min-height: 82px } }
@media (min-width: 600px) { .memgrid { grid-template-columns: repeat(4, 1fr) } }
.mcard { position: relative; border: 0; border-radius: var(--r); min-height: 82px; background: transparent; perspective: 600px; padding: 0 }
.mcard span { position: absolute; inset: 0; border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; transition: transform .4s; padding: 4px; font-size: 17px; font-weight: 900; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; text-align: center }
.mback { background: var(--navy); color: #fff; font-size: 34px !important }
.mface { background: #fff; box-shadow: inset 0 0 0 3px var(--g4); transform: rotateY(180deg) }
.mface small { font-size: 16px; color: var(--red) }
.mcard.flip .mback { transform: rotateY(180deg) }
.mcard.flip .mface { transform: none }
.mcard.done .mface { box-shadow: inset 0 0 0 3px var(--navy); background: var(--g6) }
.tfst { font-size: 24px; font-weight: 900; text-align: center; margin: 10px 0; line-height: 1.25; min-height: 120px; display: grid; place-items: center }
.tfbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.tfb { border: 0; border-radius: var(--r); padding: 26px 10px; font-size: 26px; font-weight: 900; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 11px 24px -7px color-mix(in srgb, #000a 55%, transparent); touch-action: manipulation }
.tfb.t { background: var(--navy) } .tfb.f { background: var(--red) }
.tfb:active { transform: translateY(4px); box-shadow: 0 2px 6px -2px color-mix(in srgb, #000a 55%, transparent) }
.built { min-height: 64px; border-radius: var(--r); background: var(--g6); padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center }
.built .ph { color: var(--g1) }
.bw { border: 0; background: #fff; border-radius: 8px; padding: 8px 10px; font-size: 20px; font-weight: 900; box-shadow: inset 0 0 0 2px var(--g4) }
.clue { text-align: center; font-size: 22px; background: var(--g6); border-radius: var(--r); padding: 8px }
.clue b { color: var(--red); font-size: 26px }
.mgcv { width: 100%; flex: 1; min-height: min(52vh, calc(100dvh - 250px)); max-height: calc(100dvh - 230px); border-radius: var(--r); background: var(--g6); touch-action: none; display: block }
.mgcv.tall { min-height: min(58vh, calc(100dvh - 230px)); max-height: calc(100dvh - 200px) }

/* waiting for the teacher (/play/?join=latest) */
.pv.waiting .card { gap: 18px }
.waitic { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--g6); color: var(--navy); font-size: 48px; animation: waitpulse 1.6s ease-in-out infinite }
@keyframes waitpulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 10px var(--g5) } }
.pv.waiting .big-msg { max-width: 520px }

/* inside a lesson (iframe about 1000 x 700): compact, no page chrome, still 16px or more */
body.embed #play { min-height: 100vh; max-width: 900px; padding: 12px 20px }
body.embed .plogo { font-size: 44px }
body.embed .plogo.small { font-size: 30px }
body.embed .card { gap: 10px }
body.embed .av.huge { width: 88px; height: 88px; font-size: 48px }
body.embed .me-big .nick { font-size: 24px }
body.embed .big-in { padding: 10px 14px; font-size: 28px }
body.embed .btn.big { font-size: 22px; padding: 12px 20px }
body.embed .pv.join .card { max-width: 640px; margin: auto }
body.embed .avpick { grid-template-columns: repeat(8, 1fr); gap: 8px }
body.embed .avb { padding: 6px 0 }
body.embed .avb .av { width: 48px; height: 48px }
body.embed .waitic { width: 76px; height: 76px; font-size: 40px }
.answers.long { grid-template-columns: 1fr }
.answers.long .ans { flex-direction: row; justify-content: flex-start; text-align: left; font-size: 18px; min-height: 0; padding: 12px 16px }
@media (min-width: 700px) { .answers.long { grid-template-columns: 1fr 1fr } .answers.long .ans { font-size: 19px } }
.pq.long { font-size: 18px } @media (min-width: 700px) { .pq.long { font-size: 21px } }
.pimg { display: block; max-width: 100%; max-height: 24vh; margin: 0 auto 10px; object-fit: contain; background: #fff; border-radius: 8px }
.pimg ~ .answers { min-height: 0; grid-auto-rows: minmax(84px, auto) }
.pleave { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; background: var(--g5); color: var(--navy); font: inherit; font-weight: 900; font-size: 16px; padding: 6px 10px; cursor: pointer }
.pleave:hover { background: var(--red); color: #fff }
.pleave .ic { width: 16px; height: 16px }
.pq .ppt { display: block; font-size: max(16px, .72em); color: var(--g1); font-weight: 800; margin-top: 6px }
.ans .ppt { display: block; font-size: 16px; color: rgba(255, 255, 255, .92); font-weight: 800; margin-top: 2px }
/* Portuguese under the English in the mini-games (dark grey, in parentheses) */
.mpt { display: block; font-size: 16px; line-height: 1.3; color: var(--g1); font-weight: 800; margin-top: 4px; letter-spacing: 0; text-transform: none }
.big-msg .mpt { font-size: max(18px, .42em) }
.mpt.i { display: inline; margin: 0 }
.ready small, .tfb small { display: block; font-size: 16px; font-weight: 800; opacity: .85 }
.tfst .mpt { font-size: max(16px, .7em) }
.pausechip { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; font-weight: 900; font-size: 16px; padding: 4px 12px; border-radius: 8px }
/* action rounds (play-act.js) */
.acthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 8px; font-size: 20px }
.actmv { display: inline-flex; align-items: center; gap: 6px; background: var(--g6); border-radius: 8px; padding: 6px 12px; font-size: 17px; white-space: nowrap }
.actmv svg { color: var(--red) }
.actrule { margin: 8px 0 10px }
.actarea { position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0 }
.actover { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; text-align: center; gap: 4px; background: #fff; font-size: 28px; font-weight: 900; color: var(--navy); border-radius: 10px } /* opaque: its message never sits on top of other text */

/* link back to her website, at the bottom of the join and end screens */
.sitelink { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px auto 6px; padding: 10px 16px; border-radius: 10px; color: var(--g1); font-size: 17px; font-weight: 900; text-decoration: none; text-align: center; flex-wrap: wrap }
.sitelink svg { width: 20px; height: 20px }
.sitelink .mpt { display: inline; margin: 0 }
.sitelink:hover { color: var(--red) }

/* Lightning Dash (Robot Chase): 4 big zones, the first tap counts */
.dhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 6px; flex-wrap: wrap }
.dkick { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--red); font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: .05em }
.dkick .mpt { text-transform: none; letter-spacing: 0 }
.drule { margin: 0 0 10px; font-size: 18px; line-height: 1.3; color: var(--navy) }
.dzones { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; min-height: 54vh }
.dz { border: 0; border-radius: var(--r); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px 8px; font-size: 24px; font-weight: 900; line-height: 1.15; box-shadow: 0 11px 24px -7px color-mix(in srgb, #000a 55%, transparent); touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform .12s, opacity .2s; animation: pop .3s both }
.dz .dshp { width: 76px; height: 76px; flex: none }
.dz:active { transform: translateY(4px); box-shadow: 0 2px 6px -2px color-mix(in srgb, #000a 55%, transparent) }
.dz:disabled { cursor: default }
.dz.faded { opacity: .25 }
.dz.picked { transform: scale(1.03); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--red) }
.dz:disabled:not(.picked):not(.faded) { opacity: .45 }
.dzl { display: flex; flex-direction: column; align-items: center }
.dzpt { font-size: 16px; font-weight: 800; color: var(--g5) }
.z0 { background: var(--A) } .z1 { background: var(--B) } .z2 { background: var(--C) } .z3 { background: var(--D) }
.dlock .dkick { justify-content: center }
.dpick { width: 150px; height: 150px; border-radius: var(--r); display: grid; place-items: center; animation: popin .5s both; box-shadow: 0 12px 26px -8px color-mix(in srgb, #000a 55%, transparent) }
.dpick .dshp { width: 96px; height: 96px }
.dlock.early .dpick { box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--red); animation: shake .5s }
.dsafe { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 18px; color: var(--g1); font-weight: 900 }
.dsafe > .mpt { display: inline }
.dsz { display: inline-flex; align-items: center; gap: 10px; color: #fff; border-radius: var(--r); padding: 8px 16px; font-size: 22px; flex-wrap: wrap; justify-content: center }
.dsz .dshp { width: 36px; height: 36px }
.dsz .mpt { color: var(--g5) }
.bigic.zapic { background: var(--red); color: #fff; box-shadow: 0 0 0 8px #E0136F33; animation: zapin .7s both }
@keyframes zapin { 0% { transform: scale(0) rotate(-20deg) } 40% { transform: scale(1.2) rotate(10deg); box-shadow: 0 0 0 22px #E0136F40 } 60% { transform: scale(.95) rotate(-6deg) } 100% { transform: none } }
.pts.neg { color: var(--navy) }
@media (max-height: 700px) { .dzones { min-height: 48vh } .dz .dshp { width: 60px; height: 60px } }

/* English-only games (Bilingual school): no Portuguese on the phones */
.en-only .mpt, .en-only .ppt, .en-only .dzpt, .en-only [lang="pt-BR"].clue-pt { display: none !important }

/* ======================================================================
   GAME ON QUEST SKIN (phones and Chromebooks)
   ====================================================================== */
:root {
  --navy: #1C1838; --red: #E0136F; --blue: #2457F5; --blue-d: #1A3FC4; --blue-t: #E8EEFF; --stage: #1E4BE0; --stage2: #3563FF;
  --pink: #E0136F; --pink-d: #B00E57; --orange: #E85D04; --orange-d: #B84903; --green: #00916E; --green-d: #007055; --yellow: #FFC531; --yellow-d: #E0A500;
  --g1: #4A4766; --g2: #6B6888; --g3: #8F8CA8; --g4: #D5D8EC; --g5: #E8EBF8; --g6: #F3F5FF;
  --A: #E0136F; --B: #2457F5; --C: #E85D04; --D: #00916E;
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
}
html, body { background: var(--stage) }
body.gqe-play { color: var(--navy) }
:focus-visible { outline-color: var(--yellow) }
.card { background: #fff; border-radius: 10px; padding: 22px 18px; box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--blue-d) 55%, transparent) }
.pv.question .card, .pv.mini .card { background: transparent; box-shadow: none; padding: 0 }
.plogo { filter: drop-shadow(0 12px 26px -8px color-mix(in srgb, rgba(10,30,120,.35) 55%, transparent)) }
.btn { background: var(--yellow); color: var(--navy); box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--yellow-d) 55%, transparent); border-radius: 10px }
.btn:hover { background: #FFCD4D }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--yellow-d) 55%, transparent) }
.btn.ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 3px var(--g4), 0 10px 22px -6px color-mix(in srgb, var(--g4) 55%, transparent) }
.big-in { border: 3px solid var(--navy); border-radius: 10px; font-weight: 900 }
.big-in:focus { border-color: var(--blue); box-shadow: 0 0 0 4px #FFC53180 }
.err { color: var(--pink-d) }
.av { border-radius: 10px }
.avb { border-radius: 10px; box-shadow: inset 0 0 0 3px var(--g5) }
.avb:hover { box-shadow: inset 0 0 0 3px var(--blue) }
.avb.on { box-shadow: inset 0 0 0 4px var(--blue), 0 10px 22px -6px color-mix(in srgb, var(--blue-d) 55%, transparent); background: var(--blue-t) }
.ptop { background: #fff; border-radius: 10px; padding: 8px 10px; box-shadow: 0 11px 24px -7px color-mix(in srgb, var(--blue-d) 55%, transparent) }
.ptop .score { color: var(--navy) }
.ptop .score .ic { color: var(--yellow-d) }
.tchip { border-radius: 8px }
.big-msg { font-family: var(--display); font-weight: 800 }
.pv.question .big-msg, .pv.waiting .big-msg { color: #fff }
.res.ok .bigic { background: var(--green); color: #fff; border-radius: 10px }
.res.no .bigic { background: var(--pink); color: #fff; border-radius: 10px }
.tbar { background: #ffffff40; border-radius: 8px }
.tbar span { background: var(--yellow) }
.pq { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--blue-d) 55%, transparent) }
.qinfo { color: #fff }
.ans { border-radius: 10px; box-shadow: 0 13px 28px -9px color-mix(in srgb, rgba(0,0,0,.25) 55%, transparent); font-weight: 900 }
.ans:active { transform: translateY(4px); box-shadow: 0 9px 20px -5px color-mix(in srgb, rgba(0,0,0,.25) 55%, transparent) }
.ans.picked { box-shadow: 0 0 0 5px #fff, 0 0 0 10px var(--yellow) }
.sent { border-radius: 10px }
.dots i { background: #fff }
.lead { color: var(--g1) }
.pv.question .lead, .pv.waiting .lead { color: #E8EEFF }
.pleave { border-radius: 10px }
.toast { background: var(--navy); border-radius: 10px }
.sitelink { color: #fff }
.mgscore { background: var(--yellow); color: var(--navy); border-radius: 10px; box-shadow: 0 10px 22px -6px color-mix(in srgb, var(--yellow-d) 55%, transparent) }
.tapbtn { border-radius: 10px }
.tile { border-radius: 10px }
.memgrid .mcard { border-radius: 10px }
.tfb { border-radius: 10px }
/* contrast fixes: links inside white cards are dark; the mini-game title on the blue screen is white */
.card .sitelink, .card .sitelink .mpt { color: var(--ink2, #4A4766) }
.sitelink .mpt { color: inherit }
.mghead b { color: #fff; font-family: 'Baloo 2', Nunito, sans-serif; font-weight: 800; font-size: 26px; text-shadow: 0 9px 20px -5px color-mix(in srgb, var(--blue-d, #1A3FC4) 55%, transparent) }
.mghead b .mpt { color: #E8EEFF; text-shadow: none }

/* ================= Robot Zones (phone) ================= */
.zph { display: flex; flex-direction: column; gap: 12px; flex: 1; position: relative }
.zbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 10px; padding: 10px 14px; box-shadow: 0 11px 24px -7px color-mix(in srgb, var(--blue-d) 55%, transparent) }
.zbar .dkick { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 900; color: #1C1838; text-transform: none; letter-spacing: 0 }
.zbar .dkick .ic { color: var(--pink) }
.zclock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 26px; color: #1C1838; min-width: 64px; justify-content: flex-end }
.zclock .ic { color: var(--pink); width: 22px; height: 22px }
.zcallp { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 10px 14px; box-shadow: 0 11px 24px -7px color-mix(in srgb, var(--blue-d) 55%, transparent); min-height: 112px }
.zrob { flex: none; width: 92px; animation: zbob 1.6s ease-in-out infinite }
.zrob img { width: 100%; height: auto; display: block }
@keyframes zbob { 50% { transform: translateY(-6px) rotate(-3deg) } }
.zsay { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center }
.zsay b { font-family: var(--display); font-weight: 800; font-size: 76px; line-height: .9; color: var(--pink) }
.zsl { font-size: 18px; font-weight: 900; color: #1C1838; line-height: 1.2 }
.zsl small { display: block; font-size: 16px; color: #4A4766; font-weight: 800 }
.zcallp.called .zsay b { animation: zpop .6s cubic-bezier(.2, 1.6, .4, 1) both }
@keyframes zpop { 0% { transform: scale(.2) rotate(-14deg); opacity: 0 } 100% { transform: none; opacity: 1 } }
.zpads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1 }
.zpad { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 140px; border: 0; border-radius: 10px; color: #fff; cursor: pointer; font: inherit; padding: 14px 10px; box-shadow: 0 13px 28px -9px color-mix(in srgb, #00000033 55%, transparent); transition: transform .12s, box-shadow .12s, opacity .2s, filter .2s }
.zpad.z0 { background: #E0136F } .zpad.z1 { background: #2457F5 } .zpad.z2 { background: #E85D04 } .zpad.z3 { background: #00916E }
.zpad .dshp { width: 64px; height: 64px }
.zpl { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1 }
.zpp { display: block; font-family: Nunito, sans-serif; font-size: 16px; font-weight: 800; opacity: .92; margin-top: 2px }
.zpad:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 9px 20px -5px color-mix(in srgb, #00000033 55%, transparent) }
.zpad:disabled { cursor: default; filter: saturate(.55) brightness(.9) }
.zpad.on { box-shadow: 0 0 0 5px #fff, 0 0 0 10px var(--yellow), 0 7px 0 10px #00000033; transform: scale(1.02); filter: none }
.zpad.faded:not(:disabled) { opacity: .75 }
.zhere { display: none; align-items: center; gap: 6px; background: #fff; color: #1C1838; border-radius: 8px; padding: 4px 10px; font-size: 16px; font-weight: 900 }
.zhere small { display: block; font-size: 16px; color: #4A4766 }
.zhere .ic { color: var(--green); width: 18px; height: 18px }
.zpad.on .zhere { display: inline-flex; flex-direction: column }
.zmsg { margin: 0; text-align: center; color: #fff; font-size: 18px; font-weight: 900; min-height: 48px }
.zmsg .mpt { color: #E8EEFF }
.zwait { position: absolute; inset: 0; display: grid; place-items: center; background: #0b1e7acc; border-radius: 10px; z-index: 3 }
.zwait[hidden] { display: none }
.zwbox { background: #fff; border-radius: 10px; padding: 18px 20px; text-align: center; max-width: 320px; box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--pink-d) 55%, transparent) }
.zwbox b { display: block; font-family: var(--display); font-weight: 800; font-size: 80px; line-height: 1; color: var(--pink) }
.zwbox span { font-size: 18px; font-weight: 900; color: #1C1838 }
.zwbox small { display: block; font-size: 16px; color: #4A4766; margin-top: 4px }
.zph.locked .zpads { opacity: .8 }
.zsay { flex-direction: column; gap: 2px }
.zsay .zsl small { display: inline; font-size: 16px }
/* readable on the blue phone screen: the mini-game intro is a white card; the action-world header and rule are white text */
.pv.mini .card.mgintro { background: #fff; box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--blue-d) 55%, transparent); padding: 26px 18px; flex: none; margin: auto 0 }
.mgintro .big-msg { color: #1C1838 }
.mgintro .lead { color: #4A4766 }
.pv.act .acthead b, .pv.act .acthead .actmv { color: #fff }
.pv.act .acthead .mpt, .pv.act .actrule .mpt { color: #E8EEFF }
.pv.act .actrule { color: #fff }
.pv.act .stk-lv { color: #fff }
/* minis on the blue phone screen: labels in white */
.tugteam, .tugteam > span, .tugcount { color: #fff }
.tugteam .mpt, .tugcount .mpt { color: #E8EEFF }
.tugcount b { color: #fff; font-family: var(--display); font-weight: 800 }
.mgcount .ready, .mgcount .ready small { color: #1C1838 }
.pv.act .acthead .actmv { color: #1C1838 }
.pv.act .acthead .actmv .mpt { color: #4A4766 }
.bs-leg .mpt { color: #E8EEFF }
.zneed { position: absolute; top: 8px; right: 8px; min-width: 44px; height: 44px; display: grid; place-items: center; background: #fff; color: #1C1838; border-radius: 10px; font-family: var(--display); font-weight: 800; font-size: 30px; box-shadow: 0 10px 22px -6px color-mix(in srgb, #00000033 55%, transparent) }
.zcallp.called .zneed { animation: zpop .6s cubic-bezier(.2, 1.6, .4, 1) both }
.zsl .zinl { font-family: inherit; font-size: inherit; color: var(--pink); line-height: inherit; animation: none }
/* moves chip on the action screens: the number is dark on the white chip */
.pv.act .acthead .actmv b { color: var(--pink, #E0136F); font-family: var(--display); font-weight: 800; font-size: 20px }
/* mini-game score chip: room around the number, never squeezed */
.mgscore { flex: none; padding: 6px 14px 4px; min-width: 76px; justify-content: center; white-space: nowrap; line-height: 1.1; font-family: var(--display); font-weight: 800 }
.mgscore .ic { width: 22px; height: 22px; color: var(--pink, #E0136F) }
.mghead b { min-width: 0 }
/* phone top bar: on small phones Leave is just the X, so the nickname has room */
.ptop .nick { flex: 0 1 auto } .ptop .tchip { flex: 0 3 auto; min-width: 0 }
@media (max-width: 440px) { .pleave > span { display: none } .pleave { padding: 9px; min-width: 40px; justify-content: center } .pleave .ic { width: 20px; height: 20px } }
.av.av-img { background: transparent; box-shadow: none; border-radius: 0; overflow: visible }
.av.av-img img { transform: none; filter: drop-shadow(0 3px 4px #1C183829) }
.zpad.zclosed { opacity: .4; filter: grayscale(.8) }
.zpad.zclosed .zneed { color: #E0136F }

/* a quest goes on: the phone waits for the next step and joins it by itself */
.qwait { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 16px 18px; border-radius: 10px; background: #FFF4D6; border: 3px solid #FFC531; color: var(--navy); font-weight: 800; font-size: 18px; line-height: 1.3; animation: qwaitp 1.6s ease-in-out infinite }
.qwait .ic { flex: 0 0 auto; width: 34px; height: 34px; color: #E85D04 }
@keyframes qwaitp { 50% { transform: translateY(-3px) } }
@media (prefers-reduced-motion: reduce) { .qwait { animation: none } }
.en-only .ptx { display: none !important }

/* the top bar on small phones: the name, and the team right under it (never "A…" for a short name) */
.ptop .pwho { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 0 1 auto }
.ptop .pwho .nick { max-width: 100% }
.ptop .pwho .tchip { max-width: 100%; flex: none }
/* short phones: a smaller preview leaves room for the avatars above the Join button */
@media (max-height: 780px) { .me-big .av.huge { width: 96px; height: 96px } .stickyjoin { box-shadow: 0 -14px 18px -6px #fff, 0 -2px 0 var(--g5, #E2E5F5) } }
/* the player's name is never cut: a long name goes on two lines */
.ptop .pwho .nick { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; line-height: 1.15 }
.ptop { padding: 12px 14px }

/* ================= Speaking games (speak-play.js, speak-art.js) ================= */
.pv.sp { background: transparent }
body.g-uc { background: linear-gradient(180deg, #2A1B5E, #0E5E6F) fixed }


.sp-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 10px; color: #fff }
.sp-head .sp-ph { font: 900 20px/1.2 var(--display, 'Nunito'); flex: 1 }
.sp-clock { display: flex; align-items: center; gap: 6px; background: #fff; color: #1C1838; border-radius: 10px; padding: 8px 12px; font-weight: 900; font-size: 18px }
.sp-clock.hot { color: #E0136F }
.pv.sp .card { gap: 14px }
.sp-role { display: flex; gap: 14px; align-items: center; border-radius: 10px; padding: 14px; text-align: left; background: #F3F5FF }
.sp-role img, .sp-role .sp-ico { width: 86px; height: 86px; object-fit: contain; flex: none; font-size: 64px; line-height: 86px; text-align: center }
.sp-role > div { display: flex; flex-direction: column; gap: 4px }
.sp-role .k { font-weight: 900; font-size: 16px; color: #4A4766; text-transform: uppercase; letter-spacing: .04em }
.sp-role b { font: 900 22px/1.2 'Nunito', sans-serif; color: #1C1838 }
.sp-role b.w { font-size: 34px; color: #E0136F }
.sp-role .s { font-weight: 700; color: #4A4766; font-size: 16px }
.sp-role.spy { background: #2A1B5E } .sp-role.spy .k, .sp-role.spy .s { color: #D5D8EC } .sp-role.spy b { color: #fff }
.sp-role.wait { background: #FFF6DB; gap: 10px; flex-wrap: wrap }
.sp-flip { animation: spflip .7s cubic-bezier(.2, .8, .2, 1.2) both }
@keyframes spflip { from { transform: perspective(600px) rotateY(90deg); opacity: 0 } }
.sp-task { margin: 0 }
.sp-micwrap { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 }
.sp-mic { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; background: radial-gradient(circle at 40% 30%, #FF4FA3, #B00E57); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 16px 34px -12px #B00E57; transition: transform .15s }
.sp-mic img { width: 100%; height: 100%; object-fit: contain; border-radius: 50% }
.sp-mic .ic { width: 58px; height: 58px }
.sp-mic:active { transform: scale(.95) }
.sp-mic .ring { position: absolute; inset: -10px; border-radius: 50%; border: 6px solid #FF4FA3; opacity: 0; transform: scale(calc(1 + var(--lv, 0) * 1.4)); transition: transform .08s }
.sp-mic.on .ring { opacity: .8 }
.sp-mic.on { animation: spmic 1s ease-in-out infinite alternate }
@keyframes spmic { to { box-shadow: 0 0 0 16px #FF4FA333, 0 16px 34px -12px #B00E57 } }
.sp-mic:disabled { opacity: .6 }
.sp-miclbl { font-weight: 900; font-size: 18px; text-align: center; color: #1C1838 }
.sp-heard { min-height: 28px; font-weight: 800; font-size: 18px; text-align: center; color: #1C1838; padding: 0 6px }
.sp-heard.ok { color: #00916E } .sp-heard.no { color: #B00E57 }
.sp-heard .said { display: block; color: #4A4766; margin-bottom: 4px }
.sp-heard .ic { width: 20px; height: 20px; vertical-align: -3px }
.sp-nomic { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; background: #FFF6DB; border-radius: 10px; padding: 16px; font-size: 17px }
.sp-saved { display: flex; gap: 8px; align-items: flex-start; background: #E6F7F1; color: #007055; border-radius: 10px; padding: 12px; font-weight: 800; font-size: 17px }
.sp-cands { display: flex; flex-direction: column; gap: 10px; padding: 0 2px 20px }
.sp-cand { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 0; border-radius: 10px; padding: 12px; cursor: pointer; font: inherit; color: #1C1838; position: relative }
.sp-cand .t { display: flex; flex-direction: column; gap: 4px; flex: 1 } .sp-cand .t b { font-size: 18px } .sp-cand .t span { font-weight: 700; color: #4A4766; font-size: 16px }
.sp-cand.on { box-shadow: 0 0 0 4px #FFD23F }
.sp-cand .tick { color: #00916E }
.sp-word { font-weight: 800; font-size: 18px } .sp-word b { display: block; font: 900 34px 'Nunito', sans-serif; color: #E0136F }
.sp-pts { font: 900 54px/1 'Nunito', sans-serif; color: #00916E; animation: spflip .6s both }
.sp-sub { color: #fff; font-weight: 800; margin: 0 4px 10px; font-size: 17px }
.sp-head .mpt, .sp-sub .mpt { color: #ffffffd9 }
.sp-mic { overflow: hidden }
.sp-mic img { width: auto; height: 80%; border-radius: 0; filter: drop-shadow(0 4px 8px #0006) }
.sp-mic .ring { inset: 0 }
.sp-mic img { position: absolute; left: 0; top: 10%; width: 100%; height: 80%; object-fit: contain }

/* ================= Undercover on the phone: the dark agency look ================= */
.pv.sp.uc .card.uc-card { background: linear-gradient(180deg, #1A1446ee, #0E0B2Cf2); color: #fff; box-shadow: inset 0 0 0 2px #2DE2E655, 0 18px 40px -16px #000c; gap: 16px }
.pv.sp.uc .card.uc-card .mpt { color: #C9CCF0 }
.uc-role { display: flex; gap: 14px; align-items: center; border-radius: 10px; padding: 14px; text-align: left; background: #ffffff12; box-shadow: inset 0 0 0 2px #2DE2E688 }
.uc-role img { width: 84px; height: 84px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 14px #0009) }
.uc-role > div { display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.uc-role .k { font-weight: 900; font-size: 16px; color: #2DE2E6; text-transform: uppercase; letter-spacing: .05em }
.uc-role b { font: 900 24px/1.15 'Baloo 2', 'Nunito', sans-serif; color: #fff; overflow-wrap: anywhere }
.uc-role b.w { font-size: 38px; color: #FFD23F; text-shadow: 0 0 18px #FFD23F66 }
.uc-role .s { font-weight: 700; color: #C9CCF0; font-size: 16px }
.uc-role.spy { box-shadow: inset 0 0 0 2px #FF2E93; background: #FF2E9318 } .uc-role.spy .k { color: #FF6FB5 }
.uc-role.spy img { animation: ucglitch 2.4s steps(1) infinite }
@keyframes ucglitch { 0%, 92%, 100% { transform: none; filter: drop-shadow(0 6px 14px #0009) } 93% { transform: translateX(-4px) skewX(8deg); filter: hue-rotate(80deg) } 95% { transform: translateX(3px); filter: hue-rotate(-60deg) } 97% { transform: translateX(-2px) skewX(-6deg) } }
.uc-role.mini { padding: 10px 12px } .uc-role.mini img { width: 56px; height: 56px } .uc-role.mini b.w { font-size: 30px }
.uc-role.wait { box-shadow: inset 0 0 0 2px #FFD23F; flex-wrap: wrap }
/* the secret file: tap to open */
.uc-secret { position: relative; width: min(100%, 340px); aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; perspective: 900px; cursor: pointer; margin: 6px auto; font: inherit; color: inherit }
.uc-face { position: absolute; inset: 0; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; backface-visibility: hidden; transition: transform .7s cubic-bezier(.2, .8, .2, 1.15) }
.uc-face.front { background: radial-gradient(circle at 50% 35%, #3B2A8C, #120E36); box-shadow: inset 0 0 0 3px #FFD23F, 0 18px 40px -12px #000; animation: ucpulse 1.6s ease-in-out infinite alternate }
.uc-face.front img { width: 62%; height: auto; filter: drop-shadow(0 12px 20px #000a) }
.uc-face.front b { font: 900 34px/1 'Baloo 2', sans-serif; color: #FF2E93; letter-spacing: .08em; border: 4px solid #FF2E93; border-radius: 10px; padding: 6px 14px; transform: rotate(-6deg) }
.uc-face.front > span { font-weight: 900; font-size: 18px; color: #fff }
.uc-face.back { transform: rotateY(180deg); padding: 10px }
.uc-face.back .uc-role { flex-direction: column; text-align: center; width: 100%; padding: 22px 14px }
.uc-face.back .uc-role img { width: 140px; height: 140px }
.uc-face.back .uc-role b.w { font-size: 44px }
.uc-secret.open .front { transform: rotateY(-180deg) } .uc-secret.open .back { transform: rotateY(0) }
@keyframes ucpulse { to { box-shadow: inset 0 0 0 3px #FFD23F, 0 0 34px -4px #FF2E93aa } }
.uc-note { margin: 0; font-weight: 800; font-size: 17px; color: #C9CCF0; text-align: center; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap }
.uc-task { margin: 0; font-weight: 800; font-size: 18px; line-height: 1.35 }
.uc-big { margin: 0; font: 900 26px/1.2 'Baloo 2', 'Nunito', sans-serif; text-align: center }
.pv.sp.uc .sp-miclbl, .pv.sp.uc .sp-heard { color: #fff } .pv.sp.uc .sp-heard.ok { color: #22D39B } .pv.sp.uc .sp-heard.no { color: #FF6FB5 } .pv.sp.uc .sp-heard .said { color: #C9CCF0 }
.uc-start { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center }
.uc-start .lbl { width: 100%; text-align: center; font-weight: 900; font-size: 16px; color: #2DE2E6 }
.uc-start span:not(.lbl) { background: #ffffff14; border-radius: 8px; padding: 6px 10px; font-weight: 800; font-size: 16px; color: #fff }
.uc-saved { display: flex; gap: 8px; align-items: flex-start; background: #22D39B22; color: #B9F7E0; border-radius: 10px; padding: 12px; font-weight: 800; font-size: 17px; box-shadow: inset 0 0 0 2px #22D39B88 }
.uc-saved b { color: #fff } .uc-saved.pop { animation: spflip .5s both }
.uc-eq { display: flex; gap: 8px; align-items: flex-end; height: 70px }
.uc-eq i { width: 12px; border-radius: 6px; background: #2DE2E6; animation: uceq .9s ease-in-out infinite alternate; height: 20px }
.uc-eq i:nth-child(2) { animation-delay: .15s } .uc-eq i:nth-child(3) { animation-delay: .3s } .uc-eq i:nth-child(4) { animation-delay: .45s } .uc-eq i:nth-child(5) { animation-delay: .6s }
.uc-eq.red i { background: #FF2E93 }
@keyframes uceq { to { height: 70px } }
.uc-sub { color: #fff; font-weight: 800; margin: 0 4px 10px; font-size: 17px }
.uc-cands { display: flex; flex-direction: column; gap: 10px; padding: 0 2px 20px }
.uc-cand { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; background: #17123FEE; color: #fff; border: 0; border-radius: 10px; padding: 12px; cursor: pointer; font: inherit; box-shadow: inset 0 0 0 2px #2DE2E655; transition: transform .15s }
.uc-cand:active { transform: scale(.98) }
.uc-cand .t { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0 } .uc-cand .t b { font-size: 18px } .uc-cand .t span { font-weight: 700; color: #C9CCF0; font-size: 16px; overflow-wrap: anywhere }
.uc-cand.on { box-shadow: inset 0 0 0 3px #FF2E93, 0 0 24px -4px #FF2E93 }
.uc-stamp { position: absolute; right: 10px; top: -10px; background: #FF2E93; color: #fff; font: 900 16px/1 'Nunito', sans-serif; letter-spacing: .06em; padding: 7px 10px; border-radius: 8px; transform: rotate(5deg); animation: ucstamp .35s cubic-bezier(.2, .8, .2, 1.4) both }
@keyframes ucstamp { from { transform: scale(2.2) rotate(-10deg); opacity: 0 } }
.uc-alarm { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #FF2E9326; color: #fff; border-radius: 10px; padding: 12px 14px; font-size: 20px; box-shadow: inset 0 0 0 2px #FF2E93; animation: ucalarm .8s ease-in-out infinite alternate }
@keyframes ucalarm { to { background: #FF2E9344 } }
.uc-res .uc-bigstamp { font: 900 30px/1.15 'Baloo 2', sans-serif; border: 4px solid currentColor; border-radius: 10px; padding: 8px 16px; transform: rotate(-4deg); animation: ucstamp .5s .2s cubic-bezier(.2, .8, .2, 1.4) both; text-align: center }
.uc-res.good .uc-bigstamp { color: #22D39B } .uc-res.bad .uc-bigstamp { color: #FF6FB5 }
.uc-word { font-weight: 800; font-size: 18px; text-align: center } .uc-word b { display: block; font: 900 38px 'Baloo 2', sans-serif; color: #FFD23F }
.uc-pts { font: 900 64px/1 'Baloo 2', sans-serif; color: #22D39B; text-shadow: 0 0 24px #22D39B66 }
.uc-role .s.mate { color: #FFB3D7 } .uc-role .s.mate b { font-size: 16px; color: #fff; display: inline }
.uc-role .s.spec { color: #fff; font-weight: 800 }
.uc-role .k .ic { width: 18px; height: 18px; vertical-align: -3px }
.uc-role.sp-det { box-shadow: inset 0 0 0 2px #FF9F45; background: #FF9F4518 } .uc-role.sp-det .k { color: #FFB86B }
.uc-role.sp-angel { box-shadow: inset 0 0 0 2px #7DF0C8; background: #7DF0C818 } .uc-role.sp-angel .k { color: #7DF0C8 }
.pv.sp.uc.night .card.uc-card { background: linear-gradient(180deg, #0B0A24f5, #05041Af8); box-shadow: inset 0 0 0 2px #8A3FFC88, 0 18px 40px -16px #000c }
.pv.sp.uc.night .sp-head { color: #D5C9FF } .pv.sp.uc.night .sp-head .ic { width: 20px; height: 20px; vertical-align: -3px }
.uc-inv { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-radius: 10px; padding: 12px 14px; font-weight: 800; font-size: 17px; animation: spflip .5s both }
.uc-inv.spy { background: #FF2E9326; box-shadow: inset 0 0 0 2px #FF2E93; color: #fff } .uc-inv.spy b { color: #FF6FB5 }
.uc-inv.agent { background: #22D39B22; box-shadow: inset 0 0 0 2px #22D39B; color: #fff }
.uc-inv .ic { width: 22px; height: 22px }
.uc-cand:disabled { opacity: .55 }
.uc-cand.on:disabled { opacity: 1 }

/* Speaking: type instead of speaking (a browser that cannot listen, a noisy room) */
.sp-typebtn { border: 0; background: transparent; color: inherit; font: 900 17px var(--font, Nunito, sans-serif); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; cursor: pointer; opacity: .9; flex-wrap: wrap; justify-content: center }
.sp-typebtn .pt { width: 100% }
.pv.sp.uc .sp-typebtn { color: #C9CCF0; box-shadow: inset 0 0 0 2px rgba(201, 204, 240, .35) }
.sp-type { display: none; width: 100%; gap: 8px }
.sp-type.open { display: flex }
.sp-type input { flex: 1; min-width: 0; font: 800 18px var(--font, Nunito, sans-serif); padding: 12px 14px; border-radius: 10px; border: 2px solid #D5D8EC; background: #fff; color: #1C1838 }
.sp-type .btn { flex: none; display: inline-flex; align-items: center; gap: 6px }
.pv.sp.uc .sp-nomic { background: rgba(255, 255, 255, .08); color: #fff }
/* Undercover: the end of the game stays in the agency's dark look */
.pv.ucend .card { background: linear-gradient(180deg, #1B1440, #120C2E); color: #fff; box-shadow: 0 0 0 2px rgba(124, 77, 255, .45), 0 24px 50px -20px rgba(0, 0, 0, .7) }
.pv.ucend .big-msg { color: #FFD23F }
.pv.ucend .lead, .pv.ucend .lead b { color: #EDE7FF }
.pv.ucend .pt { color: #C9CCF0 }
.pv.ucend .bigic:not(.medal) { background: rgba(255, 255, 255, .1); color: #FFD23F }
.pv.ucend .bigic.medal { color: #1C1838 }
.pv.ucend .bigic.medal.m1 { background: linear-gradient(160deg, #FFE38A, #F2B705) }
.pv.ucend .bigic.medal.m2 { background: linear-gradient(160deg, #F1F3F8, #B9C0CC) }
.pv.ucend .bigic.medal.m3 { background: linear-gradient(160deg, #F3B98A, #C46A2B) }
/* ---------- Undercover v2 on the phone: the files, the rule, the evidence, the ghosts, the Crime Scene ---------- */
.uc-top { display: flex; flex-direction: column; gap: 10px }
.uc-files { display: flex; align-items: center; gap: 6px; justify-content: center; font-weight: 900; font-size: 16px; color: #FFD23F }
.uc-files i { width: 30px; height: 24px; border-radius: 4px 4px 6px 6px; background: linear-gradient(180deg, #F2B33D, #C98A1E); position: relative }
.uc-files i::before { content: ''; position: absolute; left: 0; top: -5px; width: 12px; height: 7px; border-radius: 3px 3px 0 0; background: #C98A1E }
.uc-files i.gone { background: linear-gradient(180deg, #7A1030, #4E0A1F); opacity: .8 } .uc-files i.gone::before { background: #4E0A1F }
.uc-files i.gone::after { content: '×'; position: absolute; inset: 0; display: grid; place-items: center; color: #FF3B4E; font: 900 22px/1 'Nunito', sans-serif }
.uc-files span { margin-left: 4px }
.uc-rule, .uc-evid { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; padding: 12px 14px; color: #fff; font-weight: 800; font-size: 17px; text-align: left }
.uc-rule { background: #2DE2E61F; box-shadow: inset 0 0 0 2px #2DE2E6 } .uc-rule .ic { color: #2DE2E6; flex: none; width: 22px; height: 22px }
.uc-rule > div, .uc-evid > div { display: flex; flex-direction: column; gap: 4px } .uc-rule span { color: #C9CCF0; font-size: 16px }
.uc-evid { background: #FFD23F1F; box-shadow: inset 0 0 0 2px #FFD23F; margin: 0 2px 10px; animation: spflip .5s both } .uc-evid .ic { color: #FFD23F; flex: none; width: 22px; height: 22px }
.uc-evid .k { font-weight: 900; font-size: 16px; color: #FFD23F; text-transform: uppercase; letter-spacing: .05em } .uc-evid em { font-style: normal; color: #FF6FB5; font-size: 26px }
.uc-role.ghost { box-shadow: inset 0 0 0 2px #9FB4FF; background: #9FB4FF1C } .uc-role.ghost .k { color: #BFD0FF }
.uc-ghost { font-size: 54px; line-height: 1; flex: none; animation: ucfloat 2.4s ease-in-out infinite alternate } .uc-role.mini .uc-ghost { font-size: 40px }
@keyframes ucfloat { from { transform: translateY(-4px) } to { transform: translateY(6px) } }
.pv.sp.uc.hunt { padding-bottom: 12px }
.uc-huntwrap { display: flex; flex-direction: column; gap: 10px }
.uc-targets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center }
.uc-tg { display: inline-flex; align-items: center; gap: 6px; background: #17123FEE; color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 18px; box-shadow: inset 0 0 0 2px #2DE2E6 }
.uc-tg .ic { width: 20px; height: 20px; color: #2DE2E6 } .uc-tg.ok { background: #0E5E45; box-shadow: inset 0 0 0 2px #22D39B; animation: spflip .5s both } .uc-tg.ok .ic { color: #22D39B }
.uc-scroll { overflow: auto; height: min(58vh, 520px); overscroll-behavior: contain; border-radius: 10px; box-shadow: inset 0 0 0 3px #FFD23F, 0 18px 40px -16px #000; -webkit-overflow-scrolling: touch; scrollbar-width: none }
.uc-scroll::-webkit-scrollbar { display: none }
.uc-scene { --z: 1; position: relative; height: calc(min(58vh, 520px) * var(--z)); aspect-ratio: 16 / 9; min-width: 100%; background: #0A0820 center/cover no-repeat; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; overflow: hidden }
.uc-scene::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, #05041Acc 100%); pointer-events: none; z-index: 4 }
.uc-obj { position: absolute; pointer-events: none; filter: drop-shadow(0 8px 10px #000a); transition: filter .3s, transform .3s }
.uc-obj.d0 { z-index: 1; filter: drop-shadow(0 0 3px #ffffff66) drop-shadow(0 4px 6px #0009) brightness(.85) } .uc-obj.d1 { z-index: 2 } .uc-obj.d2 { z-index: 3 }
.uc-obj.found { filter: drop-shadow(0 0 14px #22D39B) drop-shadow(0 0 4px #fff) }
.uc-torch { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: radial-gradient(circle, #FFF3C455, transparent 70%); mix-blend-mode: screen; pointer-events: none; z-index: 5; transition: left .15s, top .15s }
.uc-ring { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; box-shadow: 0 0 0 6px #22D39B, 0 0 30px #22D39B; z-index: 6; pointer-events: none; animation: ucring .5s cubic-bezier(.3, 1.6, .5, 1) both }
.uc-ring::after { content: attr(data-p); position: absolute; left: 50%; top: -34px; transform: translateX(-50%); font: 900 28px/1 'Baloo 2', sans-serif; color: #22D39B; text-shadow: 0 2px 0 #0B3D2E, 0 0 12px #000; animation: ucup 1.2s .2s both }
@keyframes ucring { from { transform: scale(2.2); opacity: 0 } to { transform: scale(1); opacity: 1 } }
@keyframes ucup { from { transform: translate(-50%, 10px); opacity: 0 } 30% { opacity: 1 } to { transform: translate(-50%, -24px); opacity: 1 } }
.uc-scene.miss { animation: ucshake .35s }
@keyframes ucshake { 20% { transform: translateX(-8px) } 40% { transform: translateX(8px) } 60% { transform: translateX(-5px) } 80% { transform: translateX(5px) } }
.uc-lock { position: absolute; inset: 0; z-index: 7; display: flex; gap: 10px; align-items: center; justify-content: center; background: #FF2E9340; color: #fff; font: 900 24px/1.2 'Nunito', sans-serif; text-shadow: 0 2px 8px #000 }
.uc-lock.done { background: #22D39B40 } .uc-lock .ic { width: 28px; height: 28px }
.uc-hpts { display: flex; gap: 8px; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px } .uc-hpts b { font: 900 30px/1 'Baloo 2', sans-serif; color: #FFD23F } .uc-hpts .ic { color: #FFD23F }
.uc-arrest { display: flex; flex-direction: column; align-items: center; gap: 6px } .uc-arrest b { font-size: 22px; color: #fff }
.uc-arrest span { font: 900 18px/1 'Nunito', sans-serif; letter-spacing: .08em; padding: 8px 14px; border-radius: 8px; color: #fff } .uc-arrest .spy { background: #E0136F } .uc-arrest .inn { background: #2457F5 }
.uc-words { display: grid; gap: 10px; width: 100% }
.uc-words > div { border-radius: 10px; padding: 12px; background: #2DE2E61F; box-shadow: inset 0 0 0 2px #2DE2E6; display: flex; flex-direction: column; gap: 4px; font-weight: 800; font-size: 16px; color: #C9CCF0 }
.uc-words > div.sw { background: #FF2E931F; box-shadow: inset 0 0 0 2px #FF2E93 } .uc-words b { font: 900 32px/1.1 'Baloo 2', sans-serif; color: #fff }
.uc-pts.neg { color: #FF6FB5; text-shadow: 0 0 24px #FF6FB566 }
.uc-how { margin: 0; padding: 0; list-style: none; counter-reset: h; display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left }
.uc-how li { counter-increment: h; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; background: #ffffff10; border-radius: 10px; padding: 10px 12px 10px 48px; position: relative; color: #fff; font-weight: 800; font-size: 16px }
.uc-how li::before { content: counter(h); position: absolute; left: 12px; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: #2DE2E6; color: #10102A; font: 900 16px/26px 'Nunito', sans-serif; text-align: center }
.uc-how li:nth-child(2)::before { background: #FFD23F } .uc-how li:nth-child(3)::before { background: #FF2E93; color: #fff }
.uc-obj { filter: drop-shadow(0 0 3px #ffffff88) drop-shadow(0 8px 10px #000a) }
.uc-arrest .av { width: 120px; height: 120px; border-radius: 10px; background: #2A1F6B; box-shadow: 0 0 0 4px #ffffff22 } .uc-arrest .av img { width: 100%; height: 100%; object-fit: cover; object-position: top }
.uc-sw { position: relative } .uc-sw .uc-lock { border-radius: 10px; pointer-events: none; padding: 16px; text-align: center }
.uc-zoom { position: absolute; right: 10px; top: 10px; z-index: 8; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #10102Ae6; border-radius: 10px; padding: 6px; box-shadow: 0 8px 20px -6px #000 }
.uc-zoom button { width: 48px; height: 48px; border: 0; border-radius: 8px; background: #2DE2E6; color: #10102A; display: grid; place-items: center; cursor: pointer }
.uc-zoom button .ic { width: 26px; height: 26px } .uc-zoom button:disabled { opacity: .35 }
.uc-zoom span { color: #fff; font: 900 16px/1 'Nunito', sans-serif }
/* ---------- Undercover v3 on the phone: the mission file, the spy's guess, the questions and answers ---------- */
.uc-role .m { font: 900 20px/1.2 'Baloo 2', 'Nunito', sans-serif; color: #fff }
.uc-role .lbl { font-weight: 900; font-size: 16px; color: #C9CCF0; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px }
.uc-role b.w.q { color: #FF6FB5; text-shadow: 0 0 18px #FF2E9366; letter-spacing: .1em }
.uc-face.back .uc-role .m { font-size: 24px }
.uc-guess { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; border-radius: 10px; padding: 14px; background: linear-gradient(135deg, #FF2E93, #8A3FFC); color: #fff; cursor: pointer; box-shadow: 0 12px 26px -12px #FF2E93; margin: 4px 0 10px }
.uc-guess .ic { width: 30px; height: 30px; flex: none } .uc-guess div { display: flex; flex-direction: column; gap: 4px }
.uc-guess b { font: 900 20px/1.15 'Baloo 2', sans-serif } .uc-guess span { font-weight: 800; font-size: 16px; color: #FFE3F1 }
.uc-guess.done { background: #ffffff14; box-shadow: inset 0 0 0 2px #FF6FB5; cursor: default }
.uc-gov { position: fixed; inset: 0; z-index: 99; background: #05041Ae8; display: grid; place-items: center; padding: 16px; animation: spflip .3s both }
.uc-gbox { width: min(100%, 420px); background: linear-gradient(180deg, #1A1446, #0E0B2C); border-radius: 10px; padding: 20px; box-shadow: inset 0 0 0 2px #FF2E93, 0 30px 60px -20px #000; display: flex; flex-direction: column; gap: 12px; color: #fff; text-align: center }
.uc-gbox h2 { margin: 0; font: 900 28px/1.1 'Baloo 2', sans-serif } .uc-gbox p { margin: 0; font-weight: 800; font-size: 17px; color: #C9CCF0 }
.uc-gopts { display: flex; flex-direction: column; gap: 10px }
.uc-gopts button { border: 0; border-radius: 10px; padding: 16px; font: 900 20px/1.2 'Nunito', sans-serif; background: #ffffff14; color: #fff; box-shadow: inset 0 0 0 2px #2DE2E6; cursor: pointer }
.uc-gopts button:active { transform: scale(.98) }
.uc-gx { border: 0; background: none; color: #C9CCF0; font: 900 17px 'Nunito', sans-serif; display: inline-flex; gap: 6px; align-items: center; justify-content: center; cursor: pointer; padding: 8px }
.uc-gx .ic { width: 20px; height: 20px }
.uc-qa { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; border-radius: 10px; padding: 12px 14px; background: #2457F522; box-shadow: inset 0 0 0 2px #2457F5; color: #fff }
.uc-qa span { font-weight: 900; font-size: 16px; color: #A9C1FF } .uc-qa b { font: 900 20px/1.25 'Nunito', sans-serif }
.uc-qa.r { background: #FF2E9322; box-shadow: inset 0 0 0 2px #FF2E93 } .uc-qa.r span { color: #FFB3D7 }
.uc-qa.big b { font: 900 26px/1.2 'Baloo 2', sans-serif; color: #FFD23F }
.uc-ideas { display: flex; flex-direction: column; gap: 8px } .uc-ideas span { background: #ffffff14; border-radius: 10px; padding: 10px 12px; font-weight: 800; font-size: 17px; color: #fff }
.uc-secret:not(.open) .uc-face.back { opacity: 0; visibility: hidden } .uc-secret.open .uc-face.back { opacity: 1; visibility: visible; transition: opacity .2s .25s } /* nothing of the file shows through its cover before the student taps */
.uc-peek { display: flex; flex-direction: column; gap: 8px; width: 100% }
.uc-peekb { display: flex; gap: 10px; align-items: center; justify-content: center; width: 100%; border: 0; border-radius: 10px; padding: 14px; background: #ffffff12; box-shadow: inset 0 0 0 2px #2DE2E655; color: #fff; font: 900 18px/1.2 'Nunito', sans-serif; cursor: pointer }
.uc-peekb .ic { width: 24px; height: 24px; color: #2DE2E6 } .uc-peekb.on { box-shadow: inset 0 0 0 2px #2DE2E6 }
.uc-peekc { display: flex; flex-direction: column; gap: 8px; animation: spflip .3s both }
