/* (16 Nov, FIXES 2.7) Press Start 2P and Silkscreen now come from our own server: /fonts/fonts.css (app.html) */
/* Arcade (id "arcade", paid, all year): a retro arcade cabinet screen. 8-bit pixel art (sprites drawn in
   theme-arcade.js), a starfield and pixel city behind a CRT scanline glow, chunky stepped pixel borders on buttons,
   cards and tiles, game-cartridge subject tiles, a marquee of chasing lights on the bottom bar, a pixel title.
   Everything here is scoped to html[data-theme="arcade"] (or the arcade-/ar names): the html part also lifts it
   over theme-3d.css, which loads after this file. */

/* ---- colours ---- */
html[data-theme="arcade"] {
  --bg-0: #0b0a22; --bg-1: #15133a; --bg-2: #201c52;
  --card: rgba(20, 18, 54, .94); --card-2: rgba(255, 255, 255, .07); --panel-edge: #4b47b8;
  --ink: #f6f4ff; --ink-dim: #b3b0e0; --on-hot: #ffffff;
  --hot: #f23a2e; --cool: #2f8cff; --amber: #ffc21f; --good: #36e05a; --bad: #ff5470; --seen: #6ff0ff;
  --title-1: #ffffff; --title-2: #ffd21f;
  --mine: rgba(47, 140, 255, .26); --mine-edge: rgba(111, 240, 255, .55); --fact-bg: rgba(255, 210, 31, .1); --fact-edge: rgba(255, 210, 31, .42);
  --shadow: 0 6px 0 rgba(0, 0, 0, .35);
  --scrim: rgba(4, 3, 16, .72); --off: rgba(255, 255, 255, .18); --press: rgba(0, 0, 0, .45);
  /* cartridge colours for the Head to Head tiles: the bright 8-bit set */
  --s-general: #e0362b; --s-geography: #1f7ae6; --s-history: #b8601e; --s-science: #0f9bb0;
  --s-nature: #23a346; --s-music: #d02f8f; --s-film_tv: #7a3cf0; --s-sport: #e08a00;
  --s-arts_lit: #9b3fd6; --s-food: #e2572a; --s-tech_games: #3a55e0; --s-words: #10917a;
  --d3: .6;
  --ar-o: #1b1033;
  /* bottom-bar icon colours: arcade red, blue, yellow and green */
  --tb-blue-1: #8fd0ff; --tb-blue-2: #2f7be0; --tb-pink-1: #ff9a8f; --tb-pink-2: #e0302a; --tb-green-1: #9dff9a; --tb-green-2: #22b04a;
  --tb-gold-1: #fff08a; --tb-gold-2: #f2b10f; --tb-purple-1: #c9a8ff; --tb-purple-2: #6a3be0; --tb-red-1: #ff8f8f; --tb-red-2: #d42a2a;
  --tb-cream-1: #ffffff; --tb-cream-2: #cfd6ff; --tb-orange-1: #ffc06b; --tb-orange-2: #ec6a1c; --tb-brown-1: #9d8cff; --tb-brown-2: #4b3fb0;
}

/* ---- the scene (SCENES.arcade in theme-arcade.js) ---- */
html[data-theme="arcade"] #stage-bg { background: linear-gradient(#05041a 0%, #0c0a2c 38%, #1b1550 72%, #34206c 100%); }
.arcade-scene { position: absolute; inset: 0; overflow: hidden; }
.arcade-scene svg { display: block; width: 100%; height: auto; }
.arcade-stars { position: absolute; inset: 0 0 30% 0; }
.arcade-stars i { position: absolute; width: 2px; height: 2px; background: var(--c); animation: arcade-twinkle var(--d) steps(1) infinite; animation-delay: var(--t); }
.arcade-stars i.big { width: 3px; height: 3px; box-shadow: 0 -3px 0 -.5px var(--c), 0 3px 0 -.5px var(--c), -3px 0 0 -.5px var(--c), 3px 0 0 -.5px var(--c), 0 0 8px var(--c); }
@keyframes arcade-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.arcade-planet { position: absolute; right: 3%; top: max(.7rem, calc(env(safe-area-inset-top) + .4rem)); width: 5.4rem; opacity: .9;
  filter: drop-shadow(0 0 16px rgba(255, 111, 209, .35)); animation: arcade-bob 7s steps(7) infinite alternate; }
.arcade-moon { position: absolute; left: 8%; top: 34%; width: 1.7rem; filter: drop-shadow(0 0 8px rgba(111, 184, 255, .4));
  animation: arcade-bob 5s steps(5) infinite alternate-reverse; }
@keyframes arcade-bob { to { transform: translateY(8px); } }

/* a pixel comet now and then */
.arcade-comet { position: absolute; top: 14%; left: 0; width: 4px; height: 4px; background: #fff; opacity: 0;
  box-shadow: -4px 2px 0 #fff3a0, -8px 4px 0 #ffd21f, -12px 6px 0 rgba(255, 138, 31, .8), -16px 8px 0 rgba(242, 58, 46, .55), -20px 10px 0 rgba(242, 58, 46, .3), 0 0 10px #fff;
  animation: arcade-comet 11s steps(40) infinite; animation-delay: -3s; }
@keyframes arcade-comet {
  0% { transform: translate(10vw, 0); opacity: 0; } 1% { opacity: 1; }
  12% { transform: translate(70vw, 12vh); opacity: 1; } 13%, 100% { transform: translate(70vw, 12vh); opacity: 0; } }

/* the little ship crossing the sky */
.arcade-ship { position: absolute; top: 22%; left: 0; width: 4.8rem; filter: drop-shadow(0 0 8px rgba(111, 240, 255, .45));
  animation: arcade-fly 17s steps(170) infinite; animation-delay: -4s; }
@keyframes arcade-fly {
  0% { transform: translate(-6rem, 2rem); opacity: 1; }
  20% { transform: translate(30vw, -.5rem); }
  40% { transform: translate(calc(100vw + 1rem), 1rem); opacity: 1; }
  40.5%, 100% { transform: translate(calc(100vw + 1rem), 1rem); opacity: 0; } }

/* sprites with two frames (critters walking, jelly wobbling) */
.arcade-jelly, .arcade-hop { position: relative; }
.arcade-scene .f2 { position: absolute; inset: 0; opacity: 0; }
.arcade-scene .f1, .arcade-scene .f2 { animation: arcade-frame .7s steps(1) infinite; }
.arcade-scene .f2 { animation-name: arcade-frame2; }
@keyframes arcade-frame { 50% { opacity: 0; } }
@keyframes arcade-frame2 { 50% { opacity: 1; } }

/* Wobble the jelly, drifting up and down */
.arcade-jelly { position: absolute; left: 5%; top: 46%; width: 2.5rem; filter: drop-shadow(0 0 10px rgba(255, 111, 209, .45));
  animation: arcade-drift 6s steps(12) infinite alternate; }
@keyframes arcade-drift { to { transform: translate(.6rem, -3.5rem); } }

/* coins spinning over the city */
.arcade-coin { position: absolute; width: 1.35rem; filter: drop-shadow(0 0 6px rgba(255, 210, 31, .55));
  animation: arcade-coin var(--d) steps(1) infinite, arcade-bob 1.6s steps(4) infinite alternate; animation-delay: var(--t); }
@keyframes arcade-coin { 0% { transform: scaleX(1); } 20% { transform: scaleX(.6); } 35% { transform: scaleX(.18); } 50% { transform: scaleX(.6); } 65% { transform: scaleX(1); } }

/* the pixel city */
.arcade-city { position: absolute; left: 0; right: 0; bottom: calc(var(--tabh) + env(safe-area-inset-bottom)); height: 26vh; }
.arcade-city svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.arcade-city::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 8rem; background: #0e0c2a; }
.arcade-scene .arcade-win { animation: arcade-win 5s steps(1) infinite; }
.arcade-scene .arcade-beacon { animation: arcade-twinkle 1.2s steps(1) infinite; }
@keyframes arcade-win { 60% { opacity: .12; } }

/* Blip the hopper, running along the street and jumping now and then */
.arcade-blip { position: absolute; left: 0; bottom: calc(var(--tabh) + env(safe-area-inset-bottom) + 2px); width: 2.5rem;
  filter: drop-shadow(0 0 8px rgba(54, 224, 90, .45)); animation: arcade-run 24s steps(240) infinite; animation-delay: -9s; }
.arcade-hop { animation: arcade-hop 3s steps(8) infinite; }
@keyframes arcade-run { from { transform: translateX(-3rem); } to { transform: translateX(calc(100vw + 1rem)); } }
@keyframes arcade-hop { 0%, 62%, 100% { transform: translateY(0); } 72% { transform: translateY(-1.6rem); } 80% { transform: translateY(-2rem); } 90% { transform: translateY(-.8rem); } }

/* the CRT: scanlines, a dark curved edge, and a faint bright band rolling down */
.arcade-crt { position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .26) 2px 3px),
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%); }
.arcade-crt::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22vh;
  background: linear-gradient(180deg, rgba(150, 190, 255, 0), rgba(150, 190, 255, .06), rgba(150, 190, 255, 0));
  animation: arcade-roll 8s linear infinite; }
@keyframes arcade-roll { from { transform: translateY(-25vh); } to { transform: translateY(110vh); } }

/* ---- the app ---- */
/* the title: pixel letters with a stepped 3D shadow and a white pixel shine */
html[data-theme="arcade"] .logo .l1, html[data-theme="arcade"] .logo .l2 { font-family: 'Press Start 2P', monospace; font-weight: 400; letter-spacing: 0;
  -webkit-text-fill-color: currentColor; line-height: 1.15; }
html[data-theme="arcade"] .logo:not(.small) .l1, html[data-theme="arcade"] .logo:not(.small) .l2 { display: block; margin: 0; position: relative; }
html[data-theme="arcade"] .logo:not(.small) .l1 { font-size: 1.85rem; color: #ffffff;
  text-shadow: 3px 3px 0 #2f8cff, 6px 6px 0 var(--ar-o), 0 0 18px rgba(111, 240, 255, .45); }
html[data-theme="arcade"] .logo:not(.small) .l2 { font-size: 2.45rem; color: #ffd21f; margin: .55rem 0 .2rem;
  text-shadow: 3px 3px 0 #f23a2e, 6px 6px 0 var(--ar-o), 0 0 22px rgba(255, 210, 31, .4); }
html[data-theme="arcade"] .logo:not(.small) .l2::after { content: ''; position: absolute; left: calc(50% - 4.2em * .5); top: .12em; width: 4px; height: 4px;
  background: #fff; box-shadow: 4px 0 0 #fff, 0 4px 0 rgba(255, 255, 255, .7); pointer-events: none; }
html[data-theme="arcade"] .logo.small .l1, html[data-theme="arcade"] .logo.small .l2 { font-size: .82rem; filter: none; text-shadow: 2px 2px 0 var(--ar-o); }
html[data-theme="arcade"] .logo.small .l1 { color: #fff; } html[data-theme="arcade"] .logo.small .l2 { color: #ffd21f; }
html[data-theme="arcade"] .logo .beta { border-radius: 0; font-family: 'Press Start 2P', monospace; font-size: .5rem; letter-spacing: .12em; padding: .3rem .45rem;
  color: #ffd21f; background: #1b1650; border: 0; box-shadow: 0 -2px 0 #ffd21f, 0 2px 0 #ffd21f, -2px 0 0 #ffd21f, 2px 0 0 #ffd21f;
  animation: arcade-blink 1.4s steps(1) infinite; }
@keyframes arcade-blink { 70% { opacity: .35; } }
/* pixel headings; body text (and players' names) stay in the normal readable font */
html[data-theme="arcade"] .title { font-family: 'Silkscreen', var(--display); font-weight: 700; letter-spacing: 0; text-shadow: 2px 2px 0 var(--ar-o), 0 0 14px rgba(111, 240, 255, .25); }
/* players' names inside headings keep the normal font and their own colour (no shadow showing through it) */
html[data-theme="arcade"] .title .pname { font-family: 'Outfit', system-ui, sans-serif; font-weight: 900; text-shadow: none; }
html[data-theme="arcade"] :is(.tag, .home .dim) { text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }

/* main buttons: a chunky pixel block, lit top, dark base, stepped outline and a block shadow underneath */
html[data-theme="arcade"] .btn:not(.ghost) { border-radius: 0; letter-spacing: .05em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hot) 55%, white) 0 4px, var(--hot) 4px calc(100% - 6px), color-mix(in srgb, var(--hot) 58%, black) calc(100% - 6px));
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .4);
  box-shadow: inset 4px 0 0 rgba(255, 255, 255, .2), inset -4px 0 0 rgba(0, 0, 0, .14),
    0 -3px 0 var(--ar-o), 0 3px 0 var(--ar-o), -3px 0 0 var(--ar-o), 3px 0 0 var(--ar-o), 0 9px 0 rgba(0, 0, 0, .42),
    0 10px 22px -6px color-mix(in srgb, var(--hot) 55%, transparent); }
html[data-theme="arcade"] .btn:not(.ghost):active { transform: translateY(5px);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .25), 0 -3px 0 var(--ar-o), 0 3px 0 var(--ar-o), -3px 0 0 var(--ar-o), 3px 0 0 var(--ar-o); }
html[data-theme="arcade"] .btn:not(.ghost):disabled { box-shadow: 0 -3px 0 var(--ar-o), 0 3px 0 var(--ar-o), -3px 0 0 var(--ar-o), 3px 0 0 var(--ar-o); }
html[data-theme="arcade"] .btn.gold:not(.ghost) { color: #2a1a00; text-shadow: 1px 1px 0 rgba(255, 255, 255, .45); }
html[data-theme="arcade"] .btn:not(.ghost):not(.small) { position: relative; overflow: visible; }
/* white pixel shine in the top-left corner */
html[data-theme="arcade"] .btn:not(.ghost):not(.small)::before { content: ''; position: absolute; left: 7px; top: 7px; width: 4px; height: 4px; pointer-events: none;
  background: #fff; box-shadow: 4px 0 0 #fff, 8px 0 0 rgba(255, 255, 255, .55), 0 4px 0 rgba(255, 255, 255, .75); }
/* two pixel "coin" studs on the right */
html[data-theme="arcade"] .btn:not(.ghost):not(.small)::after { content: ''; position: absolute; right: 9px; top: 50%; width: 4px; height: 4px; margin-top: -2px; pointer-events: none;
  background: rgba(255, 255, 255, .55); box-shadow: -7px 0 0 rgba(0, 0, 0, .22); }
html[data-theme="arcade"] .btn.ghost { border-radius: 0;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .1), inset 0 -3px 0 rgba(0, 0, 0, .25),
    0 -3px 0 var(--panel-edge), 0 3px 0 var(--panel-edge), -3px 0 0 var(--panel-edge), 3px 0 0 var(--panel-edge), 0 8px 0 rgba(0, 0, 0, .35); }

/* cards: a cabinet screen with a double stepped pixel border, faint scanlines and corner rivets */
html[data-theme="arcade"] :is(.panel, .sheetbox) { border: 0; border-radius: 0; position: relative; backdrop-filter: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 1px, rgba(255, 255, 255, 0) 1px 3px),
    linear-gradient(180deg, rgba(111, 240, 255, .07), rgba(111, 240, 255, 0) 40%, rgba(0, 0, 0, .1)), var(--panel);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .1), inset 0 -3px 0 rgba(0, 0, 0, .3),
    0 -3px 0 var(--panel-edge), 0 3px 0 var(--panel-edge), -3px 0 0 var(--panel-edge), 3px 0 0 var(--panel-edge),
    0 -6px 0 var(--ar-o), 0 6px 0 var(--ar-o), -6px 0 0 var(--ar-o), 6px 0 0 var(--ar-o),
    3px 3px 0 var(--ar-o), -3px 3px 0 var(--ar-o), 3px -3px 0 var(--ar-o), -3px -3px 0 var(--ar-o),
    0 14px 0 -2px rgba(0, 0, 0, .35), 0 0 26px rgba(90, 110, 255, .16); }
html[data-theme="arcade"] .panel::before { content: ''; position: absolute; inset: 5px; pointer-events: none;
  background: linear-gradient(#6ff0ff, #6ff0ff) left top / 3px 3px no-repeat, linear-gradient(#6ff0ff, #6ff0ff) right top / 3px 3px no-repeat,
    linear-gradient(#6ff0ff, #6ff0ff) left bottom / 3px 3px no-repeat, linear-gradient(#6ff0ff, #6ff0ff) right bottom / 3px 3px no-repeat;
  opacity: .55; }
html[data-theme="arcade"] :is(.sfeature, .passhead, .sbundle)::before { display: none; }
html[data-theme="arcade"] :is(.frow, .setgroup, .stat, .gcard, .pick, .styletile, .iconbtn, .mebtn, .vbtn, .rank, .dropbtn, .pbonus, .badgetile, .field) { border-radius: 4px; }
html[data-theme="arcade"] .abtn { border-radius: 4px; }

/* Head to Head subject tiles: game cartridges, a raised label and grip ridges along the bottom */
html[data-theme="arcade"] .topic { border: 0; border-radius: 0; overflow: visible; color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .3) 0 3px, rgba(0, 0, 0, 0) 3px 7px) left 10px bottom 7px / calc(100% - 20px) 7px no-repeat,
    linear-gradient(180deg, color-mix(in srgb, var(--sc) 55%, white) 0 4px, var(--sc) 4px calc(100% - 5px), color-mix(in srgb, var(--sc) 55%, black) calc(100% - 5px));
  box-shadow: inset 4px 0 0 rgba(255, 255, 255, .16), inset -4px 0 0 rgba(0, 0, 0, .14),
    0 -3px 0 var(--ar-o), 0 3px 0 var(--ar-o), -3px 0 0 var(--ar-o), 3px 0 0 var(--ar-o), 0 9px 0 rgba(0, 0, 0, .42); }
html:root[data-theme="arcade"] .topic::before { inset: 6px 6px 20px 6px; border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .2), inset 0 2px 0 2px rgba(255, 255, 255, .08); }
html[data-theme="arcade"] .topic::after { content: ''; position: absolute; right: 10px; top: -3px; width: 14px; height: 6px; pointer-events: none;
  background: var(--ar-o); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--sc) 40%, black); }
html[data-theme="arcade"] .topic :is(span, small) { position: relative; z-index: 1; text-shadow: 2px 2px 0 rgba(0, 0, 0, .4); }
html[data-theme="arcade"] .topic .tic { position: relative; z-index: 1; border-radius: 0; background: linear-gradient(180deg, #ffffff, #dfe4ff);
  box-shadow: 0 -2px 0 var(--ar-o), 0 2px 0 var(--ar-o), -2px 0 0 var(--ar-o), 2px 0 0 var(--ar-o), 0 5px 0 rgba(0, 0, 0, .3); }
html[data-theme="arcade"] .topicgrid { row-gap: 1rem; column-gap: .9rem; padding: .3rem .2rem; }

/* question subject chip, answer letters: square pixel blocks */
html[data-theme="arcade"] .qhead .chip.subj { border-radius: 0; }
html[data-theme="arcade"] .badge { border-radius: 0; font-family: 'Press Start 2P', monospace; font-size: .8rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--hot)) 50%, white) 0 3px, var(--c, var(--hot)) 3px calc(100% - 3px), color-mix(in srgb, var(--c, var(--hot)) 55%, black) calc(100% - 3px));
  box-shadow: 0 -2px 0 var(--ar-o), 0 2px 0 var(--ar-o), -2px 0 0 var(--ar-o), 2px 0 0 var(--ar-o); }

/* the bottom bar: a cabinet control deck, with a marquee of chasing lights along the top */
html[data-theme="arcade"] #tabbar { border-top: 0; overflow: visible;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 1px, rgba(255, 255, 255, 0) 1px 3px), linear-gradient(180deg, #221e5c, #120f33);
  box-shadow: 0 -3px 0 #4b47b8, 0 -6px 0 var(--ar-o), 0 -16px 24px -8px rgba(0, 0, 0, .6); }
html[data-theme="arcade"] #tabbar::before { content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 4px; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(90deg, #ffd21f 0 4px, transparent 4px 12px, #f23a2e 12px 16px, transparent 16px 24px, #2f8cff 24px 28px, transparent 28px 36px);
  filter: drop-shadow(0 0 3px rgba(255, 210, 31, .6)); animation: arcade-chase 1.2s steps(3) infinite; }
@keyframes arcade-chase { to { background-position: 36px 0; } }
html[data-theme="arcade"] #tabbar button.homebtn::before { background: linear-gradient(180deg, #221e5c, #1d1a52);
  box-shadow: 0 -3px 0 #4b47b8, 0 -6px 0 var(--ar-o); }
/* Home is a big round arcade push-button in a chrome bezel */
html[data-theme="arcade"] #tabbar .homeic {
  background: radial-gradient(circle at 35% 28%, #ff9a8f, var(--hot) 52%, #8a1410);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 rgba(0, 0, 0, .25), 0 0 0 2px var(--ar-o), 0 0 0 4px #c9cfe8, 0 0 0 5px var(--ar-o),
    0 6px 8px rgba(0, 0, 0, .45); }
html[data-theme="arcade"] #tabbar button.on:not(.homebtn) span { color: #ffd21f; text-shadow: 0 0 8px rgba(255, 210, 31, .5); }

/* scores read like an arcade hi-score table */
html[data-theme="arcade"] :is(.stat b, .me .pts, .pl .sc, .rank .pt) { color: #ffd21f; text-shadow: 2px 2px 0 var(--ar-o); }

/* the toast and sheets */
html[data-theme="arcade"] #toast { border-radius: 0; box-shadow: 0 -3px 0 #ffd21f, 0 3px 0 #ffd21f, -3px 0 0 #ffd21f, 3px 0 0 #ffd21f, 0 8px 0 rgba(0, 0, 0, .4); }

@media (prefers-reduced-motion: reduce) {
  .arcade-scene *, .arcade-scene *::before, .arcade-scene *::after, html[data-theme="arcade"] #tabbar::before, html[data-theme="arcade"] .logo .beta { animation: none !important; }
  .arcade-ship, .arcade-comet, .arcade-crt::after { display: none; }
  .arcade-blip { transform: translateX(62vw); }
}

/* ---- Arcade bundle: chat bubble "Arcade Pixel" (works in every theme) ---- */
html body .bubble.bub-ar.bub-ar { border: 0; border-radius: 0; color: #fff7c2; margin: 6px;
  background: linear-gradient(180deg, #2c2878 0 3px, #1d1a52 3px calc(100% - 3px), #110e36 calc(100% - 3px));
  box-shadow: 0 -3px 0 #ffd21f, 0 3px 0 #ffd21f, -3px 0 0 #ffd21f, 3px 0 0 #ffd21f,
    0 -6px 0 #1b1033, 0 6px 0 #1b1033, -6px 0 0 #1b1033, 6px 0 0 #1b1033,
    3px 3px 0 #1b1033, -3px 3px 0 #1b1033, 3px -3px 0 #1b1033, -3px -3px 0 #1b1033, 0 10px 0 -2px rgba(0, 0, 0, .3); }
html body .bubble.bub-ar.bub-ar::before { border-radius: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, rgba(255, 255, 255, 0) 1px 3px); }
html body .bubble.bub-ar.bub-ar small { color: #ffd21f; opacity: .8; }

/* ---- Arcade bundle: answer buttons "Arcade Blocks" (works in every theme) ---- */
body.btns-ar .abtn, .btns-ar-demo { position: relative; border: 0 !important; border-radius: 0 !important; color: #fff !important; text-shadow: 2px 2px 0 rgba(0, 0, 0, .45);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 52%, white) 0 4px, var(--c) 4px calc(100% - 6px), color-mix(in srgb, var(--c) 55%, black) calc(100% - 6px)) !important;
  box-shadow: inset 4px 0 0 rgba(255, 255, 255, .18), inset -4px 0 0 rgba(0, 0, 0, .14),
    0 -3px 0 #1b1033, 0 3px 0 #1b1033, -3px 0 0 #1b1033, 3px 0 0 #1b1033, 0 9px 0 rgba(0, 0, 0, .4) !important; }
body.btns-ar .abtn:active { transform: translateY(5px);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .25), 0 -3px 0 #1b1033, 0 3px 0 #1b1033, -3px 0 0 #1b1033, 3px 0 0 #1b1033 !important; }
body.btns-ar .abtn::before, .btns-ar-demo::before { content: ''; position: absolute; inset: auto; left: 6px; top: 6px; width: 4px; height: 4px; border-radius: 0; pointer-events: none;
  background: #fff; box-shadow: 4px 0 0 #fff, 0 4px 0 rgba(255, 255, 255, .7); }
.btns-ar-demo::before { left: 4px; top: 4px; width: 3px; height: 3px; box-shadow: 3px 0 0 #fff, 0 3px 0 rgba(255, 255, 255, .7); }
body.btns-ar .abtn .badge { border-radius: 0 !important; color: #ffd21f; font-family: 'Press Start 2P', monospace; font-size: .8rem;
  background: #1b1033 !important; text-shadow: none;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .18), 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff !important; }
.btns-ar-demo { font-family: 'Press Start 2P', monospace; font-size: .8rem; }
/* the opening screen: the pixel title stacked and sized to the phone (at the normal splash size it was wider than
   the screen, so phones zoomed the whole page out) */
html[data-theme="arcade"] #splash .logo .l1, html[data-theme="arcade"] #splash .logo .l2 { display: block; text-align: center; font-size: min(1.85rem, 8.5vw); }
html[data-theme="arcade"] #splash .logo .l2 { font-size: min(2.45rem, 11vw); }
/* every icon is pixel art in Arcade (filter made in theme-arcade.js; its squares are in the icon's own drawing units,
   so big and small icons get the same number of pixels across) */
html[data-theme="arcade"] :is(svg.ic, svg.tic, svg.tabic, svg.ic3l) { filter: url(#arcPix) drop-shadow(2px 2px 0 rgba(0, 0, 0, .45)); image-rendering: pixelated; }
html[data-theme="arcade"] :is(svg.glyph, .glyph svg, .hbub-ball svg, .topic .tic) { filter: url(#arcPix) drop-shadow(3px 3px 0 rgba(0, 0, 0, .45)); }
html[data-theme="arcade"] #tabbar svg.tabic { filter: url(#arcPix) drop-shadow(2px 2px 0 rgba(0, 0, 0, .45)); }
html[data-theme="arcade"] svg.ic3l.ic3l { filter: url(#arcPixLine) drop-shadow(2px 2px 0 rgba(0, 0, 0, .45)); }   /* line icons: their own finer grid */
