/* The game room (/sala, session 6): a game screen, not a portal page. Its own palette and type
   (navy night, yolk yellow, our four shape colours, Nunito heavy), outside Fresco. Still flat:
   styles/no-gradients.css forbids background images, so rays and confetti are shapes and boxes.
   The stage is drawn at 1280 × 720 and scaled to the window (src/salaPage.js), so what the teacher
   shares on Zoom looks the same on every screen. */

@font-face { font-family: "Nunito"; src: url("/assets/cebollitas-fonts/nunito-800.ttf") format("truetype"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/cebollitas-fonts/nunito-700.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

.sala {
  --sala-noche: #14215c;
  --sala-noche2: #1f2f7d;
  --sala-shadow: #0a1238;
  --sala-yema: #ffc93c;
  --sala-cian: #2ec4e6;
  --sala-fresa: #ff5c8a;
  --sala-lav: #9b7bff;
  --sala-crema: #fff7e0;
  --sala-ink: #14215c;
  --sala-font: "Nunito", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  flex-direction: column;
  background-color: var(--sala-shadow);
  color: var(--sala-crema);
  font-family: var(--sala-font);
}
body.sala-open { overflow: hidden; }
/* The portal's own layout stays behind the room and the teacher's phone: it must never make the page wider
   than the screen (on a phone the whole view, the controller included, would slide sideways). */
html:has(> body.sala-open) { overflow: hidden; overscroll-behavior: none; }
body.sala-open { max-width: 100vw; overscroll-behavior: none; }
body.sala-open #app { max-width: 100vw; overflow: hidden; }
.sala *, .sala *::before, .sala *::after { box-sizing: border-box; }
.sala-page-status { padding: 24px; }

.sala-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.sala-stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform-origin: 50% 50%; overflow: hidden; border-radius: 6px; }

/* the teacher's bar */
.sala-bar { flex: none; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background-color: var(--sala-shadow); font: 800 16px/1.2 var(--sala-font); }
.sala-bar-chip { padding: 6px 12px; border-radius: 999px; background-color: var(--sala-noche2); white-space: nowrap; }
.sala-bar-note { flex: 1; min-width: 0; opacity: 0.85; }
.sala-bar-error { color: var(--sala-yema); }
.sala-bar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sala-button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background-color: var(--sala-noche2); color: var(--sala-crema); font: 800 17px/1 var(--sala-font); cursor: pointer; white-space: nowrap; }
.sala-button:hover:not(:disabled) { background-color: #2b3d96; }
.sala-button:disabled { opacity: 0.45; cursor: default; }
.sala-button:focus-visible { outline: 3px solid var(--sala-cian); outline-offset: 2px; }
.sala-button.is-go { background-color: var(--sala-yema); color: var(--sala-ink); }
.sala-button.is-go:hover:not(:disabled) { background-color: #ffd866; }
.sala-button.is-quiet:hover:not(:disabled) { background-color: var(--sala-noche2); }
.sala-button.is-quiet { background-color: transparent; border: 2px solid var(--sala-noche2); }
.sala-button[aria-pressed="true"].is-yes, .sala-button[aria-pressed="true"].is-star { outline: 3px solid var(--sala-cian); outline-offset: -3px; }
.sala-button[aria-pressed="false"][data-sala-action="mute"] { opacity: 0.7; }

/* the screens */
.sala-screen { position: absolute; inset: 0; overflow: hidden; }
.sala-screen.is-noche { background-color: var(--sala-noche); }
.sala-abs { position: absolute; margin: 0; }
/* Above Fresco's heading rule (fresco.css, :is(.main-area…) h2), which would make them navy. */
.sala .sala-stage .sala-screen h2 { color: var(--sala-crema); font-family: var(--sala-font); font-weight: 900; letter-spacing: 0; }
.sala .sala-stage .sala-screen h2.sala-title { color: var(--sala-yema); }
.sala-center { display: grid; place-items: center; text-align: center; }
.sala-rays { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.09; pointer-events: none; }
.sala-rays polygon { fill: var(--sala-crema); }
.sala-bolt { fill: var(--sala-yema); }
.sala-brand { display: flex; align-items: center; gap: 12px; font: 900 96px/1 var(--sala-font); color: var(--sala-yema); letter-spacing: -1px; }
.sala-lead { font: 800 30px/1.2 var(--sala-font); }
.sala-join { display: flex; align-items: center; gap: 28px; }
.sala-code { display: grid; padding: 20px 34px; border-radius: 30px; background-color: var(--sala-crema); color: var(--sala-ink); }
.sala-code span { font: 900 24px/1 var(--sala-font); opacity: 0.7; }
.sala-code strong { font: 900 118px/1.05 var(--sala-font); letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.sala-code small { font: 800 24px/1.2 var(--sala-font); margin-top: 6px; }
.sala-qr { width: 210px; height: 210px; padding: 10px; border-radius: 16px; background-color: #fff; }
.sala-qr:empty { display: none; }
.sala-qr svg { display: block; width: 100%; height: 100%; }
.sala-players { width: 400px; display: flex; flex-direction: column; gap: 16px; }
.sala-players-title { margin: 0; font: 900 26px/1 var(--sala-font); opacity: 0.8; }
.sala-player { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 26px; background-color: var(--sala-noche2); }
.sala-player strong { display: block; font: 900 44px/1.05 var(--sala-font); }
.sala-player > div > span { font: 900 22px/1.2 var(--sala-font); color: #aab4dc; }
.sala-player.is-in > div > span { color: var(--sala-cian); }
.sala-player.is-rival { padding: 8px 20px 8px 6px; }
.sala-player.is-rival > div > span { color: var(--sala-yema); }
.sala-versus { margin: 0; text-align: center; font: 900 34px/1 var(--sala-font); opacity: 0.8; }
.sala-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background-color: var(--sala-cian); color: var(--sala-ink); font-family: var(--sala-font); font-weight: 900; line-height: 1; }
.sala-mascot { object-fit: contain; }
.sala-bubble { position: absolute; margin: 0; padding: 12px 18px; border-radius: 22px; background-color: var(--sala-crema); color: var(--sala-ink); font: 900 24px/1.15 var(--sala-font); white-space: nowrap; }
.sala-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; background-color: var(--sala-noche2); font: 900 24px/1 var(--sala-font); }
.sala-chip.is-big { font-size: 32px; padding: 10px 22px; }
.sala-chip.is-off { opacity: 0.4; }
.sala-star { color: var(--sala-yema); }

.sala-count { display: grid; place-items: center; width: 360px; height: 360px; border-radius: 50%; background-color: var(--sala-yema); box-shadow: 0 14px 0 var(--sala-shadow); }
.sala-count span { font: 900 260px/1 var(--sala-font); color: var(--sala-ink); }

.sala-ask { text-align: center; font: 900 72px/1.1 var(--sala-font); color: var(--sala-crema); }
.sala-timer { width: 170px; height: 170px; display: grid; place-items: center; }
.sala-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.sala-timer circle { fill: none; stroke-width: 16; }
.sala-timer .is-track { stroke: var(--sala-noche2); }
.sala-timer .is-left { stroke: var(--sala-yema); stroke-linecap: round; transition: stroke-dashoffset 0.25s linear; }
.sala-timer span { position: relative; font: 900 72px/1 var(--sala-font); font-variant-numeric: tabular-nums; }
.sala-answered { display: flex; flex-direction: column; gap: 10px; }
.sala-picture { width: 340px; display: grid; place-items: center; border-radius: 30px; background-color: var(--sala-crema); box-shadow: 0 10px 0 var(--sala-shadow); }
.sala-picture img { width: 88%; height: 88%; object-fit: contain; }
.sala-rival { width: 250px; height: 300px; }
.sala-points strong { display: block; font: 900 96px/1 var(--sala-font); color: var(--sala-yema); }
.sala-points strong.is-almost { font-size: 64px; color: var(--sala-crema); }
.sala-points span { display: block; margin-top: 8px; font: 800 26px/1.2 var(--sala-font); }

.sala-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sala-answer { position: relative; display: flex; align-items: center; gap: 18px; height: 100px; padding: 0 24px; border-radius: 24px; color: var(--sala-ink); box-shadow: 0 7px 0 var(--sala-shadow); transition: opacity 0.3s, filter 0.3s; }
.sala-answers.is-result .sala-answer { height: 92px; }
.sala-answer-icon { display: grid; place-items: center; flex: none; width: 70px; height: 70px; border-radius: 50%; background-color: var(--sala-crema); }
.sala-answer-icon svg { fill: currentColor; }
.sala-answer-word { font: 900 54px/1 var(--sala-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sala-answer-check { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background-color: var(--sala-crema); color: #16794a; font: 900 44px/1 var(--sala-font); }
.sala-answer.is-yema { background-color: var(--sala-yema); } .sala-answer.is-yema .sala-answer-icon { color: #d18b00; }
.sala-answer.is-cian { background-color: var(--sala-cian); } .sala-answer.is-cian .sala-answer-icon { color: #0b7c99; }
.sala-answer.is-fresa { background-color: var(--sala-fresa); } .sala-answer.is-fresa .sala-answer-icon { color: #c42a5b; }
.sala-answer.is-lav { background-color: var(--sala-lav); } .sala-answer.is-lav .sala-answer-icon { color: #5a39c9; }
.sala-answer.is-dim { opacity: 0.28; filter: saturate(0.4); }

.sala-title { text-align: center; font: 900 92px/1.05 var(--sala-font); color: var(--sala-yema); }
.sala-board { display: flex; flex-direction: column; gap: 34px; }
.sala-row { display: flex; align-items: center; gap: 22px; }
.sala-row strong { font: 900 52px/1 var(--sala-font); }
.sala-scorebar { height: 74px; display: flex; align-items: center; justify-content: flex-end; padding: 0 22px 0 0; border-radius: 0 24px 24px 0; color: var(--sala-ink); font: 900 44px/1 var(--sala-font); font-variant-numeric: tabular-nums; box-shadow: 0 6px 0 var(--sala-shadow); }
.sala-scorebar.is-cian { background-color: var(--sala-cian); }
.sala-scorebar.is-yema { background-color: var(--sala-yema); }
.sala-cheer { font: 900 44px/1.1 var(--sala-font); color: var(--sala-cian); }

.sala-step-who { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sala-step-who strong { font: 900 46px/1 var(--sala-font); }
.sala-step { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 26px 26px 0 0; color: var(--sala-ink); }
.sala-step span { font: 900 120px/1 var(--sala-font); }
.sala-step.is-second span { font-size: 90px; }
.sala-step b { font: 900 40px/1.1 var(--sala-font); font-variant-numeric: tabular-nums; }
.sala-step.is-yema { background-color: var(--sala-yema); }
.sala-step.is-cian { background-color: var(--sala-cian); }

.sala-notice { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.sala-notice h2 { margin: 0; font: 900 64px/1.1 var(--sala-font); }
.sala-notice p { margin: 0; font: 800 30px/1.3 var(--sala-font); opacity: 0.9; }

.sala-confetti i { position: absolute; top: -30px; width: 16px; height: 26px; border-radius: 4px; animation: sala-fall 3.2s linear infinite; }
.sala-confetti .is-yema { background-color: var(--sala-yema); }
.sala-confetti .is-cian { background-color: var(--sala-cian); }
.sala-confetti .is-fresa { background-color: var(--sala-fresa); }
.sala-confetti .is-lav { background-color: var(--sala-lav); }
.sala-confetti .is-crema { background-color: var(--sala-crema); }
.sala-pulse { animation: sala-pulse 1s ease-in-out infinite; }
.sala-bob { animation: sala-bob 2.4s ease-in-out infinite; }
.sala-rise { animation: sala-rise 0.9s ease-out both; }
.sala-dots i { display: inline-block; width: 14px; height: 14px; margin: 0 4px; border-radius: 50%; background-color: var(--sala-yema); animation: sala-dot 1.2s ease-in-out infinite; }
.sala-dots i:nth-child(2) { animation-delay: 0.2s; }
.sala-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes sala-fall { to { transform: translateY(800px) rotate(540deg); } }
@keyframes sala-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes sala-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sala-rise { from { transform: translateY(18px); opacity: 0.2; } to { transform: none; opacity: 1; } }
@keyframes sala-dot { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .sala-confetti i, .sala-pulse, .sala-bob, .sala-rise, .sala-dots i { animation: none; }
  .sala-confetti { display: none; }
}
@media (max-width: 760px) {
  .sala-bar { flex-wrap: wrap; }
  .sala-bar-note { flex-basis: 100%; }
}

/* Session 6b: two real players. The teacher's slot in the waiting room (her own small QR), Torti as
   presenter, the reveal with both players and the score, the teacher's bar (Next big, ✓ / ✗ small). */
.sala-player.is-scan { align-items: center; }
.sala-teacher-qr { flex: none; width: 132px; height: 132px; padding: 6px; border-radius: 14px; background-color: #fff; }
.sala-teacher-qr:empty { background-color: var(--sala-noche); }
.sala-teacher-qr svg { display: block; width: 100%; height: 100%; }
.sala-avatar.is-teacher { background-color: var(--sala-fresa); }
.sala-presenter { display: flex; align-items: flex-start; }
.sala-presenter .sala-bubble { font-size: 22px; }
.sala-results { width: 430px; display: flex; flex-direction: column; gap: 14px; }
.sala-result-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 22px; background-color: var(--sala-noche2); }
.sala-result-row.is-ok { outline: 4px solid var(--sala-yema); outline-offset: -4px; }
.sala-result-text { display: grid; gap: 4px; min-width: 0; }
.sala-result-text strong { font: 900 30px/1 var(--sala-font); }
.sala-result-text span { display: flex; align-items: center; gap: 8px; font: 800 24px/1.1 var(--sala-font); }
.sala-result-text em { font: 900 30px/1 var(--sala-font); font-style: normal; color: var(--sala-yema); font-variant-numeric: tabular-nums; }
.sala-result-tick { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background-color: var(--sala-crema); color: #16794a; font: 900 30px/1 var(--sala-font); }
.sala-none { opacity: 0.7; font-weight: 800; }
.sala-pick { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--sala-ink); }
.sala-pick svg { fill: currentColor; }
.sala-pick.is-yema { background-color: var(--sala-yema); } .sala-pick.is-cian { background-color: var(--sala-cian); }
.sala-pick.is-fresa { background-color: var(--sala-fresa); } .sala-pick.is-lav { background-color: var(--sala-lav); }
.sala-tally { width: 400px; padding: 16px 20px; border-radius: 24px; background-color: var(--sala-noche2); }
.sala-tally-title { margin: 0 0 8px; font: 900 26px/1 var(--sala-font); color: var(--sala-yema); }
.sala-tally-row { display: flex; justify-content: space-between; gap: 12px; font: 900 34px/1.3 var(--sala-font); font-variant-numeric: tabular-nums; }
.sala-tally-cheer { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font: 900 24px/1.1 var(--sala-font); color: var(--sala-cian); }
.sala-pickers { display: flex; gap: 6px; margin-left: auto; }
.sala-answer .sala-pickers + .sala-answer-check { position: static; transform: none; }
.sala-medal-solo { width: 300px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sala-medal-solo b { font: 900 110px/1 var(--sala-font); color: var(--sala-yema); font-variant-numeric: tabular-nums; }
.sala-medal-solo span { font: 900 32px/1 var(--sala-font); }
.sala-bar-note.is-flash { color: var(--sala-yema); font-size: 18px; }
.sala-fix { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 12px; border: 2px solid var(--sala-noche2); }
.sala-fix-label { font: 800 14px/1 var(--sala-font); opacity: 0.85; }
.sala-button.is-small { min-width: 44px; padding: 0 10px; }
.sala-button.is-small[aria-pressed="true"] { background-color: var(--sala-crema); color: var(--sala-ink); }
.sala-button.is-big { min-height: 52px; padding: 0 28px; font-size: 22px; }

/* The teacher's phone (/sala/mando): navy like the room, big buttons, one hand. */
.sala-remote-page { position: fixed; inset: 0; z-index: 600; overflow: auto; background-color: #14215c; color: #fff7e0; font-family: "Nunito", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif; }
/* The controller itself is the full-screen layer (the portal's page wrapper keeps its own background). */
.sala-remote { box-sizing: border-box; position: fixed; inset: 0; z-index: 600; overflow: auto; background-color: #14215c; color: #fff7e0; font-family: "Nunito", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif; display: flex; flex-direction: column; gap: 14px; padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px), calc((100vw - 520px) / 2)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px), calc((100vw - 520px) / 2)); }
.sala-remote * { box-sizing: border-box; }
.sala-remote.is-center { justify-content: center; align-items: center; text-align: center; }
.sala-remote .sala-bolt { fill: #ffc93c; }
.sala-remote-head { display: flex; align-items: center; gap: 8px; font: 900 20px/1 "Nunito", "Segoe UI", system-ui, sans-serif; }
.sala-remote-head strong { color: #ffc93c; font-weight: 900; }
.sala-remote-head span { padding: 4px 10px; border-radius: 999px; background-color: #1f2f7d; font-size: 15px; font-weight: 800; }
.sala-remote-head em { margin-left: auto; font-style: normal; font-weight: 900; }
.sala-remote-big { margin: 8px 0 0; font: 900 32px/1.15 "Nunito", "Segoe UI", system-ui, sans-serif; }
.sala-remote-status { margin: 0; padding: 12px 14px; border-radius: 16px; background-color: #1f2f7d; font: 800 20px/1.25 "Nunito", "Segoe UI", system-ui, sans-serif; }
.sala-remote-status.is-ok { color: #2ec4e6; }
.sala-remote-note { margin: 0; font-size: 16px; opacity: 0.85; }
.sala-remote-go { min-height: 76px; border: 0; border-radius: 22px; background-color: #ffc93c; color: #14215c; font: 900 30px/1 "Nunito", "Segoe UI", system-ui, sans-serif; box-shadow: 0 6px 0 #0a1238; cursor: pointer; }
.sala-remote-go:active { transform: translateY(3px); box-shadow: 0 3px 0 #0a1238; }
.sala-remote-quiet { min-height: 48px; border: 2px solid #1f2f7d; border-radius: 14px; background-color: transparent; color: #fff7e0; font: 800 18px/1 "Nunito", "Segoe UI", system-ui, sans-serif; }
.sala-remote-ask { display: flex; align-items: center; gap: 14px; }
.sala-remote-ask p { margin: 0; font: 900 34px/1 "Nunito", "Segoe UI", system-ui, sans-serif; }
.sala-remote-picture { width: 120px; height: 104px; flex: none; display: grid; place-items: center; border-radius: 20px; background-color: #fff7e0; }
.sala-remote-picture img { width: 88%; height: 88%; object-fit: contain; }
.sala-remote-answers { display: grid; gap: 10px; }
.sala-remote-answer { position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 0 14px; border: 0; border-radius: 20px; color: #14215c; font: 900 28px/1.1 "Nunito", "Segoe UI", system-ui, sans-serif; text-align: left; box-shadow: 0 5px 0 #0a1238; cursor: pointer; }
.sala-remote-answer.is-yema { background-color: #ffc93c; } .sala-remote-answer.is-cian { background-color: #2ec4e6; }
.sala-remote-answer.is-fresa { background-color: #ff5c8a; } .sala-remote-answer.is-lav { background-color: #9b7bff; }
.sala-remote-answer.is-dim { opacity: 0.3; }
.sala-remote-answer.is-chosen { outline: 5px solid #fff7e0; outline-offset: 2px; }
.sala-remote-answer:disabled { cursor: default; }
.sala-remote-answer b { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background-color: #fff7e0; color: #16794a; }
.sala-remote-shape { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background-color: #fff7e0; }
.sala-remote-shape svg { fill: #14215c; }
.sala-remote-result { display: grid; gap: 6px; padding: 12px 14px; border-radius: 18px; background-color: #1f2f7d; }
.sala-remote-line { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin: 0; font-size: 18px; font-weight: 800; }
.sala-remote-line strong { font-size: 20px; }
.sala-remote-line span { grid-column: 1; opacity: 0.9; }
.sala-remote-line b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #ffc93c; font-size: 22px; font-variant-numeric: tabular-nums; }
.sala-remote-totals { display: flex; justify-content: space-between; margin: 4px 0 0; padding-top: 8px; border-top: 2px solid #14215c; font: 900 20px/1 "Nunito", "Segoe UI", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.sala-remote-tally { display: grid; gap: 6px; padding: 14px; border-radius: 18px; background-color: #1f2f7d; }
.sala-remote-tally p { display: flex; justify-content: space-between; margin: 0; font: 900 26px/1.2 "Nunito", "Segoe UI", system-ui, sans-serif; }
.sala-remote-fix { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.sala-remote-small { min-width: 52px; min-height: 44px; border: 2px solid #fff7e0; border-radius: 12px; background-color: transparent; color: #fff7e0; font: 900 22px/1 "Nunito", "Segoe UI", system-ui, sans-serif; }
.sala-remote-small[aria-pressed="true"] { background-color: #fff7e0; color: #14215c; }
.sala-remote-flash { margin: 0; padding: 10px 12px; border-radius: 12px; background-color: #fff7e0; color: #14215c; font-weight: 900; }
.sala-remote-go:focus-visible, .sala-remote-answer:focus-visible, .sala-remote-small:focus-visible, .sala-remote-quiet:focus-visible { outline: 3px solid #2ec4e6; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sala-remote-go:active { transform: none; } }

/* Destapa (session 7): teal board, two teams, the open tile on the same screen. */
.sala-screen.is-mar { background-color: #0b5563; }
.sala-team { position: absolute; top: 0; bottom: 0; width: 230px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 30px; text-align: center; }
.sala-team strong { font: 900 30px/1.1 var(--sala-font); }
.sala-team-score { min-width: 150px; padding: 10px 18px; border-radius: 22px; font: 900 60px/1 var(--sala-font); color: var(--sala-ink); box-shadow: 0 6px 0 rgb(4 30 36 / 70%); font-variant-numeric: tabular-nums; }
.sala-team.is-child .sala-team-score { background-color: var(--sala-cian); }
.sala-team.is-rival .sala-team-score { background-color: var(--sala-fresa); }
.sala-team.is-turn::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 26px; height: 12px; border-radius: 6px; background-color: var(--sala-yema); }
.sala-board-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sala-board-title { margin: 0; font: 900 44px/1 var(--sala-font); color: var(--sala-yema); }
.sala-ribbon { padding: 10px 24px; border-radius: 16px; color: var(--sala-ink); font: 900 30px/1.1 var(--sala-font); }
.sala-ribbon.is-cian { background-color: var(--sala-cian); }
.sala-ribbon.is-fresa { background-color: var(--sala-fresa); }
.sala-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sala-tile { display: grid; place-items: center; height: 116px; border: 0; border-radius: 20px; color: var(--sala-ink); font: 900 60px/1 var(--sala-font); box-shadow: 0 7px 0 rgb(4 30 36 / 70%); }
button.sala-tile { cursor: pointer; }
button.sala-tile:focus-visible { outline: 6px solid var(--sala-crema); outline-offset: 2px; }
.sala-tile.is-yema { background-color: var(--sala-yema); } .sala-tile.is-cian { background-color: var(--sala-cian); }
.sala-tile.is-fresa { background-color: var(--sala-fresa); } .sala-tile.is-lav { background-color: var(--sala-lav); }
.sala-tile.is-used { background-color: #0f6a7a; color: #0b5563; box-shadow: none; }
.sala-tile.is-won { background-color: #0f6a7a; }
.sala-tile.is-won.is-student { outline: 6px solid var(--sala-cian); outline-offset: -6px; }
.sala-tile.is-won.is-teacher { outline: 6px solid var(--sala-fresa); outline-offset: -6px; }
.sala-tile.is-won.is-torti { outline: 6px solid var(--sala-yema); outline-offset: -6px; }
.sala-tile.is-won img { height: 84%; object-fit: contain; }
.sala-tile-mark { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; font-size: 40px; }
.sala-tile-mark.is-student { background-color: var(--sala-cian); }
.sala-tile-mark.is-teacher { background-color: var(--sala-fresa); }
.sala-veil { inset: 0; background-color: rgb(6 40 48 / 72%); }
.sala-open { left: 300px; top: 70px; width: 680px; height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 30px; background-color: var(--sala-crema); color: var(--sala-ink); box-shadow: 0 12px 0 rgb(4 30 36 / 70%); text-align: center; }
.sala-open-tag { padding: 8px 20px; border-radius: 14px; background-color: var(--sala-yema); font: 900 28px/1 var(--sala-font); }
.sala-open-picture { flex: none; width: 340px; height: 260px; overflow: hidden; }
.sala-open-picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sala-open-ask { margin: 0; font: 900 64px/1 var(--sala-font); }
.sala-open-result { margin: 0; font: 900 52px/1.1 var(--sala-font); color: #0b5563; }
.sala-open-result.is-ok { color: #16794a; }
.sala-open-note { margin: 0; font: 800 24px/1.2 var(--sala-font); }
.sala-said { right: 40px; top: 300px; }
.sala-said .sala-bubble { right: 90px; top: -20px; font-size: 34px; }
.sala-card.is-fresa { background-color: var(--sala-fresa); } .sala-card.is-yema { background-color: var(--sala-yema); }
.sala-card.is-lav { background-color: var(--sala-lav); } .sala-card.is-cian { background-color: var(--sala-cian); }
.sala-card .sala-open-tag { background-color: var(--sala-crema); }
.sala-card-title { margin: 0; font: 900 130px/1 var(--sala-font); color: var(--sala-crema); text-shadow: 0 8px 0 var(--sala-ink); }
.sala-card-text { margin: 0; font: 900 40px/1.15 var(--sala-font); }
.sala-card-who { margin: 0; font: 900 30px/1 var(--sala-font); }
.sala-end-team { width: 260px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sala-end-team strong { font: 900 40px/1 var(--sala-font); }
.sala-end-team b { font: 900 90px/1 var(--sala-font); color: var(--sala-yema); font-variant-numeric: tabular-nums; }
.sala-trophy svg path, .sala-trophy svg rect { fill: var(--sala-yema); }
.sala-trophy svg .is-line { fill: none; stroke: var(--sala-yema); stroke-width: 14; }

/* The teacher's phone: the game choice and the board. */
.sala-remote-games { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sala-remote-small.is-wide { min-height: 52px; font-size: 20px; }
.sala-remote-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sala-remote-tile { display: grid; place-items: center; min-height: 64px; border: 0; border-radius: 16px; color: #14215c; font: 900 30px/1 "Nunito", system-ui, sans-serif; box-shadow: 0 4px 0 #0a1238; }
.sala-remote-tile.is-yema { background-color: #ffc93c; } .sala-remote-tile.is-cian { background-color: #2ec4e6; }
.sala-remote-tile.is-fresa { background-color: #ff5c8a; } .sala-remote-tile.is-lav { background-color: #9b7bff; }
.sala-remote-tile:disabled { opacity: 0.55; }
.sala-remote-tile.is-used, .sala-remote-tile.is-student, .sala-remote-tile.is-teacher, .sala-remote-tile.is-torti { background-color: #1f2f7d; color: #fff7e0; box-shadow: none; }
.sala-remote-tile.is-student { outline: 3px solid #2ec4e6; outline-offset: -3px; }
.sala-remote-tile.is-teacher { outline: 3px solid #ff5c8a; outline-offset: -3px; }
.sala-remote-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sala-remote-pair [data-quiet] { background-color: #1f2f7d; color: #fff7e0; }
.sala-remote-tile:focus-visible { outline: 3px solid #fff7e0; outline-offset: 2px; }

/* The waiting room shows one code, the child's; the teacher's own code waits behind a button and opens
   in a separate box (smaller, cream, «Teacher only») that darkens the child's code while it is open. */
.sala-for-child { display: inline-block; margin-right: 10px; padding: 4px 14px; border-radius: 999px; background-color: var(--sala-cian); color: var(--sala-ink); font: 900 24px/1.2 var(--sala-font); vertical-align: middle; }
.sala .sala-teacher-open { margin-top: 6px; min-height: 48px; padding: 0 18px; border: 3px solid var(--sala-crema); border-radius: 14px; background-color: transparent; color: var(--sala-crema); font: 900 22px/1 var(--sala-font); cursor: pointer; }
.sala .sala-teacher-open:hover { background-color: var(--sala-noche); }
.sala .sala-teacher-open:focus-visible { outline: 4px solid var(--sala-cian); outline-offset: 2px; }
.sala-teacher-veil { inset: 0; background-color: rgb(10 18 56 / 82%); }
.sala-teacher-box { right: 40px; top: 120px; width: 560px; display: grid; grid-template-columns: 190px 1fr; gap: 14px 20px; align-items: center; padding: 24px 26px; border-radius: 26px; background-color: var(--sala-crema); color: var(--sala-ink); box-shadow: 0 12px 0 var(--sala-shadow); }
.sala-teacher-box-tag { grid-column: 1 / -1; justify-self: start; margin: 0; padding: 6px 16px; border-radius: 12px; background-color: var(--sala-fresa); font: 900 26px/1.1 var(--sala-font); }
.sala-teacher-box-qr { width: 190px; height: 190px; padding: 6px; border: 4px solid var(--sala-fresa); border-radius: 14px; background-color: #fff; }
.sala-teacher-box-qr svg { display: block; width: 100%; height: 100%; }
.sala-teacher-box-text p { margin: 0 0 10px; font: 800 22px/1.25 var(--sala-font); }
.sala-teacher-box-text p.is-small { font-size: 18px; opacity: 0.85; }
.sala .sala-teacher-close { position: absolute; right: 14px; top: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background-color: var(--sala-ink); color: var(--sala-crema); font: 900 24px/1 var(--sala-font); cursor: pointer; }
.sala-remote-code { display: grid; gap: 10px; }
.sala-remote-code label { font-weight: 800; }
.sala-remote-code input { min-height: 64px; padding: 0 16px; border: 3px solid #fff7e0; border-radius: 16px; background-color: #1f2f7d; color: #fff7e0; font: 900 34px/1 "Nunito", system-ui, sans-serif; letter-spacing: 4px; }
.sala-remote-flash.is-empty { display: none; }
.auth-notice { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #fff6cc; color: #14215c; font-size: 14px; line-height: 1.4; }

/* Sala S9: the arcade games, Penalti and the Mascot race. Flat colours; the replays are CSS animations
   written by src/sala/arcadeView.js from the move's numbers. */
.sala-screen.is-pitch { background-color: #14215c; }
.sala-screen.is-road { background-color: #1f6b3e; }
.arcade-role, .arcade-status { margin: 0; text-align: center; font-weight: 900; font-size: 34px; color: var(--sala-crema); }
.arcade-status { display: flex; justify-content: center; gap: 18px; z-index: 3; }
.arcade-chip { display: inline-block; padding: 10px 22px; border-radius: 999px; background-color: var(--sala-noche2); color: var(--sala-crema); font-size: 28px; }
.arcade-chip.is-in { background-color: var(--sala-yema); color: var(--sala-ink); }
.arcade-ask { display: flex; gap: 48px; align-items: center; }
.arcade-ask-picture { width: 430px; height: 430px; display: grid; place-items: center; border-radius: 36px; background-color: var(--sala-crema); box-shadow: 0 10px 0 var(--sala-shadow); }
.arcade-ask-picture img { width: 86%; height: 86%; object-fit: contain; }
.arcade-ask-side { width: 560px; display: grid; gap: 18px; }
.arcade-ask-q { margin: 0; font-size: 64px; font-weight: 900; color: var(--sala-yema); }
.arcade-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.arcade-option { padding: 18px 28px; border-radius: 22px; background-color: var(--sala-noche2); font-size: 44px; font-weight: 900; color: var(--sala-crema); box-shadow: 0 6px 0 var(--sala-shadow); }
.arcade-option.is-right { background-color: var(--sala-yema); color: var(--sala-ink); }
.arcade-option.is-chosen { background-color: var(--sala-cian); color: var(--sala-ink); }
.arcade-option.is-dim { opacity: 0.45; }
.arcade-prize { margin: 0; font-size: 28px; font-weight: 800; color: var(--sala-cian); }
.arcade-said { margin: 0; padding: 8px 20px; border-radius: 999px; background-color: var(--sala-noche); font-size: 30px; font-weight: 900; z-index: 4; }
.arcade-said.is-ok { color: var(--sala-yema); }
.arcade-pad { position: relative; overflow: hidden; border-radius: 24px; touch-action: none; user-select: none; -webkit-user-select: none; }
.arcade-pad canvas { display: block; touch-action: none; }
.arcade-pad-tv { z-index: 5; box-shadow: 0 0 0 6px var(--sala-yema); cursor: crosshair; }

/* Penalti with targets (S10): a stadium, five numbered targets, the mascots as players. The stadium is
   an <img> (this stylesheet keeps the portal's rule: no background images, no gradients). */
.pk2-stadium { object-fit: cover; z-index: 0; }
.pk2-dim { left: 0; top: 0; width: 1280px; height: 720px; background-color: rgba(10, 18, 56, .72); z-index: 1; }
.sala-screen.is-stadium .arcade-ask, .sala-screen.is-stadium .arcade-role { z-index: 2; }
.pk2-board { display: flex; align-items: center; justify-content: space-between; height: 84px; z-index: 6; }
.pk2-side { display: flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 999px; background-color: rgba(10, 18, 56, .82); font-size: 30px; color: var(--sala-crema); }
.pk2-side.is-rival { padding: 6px 6px 6px 18px; }
.pk2-side strong { font-weight: 900; }
.pk2-side b { min-width: 70px; padding: 2px 14px; border-radius: 16px; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.pk2-head { display: grid; place-items: center; width: 70px; height: 70px; overflow: hidden; border-radius: 50%; background-color: var(--sala-cian); }
.pk2-head.is-rival { background-color: var(--sala-fresa); }
.pk2-head img { width: 118%; height: auto; margin-top: 30%; }
.pk2-marks { display: flex; gap: 6px; }
.pk2-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 247, 224, .7); font-style: normal; font-size: 18px; font-weight: 900; }
.pk2-mark.is-goal { background-color: var(--sala-yema); border-color: var(--sala-yema); color: var(--sala-ink); }
.pk2-mark.is-saved { background-color: var(--sala-cian); border-color: var(--sala-cian); color: var(--sala-ink); }
.pk2-mark.is-miss { background-color: var(--sala-noche2); border-color: #6b78b8; }
.pk2-kick { padding: 8px 22px; border-radius: 999px; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 28px; font-weight: 900; }
.pk2-pitch { z-index: 2; }
.pk2-goal { position: absolute; left: 0; top: 0; }
.pk2-net { stroke: rgba(255, 255, 255, .45); stroke-width: 2; fill: none; }
.pk2-frame { stroke: #fff; stroke-width: 16; fill: none; stroke-linecap: round; }
.pk2-spot { fill: rgba(255, 255, 255, .85); }
.pk2-targets { position: absolute; inset: 0; z-index: 4; }
.pk2-targets.is-behind { z-index: 2; }
.pk2-target { position: absolute; opacity: .9; display: grid; place-items: center; border-radius: 50%; border: 6px solid #fff; color: #fff; box-shadow: 0 6px 0 rgba(10, 18, 56, .35); animation: pk2-breathe 2.4s ease-in-out infinite; }
.pk2-target b { font-weight: 900; line-height: 1; text-shadow: 0 4px 0 rgba(10, 18, 56, .35); }
.pk2-target i { position: absolute; right: -14%; top: -16%; padding: 2px 10px; border-radius: 999px; background-color: var(--sala-yema); color: var(--sala-ink); font-style: normal; font-weight: 900; font-size: max(20px, .34em); }
.pk2-target:nth-child(2) { animation-delay: .3s; } .pk2-target:nth-child(3) { animation-delay: .6s; } .pk2-target:nth-child(4) { animation-delay: .9s; } .pk2-target:nth-child(5) { animation-delay: 1.2s; }
.pk2-target.is-faint { animation: none; opacity: .55; }
.pk2-target.is-hit { opacity: 1; animation: pk2-burst .7s cubic-bezier(.2, 1.6, .4, 1) 1.18s both; }
@keyframes pk2-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes pk2-burst { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 201, 60, .9); } 50% { transform: scale(1.45); box-shadow: 0 0 0 26px rgba(255, 201, 60, .5); } 100% { transform: scale(1.22); box-shadow: 0 0 0 12px rgba(255, 201, 60, .4); } }
.pk2-keeper { position: absolute; width: 300px; height: 262px; transform: translate(-50%, 0); z-index: 3; }
.pk2-pitch.is-replay .pk2-keeper { z-index: 5; }
.pk2-keeper .pk2-pose { position: absolute; left: 50%; bottom: 0; height: 262px; max-width: none; transform: translateX(-50%); }
.pk2-keeper .pk2-pose.is-flip { transform: translateX(-50%) scaleX(-1); }
.pk2-shooter { position: absolute; width: 230px; height: 290px; z-index: 6; }
.pk2-shooter .pk2-pose { position: absolute; left: 0; bottom: 0; height: 290px; max-width: none; }
.pk2-ball { position: absolute; left: 0; top: 0; width: 56px; height: 56px; z-index: 7; }
.pk2-ball.is-gold svg { filter: drop-shadow(0 0 12px rgba(255, 201, 60, .95)); }
.pk2-stand { position: absolute; left: 14px; bottom: 6px; width: 220px; height: 250px; z-index: 6; }
.pk2-fan { position: absolute; left: 0; bottom: 0; height: 250px; max-width: none; }
/* The replay: what is shown before the outcome, and after. */
.pk2-pitch.is-replay .is-after { animation: pk2-in .01s linear .8s both; }
.pk2-pitch.is-replay .is-mid { animation: pk2-mid .5s linear .8s both; }
.pk2-pitch.is-replay .is-before { animation: pk2-out .01s linear .8s both; }
.pk2-pitch.is-replay .is-after-late { animation: pk2-in .25s ease-out 1.3s both; }
.pk2-pitch.is-replay .is-before-late { animation: pk2-out .01s linear 1.3s both; }
.pk2-pitch.is-replay .pk2-shooter .is-after-late, .pk2-pitch.is-replay .pk2-stand .is-after-late { animation: pk2-hop .6s cubic-bezier(.2, 1.4, .4, 1) 1.3s both; }
@keyframes pk2-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pk2-mid { 0% { opacity: 0; } 1% { opacity: 1; } 99% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pk2-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes pk2-hop { 0% { opacity: 0; transform: translateY(30px) scale(.9); } 60% { opacity: 1; transform: translateY(-26px) scale(1.04); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.pk2-banner { text-align: center; z-index: 8; animation: pk-pop .5s cubic-bezier(.2, 1.4, .4, 1) 1.3s both; }
.pk2-banner strong { display: inline-block; padding: 6px 40px; border-radius: 28px; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 84px; font-weight: 900; box-shadow: 0 10px 0 var(--sala-shadow); }
.pk2-banner.is-saved strong { background-color: var(--sala-cian); }
.pk2-banner.is-miss strong { background-color: var(--sala-crema); }
.pk2-banner span { display: table; margin: 12px auto 0; padding: 4px 22px; border-radius: 999px; background-color: rgba(10, 18, 56, .85); color: var(--sala-crema); font-size: 34px; font-weight: 900; }
.pk2-status { z-index: 8; }
.pk2-legend { margin: 0; text-align: center; z-index: 8; font-size: 28px; font-weight: 800; color: var(--sala-crema); }
.pk2-legend b { color: var(--sala-yema); }
.pk2-pad { z-index: 9; box-shadow: 0 0 0 6px var(--sala-yema); }
.sala-screen.is-stadium > svg, .sala-screen.is-stadium .sala-title { z-index: 3; }
.pk2-end { display: grid; justify-items: center; gap: 8px; z-index: 3; }
.pk2-end-pose { height: 360px; max-width: none; }
.pk2-end strong { font-size: 40px; font-weight: 900; color: var(--sala-crema); }
.pk2-end b { padding: 2px 26px; border-radius: 18px; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 64px; }
/* The Mascot race, live (S11): the countryside, two roads drawn on one canvas, the track on top. */
.rr-hills { object-fit: cover; z-index: 0; }
.rr-dim { left: 0; top: 0; width: 1280px; height: 720px; background-color: rgba(10, 18, 56, .55); z-index: 1; }
.sala-screen.is-hills .arcade-ask, .sala-screen.is-hills .arcade-role { z-index: 2; }
.sala-screen.is-hills .sala-title { z-index: 3; }
.rr-prize b { color: var(--sala-yema); }
.rr-track { z-index: 5; }
.rr-track .rr-road { position: absolute; left: 120px; right: 30px; top: 50px; height: 10px; border-radius: 6px; background-color: rgba(255, 247, 224, .55); }
.rr-flag { position: absolute; right: 22px; top: 6px; width: 16px; height: 106px; border-radius: 4px; border: 3px solid var(--sala-crema); background-color: var(--sala-ink); }
.rr-lane { position: absolute; left: 0; right: 0; height: 54px; }
.rr-name { position: absolute; left: 0; top: 12px; width: 110px; font-size: 24px; font-weight: 900; color: var(--sala-crema); text-shadow: 0 2px 0 rgba(10, 18, 56, .6); }
.rr-runner { position: absolute; left: calc(120px + (100% - 220px) * var(--to)); top: 0; display: flex; align-items: center; gap: 8px; }
.rr-runner.is-moving { animation: rr-move 1.2s cubic-bezier(.3, .8, .4, 1) .3s both; }
@keyframes rr-move { from { left: calc(120px + (100% - 220px) * var(--from)); } to { left: calc(120px + (100% - 220px) * var(--to)); } }
.rr-head { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 50%; background-color: var(--sala-cian); border: 3px solid var(--sala-crema); }
.rr-head.is-rival { background-color: var(--sala-fresa); }
.rr-head img { width: 118%; height: auto; margin-top: 30%; }
.rr-runner em { font-style: normal; padding: 2px 12px; border-radius: 12px; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rr-leg { margin: 0; z-index: 5; font-size: 22px; font-weight: 900; color: var(--sala-crema); text-shadow: 0 2px 0 rgba(10, 18, 56, .6); }
.rr-leg b { font-size: 46px; color: var(--sala-yema); }
.rr-stage { z-index: 3; }
.rr-box-name { margin: 0; z-index: 4; display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 900; color: var(--sala-crema); }
.rr-box-name span { padding: 2px 16px; border-radius: 999px; background-color: rgba(10, 18, 56, .8); }
.rr-turbo { padding: 2px 12px; border-radius: 999px; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 20px; }
.rr-in { display: none; font-style: normal; padding: 2px 12px; border-radius: 999px; background-color: var(--sala-cian); color: var(--sala-ink); font-size: 20px; }
.rr-in.is-in { display: inline-block; }
.rr-pad { z-index: 4; box-shadow: 0 0 0 6px var(--sala-yema); border-radius: 18px; }
.rr-keys { margin: 0; z-index: 5; text-align: center; font-size: 30px; font-weight: 900; color: var(--sala-crema); }
.rr-finish-line { left: 620px; top: 140px; width: 40px; height: 580px; z-index: 2; background-color: var(--sala-crema); border-left: 20px solid var(--sala-ink); opacity: .9; }
.rr-photo-title { width: fit-content; margin: 0 auto; padding: 2px 30px; border-radius: 26px; background-color: var(--sala-ink); text-align: center; z-index: 4; font-size: 56px; font-weight: 900; color: var(--sala-yema); text-shadow: 0 4px 0 var(--sala-shadow); animation: pk-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.rr-photo { z-index: 3; width: 400px; display: grid; justify-items: center; gap: 4px; }
.rr-photo-pose { height: 300px; max-width: none; animation: pk2-hop .6s cubic-bezier(.2, 1.4, .4, 1) .2s both; }
.rr-photo-name { margin: 0; font-size: 34px; font-weight: 900; color: var(--sala-crema); }
.rr-tally { margin: 0; padding: 4px 16px; border-radius: 999px; background-color: rgba(10, 18, 56, .85); color: var(--sala-crema); font-size: 26px; font-weight: 900; }
.rr-crate-mini { display: inline-block; width: 18px; height: 16px; border-radius: 3px; background-color: #d39a52; border: 2px solid #8f5d22; vertical-align: -1px; }
.rr-plus { margin: 0; padding: 2px 22px; border-radius: 18px; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 44px; font-weight: 900; animation: pk-pop .5s cubic-bezier(.2, 1.4, .4, 1) .5s both; }
.rr-said { margin: 0; z-index: 4; padding: 6px 18px; border-radius: 999px; background-color: var(--sala-noche); font-size: 26px; font-weight: 900; }
.rr-said.is-ok { color: var(--sala-yema); }
.rr-end { z-index: 3; width: 370px; display: grid; justify-items: center; gap: 6px; }
.rr-end-pose { height: 320px; max-width: none; }
.rr-end strong { font-size: 40px; font-weight: 900; color: var(--sala-crema); }
.rr-end b { padding: 2px 24px; border-radius: 18px; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 52px; }
.rr-praise { padding: 4px 18px; border-radius: 999px; background-color: var(--sala-cian); color: var(--sala-ink); font-size: 28px; font-weight: 900; }
/* The players' mascots in the waiting room (S11). */
.sala-mascot-pick { display: grid; place-items: center; width: 84px; height: 84px; overflow: hidden; border-radius: 50%; background-color: var(--sala-cian); flex: none; }
.sala-mascot-pick.is-teacher { background-color: var(--sala-fresa); }
.sala-mascot-pick img { width: 120%; height: auto; margin-top: 34%; }
.sala-mascot-pick-hint { display: block; font-size: 18px; font-weight: 800; color: var(--sala-cian); }
/* The teacher's mascot on her phone (S11). */
.sala-remote-mascots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sala-remote-mascots p { grid-column: 1 / -1; margin: 0; font-weight: 900; }
.sala-remote-mascot { display: grid; justify-items: center; gap: 2px; min-height: 92px; padding: 6px 2px; border-radius: 16px; border: 3px solid transparent; background-color: #1d2c78; color: #fff7e0; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.sala-remote-mascot img { width: 56px; height: 56px; object-fit: contain; }
.sala-remote-mascot[aria-pressed="true"] { border-color: #ffc93c; background-color: #2c3b8f; }
.sala-remote-mascot:disabled { opacity: .45; cursor: default; }
.sala-confetti { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; pointer-events: none; z-index: 20; }
@keyframes pk-pop { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }


/* The arcade pad on the teacher's phone: a big square to play in. */
.sala-remote.is-arcade .arcade-pad-phone { width: 100%; height: min(62vh, 520px); flex: none; }

@media (prefers-reduced-motion: reduce) {
  .pk2-target { animation: none; }
  .pk2-ball, .pk2-keeper, .pk2-shooter, .pk2-banner, .pk2-target.is-hit, .pk2-pitch .pk2-pose, .pk2-fan, .rr-runner.is-moving, .rr-photo-pose, .rr-plus, .rr-photo-title { animation-duration: 1ms !important; animation-delay: 0s !important; }
}

/* Sala S12: the illustrated backdrops (an <img>, never a background image) under a flat dim layer. */
.sala-backdrop { left: 0; top: 0; width: 1280px; height: 720px; object-fit: cover; z-index: 0; pointer-events: none; }
.sala-backdrop-dim { left: 0; top: 0; width: 1280px; height: 720px; z-index: 0; background-color: rgb(16 26 76 / 55%); pointer-events: none; }
.sala-backdrop-dim.is-deep { background-color: rgb(16 26 76 / 70%); }
.sala-backdrop-dim.is-teal { background-color: rgb(8 60 70 / 50%); }

/* Sala S12, Relámpago: three kinds of question (word, listen, yes / no), the reveal in three beats
   (drum roll; the others fall away; the right one grows with the players' mascots), the score as two
   bars with the mascots at the tip, and the end with both mascots and a praise each. */
.fq-head, .gb-head { display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; background-color: var(--sala-cian); box-shadow: 0 0 0 4px var(--sala-noche); vertical-align: middle; }
.fq-head.is-rival, .gb-head.is-rival { background-color: var(--sala-fresa); }
.fq-head img, .gb-head img { width: 125%; height: auto; margin-top: 30%; }
.fq-screen .sala-title { z-index: 3; }
.fq-ask { font-size: 64px; }
.fq-picture { overflow: hidden; border-radius: 30px; background-color: var(--sala-crema); box-shadow: 0 10px 0 var(--sala-shadow); }
.fq-picture img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.fq-speaker { width: 200px; height: 170px; display: grid; place-items: center; border: 0; border-radius: 40px; background-color: var(--sala-yema); box-shadow: 0 10px 0 var(--sala-shadow); cursor: pointer; }
.fq-speaker svg path { fill: var(--sala-ink); }
.fq-speaker svg .is-wave { fill: none; stroke: var(--sala-ink); animation: fq-wave 1.2s ease-in-out infinite; }
.fq-heard { position: absolute; top: 186px; left: 50%; transform: translateX(-50%); font: 900 48px/1 var(--sala-font); color: var(--sala-crema); white-space: nowrap; }
.fq-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fq-answers.is-listen { grid-template-columns: repeat(4, 1fr); }
.fq-answers.is-truefalse { gap: 40px; }
.fq-answer { position: relative; display: flex; align-items: center; gap: 18px; height: 100px; padding: 0 24px; border-radius: 24px; color: var(--sala-ink); box-shadow: 0 7px 0 var(--sala-shadow); }
.fq-answers.is-result .fq-answer { height: 92px; }
.fq-answers.is-listen .fq-answer { flex-direction: column; justify-content: center; height: 300px; padding: 14px; gap: 8px; }
.fq-answers.is-listen.is-result .fq-answer { height: 270px; }
.fq-answers.is-truefalse .fq-answer { height: 150px; justify-content: center; }
.fq-answer-icon { display: grid; place-items: center; flex: none; width: 70px; height: 70px; border-radius: 50%; background-color: var(--sala-crema); }
.fq-answer-icon svg { fill: currentColor; }
.fq-answers.is-truefalse .fq-answer-icon { width: 104px; height: 104px; }
.fq-answers.is-listen .fq-answer-icon { position: absolute; left: 10px; top: 10px; width: 58px; height: 58px; z-index: 1; }
.fq-answer-picture { flex: 1; width: 100%; min-height: 0; display: grid; place-items: center; border-radius: 18px; background-color: var(--sala-crema); }
.fq-answer-picture { position: relative; }
.fq-answer-picture img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; }
.fq-answer-word { font: 900 54px/1 var(--sala-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fq-answers.is-listen .fq-answer-word { font-size: 30px; }
.fq-answers.is-truefalse .fq-answer-word { font-size: 76px; }
.fq-answer-check { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background-color: var(--sala-crema); color: #16794a; font: 900 44px/1 var(--sala-font); }
.fq-answers.is-listen .fq-answer-check { top: 10px; right: 10px; transform: none; width: 58px; height: 58px; }
.fq-answer.is-yema { background-color: var(--sala-yema); } .fq-answer.is-yema .fq-answer-icon { color: #d18b00; }
.fq-answer.is-cian { background-color: var(--sala-cian); } .fq-answer.is-cian .fq-answer-icon { color: #0b7c99; }
.fq-answer.is-fresa { background-color: var(--sala-fresa); } .fq-answer.is-fresa .fq-answer-icon { color: #c42a5b; }
.fq-answer.is-lav { background-color: var(--sala-lav); } .fq-answer.is-lav .fq-answer-icon { color: #5a39c9; }
.fq-answer.is-other { opacity: 0.28; filter: saturate(0.4); transform: translateY(16px); }
.fq-answer.is-right { transform: scale(1.06); z-index: 1; }
.fq-pickers { display: flex; gap: 6px; margin-left: auto; }
.fq-answers.is-listen .fq-pickers { position: absolute; left: 76px; top: 12px; margin: 0; }
.fq-pickers + .fq-answer-check { position: static; transform: none; }
.fq-answers.is-listen .fq-pickers + .fq-answer-check { position: absolute; top: 10px; right: 10px; }
.fq-answered { display: flex; flex-direction: column; gap: 10px; }
.fq-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; background-color: var(--sala-noche2); font: 900 26px/1 var(--sala-font); opacity: 0.55; }
.fq-chip.is-done { opacity: 1; }
.fq-screen.is-listen .fq-answered { top: 140px !important; left: 790px !important; }
.fq-screen.is-listen .sala-timer { left: 300px !important; top: 104px !important; }
.sala-timer.is-hurry .is-left { stroke: var(--sala-fresa); }
.sala-timer.is-hurry span { color: var(--sala-yema); animation: sala-pulse 0.5s ease-in-out infinite; }
.fq-results { width: 430px; display: flex; flex-direction: column; gap: 14px; z-index: 2; }
.fq-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 22px; background-color: var(--sala-noche2); }
.fq-row.is-ok { outline: 4px solid var(--sala-yema); outline-offset: -4px; }
.fq-row.is-changed { animation: fq-changed 0.9s ease-out 2; }
.fq-row-text { display: grid; gap: 4px; min-width: 0; }
.fq-row-text strong { font: 900 30px/1 var(--sala-font); }
.fq-row-text > span { display: flex; align-items: center; gap: 8px; font: 800 24px/1.1 var(--sala-font); }
.fq-row-text em { font: 900 30px/1 var(--sala-font); font-style: normal; color: var(--sala-yema); font-variant-numeric: tabular-nums; }
.fq-row-tick { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background-color: var(--sala-crema); color: #16794a; font: 900 30px/1 var(--sala-font); }
.fq-none { opacity: 0.7; font-weight: 800; }
.fq-pick { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--sala-ink); }
.fq-pick svg { fill: currentColor; }
.fq-pick.is-yema { background-color: var(--sala-yema); } .fq-pick.is-cian { background-color: var(--sala-cian); }
.fq-pick.is-fresa { background-color: var(--sala-fresa); } .fq-pick.is-lav { background-color: var(--sala-lav); }
.fq-score { width: 410px; padding: 16px 20px 20px; border-radius: 24px; background-color: var(--sala-noche2); z-index: 2; }
.fq-score-title { margin: 0 0 12px; font: 900 26px/1 var(--sala-font); color: var(--sala-yema); }
.fq-bars { display: grid; gap: 16px; }
.fq-lane { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 10px; }
.fq-lane-name { font: 900 26px/1 var(--sala-font); }
.fq-lane-points { grid-row: 1; grid-column: 2; font: 900 34px/1 var(--sala-font); color: var(--sala-yema); font-variant-numeric: tabular-nums; }
.fq-lane-track { grid-column: 1 / -1; position: relative; height: 30px; margin-right: 32px; border-radius: 15px; background-color: var(--sala-noche); }
.fq-lane-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--to); border-radius: 15px; background-color: var(--sala-cian); }
.fq-lane.is-rival .fq-lane-fill { background-color: var(--sala-fresa); }
.fq-lane-tip { position: absolute; top: 50%; left: var(--to); transform: translate(-50%, -50%); }
.fq-cheer { margin: 14px 0 0; font: 900 26px/1.1 var(--sala-font); color: var(--sala-cian); }
.fq-drum { margin: 0; text-align: center; font: 900 150px/1 var(--sala-font); color: var(--sala-yema); opacity: 0; pointer-events: none; z-index: 4; }
/* The three beats (none of it when the teacher changes a verdict afterwards: `is-instant`). */
.fq-screen.is-reveal .fq-drum { animation: fq-drum 1s ease-out both; }
.fq-screen.is-reveal .fq-answers { animation: fq-shake 0.12s linear 7; }
.fq-screen.is-reveal .fq-answer.is-other { animation: fq-fall 0.6s ease-in 1s both; }
.fq-screen.is-reveal .fq-answer.is-right { animation: fq-win 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) 1.6s both; }
.fq-screen.is-reveal .fq-pickers, .fq-screen.is-reveal .fq-answer-check, .fq-screen.is-reveal .fq-heard { animation: pk-pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) 1.85s both; }
.fq-screen.is-reveal .fq-results, .fq-screen.is-reveal .fq-score { animation: sala-rise 0.5s ease-out 2.1s both; }
.fq-screen.is-reveal .fq-lane-fill { animation: fq-grow 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) var(--delay) both; }
.fq-screen.is-reveal .fq-lane-tip { animation: fq-tip 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) var(--delay) both; }
@keyframes fq-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes fq-fall { from { opacity: 1; transform: none; filter: none; } to { opacity: 0.28; transform: translateY(16px); filter: saturate(0.4); } }
@keyframes fq-win { 0% { transform: scale(1); } 60% { transform: scale(1.14); } 100% { transform: scale(1.06); } }
@keyframes fq-drum { 0% { opacity: 0; transform: scale(0.6); } 20%, 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.2); } }
@keyframes fq-grow { from { width: var(--from); } to { width: var(--to); } }
@keyframes fq-tip { from { left: var(--from); } to { left: var(--to); } }
@keyframes fq-wave { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes fq-changed { 0% { box-shadow: 0 0 0 0 var(--sala-yema); } 100% { box-shadow: 0 0 0 18px transparent; } }
.fq-end { z-index: 3; width: 370px; display: grid; justify-items: center; gap: 6px; }
.fq-end-pose { height: 300px; max-width: none; }
.fq-end strong { font: 900 40px/1 var(--sala-font); color: var(--sala-crema); }
.fq-end b { padding: 2px 24px; border-radius: 18px; background-color: var(--sala-yema); color: var(--sala-ink); font: 900 52px/1.1 var(--sala-font); font-variant-numeric: tabular-nums; }
.fq-praise { padding: 4px 18px; border-radius: 999px; background-color: var(--sala-cian); color: var(--sala-ink); font: 900 28px/1.2 var(--sala-font); }
.fq-end.is-best .fq-end-pose { animation: sala-bob 2.4s ease-in-out infinite; }

/* Sala S12, Destapa: gifts that rattle before they open, cards presented by the drawer's mascot, the
   score as two jars of stars. */
.gb-screen .sala-title { z-index: 3; }
.gb-gifts { z-index: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gb-screen .gb-veil { z-index: 5; }
.gb-screen .gb-open, .gb-screen .sala-said { z-index: 6; }
.gb-open .sala-open-result { font-size: 44px; text-align: center; padding: 0 20px; }
.gb-gift { position: relative; height: 128px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 20px; overflow: hidden; color: var(--sala-ink); font-family: inherit; box-shadow: 0 7px 0 var(--sala-shadow); cursor: pointer; }
.gb-gift.is-yema { background-color: var(--sala-yema); } .gb-gift.is-cian { background-color: var(--sala-cian); }
.gb-gift.is-fresa { background-color: var(--sala-fresa); } .gb-gift.is-lav { background-color: var(--sala-lav); }
.gb-ribbon::before { content: ""; position: absolute; left: calc(50% - 12px); top: 0; bottom: 0; width: 24px; background-color: var(--sala-crema); opacity: 0.85; }
.gb-ribbon::after { content: ""; position: absolute; top: calc(50% - 12px); left: 0; right: 0; height: 24px; background-color: var(--sala-crema); opacity: 0.85; }
.gb-tag { position: relative; z-index: 1; min-width: 60px; padding: 2px 12px; border-radius: 999px; background-color: var(--sala-crema); color: var(--sala-ink); font: 900 42px/1.1 var(--sala-font); text-align: center; box-shadow: 0 3px 0 var(--sala-shadow); }
.gb-gift:focus-visible { outline: 5px solid var(--sala-crema); outline-offset: 2px; }
.gb-gift.is-used { background-color: transparent; box-shadow: none; border: 4px dashed rgb(255 247 224 / 25%); cursor: default; }
.gb-gift.is-won { background-color: var(--sala-noche2); box-shadow: none; cursor: default; }
.gb-gift.is-won.is-student { outline: 5px solid var(--sala-cian); outline-offset: -5px; }
.gb-gift.is-won.is-rival { outline: 5px solid var(--sala-fresa); outline-offset: -5px; }
.gb-gift.is-open { outline: 6px solid var(--sala-crema); }
.gb-gift.is-opening { z-index: 2; animation: gb-rattle 0.1s linear 8, gb-burst 0.3s ease-in 0.85s forwards; }
@keyframes gb-rattle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg) scale(1.05); } 75% { transform: rotate(7deg) scale(1.05); } }
@keyframes gb-burst { to { transform: scale(1.35); opacity: 0; } }
.gb-veil.is-entering { animation: gb-fade 0.4s ease-out 0.9s both; }
.gb-open.is-entering, .sala-said.is-entering { animation: sala-rise 0.45s ease-out 0.9s both; }
@keyframes gb-fade { from { opacity: 0; } to { opacity: 1; } }
.gb-open .sala-open-tag { display: inline-flex; align-items: center; gap: 10px; }
.sala-open-ask span { display: block; margin-top: 8px; font-size: 34px; text-align: center; }
.sala-ribbon .gb-head { margin-right: 8px; box-shadow: 0 0 0 3px var(--sala-crema); }
.gb-card { left: 110px; right: 110px; top: 86px; bottom: 60px; z-index: 6; display: flex; align-items: center; gap: 30px; padding: 30px 50px; border-radius: 40px; overflow: hidden; color: var(--sala-ink); box-shadow: 0 14px 0 var(--sala-shadow); }
.gb-card.is-yema { background-color: var(--sala-yema); } .gb-card.is-fresa { background-color: var(--sala-fresa); }
.gb-card.is-cian { background-color: var(--sala-cian); } .gb-card.is-lav { background-color: var(--sala-lav); }
.gb-card .sala-rays { opacity: 0.22; }
.gb-card .sala-rays polygon { fill: #fff; }
.gb-card.is-entering { animation: gb-spin 0.65s cubic-bezier(0.2, 1.2, 0.4, 1) 0.9s both; }
@keyframes gb-spin { from { transform: rotate(-200deg) scale(0.2); opacity: 0; } to { transform: none; opacity: 1; } }
.gb-card-mascot { position: relative; height: 430px; flex: none; }
.gb-card-text { position: relative; display: grid; gap: 14px; }
.gb-card-tag { font: 900 24px/1 var(--sala-font); opacity: 0.75; }
.gb-card-title { margin: 0; font: 900 74px/1.05 var(--sala-font); }
.gb-card-line { margin: 0; font: 900 40px/1.15 var(--sala-font); }
.gb-team { position: absolute; top: 96px; width: 230px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gb-team strong { font: 900 34px/1 var(--sala-font); }
.gb-team.is-turn .gb-head { box-shadow: 0 0 0 7px var(--sala-yema); animation: sala-pulse 1.4s ease-in-out infinite; }
.gb-team.is-bare { position: static; width: auto; }
.gb-jar-glass { fill: rgb(255 247 224 / 16%); stroke: var(--sala-crema); stroke-width: 4; }
.gb-jar-lid { fill: var(--sala-crema); }
.gb-jar-fill.is-student { fill: var(--sala-cian); } .gb-jar-fill.is-rival { fill: var(--sala-fresa); }
.gb-star { fill: var(--sala-yema); stroke: var(--sala-ink); stroke-width: 1.2; }
.gb-points { font: 900 54px/1 var(--sala-font); color: var(--sala-yema); font-variant-numeric: tabular-nums; }
.gb-end { z-index: 3; width: 480px; display: grid; grid-template-columns: 1fr auto; justify-items: center; align-items: end; gap: 8px 10px; }
.gb-end-pose { height: 300px; max-width: none; }
.gb-end strong { grid-column: 1 / -1; font: 900 42px/1 var(--sala-font); color: var(--sala-crema); }
.gb-praise { grid-column: 1 / -1; padding: 6px 20px; border-radius: 999px; background-color: var(--sala-cian); color: var(--sala-ink); font: 900 30px/1.2 var(--sala-font); }
.gb-end.is-rival .gb-praise { background-color: var(--sala-fresa); }

/* The teacher's phone (S12): pictures in listening rounds, Sí / No side by side. */
.sala-remote-answers.is-listen, .sala-remote-answers.is-truefalse { grid-template-columns: 1fr 1fr; }
.sala-remote-answer img { width: 64px; height: 64px; flex: none; object-fit: contain; border-radius: 12px; background-color: #fff7e0; }

@media (prefers-reduced-motion: reduce) {
  .fq-screen .fq-answers, .fq-answer, .fq-drum, .fq-pickers, .fq-answer-check, .fq-heard, .fq-results, .fq-score, .fq-lane-fill, .fq-lane-tip, .fq-row, .fq-end-pose, .fq-speaker svg .is-wave, .sala-timer.is-hurry span,
  .gb-gift, .gb-veil, .gb-open, .gb-card, .sala-said, .gb-team .gb-head { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* Sala S13: La Torre and La Grúa. The canvas (src/sala/dropPads.mjs) draws the tower and the claw
   machine; the cards, the shelves and the turn's result sit over it in [data-drop-hud]. */
.sala-screen.is-sky { background-color: #9ad8f5; }
.sala-screen.is-fair { background-color: #2a1656; }
.tw-backdrop, .cw-backdrop { object-fit: cover; z-index: 0; pointer-events: none; }
.cw-dim { left: 0; top: 0; width: 1280px; height: 720px; background-color: rgb(20 10 50 / 35%); z-index: 0; pointer-events: none; }
.cw-dim.is-end { background-color: rgb(20 10 50 / 62%); }
.tw-stage, .cw-stage { z-index: 1; border-radius: 0; }
.cw-stage { border-radius: 22px; }
.drop-hud { z-index: 2; pointer-events: none; }
.drop-hud button, .drop-hud [data-sala-say] { pointer-events: auto; }
.drop-chip { padding: 8px 18px; border-radius: 999px; background-color: var(--sala-noche); color: var(--sala-crema); font: 800 24px/1.2 var(--sala-font); box-shadow: 0 4px 0 var(--sala-shadow); }
.drop-chip b { color: var(--sala-yema); font-weight: 900; }
.drop-chip.is-goal.is-reached { background-color: var(--sala-yema); color: var(--sala-ink); }
.drop-chip.is-goal.is-reached b { color: var(--sala-ink); }
.drop-chip.is-tries { background-color: var(--sala-lav); }
.drop-card { width: 250px; padding: 14px 10px 14px; display: grid; justify-items: center; gap: 4px; border-radius: 26px; background-color: rgb(20 33 92 / 88%); color: var(--sala-crema); font-family: var(--sala-font); text-align: center; box-shadow: 0 6px 0 var(--sala-shadow); border: 5px solid transparent; }
.drop-card.is-student { border-color: var(--sala-cian); }
.drop-card.is-rival { border-color: var(--sala-fresa); }
.drop-card.is-turn { background-color: var(--sala-noche2); box-shadow: 0 0 0 6px var(--sala-yema), 0 6px 0 var(--sala-shadow); }
.drop-card-turn { position: absolute; top: -18px; padding: 2px 14px; border-radius: 999px; background-color: var(--sala-yema); color: var(--sala-ink); font: 900 20px/1.3 var(--sala-font); margin: 0; animation: sala-drop-bob 1.2s ease-in-out infinite; }
.drop-card-pose { height: 132px; max-width: 200px; object-fit: contain; }
.drop-card strong { font-size: 28px; font-weight: 900; }
.drop-card-points { min-width: 120px; padding: 2px 16px; border-radius: 16px; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 42px; font-weight: 900; font-variant-numeric: tabular-nums; }
.drop-card-line { font-size: 22px; font-weight: 800; }
@keyframes sala-drop-bob { 50% { transform: translateY(-5px); } }
/* La Torre: the question over the tower, the turn's result. */
.tw-ask { z-index: 3; padding: 18px 20px 20px; border-radius: 30px; background-color: rgb(20 33 92 / 92%); color: var(--sala-crema); font-family: var(--sala-font); text-align: center; box-shadow: 0 8px 0 var(--sala-shadow); animation: sala-drop-pop 0.45s cubic-bezier(.3,1.6,.6,1) both; }
.tw-ask-lead { margin: 0; font-size: 28px; font-weight: 800; }
.tw-ask-word { margin: 4px 0 12px; font-size: 60px; font-weight: 900; color: var(--sala-yema); cursor: pointer; }
.tw-say { font-size: 40px; margin-right: 8px; }
.tw-options { display: flex; justify-content: center; gap: 18px; }
.tw-option { position: relative; width: 176px; height: 176px; display: grid; place-items: center; padding: 0; border: 6px solid var(--sala-crema); border-radius: 26px; background-color: var(--sala-crema); font-family: var(--sala-font); transition: transform 0.2s, opacity 0.2s; }
button.tw-option { cursor: pointer; }
button.tw-option:hover, button.tw-option:focus-visible { border-color: var(--sala-yema); transform: translateY(-4px); }
.tw-pic img { width: 150px; height: 150px; object-fit: contain; }
.tw-option i { position: absolute; left: 8px; top: 6px; font-style: normal; font-weight: 900; font-size: 22px; color: var(--sala-ink); }
.tw-option b { position: absolute; right: -14px; top: -14px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 30px; }
.tw-option.is-right { border-color: var(--sala-yema); transform: scale(1.08); }
.tw-option.is-chosen { border-color: var(--sala-lav); }
.tw-option.is-dim { opacity: 0.45; }
.tw-ask-prize { margin: 12px 0 0; font-size: 24px; font-weight: 800; }
.tw-ask-prize b { color: var(--sala-yema); }
.tw-done { z-index: 3; padding: 16px; display: grid; justify-items: center; gap: 4px; border-radius: 30px; background-color: rgb(20 33 92 / 90%); color: var(--sala-crema); font-family: var(--sala-font); text-align: center; box-shadow: 0 8px 0 var(--sala-shadow); animation: sala-drop-pop 0.5s cubic-bezier(.3,1.6,.6,1) both; }
.tw-done-pose { height: 170px; }
.tw-done-title { margin: 0; font-size: 40px; font-weight: 900; color: var(--sala-yema); }
.tw-done-plus { margin: 0; font-size: 34px; font-weight: 800; }
.tw-done-plus b { font-size: 48px; color: var(--sala-yema); }
@keyframes sala-drop-pop { 0% { transform: scale(0.2); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
.drop-end { z-index: 3; width: 250px; display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 28px; background-color: rgb(20 33 92 / 88%); font-family: var(--sala-font); text-align: center; }
.drop-end-pose { height: 220px; max-width: none; }
.drop-end strong { font-size: 34px; font-weight: 900; color: var(--sala-crema); }
.drop-end b { padding: 2px 22px; border-radius: 18px; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 46px; }
.drop-praise { padding: 4px 16px; border-radius: 999px; background-color: var(--sala-cian); color: var(--sala-ink); font-size: 24px; font-weight: 900; }
.drop-end.is-rival .drop-praise { background-color: var(--sala-fresa); }
.drop-end-title { z-index: 3; text-shadow: 0 4px 0 var(--sala-shadow); }
.sala-screen.is-sky > svg { z-index: 0; opacity: 0.35; }
.sala-screen.is-fair > svg { z-index: 1; opacity: 0.45; }
.sala-screen.is-fair .drop-end, .sala-screen.is-fair .cw-shelf, .sala-screen.is-fair .drop-end-title { z-index: 3; }
/* La Grúa: the shelves at the sides, the four friends along the top. */
.cw-shelf { width: 250px; padding: 10px; border-radius: 22px; background-color: rgb(255 247 224 / 16%); border: 4px solid var(--sala-crema); font-family: var(--sala-font); color: var(--sala-crema); }
.cw-shelf.is-student { border-color: var(--sala-cian); }
.cw-shelf.is-rival { border-color: var(--sala-fresa); }
.cw-shelf p { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.cw-shelf > div { display: grid; grid-template-columns: repeat(4, 52px); gap: 6px; }
.cw-prize { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background-color: var(--sala-crema); animation: sala-drop-pop 0.5s both; }
.cw-prize img { width: 42px; height: 42px; object-fit: contain; }
.cw-prize.is-mascot { background-color: #ffe7a3; box-shadow: 0 0 0 3px var(--sala-yema); }
.cw-prize.is-mascot img { width: 48px; height: 48px; }
.cw-prize b { position: absolute; right: -6px; top: -6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 16px; }
.cw-empty { grid-column: 1 / -1; font-size: 20px; font-weight: 800; opacity: 0.8; }
.cw-friends { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background-color: var(--sala-noche); font-family: var(--sala-font); box-shadow: 0 4px 0 var(--sala-shadow); }
.cw-friends p { margin: 0 6px 0 0; color: var(--sala-crema); font-size: 18px; font-weight: 900; }
.cw-friend { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background-color: rgb(255 255 255 / 12%); }
.cw-friend img { width: 40px; height: 40px; object-fit: contain; opacity: 0.35; filter: grayscale(1); }
.cw-friend.is-out { background-color: var(--sala-yema); }
.cw-friend.is-out img { opacity: 1; filter: none; animation: sala-drop-pop 0.5s both; }
.cw-friends.is-party { box-shadow: 0 0 0 5px var(--sala-yema), 0 4px 0 var(--sala-shadow); }
.cw-party { z-index: 4; padding: 10px 18px; border-radius: 26px; background-color: var(--sala-yema); color: var(--sala-ink); font: 900 34px/1.2 var(--sala-font); text-align: center; animation: sala-drop-pop 0.5s both; }
/* The naming sheet over a claw pad (the shared screen, both phones). */
.drop-sheet { position: absolute; inset: 0; display: grid; place-items: center; background-color: rgb(20 10 50 / 78%); z-index: 3; font-family: var(--sala-font, "Nunito", system-ui, sans-serif); }
.drop-sheet[hidden] { display: none; }
.drop-sheet-card { width: min(88%, 520px); display: grid; justify-items: center; gap: 10px; padding: 16px; border-radius: 26px; background-color: #14215c; box-shadow: 0 8px 0 #0a1238; animation: sala-drop-pop 0.45s both; }
.drop-sheet-picture { width: 46%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background-color: #fff7e0; }
.drop-sheet-picture img { width: 78%; height: 78%; object-fit: contain; }
.drop-sheet-q { margin: 0; color: #ffc93c; font-size: 30px; font-weight: 900; }
.drop-sheet-options { width: 100%; display: grid; gap: 8px; }
.drop-sheet-option { min-height: 54px; border: 4px solid transparent; border-radius: 18px; background-color: #2ec4e6; color: #14215c; font-family: inherit; font-size: 26px; font-weight: 900; cursor: pointer; }
.drop-sheet-option:nth-child(2) { background-color: #ffc93c; }
.drop-sheet-option:nth-child(3) { background-color: #9b7bff; color: #fff; }
.drop-sheet-option:disabled { cursor: default; opacity: 0.55; }
.drop-sheet-option.is-right { opacity: 1; border-color: #fff7e0; box-shadow: 0 0 0 4px #ffc93c; }
.drop-sheet-option.is-chosen { opacity: 1; border-color: #fff7e0; }
/* The teacher's phone. */
.sala-remote.is-drop .drop-pad-phone { width: 100%; height: min(64vh, 540px); flex: none; }
.sala-remote-pictures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.sala-remote-picture-pick { aspect-ratio: 1; display: grid; place-items: center; padding: 6px; border: 4px solid var(--sala-crema); border-radius: 20px; background-color: var(--sala-crema); cursor: pointer; }
.sala-remote-picture-pick img { width: 100%; height: 100%; object-fit: contain; }
.sala-remote-picture-pick:active { border-color: var(--sala-yema); }
@media (prefers-reduced-motion: reduce) {
  .drop-card-turn, .tw-ask, .tw-done, .cw-prize, .cw-friend.is-out img, .cw-party, .drop-sheet-card { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .tw-option { transition: none; }
}

/* Sala S14: Lluvia de tesoros and La Pesca. Both play at once; the canvas (src/sala/catchPads.mjs)
   draws the rain or the lake; the word, the chests and the buckets sit in [data-drop-hud]. */
.sala-screen.is-night { background-color: #1d2c78; }
.sala-screen.is-lake { background-color: #2e8fc9; }
.rn-ask { z-index: 3; padding: 14px 18px 16px; border-radius: 28px; background-color: rgb(20 33 92 / 90%); color: var(--sala-crema); font-family: var(--sala-font); text-align: center; box-shadow: 0 8px 0 var(--sala-shadow); }
.rn-ask.is-narrow .rn-ask-word { font-size: 46px; }
.rn-ask-lead { margin: 0; font-size: 30px; font-weight: 900; }
.rn-ask-word { margin: 2px 0 6px; font-size: 72px; font-weight: 900; color: var(--sala-yema); cursor: pointer; pointer-events: auto; }
.rn-ask-note { margin: 0; font-size: 22px; font-weight: 800; opacity: 0.9; }
.rn-chest { width: 250px; min-height: 150px; padding: 0 0 10px; border-radius: 18px; background-color: #c98a3a; border: 6px solid var(--sala-yema); box-shadow: inset 0 -12px 0 rgb(0 0 0 / 18%), 0 6px 0 var(--sala-shadow); overflow: hidden; }
.rn-lid { height: 34px; background-color: #a86c26; border-bottom: 5px solid var(--sala-yema); }
.rn-gold { display: flex; flex-wrap: wrap-reverse; align-content: flex-start; gap: 6px; padding: 8px; }
.rn-gem { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background-color: var(--sala-crema); animation: sala-drop-pop 0.45s both; }
.rn-gem img { width: 36px; height: 36px; object-fit: contain; }
.rn-gem.is-star { background-color: var(--sala-yema); color: var(--sala-ink); font: 900 26px/1 var(--sala-font); }
.rn-pad { z-index: 2; }
.rn-done { z-index: 3; padding: 16px 20px; display: grid; justify-items: center; gap: 8px; border-radius: 30px; background-color: rgb(20 33 92 / 92%); color: var(--sala-crema); font-family: var(--sala-font); box-shadow: 0 8px 0 var(--sala-shadow); animation: sala-drop-pop 0.5s both; }
.rn-done-title { margin: 0; font-size: 40px; font-weight: 900; color: var(--sala-yema); text-align: center; }
.rn-done-picture { width: 190px; height: 190px; display: grid; place-items: center; border-radius: 50%; background-color: var(--sala-crema); }
.rn-done-picture img { width: 160px; height: 160px; object-fit: contain; }
.rn-done-row { width: 100%; margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 14px; border-radius: 16px; font-size: 26px; font-weight: 800; border: 4px solid transparent; }
.rn-done-row.is-student { border-color: var(--sala-cian); }
.rn-done-row.is-rival { border-color: var(--sala-fresa); }
.rn-done-row b { font-size: 34px; color: var(--sala-yema); }
.fw-stage { z-index: 1; border-radius: 26px; }
.fw-pose { z-index: 2; object-fit: contain; pointer-events: none; }
.fw-order { z-index: 3; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 8px 18px; border-radius: 26px; background-color: rgb(20 33 92 / 90%); color: var(--sala-yema); font-family: var(--sala-font); box-shadow: 0 6px 0 var(--sala-shadow); }
.fw-order-text { font-size: 44px; font-weight: 900; cursor: pointer; pointer-events: auto; }
.fw-order-picture { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background-color: var(--sala-crema); }
.fw-order-picture img { width: 60px; height: 60px; object-fit: contain; }
.fw-corner { z-index: 3; width: 220px; padding: 10px; display: grid; justify-items: center; gap: 6px; border-radius: 22px; background-color: rgb(20 33 92 / 88%); color: var(--sala-crema); font-family: var(--sala-font); border: 5px solid transparent; box-shadow: 0 6px 0 var(--sala-shadow); }
.fw-corner.is-student { border-color: var(--sala-cian); }
.fw-corner.is-rival { border-color: var(--sala-fresa); }
.fw-corner strong { font-size: 28px; font-weight: 900; }
.fw-state { min-height: 26px; font-size: 20px; font-weight: 800; }
.fw-state.is-in { color: var(--sala-yema); }
.fw-bucket { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; min-height: 30px; font-size: 26px; }
.fw-fish { filter: grayscale(0.2); }
.fw-fish.is-gold { filter: none; text-shadow: 0 0 8px var(--sala-yema); }
.sala-screen.is-night > svg, .sala-screen.is-lake > svg { z-index: 1; opacity: 0.4; }
.sala-screen.is-night .drop-end, .sala-screen.is-lake .drop-end, .sala-screen.is-night .drop-end-title, .sala-screen.is-lake .drop-end-title { z-index: 3; }
.sala-remote.is-catch .catch-pad-phone { width: 100%; height: min(64vh, 540px); flex: none; }
/* La Pesca's hold: no long-press callout or selection on the pads (iOS would cancel the touch). */
.arcade-pad, .arcade-pad canvas { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.sala-remote-go:disabled { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) {
  .rn-gem, .rn-done { animation-duration: 1ms !important; animation-delay: 0s !important; }
}

/* Sala S15: La Bolera and Ojo de lince, and the ten games' icons in the waiting room's bar. */
.sala-screen.is-alley { background-color: #23205c; }
.sala-screen.is-jungle { background-color: #1f5a4a; }
.bw-stage { z-index: 1; border-radius: 22px; }
.bw-order .fw-order-text { font-size: 40px; }
.bw-done .bw-gold { margin: 0; padding: 2px 14px; border-radius: 999px; background-color: var(--sala-yema); color: var(--sala-ink); font-size: 24px; font-weight: 900; }
.bw-done .bw-words { margin: 0; font-size: 20px; font-weight: 800; opacity: 0.9; }
.lx-corner { z-index: 3; width: 280px; padding: 10px; display: grid; justify-items: center; gap: 4px; border-radius: 24px; background-color: rgb(20 33 92 / 88%); color: var(--sala-crema); font-family: var(--sala-font); border: 5px solid transparent; box-shadow: 0 6px 0 var(--sala-shadow); }
.lx-corner.is-student { border-color: var(--sala-cian); }
.lx-corner.is-rival { border-color: var(--sala-fresa); }
.lx-pose { height: 110px; object-fit: contain; }
.lx-corner strong { font-size: 26px; font-weight: 900; }
.lx-found { font-size: 22px; font-weight: 800; }
.lx-pair { display: flex; gap: 8px; margin-top: 6px; }
.lx-mini { position: relative; width: 120px; height: 120px; border-radius: 50%; background-color: var(--sala-crema); }
.lx-cell { position: absolute; width: 36px; height: 36px; display: grid; place-items: center; transform: translate(-50%, -50%); }
.lx-cell img { width: 34px; height: 34px; object-fit: contain; }
.lx-cell .lynx-word { font-size: 11px; font-weight: 900; color: var(--sala-ink); text-align: center; line-height: 1; }
.lx-cell .lynx-shape { font-size: 26px; color: var(--sala-lav); }
.lx-cell.is-0 { left: 50%; top: 24%; } .lx-cell.is-1 { left: 23%; top: 48%; } .lx-cell.is-2 { left: 77%; top: 48%; } .lx-cell.is-3 { left: 35%; top: 77%; } .lx-cell.is-4 { left: 65%; top: 77%; }
.lx-goal, .lx-done { z-index: 3; padding: 16px 20px; display: grid; justify-items: center; gap: 10px; border-radius: 28px; background-color: rgb(20 33 92 / 90%); color: var(--sala-crema); font-family: var(--sala-font); text-align: center; box-shadow: 0 8px 0 var(--sala-shadow); }
.lx-goal p { margin: 0; font-size: 28px; font-weight: 900; }
.lx-big { margin: 0; font-size: 34px; font-weight: 900; }
.lx-big b { color: var(--sala-yema); font-size: 46px; }
.lx-bar { width: 100%; height: 22px; border-radius: 999px; background-color: rgb(255 255 255 / 18%); overflow: hidden; }
.lx-bar span { display: block; height: 100%; border-radius: 999px; background-color: var(--sala-yema); transition: width 0.4s; }
.lx-pad { z-index: 4; border-radius: 22px; background-color: rgb(20 33 92 / 85%); }
/* Ojo de lince's cards (the teacher's pad on the screen and her phone; the child's phone has its own copy in gra.css). */
.lynx-pad { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr 1fr; justify-items: center; align-items: center; gap: 8px; padding: 8px; font-family: var(--sala-font, "Nunito", system-ui, sans-serif); }
.lynx-ask { margin: 0; color: var(--sala-yema, #ffc93c); font-size: 22px; font-weight: 900; }
.lynx-card { position: relative; height: 96%; aspect-ratio: 1; max-width: 100%; border-radius: 50%; background-color: #fff7e0; box-shadow: 0 6px 0 rgb(10 18 56 / 60%); }
.lynx-item { position: absolute; width: 30%; height: 30%; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%) rotate(var(--spin, 0deg)); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.lynx-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.lynx-item .lynx-word { font: 900 clamp(11px, 3.4vw, 18px)/1.05 var(--sala-font, "Nunito", system-ui, sans-serif); color: #14215c; }
.lynx-item .lynx-shape { font-size: clamp(22px, 7vw, 40px); color: #9b7bff; }
.lynx-item.is-0 { left: 50%; top: 24%; } .lynx-item.is-1 { left: 23%; top: 48%; } .lynx-item.is-2 { left: 77%; top: 48%; } .lynx-item.is-3 { left: 35%; top: 77%; } .lynx-item.is-4 { left: 65%; top: 77%; }
.lynx-item.is-no { animation: lynx-wiggle 0.4s; }
.lynx-item.is-yes { background-color: #ffc93c; box-shadow: 0 0 0 6px #ffc93c; }
.lynx-pad.is-solved .lynx-item:not(.is-yes) { opacity: 0.35; }
.lynx-done { margin: 0; color: #fff7e0; font-weight: 900; }
@keyframes lynx-wiggle { 25% { transform: translate(-50%, -50%) rotate(calc(var(--spin, 0deg) - 10deg)); } 75% { transform: translate(-50%, -50%) rotate(calc(var(--spin, 0deg) + 10deg)); } }
/* The ten games in the waiting room's bar: icon and name, wrapping onto two rows if needed. */
.sala-games { flex-wrap: wrap; gap: 4px; max-width: 760px; }
.sala-button.is-small.is-game { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 4px; }
.sala-game-icon { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.sala-brand-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 6px 0 var(--sala-shadow); }
/* The teacher's phone: the ten games as a grid of pictures. */
.sala-remote-games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
.sala-remote-game { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 8px; border: 3px solid transparent; border-radius: 16px; background-color: var(--sala-noche2, #1f2f7d); color: #fff7e0; font: 800 15px/1.1 var(--sala-font); text-align: left; cursor: pointer; }
.sala-remote-game img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.sala-remote-game[aria-pressed="true"] { border-color: var(--sala-yema); background-color: #2a3a8f; }
.sala-remote.is-aim .aim-pad-phone, .sala-remote.is-catch .catch-pad-phone { width: 100%; height: min(64vh, 540px); flex: none; }
@media (prefers-reduced-motion: reduce) { .lynx-item.is-no { animation: none; } .lx-bar span { transition: none; } }
/* The waiting room's strip of ten games (S15): pictures the child sees too. */
.sala-game-strip { z-index: 2; display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.sala-game-pick { display: grid; justify-items: center; gap: 4px; padding: 8px 4px 6px; border: 4px solid transparent; border-radius: 20px; background-color: rgb(20 33 92 / 85%); color: var(--sala-crema); font: 800 15px/1.1 var(--sala-font); text-align: center; cursor: pointer; box-shadow: 0 4px 0 var(--sala-shadow); }
.sala-game-pick img { width: 72px; height: 72px; border-radius: 16px; }
.sala-game-pick.is-on { border-color: var(--sala-yema); background-color: var(--sala-noche2); transform: translateY(-6px); }
.sala-game-pick:focus-visible { outline: 3px solid var(--sala-cian); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sala-game-pick.is-on { transform: none; } }

/* Sala polish (2026-11-13): during a round played at once, both players' points go up on the
   teacher's phone as they score (salaRemotePage.js liveTotals). */
.sala-remote-totals.is-live { margin-top: 8px; }
.sala-remote-totals b[data-live-side] { display: inline-block; }
.sala-remote-totals b.is-up { animation: sala-score-up 0.45s ease-out; }
@keyframes sala-score-up { 40% { transform: scale(1.2); color: #ffc93c; } }
@media (prefers-reduced-motion: reduce) { .sala-remote-totals b.is-up { animation: none; } }
/* A word without its recording: its picture beside it on the order (the browser's voice says it). */
.sala-order-pic { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 10px; vertical-align: middle; border-radius: 50%; background-color: var(--sala-crema); }
.sala-order-pic img { width: 54px; height: 54px; object-fit: contain; }
