/* Beaky design system tokens (colors_and_type.css) */
:root {
  --brand-50: #F5F0FB; --brand-100: #E2D1F3; --brand-200: #C9ADE7; --brand-300: #A882D4; --brand-400: #8B63BF;
  --brand-500: #6D47A3; --brand-600: #553A8B; --brand-700: #3E2A66; --brand-800: #362559; --brand-900: #2D1E4A; --brand-950: #1F1533;
  --neutral-50: #F9FAFB; --neutral-100: #F3F4F6; --neutral-200: #E5E7EB; --neutral-300: #D1D5DB; --neutral-400: #9CA3AF;
  --neutral-500: #6B7280; --neutral-600: #4B5563; --neutral-900: #111827;
  --border: var(--neutral-200);
  --success: hsl(87 100% 37%);
  --danger: #DC2626;
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-modal: 0 25px 50px -12px rgb(30 22 56 / 0.25);
  --shadow-focus: 0 0 0 3px rgb(109 71 163 / 0.30);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}
html, body { background: #FFFFFF; }
body { font-family: var(--font-sans); color: var(--brand-900); font-size: 16px; line-height: 1.5; min-height: 100vh; min-height: 100dvh; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); color: var(--brand-900); }
a { color: var(--brand-600); }
a:hover { color: var(--brand-800); }
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
#app > * { flex: 1; }

.ic { display: inline-flex; flex-shrink: 0; width: 20px; height: 20px; }
.ic svg { width: 100%; height: 100%; display: block; }
.ic.flip svg { transform: rotate(180deg); }
.grow { flex: 1; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-500); }

/* Buttons with depth, as Beaky's .bk-btn (Duolingo-like): a darker edge underneath that the button sinks into
   when pressed. The edge is a shadow, so a press moves nothing around it. Ghost buttons stay flat. */
.btn { --edge: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 1; border-radius: 12px; border: 2px solid transparent; background: var(--brand-500); color: #FFFFFF; box-shadow: 0 4px 0 var(--edge); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color 150ms var(--ease-standard), border-color 150ms var(--ease-standard), color 150ms var(--ease-standard), transform 80ms ease-out, box-shadow 80ms ease-out; }
.btn .ic { width: 16px; height: 16px; }
.btn:hover:not(:disabled) { background: #7A52B3; color: #FFFFFF; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 var(--edge); }
/* Focus as a soft ring that follows the button's shape, with its edge kept (an outline would box both). */
.btn:focus-visible { outline: none; box-shadow: 0 4px 0 var(--edge), 0 0 0 4px rgb(139 99 191 / 0.35); }
.btn.ghost:focus-visible { box-shadow: 0 0 0 3px rgb(139 99 191 / 0.35); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 10px; box-shadow: 0 3px 0 var(--edge); }
.btn.sm .ic { width: 14px; height: 14px; }
.btn.lg { height: 40px; padding: 0 18px; font-size: 15px; }
.btn.xl { height: 48px; padding: 0 20px; font-size: 16px; border-radius: 14px; }
.btn.outline { --edge: var(--bk-card-border); background: #FFFFFF; color: var(--bk-violet-dark); border-color: var(--bk-card-border); }
.btn.outline .ic { color: var(--bk-violet); }
.btn.outline:hover:not(:disabled) { background: var(--bk-tint); color: var(--bk-violet-dark); }
.btn.ghost { background: transparent; color: var(--brand-900); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: var(--neutral-100); color: var(--brand-900); }
.btn.ghost:active:not(:disabled) { transform: none; box-shadow: none; }
.btn.danger { --edge: #991B1B; background: var(--danger); }
.btn.danger:hover:not(:disabled) { background: #B91C1C; }
/* "Voltar à praça", the way out of every game, in the brand's violet. */
.btn.exit { height: 44px; gap: 8px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn.square { flex: none; width: 36px; padding: 0; }
.btn.square .ic { width: 18px; height: 18px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost:disabled { opacity: 0.3; }

/* Badge / avatar */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 9999px; background: var(--brand-50); border: 1px solid var(--brand-200); color: var(--brand-800); font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.av { display: inline-flex; width: 32px; height: 32px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 9999px; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 700; }

/* Banner (DS Banner) */
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--brand-50); border-radius: 10px; color: var(--brand-800); font-size: 14px; line-height: 1.45; }
.banner.warn { background: #FEF3C7; color: #92400E; }
.banner b { font-weight: 600; }

/* Top bar */
.topbar { display: flex; height: 64px; flex-shrink: 0; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--border); background: #FFFFFF; }
.topbar .sep { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }
.topbar .ttl { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.topbar .ttl b { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--brand-950); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .ttl span { font-size: 12px; color: var(--neutral-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The first screen of every game: its name and how it's played. */
.setup-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.setup-head h1 { font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -0.025em; color: var(--brand-950); }
.setup-head p { margin-top: 6px; max-width: 60ch; color: var(--neutral-500); text-wrap: pretty; }
@media (max-width: 640px) { .setup-head h1 { font-size: 30px; line-height: 34px; } }
.topbar .count { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--neutral-500); white-space: nowrap; }
/* The header's buttons ("Como jogar", "Controles do professor", "Encerrar"…) take the size of the account and
   "Voltar à praça" beside them; on a narrow screen the ones with an icon keep only the icon. */
.topbar .btn { height: 44px; gap: 8px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.topbar .btn .ic { width: 18px; height: 18px; }
.topbar .btn.square { width: 44px; padding: 0; }
@media (max-width: 760px) { .topbar .btn:not(.exit):has(> .lbl) { width: 44px; padding: 0; } .topbar .btn:not(.exit) .lbl { display: none; } }
@media (max-width: 560px) { .topbar { padding: 0 16px; gap: 8px; } .topbar .count .w, .topbar .lbl { display: none; } .topbar .btn.exit { width: 44px; padding: 0; } .acct-btn .acct-name, .acct-btn > .ic { display: none; } }

/* Modal (DS Modal) */
.modal-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(17, 24, 39, 0.45); animation: fade-in 350ms var(--ease-out); }
.modal { width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden; background: #FFFFFF; border-radius: 14px; box-shadow: var(--shadow-modal); animation: modal-in 350ms var(--ease-out); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 4px; }
.modal-head .mt { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--brand-900); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.modal-x { padding: 6px; border: 0; border-radius: 6px; background: transparent; color: var(--neutral-500); cursor: pointer; }
.modal-x:hover { background: var(--neutral-100); }
.modal-body { padding: 12px 24px 20px; overflow: auto; }
.modal-text { font-size: 14px; color: var(--neutral-600); }
.modal-text + .modal-text { margin-top: 8px; }
.account-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 20px; }
.account-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.account-head b { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--brand-950); overflow-wrap: anywhere; }
.account-head a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
/* What the plan gives, as one list on a tinted surface. */
.account-features { display: flex; flex-direction: column; margin: 0; padding: 4px 14px; list-style: none; background: var(--brand-50); border-radius: 14px; }
.account-features li { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14px; line-height: 1.4; color: var(--neutral-600); }
.account-features li + li { border-top: 1px solid var(--brand-100); }
.account-features .ic { flex: none; box-sizing: border-box; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #FFFFFF; color: var(--brand-600); }
.account-features b { font-weight: 600; color: var(--brand-900); }
/* The trial's welcome: Beaky's happy owl over its two steps, each a heading over its line. */
.trial-owl { display: block; width: 88px; height: 88px; margin: 0 auto 12px; object-fit: contain; }
.trial-steps span { display: flex; flex-direction: column; gap: 2px; }
.account-plans { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; }
/* A locked game's dialog: Beaky's concerned owl beside the note. */
.plans-note { display: flex; align-items: center; gap: 16px; }
.plans-note img { flex: none; width: 76px; height: 76px; object-fit: contain; }
/* Beaky's avatar, as in its app: the photo or the initials on a light violet circle. */
.avatar { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--brand-50); }
.avatar.initials { display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--brand-700); }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.md { width: 32px; height: 32px; font-size: 12px; }
/* The account and "Voltar à praça" in the games' header, the size of the profile button in Beaky's top bar. */
.acct-btn { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 6px; border: 0; border-radius: 12px; background: transparent; color: var(--brand-950); font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 150ms var(--ease-standard); }
.acct-btn[hidden] { display: none; }
.acct-btn:hover { background: var(--neutral-50); }
.acct-btn .acct-name { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn > .ic { width: 16px; height: 16px; margin-left: -4px; color: var(--neutral-400); }
.modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--neutral-50); }
@keyframes fade-in { from { opacity: 0; } }

/* "Minhas atividades" (assets/library.js), from the "Minhas Atividades" design: the activities as rows in one box, with tabs, a folder filter and a search, and the one open in its editor. */
.ll { min-width: 0; background: #FFFFFF; border: 1px solid var(--neutral-200); border-radius: 14px; }
/* The box doesn't clip (the rows' menus open past it), so the last row rounds its own corners. */
.ll-rows > .ll-row:last-child { border-radius: 0 0 13px 13px; }
.ll-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px 0; }
.ll-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--neutral-100); }
.ll-tab { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--neutral-600); font-family: var(--font-sans); font-size: 14px; font-weight: 500; cursor: pointer; }
.ll-tab[aria-selected="true"] { background: #FFFFFF; box-shadow: var(--shadow-xs); color: var(--brand-900); font-weight: 600; }
.ll-tab:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.ll-tab-n { font-size: 12px; color: var(--neutral-500); }
.ll-tab[aria-selected="true"] .ll-tab-n { color: var(--brand-700); }
.ll-filters { padding: 12px 20px 16px; border-bottom: 1px solid var(--neutral-200); }
/* Beaky's filter bar: the search, a thin line and the filter menus in one rounded box. */
.ll-filterbar { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 14px; border-radius: 16px; background: #FFFFFF; box-shadow: var(--shadow-xs), 0 0 0 1px rgb(229 231 235 / 0.8); transition: box-shadow 150ms var(--ease-standard); }
.ll-filterbar:focus-within { box-shadow: var(--shadow-sm), 0 0 0 1px var(--brand-300); }
.ll-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--neutral-400); cursor: text; }
.ll-search-in { flex: 1; min-width: 0; height: 36px; padding: 0; border: 0; background: transparent; color: var(--brand-950); font-family: var(--font-sans); font-size: 14px; outline: none; }
.ll-search-in::placeholder { color: var(--neutral-400); }
.ll-divider { flex: none; width: 1px; height: 24px; background: var(--neutral-200); }
.ll-folder-pick { flex: none; display: flex; align-items: center; gap: 2px; min-width: 0; }
.ll-folder-pick .menu-wrap > .btn { width: 32px; height: 32px; }
.ll-rows { display: flex; flex-direction: column; }
.ll-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding-right: 12px; transition: background-color 150ms var(--ease-standard); }
.ll-row + .ll-row { border-top: 1px solid var(--neutral-200); }
.ll-row:hover { background: var(--neutral-50); }
/* The one picked for "Começar jogo": tinted, with a filled check. */
.ll-row.on { background: var(--brand-50); }
.ll-pick { min-width: 0; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 0 14px 20px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ll-pick:focus-visible { outline: 3px solid rgb(139 99 191 / 0.35); outline-offset: -3px; }
.ll-check { box-sizing: border-box; width: 18px; height: 18px; display: grid; place-items: center; border: 1.5px solid var(--neutral-300); border-radius: 9999px; color: transparent; }
.ll-row.on .ll-check { border-color: var(--brand-600); background: var(--brand-600); color: #FFFFFF; }
.ll-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ll-name { font-size: 15px; font-weight: 600; color: var(--brand-900); overflow-wrap: anywhere; }
.ll-meta { font-size: 13px; color: var(--neutral-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll-row.on .ll-meta { color: var(--brand-700); }
.ll-warn { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: #B45309; }
.ll-place { max-width: 160px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--neutral-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ll-place .ic { flex: none; }
.ll-tools { display: flex; gap: 2px; color: var(--neutral-500); }
.ll-row.on .ll-tools { color: var(--brand-700); }
.ll-tool, .ll-tools .menu-wrap > .btn { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.ll-tool:hover, .ll-tools .menu-wrap > .btn:hover:not(:disabled) { background: var(--neutral-100); color: inherit; }
.ll-row.on .ll-tool:hover, .ll-row.on .ll-tools .menu-wrap > .btn:hover:not(:disabled) { background: var(--brand-100); }
.ll-tools .menu-wrap > .btn .ic { width: 16px; height: 16px; }
.ll-empty { padding: 24px 20px; font-size: 14px; color: var(--neutral-500); }
@media (max-width: 560px) { .ll-row { grid-template-columns: minmax(0, 1fr) auto; } .ll-place { display: none; } .ll-bar, .ll-filters { padding-left: 16px; padding-right: 16px; } .ll-pick { padding-left: 16px; } .ll-filterbar { flex-wrap: wrap; } .ll-filterbar .ll-search { flex-basis: 100%; } .ll-filterbar .ll-divider { display: none; } }
/* "Pronto para jogar" (classBox's title): the activity picked, the class, the start button. */
.play-box { gap: 16px; padding: 24px; }
.play-box > h2 { font-size: 20px; font-weight: 700; }
.class-sub { display: flex; flex-direction: column; gap: 8px; }
.class-k { font-size: 12px; font-weight: 600; color: var(--neutral-500); }
.ll-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--brand-50); }
.ll-chip-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-100); color: var(--brand-800); }
.ll-chip .ll-meta { color: var(--brand-700); white-space: normal; }
.ll-chip.empty { border: 1px dashed var(--neutral-300); background: var(--neutral-50); color: var(--neutral-500); font-size: 14px; }
.ll-edit { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.ll-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 4px; border: 0; border-radius: 8px; background: transparent; color: var(--brand-700); font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer; }
.ll-back:hover { background: var(--brand-50); }
.ll-edit-head { display: flex; flex-direction: column; gap: 10px; }
.ll-title { width: 100%; padding: 4px 0; border: 0; border-bottom: 2px solid var(--neutral-200); background: transparent; color: var(--brand-950); font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.ll-title::placeholder { color: var(--neutral-300); }
.ll-title:focus, .ll-title:focus-visible { border-bottom-color: var(--brand-500); outline: none; }
.ll-edit-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ll-edit-meta .menu-wrap { margin-left: auto; }
.ll-saved { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--neutral-500); }
.ll-saved .ic { width: 14px; height: 14px; color: var(--bk-green-dark); }
.ll-form { display: flex; flex-direction: column; gap: 8px; }
.ll-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--neutral-600); }
.ll-msg { font-size: 13px; font-weight: 600; color: #B91C1C; }
.ll-msg:empty { display: none; }
.ll-pick-folder { display: flex; flex-direction: column; gap: 8px; }
.ll-pick-folder .btn { justify-content: flex-start; }
@keyframes modal-in { from { opacity: 0; transform: scale(0.95); } }

/* Overflow menu */
.menu-wrap { position: relative; flex-shrink: 0; }
.menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 30; min-width: 168px; display: flex; flex-direction: column; padding: 4px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); animation: modal-in 150ms var(--ease-out); transform-origin: top right; }
.menu-item { display: flex; align-items: center; gap: 10px; height: 36px; white-space: nowrap; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--brand-900); font-family: var(--font-sans); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.menu-item .ic { width: 16px; height: 16px; color: var(--neutral-400); }
.menu-item:hover, .menu-item:focus-visible { background: var(--neutral-100); outline: none; }
.menu-item.danger, .menu-item.danger .ic { color: var(--danger); }

/* fit-content: inside a column flex box it would otherwise stretch, leaving a gap after the options */
.seg { display: inline-flex; width: fit-content; max-width: 100%; gap: 4px; padding: 4px; background: var(--neutral-200); border-radius: 10px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--neutral-600); transition: background-color 150ms var(--ease-standard), color 150ms var(--ease-standard); }
.seg input:checked + span { background: #FFFFFF; color: var(--brand-900); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid var(--brand-400); outline-offset: 1px; }
/* Host (projector) */
.host { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #FFFFFF; }
.stage { flex: 1; display: flex; flex-direction: column; width: 100%; }
.stage.tint { background: var(--brand-50); }
.stage > * { width: 100%; max-width: 1440px; margin: 0 auto; }

.lobby { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; padding: clamp(20px, 4vh, 40px) clamp(16px, 3vw, 40px); }
.join-panel { display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.4vh, 22px); padding: clamp(24px, 4.5vh, 40px); background: var(--brand-50); border-radius: 20px; min-width: 0; }
.join-panel .how { font-size: 18px; line-height: 1.4; color: var(--brand-800); }
/* The waiting room's panel only holds a line or two: it doesn't stretch to the room's height. */
.join-panel.class-panel { align-self: start; }
.join-top { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); flex-wrap: wrap; }
.qr { flex-shrink: 0; padding: 10px; line-height: 0; background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xs); }
.qr img, .qr canvas { width: clamp(132px, 21vh, 208px); height: auto; aspect-ratio: 1; }
.join-code { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.join-code .eyebrow { color: var(--brand-500); }
.code { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 4.2vw, 80px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; color: var(--brand-900); font-variant-numeric: tabular-nums; }
.join-hint { font-size: 15px; color: var(--brand-700); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-xs); }
.share-url { flex: 1 1 11em; min-width: 0; font-size: clamp(15px, 1.2vw, 19px); font-weight: 600; line-height: 1.35; color: var(--brand-900); overflow-wrap: break-word; user-select: all; }
.share .btn { flex-shrink: 0; }
/* Each part of the link stays whole when it fits; in a narrow box the button drops below the link. */
.share-url .nobr { display: inline-block; max-width: 100%; }
.mascot-row { display: flex; align-items: center; gap: 16px; }
.mascot-row img { width: clamp(72px, 13vh, 112px); height: clamp(72px, 13vh, 112px); object-fit: contain; flex-shrink: 0; }
.mascot-row p { font-size: 15px; color: var(--brand-700); text-wrap: pretty; }
.mascot-row b { font-weight: 600; color: var(--brand-900); }
.creating { display: flex; align-items: center; gap: 12px; font-size: 18px; color: var(--brand-800); }
.creating.sm { gap: 10px; padding: 8px 0; font-size: 15px; }
/* "Alunos" on the setup of a game every student plays on their phone (classBox in screens.js). */
.class-box { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xs); }
.class-head { display: flex; align-items: center; gap: 10px; }
.class-head h2 { font-size: 20px; font-weight: 700; }
.class-note { font-size: 14px; line-height: 1.45; color: var(--neutral-500); }
.class-rows, .lg-teams { display: flex; flex-direction: column; gap: 8px; }
.class-row, .lg-team { display: flex; align-items: center; gap: 8px; }
.class-row .input[readonly] { cursor: default; }
.class-body { display: flex; flex-direction: column; gap: 10px; }
.players-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
.players-head { display: flex; align-items: center; gap: 10px; }
.players-head h2 { font-size: 24px; font-weight: 700; }
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; border: 1.5px dashed var(--neutral-300); border-radius: 14px; }
.empty .tile { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-50); color: var(--brand-400); }
.empty h3 { margin-top: 16px; font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--brand-950); }
.chips { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; overflow: auto; max-height: calc(100dvh - 260px); padding: 2px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 9999px; box-shadow: var(--shadow-xs); animation: pop-in 260ms var(--ease-out); }
.chip.seen { animation: none; }
.chip b { font-size: 15px; font-weight: 600; color: var(--brand-950); }
.chip-x { width: 26px; height: 26px; margin-right: -6px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9999px; background: transparent; color: var(--neutral-400); cursor: pointer; }
.chip-x:hover { background: #FEE2E2; color: var(--danger); }
@keyframes pop-in { from { opacity: 0; transform: scale(0.8); } }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring .prog { transition: stroke-dashoffset 100ms linear; }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.ring .num span { font-size: 11px; font-weight: 500; color: var(--neutral-500); }
.ranking { flex: 1; display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 5vh, 40px) clamp(16px, 3vw, 40px); max-width: 880px !important; }
.ranking h1 { margin-top: 8px; font-size: clamp(32px, 3.1vw, 48px); font-weight: 700; letter-spacing: -0.02em; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-xs); animation: rise 350ms var(--ease-out) both; }
.row .pos { width: 36px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--neutral-500); }
.row .av { width: 40px; height: 40px; }
.row .nm { flex: 1; min-width: 0; font-size: clamp(17px, 1.5vw, 22px); font-weight: 600; color: var(--brand-950); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delta { display: inline-flex; padding: 3px 10px; border-radius: 9999px; background: hsl(87 70% 94%); color: hsl(87 100% 22%); font-size: 13px; font-weight: 600; white-space: nowrap; }
.row .sc { min-width: 88px; text-align: right; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 1.8vw, 28px); color: var(--brand-900); font-variant-numeric: tabular-nums; }
.ranking .actions { margin-top: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* Centred in the screen as a whole; auto margins rather than justify-content, so a short window scrolls instead of clipping the title. */
.podium { flex: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 3.5vh, 28px); padding: clamp(20px, 4vh, 32px) clamp(16px, 3vw, 40px); }
.podium .ph { margin-top: auto; text-align: center; }
.podium .actions { margin-bottom: auto; }
.podium h1 { font-size: clamp(32px, 3.1vw, 48px); font-weight: 700; letter-spacing: -0.02em; }
.podium .ph p { margin-top: 4px; font-size: 16px; color: var(--neutral-500); }
.steps { width: 100%; max-width: 720px; display: flex; align-items: flex-end; justify-content: center; gap: 20px; }
.step { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step .champ { width: clamp(96px, 16vh, 140px); height: clamp(96px, 16vh, 140px); object-fit: contain; }
.step .nm { max-width: 100%; font-size: 16px; font-weight: 600; color: var(--brand-950); text-align: center; overflow-wrap: anywhere; line-height: 1.25; }
.step.p1 .nm { font-size: 18px; font-weight: 700; }
.step .pts { font-size: 14px; color: var(--neutral-500); }
.step .block { width: 100%; display: flex; justify-content: center; padding-top: 16px; border-radius: 14px 14px 0 0; font-family: var(--font-display); font-weight: 800; line-height: 1; color: #FFFFFF; transform-origin: bottom; animation: grow-up 700ms var(--ease-out) both; }
/* The steps in the quiz's answer colours (TONES in Quiz ao Vivo), white on each above 4.5:1. */
.step.p1 .block { height: clamp(150px, 26vh, 220px); background: #8B63BF; font-size: 56px; animation-delay: 300ms; }
.step.p2 .block { height: clamp(110px, 19vh, 160px); background: #BA4A9B; font-size: 48px; animation-delay: 150ms; }
.step.p3 .block { height: clamp(80px, 14vh, 116px); background: #5A6BC4; font-size: 44px; }
.step.none .pts { visibility: hidden; }
.step.none .nm { color: var(--neutral-400); }
@keyframes grow-up { from { transform: scaleY(0.2); opacity: 0; } }
/* A laptop window under its bookmarks and sharing bars: the ranking and podium tighten so their buttons stay in view. */
@media (max-height: 780px) {
  .ranking { gap: 16px; padding-top: 20px; }
  .rows { gap: 8px; }
  .row { padding: 10px 18px; }
  .podium { gap: 12px; padding-top: 16px; }
  .step .champ { width: clamp(72px, 12vh, 140px); height: clamp(72px, 12vh, 140px); }
  .step.p1 .block { height: clamp(110px, 20vh, 220px); }
  .step.p2 .block { height: clamp(80px, 14vh, 160px); }
  .step.p3 .block { height: clamp(60px, 10vh, 116px); }
}
/* Student (phone) */
/* "Controles do professor" (teacherControls): a panel at the right under the header, as in Palavra Secreta. */
.ctrl-toggle[aria-expanded="true"], .ctrl-toggle[aria-expanded="true"]:hover:not(:disabled) { --edge: var(--brand-200); background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.controls { position: fixed; top: 64px; right: 0; bottom: 0; z-index: 40; width: 340px; max-width: 100vw; display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; overflow-y: auto; border-left: 1px solid var(--border); background: #FFFFFF; box-shadow: var(--shadow-lg); animation: controls-in 260ms var(--ease-out); }
.controls[hidden] { display: none; }
@keyframes controls-in { from { transform: translateX(24px); opacity: 0; } }
.controls-head { display: flex; align-items: center; justify-content: space-between; }
.controls-head span { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neutral-600); }
.cgroup { display: flex; flex-direction: column; gap: 2px; }
.cgroup + .cgroup { padding-top: 12px; border-top: 1px solid var(--border); }
.citem { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--brand-950); font-family: var(--font-sans); font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.citem .ic { flex: none; width: 22px; height: 22px; color: var(--neutral-500); }
.citem:hover:not(:disabled) { background: var(--neutral-50); }
.citem:disabled { color: var(--neutral-400); cursor: default; }
.citem:disabled .ic { color: var(--neutral-300); }
.controls .switch-row { padding: 12px; }
.controls .switch-row b { font-size: 16px; font-weight: 500; }
/* On a wide screen the panel pushes the game aside instead of covering it. */
@media (min-width: 1000px) { html.controls-open .host:has(> .controls) > .stage { padding-right: 340px; } }
@media (prefers-reduced-motion: reduce) { .controls { animation: none; } }

/* What only the teacher sees on their own screen (secretBox). */
.secret { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px 12px 14px; border: 1.5px dashed var(--brand-300); border-radius: 14px; background: var(--brand-50); }
.secret b { padding-right: 6px; font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; line-height: 1.15; color: var(--brand-950); overflow-wrap: anywhere; }

/* The standings on a student's phone (phoneStandings); a computer gets the teacher's sizes. */
.phone-stand { flex: 1; display: flex; flex-direction: column; }
.phone .phone-stand .actions:empty { display: none; }
/* The final podium, centred on the phone with the student's own place under it. */
.phone-stand.final { justify-content: center; }
.phone-stand.final > .podium { flex: none; }
.phone-stand.final .mine-rank { margin-bottom: 0; }
@media (max-width: 899px) {
  .phone .ranking { flex: none; gap: 14px; padding: 20px 16px 12px; }
  .phone .ranking h1, .phone .podium h1 { font-size: 28px; }
  .phone .row { gap: 10px; padding: 10px 12px; }
  .phone .row .pos { width: 28px; font-size: 17px; }
  .phone .row .av { width: 32px; height: 32px; font-size: 12px; }
  .phone .row .nm { font-size: 16px; }
  .phone .row .sc { min-width: 0; font-size: 20px; }
  .phone .podium { flex: none; gap: 12px; padding: 16px 12px 12px; }
  .phone .steps { gap: 10px; }
  .phone .step .champ { width: 76px; height: 76px; }
  .phone .step .nm { font-size: 14px; }
  .phone .step.p1 .block { height: 130px; font-size: 40px; }
  .phone .step.p2 .block { height: 96px; font-size: 34px; }
  .phone .step.p3 .block { height: 70px; font-size: 30px; }
}
.mine-rank { width: calc(100% - 32px); max-width: 848px; margin: 4px auto 20px; padding: 12px 16px; border-radius: 12px; background: var(--brand-50); color: var(--brand-900); font-size: 16px; font-weight: 700; text-align: center; }
.phone { width: 100%; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #FFFFFF; }
.reload-note, .center .reload-note { font-size: 13px; color: var(--neutral-500); }
.pbody { flex: 1; display: flex; flex-direction: column; }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; text-align: center; }
.center.tint { background: var(--brand-50); gap: 18px; }
.center h2 { font-size: 26px; font-weight: 700; line-height: 1.15; }
.center h2.big { font-size: 30px; font-weight: 800; }
.center h2.huge { font-size: 44px; font-weight: 800; line-height: 1; }
.center p { font-size: 14px; color: var(--neutral-500); text-wrap: pretty; }
.center p strong { font-weight: 600; color: var(--brand-900); }
.center p.note { color: var(--brand-700); }
.center p.eyebrow { color: var(--brand-500); }
.center p.rank { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--brand-700); }
.center p.score { font-size: 16px; font-weight: 600; color: var(--brand-700); }
.mascot { width: 140px; height: 140px; object-fit: contain; }
@media (max-height: 500px) { .center .mascot { width: 88px; height: 88px; } }
.gain { display: inline-flex; padding: 6px 14px; border-radius: 9999px; background: var(--brand-900); color: #FFFFFF; font-size: 15px; font-weight: 600; }
.spinner { width: 40px; height: 40px; flex-shrink: 0; border-radius: 9999px; border: 4px solid var(--brand-100); border-top-color: var(--brand-600); animation: spin 900ms linear infinite; }
.spinner.sm { width: 24px; height: 24px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.join { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 24px; }
.join .mascot { width: 120px; height: 120px; align-self: center; }
/* A phone on its side: a smaller owl keeps "Entrar" above the fold. */
@media (max-height: 500px) { .join .mascot { width: 72px; height: 72px; } }
.join .head { text-align: center; }
.join h2 { font-size: 26px; font-weight: 700; }
.join .head p { margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--neutral-500); }
.join label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--brand-900); }
.join input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; background: #FFFFFF; color: var(--brand-900); font-family: var(--font-sans); font-size: 17px; outline: none; transition: border-color 150ms var(--ease-standard), box-shadow 150ms var(--ease-standard); }
.join input::placeholder { color: var(--neutral-400); }
.join input:focus, .join input:focus-visible { border-color: var(--brand-600); box-shadow: var(--shadow-focus); outline: none; }
.form-err { margin-top: -4px; font-size: 14px; font-weight: 500; color: var(--danger); text-align: center; text-wrap: pretty; }
.form-err:empty { display: none; }
.join-note { font-size: 12.5px; line-height: 1.45; color: var(--neutral-500); text-align: center; text-wrap: pretty; }
.ahead { display: flex; align-items: center; justify-content: space-between; }
.atime { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.track { height: 6px; overflow: hidden; border-radius: 9999px; background: var(--neutral-100); }
.track i { display: block; height: 100%; border-radius: 9999px; transition: width 100ms linear; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 40px 32px 56px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 640px) { .wrap { padding: 24px 16px 40px; } }
.input { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: #FFFFFF; color: var(--brand-900); font-family: var(--font-sans); font-size: 15px; box-shadow: var(--shadow-xs); outline: none; transition: border-color 150ms var(--ease-standard), box-shadow 150ms var(--ease-standard); }
.input::placeholder { color: var(--neutral-400); }
.input:focus { border-color: var(--brand-500); box-shadow: var(--shadow-focus); }
.input.bad { border-color: #EF4444; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; font-family: var(--font-sans); color: inherit; text-align: left; cursor: pointer; }
.switch-row:hover { background: var(--neutral-50); }
.switch-row .sr-text { display: flex; flex-direction: column; gap: 2px; }
.switch-row b { font-size: 14px; font-weight: 600; color: var(--brand-950); }
.switch-row small { font-size: 12.5px; color: var(--neutral-500); }
.switch { flex: none; position: relative; width: 36px; height: 20px; border-radius: 9999px; background: var(--neutral-300); transition: background-color 150ms var(--ease-standard); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 9999px; background: #FFFFFF; box-shadow: var(--shadow-sm); transition: left 150ms var(--ease-standard); }
.switch-row[aria-checked="true"] .switch { background: var(--brand-500); }
.switch-row[aria-checked="true"] .switch::after { left: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* pickMenu() (ui.js): a filter menu like Beaky's, a soft button and a floating list parked on the body. */
.pick { display: inline-flex; min-width: 0; }
.pick-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 13rem; min-width: 0; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--brand-950); font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 20px; cursor: pointer; transition: background-color 150ms var(--ease-standard); }
.pick-btn:hover { background: var(--neutral-50); }
.pick-btn.on { background: var(--brand-50); color: var(--brand-700); }
.pick-btn.on:hover { background: var(--brand-100); }
.pick-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.pick-btn .ic { flex: none; width: 14px; height: 14px; color: var(--neutral-400); }
.pick-btn.on .ic { color: var(--brand-400); }
.pick-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-menu { position: fixed; z-index: 120; width: 15rem; display: flex; flex-direction: column; padding: 6px 0; overflow: hidden; border: 1px solid var(--neutral-100); border-radius: 16px; background: #FFFFFF; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1), 0 0 0 1px rgb(0 0 0 / 0.05); animation: modal-in 150ms var(--ease-out); transform-origin: top right; }
.pick-k { padding: 4px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--neutral-400); }
.pick-list { min-height: 0; flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.pick-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 12px; border: 0; background: transparent; color: var(--brand-950); font-family: var(--font-sans); font-size: 14px; line-height: 20px; text-align: left; cursor: pointer; outline: none; transition: background-color 150ms var(--ease-standard); }
.pick-opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-opt:hover, .pick-opt:focus-visible { background: var(--neutral-50); }
.pick-opt:focus-visible { box-shadow: inset 3px 0 0 var(--brand-400); }
.pick-opt .ic { flex: none; width: 16px; height: 16px; color: var(--brand-600); visibility: hidden; }
.pick-opt[aria-selected="true"] { font-weight: 600; color: var(--brand-700); background: rgb(245 240 251 / 0.6); }
.pick-opt[aria-selected="true"] .ic { visibility: visible; }

/* "Como jogar": how the class follows the game, then the rules. */
.howto-share { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--brand-800); }
.howto-share .ic { width: 20px; height: 20px; color: var(--brand-500); }
.howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.5; color: var(--neutral-600); }
.howto li::marker { color: var(--brand-400); }
.howto-btn { color: var(--brand-600); }

/* A student's screens: every button is the white one of the plaza's header. */
.phone .btn:not(.ghost), .watch-guide .btn { --edge: var(--bk-card-border); background: #FFFFFF; color: var(--bk-violet-dark); border-color: var(--bk-card-border); }
.phone .btn:not(.ghost) .ic, .watch-guide .btn .ic { color: var(--bk-violet); }
.phone .btn:not(.ghost):hover:not(:disabled), .watch-guide .btn:hover:not(:disabled) { background: var(--bk-tint); color: var(--bk-violet-dark); }

/* A student's phone following the teacher's screen (assets/mirror.js): nothing on it is a control. */
[data-watch] #app button { pointer-events: none; cursor: default; }
[data-watch] #app .watch-act:not(:disabled) { pointer-events: auto; cursor: pointer; }

/* A student on a computer: the screen the phone shows, laid out like the teacher's (from 900px). */
@media (min-width: 900px) {
  .phone { max-width: none; }
      .center { gap: 18px; }
  .center h2 { font-size: 34px; }
  .center h2.big { font-size: 44px; }
  .center h2.huge { font-size: 72px; }
  .center p { max-width: 640px; font-size: 17px; }
  .center .mascot { width: 180px; height: 180px; }
  .join { width: 100%; max-width: 480px; margin: 0 auto; }
  .phone-stand { align-items: center; }
  .phone-stand > .ranking, .phone-stand > .podium { flex: none; width: 100%; }
  .mine-rank { max-width: 800px; }
}

/* The scoreboard and the end of a game that ranks the class (finalView in list-game.js), in every game. */
.lg-scores { display: flex; flex-wrap: wrap; gap: 10px; }
.lg-score { display: flex; align-items: center; gap: 10px; padding: 6px 14px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 9999px; box-shadow: var(--shadow-xs); }
.lg-score b { font-size: clamp(13px, 1vw, 16px); font-weight: 600; color: var(--brand-950); }
.lg-score span { font-family: var(--font-display); font-size: clamp(16px, 1.3vw, 21px); font-weight: 800; color: var(--brand-900); font-variant-numeric: tabular-nums; }
.lg-score.on { border-color: var(--brand-500); background: var(--brand-500); }
.lg-score.on b, .lg-score.on span { color: #FFFFFF; }
.lg-scores.many { gap: 6px; justify-content: center; }
.lg-scores.many .lg-score { gap: 8px; padding: 4px 12px; box-shadow: none; }
.lg-scores.many .lg-score b { font-size: 14px; }
.lg-scores.many .lg-score span { font-size: 17px; }
.lg-score.win { border-color: var(--bk-amber); background: var(--bk-amber-tint); box-shadow: inset 0 -3px 0 var(--bk-amber); }
.lg-score.win .ic { width: 20px; height: 20px; margin-right: -4px; color: #7A4B00; }
.lg-end { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px 16px; text-align: center; }
.lg-end img { width: clamp(120px, 20vh, 180px); height: auto; }
.lg-end h1 { font-size: clamp(36px, 4vw, 64px); font-weight: 800; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.lg-end .note { font-size: clamp(16px, 1.4vw, 21px); color: var(--brand-700); }
.lg-end .lg-scores { justify-content: center; }
