/* Shared slabclub interface. Theme colours never alter the WebGL scene or its render loop. */
:root {
 color-scheme: light;
 --page:#f5f6f8; --surface:#fff; --surface-2:#eef0f6; --ink:#252b43;
 --muted:#646b80; --line:#dfe2ec; --accent:#6550ca; --accent-hover:#5540b6;
 --accent-text:#fff; --soft:#ece8fb; --accent-ink:#5843b7; --success:#28724d;
 --success-bg:#e5f4eb; --warning:#805110; --warning-bg:#fff0d3;
 --danger:#a52a4c; --danger-bg:#fce4eb; --shadow:0 10px 32px #252b430b;
 --hud-surface:#fffffff2; --hud-line:#d8ddea; --scrim:#171a3566;
 --hero:#f0f4f2; --hero-fade:#f4f6f4; --preview:#b5c3d8;
 --lime:var(--accent-ink); --purple:var(--accent-ink);
 color:var(--ink); background:var(--page);
}
:root[data-theme="dark"] {
 color-scheme:dark;
 --page:#121522; --surface:#1c2032; --surface-2:#272c43; --ink:#f0f1fa;
 --muted:#b0b7cf; --line:#363d57; --accent:#b2a0ff; --accent-hover:#c6b9ff;
 --accent-text:#211944; --soft:#30294b; --accent-ink:#c4b4ff; --success:#9de3bd;
 --success-bg:#203b33; --warning:#f3cc86; --warning-bg:#493721;
 --danger:#ffb0c6; --danger-bg:#4a293c; --shadow:0 12px 36px #05071333;
 --hud-surface:#1c2032f5; --hud-line:#535c7b; --scrim:#070a1da8;
 --hero:#1d2631; --hero-fade:#1d2631; --preview:#b5c3d8;
}
body,body.selecting{background:var(--page);color:var(--ink)}
button,a,input,select,summary{outline-offset:4px}
:focus-visible,#app :focus-visible{outline:3px solid var(--accent-ink)}
select{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;min-height:44px;padding:10px 32px 10px 12px}
.eyebrow,#app .eyebrow{color:var(--muted)}
.header-end{display:flex;align-items:center;gap:10px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:44px;min-height:44px;padding:10px;border-radius:14px;color:var(--ink);background:var(--surface);border:1px solid var(--line);flex-shrink:0}
.theme-toggle:hover{background:var(--soft);color:var(--accent-ink);border-color:var(--accent-ink)}
.theme-toggle svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.theme-sun,.theme-button-label{display:none}
[data-theme="dark"] .theme-sun{display:block}
[data-theme="dark"] .theme-moon{display:none}
.dialog-appearance{display:flex;justify-content:center;padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
.dialog-appearance .theme-button-label{display:inline;font-size:12px;font-weight:650}
.theme-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:18px 0;color:var(--ink);font-size:14px}
.theme-setting small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.theme-setting select{max-width:54%;font-size:13px}

/* Catalog — the same surface and typography as the game menus. */
#app{background:var(--page);color:var(--ink)}
.brand,.portal-footer .footer-logo{color:var(--ink)}
.portal-header nav a,.portal-footer,.portal-footer button{color:var(--muted)}
.portal-header nav a:hover,.portal-header nav a.nav-active,.portal-footer button:hover{color:var(--accent-ink);background:var(--soft)}
#favorites-count,.count-pill{background:var(--soft);color:var(--accent-ink)}
.profile-avatar{background:var(--surface);border-color:var(--line);color:var(--ink)}
.profile-avatar:hover{background:var(--soft)}
.home-hero{background:var(--page);border:0;box-shadow:none;border-radius:24px}
.home-hero:before{display:none}
/* Fade the image itself: layered rounded overlays leave bright antialiasing seams. */
.hero-art{mask-image:linear-gradient(90deg,transparent 0%,#00000005 18%,#0000002e 33%,#000000a3 48%,#000 67%)}
.hero-badge{background:var(--hud-surface);border-color:var(--line);color:var(--muted)}
.hero-copy h1{color:var(--ink)}
.hero-copy h1 em{color:var(--accent-ink)}
.hero-copy>p,.hero-copy .hero-continue,.hero-facts li,.catalog-head>p,.page-title p{color:var(--muted)}
.hero-continue b{color:var(--ink)}
.primary,#app .hero-cta,.pack-action{color:var(--accent-text);background:var(--accent);box-shadow:0 4px 0 color-mix(in srgb,var(--accent) 26%,transparent);border:1px solid transparent;border-radius:14px;font-size:14px;min-height:48px}
.primary:hover,#app .hero-cta:hover,.pack-action:hover{background:var(--accent-hover)}
.secondary,#app .hero-actions .secondary{color:var(--ink);background:var(--surface-2);border:1px solid var(--line);border-radius:14px;box-shadow:none}
.secondary:hover,#app .hero-actions .secondary:hover{background:var(--soft);border-color:var(--accent-ink)}
.catalog-filters button{color:var(--muted);min-height:44px}
.catalog-filters button:hover{color:var(--accent-ink);background:var(--soft)}
.catalog-filters button[aria-pressed=true]{color:var(--accent-text);background:var(--accent)}
.game-search{color:var(--muted);background:var(--surface);border-color:var(--line)}
.game-search input{color:var(--ink)}
.game-search input::placeholder{color:var(--muted)}
.game-card{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
.game-card:hover{border-color:var(--accent-ink)}
.card-content h3{color:var(--ink)}
.card-short,.card-facts,.card-progress,.card-map-details summary,.card-maps small{color:var(--muted)}
.card-map-details{border-color:var(--line)}
.card-maps li{background:var(--surface-2);color:var(--ink);border-color:var(--line)}
.card-maps b{color:var(--accent-ink)}
.card-cta{color:var(--accent-ink);background:var(--soft);min-height:44px}
.card-cta:hover{color:var(--accent-text);background:var(--accent)}
.progress-bar{background:var(--surface-2)}
.progress-bar i{background:var(--accent)}
.favorite-button,.card-chip{background:var(--hud-surface);color:var(--ink);border-color:var(--hud-line)}
.favorite-button{min-width:44px;min-height:44px}
.favorite-button:hover,.favorite-button.selected{background:var(--soft);color:var(--accent-ink);border-color:var(--accent-ink)}
.empty-state{color:var(--muted);background:var(--surface);border-color:var(--line)}
.empty-state a{color:var(--accent-ink)}
.style-banner{background:var(--soft);border-color:var(--line)}
.style-banner h2{color:var(--ink)}
.style-banner p{color:var(--muted)}
.style-symbol{color:var(--accent-ink);background:var(--surface)}
.style-banner button{background:var(--surface);border-color:var(--line);color:var(--accent-ink)}
.style-banner button:hover{background:var(--surface-2)}
.portal-footer{border-color:var(--line)}
.site-toast{background:var(--ink);color:var(--page);white-space:normal;line-height:1.5;text-align:center}

/* Game lobby: one illustrated cover, quiet map navigation and a readable level list. */
.level-select.select-lobby{width:min(1280px,100%);color:var(--ink);padding-top:24px}
.select-lobby .select-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:32px}
.select-lobby .select-brand{font-size:26px;font-weight:850;letter-spacing:-1px;min-height:44px;display:flex;align-items:center;gap:10px}
.select-lobby .brand-mark{width:30px;height:33px;border-radius:10px}
.select-lobby .brand-mark i{width:4px;height:16px}
.select-tools{display:flex;align-items:center;gap:18px}
.select-back{display:flex;align-items:center;gap:10px;background:transparent;border:0;min-height:44px;padding:0 6px;color:var(--muted);font-size:13px;font-weight:650}
.select-back:hover{color:var(--accent-ink)}
.select-layout{display:grid;grid-template-columns:330px minmax(0,1fr);align-items:start;gap:32px}
.select-overview{min-width:0}
.select-poster{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:352px;border-radius:24px;overflow:hidden;background:#242b43}
.select-poster:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 25%,#15182944 45%,#151829ef 100%)}
.select-lobby .select-cover{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;margin:0;border-radius:0;z-index:-2}
.select-lobby .select-title{padding:26px;color:#fff;min-width:0}
.select-genre{display:inline-flex;padding:6px 10px;border-radius:8px;background:#20253fdf;color:#fff;font-size:10px;font-weight:750;letter-spacing:1px;text-transform:uppercase}
.select-lobby .select-title h1{color:#fff;font-size:38px;line-height:1.03;letter-spacing:-1.5px;margin:13px 0 10px;text-wrap:balance}
.select-lobby .select-title p{display:block;font-size:10px;font-weight:650;letter-spacing:1.3px;color:#e3e5f5;line-height:1.5}
.select-lobby .select-progress{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;margin:20px 2px 28px;padding:0;border:0;min-width:0;width:auto;text-align:left}
.select-lobby .select-progress>span{font-size:13px;font-weight:650;letter-spacing:0;text-transform:none;color:var(--ink)}
.select-lobby .select-progress strong{font-size:18px;color:var(--accent-ink);letter-spacing:0}
.select-lobby .select-progress strong small{font-size:13px;font-weight:500;color:var(--muted)}
.select-lobby .select-progress>small{grid-column:1/-1;font-size:11px;color:var(--muted)}
.select-lobby .select-progress progress{grid-column:1/-1;width:100%;height:6px;margin:0;border:0;border-radius:6px;accent-color:var(--accent);background:var(--surface-2)}
.select-lobby progress::-webkit-progress-bar{background:var(--surface-2);border-radius:6px}
.select-lobby progress::-webkit-progress-value{background:var(--accent);border-radius:6px}
.select-lobby progress::-moz-progress-bar{background:var(--accent);border-radius:6px}
.select-maps h2{font-size:17px;font-weight:750;margin:0 0 14px;color:var(--ink);letter-spacing:-.3px}
.select-lobby .map-tabs{display:flex;flex-direction:column;gap:8px;margin:0}
.select-lobby :is(.map-tab,.map-banner){display:grid;grid-template-columns:96px minmax(0,1fr);min-height:122px;gap:10px 14px;padding:12px;margin:0;border:2px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink)}
.select-lobby .map-tab:hover{background:var(--surface-2);border-color:var(--accent-ink)}
.select-lobby .map-tab.active,.select-lobby .map-banner{background:var(--soft);border-color:var(--accent)}
.map-scene{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:9px;background:var(--surface-2)}
.map-scene img{width:100%;height:100%;object-fit:cover;display:block}
.map-selected{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;min-height:23px;font-size:11px;font-weight:650;color:var(--muted)}
.map-tab.active .map-selected,.map-banner .map-selected{color:var(--accent-ink);font-weight:800}
.select-lobby .map-text{padding:0}
.select-lobby .map-text small{font-size:10px;letter-spacing:1px;color:var(--muted)}
.select-lobby .map-text strong{font-size:17px;line-height:1.25;letter-spacing:-.3px;margin:4px 0 6px;color:var(--ink)}
.select-lobby .map-count{display:block;position:static;padding:0;border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:500}
.select-lobby .map-tab.active .map-count{color:var(--accent-ink)}
.select-lobby .map-panel{min-width:0;padding-top:6px}
.select-lobby .map-heading{display:block;margin:0 0 28px}
.select-lobby .map-heading>.eyebrow{display:block;font-size:10px;letter-spacing:1.7px;color:var(--accent-ink);margin-bottom:14px}
.select-lobby .map-heading>.eyebrow span{color:var(--line);padding:0 9px;font-size:13px}
.select-lobby .map-heading h2{font-size:clamp(26px,2.8vw,36px);line-height:1.15;letter-spacing:-1.1px;color:var(--ink);text-wrap:balance}
.select-lobby .map-heading p{font-size:14px;line-height:1.6;color:var(--muted);margin-top:10px;max-width:38em}
.map-level-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;font-size:11px;font-weight:650;color:var(--muted)}
.map-level-summary>span:last-child{font-weight:500}.map-level-summary b{margin-left:5px;color:var(--accent-ink)}
.select-lobby .level-tiles{display:flex;flex-direction:column;gap:12px}
.select-lobby .level-tile{display:grid;grid-template-columns:184px minmax(0,1fr) auto;align-items:center;gap:20px;min-height:162px;padding:18px;border:1px solid transparent;border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:none;transition:background .15s,border-color .15s}
.select-lobby .level-tile:hover{transform:none;background:var(--surface-2);border-color:var(--line)}
.select-lobby :is(.level-tile,.map-tab):focus-visible{outline:3px solid var(--accent-ink);outline-offset:3px}
.select-lobby .level-tile.last{box-shadow:none;border-color:color-mix(in srgb,var(--accent) 45%,transparent)}
.tile-scene{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:var(--surface-2)}
.tile-scene img{width:100%;height:100%;display:block;object-fit:cover}
.preview-missing{display:grid;place-items:center;height:100%;font-size:12px;color:var(--muted)}
.select-lobby .tile-no{position:absolute;bottom:8px;left:8px;display:flex;align-items:center;gap:6px;width:auto;height:auto;padding:6px 8px;border-radius:7px;background:#161b2eeb;color:#fff;font-size:15px;letter-spacing:0;font-weight:800}
.select-lobby .tile-no small{font-size:8px;font-weight:650;letter-spacing:.6px}
.select-lobby .level-tile.done .tile-no{background:#163d2ded;color:#b5f7ce}
.select-lobby .tile-kicker{display:block;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-bottom:6px;font-weight:650}
.select-lobby .level-tile.last .tile-kicker{color:var(--accent-ink)}
.select-lobby .level-tile.done .tile-kicker{color:var(--success)}
.select-lobby .tile-body{min-width:0}
.select-lobby .tile-body strong{font-size:20px;line-height:1.25;letter-spacing:-.5px;margin-bottom:7px}
.select-lobby .tile-goal{font-size:13px;color:var(--muted);line-height:1.6}
.select-lobby .tile-meta{border:0;padding:0;margin-top:12px;gap:8px 12px;font-size:12px;color:var(--muted);line-height:1.4}
.select-lobby .tile-diff{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;min-height:36px;border:1px solid var(--difficulty-line);border-radius:9px;background:var(--difficulty-bg);color:var(--difficulty-ink);font-size:13px;letter-spacing:0;white-space:nowrap}
.select-lobby .tile-diff b{font-size:13px;font-weight:800;letter-spacing:0;color:inherit}
.select-lobby .tile-diff small{font-size:11px;font-weight:700}
.difficulty-bars{display:inline-flex;gap:2px;align-items:flex-end;height:16px}
.select-lobby .difficulty-bars i{display:block;width:4px;height:6px;color:inherit;background:currentColor;opacity:.18;border-radius:1px}
.select-lobby .difficulty-bars i:nth-child(2){height:8px}.select-lobby .difficulty-bars i:nth-child(3){height:10px}
.select-lobby .difficulty-bars i:nth-child(4){height:13px}.select-lobby .difficulty-bars i:nth-child(5){height:16px}
.select-lobby .difficulty-bars i.filled{opacity:1}
[data-difficulty="1"]{--difficulty-ink:#16623a;--difficulty-bg:#e2f5e9;--difficulty-line:#b6dfc5}
[data-difficulty="2"]{--difficulty-ink:#126475;--difficulty-bg:#dcf2f6;--difficulty-line:#a8dce5}
[data-difficulty="3"]{--difficulty-ink:#805611;--difficulty-bg:#fff2d5;--difficulty-line:#ead39e}
[data-difficulty="4"]{--difficulty-ink:#a14020;--difficulty-bg:#ffeadf;--difficulty-line:#efbda7}
[data-difficulty="5"]{--difficulty-ink:#a52a55;--difficulty-bg:#fce4ee;--difficulty-line:#eeb4cb}
[data-theme="dark"] [data-difficulty="1"]{--difficulty-ink:#8ee1ae;--difficulty-bg:#173a2b;--difficulty-line:#2e6349}
[data-theme="dark"] [data-difficulty="2"]{--difficulty-ink:#82dbea;--difficulty-bg:#173840;--difficulty-line:#2c6470}
[data-theme="dark"] [data-difficulty="3"]{--difficulty-ink:#f7d384;--difficulty-bg:#42341a;--difficulty-line:#7a5c2b}
[data-theme="dark"] [data-difficulty="4"]{--difficulty-ink:#ffb18f;--difficulty-bg:#492b23;--difficulty-line:#82503c}
[data-theme="dark"] [data-difficulty="5"]{--difficulty-ink:#ff9dc3;--difficulty-bg:#47253c;--difficulty-line:#7d425f}
.select-lobby .tile-result{color:var(--success);margin:0;font-weight:650}
.select-lobby .tile-play{display:flex;align-items:center;justify-content:center;gap:12px;min-width:96px;min-height:44px;padding:12px 14px;border-radius:12px;background:var(--soft);color:var(--accent-ink);font-size:12px;font-weight:750;white-space:nowrap}
.select-lobby .tile-play b{font-size:18px;line-height:1}
.select-lobby .level-tile:hover .tile-play,.select-lobby .level-tile:focus-visible .tile-play{background:var(--accent);color:var(--accent-text)}
.select-lobby .select-help{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);line-height:1.6;margin:20px 0 0}
.select-key-help{display:flex;align-items:center;gap:5px}.select-key-help i{font-style:normal;margin:0 4px}
.select-key-help kbd{font:inherit;border:1px solid var(--line);border-radius:4px;min-width:17px;text-align:center;padding:1px 4px}
.select-loading{color:var(--muted)}
@media(max-width:1100px){
 .select-layout{grid-template-columns:280px minmax(0,1fr);gap:24px}
 .select-poster{min-height:320px}
 .select-lobby .level-tile{grid-template-columns:136px minmax(0,1fr);gap:14px;padding:16px}
 .select-lobby .tile-scene{align-self:start;grid-row:1/3}
 .select-lobby .tile-play{grid-column:2;justify-self:start;min-height:44px;padding:9px 14px}
 .select-lobby :is(.map-tab,.map-banner){grid-template-columns:76px minmax(0,1fr);gap:8px 12px;padding:10px}
 .select-lobby .map-text strong{font-size:16px}
}
@media(max-width:760px){
 .level-select.select-lobby{padding-top:16px}
 .select-lobby .select-toolbar{margin-bottom:20px}.select-lobby .select-brand{font-size:23px}
 .select-tools{gap:10px}.select-back{font-size:12px;gap:7px}
 .select-layout{grid-template-columns:1fr;gap:28px}
 .select-overview{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
 .select-poster{grid-column:1/-1;min-height:240px;border-radius:20px}
 .select-lobby .select-cover{object-position:center 40%}
 .select-poster:after{background:linear-gradient(90deg,#151829cf,transparent 85%),linear-gradient(0deg,#1518299c,transparent 75%)}
 .select-lobby .select-title{padding:24px;max-width:75%}
 .select-lobby .select-title h1{font-size:34px;max-width:11em}
 .select-lobby .select-progress{grid-column:1/-1;margin:18px 0 22px;gap:9px}
 .select-lobby .select-progress>small{display:none}
 .select-maps{grid-column:1/-1}.select-maps h2{margin-bottom:10px}
 .select-lobby .map-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .select-lobby :is(.map-tab,.map-banner){grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto;padding:8px;gap:10px;min-height:0;background:var(--surface)}
 .select-lobby .map-tab.active,.select-lobby .map-banner{background:var(--soft)}
 .select-lobby .map-scene{aspect-ratio:16/9}.select-lobby .map-text{padding:0 4px}
 .select-lobby .map-text strong{font-size:16px}.select-lobby .map-selected{padding:0 4px;justify-content:flex-start}
 .select-lobby .map-banner{grid-template-columns:110px minmax(0,1fr);align-items:center}
 .select-lobby .map-banner .map-selected{grid-column:2}
 .select-lobby .map-panel{padding:0}.select-lobby .map-heading{margin:0 0 20px}
 .select-lobby .map-heading>.eyebrow{font-size:9px;margin-bottom:10px}
 .select-lobby .map-heading h2{font-size:27px}.select-lobby .map-heading p{font-size:12px;margin-top:8px}
 .select-lobby .level-tile{grid-template-columns:160px minmax(0,1fr);gap:14px;padding:16px;min-height:0}
 .select-lobby .tile-body strong{font-size:18px}.select-lobby .tile-goal{font-size:12px}
 .select-lobby .tile-play{grid-column:2;min-height:44px;min-width:0;justify-self:stretch;justify-content:space-between}
 .select-lobby .select-help{margin-top:16px}.select-lobby .select-key-help{display:none}
}
@media(max-width:520px){
 .select-lobby .select-brand{font-size:22px}.select-tools{gap:6px}
 .select-lobby .brand-mark{width:26px;height:29px;border-radius:8px}
 .select-lobby .brand-mark i{height:14px}.select-back{font-size:11px}
 .select-poster{min-height:220px}.select-lobby .select-title{max-width:90%;padding:22px}
 .select-lobby .select-title h1{font-size:32px}
 .select-lobby .level-tile{grid-template-columns:minmax(0,1fr);padding:10px;gap:14px}
 .select-lobby .tile-scene{grid-row:auto;width:100%;border-radius:10px}
 .select-lobby .tile-body{padding:0 6px}
 .select-lobby .tile-body strong{font-size:19px}
 .select-lobby .tile-play{grid-column:1;justify-content:space-between;padding:11px 14px;width:100%}
 .select-lobby .tile-meta{gap:7px 12px}
}
@media(max-width:360px){
 .select-back span{max-width:50px;text-align:left;line-height:1.2}.select-lobby .select-brand{gap:7px;font-size:20px}
 .select-lobby .map-text strong{font-size:15px}.select-lobby :is(.map-tab,.map-banner){padding:8px}
 .select-lobby .tile-body strong{font-size:18px}.select-lobby .map-heading h2{font-size:25px}
}

/* In-game controls: opaque surfaces keep contrast without expensive backdrop sampling. */
.game-stage{color:var(--ink)}
.game-stage .hud{gap:8px;flex-wrap:nowrap}
.game-stage .hud-button{color:var(--ink);background:var(--hud-surface);border:1px solid var(--hud-line);box-shadow:0 3px 10px #1720440a;min-width:44px;min-height:44px;width:44px;height:44px;border-radius:14px;flex:none}
.game-stage .hud-button:hover{background:var(--soft);color:var(--accent-ink)}
.game-stage .hud-title{color:var(--ink);background:var(--hud-surface);border:1px solid var(--hud-line);border-radius:14px;padding:8px 13px;gap:3px;max-width:250px;min-width:0}
.game-stage .hud-title strong{color:var(--ink);font-size:17px;letter-spacing:-.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-stage .hud-title span{color:var(--muted);font-size:10px;letter-spacing:.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-stage .hud-counter,.game-stage .hud-time{background:var(--hud-surface);color:var(--ink);border:1px solid var(--hud-line);border-radius:14px;height:44px}
.game-stage .hud-counter{margin-left:auto}
.game-stage .hud-counter span{color:var(--accent-ink)}
.game-stage .hud-progress,.obby .sky-hud-center .hud-progress{background:var(--hud-surface);color:var(--ink);border:1px solid var(--hud-line);border-radius:14px;box-shadow:none;padding:10px 14px;gap:7px}
.game-stage .hud-progress>span{font-size:12px;line-height:1.3;white-space:normal}
.game-stage .hud-progress>div{background:var(--surface-2);height:7px}
.game-stage .hud-progress i{background:var(--accent);box-shadow:none}
.obby .sky-hud-center .sky-progress-caption{background:transparent;height:auto}
.obby .sky-progress-caption strong{color:var(--accent-ink)}
.obby .hud-progress .sky-progress-track{background:var(--surface-2);border:0;height:8px}
.obby .sky-progress-track i{background:var(--accent)}
.obby .rhythm-badge{background:var(--hud-surface);color:var(--ink);border-color:var(--hud-line);padding:6px 12px}
.obby .rhythm-badge>span,.obby .rhythm-badge small{color:var(--muted)}
.obby .rhythm-badge.boosted{background:var(--success-bg);border-color:var(--success)}
.obby .rhythm-badge.boosted strong,.obby .rhythm-badge.boosted small{color:var(--success)}
.game-stage .world-caption{color:var(--ink);background:var(--hud-surface);border:1px solid var(--hud-line);border-radius:9px;padding:7px 10px;font-size:10px;letter-spacing:.4px;max-width:calc(100% - 48px)}
.game-stage .live-dot{background:var(--accent-ink)}
.game-stage .desktop-controls{color:var(--muted);background:var(--hud-surface);border-color:var(--hud-line);border-radius:12px;font-size:11px;padding:10px 14px;gap:16px}
.game-stage .desktop-controls kbd{background:var(--surface-2);color:var(--ink);border:1px solid var(--line);font-size:10px;padding:3px 5px;border-radius:5px}
.game-stage .game-toast{background:var(--hud-surface);color:var(--ink);border-color:var(--hud-line);box-shadow:var(--shadow);backdrop-filter:none;font-size:13px}
.game-stage .jump-button{background:var(--accent);color:var(--accent-text);border-color:color-mix(in srgb,var(--accent) 70%,white);box-shadow:0 4px 0 #24203b33}
.game-stage .jump-button:active{background:var(--accent-hover)}
.game-stage .context-button{background:var(--warning-bg);color:var(--warning);border-color:var(--warning);box-shadow:0 4px 0 #24203b22}
.game-stage .context-button b{white-space:normal;text-overflow:clip;max-width:calc(100% - 8px);font-size:10px;line-height:1.15;letter-spacing:.3px}
.game-stage .joystick{background:color-mix(in srgb,var(--hud-surface) 45%,transparent);border-color:var(--hud-line);backdrop-filter:none}
.game-stage .joystick-ring{border-color:var(--hud-line)}
.game-stage .joystick-knob{background:var(--hud-surface);color:var(--accent-ink);border-color:var(--hud-line)}
.game-stage .lane-buttons button{background:var(--hud-surface);color:var(--accent-ink);border-color:var(--hud-line)}

/* Ready, pause, results and restart use the same cards as the rest of slabclub. */
.game-panel-layer:has(.game-dialog){background:var(--scrim);backdrop-filter:none}
.intro-card,.game-dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:24px;box-shadow:0 24px 80px #10152b30;backdrop-filter:none}
.level-intro{left:24px;bottom:24px;width:420px;max-height:calc(100dvh - 140px);padding:28px}
.intro-card h1,.level-intro h1{font-size:36px;line-height:1.08;letter-spacing:-1.3px;margin:18px 0 22px;color:var(--ink)}
.pill{padding:8px 10px;border-radius:9px;background:var(--soft);color:var(--accent-ink);font-size:10px;line-height:1.4}
.level-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}
.level-heading h2{color:var(--ink);font-size:21px;line-height:1.2}
.level-heading>span{color:var(--accent-ink);font-size:10px;background:var(--soft);padding:5px 7px;border-radius:7px;letter-spacing:.6px}
.intro-card>p,.level-intro>p,.game-dialog p{color:var(--muted);font-size:14px;line-height:1.7}
.intro-card>small,.level-intro>small{color:var(--muted);font-size:12px;line-height:1.6;padding-top:12px;border-top:1px solid var(--line)}
.intro-facts{color:var(--muted);font-size:12px;flex-wrap:wrap;margin:18px 0;line-height:1.5}
.play-now{justify-content:center;font-size:14px}
.quiet-button{color:var(--muted);font-size:13px;text-decoration:none;border:1px solid transparent;border-radius:12px;padding:10px 16px}
.game-dialog .quiet-button,.intro-card .quiet-button{min-height:44px;width:100%;margin:5px auto 0}
.quiet-button:hover{background:var(--surface-2);color:var(--ink)}
.game-dialog{width:min(460px,calc(100vw - 32px));padding:32px;max-height:calc(100dvh - 32px)}
.game-dialog>.dialog-symbol{font-size:27px;width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:var(--soft);color:var(--accent-ink);margin:0 auto 20px}
.game-dialog h2{color:var(--ink);font-size:30px;line-height:1.15;letter-spacing:-1px;margin:14px 0}
.game-dialog p{margin-bottom:20px}
.result-stars,.module-result .result-stars{color:var(--accent-ink);font-size:36px}
.result-stats{background:var(--surface-2);border-color:var(--line);border-radius:16px;padding:18px 10px}
.result-stats strong{color:var(--ink);font-size:27px}
.result-stats span{color:var(--muted);font-size:10px;letter-spacing:.8px}
.result-objectives{background:var(--surface-2);border-color:var(--line);color:var(--ink);font-size:12px}
.result-objectives li>span{color:var(--muted)}
.result-objectives li.done>span{color:var(--success)}
.game-panel-layer .round-start-hint{color:var(--muted);opacity:1;font-size:11px}

/* Settings and cosmetics. The 3D studio keeps its controlled lighting. */
#site-modal{background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:24px;padding:32px}
#site-modal::backdrop{background:var(--scrim);backdrop-filter:none}
#site-modal p{color:var(--muted);font-size:13px}
#site-modal .close-modal{min-height:44px;width:44px;background:var(--surface-2);color:var(--ink);border:1px solid var(--line);border-radius:13px;top:10px;right:10px;font-size:15px}
#site-modal h2{padding-right:28px;line-height:1.15}
#site-modal .settings-note{font-size:12px!important}
.sound-setting{font-size:14px;border-color:var(--line);gap:16px}
.sound-setting input{width:24px;height:24px;accent-color:var(--accent-ink)}
.color-options button.active{border-color:var(--ink);box-shadow:0 0 0 3px var(--soft)}
.skin-option{background:var(--surface-2);color:var(--ink);border-color:var(--line);border-radius:14px}
.skin-option:hover{background:var(--soft);border-color:var(--accent-ink)}
.skin-option[aria-pressed=true]{background:var(--soft);border-color:var(--accent-ink);box-shadow:0 0 0 2px var(--accent-ink)}
.skin-option strong{font-size:12px}
.skin-thumb i{background:var(--accent);color:var(--accent-text)}
.skin-classic,.wardrobe-tabs button{background:var(--surface-2);color:var(--muted);border-color:var(--line);min-height:44px}
.skin-classic[aria-pressed=true],.wardrobe-tabs button[aria-selected=true]{background:var(--soft);color:var(--accent-ink);border-color:var(--accent-ink)}
.wardrobe-tabs button{font-size:12px;border-radius:12px}
.wardrobe-controls button{min-height:44px}
.wardrobe-controls button[aria-pressed=true]{background:#e4ddff;color:#483581}
.wardrobe-light{min-height:44px}
.collection-progress{color:var(--ink)}
.collection-progress small,.skin-option [data-pack-status]{color:var(--muted)}
.collection-progress progress{accent-color:var(--accent)}
.collection-progress progress::-webkit-progress-bar{background:var(--surface-2)}
.collection-progress progress::-webkit-progress-value{background:var(--accent)}
.skin-option.is-locked [data-pack-status]{color:var(--warning)}
.pack-action:disabled{background:var(--surface-2);color:var(--muted);border-color:var(--line);opacity:1}
#site-modal #skin-selection-status{color:var(--success);font-size:12px}
#site-modal .equipped-summary{color:var(--muted);border-color:var(--line);font-size:12px}
.wardrobe-stage{border-color:var(--line)}
.avatar-gender{margin:0 0 16px;padding:12px;border:1px solid var(--line);border-radius:14px;display:flex;flex-wrap:wrap;gap:8px}
.avatar-gender legend{font-size:12px;font-weight:800;padding:0 5px;color:var(--ink)}
.avatar-gender button{flex:1;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--ink);font-size:12px}
.avatar-gender button[aria-pressed=true]{background:var(--soft);border-color:var(--accent-ink);color:var(--accent-ink)}
.avatar-gender small{flex-basis:100%;font-size:11px;line-height:1.5;color:var(--muted)}
.wardrobe-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.collection-heading{margin:18px 0 10px;font-size:13px;color:var(--ink)}
.collection-heading:first-child{margin-top:0}
.skin-option [data-item-status]{display:block;font-size:10px;color:var(--muted);margin-top:4px;padding:0 3px}
.skin-option.is-locked [data-item-status]{color:var(--warning)}
@media(max-width:650px){.wardrobe-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Shared skin for game-specific instruments; semantic warning colours stay distinct. */
.game-stage[data-game] :is(.raft-guide,.raft-instruments>span,.defense-guide,.defense-status span,.defense-map,.lr-chip,.er-panel){background:var(--hud-surface);color:var(--ink);border:1px solid var(--hud-line);box-shadow:0 4px 16px #15203b12;backdrop-filter:none;border-radius:14px}
.game-stage[data-game] :is(.raft-guide strong,.er-time){color:var(--ink)}
.game-stage[data-game] :is(.defense-guide small,.er-stage,.er-scale){color:var(--muted)}
.game-stage[data-game] :is(.raft-message,.defense-message,.er-notice){background:var(--hud-surface);color:var(--ink);border-color:var(--hud-line);backdrop-filter:none;border-radius:12px}
.game-stage[data-game] .raft-guide.jump{background:var(--warning-bg);color:var(--warning);border-color:var(--warning)}
.game-stage[data-game] .raft-guide.jump strong{color:var(--warning)}
.game-stage[data-game] :is(.raft-guide.crashed,.defense-guide.failed){background:var(--danger-bg);color:var(--danger);border-color:var(--danger)}
.game-stage[data-game] .raft-guide.crashed strong{color:var(--danger)}
.game-stage[data-game] .raft-reward{background:var(--hud-surface);color:var(--danger);border:1px solid var(--hud-line)}
.game-stage[data-game] .er-bar{background:var(--surface-2)}
.game-stage[data-game] .er-scale{font-size:10px}
.game-stage[data-game] .er-chip{font-size:11px}
.game-stage[data-game] .er-panel[data-state="recording"]{border-color:var(--danger)}
.game-stage :is(.er-map,.garden-map){border-radius:14px;border-color:var(--hud-line)}

@media(min-width:1200px){
 .game-stage:not(.obby) .hud-progress{position:absolute;left:50%;transform:translateX(-50%);width:320px;margin:0}
}
@media(max-width:900px){.portal-header{gap:20px}}
@media(max-width:1050px){.hero-art{mask-image:linear-gradient(90deg,transparent,#0000000f 30%,#000000b3 80%)} }
@media(max-width:760px){
 .game-stage .hud{top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));gap:6px}
 .game-stage .hud-title{flex:1;min-width:0;max-width:none;padding:7px 9px}
 .game-stage .hud-title strong{font-size:15px}
 .game-stage .hud-title span{font-size:9px;letter-spacing:.2px}
 .game-stage .hud-counter{padding:0 9px;gap:5px;font-size:14px}
 .game-stage .hud-progress{position:absolute;left:0;top:56px;max-width:none;width:100%;margin:0;flex-direction:row;align-items:center;padding:9px 12px;gap:12px;border-radius:12px}
 .game-stage .hud-progress>span{font-size:11px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .game-stage .hud-progress>div{height:6px;flex:0 0 30%}
 .game-stage .world-caption{display:none}
 .obby .sky-hud-center{top:calc(max(12px,env(safe-area-inset-top)) + 56px);width:calc(100% - 24px)}
 .obby .sky-hud-center .hud-progress{position:static;transform:none;width:100%;flex-direction:column;gap:6px;padding:8px 12px}
 .obby .sky-hud-center .hud-progress>div{flex:none}
 .obby .rhythm-badge{padding:4px 10px;margin-top:5px}
 .game-stage .game-toast{top:124px;font-size:12px}
 .obby .game-toast{top:173px}
 .level-intro{left:16px;right:16px;bottom:max(16px,env(safe-area-inset-bottom));width:auto;max-width:none;max-height:calc(100dvh - 135px);padding:24px}
 .intro-card h1,.level-intro h1{font-size:31px;margin:14px 0 18px}
 .level-heading h2{font-size:20px}
 .level-intro>p{font-size:13px;min-height:0}
 .game-dialog{padding:26px}
 .game-dialog h2{font-size:28px}
}
@media(max-width:600px){
 .header-end{gap:8px}.profile-avatar{padding:0 5px;min-height:44px}.theme-toggle{border-radius:13px}
 .portal-header nav a{min-height:44px}.home-hero{background:var(--page)}
 .hero-copy{padding:20px 8px 0}.hero-art{mask-image:linear-gradient(transparent,#000 28%)}
 .game-stage .hud-time{display:none}
 .game-stage .fullscreen-control{display:none}
 .game-stage .hud-title strong{font-size:14px}
 .intro-card>small,.level-intro>small{font-size:11px}
 #site-modal{padding:25px 22px}#site-modal.has-wardrobe{padding:24px 16px}
 #site-modal.has-wardrobe h2{font-size:26px;max-width:100%}
 .theme-setting{font-size:13px;gap:8px}.theme-setting select{font-size:12px}
 .theme-setting small{font-size:11px}
 .game-stage[data-game="echo-rooms"] .er-panel{left:12px;right:12px;bottom:154px;transform:none;width:auto;padding:9px 12px}
 .game-stage[data-game="echo-rooms"] .er-notice{bottom:260px}
}
@media(max-width:360px){
 .game-stage .hud-counter{display:none}
 .game-dialog{padding:22px}.game-dialog h2{font-size:26px}.result-stats strong{font-size:24px}
 .theme-setting{align-items:flex-start;flex-direction:column}.theme-setting select{max-width:none;width:100%}
 .skin-grid{gap:7px}.skin-option strong{font-size:11px}
}
@media(max-height:600px) and (min-width:600px){
 .game-stage .hud-title{max-width:190px;flex:1}.game-stage .hud-title strong{font-size:14px}
 .game-stage .hud-title span{font-size:9px}.game-stage .hud-counter,.game-stage .hud-time{display:none}
 .game-stage:not(.obby) .hud-progress{position:static;transform:none;margin-left:auto;min-width:150px;width:200px;max-width:240px;flex-direction:column;gap:5px;padding:8px 12px}
 .game-stage .hud-progress>div{width:100%;flex:none}.game-stage .hud-progress>span{font-size:10px}
 .obby .sky-hud-center{top:max(12px,env(safe-area-inset-top));width:240px}
 .game-stage .world-caption{display:none}
 .game-stage .game-toast{top:82px}.obby .game-toast{top:107px}
 .level-intro{left:20px;right:auto;top:78px;bottom:16px;width:400px;max-width:calc(100% - 40px);max-height:none;padding:20px 24px}
 .level-intro h1{font-size:27px;margin:12px 0}.level-intro>p{font-size:12px}.intro-facts{margin:12px 0;font-size:11px}
 .game-dialog{max-height:calc(100dvh - 24px);padding:20px 26px}.game-dialog>.dialog-symbol{display:none}
 .game-dialog h2{font-size:26px}.game-dialog p{font-size:13px;margin-bottom:14px}.dialog-appearance{padding-top:12px;margin-top:12px}
 .game-dialog>.primary,.game-dialog>.secondary,.game-dialog .quiet-button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.primary:hover{transform:none}}
/* Wardrobe and shop entry points on the home banner. */
.style-banner .style-actions{margin-left:auto;display:flex;gap:8px;flex-shrink:0}
.style-banner .style-actions button{margin-left:0}
.style-banner .style-actions .style-shop{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}
.style-banner .style-actions .style-shop:hover{background:var(--accent-hover)}
@media(max-width:600px){.style-banner .style-actions{grid-column:1/-1;margin:0}.style-banner .style-actions button{flex:1;width:auto}}
