/* The Retro Arcade (retro.html). Buttons, cards, sheets and fields come from assets/family-kit.css; this is the hall, the cabinets, the CRT
   and the touch pad. Every colour that is not a cabinet's own paint comes from the member's tokens (persona, pack, light or dark). The hall
   is always night inside (an arcade has no windows), in every scheme; the cards under it follow the page. */
.ra-page { max-inline-size: 1180px; }
.ra-menu { min-block-size: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .08); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ra-menu:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fos-game-top { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }

/* ---- the temple hall: obsidian vault, golden circuits, cyan & gold laser trim ---- */
.ra-hall { --hall: #06080e; position: relative; isolation: isolate; display: grid; gap: var(--s-3); padding: 0 0 var(--s-4); border-radius: 16px; overflow: clip; color: #f8fafc;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(245, 158, 11, 0.22), transparent 60%),
    linear-gradient(180deg, #0b1120, var(--hall));
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.55), 0 0 36px -6px rgba(245, 158, 11, 0.38), 0 18px 34px -12px rgb(0 0 0 / .75); }
.ra-hall::before { content: ""; position: absolute; inset-inline: 18px; inset-block-start: 10px; block-size: 3px; border-radius: 3px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, #f59e0b, #38bdf8, #f59e0b, transparent); box-shadow: 0 0 14px #f59e0b; }
.ra-room { display: none; position: relative; block-size: clamp(300px, 54vh, 640px); border-radius: 22px 22px 0 0; overflow: hidden; touch-action: pan-y; }
html[data-ra-3d] .ra-room { display: block; }
/* while a game plays, the room behind it takes no space at all, so the shared stage draws nothing (its canvas is 1px) */
html[data-ra-3d][data-ra-playing] .ra-room { display: none; }
.ra-room canvas { display: block; inline-size: 100%; block-size: 100%; cursor: pointer; }
.ra-hall-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-4) var(--s-4) 0; }
html[data-ra-3d] .ra-hall-top { padding-block-start: 0; margin-block-start: -6px; }
.ra-hall .fk-h2 { flex: 1 1 60%; color: #fff; margin: 0; text-shadow: 0 0 12px color-mix(in oklch, var(--accent) 70%, transparent); }
.ra-today { margin: 0; color: #c4b5fd; font-size: var(--t-sm); font-weight: 650; }
.ra-hall .fk-sub { color: #c7c2e6; padding-inline: var(--s-4); }

/* ---- a cabinet: marquee, CRT, control panel, a line about it ---- */
.ra-cabs { list-style: none; margin: 0; padding: 0 var(--s-3); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 44%), 1fr)); gap: var(--s-4) var(--s-3); }
@media (min-width: 900px) { .ra-cabs { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.ra-cab { --cab: #f59e0b; --edge: #0d1424; position: relative; inline-size: 100%; display: grid; gap: 6px; padding: 0 8px 10px; border: 1.5px solid rgba(245, 158, 11, 0.55); border-radius: 12px 12px 6px 6px; cursor: pointer; text-align: start; color: #f8fafc; font: inherit;
  background: linear-gradient(160deg, #162038, #080d1a 55%, #06080e);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25) inset, 0 14px 20px -10px rgb(0 0 0 / .85), 0 0 22px -8px rgba(245, 158, 11, 0.45); -webkit-tap-highlight-color: transparent; }
.ra-cab:focus-visible { outline: 3px solid #fde68a; outline-offset: 3px; }
.ra-cab-marquee { margin-inline: -8px; padding: 8px 10px 7px; border-radius: 11px 11px 0 0; text-align: center; font-family: var(--font-display); font-weight: 900; font-size: max(15px, var(--t-sm)); line-height: 1.15; letter-spacing: .06em; text-transform: uppercase; color: #06080e;
  background: linear-gradient(135deg, #fef3c7, #f59e0b); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .28), 0 0 16px rgba(245, 158, 11, 0.5); }
.ra-cab-screen { position: relative; display: block; aspect-ratio: 4 / 3; padding: 7px; border-radius: 10px; background: #0b0b12; box-shadow: inset 0 0 0 2px #23202f, inset 0 4px 10px rgb(0 0 0 / .8); }
.ra-cab-screen canvas { display: block; inline-size: 100%; block-size: 100%; border-radius: 12px / 16px; image-rendering: pixelated; background: #000; box-shadow: 0 0 14px color-mix(in oklch, var(--cab) 45%, transparent); }
.ra-cab-screen::after { content: ""; position: absolute; inset: 7px; border-radius: 12px / 16px; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgb(0 0 0 / .22) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 30% 15%, rgb(255 255 255 / .18), transparent 45%), radial-gradient(140% 120% at 50% 50%, transparent 60%, rgb(0 0 0 / .55)); }
.ra-cab-panel { display: flex; align-items: center; gap: 8px; block-size: 26px; padding: 0 10px; border-radius: 6px; background: linear-gradient(180deg, color-mix(in oklch, var(--cab) 40%, #1b1028), #1b1028); box-shadow: inset 0 2px 0 rgb(255 255 255 / .15); }
.ra-stick { inline-size: 12px; block-size: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a8a, #dc2626 60%, #7f1d1d); box-shadow: 0 3px 0 #111; margin-inline-end: auto; }
.ra-btn { inline-size: 10px; block-size: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff7b0, #facc15 60%, #a16207); box-shadow: 0 2px 0 #111; }
.ra-btn + .ra-btn { background: radial-gradient(circle at 35% 30%, #bdf7ff, #22d3ee 60%, #0e7490); }
.ra-cab-meta { font-size: 13px; font-weight: 750; line-height: 1.25; color: #fff; text-shadow: 0 1px 0 rgb(0 0 0 / .45); }
.ra-cab-what { display: none; font-size: max(13px, calc(var(--t-sm) - 1px)); line-height: 1.3; color: rgb(255 255 255 / .88); text-shadow: 0 1px 0 rgb(0 0 0 / .4); }
.ra-cab:active { transform: translateY(3px); box-shadow: 0 0 0 2px rgb(0 0 0 / .45) inset, 0 8px 10px -8px rgb(0 0 0 / .7); }
@media (hover: hover) and (pointer: fine) { .ra-cab { transition: transform 160ms var(--ease-out, ease-out), box-shadow 160ms; } .ra-cab:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px rgb(0 0 0 / .45) inset, 0 20px 22px -12px rgb(0 0 0 / .7), 0 0 30px -6px var(--cab); } }
@media (prefers-reduced-motion: no-preference) { html:not([data-motion="reduced"]) .ra-cab { animation: ra-in 420ms var(--ease-out, ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); } }
@keyframes ra-in { from { opacity: 0; translate: 0 10px; } }
html[data-ra-3d] .ra-cabs { grid-template-columns: repeat(auto-fill, minmax(min(150px, 44%), 1fr)); }

/* ---- cards under the hall ---- */
.ra-tv .ra-roombox { display: grid; gap: var(--s-2); justify-items: start; }
.ra-code { margin: 0; font-family: var(--font-display); font-size: clamp(36px, 8vw, 72px); font-weight: 900; letter-spacing: .08em; color: var(--accent-ink, var(--ink)); }
.ra-qr svg { inline-size: 180px; block-size: 180px; background: #fff; padding: 8px; border-radius: 12px; }
.ra-seats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ra-seat { display: flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); border: 2px solid var(--who); font-weight: 650; }
.ra-seat b { display: grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--who); color: #111; }
.ra-seat:not(.on) { opacity: .7; }
.ra-wall-list, .ra-save-list, .ra-own-list, .ra-kids { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.ra-wall-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); margin: 0 0 var(--s-2); font-weight: 800; }
.ra-wall-total { color: var(--ink-2); font-weight: 650; font-size: var(--t-sm); }
.ra-wall-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ra-best { display: grid; grid-template-columns: auto auto; gap: 0 10px; align-items: baseline; padding: 8px 14px; border-radius: 14px; background: var(--surface-2); border-inline-start: 6px solid var(--who); }
.ra-best-name { font-weight: 750; } .ra-best-score { font-family: var(--font-display); font-weight: 900; font-size: var(--t-title3); }
.ra-best-kudos { grid-column: 1 / -1; color: var(--ink-2); font-size: var(--t-sm); }
.ra-save-list { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.ra-save-list li { display: grid; gap: 4px; }
.ra-save { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; inline-size: 100%; min-block-size: 76px; padding: 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: start; cursor: pointer;
  box-shadow: 0 6px 10px -8px rgb(0 0 0 / .4); }
.ra-save:focus-visible { outline: 3px solid var(--accent-ink, var(--accent)); outline-offset: 2px; }
.ra-save-pic { grid-row: span 2; inline-size: 96px; aspect-ratio: 4 / 3; border-radius: 8px; background: #111; overflow: hidden; }
.ra-save-pic img { inline-size: 100%; block-size: 100%; object-fit: cover; image-rendering: pixelated; }
.ra-save-who { font-weight: 800; align-self: end; } .ra-save-what { color: var(--ink-2); font-size: var(--t-sm); align-self: start; }
.ra-save-del { justify-self: end; }
.ra-note { margin: 0 0 var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md, 12px); background: var(--tint-a, var(--surface-2)); font-weight: 600; line-height: 1.45; }
.ra-own-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding-block: var(--s-2); border-block-start: 1px solid var(--line); }
.ra-own-t { display: grid; } .ra-own-t span { color: var(--ink-2); font-size: var(--t-sm); }
.ra-own-row .fk-actions { margin: 0; }
.ra-kid { display: flex; align-items: center; gap: 10px; min-block-size: 44px; font-weight: 650; } .ra-kid input { inline-size: 24px; block-size: 24px; }
.ra-rating { margin-block: var(--s-2) var(--s-3); }
.ra-credits summary { min-block-size: 44px; display: flex; align-items: center; font-weight: 750; cursor: pointer; }
.ra-credits ul { margin: var(--s-2) 0 0; padding-inline-start: 1.2em; display: grid; gap: 6px; font-size: var(--t-sm); line-height: 1.4; }
.ra-url { overflow-wrap: anywhere; color: var(--ink-2); }

/* ---- playing: the CRT fills the screen, the pad sits in the thumb zone ---- */
.ra-play { position: fixed; inset: 0; z-index: 1200; display: grid; grid-template-rows: auto 1fr auto; color: #f5f3ff;
  background: radial-gradient(90% 70% at 50% 40%, color-mix(in oklch, var(--accent) 22%, #0b0a1c), #04040a 75%); padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0); overscroll-behavior: contain; }
.ra-play[hidden] { display: none; }
html[data-ra-playing], html[data-ra-playing] body { overflow: hidden; }
.ra-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 8px 10px; background: rgb(0 0 0 / .35); }
.ra-tools { grid-column: 1 / -1; display: flex; gap: 6px; } .ra-tools > * { flex: 1 1 0; min-inline-size: 0; } .ra-tools > [hidden] { display: none; }
@media (min-width: 820px) { .ra-bar { grid-template-columns: auto minmax(0, 1fr) auto auto auto; } .ra-tools { grid-column: auto; } .ra-tools > * { flex: 0 0 auto; } }
.ra-play-title { flex: 1 1 120px; margin: 0; font-family: var(--font-display); font-size: var(--t-body); font-weight: 850; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-bar-btn { min-block-size: 44px; min-inline-size: 44px; padding: 0 10px; border-radius: 12px; border: 1.5px solid rgb(255 255 255 / .28); background: rgb(255 255 255 / .08); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ra-bar-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-contrast, #111); border-color: transparent; }
.ra-bar-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ra-bar-btn[hidden] { display: none; }
.ra-stage { position: relative; display: grid; place-items: center; min-block-size: 0; min-inline-size: 0; padding: 10px; overflow: hidden; }
.ra-crt { --ar: 4 / 3; box-sizing: border-box; position: relative; aspect-ratio: var(--ar); inline-size: min(100%, calc((100dvh - 330px) * 4 / 3)); max-block-size: 100%; padding: 14px; border-radius: 26px; background: linear-gradient(160deg, #2a2735, #121019); box-shadow: 0 0 0 2px #000, inset 0 2px 0 rgb(255 255 255 / .12), 0 20px 40px -10px #000, 0 0 60px -10px color-mix(in oklch, var(--accent) 60%, transparent); }
.ra-play[data-aspect="wide"] .ra-crt { --ar: 16 / 9; inline-size: min(100%, calc((100dvh - 330px) * 16 / 9)); }
.ra-play[data-aspect="gb"] .ra-crt { --ar: 10 / 9; inline-size: min(100%, calc((100dvh - 330px) * 10 / 9)); }
.ra-screen { position: absolute; inset: 14px; overflow: hidden; border-radius: 18px / 24px; background: #000; }
.ra-screen canvas, .ra-screen iframe { display: block; inline-size: 100%; block-size: 100%; border: 0; image-rendering: pixelated; image-rendering: crisp-edges; }
.ra-glass { position: absolute; inset: 14px; border-radius: 18px / 24px; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgb(0 0 0 / .2) 0 1px, transparent 1px 3px), radial-gradient(120% 80% at 25% 10%, rgb(255 255 255 / .16), transparent 40%), radial-gradient(150% 130% at 50% 50%, transparent 62%, rgb(0 0 0 / .6));
  box-shadow: inset 0 0 40px rgb(0 0 0 / .65), inset 0 0 0 1px rgb(255 255 255 / .06); }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduced"]) .ra-play:not([hidden]) .ra-screen { animation: ra-on 520ms cubic-bezier(.2, .9, .3, 1) both; }
}
@keyframes ra-on { 0% { transform: scale(1, .01); filter: brightness(3); } 45% { transform: scale(1, .02); filter: brightness(3); } 100% { transform: none; filter: none; } }
.ra-play[data-paused] .ra-screen::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .45); }
.ra-say { position: absolute; inset-inline: 0; inset-block-end: 4px; margin: 0; text-align: center; font-weight: 700; color: #fff6c2; text-shadow: 0 1px 0 #000; }
.ra-say:empty { display: none; }

.ra-pad { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); touch-action: none; user-select: none; -webkit-user-select: none; }
.ra-pad-l { justify-self: start; } .ra-pad-r { justify-self: end; display: grid; grid-template-columns: repeat(2, auto); gap: 10px; align-items: center; } .ra-pad-m { display: grid; gap: 8px; }
.ra-pad-r.ra-n3 .ra-face:nth-child(1) { grid-column: 1 / -1; justify-self: center; }
.ra-dpad { position: relative; inline-size: 140px; block-size: 140px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / .1), rgb(255 255 255 / .03) 70%); touch-action: none; }
.ra-dpad i { position: absolute; background: #2b2838; box-shadow: inset 0 2px 0 rgb(255 255 255 / .14), 0 4px 0 #000; }
.ra-dpad .u, .ra-dpad .d { inset-inline: 46px; block-size: 50px; } .ra-dpad .u { inset-block-start: 0; border-radius: 10px 10px 0 0; } .ra-dpad .d { inset-block-end: 0; border-radius: 0 0 10px 10px; }
.ra-dpad .l, .ra-dpad .r { inset-block: 46px; inline-size: 50px; } .ra-dpad .l { inset-inline-start: 0; border-radius: 10px 0 0 10px; } .ra-dpad .r { inset-inline-end: 0; border-radius: 0 10px 10px 0; }
.ra-dpad::after { content: ""; position: absolute; inset: 45px; background: #2b2838; border-radius: 4px; }
.ra-dpad[data-dir*="u"] .u, .ra-dpad[data-dir*="d"] .d, .ra-dpad[data-dir*="l"] .l, .ra-dpad[data-dir*="r"] .r { background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.ra-joy { background: radial-gradient(circle, #2b2838 55%, #18161f 56%); box-shadow: inset 0 0 0 3px rgb(255 255 255 / .1); }
.ra-joy::after { display: none; }
.ra-knob { position: absolute; inset: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a8a, #dc2626 60%, #7f1d1d); box-shadow: 0 6px 0 #000; transition: transform 40ms; }
.ra-face { inline-size: 62px; block-size: 62px; border-radius: 50%; border: 0; font: inherit; font-weight: 900; font-size: 20px; color: #1b1028; cursor: pointer; touch-action: none;
  background: radial-gradient(circle at 35% 30%, #fff7b0, #facc15 60%, #a16207); box-shadow: 0 6px 0 #000, inset 0 -3px 0 rgb(0 0 0 / .2); }
.ra-face:nth-child(2) { background: radial-gradient(circle at 35% 30%, #ffd1e8, #f472b6 60%, #9d174d); }
.ra-face:nth-child(3) { background: radial-gradient(circle at 35% 30%, #bdf7ff, #22d3ee 60%, #0e7490); }
.ra-face:nth-child(4) { background: radial-gradient(circle at 35% 30%, #d9f99d, #84cc16 60%, #3f6212); }
.ra-face.on, .ra-small.on, .ra-shoulder.on { transform: translateY(4px); box-shadow: 0 2px 0 #000; filter: brightness(1.15); }
.ra-small, .ra-shoulder { min-block-size: 44px; min-inline-size: 60px; padding: 0 10px; border-radius: 999px; border: 0; background: #2b2838; color: #fff; font: inherit; font-weight: 750; font-size: 14px; box-shadow: 0 4px 0 #000; touch-action: none; }
.ra-shoulder { grid-column: span 1; border-radius: 12px; }
/* landscape phones: the pad sits at the two sides of the screen; a big screen with a mouse and no touch shows no pad at all */
@media (orientation: landscape) and (max-height: 560px) {
  .ra-play { grid-template-rows: auto 1fr; }
  .ra-pad { position: absolute; inset: auto 0 0 0; pointer-events: none; padding-block-end: max(10px, env(safe-area-inset-bottom, 0px)); }
  .ra-bar { grid-template-columns: auto minmax(0, 1fr) auto auto auto; padding: 4px 8px; }
  .ra-tools { grid-column: auto; } .ra-tools > * { flex: 0 0 auto; }
  .ra-bar-btn { padding: 0 8px; font-size: 14px; }
  .ra-pad > * { pointer-events: auto; }
  .ra-pad { grid-template-columns: 1fr 1fr; align-items: end; }
  .ra-pad-l { grid-column: 1; grid-row: 1 / span 2; align-self: end; }
  .ra-pad-m { grid-column: 2; grid-row: 1; justify-self: end; display: flex; gap: 8px; }
  .ra-pad-r { grid-column: 2; grid-row: 2; }
  .ra-crt { inline-size: min(calc(100% - 340px), calc((100dvh - 90px) * 4 / 3)); }
  .ra-play[data-aspect="wide"] .ra-crt { inline-size: min(calc(100% - 340px), calc((100dvh - 90px) * 16 / 9)); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1100px) { .ra-pad { display: none; } .ra-crt { inline-size: min(100%, calc((100dvh - 110px) * 4 / 3)); } .ra-play[data-aspect="wide"] .ra-crt { inline-size: min(100%, calc((100dvh - 110px) * 16 / 9)); } .ra-play[data-aspect="gb"] .ra-crt { inline-size: min(100%, calc((100dvh - 110px) * 10 / 9)); } }
/* Amaya: bigger everything */
html[data-ra-little] .ra-face { inline-size: 72px; block-size: 72px; }
html[data-ra-little] .ra-dpad { inline-size: 192px; block-size: 192px; }
html[data-ra-little] .ra-dpad .u, html[data-ra-little] .ra-dpad .d { inset-inline: 64px; block-size: 64px; }
html[data-ra-little] .ra-dpad .l, html[data-ra-little] .ra-dpad .r { inset-block: 64px; inline-size: 64px; }
html[data-ra-little] .ra-dpad::after { inset: 63px; }
 html[data-ra-little] .ra-pad-r { grid-template-columns: 1fr; }
html[data-ra-little] .ra-bar-btn, html[data-ra-little] .ra-small { min-block-size: 64px; min-inline-size: 64px; }
html[data-ra-little] .ra-cabs { grid-template-columns: 1fr; }
@media (forced-colors: active) { .ra-cab, .ra-face, .ra-small, .ra-bar-btn, .ra-save { border: 2px solid CanvasText; } .ra-glass, .ra-cab-screen::after { display: none; } }

@media (min-width: 700px) { .ra-cab-what { display: block; } }
.ra-who .ra-rating { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); inline-size: 100%; box-sizing: border-box; }
.ra-who .ra-rating button { min-block-size: 44px; white-space: normal; }
.ra-who { min-inline-size: 0; overflow-wrap: anywhere; }

/* the score line: drawn by the page, big enough on a phone (22px) and on a TV (48px) */
.ra-hud { display: flex; gap: 10px; align-items: center; font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1; color: #fff6c2; }
.ra-hud[hidden] { display: none; }
.ra-hud-i { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ra-hud-i i { inline-size: .6em; block-size: .6em; border-radius: 3px; background: var(--who); box-shadow: 0 0 8px var(--who); }
.ra-best { grid-template-columns: auto auto auto; }
.ra-best-face { grid-row: span 2; display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 10px; background: var(--who); color: #111; font-weight: 900; font-size: 20px; image-rendering: pixelated; overflow: hidden; }
.ra-best-face > * { inline-size: 100%; block-size: 100%; }
.ra-best-kudos { grid-column: 2 / -1; }
.ra-help { display: grid; gap: var(--s-3); }
.ra-help-row { display: grid; gap: 6px; }
.ra-help-who { margin: 0; font-weight: 800; display: flex; align-items: center; gap: 8px; } .ra-help-who::before { content: ""; inline-size: 14px; block-size: 14px; border-radius: 4px; background: var(--who); }
.ra-help .ra-tiers { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); inline-size: 100%; box-sizing: border-box; }
.ra-help .ra-tiers button { min-block-size: 44px; }
html[data-ra-little] .ra-help .ra-tiers button, html[data-ra-little] .ra-who .ra-rating button { min-block-size: 64px; }
/* this screen is the TV (the phones are invited): type for the sofa, about 3 metres away, inside a 5% title-safe edge */
html[data-ra-tv] .ra-tv { font-size: 32px; }
html[data-ra-tv] .ra-tv .fk-sub, html[data-ra-tv] .ra-tv .fk-h2 { font-size: 32px; }
html[data-ra-tv] .ra-code { font-size: 120px; }
html[data-ra-tv] .ra-seat { font-size: 32px; min-block-size: 64px; }
html[data-ra-tv] .ra-seat b { inline-size: 44px; block-size: 44px; }
html[data-ra-tv] .ra-play { padding: 2.5vh 2.5vw; }
html[data-ra-tv] .ra-bar-btn { font-size: 32px; min-block-size: 72px; padding: 0 22px; border-radius: 16px; }
html[data-ra-tv] .ra-play-title { font-size: 40px; }
html[data-ra-tv] .ra-hud { font-size: 48px; gap: 24px; }
html[data-ra-tv] .ra-crt { inline-size: min(100%, calc((95dvh - 140px) * 4 / 3)); }
html[data-ra-tv] .ra-play[data-aspect="wide"] .ra-crt { inline-size: min(100%, calc((95dvh - 140px) * 16 / 9)); }
html[data-ra-tv] .ra-play[data-aspect="gb"] .ra-crt { inline-size: min(100%, calc((95dvh - 140px) * 10 / 9)); }
html[data-ra-tv] .ra-pad { display: none; }

.ra-cab-marquee.ra-keepcase { text-transform: none; }
/* visually hidden (the file picker is opened by its button; names in the score line are for screen readers) */
.ra-page .vh, .ra-play .vh, #raFile { position: absolute !important; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ra-rating > button[aria-checked="true"], .ra-tiers > button[aria-checked="true"] { background: var(--surface); box-shadow: var(--e1, 0 1px 3px rgb(0 0 0 / .2)), inset 0 0 0 2px var(--accent); color: var(--ink); }
.ra-tv [hidden], .ra-play [hidden], .ra-own [hidden] { display: none !important; }
