/* The layer of gamelarp over a game (docs/koppeling/SDK.md § 8; the look of docs/koppeling/prototype.html and the hub's
   r20 brand): Mona Sans, the night, sapphire for the one main button, Topaz gold only for gems, the Sticker for every
   player, radius 8/12/18, springs. Glass where it helps (blur 14 px on rgba(13,19,34,.78)), solid where blur is missing.
   Small, quiet, and gone while you play. */

/* Mona Sans, hosted here (OFL 1.1, mona-sans-LICENSE.txt; @fontsource-variable/mona-sans 5.3.0, latin, wght 200-900 and
   wdth 75-125): the CSP of /play allows fonts only from 'self', and no request goes to Google. */
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  src: url(/play/mona-sans-latin.woff2) format("woff2-variations"), url(/play/mona-sans-latin.woff2) format("woff2");
}
:root {
  --ab: #070B16; --deep: #0D1322; --raise: #141C30; --raise2: #1B2540;
  --frost: #E6EAF3; --haze: #A1ACC6; --dim: #6E7998;
  --sap: #2C6BEF; --sap-hi: #3F7BFF; --glow: #8DB0FF;
  --line: rgba(200, 214, 255, .09); --line2: rgba(200, 214, 255, .16); --tint: rgba(230, 234, 243, .06); --tint2: rgba(230, 234, 243, .10); --tint3: rgba(230, 234, 243, .15);
  --ok: #43C88A; --no: #FF6B7F;
  --gem1: #FFF4C2; --gem2: #FFD95A; --gem3: #E07B0B; --gem4: #9A4A06;
  --ice: #BFE3FF;
  --glass: rgba(13, 19, 34, .82); --glass-win: rgba(13, 19, 34, .92); --glass-solid: rgba(13, 19, 34, .97);
  --f: "Mona Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r1: 8px; --r2: 12px; --r3: 18px;
  --spring: cubic-bezier(.2, .9, .3, 1.2); --out: cubic-bezier(.16, 1, .3, 1);
  --t: 220ms;
  --st: env(safe-area-inset-top, 0px); --sr: env(safe-area-inset-right, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ab); color: var(--frost); font: 15px/1.45 var(--f); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled, button[aria-disabled="true"] { cursor: default; }
a { color: var(--glow); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
/* the ring is for the keyboard: after a tap or a click a window still gets the focus, but shows no ring (windows.js) */
html[data-input="pointer"] :focus-visible { outline: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; display: block; }
.gem { width: 18px; height: 18px; flex: none; display: block; }
.mk { display: block; flex: none; }
/* every number is tabular: a balance that counts up does not wobble, prices line up */
.num { font-variant-numeric: tabular-nums lining-nums; }
.gold { background: linear-gradient(180deg, var(--gem1) 0%, var(--gem2) 52%, #F4A02A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ice { color: var(--ice); }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--glass-solid); } }

.app { position: fixed; inset: 0; overflow: hidden; isolation: isolate; }
.game { position: absolute; inset: 0; z-index: 1; }
.game iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--ab); color-scheme: normal; }
.safe-probe { position: absolute; visibility: hidden; pointer-events: none; padding: var(--st) var(--sr) var(--sb) var(--sl); }

/* ---------- het laadscherm: de Startpoort (hangar docs/koppeling/LAADSCHERM.md, 15 nov 2026) ----------
   The game's own picture, sharp and full, slowly coming closer, dust or snow in the air; bottom left its logo and
   gamelarp's mark that builds itself shard by shard (ten shards = ten real steps), bottom right one tip, a thin line
   over the whole foot. Done: the mark lights up, three start lights, the picture dives at you, the game. (loader.js) */
.boot { position: absolute; inset: 0; z-index: 50; overflow: hidden; background: var(--ab); transition: opacity .45s var(--out), visibility 0s linear .45s; }
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot.going { opacity: 0; pointer-events: none; }
.boot-art { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #1C2D5C 0%, #0D1322 55%, var(--ab) 100%); }
.boot-art .in { position: absolute; inset: 0; transform-origin: 50% 62%; transition: transform var(--push, 20s) linear; }
.boot-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); opacity: 0; transition: opacity .5s var(--out); }
.boot-art.has-art img { opacity: 1; }
.boot.live .boot-art .in { transform: scale(1.1) translateY(1.6%); }
.boot.drop .boot-art .in { transform: scale(1.75) translateY(10%); filter: blur(5px); transition: transform .62s cubic-bezier(.55, 0, .8, .2), filter .62s; }
/* (a game without a picture of its own, or with a dark one: the brand's night with a glow) */
.boot-sun { position: absolute; left: -6%; top: -14%; width: 46%; height: 60%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 238, 190, .55), rgba(255, 220, 140, .12) 55%, transparent); mix-blend-mode: screen; opacity: 0; transition: opacity 1s; }
.boot.live .boot-sun { opacity: 1; animation: sun 5.5s ease-in-out infinite; }
@keyframes sun { 50% { transform: scale(1.12); filter: brightness(1.2); } }
.boot-air { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s; }
.boot.live .boot-air { opacity: 1; }
.boot-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(5, 8, 16, .84) 0%, rgba(5, 8, 16, .46) 18%, rgba(5, 8, 16, 0) 38%); }
.boot-hud { position: absolute; left: max(48px, var(--sl)); right: max(48px, var(--sr)); bottom: calc(40px + var(--sb)); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; transition: opacity .3s var(--out); }
.boot.drop .boot-hud, .boot.drop .boot-shade { opacity: 0; transition: opacity .25s; }
.boot-left { display: grid; gap: 12px; min-width: 0; }
.boot-logo { height: 64px; width: auto; max-width: min(340px, 60vw); object-fit: contain; object-position: left bottom; justify-self: start; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .5)); }
.boot-logo.svg { height: 30px; }
.boot-logo[hidden] { display: none; }
.boot-title { font-size: 30px; line-height: 1.05; font-weight: 820; font-stretch: 112%; letter-spacing: -.01em; text-shadow: 0 4px 18px rgba(0, 0, 0, .55); }
.boot-left.has-logo .boot-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.boot-row { display: flex; align-items: center; gap: 12px; min-height: 30px; }
.boot-mark { display: block; width: 30px; height: 30px; flex: none; }
.boot-mark .mk { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 16px rgba(44, 107, 239, .45)); }
.boot-mark .ghost path { fill: #fff; opacity: .12; }
.boot-mark .live path { opacity: 0; transform-box: fill-box; transform-origin: center; }
.boot-mark .live path.on { opacity: 1; animation: snap .62s var(--spring) both; }
@keyframes snap { from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.5); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
.boot-mark.whole .mk { animation: whole .7s var(--out); }
@keyframes whole { 30% { transform: scale(1.18); filter: drop-shadow(0 0 22px rgba(141, 176, 255, .9)); } }
.boot-stat { display: flex; align-items: baseline; gap: 10px; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); white-space: nowrap; }
.boot-of { color: var(--haze); font-weight: 600; font-size: 14px; }
.boot-right { max-width: 380px; text-align: right; display: grid; gap: 6px; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.boot-tip { margin: 0; font-size: 15px; color: #DDE3F0; }
.boot-tip:empty { display: none; }
.boot-tip b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--glow); margin-right: 8px; font-weight: 750; }
.boot-tip kbd { font: 700 12px/1 var(--f); display: inline-grid; place-items: center; height: 24px; min-width: 24px; padding: 0 6px; border-radius: 7px; vertical-align: 1px; background: rgba(230, 234, 243, .14); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .18); color: var(--frost); }
.boot-msg { margin: 0; font-size: 13.5px; color: var(--haze); min-height: 1.4em; }
.boot-line { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(230, 234, 243, .12); }
.boot-line i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sap), var(--glow) 92%, #fff); box-shadow: 0 0 14px rgba(141, 176, 255, .7); }
.boot.drop .boot-line { opacity: 0; transition: opacity .2s; }
.boot-lights { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; gap: 22px; padding: 18px 26px; border-radius: 99px; background: rgba(5, 8, 16, .66); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 20px 50px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .15s; pointer-events: none; }
.boot-lights.on { opacity: 1; }
.boot-lights i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .12); transition: background-color .08s, box-shadow .08s; }
.boot-lights i.r { background: #FF4D5E; box-shadow: 0 0 28px #FF4D5E; }
.boot-lights i.y { background: #FFB020; box-shadow: 0 0 28px #FFB020; }
.boot-lights i.g { background: var(--ok); box-shadow: 0 0 34px var(--ok); }
.boot-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.boot.drop .boot-flash { animation: flash .5s ease-out; }
@keyframes flash { 30% { opacity: .5; } 100% { opacity: 0; } }
/* a game that cannot start, or gamelarp that cannot be reached: the picture goes soft, a box in the middle */
.boot-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; justify-items: center; gap: 14px; width: min(420px, calc(100% - 32px)); padding: 28px 24px; text-align: center; border-radius: var(--r3); background: rgba(7, 11, 22, .62); box-shadow: inset 0 0 0 1px var(--line2), 0 24px 60px rgba(0, 0, 0, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.boot.failed .boot-box { display: grid; }
.boot.failed .boot-hud, .boot.failed .boot-line, .boot.failed .boot-air, .boot.failed .boot-sun { display: none; }
.boot.failed .boot-art .in { transform: scale(1.06); filter: blur(18px) saturate(1.1) brightness(.55); transition: none; }
.boot-box .mk { width: 56px; height: 56px; }
.boot-box b { font-size: 22px; font-weight: 780; font-stretch: 112%; letter-spacing: -.005em; }
.boot-box p { margin: 0; font-size: 14px; color: var(--haze); }
.boot-box p:empty { display: none; }
/* the sliding bar: still used by the checkout's wait (checkout.js) */
.boot-bar { position: relative; width: 168px; height: 3px; border-radius: 99px; background: rgba(230, 234, 243, .12); overflow: hidden; }
.boot-bar i { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--sap-hi), var(--glow)); animation: slide 1.1s var(--out) infinite; }
@keyframes slide { from { left: -40%; } to { left: 100%; } }
.boot-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
a.btn { text-decoration: none; }
/* (18 nov, playtest.js) the playtest code in the closed box */
.boot-box.code { width: min(460px, calc(100% - 32px)); }
.code-form { width: 100%; display: grid; gap: 8px; }
.code-row { display: flex; gap: 8px; }
.code-in { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; border-radius: 99px; background: rgba(230, 234, 243, .1); box-shadow: inset 0 0 0 1px var(--line2); color: var(--frost);
  font: 700 17px/1 var(--f); letter-spacing: .08em; text-transform: uppercase; text-align: center; outline: none; }
.code-in::placeholder { color: var(--dim); letter-spacing: .02em; text-transform: none; font-weight: 600; }
.code-in:focus { box-shadow: inset 0 0 0 2px var(--glow); background: rgba(230, 234, 243, .14); }
.code-row .btn { height: 48px; padding: 0 20px; font-size: 15px; }
.boot-box p.code-err { min-height: 1.3em; font-size: 13.5px; color: var(--no); }
.boot-box p.code-err:empty { display: block; }
.boot-box p.code-err.ok { color: var(--ok); }
@media (max-width: 420px) { .code-row { flex-direction: column; } .code-in { flex: none; width: 100%; } .code-row .btn { width: 100%; } }
@media (max-width: 640px) {
  .boot-hud { left: max(22px, var(--sl)); right: max(22px, var(--sr)); bottom: calc(44px + var(--sb)); flex-direction: column; align-items: flex-start; gap: 14px; }
  .boot-right { text-align: left; max-width: none; }
  .boot-logo { height: 54px; }
  .boot-logo.svg { height: 24px; }
  .boot-title { font-size: 26px; }
  .boot-shade { background: linear-gradient(0deg, rgba(5, 8, 16, .88) 0%, rgba(5, 8, 16, .5) 26%, rgba(5, 8, 16, 0) 46%); }
  .boot-lights { gap: 14px; padding: 14px 18px; }
  .boot-lights i { width: 26px; height: 26px; }
}
.setting .ico, .row .ico { width: 36px; height: 36px; border-radius: 11px; background: var(--raise2); display: grid; place-items: center; color: var(--glow); }
.setting .ico svg { width: 18px; height: 18px; }

/* ---------- de dimmer achter een venster ---------- */
.scrim { position: absolute; inset: 0; z-index: 9; pointer-events: auto; background: rgba(4, 7, 15, .5); -webkit-backdrop-filter: blur(6px) saturate(.85); backdrop-filter: blur(6px) saturate(.85); animation: fade var(--t) var(--out); }
.scrim.clear { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
@keyframes fade { from { opacity: 0; } }

/* ---------- de strook (console-overlay, SDK.md § 13; r25: hetzelfde glas als de site, geen gloed, geen eigen kleur per game) ----------
   Weg tijdens het spelen. Hij schuift van boven in bij een pauze, een rustmoment of als je hem roept (Shift+Tab, de
   Home-knop van je pad, de muis tegen de bovenrand, de stip op je telefoon). */
.edge { position: absolute; z-index: 60; left: 0; right: 0; top: 0; height: 6px; }
.dot { position: absolute; z-index: 70; top: calc(12px + var(--st)); left: calc(12px + var(--sl)); width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 0; display: grid; place-items: center; background: rgba(7, 11, 22, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 18px rgba(0, 0, 0, .35); }
.dot .mk { width: 24px; height: 24px; }
.bar { position: absolute; z-index: 85; top: calc(12px + var(--st)); left: calc(12px + var(--sl)); right: calc(12px + var(--sr)); height: 56px;
  display: flex; align-items: center; gap: 4px; padding: 0 8px 0 6px; border-radius: var(--r3); white-space: nowrap; overflow: hidden;
  background: rgba(7, 11, 22, .62); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 14px 40px rgba(0, 0, 0, .42);
  transform: translateY(calc(-100% - 24px - var(--st))); opacity: 0; visibility: hidden;
  transition: transform .32s var(--out), opacity .2s var(--out), visibility 0s linear .32s; }
/* r25: geen lichtlijn onder de strook (Julius: geen gloed); het glas en de rand zijn genoeg */
.bar[data-mode="strip"] { transform: none; opacity: 1; visibility: visible; transition: transform .38s var(--spring), opacity .18s var(--out), visibility 0s; }
/* tijdens een run (alleen als je hem zelf roept): geen blur over een bewegende game */
.bar.plain { background: rgba(7, 11, 22, .9); -webkit-backdrop-filter: none; backdrop-filter: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .bar { background: rgba(7, 11, 22, .92); } }
/* een venster dat niet van de strook is (een sheet, een vraag) gaat erover */
.bar.under { z-index: 75; }
.bar .it { height: 42px; border: 0; background: none; border-radius: var(--r2); display: inline-flex; align-items: center; gap: 8px; padding: 0 12px;
  font-weight: 650; font-size: 15px; color: var(--frost); flex: none; position: relative; transition: background-color .15s, transform .12s var(--out); }
.bar .it:hover { background: var(--tint2); }
.bar .it:active { transform: scale(.97); }
.bar .it[aria-expanded="true"] { background: var(--tint3); box-shadow: inset 0 0 0 1px var(--line2); }
.bar .home { padding: 0 10px 0 8px; }
.bar .logo { display: inline-flex; align-items: center; gap: 9px; }
.bar .logo .mk { width: 28px; height: 28px; }
.bar .logo .wm { height: 14px; width: auto; }
.bar .sep { width: 1px; height: 24px; background: var(--line2); margin: 0 6px; flex: none; }
.bar .grow { flex: 1 1 auto; min-width: 8px; }
.bar .faces { display: inline-flex; align-items: center; }
.bar .faces .av { --s: 24px; box-shadow: 0 0 0 2px rgba(7, 11, 22, .9); }
.bar .faces .av + .av { margin-left: -7px; }
.bar .faces .av::after { content: ""; position: absolute; right: 0; bottom: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 1.5px #0D1322; }
/* r25: wie er online is, praat zoals de site: groene stip, het getal wit en vet, het woord rustig */
.bar .friends .lbl { color: var(--haze); font-weight: 600; }
.bar .friends .lbl b { color: var(--frost); font-weight: 750; }
.bar .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--sap); color: #fff; font-size: 12px; font-weight: 750; display: inline-grid; place-items: center; }
.bar .badge.quiet { background: var(--tint3); color: var(--frost); }
.bar .news { height: 26px; padding: 0 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 12.5px; font-weight: 750; display: inline-flex; align-items: center; margin-right: 4px; }
.bar .gems { gap: 6px; padding: 0 8px 0 10px; border-radius: 99px; height: 36px; background: rgba(255, 217, 90, .07); box-shadow: inset 0 0 0 1px rgba(255, 217, 90, .26); margin: 0 4px; }
.bar .gems:hover { background: rgba(255, 217, 90, .13); }
.bar .gems .n { font-size: 15px; font-weight: 750; }
.bar .plus { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 217, 90, .18); color: var(--gem2); }
.bar .plus svg { width: 12px; height: 12px; }
.bar .me { padding: 0 6px; }
.bar .me .av { --s: 30px; }
.bar .hint { display: none; align-items: center; gap: 4px; color: var(--dim); font-size: 12px; font-weight: 650; padding: 0 6px 0 8px; }
.bar .hint .kbd { min-width: 0; height: 22px; padding: 0 7px; font-size: 11.5px; }
.bar:is([data-why="pause"], [data-why="quiet"], [data-why="edge"], [data-why="intro"]) .hint { display: inline-flex; }
.bar.first .hint::before { content: "gamelarp"; margin-right: 4px; color: var(--haze); }
.bar .resume { display: none; height: 42px; margin-left: 4px; }
.bar[data-why="input"] .resume { display: inline-flex; }
.bar[data-mode="strip"] .it { animation: strip-in .34s var(--spring) backwards; }
.bar[data-mode="strip"] .it:nth-of-type(2) { animation-delay: 25ms; }
.bar[data-mode="strip"] .it:nth-of-type(3) { animation-delay: 50ms; }
.bar[data-mode="strip"] .it:nth-of-type(4) { animation-delay: 75ms; }
.bar[data-mode="strip"] .it:nth-of-type(5) { animation-delay: 100ms; }
@keyframes strip-in { from { opacity: 0; transform: translateY(-6px); } }
.bar.bump .gems .n { animation: bump .32s var(--spring); }
@keyframes bump { 40% { transform: scale(1.18); } }
html[data-strip="on"] .toasts { top: calc(80px + var(--st)); }

/* ---------- knoppen ---------- */
.btn { height: 40px; border: 0; border-radius: 99px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--tint2); color: var(--frost); font-weight: 700; font-size: 14px; white-space: nowrap; transition: background-color .15s, opacity .6s, transform .12s var(--out); }
.btn:hover { background: var(--tint3); }
.btn:active { transform: scale(.97); }
.btn .gem, .btn svg.i { width: 16px; height: 16px; }
.btn.pri { background: var(--sap); color: #fff; box-shadow: none; }
.btn.pri:hover { background: var(--sap-hi); }
/* Play and Resume: white with dark text on every game (r25: the images bring the colour, the UI stays calm) */
.btn.play { background: #fff; color: #070B16; }
.btn.play:hover { background: #E8ECF5; }
.btn.danger { background: rgba(240, 71, 92, .14); color: var(--no); }
.btn.danger:hover { background: rgba(240, 71, 92, .22); }
.btn.ghost { background: none; color: var(--haze); }
.btn.ghost:hover { background: var(--tint); color: var(--frost); }
.btn.status { background: var(--tint); color: var(--haze); cursor: default; }
.btn.status.ok { color: var(--ok); }
.btn.wide { width: 100%; height: 48px; font-size: 15px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; transform: none; }
.btn.status[aria-disabled="true"] { opacity: 1; }
.btn.pri[aria-disabled="true"] { box-shadow: none; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
/* in a list the relation is a quiet button: Saffier stays for the one main button of a window */
.btn.sm.pri { background: rgba(44, 107, 239, .16); color: var(--glow); box-shadow: none; }
.btn.sm.pri:hover { background: rgba(63, 123, 255, .26); color: #fff; }
.iconbtn { width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--haze); flex: none; transition: background-color .15s, color .15s; }
.iconbtn:hover { background: var(--tint2); color: var(--frost); }
.iconbtn svg { width: 18px; height: 18px; }

/* ---------- avatar (de Sticker, of initialen op een kleur) ---------- */
.av { --s: 40px; position: relative; width: var(--s); height: var(--s); border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center;
  background: var(--avc, var(--sap)); color: #fff; font-weight: 800; font-size: calc(var(--s) * .38); letter-spacing: .02em; user-select: none; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .2s; }
.av img.on { opacity: 1; }
.av.ring { box-shadow: 0 0 0 3px var(--deep); }

/* ---------- vensters ---------- */
#windows { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
.win { position: absolute; pointer-events: auto; color: var(--frost); border: 1px solid var(--line2); box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.win.glass { background: var(--glass-win); }
.win h2, .win h3 { margin: 0; font-stretch: 110%; line-height: 1.15; }
.win p { margin: 0; }
.muted { color: var(--haze); }
.fine { font-size: 12.5px; color: var(--dim); }
.label { font-size: 11.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* het grote menu: een paneel van links, 400 px; telefoon: het hele scherm */
/* (1.3) het paneel onder de strook: Friends, Party, Me, Help */
.menu { left: calc(12px + var(--sl)); top: calc(76px + var(--st)); bottom: calc(12px + var(--sb)); width: min(400px, calc(100% - 24px)); max-height: 640px;
  display: grid; grid-template-rows: auto auto 1fr auto; border-radius: var(--r3); border: 0;
  background: rgba(10, 15, 28, .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 80px rgba(0, 0, 0, .55);
  transform: translateY(-10px) scale(.985); transform-origin: 30% 0; opacity: 0; transition: transform .3s var(--spring), opacity .18s var(--out); }
.menu.in { transform: none; opacity: 1; }
.menu-game { padding: 18px 18px 0; display: grid; gap: 14px; }
.game-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.game-icon { width: 52px; height: 52px; border-radius: 14px; flex: none; background: var(--raise2) center / cover no-repeat; border: 1px solid var(--line2); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); display: grid; place-items: center; font-weight: 850; font-size: 22px; color: #fff; }
.game-id h2 { font-size: 21px; font-weight: 800; font-stretch: 112%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-id p { font-size: 13.5px; color: var(--haze); display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-id p .dot { position: static; width: 8px; height: 8px; padding: 0; border-radius: 50%; background: var(--ok); flex: none; box-shadow: none; animation: livep 2.4s ease-out infinite; }
/* de levende stip van de site (r25/home.css .live i): één zachte ring, geen gloed */
@keyframes livep { 0% { box-shadow: 0 0 0 0 rgba(67, 200, 138, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(67, 200, 138, 0); } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; height: 92px; border-radius: var(--r2); border: 1px solid var(--line2); overflow: hidden; padding: 0; text-align: left; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(230, 234, 243, .08), rgba(230, 234, 243, .03)) center / cover no-repeat; transition: transform .18s var(--spring), border-color .15s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7, 11, 22, .82)); }
.tile span { position: relative; z-index: 1; padding: 10px 12px; font-weight: 750; font-size: 15px; display: flex; align-items: center; gap: 6px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.tile:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .3); }
.tile:active { transform: scale(.98); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tabs { display: flex; gap: 2px; padding: 3px; margin: 16px 18px 0; border-radius: 99px; background: rgba(7, 11, 22, .55); border: 1px solid var(--line); }
.tabs button { flex: 1 1 0; min-width: 0; height: 34px; border: 0; background: none; border-radius: 99px; font-weight: 700; font-size: 13.5px; color: var(--haze); display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: background-color .15s, color .15s; }
.tabs button:hover { color: var(--frost); }
.tabs button[aria-selected="true"] { background: var(--raise2); color: var(--frost); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.tabs .count { font-size: 11.5px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--sap); color: #fff; display: inline-grid; place-items: center; padding: 0 5px; }
.menu-body { overflow: auto; padding: 14px 10px 14px 10px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--raise2) transparent; }
.menu-body section + section { margin-top: 14px; }
.menu-body .label { padding: 4px 8px 6px; display: flex; justify-content: space-between; }
.menu-foot { display: flex; gap: 10px; padding: 12px 16px calc(14px + var(--sb)); border-top: 1px solid var(--line); }
.menu-foot .btn.play { flex: 1; height: 46px; font-size: 15px; }
.menu-foot .btn.danger { height: 46px; padding: 0 18px; }

/* rijen (People, Party, Help) */
.rows { display: grid; gap: 2px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 8px; border-radius: var(--r2); min-height: 52px; }
.row.click { cursor: pointer; border: 0; background: none; text-align: left; width: 100%; }
.row.click:hover { background: var(--tint); }
.row { position: relative; }
.row-hit { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; background: none; border-radius: var(--r2); cursor: pointer; transition: background-color .15s; }
.row-hit:hover { background: var(--tint); }
.row > .av, .row > .who { pointer-events: none; }
.row > .acts { position: relative; z-index: 1; }
a.row { color: inherit; text-decoration: none; }
.row .who { min-width: 0; display: grid; gap: 1px; }
.row b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row small { font-size: 12.5px; color: var(--haze); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .acts { display: flex; gap: 6px; align-items: center; }
.row .ico { width: 36px; height: 36px; border-radius: 11px; background: var(--raise2); display: grid; place-items: center; color: var(--glow); }
.row .ico svg { width: 18px; height: 18px; }
.row .chev { color: var(--dim); width: 16px; height: 16px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; font-size: 12.5px; font-weight: 650; color: var(--dim); white-space: nowrap; }
.tag svg.i { width: 14px; height: 14px; }
.tag.ok { color: var(--ok); }
.iconbtn.add { background: rgba(44, 107, 239, .16); color: var(--glow); }
.iconbtn.add:hover { background: rgba(63, 123, 255, .28); color: #fff; }
.iconbtn.add[aria-disabled="true"] { opacity: .5; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; text-align: center; color: var(--haze); font-size: 14px; }
.empty .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--raise2); display: grid; place-items: center; color: var(--glow); margin-bottom: 4px; }
.empty b { color: var(--frost); font-size: 15px; }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line2); border-bottom-width: 2px; background: var(--raise); font-size: 12px; font-weight: 700; color: var(--frost); }
.setting { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r2); min-height: 52px; }
.setting .who b { font-size: 14.5px; font-weight: 650; }
.toggle { width: 44px; height: 26px; border-radius: 99px; border: 0; background: var(--raise2); position: relative; flex: none; transition: background-color .18s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--haze); transition: transform .22s var(--spring), background-color .18s; }
.toggle[aria-checked="true"] { background: var(--sap); }
.toggle[aria-checked="true"]::after { transform: translateX(18px); background: #fff; }

/* het spelerskaartje: 320 px naast het punt van de game */
.card { width: 320px; max-width: calc(100% - 24px); border-radius: var(--r3); overflow: hidden; transform-origin: var(--ox, 0) var(--oy, 50%); animation: card-in .22s var(--spring); }
@keyframes card-in { from { opacity: 0; transform: scale(.94); } }
.card-banner { height: 64px; background: linear-gradient(120deg, color-mix(in srgb, var(--avc, #2C6BEF) 85%, #fff 0%), color-mix(in srgb, var(--avc, #2C6BEF) 45%, #0D1322) 75%); position: relative; }
.card-banner .tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.card-banner .iconbtn { width: 32px; height: 32px; background: rgba(7, 11, 22, .35); color: #fff; }
.card-banner .iconbtn:hover { background: rgba(7, 11, 22, .55); }
.card-in { padding: 0 16px 16px; display: grid; gap: 12px; }
.card-who { display: flex; align-items: flex-start; gap: 12px; margin-top: -32px; }
.card-who .av { --s: 72px; box-shadow: 0 0 0 4px var(--deep), 0 8px 18px rgba(0, 0, 0, .35); }
.card-who .names { min-width: 0; padding-top: 40px; display: grid; gap: 1px; }
.card-who h2 { font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-who p { font-size: 13px; color: var(--haze); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-acts { display: flex; gap: 8px; }
.card-acts .btn { flex: 1 1 0; min-width: 0; }
.card-game { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.card-game .btn { flex: 1 1 0; min-width: 0; height: 36px; background: var(--tint); font-size: 13.5px; }
.card-game .btn:hover { background: var(--tint2); }
.card-game.first { border-top: 0; padding-top: 0; }
.card-more { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-more .opt { display: flex; align-items: center; gap: 10px; height: 40px; border: 0; background: none; border-radius: var(--r1); padding: 0 10px; font-weight: 650; font-size: 14px; color: var(--frost); text-align: left; }
.card-more .opt:hover { background: var(--tint); }
.card-more .opt[aria-checked="true"] { background: var(--tint2); }
.card-more .opt[aria-checked="true"] svg { color: var(--glow); }
.card-more .opt.bad { color: var(--no); }
.card-more .opt svg { width: 17px; height: 17px; color: var(--haze); }
.card-more .opt.bad svg { color: var(--no); }
.card-more .ask { font-size: 13.5px; color: var(--haze); padding: 2px 4px 4px; }
.card-more .ask b { color: var(--frost); }
.card-more .pair { display: flex; gap: 8px; }
.card-more .pair .btn { flex: 1; }
.done-line { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 650; font-size: 14px; padding: 8px 4px; }
.done-line svg { width: 18px; height: 18px; }

/* het profiel: een blad van rechts */
.side { right: 0; top: 0; bottom: 0; width: min(400px, 100%); border-width: 0 0 0 1px; border-radius: var(--r3) 0 0 var(--r3); overflow: auto; transform: translateX(100%); transition: transform .26s var(--out); padding-right: var(--sr); }
.side.in { transform: none; }
.side-banner { height: 132px; background: linear-gradient(120deg, var(--avc, #2C6BEF), color-mix(in srgb, var(--avc, #2C6BEF) 40%, #0D1322) 80%); position: relative; }
.side-banner .iconbtn { position: absolute; top: calc(10px + var(--st)); right: 10px; background: rgba(7, 11, 22, .35); color: #fff; }
.side-in { padding: 0 20px 24px; display: grid; gap: 16px; }
.side-who { margin-top: -60px; display: grid; gap: 10px; justify-items: start; }
.side-who .av { --s: 120px; box-shadow: 0 0 0 5px var(--deep), 0 12px 30px rgba(0, 0, 0, .4); }
.side-who h2 { font-size: 26px; font-weight: 820; font-stretch: 114%; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fact { padding: 12px; border-radius: var(--r2); background: var(--tint); border: 1px solid var(--line); display: grid; gap: 2px; }
.fact b { font-size: 17px; font-weight: 750; }
.fact span { font-size: 12.5px; color: var(--haze); }
.playing { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r2); background: var(--tint); border: 1px solid var(--line); font-size: 14px; }
.playing .game-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }

/* de kassa en het Flakes-blad: een blad onderaan */
.sheet { left: 50%; bottom: calc(16px + var(--sb)); width: min(440px, calc(100% - 24px)); border-radius: var(--r3); padding: 18px; display: grid; gap: 16px; max-height: calc(100% - 32px); overflow: auto;
  transform: translate(-50%, 24px); opacity: 0; transition: transform .26s var(--spring), opacity .2s var(--out); }
.sheet.in { transform: translate(-50%, 0); opacity: 1; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; }
.sheet-head .grow { flex: 1; min-width: 0; display: grid; gap: 3px; }
.sheet-head h2 { font-size: 19px; font-weight: 800; }
.thing { width: 60px; height: 60px; border-radius: 14px; flex: none; background: var(--raise2) center / cover no-repeat; border: 1px solid var(--line2); overflow: hidden; display: grid; place-items: center; color: var(--ice); }
.thing img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thing svg { width: 30px; height: 30px; }
.price { display: inline-flex; align-items: center; gap: 5px; font-weight: 750; font-size: 14.5px; }
.price svg { width: 15px; height: 15px; }
.price s { color: var(--dim); font-weight: 600; margin-right: 4px; }
.need { font-size: 16px; color: var(--haze); }
.need b { color: var(--frost); font-size: 17px; }
.need.gems b { color: var(--gem2); }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pack { position: relative; border: 1px solid var(--line2); background: var(--tint); border-radius: var(--r2); padding: 12px 10px 10px; display: grid; gap: 6px; justify-items: start; text-align: left; transition: border-color .15s, background-color .15s, transform .18s var(--spring); }
.pack:hover { border-color: rgba(141, 176, 255, .4); }
.pack:active { transform: scale(.98); }
.pack[aria-checked="true"] { border-color: var(--sap-hi); background: rgba(44, 107, 239, .14); box-shadow: inset 0 0 0 1px var(--sap-hi); }
.pack .amt { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 17px; }
.pack .amt svg { width: 16px; height: 16px; }
.pack .cost { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--haze); }
.pack .cost .gem { width: 14px; height: 14px; }
.pack .tick { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--sap); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--spring); }
.pack .tick svg { width: 12px; height: 12px; }
.pack[aria-checked="true"] .tick { opacity: 1; transform: none; }
.pack.short .cost { color: var(--dim); }
.pack.soon { opacity: .6; cursor: default; }
.pack.soon:hover { border-color: var(--line2); }
.balance { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r2); background: rgba(7, 11, 22, .5); border: 1px solid var(--line); font-size: 14px; }
.balance div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.balance .after { color: var(--haze); }
.balance .v { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.balance .v .gem { width: 15px; height: 15px; }
.earn { display: grid; gap: 4px; }
.earn > div:not(.label) { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r2); background: var(--tint); font-size: 14px; }
.earn em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font-weight: 750; }
.earn em .gem { width: 14px; height: 14px; }
.sheet .foot { display: flex; gap: 8px; }
.sheet .foot .btn { flex: 1; height: 48px; font-size: 15px; }
.sheet .foot .btn.ghost { flex: 0 0 auto; }
.success { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r2); background: rgba(67, 200, 138, .1); border: 1px solid rgba(67, 200, 138, .25); color: var(--frost); font-size: 14px; animation: card-in .24s var(--spring); }
.success svg.i { color: var(--ok); }
.success .have { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--haze); font-size: 13.5px; }
.success .have .price { color: var(--frost); }
.sheet .err { color: var(--no); font-size: 13.5px; }

/* de kassa (livenacht L2, checkout.js): gempakketten voor euro's, een ding op twee manieren, het vinkje, Stripe's formulier in het blad */
.gpacks { display: grid; gap: 6px; }
.gpack { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px 0 12px; border: 1px solid var(--line2); background: var(--tint); border-radius: var(--r2);
  color: var(--frost); text-align: left; transition: border-color .15s, background-color .15s, transform .18s var(--spring); }
button.gpack:hover { border-color: rgba(141, 176, 255, .4); }
button.gpack:active { transform: scale(.99); }
.gpack[aria-checked="true"] { border-color: var(--sap-hi); background: rgba(44, 107, 239, .14); box-shadow: inset 0 0 0 1px var(--sap-hi); }
.gpack .amt { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 16.5px; }
.gpack .amt .gem { width: 18px; height: 18px; }
.gpack .extra { justify-self: start; font-size: 12px; font-weight: 750; color: var(--gem2); background: rgba(255, 217, 90, .12); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.gpack .cost { grid-column: 3; font-weight: 750; font-size: 15px; }
.gpack.soon { opacity: .55; }
.soon-note { text-align: center; font-weight: 750; font-size: 15px; color: var(--frost); padding: 2px 0; }
.ways { display: grid; gap: 8px; }
.ways .btn .gem { width: 16px; height: 16px; }
.sheet.pay { width: min(480px, calc(100% - 24px)); }
.pay-body { display: grid; gap: 14px; }
.pay-body:empty { display: none; }
.agree { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: var(--r2); background: var(--tint); border: 1px solid var(--line2); font-size: 14.5px; line-height: 1.4; cursor: pointer; }
.agree input { position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.agree .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--haze); display: grid; place-items: center; color: transparent; transition: background-color .15s, border-color .15s; }
.agree .box svg { width: 14px; height: 14px; }
.agree input:checked + .box { background: var(--sap); border-color: var(--sap); color: #fff; }
.agree input:focus-visible + .box { outline: 2px solid var(--glow); outline-offset: 2px; }
.pay-wait { display: grid; justify-items: center; gap: 14px; padding: 30px 0 26px; color: var(--haze); font-size: 14px; }
/* (Stripe's formulier is licht: een wit vlak tot aan de rand van het blad) */
.pay-frame { margin: 0 -18px -18px; min-height: 360px; background: #fff; border-radius: 0 0 calc(var(--r3) - 1px) calc(var(--r3) - 1px); overflow: hidden; color-scheme: light; }
.pay-frame[hidden] { display: none; }

/* klein blad in het midden (Leave, een prijs die veranderde) */
.dialog { left: 50%; top: 50%; width: min(360px, calc(100% - 32px)); border-radius: var(--r3); padding: 20px; display: grid; gap: 14px; transform: translate(-50%, -50%); animation: dialog-in .22s var(--spring); }
@keyframes dialog-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
.dialog h2 { font-size: 19px; font-weight: 800; }
.dialog .pair { display: flex; gap: 8px; }
.dialog .pair .btn { flex: 1; height: 46px; }

/* het bonnetje rechtsonder, en een melding bovenaan */
.receipts { position: absolute; right: calc(16px + var(--sr)); bottom: calc(16px + var(--sb)); z-index: 75; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.receipt { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); font-size: 14px; font-weight: 650; max-width: min(360px, calc(100vw - 32px));
  animation: receipt-in .26s var(--spring); }
.receipt.out { animation: receipt-out .2s var(--out) forwards; }
@keyframes receipt-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes receipt-out { to { opacity: 0; transform: translateY(8px); } }
.receipt .thing { width: 38px; height: 38px; border-radius: 10px; }
.receipt .thing svg { width: 20px; height: 20px; }
.receipt .t { display: grid; gap: 1px; min-width: 0; }
.receipt .t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt .t span { display: inline-flex; align-items: center; gap: 4px; color: var(--haze); font-size: 13px; }
.receipt .t span svg { width: 13px; height: 13px; }
.toasts { position: absolute; left: 50%; top: calc(16px + var(--st)); transform: translateX(-50%); z-index: 95; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 99px; border: 1px solid var(--line2); box-shadow: 0 12px 36px rgba(0, 0, 0, .4); font-size: 14px; font-weight: 650; animation: toast-in .24s var(--spring); max-width: 100%; }
.toast .av { --s: 26px; }
.toast > svg.i, .toast > svg.gem { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--raise2); color: var(--ok); }
.toast .amts { display: inline-flex; align-items: center; gap: 10px; margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--line2); font-weight: 750; }
.toast .amts > span { display: inline-flex; align-items: center; gap: 3px; }
.toast .amts svg { width: 15px; height: 15px; }
.toast.out { animation: receipt-out .2s var(--out) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }

/* (1.5) de game loopt hier slecht: een groot venster in het midden dat de game pauzeert (perf.js, SDK.md § 17);
   telefoon: een blad onderaan. Bovenin het eigen beeld van de game met een badge; weinig tekst, grote knoppen. */
.sheet.perf { top: 50%; bottom: auto; width: min(500px, calc(100% - 24px)); padding: 0 0 22px; gap: 0; overflow: auto; max-height: calc(100% - 32px);
  transform: translate(-50%, calc(-50% + 24px)) scale(.98); --pc: #3F7BFF; --pc-soft: rgba(63, 123, 255, .18); --pc-text: #A9C2FF; }
.sheet.perf.in { transform: translate(-50%, -50%); }
.perf[data-state="slow"] { --pc: #FF8A4C; --pc-soft: rgba(255, 138, 76, .16); --pc-text: #FFBE9A; }
.perf-hero { position: relative; height: 176px; flex: none; }
.perf-pic { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r3) var(--r3) 0 0; -webkit-mask-image: linear-gradient(#000 45%, transparent 98%); mask-image: linear-gradient(#000 45%, transparent 98%);
  background: radial-gradient(70% 90% at 50% 10%, color-mix(in srgb, var(--pc) 45%, transparent), transparent 70%), linear-gradient(180deg, #1B2540, var(--deep)); }
.perf-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; opacity: 0; transform: scale(1.06); transition: opacity .5s var(--out), transform 1.2s var(--out); }
.perf-pic.has-art img { opacity: 1; transform: none; }
.perf-pic::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 19, 34, .1) 0%, rgba(13, 19, 34, .35) 60%), radial-gradient(60% 80% at 50% 100%, color-mix(in srgb, var(--pc) 30%, transparent), transparent 70%); }
.perf-badge { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; z-index: 1;
  background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 92%, #fff 8%), color-mix(in srgb, var(--pc) 70%, #000 30%)); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 14px 34px color-mix(in srgb, var(--pc) 45%, transparent); animation: perf-pop .5s var(--spring) .1s both; }
.perf .perf-badge .perf-ic svg { width: 38px; height: 38px; stroke-width: 1.8; }
.perf-hero .iconbtn { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; background: rgba(7, 11, 22, .45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.perf-hero .iconbtn:hover { background: rgba(7, 11, 22, .7); }
.perf-ic { display: inline-grid; place-items: center; }
.perf-ic svg { width: 20px; height: 20px; display: block; }
.perf-main { display: grid; }
.perf-text { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 48px 28px 0; }
.perf-text h2 { font-size: 27px; font-weight: 840; font-stretch: 115%; letter-spacing: -.01em; line-height: 1.12; text-wrap: balance; }
.perf-text p { color: var(--haze); font-size: 15.5px; line-height: 1.45; max-width: 36ch; text-wrap: balance; }
.perf-steps { list-style: none; margin: 20px 24px 0; padding: 4px; border-radius: 16px; background: var(--tint); border: 1px solid var(--line); display: grid; }
.perf-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 10px; font-size: 15px; color: var(--frost); }
.perf-steps li + li { border-top: 1px solid var(--line); }
.perf-steps b { font-weight: 760; color: #fff; }
.perf-steps .n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--pc-soft); color: var(--pc-text); font-size: 14px; font-weight: 820; align-self: start; }
.perf-steps .t { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; min-width: 0; padding-top: 4px; }
.perf-addr { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px; border-radius: 12px; background: var(--ab); border: 1px solid var(--line2); }
.perf-addr code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14.5px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--frost); }
.perf-copy { height: 36px; padding: 0 16px; font-size: 14px; gap: 6px; flex: none; }
.perf-copy.done { background: var(--ok); }
.perf-copy svg.i { width: 15px; height: 15px; }
.perf-meter { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; height: 30px; padding: 0 13px 0 11px; border-radius: 99px; background: var(--pc-soft); color: var(--pc-text); font-size: 13.5px; font-weight: 760; font-variant-numeric: tabular-nums; }
.perf-meter i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 4px rgba(255, 138, 76, .18); animation: perf-pulse 1.6s ease-in-out infinite; }
@keyframes perf-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 138, 76, 0); } }
.perf-help { list-style: none; margin: 20px 24px 0; padding: 4px; border-radius: 16px; background: var(--tint); border: 1px solid var(--line); display: grid; }
.perf-help li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 10px; }
.perf-help li + li { border-top: 1px solid var(--line); }
.perf-help .perf-ic { width: 40px; height: 40px; border-radius: 13px; background: var(--pc-soft); color: var(--pc-text); }
.perf-help .perf-ic svg { width: 21px; height: 21px; }
.perf-help .t { display: grid; gap: 2px; min-width: 0; }
.perf-help b { font-size: 15.5px; font-weight: 780; color: #fff; }
.perf-help .t span { font-size: 14px; color: var(--haze); }
@media (prefers-reduced-motion: reduce) { .perf-meter i { animation: none; } }
.perf-foot { display: grid; gap: 6px; padding: 22px 24px 0; }
.perf-foot .btn.wide { height: 52px; font-size: 16px; font-weight: 760; }
.perf-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 2px 2px 0; }
.perf-row .notnow { margin: 0; }
@keyframes perf-pop { from { transform: translateX(var(--tx, 0)) scale(.6); opacity: 0; } }
.perf-badge { --tx: -50%; }
@media (max-width: 520px) {
  .sheet.perf { top: auto; bottom: 0; width: 100%; max-height: calc(100% - 12px); transform: translateY(32px); padding-bottom: calc(16px + var(--sb)); }
  .sheet.perf.in { transform: none; }
  .perf-hero { height: 132px; }
  .perf-text h2 { font-size: 23px; }
  .perf-text { padding: 44px 20px 0; }
  .perf-foot { padding: 20px 18px 0; }
  .perf-steps, .perf-help { margin-left: 16px; margin-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .perf-badge, .perf-ok, .perf-pic img { animation: none; transition: none; } }

/* het bewaar-blad (G1): groot je Sticker, wat je bewaart, Google / Discord / een mailcode; in het midden, telefoon onderaan */
.sheet.save { top: 50%; bottom: auto; width: min(420px, calc(100% - 24px)); padding: 0 0 18px; gap: 0; overflow: auto; max-height: calc(100% - 32px);
  transform: translate(-50%, calc(-50% + 20px)); }
.sheet.save.in { transform: translate(-50%, -50%); }
.save-banner { height: 92px; flex: none; position: relative; border-radius: var(--r3) var(--r3) 0 0;
  background: radial-gradient(120% 140% at 15% 0%, color-mix(in srgb, var(--avc) 90%, #fff 10%), transparent 60%), linear-gradient(120deg, color-mix(in srgb, var(--avc) 70%, #0D1322), #141C30 85%); }
.save-banner.done { background: radial-gradient(120% 140% at 15% 0%, rgba(67, 200, 138, .7), transparent 60%), linear-gradient(120deg, #1D5A49, #141C30 85%); }
.save-banner .iconbtn { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; background: rgba(7, 11, 22, .35); color: #fff; }
.save-banner .iconbtn:hover { background: rgba(7, 11, 22, .55); }
.save-who { display: flex; align-items: flex-end; gap: 10px; margin: -52px 20px 0; position: relative; }
.save-who .av { --s: 96px; box-shadow: 0 0 0 5px var(--deep), 0 12px 30px rgba(0, 0, 0, .45); }
.save-who .tag { height: 26px; padding: 0 10px; border-radius: 99px; background: var(--raise2); border: 1px solid var(--line2); color: var(--haze); font-size: 12.5px; margin-bottom: 4px; }
.save-who .tag.ok { color: var(--ok); }
.save-text { display: grid; gap: 6px; padding: 14px 20px 0; }
.save-text h2 { font-size: 24px; font-weight: 820; font-stretch: 112%; letter-spacing: -.005em; text-wrap: balance; }
.save-text p { color: var(--haze); font-size: 14.5px; text-wrap: pretty; }
.keeps { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 0; }
.keep { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; background: var(--tint); border: 1px solid var(--line2); font-size: 13.5px; color: var(--haze); }
.keep b { color: var(--frost); font-size: 14.5px; font-weight: 780; }
.keep svg.i, .keep .gem { width: 16px; height: 16px; }
.keep svg.star { color: var(--gem2); }
.keep .bag, .keep svg.i:not(.ice):not(.star) { color: var(--glow); }
.keeps.lose .keep { border-color: rgba(255, 107, 127, .28); }
.save-ways, .save-acts, .save-form { display: grid; gap: 10px; padding: 18px 20px 0; }
.save-acts { grid-template-columns: 1fr 1fr; }
.btn.wide svg.i { width: 18px; height: 18px; }
.btn.google { background: #fff; color: #1F1F1F; }
.btn.google:hover { background: #F1F3F4; }
.btn.discord { background: #5865F2; color: #fff; }
.btn.discord:hover { background: #6B76F4; }
.btn.mail { background: var(--tint2); border: 1px solid var(--line2); }
.btn svg.brand { width: 20px; height: 20px; }
.save-fine { padding: 12px 20px 0; text-align: center; }
.notnow, .link { border: 0; background: none; color: var(--haze); font-size: 13.5px; font-weight: 650; padding: 8px 12px; border-radius: 99px; }
.notnow { justify-self: center; margin: 8px auto 0; display: block; }
.notnow:hover, .link:hover { color: var(--frost); background: var(--tint); }
.link { color: var(--glow); padding: 6px 8px; }
.link[aria-disabled="true"] { color: var(--dim); }
.save-row { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px 0; }
.save-pshow { display: flex; justify-content: flex-end; margin: -6px 0 -4px; }
.save-pshow .link { font-size: 12.5px; }
.save-form .lbl { font-size: 13px; font-weight: 700; color: var(--haze); margin-bottom: -4px; }
.field { height: 48px; border-radius: var(--r2); border: 1px solid var(--line2); background: rgba(7, 11, 22, .55); color: var(--frost); font: inherit; font-size: 16px; padding: 0 14px; width: 100%; }
.field:focus { border-color: var(--sap-hi); box-shadow: 0 0 0 3px rgba(63, 123, 255, .25); outline: none; }
.field.code { font-size: 26px; font-weight: 780; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; padding-left: calc(14px + .4em); }
.save-form .err { color: var(--no); font-size: 13.5px; min-height: 0; }
.save-form .err:empty { display: none; }
.hint { font-size: 13px; color: var(--dim); }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--no); }
.sent { padding: 8px 20px 0; color: var(--haze); font-size: 14.5px; overflow-wrap: anywhere; }
.sent b { color: var(--frost); }
.save-wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 20px 0; height: 56px; border-radius: var(--r2); background: var(--tint); color: var(--haze); font-weight: 650; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--tint3); border-top-color: var(--glow); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- telefoon ---------- */
@media (max-width: 520px) {
  .sheet.save { top: auto; bottom: 0; width: 100%; max-height: calc(100% - 16px); transform: translateY(32px); padding-bottom: calc(14px + var(--sb)); }
  .sheet.save.in { transform: none; }
  .save-banner { height: 76px; }
  .save-who { margin-top: -48px; }
  .save-who .av { --s: 84px; }
  .save-text h2 { font-size: 22px; }
  .save-ways, .save-acts, .save-form { padding-top: 16px; }
  .save-ways { gap: 8px; }
  .bar { left: calc(8px + var(--sl)); right: calc(8px + var(--sr)); top: calc(8px + var(--st)); height: 52px; padding: 0 6px 0 4px; gap: 2px; }
  .bar .lbl, .bar .logo .wm, .bar .sep, .bar .hint, .bar .news { display: none !important; }
  .bar .it { padding: 0 8px; height: 40px; }
  .bar .gems { margin: 0 2px; padding: 0 6px 0 8px; }
  .bar .resume { width: 42px; padding: 0; margin-left: 2px; }
  .bar .resume span { display: none; }
  .toasts { top: calc(64px + var(--st)); max-width: calc(100% - 24px); }
  html[data-strip="on"] .toasts { top: calc(68px + var(--st)); }
  .toast { font-size: 13.5px; gap: 8px; padding-right: 12px; }
  .toast > span:not(.amts) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .toast .amts { gap: 7px; padding-left: 8px; flex: none; }
  .menu { left: calc(8px + var(--sl)); right: calc(8px + var(--sr)); width: auto; top: calc(68px + var(--st)); bottom: calc(8px + var(--sb)); max-height: none; }
  .card.docked { left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + var(--sb)); width: auto; max-width: none; transform-origin: 50% 100%; animation: sheet-in .26s var(--spring); }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(28px); } }
  .side { width: 100%; border-radius: 0; border-width: 0; }
  .sheet { left: 0; bottom: 0; width: 100%; border-radius: var(--r3) var(--r3) 0 0; border-width: 1px 0 0; padding: 18px 16px calc(18px + var(--sb)); transform: translateY(32px); max-height: calc(100% - 24px); }
  .sheet.in { transform: none; }
  .sheet.pay { width: 100%; }
  .pay-frame { margin: 0 -16px calc(-18px - var(--sb)); border-radius: 0; padding-bottom: var(--sb); }
  .packs { gap: 6px; }
  .pack { padding: 11px 8px 9px; }
  .pack .amt { font-size: 15.5px; }
  .receipts { left: 12px; right: 12px; justify-items: stretch; }
  .receipt { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .boot-bar i { animation: none; left: 30%; }
  .boot-art .in, .boot.live .boot-art .in { transform: none; }
  .boot-sun, .boot-air, .boot-lights, .boot-flash { display: none; }
}

/* (L3) Cloudflare Turnstile: only seen when Cloudflare wants a click */
.ts-box { position: fixed; left: 50%; bottom: calc(24px + var(--sb, 0px)); transform: translateX(-50%); z-index: 200; }
.ts-box[hidden] { display: none; }
/* (L3) Delete account */
.dialog.delete p { color: var(--haze); font-size: 14px; }
.dialog.delete .lbl { font-size: 13px; font-weight: 700; color: var(--haze); }
.dialog.delete .err { color: var(--no); font-size: 13.5px; }
.dialog.delete .err:empty { display: none; }
.row.click.danger-row b { color: var(--no); }
