/* JoyStats theme base styles - extracted from the design mockup
   (reference/joystats-mockup.html). Control-strip demo chrome, the
   embedded base64 font, and token overrides were removed; tokens.css
   is the canonical token source. #frame/.frame renamed to .js-page. */
:root{
  --bw:4px;
  --page-img:radial-gradient(var(--ink-3) 1px,transparent 1.5px);--page-size:16px 16px;--page-pos:0 0;--panel-img:none;
  --inner:var(--ink-3);--tsh:none;--glow:0 0 0 0 transparent;
  --btn-clip:polygon(0 4px,4px 4px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px));--tab-clip:polygon(0 4px,4px 4px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% 100%,0 100%);
  --ptr:url("../img/r.png");
  --f-display:'Nine By Five',ui-monospace,monospace;--f-body:'Nine By Five',ui-monospace,monospace;--f-data:'Nine By Five',ui-monospace,monospace;
  --lg-d:block;--lg-l:none;
  --well:#0b0d10;--on-accent:#0b0d10;
  --ink-1:#12151a;--ink-2:#1a1e25;--ink-3:#252b34;--ink-4:#3a424f;--ink-5:#8691a0;--ink-6:#bcc4d0;--ink-7:#f0f3f8;
  --cy:#3fe8ff;--cy-d:#0f4b55;--mg:#ff4fd8;--mg-d:#5e1850;--gr:#8cf55a;--gr-d:#24521a;
  --pt-0:#3fe8ff;--pt-1:#ff4fd8;--pt-2:#8cf55a;--pt-3:#e4e9f1;--pt-4:#2a9fb3;--pt-5:#b8359b;
  color-scheme:dark;
}
/* Native controls (date pickers, scrollbars) follow the site mode the
   visitor picked, not the OS: data-mode is set on the root element. */
:root[data-mode="light"]{color-scheme:light}
:root[data-mode="dark"]{color-scheme:dark}
@media (prefers-color-scheme: light){:root:not([data-mode]){--lg-d:none;--lg-l:block;--well:#e6e0cf;--on-accent:#ffffff;--ink-1:#f4f0e4;--ink-2:#ffffff;--ink-3:#e9e4d4;--ink-4:#a8a28d;--ink-5:#5b5748;--ink-6:#2a2822;--ink-7:#0f0e0b;--cy:#2f5fe3;--cy-d:#dbe4ff;--mg:#d92d20;--mg-d:#ffdedb;--gr:#f6b800;--gr-d:#fff0b8;--pt-0:#2f5fe3;--pt-1:#d92d20;--pt-2:#f6b800;--pt-3:#1c1a16;--pt-4:#7ea3f2;--pt-5:#f08a80;color-scheme:light}}
*{box-sizing:border-box}
body{text-transform:lowercase;background:var(--ink-1);color:var(--ink-6);font:400 var(--fs-lead)/1.35 var(--f-body);padding-inline:16px;padding-block:0;
  background-image:var(--page-img);background-size:var(--page-size);background-position:var(--page-pos)}
h1,h2,h3,p,dl,dd,ul,ol{margin:0;padding:0}
button{font:inherit;color:inherit;text-transform:lowercase}
/* Text entry never lowercases: typed values and placeholders render as
   entered, on every input and textarea surface (popups, sheets, search). */
input,textarea{font:inherit;color:inherit;text-transform:none}
select{font:inherit;color:inherit;text-transform:none}
img{image-rendering:pixelated}
/* Icons render smooth, not pixelated: the global rule above is for content images (covers, cartridges, avatars). One opt-out covering every icon surface, plus the game-page cover, which must render smooth even if the later sheets fail to load; SVGs keep their internal shape-rendering="crispEdges". Round 15 items 153/170: leaderboard game icons (.fside__ic) and feed badge images (.fev__t .bdg img) join the opt-out; Lately icons (.ev__ico img) were already on it, and theme.css also carries them auto !important. */
.sharebtn img, .iconbtn img, .icon-btn img, .themedrop__btn img, .favbtn img, .pinb--head img, .ev__ico img, .uname-edit img, .wrow__ico img, .star img, .star__bg img, .js-icon, .bdg img, .fev__t .bdg img, .fside__ic, img.ghead__art, .idlink img{image-rendering:auto}
.label{font:400 var(--fs-secondary)/1.4 var(--f-display);color:var(--ink-5)}
.px{margin:var(--bw);box-shadow:calc(var(--bw)*-1) 0 0 0 var(--bc,var(--ink-4)),var(--bw) 0 0 0 var(--bc,var(--ink-4)),0 calc(var(--bw)*-1) 0 0 var(--bc,var(--ink-4)),0 var(--bw) 0 0 var(--bc,var(--ink-4)),var(--glow)}
:focus-visible{outline:3px dashed var(--mg);outline-offset:3px}
.btn{--bg:var(--cy);--fg:var(--on-accent);display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:0;cursor:pointer;
  font:400 var(--fs-lead)/1.3 var(--f-display);background:var(--bg);color:var(--fg);
  box-shadow:inset -4px -4px 0 rgba(0,0,0,.28),inset 4px 4px 0 rgba(255,255,255,.32);clip-path:var(--btn-clip)}
/* Round 11 item 28: the a.btn rule used to sit inside the .btn block
   above (the block never closed on its own line), so the parser dropped
   it and every a.btn anchor showed the browser default underline. It
   is a top-level rule now, so all .btn links are underline-free. */
a.btn{text-decoration:none}
.btn--ghost{--bg:var(--ink-3);--fg:var(--ink-7)}
.btn--sm{min-height:40px;padding:6px 12px;font-size:var(--fs-body)}
/* Round 12 item 84: the add-save-file and import-save buttons share
 * one width, so neither renders wider than the other. */
#js-split-open,.js-arcade-import{min-width:192px}
/* Following/followers counts read as plain text, not buttons: the number
   in Press Start 2P, the label in Nine By Five, underline on hover so
   they still read as clickable, visible outline for keyboard users.
   The number is set smaller (0.7em of secondary) and toned down toward the
   background, so its heavier pixel face reads at the same strength
   as the label instead of brighter. */
.followcount{border:0;background:none;padding:0;cursor:pointer;font:400 var(--fs-secondary)/1.4 var(--f-display);color:var(--ink-7)}
.followcount__n{font-family:var(--f-num,'Press Start 2P'),monospace;font-size:0.7em;color:var(--ink-7);vertical-align:baseline;position:relative;top:2px;margin-right:8px}
.followcount:hover{text-decoration:underline}
.followcount:focus-visible{outline:2px solid var(--mg);outline-offset:2px}
.followcounts{display:inline-flex;align-items:center;gap:16px;background:var(--ink-3);border:1px solid var(--ink-4);padding:8px 14px}
/* Round 29 item 324: add-on identity links, out of the followcounts
   box, each link its own container in one row: icon + platform name
   in the highlight color, no "add on" text, no underline, brands
   capitalized (text-transform:none beats the lowercase body). */
.idlinks{display:inline-flex;align-items:center;gap:16px}
.idlink{display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:0;cursor:pointer;font:400 var(--fs-secondary)/1.4 var(--f-display);color:var(--mg-t);text-decoration:none;text-transform:none}
.idlink img{width:20px;height:20px;flex:none}
.idlink:hover{text-decoration:none}
.idlink:focus-visible{outline:2px solid var(--mg);outline-offset:2px}
.idlink__btn{border:0;background:none;padding:0;cursor:pointer;font:inherit;color:inherit;text-decoration:none;text-transform:none}
.follow-row{display:flex;align-items:center;gap:16px;margin-top:0}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;font:400 var(--fs-secondary)/1.3 var(--f-display);background:var(--ink-3);color:var(--ink-6)}
.chip--line{background:transparent;outline:2px solid var(--ink-5);outline-offset:-2px;color:var(--ink-6)}
.i-check{display:inline-block;width:10px;height:10px;background:currentColor;clip-path:polygon(0 55%,15% 40%,35% 60%,85% 10%,100% 25%,35% 90%)}
.i-lock{display:inline-block;width:12px;height:12px;background:currentColor;clip-path:polygon(25% 0,75% 0,75% 40%,100% 40%,100% 100%,0 100%,0 40%,25% 40%,25% 15%,40% 15%,40% 40%,60% 40%,60% 15%,25% 15%)}
.shape{display:inline-block;width:14px;height:14px;background:var(--pc);flex:none}
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;font:400 var(--fs-secondary)/1.3 var(--f-display);white-space:nowrap}
.badge--ver{background:var(--gr);color:var(--on-accent)}
.badge--unver{background:transparent;color:var(--ink-6);outline:2px solid var(--ink-5);outline-offset:-2px}
.bar{--p:50%;--c:var(--cy);position:relative;height:14px;background:repeating-linear-gradient(90deg,var(--ink-3) 0 6px,transparent 6px 8px)}
.bar>i{position:absolute;inset:0 auto 0 0;width:var(--p);background:repeating-linear-gradient(90deg,var(--c) 0 6px,transparent 6px 8px)}
.sitebar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:12px 20px;background:var(--ink-2);margin:4px}
.sitebar span{font-size:var(--fs-body);color:var(--ink-5)}
.bar{outline:2px solid var(--ink-4);outline-offset:2px;margin:2px}
.ptr,.tab[aria-selected="true"]::before,.seg button[aria-pressed="true"]::before,.tl-bar .chip-btn[aria-pressed="true"]::before,.back::before,.sub::before,.theme[aria-pressed="true"] .theme__name::before{content:"";display:inline-block;flex:none;width:18px;height:24px;margin-right:8px;vertical-align:-4px;background:currentColor;-webkit-mask:var(--ptr) center/contain no-repeat;mask:var(--ptr) center/contain no-repeat;clip-path:none}
.ptr{margin:0 6px 0 0;width:16px;height:22px}
.sub::before{width:14px;height:20px;margin-right:2px;color:var(--cy-t)}
.uname{text-shadow:var(--tsh)}
.spoiler{display:inline;padding:0 6px;margin:0;border:0;background:var(--ink-4);color:transparent;font:inherit;line-height:inherit;cursor:pointer;text-transform:inherit;border-radius:0;min-height:0;box-decoration-break:clone}
.spoiler span{visibility:hidden}
.spoiler:hover{background:var(--ink-5)}
.spoiler.is-open{background:color-mix(in srgb,var(--ink-4) 40%,transparent);color:inherit}
/* Round 11 item 54: the base .spoiler button reveals its span when open.
   (The field-chip copies had their own scoped reveal rule; notes use
   the bare button, so the base rule carries it.) */
.spoiler.is-open span{visibility:visible}
.hl{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px 20px;padding-top:20px;border-top:4px solid var(--ink-3)}
.tabs .chip-btn{margin-left:auto;align-self:center;min-height:44px;padding:6px 14px;border:2px solid var(--ink-4);background:var(--ink-2);cursor:pointer;font:400 var(--fs-body)/1.2 var(--f-display);color:var(--ink-6)}
.tabs .chip-btn[aria-pressed="true"]{background:var(--mg);border-color:var(--mg);color:var(--on-accent)}
.lead{font-size:var(--fs-lead);color:var(--ink-6);max-width:62ch}
.themes{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:22px}
.theme{display:grid;gap:10px;padding:8px;border:0;background:var(--ink-2);text-align:left;cursor:pointer;outline:2px solid var(--ink-3);outline-offset:-2px;min-width:0}
.theme[aria-pressed="true"]{outline:4px solid var(--cy);outline-offset:-4px}
.theme__name{display:flex;align-items:center;font-size:var(--fs-lead);color:var(--ink-7);padding:0 4px}
.opts{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.opt{display:flex;gap:14px;align-items:flex-start;padding:12px 14px;border:0;background:var(--ink-2);text-align:left;cursor:pointer;min-height:56px;outline:2px solid var(--ink-3);outline-offset:-2px}
.opt b{display:block;font-weight:400;color:var(--ink-7);font-size:var(--fs-lead);line-height:1.15}
.opt small{display:block;color:var(--ink-5);font-size:var(--fs-body);line-height:1.2;margin-top:2px}
.opt .tog{margin-top:4px}
.swatches{display:flex;flex-wrap:wrap;gap:10px}
.sw{display:flex;align-items:center;gap:10px;padding:6px 12px 6px 6px;min-height:44px;border:0;background:var(--ink-2);cursor:pointer;color:var(--ink-6);font-size:var(--fs-body);outline:2px solid var(--ink-3);outline-offset:-2px}
.sw[aria-pressed="true"]{outline:3px solid var(--cy);outline-offset:-3px;color:var(--ink-7)}
.sw__chip{display:inline-grid;grid-template-columns:repeat(3,14px);gap:3px;padding:5px;background:var(--ink-1)}
.sw__chip i{height:14px;display:block}
.sw__chip i:nth-child(1){background:var(--cy)}
.sw__chip i:nth-child(2){background:var(--mg)}
.sw__chip i:nth-child(3){background:var(--gr)}
.ta{width:100%;min-height:88px;resize:vertical;font:inherit;line-height:1.3;padding:8px 10px}
.hint{font-size:var(--fs-secondary);color:var(--ink-5)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips .chip-btn{min-height:40px;padding:4px 10px;border:2px solid var(--ink-4);background:var(--ink-2);cursor:pointer;font:400 var(--fs-body)/1.2 var(--f-display);color:var(--ink-6)}
.chips .chip-btn[aria-pressed="true"]{background:var(--mg);border-color:var(--mg);color:var(--on-accent)}
.field{display:grid;gap:6px;min-width:0}
.seg{display:flex}
.seg button{min-height:44px;padding:8px 14px;border:2px solid var(--ink-4);background:var(--ink-2);cursor:pointer;font:400 var(--fs-secondary)/1.3 var(--f-display);color:var(--ink-6)}
.seg button+button{margin-left:-2px}
.seg button[aria-pressed="true"]{background:var(--cy);color:var(--on-accent);border-color:var(--cy);position:relative}
/* Standard dropdown style: every form select on the site uses .sel
   (44px min-height, 8px 12px padding, ink-3 background and cut
   corners after the later cascade, square corners). Sheet selects
   keep the same border and corners at 48px min-height on an ink-1
   background (see .sheet .sel). */
.sel{min-height:44px;padding:8px 12px;border:2px solid var(--ink-4);background:var(--ink-2);max-width:100%}

/* Round 11 items 50/56: multiselect picker (button + checkbox panel).
   The panel opens downwards below the field, never upwards. */
.ms{position:relative}
.js-ms-btn{width:100%;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ms__panel{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:50;max-height:220px;overflow-y:auto;background:var(--ink-2);border:2px solid var(--ink-4);padding:4px 0}
.ms__opt{display:flex;align-items:center;gap:8px;padding:8px 12px;cursor:pointer}
.ms__opt:hover{background:var(--ink-3)}
/* Round 75 item 20: single-select dropdown rows (edit playthrough
   platform picker) reuse the bounded .ms__panel as buttons instead
   of checkbox labels, so they need the button reset and a selected
   state matching .mention__row.is-sel. */
.ms__panel button.ms__opt{width:100%;background:none;border:0;text-align:left;font:inherit;color:inherit}
.ms__panel button.ms__opt.is-sel{background:var(--ink-3)}
.js-page{container:profile/inline-size;width:100%;background:var(--ink-1);background-image:var(--page-img);background-size:var(--page-size);background-position:var(--page-pos);--bc:var(--ink-4)}
.profile{display:grid;gap:44px;padding:28px}
.sec{display:grid;gap:20px;min-width:0}
.avatar{width:96px;height:96px;background:var(--ink-3);box-shadow:0 0 0 4px var(--cy)}
.who{display:flex;flex-direction:column;gap:10px;align-items:flex-start;min-width:0}
.uname{font:700 var(--fs-title)/1.2 var(--f-display);color:var(--ink-7);overflow-wrap:anywhere}
.life{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:6px}
.p-actions{display:grid;gap:10px;justify-items:end}
.rare{grid-column:1/-1;display:grid;gap:12px;padding-top:20px;border-top:4px solid var(--ink-3)}
.game{display:grid;grid-template-columns:112px minmax(0,1fr);gap:18px;padding:18px;background:var(--ink-2);min-width:0}
.art{width:112px;aspect-ratio:2/3;object-fit:cover;background:var(--well);display:block}
.split-note{font-size:var(--fs-body);color:var(--ink-6)}
.stat{display:flex;align-items:center;gap:12px;padding:10px 12px;background:var(--ink-1)}
.stat b{font:400 var(--fs-display)/.9 var(--f-data);color:var(--gr-t);font-variant-numeric:tabular-nums}
.stat span{font-size:var(--fs-body);color:var(--ink-6)}
.stat small{color:var(--ink-5);font-size:var(--fs-body)}
.nudge{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:var(--cy-d)}
.nudge p{font-size:var(--fs-body);color:var(--ink-7);min-width:0}
.nudge p b{font-weight:400;color:var(--cy-t)}
.note{display:flex;gap:10px;padding:10px 12px;background:var(--ink-3);font-size:var(--fs-body);color:var(--ink-6)}
.qa{display:grid;gap:10px;padding:12px;background:var(--ink-1);outline:2px solid var(--cy);outline-offset:-2px}
.qa__row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.qa label{display:grid;gap:4px;font-size:var(--fs-body);color:var(--ink-5);min-width:0}
.qa input,.qa select{min-height:44px;padding:6px 10px;background:var(--ink-2);border:2px solid var(--ink-4);max-width:100%}
.qa input{width:110px}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.fields div{min-width:0}
.fields dt{font:400 var(--fs-secondary)/1.4 var(--f-display);color:var(--ink-5);margin-bottom:3px}
.fields dd{font-size:var(--fs-heading);line-height:1.2;color:var(--ink-7);font-weight:400;overflow-wrap:anywhere}
.tog{display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-lead);color:var(--ink-6)}
.tog i{width:34px;height:16px;background:var(--ink-3);position:relative;display:inline-block;outline:2px solid var(--ink-4);outline-offset:-2px}
.tog i::after{content:"";position:absolute;top:3px;left:3px;width:10px;height:10px;background:var(--ink-5)}
.tog.on i{background:var(--gr-d)}
.tog.on i::after{left:21px;background:var(--gr)}
.custom{display:grid;gap:8px;padding:12px;background:var(--ink-1);outline:2px solid var(--ink-4);outline-offset:-2px}
.custom q{font-size:var(--fs-body);color:var(--ink-6);quotes:none;display:block}
.more{justify-self:start}
.record{display:flex;align-items:center;gap:12px}
.record b{font:400 var(--fs-display)/.9 var(--f-data);color:var(--pc)}
.tl-bar{display:flex;flex-wrap:wrap;gap:8px}
.tl-bar .chip-btn{min-height:44px;padding:6px 12px;border:2px solid var(--ink-4);background:var(--ink-2);cursor:pointer;font:400 var(--fs-secondary)/1.3 var(--f-display);color:var(--ink-6)}
.tl-bar .chip-btn[aria-pressed="true"]{background:var(--mg);border-color:var(--mg);color:var(--on-accent)}
.tl{list-style:none;display:grid;gap:12px;position:relative;max-width:820px}
.tl::before{content:"";position:absolute;left:12px;top:0;bottom:0;width:4px;border-radius:2px;background:var(--ink-3)}
.tl>li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:14px;align-items:start;position:relative}
.body{display:grid;gap:24px;min-width:0}
.tabs{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;display:flex;flex-wrap:wrap;gap:12px;padding:10px 4px;background:var(--ink-1)}
.tab{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:6px 20px 8px;border:0;cursor:pointer;background:var(--ink-3);color:var(--ink-6);font:400 var(--fs-heading)/1 var(--f-display);
  clip-path:var(--tab-clip)}
.tab[aria-selected="true"]{background:var(--cy);color:var(--on-accent)}
.tab small{font-size:var(--fs-body);opacity:.75}
/* Round 117 item 12: the achievements showing count and show
   more button sit at the right bottom corner of the section. */
.more-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px 16px;max-width:820px;padding-left:42px;color:var(--ink-5);font-size:var(--fs-body)}
.empty-list{padding:16px;color:var(--ink-5);outline:2px solid var(--ink-4);outline-offset:-2px}
.empty-list .icon-btn{vertical-align:middle}
.sub{font:400 var(--fs-lead)/1.2 var(--f-display);color:var(--ink-7);display:flex;align-items:center;gap:10px}
.sub span{color:var(--ink-5)}
.back{display:none;justify-self:start}
.first{display:grid;grid-template-columns:auto minmax(0,1fr);gap:28px;align-items:center;padding:36px;background:var(--ink-2);margin:4px}
.first img{width:128px;height:192px}
.first h2{font:400 var(--fs-heading)/1.6 var(--f-display);color:var(--ink-7)}
.first p{max-width:52ch;margin-top:12px}
.first .btn{margin-top:20px}
.quiet{padding:28px;background:var(--ink-2);margin:4px;text-align:left}
.quiet h2{font:400 var(--fs-lead)/1.6 var(--f-display);color:var(--ink-7)}
.quiet p{margin-top:8px;color:var(--ink-5)}
.picker{padding:24px;background:var(--ink-2);margin:4px}
.step{display:flex;align-items:center;gap:10px;font:400 var(--fs-body)/1.4 var(--f-display);color:var(--ink-7);}
.step i{display:grid;place-items:center;width:24px;height:24px;background:var(--mg);color:var(--on-accent);font-style:normal;font-size:var(--fs-secondary)}
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);max-width:min(92vw,520px);padding:14px 18px;background:var(--ink-7);color:var(--ink-1);font:400 var(--fs-body)/1.6 var(--f-display);z-index:20;box-shadow:0 0 0 4px var(--mg)}
@container profile (max-width:760px){.back{display:inline-flex}.more-row{padding-left:34px}.tab{font-size:var(--fs-lead);padding-inline:14px}.profile{padding:16px;gap:36px}.p-actions{grid-column:1/-1;justify-items:stretch}.p-actions .btn{width:100%}.avatar{width:72px;height:72px}.uname{font-size:var(--fs-lead)}.game{grid-template-columns:88px minmax(0,1fr);gap:14px;padding:14px}.art{width:88px}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.first{grid-template-columns:1fr;padding:20px;justify-items:start}.first img{width:96px;height:144px}.picker{padding:16px}.tile{grid-template-columns:104px minmax(0,1fr)}.tl::before{left:10px}.tl>li{grid-template-columns:24px minmax(0,1fr);gap:10px}}
@container profile (max-width:440px){.game{grid-template-columns:1fr}.art{width:96px}.fields{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.seg button{flex:1}}
@media (prefers-reduced-motion:no-preference){@keyframes blink{to{visibility:hidden}}}
.px{margin:var(--bw);border-radius:var(--r);box-shadow:0 0 0 var(--bw) var(--bc,var(--ink-4))}
.btn{border-radius:var(--rb);clip-path:none;box-shadow:none}
.btn:active:not([disabled]){transform:translateY(2px)}
.tab,.seg button,.chip-btn,.sw,.theme,.chip,.badge,select,input[type=text],input[type=search],textarea{border-radius:var(--rb);clip-path:none}
.theme,.sw{border-radius:var(--r)}
.chip,.badge{padding:4px 12px}
.bar{height:16px;border-radius:999px;background:var(--ink-3);outline:0;margin:0;overflow:hidden}
.bar>i{border-radius:999px;background:var(--c)}
.cover{border-radius:12px}
.sitebar, .custom, .empty-list{border-radius:var(--r)}
.js-page{border-radius:calc(var(--r) + 4px)}
.spoiler{border-radius:8px}
.toast{z-index:80}
/* Log-session button now lives in the Lately header; margin-left:auto pushes it to the right end of the header row. */
.wdg__head #js-log-open{margin-left:auto}
.fab{min-height:56px;padding:10px 26px;box-shadow:0 5px 0 rgba(0,0,0,.28),0 10px 24px rgba(0,0,0,.18)}
.sheet-bg{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:16px;background:rgba(10,12,16,.62);overflow:auto}
.sheet{--bc:var(--ink-4);position:relative;width:min(760px,100%);max-height:calc(100dvh - 32px);overflow:auto;margin:0;padding:24px;background:var(--ink-2);color:var(--ink-6);display:grid;gap:18px;align-content:start}
.sheet__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
/* Round 75 item 19: even spacing in the edit playthrough popup.
   .sheet__body had no layout of its own, so the form rows stacked
   flush (0px apart) while each label sat 6px above its field. The
   body now uses the sheet's own 18px row rhythm (same as .sheet
   and .sheet__grid), and an empty second-platforms wrapper takes
   no space before its data loads. */
#js-editbg .sheet__body{display:grid;gap:18px;align-content:start}
#js-editbg .sheet__body .js-second-platforms:empty{display:none}
/* Round 75 item 20: rows in the edit popup top-align, so the
   platform field growing when the custom text input is revealed
   does not stretch the icon and name fields in its row (the
   round 11 item 18 precedent: #logForm .sheet__grid). */
#js-editbg .splitform__row{align-items:flex-start}
.sheet__head h2{font:400 var(--fs-heading)/1.2 var(--f-display);color:var(--ink-7);display:flex;align-items:center}
.sheet__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
/* Round 11 item 18: log-sheet grid rows size to their own content, so
   the game dropdown never stretches to a taller neighbour's height. */
#logForm .sheet__grid{align-items:start}
.sheet__when,.sheet__dur,.sheet__note{grid-column:1/-1}

/* Round 11 item 54: spoiler toggle next to a notes label. */
.sheet__note-head{display:flex;align-items:center;gap:12px}
.ntoggle{display:flex;align-items:center;gap:6px;font-size:var(--fs-secondary);color:var(--ink-5);cursor:pointer}

/* Round 75 item 11: @mention hint at the top right of the log sheet
   notes field; margin-left:auto pushes it to the right end of the
   note head row, next to the spoiler toggle. Visible hint text, not
   hover-only, so it reads on the sheet as rendered. */
.sheet__note-tip{margin-left:auto;font-size:var(--fs-secondary);color:var(--ink-5);white-space:nowrap}

/* Round 11 item 52: @mention autocomplete under the log sheet note. */
.sheet__note{position:relative}
.mention__drop{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:60;max-height:220px;overflow-y:auto;background:var(--ink-2);border:2px solid var(--ink-4)}
.mention__row{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;background:none;border:none;cursor:pointer;text-align:left}
.mention__row.is-sel,.mention__row:hover{background:var(--ink-3)}
.mention__row img{width:24px;height:24px;flex:none}
.sheet .field>.label span,.sheet .label span{color:var(--ink-5)}
.sheet .sel,.sheet input[type=number]{width:100%;font-size:var(--fs-lead);min-height:48px;background:var(--ink-1);border:2px solid var(--ink-4);color:var(--ink-7)}
/* Round 87 items 5 and 7: the log sheet playthrough fields
   editor is collapsed under its header by default, and each
   field is an icon beside an unlabeled input. The icon sits
   12px down so it centers against the 48px input. */
#lg-pt-fields summary{cursor:pointer}
#lg-pt-fields .lg-pt-cf__list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
#lg-pt-fields .lg-pt-cf{display:flex;align-items:flex-start;gap:10px}
#lg-pt-fields .lg-pt-cf>:not(.lg-pt-cf__icon):not(.lg-pt-cf__label){flex:1 1 auto;min-width:0}
#lg-pt-fields .lg-pt-cf__icon{flex:none;width:24px;height:24px;margin-top:12px;image-rendering:pixelated}
#lg-pt-fields .lg-pt-cf__label{flex:0 0 120px;min-width:0;align-self:center;overflow-wrap:anywhere;font-size:var(--fs-body);color:var(--ink-7)}
#lg-pt-fields .lg-pt-cf--wide{grid-column:1 / -1}
/* Round 112 item 18: the fields section spans the full sheet
   width. It sits in the sheet's two-column grid, so as one
   column it only got half the sheet (346px) and its own
   two-column list squeezed each row to 167px: icon 24px plus a
   120px label left 3px for the input, and the input's box ran
   past its row and covered the next column's icon and label.
   Spanning both columns gives each row about 350px. On phones
   the sheet is one column, so the list drops to one column
   too, where two columns would squeeze the same way. */
#lg-pt-fields{grid-column:1 / -1}
@media (max-width:640px){#lg-pt-fields .lg-pt-cf__list{grid-template-columns:1fr}}
.sheet .sel:focus,.sheet input:focus{border-color:var(--cy)}
.sheet .row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sheet .row .sel{width:auto;flex:1 1 150px}
.sheet .chip-btn{min-height:40px;padding:4px 14px;border:2px solid var(--ink-4);background:var(--ink-2);cursor:pointer;font:400 var(--fs-body)/1.2 var(--f-display);color:var(--ink-6)}
.sheet .seg{width:fit-content;max-width:100%}
.sheet .seg button{font-size:var(--fs-body)}
.dur__f{display:inline-flex;align-items:baseline;gap:6px;color:var(--ink-5);font-size:var(--fs-body)}
.dur__f input{width:92px!important;text-align:center;font:400 var(--fs-display)/1 var(--f-data)!important;padding:4px 6px!important;-moz-appearance:textfield}
.dur__f input::-webkit-outer-spin-button,.dur__f input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.hint{font-size:var(--fs-body);color:var(--ink-5)}
.hint:not([hidden])#lg-dateerr,.hint:not([hidden])#lg-durerr{color:var(--mg-t)}
.check{display:flex;align-items:center;gap:10px;font-size:var(--fs-body);color:var(--ink-6);min-height:44px;cursor:pointer}
.check input{width:24px;height:24px;accent-color:var(--cy)}
.sheet__hint{padding:12px 16px;background:var(--cy-d);color:var(--ink-7);border-radius:var(--r);font-size:var(--fs-body)}
.sheet__act{display:flex;flex-wrap:wrap;gap:10px;position:sticky;bottom:-24px;margin:0 -24px -24px;padding:14px 24px 20px;background:var(--ink-2)}
body.has-sheet{overflow:hidden}
@media (max-width:640px){.sheet-bg{padding:0;place-items:end center}.sheet{width:100%!important;max-height:94dvh;border-radius:var(--r) var(--r) 0 0;padding:20px 16px;margin:0}.sheet__grid{grid-template-columns:1fr}.sheet__act{margin:0 -16px -20px;padding:12px 16px 16px;bottom:-20px}.sheet__act .btn{flex:1 1 100%}}
[data-skin="classic"][data-mode="light"] .badge--ver{color:var(--ink-7)}
[data-skin="classic"][data-mode="light"] b.big,[data-skin="classic"][data-mode="light"] .stat b{color:var(--ink-7)}
textarea,.ta{border-radius:calc(var(--r)*.7)!important}
:root,[data-skin],[data-skin="dungeon"],[data-skin="neon"],[data-skin="stealth"]{--r:0;--rb:0;--c1:polygon(0 4px,4px 4px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px));--c2:polygon(0 8px,4px 8px,4px 4px,8px 4px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 8px),0 calc(100% - 8px));--ctab:polygon(0 8px,4px 8px,4px 4px,8px 4px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% 100%,0 100%);--btn-clip:var(--c2);--tab-clip:var(--ctab)}
.px{border-radius:0;margin:var(--bw);box-shadow:calc(var(--bw)*-1) 0 0 0 var(--bc,var(--ink-4)),var(--bw) 0 0 0 var(--bc,var(--ink-4)),0 calc(var(--bw)*-1) 0 0 var(--bc,var(--ink-4)),0 var(--bw) 0 0 var(--bc,var(--ink-4))}
.js-page, .sheet, .sitebar, .custom, .empty-list, .cover, .sheet-bg{border-radius:0}
.btn, .seg button, .chip-btn, .tabs .chip-btn, .sw, .theme, .sel, .sheet .sel, .sheet .chip-btn, select, textarea, input:not([type=checkbox]):not([type=radio]), .nudge, .sheet__hint{border-radius:0!important;clip-path:var(--c2)}
.chip,.badge,.spoiler,.bar{border-radius:0;clip-path:var(--c1)}
.tab{border-radius:0;clip-path:var(--ctab)}
.btn{box-shadow:inset 0 -4px 0 rgba(0,0,0,.22)}
.btn:active:not([disabled]){transform:translateY(2px);box-shadow:none}
.fab{box-shadow:inset 0 -4px 0 rgba(0,0,0,.22)}
.chip-btn, .seg button, .sel, .tabs .chip-btn, .sheet .sel, .sheet .chip-btn, .qa input, .qa select, .ta{border:0;background:var(--ink-3);color:var(--ink-6)}
.sheet .sel,.sheet .ta{background:var(--ink-3)}
.bar{height:16px;background:var(--ink-3);overflow:visible}
.bar>i{border-radius:0}
.btn:focus-visible, .tab:focus-visible, .seg button:focus-visible, .chip-btn:focus-visible, .sw:focus-visible, .theme:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible{outline:0;box-shadow:inset 0 0 0 4px var(--ink-7),inset 0 0 0 7px var(--mg)}
.sheet .sel:focus,.sheet input:focus{box-shadow:inset 0 0 0 4px var(--cy);border:0}
textarea,.ta{border-radius:0!important}
#lg-game, #feedGame, #cardGame, .sheet__hint, select, select option, .toast, .uname, .fwho, .fev__t, .howplay__text, .usearch__row, .notif__row b, .gtitle__who, .crumbs a, .followrow, .js-edit-coplayers label, .run__name, .fchip__val, .fchip__pre, .fchip__suf, .run__note, .run__mp, .library__empty, .pile__l b, .ltab .nm, .ovname, .fside__nm, .ptb__title, .sheet__head .h2, .minihead__lasttext, .minihead__lasttext .g, .minihead__lasttext .pname, .fside__ach, .fside__ach .a, .fside__ach .g, .fside__nm--game, .sess__ach, .sess__ach .a, .fev__t .g, .fev__t a.g{text-transform:none}
.keepcase{text-transform:none}
.grow .t .badge{text-transform:lowercase}
.gtl{text-transform:none!important;font-style:normal}
details>summary::-webkit-details-marker{display:none}
.pt__edit{border:0;outline:none;text-decoration:none}
.pt__edit:hover,.pt__edit:focus{border:0;outline:none;text-decoration:none}
.js-page,.js-page.px{background:transparent;box-shadow:none;margin:0;padding:0;clip-path:none}
.px{box-shadow:none;margin:0}
.profile{padding:0;gap:40px}
.sitebar{background:none;padding:0 0 4px;margin:0;clip-path:none}
.sitebar span{font-size:var(--fs-body)}
.avatar{box-shadow:none;width:88px;height:88px}
.badge--ver{display:none}
.p-actions{gap:6px}
.hl{border-top:0;padding-top:4px;gap:20px 40px}
.rare{border-top:0}
.tabs{gap:4px 24px;padding:8px 0;background:var(--ink-1)}
.tab,.tab[aria-selected="true"]{background:none;clip-path:none;padding:6px 2px 8px;min-height:44px;color:var(--ink-5);border-bottom:4px solid transparent}
.tab[aria-selected="true"]{color:var(--ink-7);border-bottom-color:var(--ink-7)}
.tab small{display:none}
.tab[aria-selected="true"]::before,.seg button[aria-pressed="true"]::before,.tl-bar .chip-btn[aria-pressed="true"]::before,.back::before,.theme[aria-pressed="true"] .theme__name::before,.sub::before{display:none!important}
.tabs .chip-btn{background:none;color:var(--ink-5);font-size:var(--fs-body);padding:0 4px;clip-path:none;text-decoration:underline;text-underline-offset:4px}
.tabs .chip-btn[aria-pressed="true"]{background:none;color:var(--ink-7)}
.tl-bar .chip-btn{background:none;color:var(--ink-5);min-height:36px;padding:2px 14px;font-size:var(--fs-body)}
.tl-bar .chip-btn[aria-pressed="true"]{background:var(--ink-7);color:var(--ink-1)}
.tl-bar .chip-btn i{display:none}
.tl::before{display:none}
.tl{gap:0}
.tl>li{align-items:start}
.chip--line{outline:0;background:none;padding:0;color:var(--ink-5)}
.game,.game.px{background:none;padding:0;grid-template-columns:96px minmax(0,1fr);clip-path:none}
.sub{font-size:var(--fs-body);color:var(--ink-5)}
.picker,.picker.px,.first,.first.px,.quiet,.quiet.px{background:none;padding:0}
.first,.quiet{clip-path:none}
.fab{box-shadow:none}
.btn--sm{min-height:40px}
.tl-bar .chip-btn,.tl-bar .chip-btn[aria-pressed="true"]{box-shadow:none!important;outline:0!important;border:0!important;clip-path:var(--c1)!important}
.tl-bar .chip-btn::before,.tl-bar .chip-btn::after{display:none!important}
.js-page,.js-page.px{background:var(--ink-1);background-image:var(--page-img);background-size:var(--page-size);background-position:var(--page-pos);padding:0}
.profile{padding:28px;gap:36px}
.sitebar{background:var(--ink-2);padding:12px 20px;margin:0}
.who{display:grid;gap:6px;align-content:center}
.dt{text-transform:none}
[data-skin="arcade"][data-mode="light"] .badge--ver{color:var(--ink-7)}
[data-skin="arcade"][data-mode="light"] b.big,[data-skin="arcade"][data-mode="light"] .stat b{color:var(--ink-7)}
.themes{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.theme{gap:8px;padding:12px}
.theme .pal{display:grid;grid-template-columns:repeat(5,1fr);gap:0;height:32px;background:var(--ink-1)}
.theme .pal i{display:block}
.pal i:nth-child(1){background:var(--ink-1);box-shadow:inset 0 0 0 2px var(--ink-3)}
.pal i:nth-child(2){background:var(--cy)}
.pal i:nth-child(3){background:var(--mg)}
.pal i:nth-child(4){background:var(--gr)}
.pal i:nth-child(5){background:var(--yl)}
.avatar{box-shadow:0 0 0 4px var(--cy)}
.tab[aria-selected="true"]{border-bottom-color:var(--cy)}
.tl-bar .chip-btn[aria-pressed="true"]{background:var(--cy);color:var(--on-accent)}
.sub{color:var(--mg-t)}
.rare .label,.hl .label{color:var(--mg-t)}
.theme .pal{grid-template-columns:repeat(3,1fr)}
.sw__chip i:nth-child(3){background:var(--ink-5)}
body{background:var(--well)}
.js-page,.js-page.px{background-color:var(--well);background-image:var(--page-img);background-size:var(--page-size);background-position:var(--page-pos);padding:0}
.profile{padding:20px 0;gap:16px}
.sitebar, .body, .first, .quiet{background:var(--ink-2);clip-path:var(--c2);padding:24px;margin:0}
.sitebar{padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px 20px}
.sitebar__r{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
/* Round 24 item 261: mobile banner, a static bar above the sitebar
   on narrow screens. Hidden by default so desktop takes zero space;
   the 820px media query matches the width where the duo and feed
   stack. The amber tokens are the connectors --warn pair, defined
   here on the banner itself because the site token file does not
   define them. Box treatment matches .sitebar and .box: ink-2
   background, bw border, c2 clip. */
.js-mobile-banner{display:none;box-sizing:border-box;--warn:#ffcf4a;--warn-t:#ffcf4a}
[data-mode="light"] .js-mobile-banner{--warn:#e0a100;--warn-t:#7a5200}
@media (max-width:820px){
	.js-mobile-banner:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--ink-2);border:var(--bw) solid var(--warn);clip-path:var(--c2);padding:12px 16px;margin:0 0 12px;color:var(--warn-t);font-size:var(--fs-body);line-height:1.35}
}
.js-mobile-banner__close{flex:none;display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;background:none;border:0;cursor:pointer;color:var(--warn-t);font:inherit;font-size:var(--fs-lead);line-height:1}
.body{display:grid;gap:20px;align-content:start}
.body>.sec{margin:0}
.tabs{background:var(--ink-2)}
.theme,.sw,.opt{background:var(--ink-1)}
.sheet__top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sheet__top h2{margin:0;font-size:var(--fs-heading);color:var(--ink-7);font-weight:400}
.fab{position:sticky;bottom:16px}
@container profile (max-width:640px){.sitebar, .body, .first, .quiet{padding:16px}.profile{gap:12px}}
@media(max-width:640px){.sitebar, .body, .first, .quiet{padding:16px}.profile{gap:12px;padding:12px 0}}
.sitebar .chip-btn{background:var(--ink-3);color:var(--ink-7);min-height:40px;padding:2px 16px;font-size:var(--fs-body);border:0;clip-path:var(--c1);cursor:pointer}
.sitebar .chip-btn[aria-pressed="true"]{background:var(--cy);color:var(--on-accent)}
.box{background:var(--ink-2);clip-path:var(--c2);padding:24px;margin:0;display:grid;gap:16px;align-content:start;min-width:0}
.box__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
/* Round 11 item 31: library view toggle (by genre / by platform).
   Same chip treatment as the leaderboard strips below. */
.libview{display:flex;gap:6px;flex-wrap:wrap}
.libview__chip{min-height:36px;padding:2px 12px;border:2px solid var(--ink-4);background:var(--ink-2);font-size:var(--fs-secondary);color:var(--ink-6);text-decoration:none;display:inline-flex;align-items:center}
.libview__chip.is-on{background:var(--cy);border-color:var(--cy);color:var(--on-accent)}
.h2{margin:0;font:400 var(--fs-heading)/1.2 var(--f-display);color:var(--ink-7)}
.h2 small{font-size:var(--fs-body);color:var(--ink-5);margin-left:8px}
.sitebar{gap:12px 28px}
.nav{display:flex;gap:18px}
.nav__b{background:none;border:0;border-bottom:4px solid transparent;color:var(--ink-5);font:400 var(--fs-lead)/1 var(--f-display);padding:8px 2px;min-height:44px;cursor:pointer}
.nav__b[aria-current="page"]{color:var(--ink-7);border-bottom-color:var(--cy)}
.sitebar__r{margin-left:auto}
.phead{grid-template-columns:auto 1fr auto;gap:16px 24px;align-items:start}
.phead .avatar{width:96px;height:96px;box-shadow:0 0 0 4px var(--cy)}
.who{display:grid;gap:10px;min-width:0;align-content:start}
.who__row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.uname{margin:0;font:700 var(--fs-title)/1 var(--f-display);color:var(--ink-7)}
.summary{margin:0;font-size:var(--fs-lead);color:var(--ink-6);line-height:1.35}
.stats{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 32px;margin:4px 0 0}
.phead .p-actions{align-self:start;display:grid;justify-items:end;gap:6px}
.duo{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.duo--one{grid-template-columns:1fr}














.ggrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.gcard{display:grid;gap:10px;background:var(--ink-1);padding:12px;clip-path:var(--c1);align-content:start}
.gcard__open{display:grid;grid-template-columns:112px 1fr;gap:14px;text-align:left;background:none;border:0;padding:0;color:inherit;font:inherit;cursor:pointer;align-items:start}
.gcard__art{width:112px;height:168px;object-fit:cover;image-rendering:pixelated;display:block}
.ghead__art{width:112px;height:168px;object-fit:cover;display:block}
.gcard__body{display:grid;gap:6px;align-content:start;min-width:0}
/* Round 66 item 25: library card titles are game names, so they
   are cyan with the bold plus title glow, like feed and leaderboard
   game names, so they read as clickable. */
.gcard__t{font-weight:700;font-size:var(--fs-lead);color:var(--cy-t);line-height:1.15;text-shadow:0 0 12px color-mix(in srgb,var(--cy-t) 40%,transparent)}
/* Round 68 item 7: light-mode glow uses the brighter cyan. */
[data-mode="light"] .gcard__t{text-shadow:0 0 12px color-mix(in srgb,var(--cy) 40%,transparent)}
@media (prefers-reduced-motion: reduce){.gcard__t{text-shadow:none}}
.gcard__h{font-size:var(--fs-body);color:var(--ink-5)}
.gcard__h b{font:400 var(--fs-display)/1 var(--f-data);color:var(--cy-t);margin-right:4px}
.gcard__a{font-size:var(--fs-secondary);color:var(--ink-5)}
.gcard .chip{justify-self:start;background:var(--ink-3);color:var(--ink-5);padding:2px 10px;font-size:var(--fs-secondary);clip-path:var(--c1)}
.gcard--zero{opacity:.6}
.gcard--zero .gcard__t{font-size:var(--fs-body)}
.rating{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gcard .rating{margin-left:126px}
.stars{display:flex}
.star{position:relative;display:inline-block;width:22px;height:22px}
.star svg{display:block}
.star__bg{color:var(--ink-4);position:absolute;inset:0}
.star__fg{color:var(--yl);position:absolute;left:0;top:0;height:22px;overflow:hidden}
.star__q{position:absolute;top:0;height:100%;width:25%;background:none;border:0;padding:0;cursor:pointer}
.rating__n{font-size:var(--fs-secondary);color:var(--ink-5);min-width:3ch}
.rating__btns{display:none;gap:4px}
.rbtn{width:36px;height:36px;border:0;background:var(--ink-3);color:var(--ink-7);font:400 var(--fs-lead)/1 var(--f-display);cursor:pointer;clip-path:var(--c1)}
/* Carousel arrows are pixel-arrow images: center the 24px image in the 36px button. */
.car__foot .rbtn{display:inline-flex;align-items:center;justify-content:center}
/* Highlight arrows carry no background: the arrow images stand alone
   on the box. Scoped to the highlight prev/next ids only; the
   favorites-stat arrows and the rating buttons keep their background. */
#js-slide-prev, #js-slide-next, #js-lb-rank-prev, #js-lb-rank-next { background: none; }
.rbtn:disabled{opacity:.4;cursor:default}
.back{justify-self:start}
.ghead{grid-template-columns:112px 1fr auto;gap:20px;align-items:start}
/* Add-to-library button: top right corner of the header box, its own grid column. */
.ghead__addlib{grid-column:3;grid-row:1;align-self:start;justify-self:end;margin:0;white-space:nowrap}
.ghead__b{display:grid;gap:8px;align-content:start;min-width:0}
.ghead__m{margin:0;color:var(--ink-5);font-size:var(--fs-body)}
/* Round 15 item 163: the game title plus the add-to-library button
   in one compact flex row, so the button sits right after the title
   and adds no whitespace above "their rating". The title takes only
   the space it needs (no flex grow pushing the button to the row
   end); the button drops its grid-column placement from the old
   top-right header slot, since it is a flex item here, not a grid
   item of .ghead. */
.ghead__title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0;margin:0}
.ghead__title-row h1{flex:0 1 auto;min-width:0;margin:0}
.ghead__title-row .ghead__addlib{grid-column:auto;grid-row:auto;align-self:center;justify-self:start;margin:0;white-space:nowrap}
/* Round 15 item 164: the achievements section moved into the
   sessions container fills that container's width. */
.ach--in-sessions{width:100%;min-width:0;align-self:stretch;grid-column:1 / -1}
/* Round 15 item 161: the arcade game in the sessions box empty
   state fills the sessions box width. */
.sess__arcade{display:grid;min-width:0;width:100%}
.sess__arcade .ar{width:100%;min-width:0}
.unassigned{margin:0;font-size:var(--fs-secondary);color:var(--ink-5)}
/* Round 95 item 9: tiles stay their own content height. The grid
   default stretches every tile in a row to the tallest tile, so one
   long achievement name made the whole row tall and the siblings'
   icon, name, and percent floated mid-box in empty space. With
   start alignment each tile is compact and top-aligned; the long
   tile stays tall because its text is tall, never empty. */
.agrid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px;align-items:start;align-content:start}
.atile{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;padding:10px 12px;background:var(--ink-1)}
.atile__i{display:grid;place-items:center;width:24px}
.atile__i i{width:20px;height:20px;display:block}
.atile.is-locked{opacity:.55}
.atile.is-locked .atile__i i{background:var(--ink-5)}
.atile.is-rare{box-shadow:inset 0 0 0 3px var(--yl)}
.atile__t{display:grid;min-width:0}
/* Round 117 item 11: the name truncates to one line with an
   ellipsis instead of wrapping, so every tile stays one line tall.
   min-width:0 lets the grid item shrink below its content width,
   which the ellipsis needs. The full name stays reachable: the
   tile aria-label holds it and the tile opens the detail. */
.atile__t b{font-weight:400;color:var(--ink-7);font-size:var(--fs-body);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none}
.atile__t small{color:var(--ink-5);font-size:var(--fs-secondary)}
/* Round 78: My Feed revamp. Event cards are single-column: header
   (avatar, headline, date, follow), session note, centered game
   cards, reactions foot. No timeline spine and no alternating row
   backgrounds. The user feed and game feed do not use .fev, so
   these rules are My Feed only. */
.fevs{list-style:none;margin:0;padding:0;display:grid;position:relative}
/* Round 17 item 190: whitespace between the feed box header and the
   first feed item. */
.feedbox .fevs{margin-top:16px}
/* Round 78: date groups. The heading is a plain muted line. The
   group hides itself when every row in it is hidden (scope toggle,
   load-more cap), so a group with no visible events never shows. */
.fevgroup{list-style:none}
.fevgroup__h{margin:18px 0 12px;font-size:var(--fs-secondary);color:var(--ink-5);font-weight:400;text-transform:none;border-bottom:1px solid var(--ink-4);padding-bottom:8px}
.fevgroup:first-child .fevgroup__h{margin-top:0}
.fevgroup__list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.fevgroup:not(:has(.fev:not([hidden]))){display:none}
/* Round 78: one event is a padded block, not a two-column grid.
   The body is a flex column: header, note, cards, foot. */
/* Round 79 item 3: one event is a container box, the .box
   treatment (background --ink-2, pixel-corner clip) on the
   page background (--ink-1), so each post reads as a box.
   The group list gap separates the boxes.
   Round 80 item 1: that read was wrong. The event does not
   sit on the page background: it sits inside .feedbox, a
   .box with background --ink-2, so a --ink-2 event on a
   --ink-2 box is invisible in every skin and mode. The
   container is --ink-1 now, the feedbox tint, which differs
   from --ink-2 in all 9 skins in light and dark (forest
   light --ink-1 is the light green of her sketch), and the
   game card swaps to --ink-2 so it still reads against the
   container. No new colour: both values are palette tokens. */
.fev{position:relative;padding:14px 12px;background:var(--ink-1);clip-path:var(--c2)}
.fev__b{display:flex;flex-direction:column;min-width:0;gap:10px}
/* Round 80 item 8: the headline, note, game card, and
   like/comment pair share one left edge, in a column to the
   right of the profile pic. The headline already sits there:
   the 32px avatar plus its 8px right margin. The note, card
   grid, and foot row are direct children of the body column,
   so they start at the column edge, under the avatar; a 40px
   left margin puts them on the headline's edge. The comment
   thread is a sibling of the body column, so its own padding
   (widgets.css) aligns it the same way. */
.fev__b > .ev__sess, .fev__b > .fevcard__grid, .fev__b > .fev__foot{margin-left:40px}
/* Round 78: header row. Avatar top left, headline flexes, date
   top right, follow button after the date. */
.fev__head{display:flex;align-items:flex-start}
.fev__head .fev__t{flex:1 1 auto;min-width:0}
.fev__head .fev__m{align-self:center}
.fev__head .fev__follow{flex:none;align-self:center}
/* Round 76 item 11: the 32px avatar sits in the header directly
   left of the username. It keeps its frame. Round 78: the avatar
   is a top-aligned flex item, while the badge centers on the
   username's x-height (vertical-align middle), which lands 1.5px
   below the avatar's middle; the top margin closes that gap so the
   badge centers on the avatar center line (round 77 item 1, guarded
   by the layout-checks feed-badges-center check). */
.fev__av{width:32px;height:32px;flex:none;image-rendering:pixelated;vertical-align:middle;margin:1.5px 8px 0 0;box-shadow:0 0 0 2px var(--ink-4);background:var(--ink-1)}
/* Round 27 item 309: same treatment as round 22 item 251 (library pile
   placeholder fill). A default/placeholder avatar is transparent, so it
   renders as a black box in the feed; the container fill behind it blends
   it in. Real photos are opaque squares, so the fill is invisible on them.
   Feed only (.fev__av); the profile header avatar is untouched. */
.fev__t{margin:0;font-size:var(--fs-lead);color:var(--ink-7);line-height:1.2}
/* Round 106 item 11: a wrapped feed event header sat too far
   apart (inherited body 1.35). The Nine By Five glyphs are small
   inside their line box, so two wrapped lines read as widely
   spaced. 1.2 is the site's own lead-text precedent (.fields dd)
   and keeps descenders clear. Covers My Feed, user feed, game
   feed, which all render the headline in .fev__t. */
.fev__t b{font-weight:400;text-transform:none}
/* Round 10 item 6c: the achievement button inside a feed row keeps the
   achievement name case. The base button rule lowercases buttons
   directly, which beats the inherited .fev__t exemption. */
.fev__t button.a, .ev__t button.a{text-transform:none}
/* Round 66 item 18: feed usernames are pink, the username
   highlight color, matching the game page headline username. They
   were cyan, the same color as game names, so the two read the
   same (the open round 48 flag). Round 73 item 12: heavy weight
   with the steady pink glow, matching the title glow treatment. */
/* Round 84 item 13: padding after the username. The headline
   markup puts the username, the badges, and the action text
   adjacent with no whitespace, so without badges the username ran
   straight into the verb ("TragicLoss played..."). A right margin
   on the username gives a clear gap in both cases. Round 85 item 2:
   the badges keep only their right margin (theme.css), so this
   6px margin is the whole username-to-badges gap and every gap
   in the headline is 6px. */
.fwho{color:var(--mg-t);font-weight:700;text-shadow:0 0 12px color-mix(in srgb,var(--mg-t) 40%,transparent);margin-right:6px}
[data-mode="light"] .fwho{text-shadow:0 0 12px color-mix(in srgb,var(--mg) 40%,transparent)}
a.fwho{text-decoration:none}
/* Round 48 item 1: a username link in the accent color (pink,
   matching the game page headline username), never underlined,
   case preserved against the site-wide lowercase rule. Round 66
   item 24: it carries the same constant pink glow as the profile
   header username. */
.who-link{color:var(--mg-t);text-decoration:none;text-transform:none;text-shadow:0 0 12px color-mix(in srgb,var(--mg-t) 40%,transparent)}
/* Round 68 item 7: light-mode glow uses the brighter magenta. */
[data-mode="light"] .who-link{text-shadow:0 0 12px color-mix(in srgb,var(--mg) 40%,transparent)}
@media (prefers-reduced-motion: reduce){.who-link,.fwho,.sheet__body .followrow a{text-shadow:none}}
.fev__t a{text-decoration:none}   /* feed links are never underlined; the game title keeps its highlight colour from .fev__t .g */
/* Round 78: the date is a plain muted label at the top right of
   the header, next to the follow button. It keeps the .fev__m
   class, so core still inserts the hide button after it. */
.fev__m{margin:0 0 0 8px;font-size:var(--fs-secondary);color:var(--ink-5);white-space:nowrap;flex:none}
/* Round 78: the moderation hide button (core JS, class
   js-mod-hide-btn, admin-only, hover-only) must never impact the
   UI. It stays out of the flow entirely, absolutely positioned at
   the bottom right corner of the whole event (.fev), taking no
   space from anything. Round 81 item 6: the corner moves from
   the first game card's cover (round 80 item 4, CSS anchor
   positioning) to the event itself. The event is the positioned
   ancestor (.fev is position relative; the body column .fev__b
   and the thread box are both static), so one rule covers both
   core insertion branches: after the date line in the header,
   and appended to the thread box when there is no date line.
   14px up and 12px in are the event padding, so the button
   sits flush in the content-box corner and stays there when
   the thread opens and the event grows. The !important margin
   clears the core inline styles. The hover-only show/hide
   still runs in core JS. */
.fev .js-mod-hide-btn{position:absolute;bottom:14px;right:12px;z-index:3;margin:0 !important}
/* Round 78: game cards. The card is the primary component, centered
   below the headline: cover on the left, linked game name with a
   chevron and the event subline on the right. The card background
   is the list background (--ink-1, the old zebra tint made solid)
   with the site's pixel-corner clip, the same treatment as .box.
   The cover is the library 2:3 portrait at half size (56x84) with
   the library 3px black border. A placeholder cover is a
   transparent SVG, so it gets an opaque fill from the box color
   and reads as part of the card like a real cover. */
.fevcard__grid{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
/* Round 79 item 4: the card spans the full width of the post
   container. No max-width cap: flex:1 1 0 already shares the
   row, so one card fills it and three cards split it in thirds. */
/* Round 80 item 1: the card is --ink-2 on the --ink-1 event
   container (swapped with round 79, when the event was --ink-2
   and the card --ink-1), so the card still reads against its
   container now the container has a colour of its own. */
.fevcard{flex:1 1 0;min-width:0;display:flex;gap:10px;align-items:flex-start;background:var(--ink-2);clip-path:var(--c2);padding:10px}
/* Round 80 item 3: the whole game card is a link to that user's
   game page (the template renders an <a class="fevcard"> when the
   card has a URL). A link keeps the card's own colours, never the
   browser default, and the name inside is a span, not a nested
   link. Badge and arcade cards stay <article> with no URL. */
a.fevcard{color:inherit;text-decoration:none}
.fevcard__media{display:block;flex:none}
.fevcard__cover{width:56px;height:84px;display:block;object-fit:cover;border:3px solid #000;box-sizing:border-box}
.fevcard__cover[src^="data:image/svg+xml"]{background:var(--ink-2)}
.fevcard__icon{width:56px;height:56px;display:block}
.fevcard__media > .bdg{display:block}
.fevcard__body{display:flex;flex-direction:column;min-width:0;gap:2px}
/* Round 79 item 1: the card title opts out of the site-wide
   body lowercase rule (base.css:25), like the headline names
   already do. The badge and arcade card headers use the same
   .fevcard__name class, so they are covered too. The subline
   already opts out (.fevcard__sub) and the "+ # more" slot
   opts out here, so every surface the card renders keeps its
   entered case. */
.fevcard__name{display:block;font-size:var(--fs-body);font-weight:700;color:var(--cy-t);text-decoration:none;overflow-wrap:anywhere;text-transform:none;text-shadow:0 0 12px color-mix(in srgb,var(--cy-t) 40%,transparent)}
[data-mode="light"] .fevcard__name{text-shadow:0 0 12px color-mix(in srgb,var(--cy) 40%,transparent)}
@media (prefers-reduced-motion: reduce){.fevcard__name{text-shadow:none}}
.fevcard__name--plain{color:var(--ink-7);text-shadow:none}
[data-mode="light"] .fevcard__name--plain{text-shadow:none}
.fevcard__chev{vertical-align:-2px;margin-left:4px}
.fevcard__sub{font-size:var(--fs-secondary);color:var(--ink-5);text-transform:none}
.fevcard--more{align-items:center;justify-content:center;color:var(--ink-5);font-size:var(--fs-body);text-transform:none}
/* Round 73 items 14/23: the note is primary text, so a note in a
   feed row reads in the body color, not the muted secondary. The
   see-more link after a note sits inline after the note text
   (round 76 item 2). */
.fev .ev__sess{color:var(--ink-6)}
.fev__submore-line{margin:3px 0 0}
.fev__submore{color:var(--cy-t);text-decoration:none}
.fev__subpct{color:var(--cy-t)}
.fev__subav{width:20px;height:20px;vertical-align:-4px;margin-right:2px;image-rendering:pixelated;box-shadow:0 0 0 1px var(--ink-4)}
/* Round 79 item 5: the rare-event row background highlight is
   gone. The fev--rare / fev--common classes stay (the template
   still adds them) and the rarity subline text stays; only the
   yellow-tinted background is removed. */
.fev--rare{padding-inline:12px}
.fev--rare .fev__t{font-size:var(--fs-lead)}
.fev--common .fev__t{font-size:var(--fs-lead);color:var(--ink-6)}
@container profile (max-width:820px){.rating__btns{display:flex}.duo{grid-template-columns:1fr}.phead{grid-template-columns:auto 1fr}.phead .p-actions{grid-column:1/-1;justify-items:start}.ggrid{grid-template-columns:1fr}.sitebar{padding:12px 16px}}
@container profile (max-width:520px){.phead .avatar{width:72px;height:72px}.ghead{grid-template-columns:96px 1fr auto}.ghead__art{width:96px;height:144px}.uname{font-size:var(--fs-title)}.nav{order:3;width:100%}.sitebar__r{margin-left:0}}
.stats{align-items:flex-end}






.car__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px}
.dots{display:flex;gap:8px}
.dot{width:16px;height:16px;border:0;padding:0;background:var(--ink-4);cursor:pointer}
.dot[aria-pressed="true"]{background:var(--cy)}
.lead{color:var(--ink-5);font-size:var(--fs-body)}
.piles{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.pile{--dx:12px;display:grid;gap:12px;justify-items:start;align-content:start;background:var(--ink-1);border:0;padding:16px 16px 14px;clip-path:var(--c1);cursor:pointer;color:inherit;font:inherit;text-align:left}
.pile:hover,.pile[aria-expanded="true"]{--dx:22px}
.pile[aria-expanded="true"]{box-shadow:inset 0 0 0 4px var(--cy)}
.pile__st{position:relative;display:block;width:calc(96px + 3*22px);max-width:100%;height:calc(144px + 3*10px)}
.pile__c{position:absolute;left:calc(var(--o)*var(--dx));bottom:calc((3 - var(--o))*0px);top:calc(var(--o)*10px);z-index:calc(10 - var(--o));filter:brightness(calc(1 - var(--o)*.14));image-rendering:pixelated;transition:left .15s steps(3);border:1px solid #000;box-sizing:border-box;width:96px;height:144px;object-fit:cover}
/* Round 22 item 251: in a pile stack (2+ covers) a placeholder cover
   gets the container fill behind its transparent parts, so the covers
   behind it do not show through the cartridge. Only library piles use
   .pile__c, and only stacks match :has(), so single covers and every
   non-library view keep the transparent background. Real covers are
   opaque, so the fill is invisible on them. */
.pile__st:has(> .pile__c + .pile__c) .pile__c{background:var(--ink-2)}
.pile__l{display:grid;gap:2px}
.pile__l b{font:400 var(--fs-lead)/1.1 var(--f-display);color:var(--ink-7);display:flex;align-items:center;gap:6px}
.pile__gi{width:20px;height:20px;flex:none;image-rendering:auto}
.pile__gi{width:24px;height:24px;flex:none;image-rendering:auto}
.pile__l small{font-size:var(--fs-secondary);color:var(--ink-5)}
.shelf{display:grid;gap:16px;background:var(--ink-1);padding:18px;clip-path:var(--c1);border-top:0}
.h3{margin:0;font:400 var(--fs-heading)/1.2 var(--f-display);color:var(--cy-t)}
.h3 small{font-size:var(--fs-body);color:var(--ink-5);margin-left:8px}
.shelf .gcard{background:var(--ink-2)}
.ip .shape{width:20px;height:20px}
.duo{--duo-h:640px;align-items:stretch}
.duo .box{height:var(--duo-h);grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.duo > .wdg{height:var(--duo-h);overflow:hidden}
/* Round 48 item 2: the game page left column stacks the counters
   container above the game feed. The stack fills the duo height,
   so the feed flexes to whatever height is left after the counters
   and scrolls within it; the right box keeps the full duo height. */
.duo__left{display:flex;flex-direction:column;gap:16px;min-width:0;height:var(--duo-h)}
/* Round 105 item 12: the left-column widget gets the same
   containment as .duo > .wdg (it is nested one level deeper, so
   that rule never applied to it): a tall list can never paint
   past the widget's box and run over the page below. */
.duo__left > .wdg{height:auto;flex:1 1 auto;min-height:0;min-width:0;overflow:hidden}
.duo__left > .userstats__counters{flex:none}
/* Round 28 item 313: arcade beside the added games. The library keeps
   its natural height, so the fixed duo height does not apply here. */
.duo--lib{align-items:start}
.duo--lib .box{height:auto;overflow:visible}
.duo--lib .library__arcade{min-width:0}
/* Round 32 item 353: the library spans the full page width by
   default, so the library duo is one column. Only the
   genuinely-empty-profile exception keeps two columns, with the
   added games beside the arcade. The narrow overrides keep the
   exception single-column where the duo itself collapses. */
.duo.duo--lib{grid-template-columns:1fr}
.duo.duo--lib.duo--lib--arcade{grid-template-columns:1fr 1fr}
@container profile (max-width:820px){.duo.duo--lib.duo--lib--arcade{grid-template-columns:1fr}}
@media (max-width:820px){.duo.duo--lib.duo--lib--arcade{grid-template-columns:1fr}}






.duo--one .box{height:var(--duo-h)}
@container profile (max-width:820px){.duo{--duo-h:560px}}
.phead{align-items:start}
.phead{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.p-right{display:grid;justify-items:end;gap:14px;text-align:right}
.p-right .stats{margin:0;justify-content:flex-end}
.p-right .p-actions{justify-items:end}
@container profile (max-width:820px){.phead{grid-template-columns:auto 1fr}.p-right{grid-column:1/-1;justify-items:start;text-align:left}.p-right .stats{justify-content:flex-start}.p-right .p-actions{justify-items:start}}
.p-actions--in{display:flex!important;flex-direction:row;justify-content:flex-start;align-items:center;gap:12px;justify-items:start!important}
.p-right{align-self:center}
.phead .avatar{align-self:start}
.p-actions--in{margin-top:2px}





.ev__tr{display:inline-block;vertical-align:-3px;margin-right:6px;color:var(--mg)}
.ghostbox{border:4px dashed var(--ink-4);background:none;clip-path:none;height:auto!important;align-self:start;justify-items:start}
.slidebar .chip-btn{min-height:36px;padding:2px 10px;border:2px solid var(--ink-4);background:var(--ink-1);cursor:pointer;font:400 var(--fs-secondary)/1.2 var(--f-display);color:var(--ink-6)}
.slidebar .chip-btn[aria-pressed="true"]{background:var(--cy);border-color:var(--cy);color:var(--on-accent)}
.car__bottom{display:grid;gap:10px}
.slidebar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-top:3px solid var(--ink-3);padding-top:10px}
.pinb{min-height:36px;padding:2px 10px;border:2px solid var(--mg);background:none;color:var(--mg-t);cursor:pointer;font:400 var(--fs-secondary)/1.2 var(--f-display);margin-left:-2px}
.pinb[aria-pressed="true"]{background:var(--mg);color:var(--on-accent)}
.duo .box{grid-template-rows:auto minmax(0,1fr) auto}
.duo .box.ghostbox{grid-template-rows:none}
.slidebar .chip-btn{border:0;background:var(--ink-3);clip-path:var(--c1);padding:2px 12px}
.slidebar .chip-btn[aria-pressed="true"]{background:var(--cy)}
.pinb{border:0;background:var(--ink-3);clip-path:var(--c1);margin-left:4px}
.pinb[aria-pressed="true"]{background:var(--mg)}
.who{align-self:start}

/* following sheet rows: normal spacing, vertical centering, unfollow
   on the right, shown only on row hover. Keyboard users reach the
   button by tabbing to it (row focus-within reveals it); touch users
   get it always visible (hover none). The button keeps its layout
   space while invisible, so rows never jump when it appears. */
.sheet__body .followrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
/* Round 66 item 24: the name in a following/followers row is a
   username, so it is pink with the constant pink glow, like the
   profile header username. */
.sheet__body .followrow a { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--mg-t); text-shadow: 0 0 12px color-mix(in srgb, var(--mg-t) 40%, transparent); }
/* Round 68 item 7: light-mode glow uses the brighter magenta. */
[data-mode="light"] .sheet__body .followrow a { text-shadow: 0 0 12px color-mix(in srgb, var(--mg) 40%, transparent); }
.sheet__body .followrow a img { flex: none; display: block; }
.sheet__body .followrow .js-following-unfollow { margin-left: auto; flex: none; opacity: 0; transition: opacity 0.15s; }
.sheet__body .followrow:hover .js-following-unfollow,
.sheet__body .followrow:focus-within .js-following-unfollow { opacity: 1; }
@media (hover: none) { .sheet__body .followrow .js-following-unfollow { opacity: 1; } }
/* Hidden arcade in the empty game-page box (design package). */
.ar { position: relative; display: grid; gap: 12px; align-content: start; }
.ar__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; justify-content: flex-end; }
.ar__stage { position: relative; min-height: 340px; container-type: inline-size; }
.ar canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; touch-action: none; outline: none; }
.ar__idle { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
.ar__idle[hidden] { display: none; }
.ar__idle:focus-visible { outline: 3px dashed var(--mg); }
.ar__over { --ob: #000; --of: #fff; position: absolute; inset: 0; display: flex; background: color-mix(in srgb, var(--ob) 96%, transparent); padding: 10px; overflow: auto; animation: fadein .25s; cursor: pointer; }
.ar__over[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.ovcard { margin: auto; width: min(100%, 440px); display: grid; gap: 10px; }
.ovl, .ovr { display: grid; gap: 10px; min-width: 0; align-content: center; }
@container (min-width: 500px) { .ovcard { width: auto; grid-template-columns: auto 340px; justify-content: center; column-gap: 44px; } .ovr { width: 340px; } }
.ovcard h3 { font: 400 var(--fs-title)/1 var(--f-display); color: var(--ink-7); }
.ovcard h3 em { font-style: normal; color: var(--mg-t); }
.ovsc { display: block; }
.ovname { font: 400 var(--fs-lead)/1.2 var(--f-display); color: var(--ink-7); margin: 0; }
/* End screen: black and white, follows the mode. */
html[data-mode="light"] .ar__over { --ob: #fff; --of: #000; }
.ovcard h3, .ovcard h3 em, .ovname { color: var(--of); }
.ovcard .ltab td, .ovcard .ltab .rk, .ovcard .ltab .sc, .ovcard .ltab tr.r1 .rk, .ovcard .ltab tr.r1 .sc, .ovcard .ltab tr.r2 .rk, .ovcard .ltab tr.r3 .rk, .ovcard .ltab tr.gap td { color: var(--of); }
.ovcard .ltab tr:nth-child(odd) td { background: color-mix(in srgb, var(--of) 10%, transparent); }
.ovcard .ltab tr.me td, .ovcard .ltab tr.me .rk, .ovcard .ltab tr.me .sc { background: var(--of); color: var(--ob); }
html[data-mode="light"] .ovcard .ltab tr.me td, html[data-mode="light"] .ovcard .ltab tr.me .rk, html[data-mode="light"] .ovcard .ltab tr.me .sc { background: #8c8c8c; color: #fff; }
.ltab a.ulink, .ovr .ltab a.ulink { color: inherit; text-decoration: none; }
.ltab a.ulink:hover, .ltab a.ulink:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.ltab tr.me a.ulink { color: inherit; }
/* Arcade leaderboard table (end screen). */
.ltab { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.ltab td { padding: 2px 6px; color: var(--ink-6); white-space: nowrap; }
.ltab tr:nth-child(odd) td { background: color-mix(in srgb, var(--ink-1) 55%, transparent); }
.ltab .rk { font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--ink-5); width: 50px; }
.ltab tr.r1 .rk, .ltab tr.r1 .sc { color: var(--yl); }
.ltab tr.r2 .rk { color: var(--ink-7); }
.ltab tr.r3 .rk { color: var(--mg-t); }
.ltab .sc { font-family: 'Press Start 2P', monospace; font-size: 11px; text-align: right; color: var(--cy-t); }
.ltab .nm { width: 100%; max-width: 1px; overflow: hidden; text-overflow: ellipsis; }
.ltab tr.me td { background: var(--mg); color: var(--on-accent); }
.ltab tr.me .rk, .ltab tr.me .sc { color: var(--on-accent); }
.ltab tr.me.new .nm::after { content: " new"; animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ltab .bv { display: inline-block; vertical-align: middle; margin-left: 6px; line-height: 0; }
.ltab .bdg img { image-rendering: pixelated; }
/* Badges (design package): shown at 16, 32 and 64px only. */
.bdg { display: inline-block; width: var(--s, 32px); height: var(--s, 32px); position: relative; vertical-align: middle; flex: none; }
.bdg svg { display: block; width: 100%; height: 100%; }
.bdg img { display: block; width: 100%; height: 100%; }
.sheen { transform: translateX(-34px); animation: sheen 3.2s steps(18) infinite; }
@keyframes sheen { 0% { transform: translateX(-34px); } 38% { transform: translateX(34px); } 100% { transform: translateX(34px); } }
.btip:hover .sheen { animation-duration: 1.6s; }
.bshelf { display: flex; gap: 6px; align-items: center; }
.uname .bshelf { display: inline-flex; margin-left: 8px; }

.btip { position: relative; display: inline-flex; }
.btip:hover::after, .btip:focus-visible::after { content: attr(data-tip); position: absolute; left: 0; right: 0; margin-inline: auto; bottom: calc(100% + 8px); background: var(--ink-2); color: var(--ink-7); border: 2px solid var(--ink-4); padding: 6px 10px; font-size: var(--fs-secondary); line-height: 24px; white-space: nowrap; width: max-content; max-width: calc(100vw - 32px); text-align: center; z-index: 20; }
/* Feed: main column plus the summary sidebar (round 9 item 17).
   Round 14 item 132: the sidebar was 480px, 50% wider than the
   old 320px. Round 15 item 149: 576px, 20% wider than 480px. */
.feedwrap { display: grid; grid-template-columns: minmax(0, 1fr) 576px; gap: 14px; align-items: start; margin-top: 0; }
/* Round 39 item 386: the single post has no announcements sidebar,
   so its feedwrap is one column and the post gets full width. */
.feedwrap--single { grid-template-columns: minmax(0, 1fr); }
.fmain { display: grid; gap: 14px; min-width: 0; }
.fside { display: grid; gap: 14px; min-width: 0; align-content: start; }
.fside__box { display: grid; gap: 12px; align-content: start; }
/* Round 14 item 140: the header row of each leaderboard box, the
   metric name on the left and that box's own scope toggle in its
   upper right corner. */
.fside__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
/* Round 73 item 5: a leaderboard slide is a plain div with no gap
   between its head and list, so the head needs its own bottom
   padding to match the 12px box gap. Round 106 item 8: restored
   with the carousel revert. */
.lb-car__slide > .fside__head { padding-bottom: 12px; }
.fside__head .fside__metric { flex: 1 1 auto; min-width: 0; }
/* Round 14 item 141: only the rankings carousel still rotates, on
   a 12s timer that pauses while focus is on its box (see JS). Round
   26 item 285: the popular lists now rotate the same way, in
   one carousel box with dots and prev/next controls, on a 10s
   timer. Round 106 item 8: restored with the carousel revert. */
.fside__metric { margin: 0; font: 400 var(--fs-heading)/1.2 var(--f-display); color: var(--ink-7); }
/* Round 27 item 297: custom Discord members display, the widget
   iframe is gone. No heading, full container width, height sized to
   the member list. Avatars are 32px, names keep their entered case,
   the count line is secondary 18, the Join link is the .btn
   treatment at full width. Round 33 item 366: a linked name keeps
   the body color, and a follow button sits at the far end of the
   row, always visible, never hover-only like the feed one. Round
   73 items 20/22: the count sits at the top right corner of the
   widget with a lime dot to its left, and an unlinked name shows
   its tooltip above the name on hover. The name span is the
   tooltip's anchor, so its overflow must open on hover or the
   tooltip would clip. Round 74 item 2: the count was absolute
   against .fside__discord, which starts below the "discord"
   heading, so it sat a line below the header. It now anchors to
   the discord section at the box padding, on the heading line,
   and the wrapper keeps no reserved top padding. */
.fside__box[data-slot="discord"] { position: relative; }
.fside__discord { display: flex; flex-direction: column; gap: 12px; }
.discord__count { position: absolute; top: 24px; right: 24px; margin: 0; font-size: var(--fs-secondary); color: var(--c-muted); }
.discord__count::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: #7cfc00; }
.discord__name:hover, .discord__name:focus-within { overflow: visible; }
.discord__tip { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 30; opacity: 0; pointer-events: none; white-space: nowrap; background: var(--ink-2); border: 2px solid var(--ink-4); color: var(--ink-6); font-size: var(--fs-secondary); padding: 6px 10px; }
.discord__name:hover .discord__tip, .discord__name:focus-within .discord__tip { opacity: 1; }
/* Round 93 item 6: the list shows five users at a time and
   scrolls for the rest. Five rows of 32px avatars with 8px gaps
   is 192px, so the list caps there; five or fewer rows show no
   scrollbar. */
.discord__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 192px; overflow-y: auto; }
/* Round 116 item 19: the member list scrolls with the site themed
   scrollbar, not the browser default. Same pattern as .js-scroll
   in joystats-scrollbar.css, scoped here because the list markup
   is rendered by core. */
@supports not selector(::-webkit-scrollbar){.discord__list{scrollbar-width:auto;scrollbar-color:var(--cy) var(--ink-1)}}
.discord__list::-webkit-scrollbar{width:20px;height:20px}
.discord__list::-webkit-scrollbar-track{background:var(--ink-1)}
.discord__list::-webkit-scrollbar-thumb{
  min-height:56px;border:4px solid var(--ink-1);background-clip:padding-box;
  background:
    linear-gradient(to bottom,var(--grip) 0 4px,transparent 4px 8px,var(--grip) 8px 12px,transparent 12px 16px,var(--grip) 16px 20px) center/8px 20px no-repeat,
    var(--cy);
  --grip:color-mix(in srgb,var(--on-accent) 55%,transparent)}
.discord__list::-webkit-scrollbar-thumb:hover{background-color:var(--mg)}
.discord__list::-webkit-scrollbar-thumb:active{background-color:var(--ink-7)}
.discord__list::-webkit-scrollbar-button,.discord__list::-webkit-scrollbar-corner{display:none}
.discord__member { display: flex; align-items: center; gap: 10px; min-width: 0; }
.discord__av { width: 32px; height: 32px; flex: none; box-shadow: 0 0 0 2px var(--ink-4); }
.discord__av--initial { display: inline-flex; align-items: center; justify-content: center; background: var(--ink-3); color: var(--ink-7); font-size: var(--fs-body); text-transform: none; }
/* Round 66 item 23: Discord widget names use the username color
   (pink), matching usernames elsewhere, not the body text color. */
.discord__name { position: relative; flex: 1 1 auto; min-width: 0; font-size: var(--fs-body); color: var(--mg-t); text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.discord__name { color: var(--mg-t); text-decoration: none; }
a.discord__name:hover, a.discord__name:focus { text-decoration: underline; }
.discord__member .fev__follow { display: inline-flex; flex: none; margin-left: auto; }
.discord__join { width: 100%; }
/* Round 98 item 8: the Discord widget's two buttons for a
   not-connected viewer sit side by side, inline and never full
   width, in different colors so the two actions read apart:
   join is the primary cyan, connect is the secondary magenta.
   Both colors are site tokens, so all 9 skins work in light
   and dark. The single "open discord" button for a connected
   viewer is not in .discord__actions, so it keeps the full
   width rule above. Round 99 item 1: the round 98 colors did
   not show on live, both buttons rendered cyan, because the
   ui-kit sheet loads after this one and re-sets
   .btn { --bg: var(--cy); } at the same specificity, so the
   ui-kit rule won the --bg custom property on both buttons.
   The --bg assignments below now carry .discord__actions in
   the selector, which beats the ui-kit .btn rule in the
   cascade whatever sheet loads last. Round 101 item 3: both
   buttons take only their content width now, so neither
   stretches to fill the row. */
.discord__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.discord__actions .discord__join { width: auto; min-width: 0; text-align: center; }
.discord__actions .discord__join--join { flex: 0 0 auto; white-space: nowrap; --bg: var(--cy); --fg: var(--on-accent); }
.discord__actions .discord__join--connect { flex: 0 0 auto; min-width: auto; white-space: nowrap; --bg: var(--mg); --fg: var(--on-accent); }
/* Round 101 item 3: the round 99 fix over-compensated, the
   connect button stretched to fill the rest of the row
   (flex: 1 1 auto). Both buttons are content width now,
   neither stretches, and both stay on one line each without
   wrapping. At a narrow width the flex-wrap on the container
   drops the connect button to its own line at its own content
   width, left-aligned, so the 500px guard from round 99 is
   gone: with flex: 0 0 auto on both buttons there is nothing
   left to guard. */
.fside__car { min-height: 36px; }
/* Round 26 item 285: the popular lists carousel (lately / all
   time). The foot reuses the Highlights carousel classes
   (.car__foot, .dots, .dot, .rbtn); slides toggle via the hidden
   attribute. The rows list keeps the 320px scale of the rankings
   box, so rotating between lists never changes the box height.
   Round 106 item 8: restored with the carousel revert. */
.lb-car__slide[hidden] { display: none; }
.lb-car .fside__rows { min-height: 320px; }
/* Round 26 item 283: a wider gap after the comma in the popular
   list headings. */
/* Round 27 item 299: .25em, the .5em gap overcorrected (17.50px measured). */
/* Round 71 item 11: the margin is gone. The .25em on top of the
   normal space after the comma read as two spaces before "lately"
   and "all time", so the span keeps no extra margin. */
.lb-comma { margin-right: 0; }
/* Round 27 item 291: Lately empty states. The synced-owner message
   renders at secondary 18; the button case stacks message over button. */
.wdg__empty--msg { font-size: var(--fs-secondary); }
.wdg__list.tl > li.wdg__empty--cta { gap: 12px; }
/* Round 27 item 301: share card 0-data notice at the top of the window. */
.share-card__empty { margin: 0 0 16px; text-align: center; font-size: var(--fs-secondary); color: var(--c-muted); }
.fside__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
/* Round 14 item 132: the rankings rows container has a fixed
   min-height sized for 5 rows, so rotating between lists never
   changes the box height and the page never jerks. Lists return at
   most 5 rows; the tallest (rarest, two lines a row) fits inside
   320px, and a shorter list leaves blank space by design. */
.fside__box[data-slot="leaderboards-rankings"] .fside__rows { min-height: 320px; }
/* Round 23 item 253: announcements list, latest posts newest
   first, capped at 5. Same 5-row, 320px scale as the rankings box;
   the list scrolls when the titles run long. Post titles keep
   their entered case. */
.fside__ann { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 320px; overflow-y: auto; scrollbar-gutter: stable; }
.fside__ann-row { display: grid; gap: 2px; padding: 8px 12px; }
.fside__ann-row:nth-child(odd) { background: color-mix(in srgb, var(--ink-1) 55%, transparent); }
.fside__ann-link { font-size: var(--fs-body); color: var(--ink-7); text-decoration: none; text-transform: none; }
.fside__ann-link:hover { color: var(--cy-t); }
.fside__ann-date { font-size: var(--fs-secondary); color: var(--ink-5); }
/* Round 26 items 276 + 277: the announcements heading links to the
   announcements page when one exists, but reads as a plain header, no
   link affordance in any state. The anchor is the flex item in
   .fside__head, so it takes the metric's flex sizing; the outline is
   off because the global :focus-visible dashed outline would
   otherwise mark it as a link on keyboard focus. */
.fside__head-link, .fside__head-link:hover, .fside__head-link:focus, .fside__head-link:focus-visible, .fside__head-link:active, .fside__head-link:visited { display: block; flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; cursor: default; outline: none; }
/* Round 14 item 132: leaderboard rows read at body 20 and names at
   lead 24, both on the token scale. Usernames keep weight 700 in
   the pink accent, game names keep weight 700 in cyan (round 16
   item 175, matching the username weight). Rank and
   value numbers are Press Start 2P at secondary 18, the smallest
   on-scale role. */
.fside__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; font-size: var(--fs-body); color: var(--ink-6); }
.fside__row:nth-child(odd) { background: color-mix(in srgb, var(--ink-1) 55%, transparent); }
/* Round 12 item 71: the viewer's row was invisible. The odd-row rule
   above has higher specificity than a plain .fside__row--me, so an
   odd-ranked viewer (rank 3) kept the odd-row background while the
   text took var(--on-accent), near-black on a dark row in dark mode.
   The doubled class beats the odd rule, and the fill is now var(--cy)
   with var(--on-accent) text, the same pairing the .btn uses, so it
   reads in every skin in both light and dark mode. */
.fside__row.fside__row--me, .fside__row--me:nth-child(odd) { background: var(--cy); color: var(--on-accent); }
.fside__nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 var(--fs-lead)/1.2 var(--f-display); color: var(--mg-t, var(--mg)); }
/* Round 11 item 34: leaderboard names link to profiles with no
   underline, in the theme highlight color. On the viewer's own row
   the name stays readable on the cyan row background (round 12
   item 71). */
a.fside__nm { text-decoration: none; color: var(--mg-t, var(--mg)); }
.fside__row.fside__row--me a.fside__nm { color: var(--on-accent); }
/* Round 13 item 104: game rows gain an icon column; the game name
   is cyan, kept in its entered case, at the username weight (round
   16 item 175: 700, matching .fside__nm). Round 16 item 183: the
   icon has a transparent background, so it never shows through a
   transparent PNG; the empty placeholder has none either. Round 21
   item 242: the icon fits inside the 48px box at its natural aspect
   (contain, like the Lately icons), never cropped to a square. */
.fside__row--game { grid-template-columns: 36px 48px minmax(0, 1fr) auto; }
.fside__ic { width: 48px; height: 48px; display: block; object-fit: contain; background: transparent; }
.fside__ic--none { background: transparent; }
.fside__nm--game { font-weight: 700; color: var(--cy-t, var(--cy)); text-shadow: 0 0 12px color-mix(in srgb, var(--cy-t) 40%, transparent); }
a.fside__nm--game { color: var(--cy-t, var(--cy)); }
/* Round 13 item 104: rarest-achievement rows carry the username
   plus the achievement name and game on a second line, in the
   colours they show elsewhere (achievement pink, game cyan). */
.fside__who { display: grid; gap: 2px; min-width: 0; }
.fside__ach { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-body); color: var(--ink-6); }
/* Round 98 item 10: an ellipsised sidebar name or achievement line
   expands on row hover (or keyboard focus within the row) to show
   the full text. */
.fside__row:hover .fside__nm,.fside__row:focus-within .fside__nm,.fside__row:hover .fside__ach,.fside__row:focus-within .fside__ach{white-space:normal;overflow:visible;text-overflow:clip}
.fside__ach .a { color: var(--mg-t, var(--mg)); }
.fside__ach .g { color: var(--cy-t, var(--cy)); font-weight: 700; text-shadow: 0 0 12px color-mix(in srgb, var(--cy-t) 40%, transparent); }
/* Round 68 item 7: light-mode glow uses the brighter cyan. */
[data-mode="light"] .fside__nm--game { text-shadow: 0 0 12px color-mix(in srgb, var(--cy) 40%, transparent); }
[data-mode="light"] .fside__ach .g { text-shadow: 0 0 12px color-mix(in srgb, var(--cy) 40%, transparent); }
@media (prefers-reduced-motion: reduce){.fside__nm--game,.fside__ach .g{text-shadow:none}}
.fside__row.fside__row--me .fside__ach, .fside__row.fside__row--me .fside__ach .a, .fside__row.fside__row--me .fside__ach .g { color: var(--on-accent); }
.fside__vl { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; font-family: 'Press Start 2P', monospace; font-size: var(--fs-secondary); color: var(--cy-t, var(--cy)); text-align: right; }
.fside__num { font-family: 'Press Start 2P', monospace; font-size: var(--fs-secondary); color: var(--cy-t, var(--cy)); }
.fside__suf { font: 400 var(--fs-body)/1.2 var(--f-display); color: var(--ink-6); }
.fside__row.fside__row--me .fside__suf, .fside__row.fside__row--me .fside__num { color: var(--on-accent); }
/* Round 10 item 8: leaderboard values use the rolling digit counter.
   The cell geometry is tied to the 30px digit strip (10 digits roll
   300px), so the 15px Press Start 2P digit size is kept even though
   it sits below the text token scale; changing it would break the
   roll. See the style guide data-number exception. */
.fside__row .odo { gap: 2px; }
.fside__row .odo i { width: 21px; height: 30px; font-size: 15px; }
.fside__row .odo i.d { width: 12px; padding-bottom: 6px; }
.fside__row .odo__strip b { height: 30px; }
.fside__row .odo--roll.go .odo__strip { transform: translateY(-300px); }
.fside__row.fside__row--me .fside__vl { color: var(--on-accent); }
.fside__empty { font-size: var(--fs-secondary); color: var(--ink-5); padding: 4px 8px; }
@media (max-width: 820px) { .feedwrap { grid-template-columns: 1fr; } }
/* Round 18 items 215/216: the profile and game page duo stacks to one
   column at the same 820px width the feed uses. The matching container
   query in this file never fires: theme.css disables container queries
   on .js-page, so at a narrow window the duo stayed two columns and
   each Lately/sessions row was only about 246px wide while the feed,
   which collapses on this media query, went full width. A media query
   restores the collapse for the duo only; the other container queries
   stay disabled by design. The shorter duo height matches the
   container query's 560px. */
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; --duo-h: 560px; } }
.av { width: 32px; height: 32px; display: block; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--ink-4); }
/* Round 10 item 5: the load-more button sits under the feed list,
   centred. Round 14 item 142: justify-self center, the feed box is
   a grid so the button centres in its row. */
.feedbox #js-feed-more { justify-self: center; }
/* Round 12 item 75: the log session button floats over the
   top-right corner of the feed container instead of taking a grid
   row, so it adds no vertical space above the feed and the feed
   rows start at the top of the container. Round 13 item 113's
   first-row offset is gone (round 20 item 231); the first row's
   controls sit at the normal top-right like every other row. */
.feedbox { position: relative; }
/* Round 18 item 213: the following/followers counts are gone from the
   feed entirely (the profile header keeps them), so the tools stack is
   one row again. Round 18 item 218: the row is the scope checkbox,
   then the log session button, in that order. Round 21 item 240:
   the filter button is gone, so the row is two columns. */
.feedbox__tools { position: absolute; top: 24px; right: 24px; z-index: 5; display: grid; grid-template-columns: auto auto auto; justify-content: end; align-items: center; gap: 8px 10px; margin-bottom: 0; }
/* Round 73 item 18: scope toggle next to the log session button.
   Round 74 item 1: one switch, not two chips. The labels flank
   the track (all users left, users I follow right); the track is
   the on-brand toggle (36px wide, 20px tall, ink-4 off, cyan on,
   16px white square knob sliding from 2px to 18px, 0.15s), on is
   users I follow. The active label reads in the body color. */
.feedscope { display: inline-flex; align-items: center; gap: 8px; }
.feedscope__label { font: 400 var(--fs-secondary)/1.2 var(--f-display,'Nine By Five'); color: var(--ink-5); white-space: nowrap; }
.feedscope__label--on { color: var(--ink-7); }
.feedscope__switch { display: inline-flex; line-height: 0; cursor: pointer; text-decoration: none; }
.feedscope__switch .tog { display: inline-block; width: 36px; height: 20px; background: var(--ink-4); position: relative; }
.feedscope__switch .tog i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; transition: left 0.15s; }
.feedscope__switch--on .tog { background: var(--cy); }
.feedscope__switch--on .tog i { left: 18px; }
.feedscope__switch:focus-visible { outline: 0; box-shadow: inset 0 0 0 4px var(--ink-7), inset 0 0 0 7px var(--mg); }
/* Round 15 item 167: the mini header content moved to the top of the
   feedbox. The head is a plain grid stack; the .minihead inside
   keeps its own flex layout (avatar, username, last activity).
   Round 16 item 187: no right padding any more, the follow counts
   moved out of the head into the tools stack, so the last-activity
   text gets the full middle width and does not wrap. */
.feedbox__head { display: grid; gap: 10px; min-width: 0; }
.feedbox__head .minihead { margin-bottom: 0; }
/* Round 10 item 14: mini profile header above the feed. Avatar left,
   name and activity in the middle, follow counts right. No section
   headers on the feed or leaderboard boxes. Round 13 item 87: 50%
   less whitespace below the mini header block. */
.minihead { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin-bottom: 7px; }
.minihead__who { display: flex; flex-wrap: wrap; row-gap: 10px; column-gap: 16px; align-items: flex-start; min-width: 0; flex: 1 1 480px; }
/* Round 85 item 8: the meta column is a real flex column beside
   the avatar, superseding round 84 item 1 (display:contents put
   the last-activity row below the profile picture). Line 1 is the
   username row, line 2 is the last-activity row, and neither sits
   below the avatar. The toggle and log session button live in
   .feedbox__tools, absolutely positioned at the top right, so
   they already sit on line 1 and are untouched here. The basis is
   0, not auto: with basis auto the long last-activity line sets
   the column wider than the space beside the avatar, so
   .minihead__who wraps the whole column below the avatar. Basis
   0 keeps the column beside the avatar, growing to fill the
   remaining width, and the last-activity line wraps inside it. */
.minihead__meta { display: flex; flex-direction: column; row-gap: 10px; min-width: 0; flex: 1 1 0; }
.minihead__name { margin: 0; }
/* Round 12 item 68: the label and the played text share one line,
   both at the played text's size (var(--fs-lead)). The last-activity
   block is a wrapping flex row, not a two-row grid, so the label sits
   immediately to the left of the played text. Round 13 item 89: the
   label and the played text both use the played text's colour and
   the welcome size, so neither reads as muted secondary text.
   The no-activity message (.minihead__empty) keeps wrapping
   inside the row. Round 84 item 1 had made the row one full-width
   line with no wrapping; round 85 item 8 supersedes that (below).
   Round 85 item 8: the row is the second line of the meta column
   beside the avatar, not a full-width row below it, so it wraps
   to multiple lines as needed and neither the label nor the
   played text is nowrap. Supersedes round 84 item 1, which made
   it one full-width line. Round 89 item 1: the label and the
   played text are inline spans in a plain block, not flex items,
   so they flow as one continuous line wrapping mid-sentence. As
   flex items the long played text took its max-content width and
   wrapped to a second flex line as a whole, leaving the label
   alone on line 1 with the paragraph return Jessica reported. */
/* Round 117 item 3: no right margin on the label; the newline
   between the label span and the played text already renders as
   one space, so the gap after the colon is a single space. */
.minihead__lastlabel { margin: 0; font-size: var(--fs-lead); color: var(--ink-6); }
.minihead__last { display: block; min-width: 0; }
/* Round 11 items 29/30: the last activity is plain inline text after
   the label. The game link is cyan and the platform name is
   highlighted like in Lately rows; neither is underlined. */
.minihead__lasttext { margin: 0; font-size: var(--fs-lead); color: var(--ink-6); }
.minihead__lasttext a { text-decoration: none; }
.minihead__lasttext .g { color: var(--cy-t, var(--cy)); }
.minihead__lasttext .pname { color: color-mix(in srgb, var(--cy-t) 50%, var(--mg-t)); }
.minihead__lasttext .m { color: var(--ink-5); }
.minihead__empty { margin: 0; font-size: var(--fs-lead); color: var(--ink-6); }
/* Round 85 item 8: the 1360px query from round 84 item 1 is gone
   with the full-width one-line row; the last-activity row wraps
   at every width now, so only the narrow rule below remains. */
@media (max-width: 820px) { .minihead__who { flex-basis: 100%; } }
/* Round 18 item 218: the feed list region the scope checkbox refetch
   swaps. display:contents keeps the list and the load-more button
   direct grid items of the feedbox, exactly as without the wrapper. */
.feedbox__region { display: contents; }
/* Round 18 item 218: follow button after the username in a feed event
   name. Round 70 item 10: always visible, not hover-only. Chip-button
   treatment from the style guide: secondary 18 text, 2px ink-4
   border, ink-2 background, ink-6 text. */
/* Round 70 item 10: the follow button is always visible, not hover-only, wherever this class is used. It keeps the normal site button treatment (border, background, display font). In the feed header it sits in the header row after the date, in flow (round 78, see .fev__head .fev__follow above); the network and Discord rows keep it inline. */
.fev__follow { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; margin-left: 8px; border: 2px solid var(--ink-4); background: var(--ink-2); color: var(--ink-6); font: 400 var(--fs-secondary)/1.2 var(--f-display,'Nine By Five'); cursor: pointer; vertical-align: middle; }
/* Sparkle burst layer. */
#burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
@media (prefers-reduced-motion: reduce) { .sheen, .ltab tr.me.new .nm::after { animation: none; } }

/* ---------- Narrow windows: smartphone single-column view (round 7 item 16) ----------
   Breakpoint: viewport max-width 640px, the same width the sheets already
   switch to a bottom sheet at. In a smartphone-sized window nothing sits
   side by side: every section stacks one at a time in a single column.
   Profile order: header block, hero stat, highlights, lately, added games.
   Game page order: header, playthroughs, sessions, achievements, with
   sessions first when the playthroughs section is empty (duo--right-empty,
   set in template-game.php). The arcade is hidden on narrow screens for
   now: no touch controls ship in this round, so the cabinets and the
   arcade highlight slide (plus its dot) do not render here; the carousel
   JS also skips the arcade slide. */
@media (max-width: 640px) {
	.phead { grid-template-columns: 1fr; }
	.phead .p-right { grid-column: auto; }
	.duo { grid-template-columns: 1fr; }
	#js-highlight { order: -1; }
	#js-lately { order: 0; }
	.duo > section[data-slot="playthroughs"],
	.duo > section[data-slot="highlights"] { order: 1; }
	.duo > section[data-slot="sessions"] { order: 2; }
	/* Round 48 item 2: the sessions box now sits inside the left
	   stack, so the stack takes the sessions order slot. */
	.duo > .duo__left { order: 2; }
	.duo--right-empty > section[data-slot="sessions"] { order: 1; }
	.duo--right-empty > .duo__left { order: 1; }
	.duo--right-empty > section[data-slot="playthroughs"],
	.duo--right-empty > section[data-slot="highlights"] { order: 2; }
	.piles { grid-template-columns: 1fr; }
	.ghead { grid-template-columns: 1fr; }
	.ghead__side { grid-column: auto; grid-row: auto; width: 100%; justify-items: start; }
	.series { width: 100%; }
	.ar { display: none !important; }
	.car__slide[data-slide="arcade"] { display: none !important; }
	.dot[data-slide="arcade"] { display: none !important; }
}
