/* =========================================================
   tofostudios.se, the lab: modern industrial, like the game's interface.
   Loaded after site.css. Light by default (bone and white sheets, black
   ink, signal yellow and acid lime); html.dark (the header button,
   theme.js) turns every floor dark. Tiles are the game's Data Grid (dark
   glass, a white frame), the block its Data Core (light-blue glass).
   ========================================================= */
:root {
  --y: #ffe600; --lime: #c6ff1a; --bone: #eeede6; --paper: #f7f7f3; --ink: #0a0b0f;
  --bg: #eeede6; --tx: #0a0b0f; --tx2: #3a3c44; --tx3: #6b6e78; --line: rgba(10, 11, 15, .16);
  --au: #0a0b0f; --pk: #ff3d8c; --pk2: #ff3d8c; --cy: #1aa7d8; --mn: #3cff9a;
  --grid: rgba(10, 11, 15, .06);
}
html.dark { --bg: #07080b; --tx: #ecebe4; --tx2: #a4a6ae; --tx3: #6b6e78; --line: rgba(236, 235, 228, .16); --au: #ffe600; --grid: rgba(236, 235, 228, .05); }
body { background: var(--bg); color: var(--tx); }
:focus-visible { outline-color: var(--lime); }

/* the header: always a black strip */
.hud, .hud.solid { background: var(--ink) !important; border-bottom: 1px solid rgba(236, 235, 228, .14); color: #ecebe4; }
.theme-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(236, 235, 228, .3); }
.theme-btn i { width: 16px; height: 16px; border-radius: 50%; background: var(--lime); box-shadow: inset -6px -3px 0 var(--ink); }
html.dark .theme-btn i { background: var(--y); box-shadow: none; }
.grid-btn i { background: #ecebe4 !important; }
.rail::before { border-right-color: var(--line) !important; }
.rail i { background: var(--bg) !important; border-color: var(--tx3) !important; }
.rail a.on i { background: var(--lime) !important; border-color: var(--ink) !important; box-shadow: none !important; }
.rail span { font-family: var(--mono); font-weight: 700; font-size: 11px; color: var(--tx2) !important; }
.rail a.on span { color: var(--tx) !important; }

/* buttons: yellow slabs; play is acid lime; the plain one is black (bone in the dark) */
.slab::after { background: var(--y) !important; box-shadow: 0 6px 0 #8a7c00, 0 18px 30px rgba(0, 0, 0, .25) !important; }
.slab, .slab.gold { --fg: var(--ink); color: var(--ink) !important; }
.slab.pink::after { background: var(--lime) !important; box-shadow: 0 6px 0 #5e7a00, 0 18px 30px rgba(0, 0, 0, .25) !important; }
.slab.pink { color: var(--ink) !important; }
.slab.white::after { background: var(--ink) !important; box-shadow: 0 6px 0 #44464e, 0 18px 30px rgba(0, 0, 0, .25) !important; }
.slab.white { color: #ecebe4 !important; }
html.dark .slab.white::after { background: var(--bone) !important; box-shadow: 0 6px 0 #8a887e !important; }
html.dark .slab.white { color: var(--ink) !important; }
.slab b { font-style: normal !important; }

/* the start: a facility floor, not space */
.f0 { background: var(--bone) !important; }
html.dark .f0 { background: #07080b !important; }
.f0::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.f0-in { z-index: 1; }
.f0-in::before { content: 'Qybi // a puzzle game about one stubborn block // season 1 live'; position: absolute; left: 0; top: -40px; font: 700 11px/1 var(--mono); letter-spacing: .22em; color: var(--tx3); }
.f0-in::after { content: ''; position: absolute; right: 0; top: -44px; width: 140px; height: 16px; opacity: .6;
  background: repeating-linear-gradient(90deg, var(--tx) 0 1px, transparent 1px 3px, var(--tx) 3px 5px, transparent 5px 6px, var(--tx) 6px 7px, transparent 7px 10px); }
.logo .L { filter: brightness(0) !important; }
html.dark .logo .L { filter: none !important; }
.logo .I svg { filter: drop-shadow(0 10px 22px rgba(30, 160, 220, .45)) !important; }
.dust i { background: var(--lime) !important; }
.tag { font-style: normal !important; color: var(--tx); }
.tag em { color: var(--ink) !important; background: var(--lime); padding: 0 .18em; }
.ticket { filter: none !important; }
.ticket .tk-s { background: var(--lime) !important; color: var(--ink) !important; }
.ticket .tk-t { background: var(--ink) !important; color: #ecebe4 !important; }
.f0-caption { color: var(--tx2) !important; }
.f0-caption i { background: var(--lime) !important; }

/* the ticker: a data feed between hazard rails, not a pink belt */
.belt { transform: none !important; margin: 0 !important; background: var(--ink) !important; border: 0 !important; }
.belt::before { animation: none !important; background: repeating-linear-gradient(-45deg, var(--y) 0 8px, var(--ink) 8px 16px) top / 100% 6px no-repeat, repeating-linear-gradient(-45deg, var(--y) 0 8px, var(--ink) 8px 16px) bottom / 100% 6px no-repeat !important; }
.belt-in { counter-reset: tk; }
.belt-in span { counter-increment: tk; gap: 14px !important; padding: 20px 18px !important; font: 800 clamp(24px, 3.2vw, 40px)/1 var(--disp) !important; font-style: normal !important; color: #ecebe4 !important; }
.belt-in span::before { content: counter(tk, decimal-leading-zero); font: 700 11px/1 var(--mono); color: var(--ink); background: var(--lime); padding: 3px 5px; letter-spacing: .1em; }
.belt-in span::after { content: '//' !important; width: auto !important; height: auto !important; clip-path: none !important; background: none !important; font: 700 16px/1 var(--mono); color: var(--y); margin-left: 16px; }
.belt-in span:nth-child(5n)::before { background: var(--y); }

/* floor headers: a codex tag, a huge upright name, a barcode */
.floor::before { height: 10px !important; background: repeating-linear-gradient(-45deg, var(--y) 0 10px, var(--ink) 10px 20px) !important; opacity: .9; }
.fh-no { font-style: normal !important; -webkit-text-stroke: 2px var(--line) !important; color: transparent !important; }
.fh h2 { font-style: normal !important; letter-spacing: -.005em; color: var(--tx); }
.fh::after { content: ''; position: absolute; right: 0; top: clamp(30px, 6vw, 80px); width: 120px; height: 14px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--tx) 0 1px, transparent 1px 3px, var(--tx) 3px 5px, transparent 5px 6px, var(--tx) 6px 7px, transparent 7px 10px); }
.fh h2::before { content: '// FLOOR ' attr(data-no); position: absolute; left: 0; top: -30px; padding: 3px 6px; font: 700 12px/1 var(--mono); letter-spacing: .24em; color: var(--ink); background: var(--lime); }

/* the floors, light: white, black, yellow, white, black, lime */
.f1 { background: var(--paper) !important; }
.f1::after { opacity: 1 !important; background: none !important; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px) !important; background-size: 26px 26px !important; }
.f2, .f5 { background: var(--ink) !important; --tx: #ecebe4; --tx2: #a4a6ae; --tx3: #6b6e78; --line: rgba(236, 235, 228, .16); color: #ecebe4; }
.f3 { background: var(--y) !important; --tx: #0a0b0f; --tx2: #2a2a20; --tx3: #4a4a3a; --line: rgba(10, 11, 15, .2); }
.f3 .fh h2::before { background: var(--ink); color: var(--y); }
.f4 { background: var(--paper) !important; }
.f6 { background: var(--lime) !important; --tx: #0a0b0f; --tx2: #2a3a00; color: var(--ink); }
.f6 .end-k { color: var(--ink) !important; }
.f6 .slab.pink::after { background: var(--ink) !important; box-shadow: 0 6px 0 #44464e !important; }
.f6 .slab.pink { color: var(--lime) !important; }
.foot { background: var(--ink); color: #a4a6ae; }
/* dark: every floor dark, the colour kept for tags and lines */
html.dark :is(.f1, .f4) { background: #101116 !important; }
html.dark .f3 { background: #121208 !important; --tx: #ecebe4; --tx2: #cfcc9a; --tx3: #8a8860; --line: rgba(255, 230, 0, .2); }
html.dark .f3 .fh h2::before { background: var(--y); color: var(--ink); }
html.dark .f6 { background: #0c1004 !important; --tx: #ecebe4; --tx2: #b8c890; color: #ecebe4; }
html.dark .f6 .end-k { color: var(--lime) !important; }
html.dark .f6 .slab.pink::after { background: var(--lime) !important; }
html.dark .f6 .slab.pink { color: var(--ink) !important; }
.floor p, .floor dd, .floor dt { color: var(--tx2); }
.floor .big, .floor h3 { color: var(--tx); }

/* 02 · Pick a floor: file tabs and a specimen frame */
.modes button { font-style: normal !important; color: var(--tx3); }
.modes button[aria-selected="true"] { color: var(--tx) !important; }
.modes b { font-style: normal !important; font-family: var(--mono) !important; font-weight: 700 !important; -webkit-text-stroke: 0 !important; color: var(--tx3) !important; }
.modes button::after { background: var(--lime) !important; height: 6px !important; }
.modes button[aria-selected="true"] b { color: var(--ink) !important; background: var(--lime); padding: 2px 5px; align-self: flex-start; }
.mode-shot::before { border-color: var(--lime) !important; }
.mode-shot::after { content: 'In the game // screenshot'; position: absolute; left: 0; top: -22px; font: 700 10px/1 var(--mono); letter-spacing: .24em; color: var(--lime); }
.mode-text h3 { font-style: normal !important; }
.mode-facts { color: var(--lime) !important; }
.mode-facts span::before { background: var(--y) !important; transform: none !important; }

/* ---------- the 3D world: Data Grid tiles, the Data Core block ---------- */
.tw-t { background-color: rgba(18, 24, 40, .94) !important; background-image: linear-gradient(rgba(240, 245, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(240, 245, 255, .14) 1px, transparent 1px) !important; background-size: 25% 25% !important;
  box-shadow: inset 0 0 0 2px rgba(240, 245, 255, .9), inset 0 0 10px rgba(120, 200, 255, .25) !important; }
.tw-s, .tw-n, .tw-e, .tw-w { background: rgba(12, 16, 28, .95) !important; box-shadow: inset 0 2px 0 rgba(240, 245, 255, .7); }
.tw-t.goal { background: #05060a !important; background-image: none !important; box-shadow: inset 0 0 0 4px rgba(240, 245, 255, .9), inset 0 0 22px 6px rgba(198, 255, 26, .75) !important; }
.tw-t.goal.lit { box-shadow: inset 0 0 0 4px #fff, inset 0 0 32px 14px rgba(198, 255, 26, 1) !important; }
.tw-b .top { background: rgba(191, 234, 255, .62) !important; box-shadow: inset 0 0 0 2px #e8fbff, 0 0 26px rgba(95, 200, 255, .55) !important; }
.tw-b :is(.w, .s, .n, .e) { box-shadow: inset 0 0 0 1.5px rgba(232, 251, 255, .9) !important;
  background: repeating-linear-gradient(0deg, rgba(232, 251, 255, .18) 0 1px, transparent 1px 7px), linear-gradient(0deg, rgba(95, 200, 255, .75), rgba(95, 200, 255, .3)) !important; }
.tw-b :is(.s, .n) { background: repeating-linear-gradient(0deg, rgba(232, 251, 255, .14) 0 1px, transparent 1px 7px), linear-gradient(0deg, rgba(42, 143, 200, .8), rgba(42, 143, 200, .35)) !important; }
.tw-b.white .top { background: rgba(240, 245, 255, .85) !important; }
.tw-b.glow .top { box-shadow: inset 0 0 0 2px #e8fbff, 0 0 44px 12px rgba(95, 200, 255, .7) !important; }
.tw-l.num { font-style: normal !important; -webkit-text-stroke: 1.5px var(--tx) !important; }
.tw-l.num.on { color: var(--lime) !important; -webkit-text-stroke: 1.5px var(--ink) !important; text-shadow: none !important; }
.tw-l.tag { font-style: normal !important; background: var(--ink) !important; color: var(--y) !important; box-shadow: 0 5px 0 #44464e !important; }
.tw-l.tag.soon { background: var(--y) !important; color: var(--ink) !important; box-shadow: 0 5px 0 #8a7c00 !important; }

/* ---------- special tiles in the data look: each still reads at a glance ---------- */
/* water: a hologram of data-water, streams of light running across a deep cyan pane */
.tw-t.water { background-color: rgba(8, 70, 110, .78) !important; background-size: auto !important;
  background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(120, 220, 255, .28) 7px 8px), linear-gradient(135deg, rgba(60, 190, 255, .45), rgba(20, 90, 170, .2)) !important;
  box-shadow: inset 0 0 0 1.5px rgba(160, 235, 255, .75), inset 0 0 18px rgba(60, 190, 255, .55) !important; animation: dstream 2.6s linear infinite; }
.tw-t.water::after { background: repeating-linear-gradient(0deg, transparent 0 10px, rgba(200, 245, 255, .55) 10px 11px, transparent 11px 22px) !important; background-size: 100% 22px !important; animation: dflow 1.6s linear infinite !important; opacity: .7; }
.tw-t.water .tw-w, .tw-t.water .tw-s, .tw-t.water .tw-e, .tw-t.water .tw-n { background: rgba(10, 60, 100, .85) !important; box-shadow: inset 0 2px 0 rgba(120, 220, 255, .8) !important; }
@keyframes dstream { to { background-position: 16px 0, 0 0; } }
@keyframes dflow { to { background-position: 0 22px; } }
/* glass: amber glass, a hard glint and a crack, never mistaken for floor */
.tw-t.glass { background-color: rgba(255, 150, 40, .82) !important; background-size: auto !important;
  background-image: linear-gradient(135deg, rgba(255, 220, 160, .9), rgba(255, 140, 30, .5)) !important;
  box-shadow: inset 0 0 0 2px #ffe2b8, inset 0 0 14px rgba(255, 120, 0, .6), 0 0 18px rgba(255, 150, 40, .35) !important; }
.tw-t.glass::after { opacity: 1 !important; }
.tw-t.glass .tw-w, .tw-t.glass .tw-s, .tw-t.glass .tw-e, .tw-t.glass .tw-n { background: rgba(200, 100, 20, .9) !important; box-shadow: inset 0 2px 0 #ffe2b8 !important; }
/* ice: frosted white-cyan, a sweeping glint */
.tw-t.k-i { background-color: rgba(220, 245, 255, .9) !important; background-size: auto !important;
  background-image: linear-gradient(135deg, #f4fdff, #a9e6ff) !important;
  box-shadow: inset 0 0 0 2px #ffffff, inset 0 0 16px rgba(120, 210, 255, .7), 0 0 16px rgba(150, 225, 255, .35) !important; }
.tw-t.k-i::after { opacity: 1; }
.tw-t.k-i .tw-w, .tw-t.k-i .tw-s, .tw-t.k-i .tw-e, .tw-t.k-i .tw-n { background: #7cc3e6 !important; box-shadow: inset 0 2px 0 #ffffff !important; }
/* covered hole: hazard plate */
.tw-t.cover { background: repeating-linear-gradient(45deg, #ffe600 0 9px, #0a0b0f 9px 18px) !important; box-shadow: inset 0 0 0 2px rgba(240, 245, 255, .9) !important; }
/* belts and the portal sit on dark plates of their own colour */
.tw-t.k-b { background-color: #1a1d2a !important; }
.tw-t.k-m { box-shadow: inset 0 0 0 3px var(--lime) !important; }
.tw-t.k-m.on { background-color: rgba(198, 255, 26, .3) !important; box-shadow: inset 0 0 0 3px var(--lime), 0 0 26px rgba(198, 255, 26, .55) !important; }
.tw-t.hl { box-shadow: inset 0 0 0 3px var(--lime), 0 0 26px rgba(198, 255, 26, .6) !important; }


/* =========================================================
   Industrial, all the way down: the light floors are concrete and steel, not white paper. Each floor
   carries a stencilled word up its side, survey linework, hatching, a ruler and a riveted plate;
   the seam under the start is crossed by caution tape and a race tape.
   ========================================================= */
:root { --bone: #e2dfd1; --paper: #d9d6c7; --bg: #e2dfd1; --steel: #c9c6b6; }
html.dark { --bg: #07080b; }
/* concrete: fine grain, major survey lines every 160px with a cross at each meeting */
.f0, .f1, .f4 { background-color: var(--bone) !important; }
.f1 { background-color: var(--paper) !important; }
:is(.f0, .f1, .f4)::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 1 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath d='M0 .5H160M.5 0V160' stroke='%230a0b0f' stroke-opacity='.1'/%3E%3Cpath d='M-7 .5H7M.5-7V7' stroke='%230a0b0f' stroke-opacity='.45' stroke-width='1.5'/%3E%3Cpath d='M80 .5h0M40 .5h1M120 .5h1M.5 40v1M.5 80v1M.5 120v1' stroke='%230a0b0f' stroke-opacity='.3' stroke-width='2'/%3E%3C/svg%3E") !important;
  background-size: 180px 180px, 160px 160px !important; }
html.dark :is(.f0, .f1, .f4)::after { filter: invert(1); opacity: .55 !important; }
.f3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E") !important; }

/* the dressing, behind the floor's content */
.floor { isolation: isolate; }
.ind { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; color: var(--tx); }
.ind-v { position: absolute; left: -.08em; top: 6%; writing-mode: vertical-rl; transform: rotate(180deg); font: 800 clamp(110px, 15vw, 250px)/.78 var(--disp); font-style: normal;
  text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; color: currentColor; opacity: .07; }
.ind-topo { position: absolute; right: -8%; bottom: -14%; width: 70%; height: 92%; background: currentColor; opacity: .1;
  -webkit-mask: url(/assets/img/topo.svg) center / cover no-repeat; mask: url(/assets/img/topo.svg) center / cover no-repeat; }
.f1 .ind-topo, .f5 .ind-topo { right: auto; left: 8%; transform: scaleX(-1); }
.ind-hatch { position: absolute; left: 0; bottom: 0; width: clamp(150px, 24vw, 360px); height: clamp(70px, 9vw, 120px); opacity: .16;
  background: repeating-linear-gradient(-45deg, currentColor 0 3px, transparent 3px 14px); }
.ind-hatch::after { content: ''; position: absolute; right: -60px; top: 0; width: 60px; height: 100%; background: repeating-linear-gradient(-45deg, currentColor 0 3px, transparent 3px 14px); -webkit-mask: linear-gradient(90deg, #000, transparent); mask: linear-gradient(90deg, #000, transparent); }
.ind-rule { position: absolute; right: clamp(56px, 6vw, 90px); top: 14%; bottom: 14%; width: 26px; border-right: 1.5px solid currentColor; opacity: .32;
  background: repeating-linear-gradient(180deg, currentColor 0 1.5px, transparent 1.5px 12px) right / 9px 100% no-repeat, repeating-linear-gradient(180deg, currentColor 0 2px, transparent 2px 60px) right / 20px 100% no-repeat; }
.ind-plate { position: absolute; right: clamp(56px, 6vw, 90px); bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 7px 26px 7px 22px;
  border: 1.5px solid currentColor; font: 700 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: currentColor; opacity: .6;
  background: radial-gradient(circle, currentColor 0 2.2px, transparent 2.6px) 7px 50% / 6px 6px no-repeat, radial-gradient(circle, currentColor 0 2.2px, transparent 2.6px) calc(100% - 7px) 50% / 6px 6px no-repeat; }
.ind-plate b { padding: 3px 6px; background: currentColor; }
.ind-plate b { color: var(--bg); }
.f3 .ind-plate b, .f6 .ind-plate b { color: var(--y); }
.ind-sq { position: absolute; left: 18%; top: 12%; width: 12px; height: 12px; background: #36e8ff; box-shadow: 46vw 52vh 0 -2px var(--lime), 70vw 8vh 0 -3px #ff3d8c; }
.f3 .ind-sq { background: #000; }
@media (max-width: 760px) { .ind-rule, .ind-plate { display: none; } .ind-v { font-size: 34vw; opacity: .06; } .ind-topo { width: 120%; } }

/* content panels: steel plates with a hard shadow instead of hairlines on paper */
.readout { padding: 14px 18px !important; border: 2px solid var(--ink) !important; background: var(--ink); box-shadow: 6px 6px 0 rgba(10, 11, 15, .25); }
.readout dt { color: #8f8d80 !important; }
.readout dd { color: var(--lime) !important; font-style: normal !important; }
html.dark .readout { border-color: rgba(236, 235, 228, .3) !important; }
.plats a, .plats div { position: relative; padding: 16px 16px 14px !important; border: 2px solid var(--ink) !important; border-top-width: 10px !important; background: var(--steel); box-shadow: 6px 6px 0 var(--ink); }
.plats .on a { border-top-color: var(--ink) !important; background: var(--bone); background-image: linear-gradient(90deg, var(--lime) 0 100%) !important; background-size: 100% 6px !important; background-repeat: no-repeat !important; }
.plats li:not(.on) div { background-image: repeating-linear-gradient(-45deg, rgba(10, 11, 15, .08) 0 3px, transparent 3px 12px); }
.plats b { font-style: normal !important; color: var(--ink); }
.plats span { color: #2a2a22 !important; }
.plats em { border-color: var(--ink) !important; color: var(--ink) !important; }
.plats .on em { background: var(--lime) !important; color: var(--ink) !important; }
html.dark .plats a, html.dark .plats div { background: #16171c; border-color: rgba(236, 235, 228, .3) !important; box-shadow: 6px 6px 0 #000; }
html.dark .plats b, html.dark .plats em { color: #ecebe4 !important; } html.dark .plats span { color: #a4a6ae !important; }
.tricks li { border-bottom: 2px solid rgba(10, 11, 15, .85) !important; }
.tricks b { font-style: normal !important; }
.tricks li::before { border-radius: 0; }
.f1-copy .big { font-family: var(--disp); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; }

/* ---- the tapes ---- */
.belt { display: none !important; }
.tapes { position: relative; z-index: 5; height: 0; pointer-events: none; }
.tape { position: absolute; left: -10vw; width: 120vw; overflow: hidden; border-block: 3px solid #000; box-shadow: 0 16px 34px rgba(0, 0, 0, .3); }
.tape-in { display: flex; align-items: center; width: max-content; animation: tapeRun 42s linear infinite; }
@keyframes tapeRun { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-in { animation: none; } }
/* caution tape: signal yellow between hazard edges, the moves in big black stencil */
.tape.warn { top: -74px; transform: rotate(-3.4deg); background: var(--y);
  background-image: repeating-linear-gradient(-45deg, #000 0 16px, transparent 16px 32px), repeating-linear-gradient(-45deg, #000 0 16px, transparent 16px 32px), linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 35%, rgba(0, 0, 0, .08));
  background-size: 100% 13px, 100% 13px, 100% 100%; background-position: top, bottom, 0 0; background-repeat: no-repeat; padding: 13px 0; }
.tape.warn span { display: flex; align-items: center; gap: 18px; padding: 20px 26px 16px; font: 800 clamp(44px, 5.4vw, 80px)/.86 var(--disp); font-style: normal; text-transform: uppercase; color: #000; letter-spacing: .005em; white-space: nowrap; }
.tape.warn span i { font: 700 13px/1 var(--mono); font-style: normal; letter-spacing: .08em; color: var(--y); background: #000; padding: 4px 6px; transform: translateY(-.6em); }
.tape.warn span::after { content: '//'; margin-left: 26px; font: 800 .55em/1 var(--mono); color: #000; opacity: .55; }
/* race tape: black, timing like a lap board, chequered flags between */
.tape.race { top: 30px; transform: rotate(3deg); background: #0a0b0f; border-color: #0a0b0f; padding: 0; }
.tape.race .tape-in { animation-duration: 52s; animation-direction: reverse; }
.tape.race span { display: flex; align-items: baseline; gap: 10px; padding: 16px 22px 14px; font: 800 clamp(26px, 2.8vw, 40px)/1 var(--disp); font-style: normal; text-transform: uppercase; color: #ecebe4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tape.race span b { font: 700 12px/1 var(--mono); letter-spacing: .14em; color: #8f8d80; }
.tape.race .pb { color: #000; background: var(--lime); padding: 6px 12px 4px; margin: 0 6px; }
.tape.race .dl.up { color: #ff3d8c; } .tape.race .dl.dn { color: var(--lime); }
.tape.race .fin { color: var(--y); }
.chq { width: 30px; height: 30px; flex: 0 0 30px; background: linear-gradient(-45deg, #ffe600 25%, #0a0b0f 25% 50%, #ffe600 50% 75%, #0a0b0f 75%) 0 0 / 15px 15px; border: 2px solid #ffe600; }
.f1 { padding-top: clamp(130px, 14vw, 190px) !important; }
@media (max-width: 760px) { .tape.warn { top: -50px; } .tape.race { top: 34px; } .f1 { padding-top: 120px !important; } }
#main { overflow-x: clip; }
.f2 .ind-plate b, .f5 .ind-plate b { color: #0a0b0f; }
html.dark .plats .on em { color: #0a0b0f !important; }


/* ---- the dressing, tidier: no ruler by the floor rail, the plate sits on the hatching, the word starts low ---- */
.ind-rule { display: none !important; }
.ind-v { top: auto !important; bottom: 3%; }
.ind-plate { right: auto !important; left: clamp(16px, 3vw, 40px); bottom: clamp(20px, 3vw, 34px) !important; background-color: var(--bg); opacity: .8 !important; }
.f2 .ind-plate, .f5 .ind-plate { background-color: #0a0b0f; }
.f3 .ind-plate { background-color: var(--y); }
.f6 .ind-plate { background-color: var(--lime); }
html.dark .ind-plate { background-color: #0a0b0f; }

/* ---- the finish: lime, but a racing floor like the rest: grain, chequered finish lines, a lap board ---- */
.f6 { background-color: var(--lime) !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E") !important; color: var(--ink); }
.f6::before { height: 30px !important; opacity: 1 !important; background: linear-gradient(-45deg, #ffe600 25%, #0a0b0f 25% 50%, #ffe600 50% 75%, #0a0b0f 75%) 0 0 / 30px 30px !important; animation: hazRunS 1.8s linear infinite; border-bottom: 3px solid #0a0b0f; }
.f6::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(-45deg, #ffe600 25%, #0a0b0f 25% 50%, #ffe600 50% 75%, #0a0b0f 75%) 0 0 / 30px 30px; animation: hazRunS 1.8s linear infinite reverse; border-top: 3px solid #0a0b0f; }
.f6 .end-k { padding: 5px 10px; background: var(--ink); color: var(--lime) !important; }
.f6 .end-h { font-style: normal !important; }
.board6 { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: min(100%, 1100px); margin: clamp(40px, 6vw, 70px) auto 50px; padding: 0; list-style: none;
  border: 3px solid var(--ink); background: var(--ink); box-shadow: 8px 8px 0 rgba(10, 11, 15, .35); text-align: left; }
.board6 li { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; border-right: 2px solid rgba(198, 255, 26, .25); }
.board6 li:last-child { border-right: 0; }
.board6 b { font: 800 clamp(26px, 2.6vw, 38px)/1 var(--disp); text-transform: uppercase; color: var(--lime); }
.board6 b::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 10px; background: linear-gradient(-45deg, #ffe600 25%, #0a0b0f 25% 50%, #ffe600 50% 75%, #0a0b0f 75%) 0 0 / 8px 8px; border: 1px solid #ecebe4; vertical-align: .3em; }
.board6 span { font: 600 14px/1.4 var(--sans, system-ui); color: #cfcdc0; }
@media (max-width: 760px) { .board6 { grid-template-columns: 1fr 1fr; } .board6 li:nth-child(2) { border-right: 0; } .board6 li:nth-child(-n+2) { border-bottom: 2px solid rgba(198, 255, 26, .25); } }
html.dark .f6 { background-color: #0c1004 !important; }
html.dark .board6 { border-color: rgba(198, 255, 26, .4); }

/* ---- the race tape: words about the game, small labels before them ---- */
.tape.race span { gap: 12px !important; font-size: clamp(22px, 2.3vw, 34px) !important; }
.tape.race span b { color: var(--lime) !important; }

/* ---- the corner block: rolls with the scroll, drops into the pit, then takes you back up ---- */
.roller { position: fixed; z-index: 45; right: 14px; bottom: 12px; width: 200px; height: 90px; padding: 0; border: 0; background: none; cursor: pointer; }
.roller svg { width: 100%; height: 100%; overflow: visible; }
.roller .rt { fill: #12131a; stroke: #ecebe4; stroke-width: 1; }
.roller .rp { fill: #000; }
.roller .rh { fill: var(--y); }
.roller polygon { fill: #5fc8ff; stroke: #0a0b0f; stroke-width: 1.6; stroke-linejoin: round; }
.roller line { stroke: #0a0b0f; stroke-width: 1.2; opacity: .55; }
.roller-t { position: absolute; right: 18px; bottom: 44px; padding: 6px 10px 5px; background: var(--ink); color: var(--lime); border: 2px solid var(--lime); font: 800 15px/1 var(--disp); letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; pointer-events: none; }
.roller-t i { font-style: normal; }
.roller.done .roller-t { opacity: 1; transform: none; }
.roller.done .rp { fill: #1b2400; }
.roller.done .rh { fill: var(--lime); }
.roller:hover .roller-t, .roller:focus-visible .roller-t { opacity: 1; transform: none; }
@media (max-width: 760px) { .roller { width: 150px; height: 68px; right: 8px; bottom: 8px; } .roller-t { bottom: 34px; font-size: 13px; } }
.ind-v { left: .04em !important; }
.roller { width: 236px; height: 106px; }
.roller-t { bottom: 52px; right: 22px; }
@media (min-width: 761px) { .foot { padding-right: 270px !important; } }
@media (max-width: 760px) { .roller { width: 150px; height: 68px; } .roller-t { bottom: 34px; right: 14px; } .foot { padding-bottom: 84px !important; } }
.f6 .ind-plate b { background: #0a0b0f !important; color: var(--lime) !important; }


/* ---- the shaft: a hazard-striped line beside the floor rail, floor marks, and the hole at the bottom.
   The block falls down it in 3D (site.js); the hole is the button back to the top ---- */
.roller { display: none !important; }
.rail { right: 92px !important; }
.shaft { position: fixed; z-index: 44; right: 14px; top: 96px; bottom: 10px; width: 66px; pointer-events: none; }
.sh-line { position: absolute; left: 50%; top: 0; bottom: 70px; width: 4px; margin-left: -2px; opacity: .85;
  background: repeating-linear-gradient(180deg, #ffe600 0 10px, #0a0b0f 10px 20px); box-shadow: 0 0 0 1px rgba(10, 11, 15, .5); }
.sh-marks { position: absolute; left: 0; right: 0; top: 0; }
.sh-marks i { position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: #0a0b0f; box-shadow: 0 0 0 1px rgba(236, 235, 228, .5); }
.sh-marks b { position: absolute; right: 22px; top: -7px; padding: 2px 3px; background: #0a0b0f; color: #ffe600; font: 700 9px/1 var(--mono); letter-spacing: .08em; }
.sh-pit { position: absolute; left: -4px; right: -4px; bottom: 0; height: 92px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
.sh-w { position: absolute; inset: 0; overflow: visible; }
.sh-pit:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.sh-t { position: absolute; right: 74px; bottom: 30px; padding: 6px 10px 5px; background: #0a0b0f; color: var(--lime); border: 2px solid var(--lime); box-shadow: 3px 3px 0 #0a0b0f;
  font: 800 16px/1 var(--disp); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .25s; pointer-events: none; }
.sh-t i { font-style: normal; }
.shaft.done .sh-t, .sh-pit:hover .sh-t, .sh-pit:focus-visible .sh-t { opacity: 1; transform: none; }
.shaft .tw-t.goal { box-shadow: inset 0 0 0 3px rgba(240, 245, 255, .95), inset 0 0 18px 5px rgba(198, 255, 26, .7) !important; }
.shaft .tw-t.goal.lit { box-shadow: inset 0 0 0 3px #fff, inset 0 0 26px 10px rgba(198, 255, 26, 1), 0 0 26px rgba(198, 255, 26, .6) !important; }
@media (max-width: 1100px) { .shaft { top: auto; height: 230px; right: 6px; width: 56px; } .sh-marks { display: none; } }
@media (max-width: 760px) { .shaft { height: 190px; width: 50px; right: 2px; } .sh-t { right: 60px; font-size: 14px; } }
@media (min-width: 761px) { .foot { padding-right: 120px !important; } }


/* ---- the shaft, second pass: the tag is a button too; the hole's burst; the warp back to the top ---- */
.shaft.done .sh-t { pointer-events: auto; cursor: pointer; }
.sh-ring { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 3px solid var(--lime); transform: scale(1, .55) rotate(45deg); opacity: .9; pointer-events: none;
  animation: shRing .7s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes shRing { to { width: 90px; height: 90px; margin: -45px 0 0 -45px; opacity: 0; border-width: 1px; } }
.sh-bit { position: absolute; width: 5px; height: 5px; margin: -2.5px; background: var(--lime); pointer-events: none; animation: shBit .8s cubic-bezier(.15, .8, .3, 1) forwards; }
.sh-bit.w { background: #ecebe4; }
@keyframes shBit { 70% { opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(90deg); opacity: 0; } }
.warp-fx { position: fixed; inset: -10vmax; z-index: 60; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .0) 0 8%, rgba(198, 255, 26, .16) 9%, transparent 11%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 34px, rgba(95, 200, 255, .14) 35px 37px, transparent 38px 70px),
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(10, 11, 15, .35) 75%); }
main, .foot { will-change: auto; }
.warp-fx { -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px); }
.warp-fx::after { content: ''; position: absolute; inset: 0; opacity: .7;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(95, 200, 255, .16) 46px 47px, transparent 47px 93px, rgba(198, 255, 26, .14) 93px 94px);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 18%, #000 60%); mask: radial-gradient(circle at 50% 50%, transparent 18%, #000 60%); }

/* no filler: the line of small print over the start and the little coloured squares are gone */
.f0-in::before { content: none !important; }
.ind-sq { display: none !important; }

/* the first floor's plate sat on the demo's caption; the buttons already say it */
.f0 .ind-plate { display: none !important; }
/* the floor rail reads on any floor: its names on black chips, the current one lime */
.rail { right: 112px !important; }
.rail span { padding: 4px 7px 3px; background: #0a0b0f; color: #ecebe4 !important; box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
.rail a.on span { background: var(--lime); color: #0a0b0f !important; }
.rail i { background: #0a0b0f !important; border-color: #ecebe4 !important; }
.rail a.on i { background: var(--lime) !important; border-color: #0a0b0f !important; }
/* the demo's caption sits above the tapes, on a chip of its own */
.f0-caption { bottom: clamp(110px, 12vw, 150px) !important; z-index: 2; padding: 5px 9px; background: #0a0b0f; color: #ecebe4 !important; }
@media (max-width: 760px) { .f0-caption { display: none; } }

@keyframes hazRunS { to { background-position: 30px 0; } }
@media (prefers-reduced-motion: reduce) { .f6::before, .f6::after { animation: none; } }

/* the parts that are always dark (the header, the floor map, the footer) keep light ink in both
   themes: in light mode they used to take the page's dark ink and vanish */
.hud, .map, .foot { --tx: #ecebe4; --tx2: #b4b6be; --tx3: #8a8c94; --au: #ffe600; --line: rgba(236, 235, 228, .16); color: #ecebe4; }
.map-list span { color: #ecebe4; }
.map-legal a, .foot nav a { color: #b4b6be !important; }
