
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent,#2f7d4f);outline-offset:2px}
.skip{position:absolute;left:-999px;top:0;background:#12181c;color:#fff;padding:8px 12px;z-index:1000}.skip:focus{left:8px;top:8px}
/* the page's colours; the Game Boy's (the shell around the screen, the same as Home's handheld) and the screen's own
   four shades (PAL in the engine: every sprite outside the screen sits on --lcd, the screen's white, in both themes) */
:root{--ink:#141414;--paper:#faf8f4;--accent:#2f7d4f;--rule:#d8d2c6;--kicker:#b0463c;--muted:#5f5b54;--soft:#efe9de;
  --lcd:#f8f8f8;--lcd-ink:#000;--lcd-mid:#585858;--lcd-lite:#a8a8a8;
  --gb-body:#ebe6db;--gb-edge:#cbc3b2;--gb-bezel:#3f424a;--gb-pad:#2b2d33;--gb-ab:#a8324a;--gb-abedge:#6e1f30;--gb-pill:#8f8a80}
@media (prefers-color-scheme:dark){:root{--ink:#e8e4dc;--paper:#171614;--rule:#3a362e;--accent:#6fbe8f;--kicker:#e08a80;--muted:#aaa49a;--soft:#22201c;
  --gb-body:#cbc4b5;--gb-edge:#a1998a}}
*{margin:0;box-sizing:border-box}
body{font-family:Georgia,'Times New Roman',serif;background:var(--paper);color:var(--ink);line-height:1.55}
.wrap{max-width:760px;margin:0 auto;padding:0 24px}
header{border-bottom:3px double var(--rule);padding:28px 0 18px}
.logo{font-size:clamp(24px,4vw,36px);font-weight:700;letter-spacing:-.5px}.logo a{color:inherit;text-decoration:none}.logo em{font-style:normal;color:var(--accent)}
.tag{font-family:system-ui;font-size:11px;text-transform:uppercase;letter-spacing:.18em;color:var(--kicker)}
main{padding:32px 0 30px}
h1{font-size:clamp(26px,4vw,38px);letter-spacing:-.5px;margin-bottom:10px}
.lede{font-size:15.5px;max-width:600px;margin-bottom:20px}
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.gbframe{background:#8b8b93;border-radius:14px;padding:18px 18px 24px;max-width:520px;margin:0 auto;box-shadow:0 14px 34px rgba(0,0,0,.3)}
#screen{width:100%;aspect-ratio:160/144;image-rendering:pixelated;border-radius:2px;display:block;background:#f8f8f8;cursor:pointer;touch-action:manipulation}
#screen:focus-visible,button:focus-visible,select:focus-visible,.tb:focus-visible,.rcard:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion: reduce){*{animation-duration:.001ms !important;transition-duration:.001ms !important}}
.gamepick{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:0 0 10px;color:#727272;color:color-mix(in srgb,var(--ink) 65%,var(--paper));font-size:12px}
.gamepick button[aria-pressed="true"]{outline:2px solid var(--accent);outline-offset:1px}
.glitchnote{max-width:520px;margin:10px auto 0;font:13px/1.45 system-ui,sans-serif;color:var(--ink);background:var(--paper);border:1px dashed var(--rule);border-radius:8px;padding:8px 10px}
.controls{max-width:520px;margin:14px auto 0;display:flex;gap:8px;justify-content:center;flex-wrap:wrap;align-items:center}
.controls .vs{font-family:ui-monospace,monospace;color:var(--kicker);font-weight:700}
.controls button{font-family:system-ui;font-size:14px;font-weight:700;padding:10px 22px;min-height:44px;border:none;border-radius:8px;background:var(--accent);color:var(--paper);cursor:pointer}
.controls button:disabled{opacity:.5;cursor:default}.controls button.alt{background:none;border:1px solid var(--rule);color:var(--ink)}
.controls select{font-family:system-ui;font-size:13px;padding:9px;border:1px solid var(--rule);border-radius:7px;background:var(--paper);color:var(--ink);max-width:170px}
.controls .volctl{display:inline-flex;align-items:center;gap:6px;font:700 14px system-ui;color:var(--ink)}.controls .volctl select{min-height:44px;font-size:14px}
/* framed (embed, cup, the handheld, the Daily frame): the settings sit in the row as they always did */
body.embed .optwrap,body.cup .optwrap,body.embed #opts,body.cup #opts{display:contents!important}
body.embed #optbtn,body.cup #optbtn,.gbbrand{display:none}
.hint{font-family:system-ui;font-size:12px;color:color-mix(in srgb,var(--ink) 65%,var(--paper));text-align:center;margin-top:10px}
.hint span+span::before{content:" "}
.credit{font-family:system-ui;font-size:12px;color:color-mix(in srgb,var(--ink) 65%,var(--paper));margin:18px auto 0;max-width:600px}
.about{max-width:600px;margin:24px auto 0}.about h2{font-size:18px;margin-bottom:6px}.about p{font-size:14.5px}body.embed .about{display:none}
body.embed header,body.embed footer,body.embed .lede,body.embed .credit,body.embed #linkbox,body.embed .kicker,body.embed h1,body.embed .hint,body.embed .stage-head{display:none}
body.embed main{padding:8px 0}
body.embed .presets,body.embed .teamnote,body.cup .presets,body.cup .teamnote,body.embed #teamshead,body.cup #teamshead{display:none}
.embedcredit{display:none}body.embedx .embedcredit{display:block;max-width:520px;margin:8px auto 0;font:13px/1.4 system-ui,sans-serif;text-align:center}body.embedx .embedcredit a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
/* the team builder as the framed pages show it */
.tray{border:1px solid var(--rule);border-radius:10px;padding:8px 10px;margin-top:8px;cursor:pointer}
.tray.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.trayhead{font-size:11px;font-weight:700;letter-spacing:.14em;color:var(--kicker);margin-bottom:6px}
.tray.active .trayhead{color:var(--accent)}
.slots{display:flex;gap:6px;flex-wrap:wrap}
.slot{width:64px;text-align:center;border:1px dashed var(--rule);border-radius:8px;padding:3px 1px;background:none;cursor:pointer}
.slot.filled{border-style:solid}
.slot .thumb{width:56px;height:56px;margin:0 auto;image-rendering:pixelated;background-repeat:no-repeat}
.slot .nm{font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.slot .empt{color:#727272;color:color-mix(in srgb,var(--ink) 65%,var(--paper));font-size:22px;line-height:56px}
#roster{display:flex;flex-wrap:wrap;gap:4px;max-height:300px;overflow-y:auto;border:1px solid var(--rule);border-radius:10px;padding:8px}
.rcard{width:62px;text-align:center;cursor:pointer;border-radius:6px;padding:2px 0}
.rcard:hover{background:color-mix(in srgb,var(--accent) 12%,transparent)}
.rcard .thumb{width:56px;height:56px;margin:0 auto;image-rendering:pixelated;background-repeat:no-repeat}
.rcard .nm{font-size:9.5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
button.tb{font-family:system-ui;font-size:12px;padding:7px 12px;min-height:44px}
#slotpanel{border:1px solid var(--accent);border-radius:10px;padding:10px;margin-top:8px}
#slotpanel select{max-width:132px;font-size:12px;padding:5px;margin:2px;border:1px solid var(--rule);border-radius:6px;background:var(--paper);color:var(--ink)}
#builder{max-width:560px;margin:16px auto 0;font-family:system-ui;font-size:13px}
.rosterbar{display:flex;gap:8px;align-items:center;margin:10px 0 6px}
#search{flex:1;min-width:0;padding:8px;border:1px solid var(--rule);border-radius:7px;background:var(--paper);color:var(--ink);font-family:system-ui;font-size:16px}
footer{padding:30px 0 46px;font-family:system-ui;font-size:13px;color:color-mix(in srgb,var(--ink) 60%,transparent);display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid var(--rule);margin-top:34px}
footer a{color:var(--accent);text-decoration:none;margin-right:14px}
/* cup mode (opt-in, /lab/battle?embed=1&cup=prime inside the Stadium Cup Lab): the parent page owns team building */
body.cup #builder,body.cup #start,body.cup #again,body.cup .about,body.cup #linkbox{display:none!important}
body.cup main{padding:0}
body.cup .wrap{padding:0 8px}
body.cup .gbframe{padding:12px 12px 16px}
/* Battle a friend (the link box), the empty queue choices, the panel after a battle, challenge links */
.btnp{font-family:system-ui;font-size:14px;font-weight:700;padding:10px 18px;min-height:44px;border:none;border-radius:8px;background:var(--accent);color:var(--paper);cursor:pointer}
.btns{font-family:system-ui;font-size:14px;font-weight:700;padding:10px 16px;min-height:44px;border:1px solid var(--rule);border-radius:8px;background:none;color:var(--ink);cursor:pointer}
.linkbtn{font-family:system-ui;font-size:13px;padding:10px 4px;min-height:44px;border:none;background:none;color:var(--accent);text-decoration:underline;cursor:pointer}
.gfsub{font-family:system-ui;font-size:12.5px;color:#727272;color:color-mix(in srgb,var(--ink) 65%,var(--paper))}
.panel{max-width:560px;margin:14px auto 0;font-family:system-ui;font-size:13px;border:1px solid var(--rule);border-radius:10px;padding:12px}
.panel .row,.row{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.panelhead{font-size:11px;font-weight:700;letter-spacing:.14em;color:var(--kicker);margin-bottom:6px}
.chalbox{border-color:var(--accent);margin:0 0 18px}
.chalteam{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0}
.chalteam .thumb{width:56px;height:56px;image-rendering:pixelated;background-repeat:no-repeat}
.chalmon{width:56px;text-align:center}
.chalmon .lv{font-size:11px;line-height:1.2}
.chalname{font-weight:700;font-size:15px}
.chalopt{display:flex;gap:8px;align-items:center;min-height:44px;margin:4px 0 0;font-size:13px;cursor:pointer}
.chalopt input{width:20px;height:20px;flex:none;margin:0;accent-color:var(--accent)}
.sharefield{display:none;width:100%;margin-top:8px;padding:8px;border:1px solid var(--rule);border-radius:6px;background:var(--paper);color:var(--ink);font-family:ui-monospace,monospace;font-size:12px}
body.embed #playbar,body.embed #after,body.embed #chalbox,body.cup #playbar,body.cup #after,body.cup #chalbox{display:none!important}
/* Daily Champion panel, and "Why did that happen?" under the screen */
.dailybox{margin:0 0 18px;max-width:none}
.dtitle{font-weight:700;font-size:16px;margin-bottom:2px}
.dteam{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0;min-height:72px}
.dmon{width:64px;text-align:center}
.dmon .thumb{width:56px;height:56px;margin:0 auto;image-rendering:pixelated;background-repeat:no-repeat}
.dmon .nm{font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dline{font-weight:700;font-size:15px;margin:10px 0 6px}
.dstats{display:flex;gap:18px;flex-wrap:wrap;margin:10px 0 4px}
.dstats div{font-size:12px;color:#727272;color:color-mix(in srgb,var(--ink) 65%,var(--paper))}
.dstats b{display:block;font-size:20px;color:var(--ink)}
#dstat:empty,#dnext:empty{display:none}
#dstat{margin-top:6px}
.why summary{cursor:pointer;font-weight:700;min-height:44px;padding:10px 0}
.whybody{margin-top:8px;line-height:1.5}
.whybody .wt{font-size:11px;font-weight:700;letter-spacing:.14em;color:var(--kicker);margin:4px 0}
.whybody .wm{margin:8px 0 2px;font-weight:700}
.whybody ul{margin:0;padding-left:18px}
.whybody li{margin:2px 0}
.about h3{font-size:15px;margin:12px 0 2px}
.about p+p{margin-top:8px}
body.dailyon #builder,body.dailyon #linkbox{display:none}
body.embed #daily,body.embed #why,body.embed #dailybtn,body.cup #daily,body.cup #why{display:none!important}
.dshareline{font-family:ui-monospace,monospace;font-size:13px;line-height:1.5;margin:8px 0;padding:8px 10px;border:1px solid var(--rule);border-radius:6px;overflow-wrap:anywhere}
/* the Daily Champion page's frame (/lab/battle?embed=1&daily=1 inside /lab/daily-champion): the screen and its buttons only */
body.dailyframe #builder,body.dailyframe #start,body.dailyframe #again{display:none!important}
/* the handheld on Home (/lab/battle?handheld=1, a frame of a page of this site only): the 160 x 144 screen alone, filling
   the frame, which Home sizes to a whole number of pixels; Home draws the console and its buttons around it */
body.handheld{background:#f8f8f8;overflow:hidden}body.handheld .wrap{max-width:none;padding:0}body.handheld main{padding:0}
body.handheld main>:not(.stage),body.handheld .stage-head,body.handheld .col-b,body.handheld .col-a>:not(.console),body.handheld .console>:not(.gbframe),body.handheld footer{display:none!important}
body.handheld .gbframe{max-width:none;margin:0;padding:0!important;border-radius:0;background:none;box-shadow:none}
body.handheld #screen{width:100%!important;height:auto!important;border-radius:0}
/* Wild glitch encounters (#wildbox, /lab/battle#wild) */
.wildbox{margin:0 0 18px;max-width:none}
.wtabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.wtabs button{font-family:system-ui;font-size:14px;font-weight:700;padding:9px 14px;min-height:44px;border:1px solid var(--rule);border-radius:8px;background:none;color:var(--ink);cursor:pointer}
.wtabs button[aria-selected="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.wgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:4px 12px}
.wfield{display:flex;flex-direction:column;gap:4px;font-size:13px;margin:6px 0;min-width:0}
.wfield select,.wfield input{font-family:system-ui;font-size:15px;padding:9px;min-height:44px;width:100%;border:1px solid var(--rule);border-radius:7px;background:var(--paper);color:var(--ink)}
.wset{border:0;border-top:1px solid var(--rule);padding:8px 0 0;margin:10px 0;min-width:0}
.wset legend{font-size:13px;font-weight:700;padding:0 6px 0 0}
.wbytes{font-family:ui-monospace,monospace;font-size:12px;overflow-wrap:anywhere;margin:6px 0}
.wslots{list-style:none;padding:0;margin:8px 0;display:grid;gap:0;border-top:1px solid var(--rule)}
.wslot{display:grid;grid-template-columns:3.6em 3.6em 4.2em minmax(0,1fr);gap:6px;align-items:center;width:100%;text-align:left;font-family:system-ui;font-size:13px;padding:8px 8px 8px 24px;min-height:44px;border:0;border-bottom:1px solid var(--rule);border-radius:0;background:none;color:var(--ink);cursor:pointer;position:relative}
.wslot:hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}
.wslot[aria-pressed="true"]{background:color-mix(in srgb,var(--ink) 7%,transparent)}
.wslot[aria-pressed="true"]::before{content:"\25B6";position:absolute;left:6px;font-size:11px}
.wslot .wn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wcard{border-top:1px solid var(--rule);margin-top:10px;padding-top:10px}
.wtitle{display:flex;gap:10px;align-items:center}
.wtitle .thumb{width:56px;height:56px;flex:none;image-rendering:pixelated;background-repeat:no-repeat}
.wtt{min-width:0}.wtt b{font-size:15px}
.wnote{font-size:13px;margin:6px 0}
body.embed #wildbox,body.cup #wildbox,body.embed #wildbtn,body.cup #wildbtn{display:none!important}
#wildbox[hidden],#wildbox [hidden]{display:none!important}
/* tap targets and contrast (2026-11-10): the code and search boxes at 44 px; prose links readable in the dark scheme */
#joincode,#search{min-height:44px}
#joincode{width:96px;text-transform:uppercase;padding:7px;border:1px solid var(--rule);border-radius:6px;background:var(--paper);color:var(--ink);font:16px ui-monospace,monospace}
/* the Full screen button's row under the screen (added by the full screen script), reserved here so the engine
   loading late on a slow phone never pushes the page down; embed mode without the button gives the room back */
.gbframe{position:relative;padding-bottom:66px}
.gbbar{position:absolute;right:18px;bottom:12px;left:18px;display:flex;justify-content:flex-end}
body.embed .gbframe:not(.hasfs){padding-bottom:24px}
@media (prefers-color-scheme:dark){main a:not([class]):link,main a:not([class]):visited{color:var(--accent)}}
/* buttons outside the controls row (the builder, the lobby, the slot editor) in the page's colours, never the
   browser's own gray */
button.alt{font-family:system-ui;font-weight:700;border:1px solid var(--rule);border-radius:8px;background:none;color:var(--ink);cursor:pointer}
button.alt:hover{background:color-mix(in srgb,var(--ink) 6%,transparent)}
.lobbycode{font:800 22px/1 ui-monospace,monospace;letter-spacing:.2em}
.lobbytab{border-collapse:collapse;margin:10px 0;font-size:13px}.lobbytab td{padding:2px 14px 2px 0}
#afterres{font-weight:700;font-size:15px;margin-bottom:6px}
#chalstat{margin-top:6px}

/* ==================== the page itself (not framed): the game first, the whole window used ==================== */
/* The stage: the title, then the console (the Game Boy) and beside it, on a desktop, the rail with the ways to play,
   both teams, today's Daily and the link box; on a phone the same parts in one column, the console first. The game's
   own look (its text box border tiles, its screen white) groups what belongs to the game; layout, rules and type
   group the rest. */
body:not(.embed):not(.cup) .wrap{max-width:1240px}
body:not(.embed):not(.cup) main{padding:14px 0 30px}
.stage-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin:0 0 14px}
.stage-head h1{font-size:clamp(22px,2.6vw,32px);line-height:1.15;letter-spacing:-.4px;margin:0}
.stage-tag{font:14px/1.45 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--muted);flex:1 1 320px;min-width:0;text-align:right}
body:not(.embed):not(.cup) .stage-grid{display:flex;flex-direction:column;gap:22px}
body:not(.embed):not(.cup) .col{display:contents}
.o-con{order:1}.o-after{order:2}.o-why{order:3}.o-chal{order:4}.o-wild{order:5}.o-menu{order:6}.o-teams{order:7}.o-daily{order:8}.o-link{order:9}
/* headings inside the stage: small capitals and a rule, no boxes */
.sec,.stage .dtitle{display:flex;align-items:center;gap:12px;margin:0 0 10px;font:700 12px/1.3 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--kicker)}
.sec::after,.stage .dailybox>.dtitle::after{content:"";flex:1;height:1px;background:var(--rule)}
body:not(.embed):not(.cup) .panel{max-width:none;margin:0;border:0;border-radius:0;padding:0;font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-size:14px}
body:not(.embed):not(.cup) .gfsub{font-size:13.5px;line-height:1.5;color:var(--muted)}
body:not(.embed):not(.cup) .dailybox,body:not(.embed):not(.cup) .wildbox,body:not(.embed):not(.cup) .chalbox{margin:0}
/* buttons on the page: one primary, one plain, both with a little weight under them like the console's own */
body:not(.embed):not(.cup) .btnp,body:not(.embed):not(.cup) .btns,body:not(.embed):not(.cup) button.alt.tb{border-radius:10px;font-size:14px}
body:not(.embed):not(.cup) .btnp{background:var(--ink);color:var(--paper);box-shadow:0 2px 0 color-mix(in srgb,var(--ink) 55%,var(--paper))}
body:not(.embed):not(.cup) .btnp:hover{background:color-mix(in srgb,var(--ink) 85%,var(--paper))}
body:not(.embed):not(.cup) .btns,body:not(.embed):not(.cup) button.alt.tb{background:var(--paper);border:1px solid color-mix(in srgb,var(--ink) 30%,var(--paper));box-shadow:0 2px 0 var(--rule)}
body:not(.embed):not(.cup) .btnp:active,body:not(.embed):not(.cup) .btns:active,body:not(.embed):not(.cup) button.alt.tb:active{transform:translateY(1px);box-shadow:none}
body:not(.embed):not(.cup) .btnp:disabled,body:not(.embed):not(.cup) .btns:disabled{opacity:.45;cursor:default;transform:none}

/* ---------- the console: a Game Boy built in CSS (the colours of Home's handheld; no logo, no picture) ---------- */
/* the body: --sp around the screen, the bezel a ring --bz wide drawn by the screen's own shadow (so the screen keeps a
   whole number of pixels: the full screen script sizes it from the frame's inner width) */
body:not(.embed):not(.cup) .console{--bz:14px;--sp:20px;position:relative;margin:0 -16px;padding:calc(var(--sp) + var(--bz)) calc(var(--sp) + var(--bz)) 18px;
  background:var(--gb-body);border-radius:0 0 48px 0;box-shadow:inset 0 -4px 0 var(--gb-edge),inset 0 1px 0 rgba(255,255,255,.5);font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
body:not(.embed):not(.cup) .console .gbframe{max-width:none;margin:0;padding:0;background:none;border-radius:0;box-shadow:none;position:relative}
body:not(.embed):not(.cup) .console #screen{border-radius:1px;box-shadow:0 0 0 1px #2a2c31,0 0 0 var(--bz) var(--gb-bezel),0 0 0 calc(var(--bz) + 1px) rgba(0,0,0,.22)}
body:not(.embed):not(.cup) .console #screen:focus-visible{outline:3px solid var(--accent);outline-offset:calc(var(--bz) + 3px)}
/* the power light on the bezel, left of the screen */
body:not(.embed):not(.cup) .console::before{content:"";position:absolute;left:calc(var(--sp) + 3px);top:calc(var(--sp) + var(--bz) + 22px);width:7px;height:7px;border-radius:50%;background:#d9473b;box-shadow:0 0 6px rgba(217,71,59,.7);z-index:1}
body:not(.embed):not(.cup) .console.idle::before{background:#5d5952;box-shadow:none}
body:not(.embed):not(.cup) .gbbrand{display:block;margin:calc(var(--bz) + 10px) 0 0 2px;font:italic 700 15px/1 Georgia,'Times New Roman',serif;color:#3f424a;letter-spacing:-.01em}
body:not(.embed):not(.cup) .gbbrand em{color:#2f7d4f;font-style:italic}
/* the full screen script's row under the screen: its button moves into the controls (the page script), the row goes */
body:not(.embed):not(.cup) .console .gbframe.hasfs{padding-bottom:0}
body:not(.embed):not(.cup) .console .gbframe>.gbbar{display:none}
/* the pad on a touch screen in a battle (the full screen script puts it in the frame): the console's own buttons */
body:not(.embed):not(.cup) .console .gbframe.gfpad.gfbattle>.fspads{margin:calc(var(--bz) + 14px) 0 0}
body:not(.embed):not(.cup) .console .fspads .fsdpad .fsk,body:not(.embed):not(.cup) .console .fspads .fsdpad .mid{background:var(--gb-pad);color:#8a8d96}
body:not(.embed):not(.cup) .console .fspads .fsab .fsk{background:var(--gb-ab);box-shadow:0 3px 0 var(--gb-abedge)}
/* a phone held sideways: the pad beside the screen, the brand and the controls under them */
body:not(.embed):not(.cup) .console .gbframe.gfside{margin:0 auto}
body:not(.embed):not(.cup) .console:has(.gfside) .controls{justify-content:center}
body:not(.embed):not(.cup) .console:has(.gfside) .controls #start{flex:0 1 auto;min-width:180px}
body:not(.embed):not(.cup) .console:has(.gfside) .gbbrand{text-align:center}
body:not(.embed):not(.cup) .console .gbframe.gfside #screen{box-shadow:0 0 0 1px #2a2c31,0 0 0 9px var(--gb-bezel),0 0 0 10px rgba(0,0,0,.22)}
/* the controls: the primary action, then Options (everything else), then full screen */
body:not(.embed):not(.cup) .console .controls{max-width:none;margin:12px 0 0;justify-content:flex-start;flex-wrap:nowrap;gap:10px}
body:not(.embed):not(.cup) .console .controls #start{flex:1 1 auto;min-width:0;white-space:nowrap;padding:0 18px;min-height:46px;border-radius:23px;background:var(--gb-ab);color:#fff;font:800 15px system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;letter-spacing:.02em;box-shadow:0 3px 0 var(--gb-abedge)}
body:not(.embed):not(.cup) .console .controls #start:hover{background:#b93a55}
body:not(.embed):not(.cup) .console .controls #start:active{transform:translateY(2px);box-shadow:0 1px 0 var(--gb-abedge)}
body:not(.embed):not(.cup) .console .controls #start:disabled{opacity:.5;transform:none}
body:not(.embed):not(.cup) .console .controls button.alt,body:not(.embed):not(.cup) .console .controls .optbtn,body:not(.embed):not(.cup) .console .controls .fsbtn{
  flex:none;min-height:46px;padding:0 16px;border:0;border-radius:23px;background:#d8d2c5;color:#2b2d33;font:700 14px system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;box-shadow:0 3px 0 #a9a192;cursor:pointer}
body:not(.embed):not(.cup) .console .controls .fsbtn{padding:0 14px;gap:8px;display:inline-flex;align-items:center}
body:not(.embed):not(.cup) .console .controls button.alt:hover,body:not(.embed):not(.cup) .console .controls .optbtn:hover,body:not(.embed):not(.cup) .console .controls .fsbtn:hover{background:#cfc8ba}
body:not(.embed):not(.cup) .console .controls .optbtn[aria-expanded="true"]{background:#2b2d33;color:#f1efe9;box-shadow:0 3px 0 #111}
body:not(.embed):not(.cup) .console .controls button:focus-visible{outline:3px solid #2b2d33;outline-offset:2px}
.optbtn::after{content:"";display:inline-block;margin-left:8px;border:5px solid transparent;border-top-color:currentColor;border-bottom-width:0;vertical-align:2px}
.optwrap{position:relative;display:inline-flex}
/* Options: the game's own menu look, its text box border tiles (from the battler's font) on the screen's white */
body:not(.embed):not(.cup) .opts{position:absolute;z-index:60;right:0;bottom:calc(100% + 10px);display:flex;flex-direction:column;gap:0;width:268px;padding:6px 4px;
  background:var(--lcd);color:var(--lcd-ink);border:16px solid transparent;border-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAz0lEQVR42u1ZQQ6AIAwD44H/v3Y3PXFwyTJgsMDsbmriaOsqY5mInnRwXOnwuKUHpZTPNRG5Lqw1//EKZF4DFXlFLDHB71uDv1fLH0+BXkZn18Ro/ngupDHLmbLWAs/Xmz++C7W60yoX0tYVtwY0/1/lQq3+H38v5MV87584vgISA9670d/0AwAAAAAAAAAAAAAAAAAAABv3xLv3BfF7Yi8lRs+dMB/wPpXAfEBiYlYN9ObHfADzgdUuZPVpqwtp64qngPStYVLvrQD6Aad4AeZgvFfQpMAiAAAAAElFTkSuQmCC") 16 / 16px / 0 stretch;image-rendering:pixelated;
  box-shadow:0 18px 44px rgba(0,0,0,.4)}
body:not(.embed):not(.cup) .opts.below{bottom:auto;top:calc(100% + 10px)}
body:not(.embed):not(.cup) .opts[hidden]{display:none}
body:not(.embed):not(.cup) .console .controls .opts button,body:not(.embed):not(.cup) .console .controls .opts .volctl{position:relative;display:flex;align-items:center;width:100%;min-height:44px;margin:0;padding:0 8px 0 26px;border:0;border-radius:0;background:none;box-shadow:none;
  color:var(--lcd-ink);font:700 15px/1.2 ui-monospace,'SF Mono',Menlo,Consolas,monospace;letter-spacing:.04em;text-transform:uppercase;text-align:left;cursor:pointer}
body:not(.embed):not(.cup) .console .controls .opts button:hover,body:not(.embed):not(.cup) .console .controls .opts button:focus-visible{background:#e8e8e8;outline:none}
body:not(.embed):not(.cup) .console .controls .opts button:hover::before,body:not(.embed):not(.cup) .console .controls .opts button:focus-visible::before{content:"\25B6";position:absolute;left:8px;font-size:12px}
body:not(.embed):not(.cup) .console .controls .opts .volctl{justify-content:space-between;cursor:default}
body:not(.embed):not(.cup) .console .controls .opts .volctl select{min-height:36px;max-width:none;padding:0 6px;border:2px solid var(--lcd-ink);border-radius:0;background:var(--lcd);color:var(--lcd-ink);font:700 14px ui-monospace,'SF Mono',Menlo,Consolas,monospace;text-transform:uppercase}
.hint .hint-touch{display:none}
@media (pointer:coarse){.hint .hint-touch{display:inline}.hint .hint-keys{display:none}}
body:not(.embed):not(.cup) .stage .hint{margin:8px 0 0;font-size:12.5px;text-align:left;color:var(--muted)}
body:not(.embed):not(.cup) .glitchnote{max-width:none;margin:12px 0 0}
/* "Why did that happen?" waits for the first battle (body.played), unless something opened it */
body:not(.embed):not(.cup):not(.played) #why:not([open]){display:none}
body:not(.embed):not(.cup) .why{border-top:1px solid var(--rule)}
body:not(.embed):not(.cup) .why summary{font:700 14px system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
body:not(.embed):not(.cup) .why[open]{padding-bottom:12px}
body:not(.embed):not(.cup) #after{padding:2px 0 0}
/* full screen: the primary button steps aside while a battle is on (it cannot be pressed then), keeping its room */
body:not(.embed):not(.cup) .fsl .fsact button:disabled{visibility:hidden}

/* ---------- the ways to play: a menu, the game's cursor on the one you point at ---------- */
.ways{display:grid;grid-template-columns:minmax(0,1fr);border-top:1px solid var(--rule)}
.way{position:relative;display:block;width:100%;min-height:56px;padding:11px 8px 11px 28px;border:0;border-bottom:1px solid var(--rule);background:none;color:var(--ink);text-align:left;cursor:pointer;font:14px/1.35 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
.way b{display:block;font:700 17px/1.25 Georgia,'Times New Roman',serif;letter-spacing:-.01em}
.way span{display:block;margin-top:2px;color:var(--muted);font-size:13.5px}
.way::before{content:"\25B6";position:absolute;left:8px;top:15px;font-size:12px;color:var(--ink);opacity:0}
.way:hover::before,.way:focus-visible::before{opacity:1}
.way:hover b,.way:focus-visible b{color:var(--accent)}
.way:focus-visible{outline-offset:-3px}
@media (min-width:560px){.ways{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}}

/* ---------- the teams: each a box drawn with the game's own text box tiles, on the screen's white ---------- */
.lcdbox{background:var(--lcd);color:var(--lcd-ink);border:16px solid transparent;border-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAz0lEQVR42u1ZQQ6AIAwD44H/v3Y3PXFwyTJgsMDsbmriaOsqY5mInnRwXOnwuKUHpZTPNRG5Lqw1//EKZF4DFXlFLDHB71uDv1fLH0+BXkZn18Ro/ngupDHLmbLWAs/Xmz++C7W60yoX0tYVtwY0/1/lQq3+H38v5MV87584vgISA9670d/0AwAAAAAAAAAAAAAAAAAAABv3xLv3BfF7Yi8lRs+dMB/wPpXAfEBiYlYN9ObHfADzgdUuZPVpqwtp64qngPStYVLvrQD6Aad4AeZgvFfQpMAiAAAAAElFTkSuQmCC") 16 / 16px / 0 stretch;image-rendering:pixelated}
body:not(.embed):not(.cup) #builder{max-width:none;margin:0;font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-size:14px}
.teamgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
body:not(.embed):not(.cup) .tray{container-type:inline-size;margin:0;padding:2px 4px 6px;border-radius:0;box-shadow:none;background:var(--lcd);color:var(--lcd-ink);border:16px solid transparent;border-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAz0lEQVR42u1ZQQ6AIAwD44H/v3Y3PXFwyTJgsMDsbmriaOsqY5mInnRwXOnwuKUHpZTPNRG5Lqw1//EKZF4DFXlFLDHB71uDv1fLH0+BXkZn18Ro/ngupDHLmbLWAs/Xmz++C7W60yoX0tYVtwY0/1/lQq3+H38v5MV87584vgISA9670d/0AwAAAAAAAAAAAAAAAAAAABv3xLv3BfF7Yi8lRs+dMB/wPpXAfEBiYlYN9ObHfADzgdUuZPVpqwtp64qngPStYVLvrQD6Aad4AeZgvFfQpMAiAAAAAElFTkSuQmCC") 16 / 16px / 0 stretch;image-rendering:pixelated}
body:not(.embed):not(.cup) .tray.active{box-shadow:none}
body:not(.embed):not(.cup) .trayhead,body:not(.embed):not(.cup) .tray.active .trayhead{position:relative;margin:0 0 6px;padding-left:16px;color:var(--lcd-ink);font:700 12px/1.4 ui-monospace,'SF Mono',Menlo,Consolas,monospace;letter-spacing:.08em}
body:not(.embed):not(.cup) .tray.active .trayhead::before{content:"\25B6";position:absolute;left:0;top:0;font-size:11px}
body:not(.embed):not(.cup) .tray .slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 4px}
@container (min-width:390px){body:not(.embed):not(.cup) .tray .slots{grid-template-columns:repeat(6,minmax(0,1fr))}}
body:not(.embed):not(.cup) .slot{width:auto;min-width:0;min-height:76px;padding:2px 0 4px;border:0;border-radius:0;color:var(--lcd-ink)}
body:not(.embed):not(.cup) .slot.filled:hover{background:#e6e6e6}
body:not(.embed):not(.cup) .slot .nm{font:600 10.5px/1.3 ui-monospace,'SF Mono',Menlo,Consolas,monospace;letter-spacing:.02em;color:var(--lcd-ink)}
body:not(.embed):not(.cup) .slot .empt{width:56px;height:56px;margin:0 auto;border:2px dotted var(--lcd-lite);color:var(--lcd-mid);font:400 24px/52px ui-monospace,monospace}
body:not(.embed):not(.cup) .slot:not(.filled):hover .empt{border-color:var(--lcd-mid)}
.presets{display:flex;flex-wrap:wrap;align-items:center;gap:0 2px;margin:6px 0 0}
.presets .pset,.presets .pfam select{min-height:44px;padding:0 10px;border:0;border-radius:8px;background:none;color:var(--ink);font:600 14px system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;cursor:pointer;text-decoration:underline;text-decoration-color:var(--rule);text-underline-offset:4px}
.presets button.pset:hover{text-decoration-color:var(--accent)}
.presets .pfam select{text-decoration:none;max-width:12em;padding:0 6px;border:1px solid var(--rule);background:var(--paper)}
.presets .pset:first-child{padding-left:2px}
.teamnote{margin:10px 0 0}
body:not(.embed):not(.cup) #slotpanel{margin:14px 0 0;padding:12px 0 0;border:0;border-top:2px solid var(--ink);border-radius:0}
body:not(.embed):not(.cup) #slotpanel [style*="color:#888"]{color:var(--muted)!important}
body:not(.embed):not(.cup) #slotpanel select{max-width:none;font-size:14px}
body:not(.embed):not(.cup) #slotpanel button.alt.tb{margin:8px 8px 0 0;padding:0 16px}
body:not(.embed):not(.cup) .rosterbar{margin:18px 0 8px}
body:not(.embed):not(.cup) .gamepick{gap:0;margin:0 0 10px;font-size:13px;color:var(--muted)}
body:not(.embed):not(.cup) .gamepick span{margin-right:10px}
body:not(.embed):not(.cup) .gamepick button.alt.tb{min-height:40px;padding:0 14px;border-radius:0;box-shadow:none;font-size:13px}
body:not(.embed):not(.cup) .gamepick button.alt.tb+button.alt.tb{margin-left:-1px}
body:not(.embed):not(.cup) .gamepick span+button.alt.tb{border-radius:8px 0 0 8px}
body:not(.embed):not(.cup) .gamepick button.alt.tb:last-child{border-radius:0 8px 8px 0}
body:not(.embed):not(.cup) .gamepick button[aria-pressed="true"]{outline:0;background:var(--ink);border-color:var(--ink);color:var(--paper)}
/* the roster: one surface for every sprite, the screen's white */
body:not(.embed):not(.cup) #roster{gap:2px;max-height:330px;padding:8px 6px;border:16px solid transparent;border-radius:0;background:var(--lcd);color:var(--lcd-ink);border-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAz0lEQVR42u1ZQQ6AIAwD44H/v3Y3PXFwyTJgsMDsbmriaOsqY5mInnRwXOnwuKUHpZTPNRG5Lqw1//EKZF4DFXlFLDHB71uDv1fLH0+BXkZn18Ro/ngupDHLmbLWAs/Xmz++C7W60yoX0tYVtwY0/1/lQq3+H38v5MV87584vgISA9670d/0AwAAAAAAAAAAAAAAAAAAABv3xLv3BfF7Yi8lRs+dMB/wPpXAfEBiYlYN9ObHfADzgdUuZPVpqwtp64qngPStYVLvrQD6Aad4AeZgvFfQpMAiAAAAAElFTkSuQmCC") 16 / 16px / 0 stretch;image-rendering:pixelated;scrollbar-color:var(--lcd-mid) var(--lcd)}
body:not(.embed):not(.cup) .rcard{width:64px;border-radius:0}
body:not(.embed):not(.cup) .rcard:hover{background:#e6e6e6}
body:not(.embed):not(.cup) .rcard .nm{font:600 9.5px/1.3 ui-monospace,'SF Mono',Menlo,Consolas,monospace;color:var(--lcd-ink)}
/* ---------- the team builder's cursor (2026-11-20, Garden: "the mon you are highlighted on should be obvious") ----------
   The slot you are on, and the slot or list Pokemon the keys, the mouse or a finger point at, wear the game's own marks
   in the box's ink: a frame round the cell and its name inverted behind the menu cursor. The slot you chose keeps a
   hollow cursor while you point somewhere else in its box, as the game's SWITCH does. The sprites stay on the screen's
   white in both themes (the box is the screen's white in both), so the marks are black on #f8f8f8 everywhere. */
body:not(.embed):not(.cup) .tray .slot{padding:5px 0 3px}
body:not(.embed):not(.cup) .rcard{padding:4px 0 3px}
body:not(.embed):not(.cup) .slot.filled:hover,body:not(.embed):not(.cup) .rcard:hover{background:none}
body:not(.embed):not(.cup) .slot.gf-cur,body:not(.embed):not(.cup) .slot:focus-visible,body:not(.embed):not(.cup) .rcard:focus-visible{outline:none;box-shadow:inset 0 0 0 3px var(--lcd-ink)}
body:not(.embed):not(.cup) .slot .nm,body:not(.embed):not(.cup) .rcard .nm{padding:1px 0}
body:not(.embed):not(.cup) .slot.gf-cur .nm,body:not(.embed):not(.cup) .slot:focus-visible .nm,body:not(.embed):not(.cup) .rcard:focus-visible .nm{background:var(--lcd-ink);color:var(--lcd)}
body:not(.embed):not(.cup) .slot.gf-cur .nm::before,body:not(.embed):not(.cup) .slot:focus-visible .nm::before,body:not(.embed):not(.cup) .rcard:focus-visible .nm::before{content:"\25B6\00a0"}
body:not(.embed):not(.cup) .slot.gf-cur .empt,body:not(.embed):not(.cup) .slot:not(.filled):focus-visible .empt{border:2px solid var(--lcd-ink);color:var(--lcd-ink)}
body:not(.embed):not(.cup) .slot.gf-cur:not(.filled)::after,body:not(.embed):not(.cup) .slot:not(.filled):focus-visible::after{content:"\25B6\0000a0ADD";display:block;margin:3px auto 0;padding:1px 2px;background:var(--lcd-ink);color:var(--lcd);font:600 10.5px/1.3 ui-monospace,'SF Mono',Menlo,Consolas,monospace;letter-spacing:.02em}
@media (hover:hover){
  body:not(.embed):not(.cup) .slot:hover,body:not(.embed):not(.cup) .rcard:hover{box-shadow:inset 0 0 0 3px var(--lcd-ink)}
  body:not(.embed):not(.cup) .slot.filled:hover .nm,body:not(.embed):not(.cup) .rcard:hover .nm{background:var(--lcd-ink);color:var(--lcd)}
  body:not(.embed):not(.cup) .slot.filled:hover .nm::before,body:not(.embed):not(.cup) .rcard:hover .nm::before{content:"\25B6\00a0"}
  body:not(.embed):not(.cup) .slot:not(.filled):hover .empt{border:2px solid var(--lcd-ink);color:var(--lcd-ink)}
  body:not(.embed):not(.cup) .slot:not(.filled):hover::after{content:"\25B6\0000a0ADD";display:block;margin:3px auto 0;padding:1px 2px;background:var(--lcd-ink);color:var(--lcd);font:600 10.5px/1.3 ui-monospace,'SF Mono',Menlo,Consolas,monospace;letter-spacing:.02em}
  body:not(.embed):not(.cup) .slots:has(.slot:hover:not(.gf-cur)) .slot.gf-cur .nm::before{content:"\25B7\00a0"}
  body:not(.embed):not(.cup) .slots:has(.slot:hover:not(.gf-cur)) .slot.gf-cur:not(.filled)::after{content:"\25B7\0000a0ADD"}
}
body:not(.embed):not(.cup) .slots:has(.slot:focus-visible:not(.gf-cur)) .slot.gf-cur .nm::before{content:"\25B7\00a0"}
body:not(.embed):not(.cup) .slots:has(.slot:focus-visible:not(.gf-cur)) .slot.gf-cur:not(.filled)::after{content:"\25B7\0000a0ADD"}
/* one cursor in a box: its head's arrow (the team the list adds to) steps back while a slot in it has the cursor */
body:not(.embed):not(.cup) .tray:has(.slot.gf-cur,.slot:focus-visible) .trayhead::before{visibility:hidden}
/* the line that says whose team it is */
.teamhint{display:none}
body:not(.embed):not(.cup) .teamhint{display:block;margin:0 0 8px;font:15px/1.45 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--ink)}
/* the slot editor opens under the team it edits; its head: the Pokemon's name, then Remove from team */
body:not(.embed):not(.cup) .team #slotpanel{margin:12px 0 4px}
body:not(.embed):not(.cup) #slotpanel .gf-slothead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
body:not(.embed):not(.cup) #slotpanel .gf-slotname{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
body:not(.embed):not(.cup) #slotpanel .gf-slotname b{font:700 19px/1.25 Georgia,'Times New Roman',serif;color:var(--ink)}
body:not(.embed):not(.cup) #slotpanel .gf-slotname span{font-size:13px!important;white-space:normal!important}
body:not(.embed):not(.cup) #slotpanel .gf-slothead #slotrm{flex:none;margin:0;min-height:48px;padding:0 14px;border:2px solid var(--ink);font-size:15px;box-shadow:0 2px 0 color-mix(in srgb,var(--ink) 45%,var(--paper))}
body:not(.embed):not(.cup) #slotpanel .gf-slothead #slotrm:hover{background:color-mix(in srgb,var(--ink) 8%,var(--paper))}
/* the Daily team, a challenge's teams, the wild Pokemon: on the screen's white too */
body:not(.embed):not(.cup) .dteam{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));container-type:inline-size;gap:2px 4px;padding:6px 4px;background:var(--lcd);color:var(--lcd-ink);border:16px solid transparent;border-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAz0lEQVR42u1ZQQ6AIAwD44H/v3Y3PXFwyTJgsMDsbmriaOsqY5mInnRwXOnwuKUHpZTPNRG5Lqw1//EKZF4DFXlFLDHB71uDv1fLH0+BXkZn18Ro/ngupDHLmbLWAs/Xmz++C7W60yoX0tYVtwY0/1/lQq3+H38v5MV87584vgISA9670d/0AwAAAAAAAAAAAAAAAAAAABv3xLv3BfF7Yi8lRs+dMB/wPpXAfEBiYlYN9ObHfADzgdUuZPVpqwtp64qngPStYVLvrQD6Aad4AeZgvFfQpMAiAAAAAElFTkSuQmCC") 16 / 16px / 0 stretch;image-rendering:pixelated}
@media (min-width:430px){body:not(.embed):not(.cup) .dteam{grid-template-columns:repeat(6,minmax(0,1fr))}}
body:not(.embed):not(.cup) .dmon{width:auto;min-width:0}
body:not(.embed):not(.cup) .chalteam{display:flex;flex-wrap:wrap;gap:2px 6px;padding:6px 8px;min-height:0;background:var(--lcd);color:var(--lcd-ink);border:16px solid transparent;border-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAz0lEQVR42u1ZQQ6AIAwD44H/v3Y3PXFwyTJgsMDsbmriaOsqY5mInnRwXOnwuKUHpZTPNRG5Lqw1//EKZF4DFXlFLDHB71uDv1fLH0+BXkZn18Ro/ngupDHLmbLWAs/Xmz++C7W60yoX0tYVtwY0/1/lQq3+H38v5MV87584vgISA9670d/0AwAAAAAAAAAAAAAAAAAAABv3xLv3BfF7Yi8lRs+dMB/wPpXAfEBiYlYN9ObHfADzgdUuZPVpqwtp64qngPStYVLvrQD6Aad4AeZgvFfQpMAiAAAAAElFTkSuQmCC") 16 / 16px / 0 stretch;image-rendering:pixelated}
body:not(.embed):not(.cup) .dmon .nm{font:600 10px/1.3 ui-monospace,'SF Mono',Menlo,Consolas,monospace;color:var(--lcd-ink)}
body:not(.embed):not(.cup) .chalmon .lv{font:600 10.5px/1.3 ui-monospace,'SF Mono',Menlo,Consolas,monospace;color:var(--lcd-ink)}
body:not(.embed):not(.cup) .wtitle .thumb{background-color:var(--lcd);box-shadow:0 0 0 4px var(--lcd),0 0 0 5px var(--lcd-mid)}
body:not(.embed):not(.cup) #daily .dtitle{font-size:12px}
body:not(.embed):not(.cup) .dstats b{font-family:Georgia,'Times New Roman',serif}
body:not(.embed):not(.cup) .dshareline{border:0;border-left:3px solid var(--ink);border-radius:0;background:var(--soft)}
body:not(.embed):not(.cup) .chalname{font:700 18px/1.3 Georgia,'Times New Roman',serif;margin:2px 0 4px}
body:not(.embed):not(.cup) .chalbox .panelhead{display:flex;align-items:center;gap:12px;font:700 12px/1.3 system-ui,sans-serif;letter-spacing:.14em;color:var(--kicker)}
body:not(.embed):not(.cup) .chalbox .panelhead::after{content:"";flex:1;height:1px;background:var(--rule)}
body:not(.embed):not(.cup) .wildbox>.dtitle{font:700 18px/1.3 Georgia,'Times New Roman',serif;letter-spacing:0;text-transform:none;color:var(--ink);display:block}
body:not(.embed):not(.cup) .linkpanel .row{margin:0 0 8px}
body:not(.embed):not(.cup) .joinrow{margin-top:10px}

/* ---------- the article under the stage ---------- */
.notes{max-width:680px;margin:40px auto 0}
body:not(.embed):not(.cup) .notes .lede{font-size:17px;max-width:none;margin:0 0 12px}
body:not(.embed):not(.cup) .notes .credit{max-width:none;margin:0;font-size:13px;color:var(--muted)}
body:not(.embed):not(.cup) .notes .about{max-width:none}
body:not(.embed):not(.cup) .notes .about p{font-size:15.5px}
body:not(.embed):not(.cup) .notes .hint{text-align:left}

/* ---------- a phone ---------- */
@media (max-width:1099px){.stage-tag{text-align:left;flex-basis:100%}}
@media (max-width:389px){
  body:not(.embed):not(.cup) .console .controls{gap:8px}
  body:not(.embed):not(.cup) .console .controls #start{padding:0 12px;font-size:14px}
  body:not(.embed):not(.cup) .console .controls .optbtn{padding:0 12px}
}
@media (max-width:599px){
  .presets{gap:0}
  .presets .pset,.presets .pfam select{padding:0 8px;font-size:13.5px}
  .presets .pfam select{max-width:138px}
  body:not(.embed):not(.cup) .gamepick span{flex-basis:100%;margin:0 0 6px}
  body:not(.embed):not(.cup) .gamepick span+button.alt.tb{margin-left:0}
  .stage-tag{display:none}
  .stage-head{margin-bottom:12px}
  .stage-head h1{font-size:21px;line-height:1.2}
  body:not(.embed):not(.cup) .console{--sp:18px;--bz:14px}
  body:not(.embed):not(.cup) .console .controls .fsbtn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body:not(.embed):not(.cup) .console .controls .fsbtn{width:46px;justify-content:center;padding:0}
}
@media (min-width:600px){
  body:not(.embed):not(.cup) .console{margin:0;border-radius:14px 14px 56px 14px}
}
/* ---------- a tablet: the console centred, the rest under it ---------- */
@media (min-width:600px) and (max-width:1099px){
  body:not(.embed):not(.cup) .console{width:calc(480px + 2 * (var(--sp) + var(--bz)));max-width:100%;align-self:center}
  body:not(.embed):not(.cup) .stage .hint,body:not(.embed):not(.cup) .glitchnote,body:not(.embed):not(.cup) #after,body:not(.embed):not(.cup) #why{width:calc(480px + 68px);max-width:100%;align-self:center}
}
/* a phone held sideways (the full screen script puts the pad beside the screen when the console has room for it): the
   console takes the page's width */
@media (min-width:600px) and (max-width:1099px) and (max-height:540px) and (orientation:landscape){
  body:not(.embed):not(.cup) .console{width:auto;align-self:stretch}
}
/* ---------- a desktop: the console and the rail side by side across the header's width ---------- */
@media (min-width:1100px){
  body:not(.embed):not(.cup) main{padding-top:20px}
  body:not(.embed):not(.cup) .stage-grid{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 44px;align-items:start}
  body:not(.embed):not(.cup) .col{display:flex;flex-direction:column;gap:22px;min-width:0}
  body:not(.embed):not(.cup) .col-a{width:calc(480px + 2 * (20px + 14px))}
  body:not(.embed):not(.cup) .col-b{gap:30px}
  body:not(.embed):not(.cup) .col-b>*{order:0}
}
@media (min-width:1560px) and (min-height:960px){
  body:not(.embed):not(.cup) .console{--sp:22px;--bz:16px}
  body:not(.embed):not(.cup) .col-a{width:calc(640px + 2 * (22px + 16px))}
}
