/* Forge Lobby — homepage + category pages.
   Black and molten orange from the Forge mark; chamfered corners echo the faceted hammers.
   Everything is scoped to .lb / body.lb-on so game screens are untouched. */

/* ---------- switch: hide the classic homepage only once the lobby has booted ---------- */
body.lb-on #home > :not(#lobby) { display: none !important; }
body.lb-on #home {
  padding: 0 !important; margin: 0 !important; max-width: none !important; width: auto !important;
  background: #03020c !important; min-height: 100vh; min-height: 100dvh; overflow: visible !important;
  transform: none !important; animation: none !important; filter: none !important;
}
body.lb-on.lb-home { background: #03020c !important; }
body.lb-on.lb-home > button.settings,
body.lb-on.lb-home #sNav,
body.lb-on.lb-home #sFab,
body.lb-on.lb-home #sBlobs,
body.lb-on.lb-home #sMotes,
body.lb-on.lb-home .s-tt { display: none !important; }
html.lb-locked, html.lb-locked body { overflow: hidden !important; }

/* ---------- tokens ---------- */
.lb {
  --void: #03020c; --plate: #0b0a17; --plate2: #12101f; --plate3: #191629;
  --edge: #26223b; --edge2: #3b3558;
  --bone: #f6f4fa; --ash: #aaa6bf; --dim: #7a7690;
  --ember: #e8680c; --flare: #ff8428; --molten: #ffb347; --gold: #ffd36a; --flare-rgb: 255, 132, 40; --ember-rgb: 232, 104, 12;
  --g: clamp(16px, 4.2vw, 44px); --max: 1360px;
  --cut: 14px; --cut-s: 9px;
  --display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  color: var(--bone); font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.lb *, .lb *::before, .lb *::after { box-sizing: border-box; }
.lb a { color: inherit; }
.lb button { font: inherit; color: inherit; }
.lb img { max-width: 100%; }
.lb-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lb :focus-visible { outline: 2px solid #ffb347 !important; outline-offset: 3px !important; box-shadow: none; }
.lb :focus:not(:focus-visible) { outline: none !important; box-shadow: none; }
.lb .lb-search-field input:focus, .lb .lb-filter input:focus, .lb [role="dialog"]:focus, .lb .lb-view:focus { outline: none !important; box-shadow: none !important; }
#lobby { position: relative; min-height: 100vh; min-height: 100dvh; background:
  radial-gradient(1200px 600px at 80% -10%, rgba(var(--ember-rgb),  .10), transparent 60%),
  radial-gradient(900px 500px at -10% 30%, rgba(60, 40, 140, .12), transparent 60%), var(--void);
  padding-bottom: 120px; overflow-x: clip; }
.lb-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--molten); color: #1a0d02; padding: 10px 14px; font-weight: 700; text-decoration: none; }
.lb-skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.lb-btn {
  --bc: var(--edge2); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 16px/1 var(--display); font-stretch: 100%; letter-spacing: .01em;
  clip-path: polygon(var(--cut-s) 0, 100% 0, 100% calc(100% - var(--cut-s)), calc(100% - var(--cut-s)) 100%, 0 100%, 0 var(--cut-s));
  transition: transform .18s var(--ease), filter .18s, background-color .18s, color .18s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.lb-btn .lb-i { width: 18px; height: 18px; }
.lb-btn:active { transform: scale(.97); }
.lb-btn--hot { color: #1d0b00; background: linear-gradient(180deg, #ffa24a 0%, var(--flare) 38%, var(--ember) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.lb-btn--hot:hover { filter: brightness(1.08) saturate(1.05); }
.lb-btn--ghost { color: var(--bone); background: var(--plate2); box-shadow: inset 0 0 0 1px var(--edge2); }
.lb-btn--ghost:hover { background: var(--plate3); box-shadow: inset 0 0 0 1px #5a5280; }
.lb-btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.lb-btn--lg { min-height: 56px; padding: 0 26px; font-size: 18px; }
.lb-roundbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--edge2); background: rgba(18, 16, 31, .85); color: var(--bone); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.lb-roundbtn:hover { background: var(--plate3); border-color: #5a5280; }
.lb-roundbtn:active { transform: scale(.94); }
.lb-roundbtn:disabled { opacity: .3; cursor: default; }
.lb-link { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; background: none; border: 0; padding: 0; color: var(--molten); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }

/* ---------- top bar ---------- */
.lb-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px var(--g); padding-top: max(10px, env(safe-area-inset-top)); background: rgba(3, 2, 12, .55); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.lb.is-scrolled .lb-top, #lobby.is-scrolled .lb-top { background: rgba(3, 2, 12, .86); border-bottom-color: var(--edge); }
.lb-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; min-height: 44px; }
.lb-brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(var(--ember-rgb),  .45)); }
.lb-brand-word { font: 800 25px/1 var(--display); letter-spacing: -.01em; color: var(--bone); }
.lb-brand-word i { font-style: normal; color: var(--flare); }
.lb-brand-sub { font: 600 13px/1 var(--display); font-stretch: 87.5%; color: var(--ash); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--edge2); }
.lb-topnav { display: flex; gap: 4px; }
.lb-topnav a { padding: 10px 14px; text-decoration: none; color: var(--ash); font: 600 15px/1 var(--display); border-radius: 999px; transition: color .15s, background .15s; }
.lb-topnav a:hover { color: var(--bone); background: var(--plate2); }
#lobby[data-view="home"] .lb-topnav a[href="#/"], #lobby[data-view="halls"] .lb-topnav a[href="#/categories"], #lobby[data-view="cat-pinned"] .lb-topnav a[href="#/c/pinned"] { color: var(--bone); background: var(--plate2); box-shadow: inset 0 -2px 0 var(--flare); }
.lb-searchbtn { display: flex; align-items: center; gap: 10px; min-width: 240px; min-height: 42px; padding: 0 12px 0 14px; border: 1px solid var(--edge2); border-radius: 999px; background: rgba(11, 10, 23, .8); color: var(--dim); cursor: pointer; font: 400 15px var(--body); transition: border-color .15s, color .15s; }
.lb-searchbtn:hover { border-color: #5a5280; color: var(--ash); }
.lb-searchbtn kbd { margin-left: auto; font: 600 12px/1 var(--display); border: 1px solid var(--edge2); border-radius: 6px; padding: 4px 7px; color: var(--ash); }
.lb.is-unlocked .lb-unlockpill, #lobby.is-unlocked .lb-unlockpill { display: none; }

/* ---------- hero ---------- */
.lb-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -64px; padding-top: 64px; border-bottom: 1px solid var(--edge); }
.lb-embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.lb-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--void)); z-index: -1; pointer-events: none; }
.lb-hero-in { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 6vw, 72px) var(--g) clamp(36px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(760px, calc(100vh - 40px)); }
.lb-h1 { margin: 0 0 22px; font-family: var(--display); font-weight: 900; font-stretch: 75%; font-size: clamp(66px, 10.5vw, 168px); line-height: .84; letter-spacing: -.012em; text-transform: none; color: var(--bone); }
.lb-h1 span { display: block; }
.lb-h1-b { position: relative; display: inline-flex !important; align-items: flex-end; gap: .08em; }
.lb-inf { display: inline-block; width: .9em; height: .44em; margin-bottom: .12em; }
.lb-inf svg { width: 100%; height: 100%; overflow: visible; }
.lb-inf path { fill: none; stroke: var(--flare); stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(var(--flare-rgb),  .75)); stroke-dasharray: 240; stroke-dashoffset: 240; animation: lb-draw 1.6s .25s var(--ease) forwards, lb-heat 3.2s 1.9s ease-in-out infinite; }
@keyframes lb-draw { to { stroke-dashoffset: 0; } }
@keyframes lb-heat { 0%, 100% { stroke: var(--flare); } 50% { stroke: var(--gold); } }
.lb-lede { max-width: 34em; margin: 0 0 28px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: #d4d0e2; }
.lb-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lb-promise { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; color: var(--ash); font: 600 15px/1.2 var(--display); font-stretch: 87.5%; }
.lb-promise li { display: flex; align-items: center; gap: 7px; }
.lb-promise .lb-i { width: 17px; height: 17px; color: var(--flare); stroke-width: 2.4; }

/* featured stack */
.lb-hero-stage { position: relative; }
.lb-stack { position: relative; width: min(100%, 470px); margin: 0 auto; aspect-ratio: 4 / 4.7; }
.lb-feat {
  --off-x: 0%; --off-y: 0%; --rot: 0deg; --sc: 1;
  position: absolute; inset: 0 0 auto 0; display: flex; flex-direction: column; background: var(--plate);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transform: translate(var(--off-x), var(--off-y)) rotate(var(--rot)) scale(var(--sc)); transform-origin: 50% 100%;
  transition: transform .7s var(--ease), opacity .5s, filter .5s; will-change: transform;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.lb-feat::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(135deg, rgba(255, 255, 255, .22), transparent 30%, transparent 70%, rgba(var(--flare-rgb),  .35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; }
.lb-feat[data-off="0"] { z-index: 5; }
.lb-feat[data-off="1"] { --off-x: 12%; --off-y: -5%; --rot: 5deg; --sc: .9; z-index: 4; filter: brightness(.62); }
.lb-feat[data-off="2"] { --off-x: 22%; --off-y: -9%; --rot: 9deg; --sc: .8; z-index: 3; filter: brightness(.42); }
.lb-feat[data-off="3"] { --off-x: 30%; --off-y: -12%; --rot: 12deg; --sc: .72; z-index: 2; filter: brightness(.28); opacity: .8; }
.lb-feat[data-off="4"] { --off-x: -16%; --off-y: 6%; --rot: -8deg; --sc: .9; z-index: 1; opacity: 0; }
.lb-feat:not([data-off="0"]) { pointer-events: none; }
.lb-feat-art { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #120f22; }
.lb-feat-art img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s, transform .8s var(--ease); }
.lb-feat-art img.is-in { opacity: 1; }
.lb-feat.is-hot .lb-feat-art img { transform: scale(1.04); }
.lb-feat-copy { display: grid; gap: 4px; padding: 16px 18px 18px; border-top: 3px solid var(--hue, var(--flare)); }
.lb-feat-label { font: 600 13px/1 var(--display); font-stretch: 87.5%; color: var(--hue, var(--flare)); }
.lb-feat-name { font: 800 30px/1 var(--display); font-stretch: 80%; }
.lb-feat-tag { color: var(--ash); font-size: 15px; line-height: 1.4; min-height: 2.8em; }
.lb-feat-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lb-stack-nav { position: absolute; left: 0; right: 0; bottom: -58px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.lb-stack-nav .lb-roundbtn { flex: 0 0 44px; width: 44px; height: 44px; }
.lb-dots { display: flex; gap: 0; }
.lb-dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.lb-dot::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--edge2); transition: background .2s, transform .3s var(--spring); }
.lb-dot[aria-current="true"]::before { background: var(--flare); transform: rotate(45deg) scale(1.35); }

/* ---------- sections ---------- */
.lb-view > .lb-sec, .lb-view > .lb-tabs, .lb-view > .lb-foot { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--g); padding-right: var(--g); }
.lb-sec { margin-top: clamp(40px, 6vw, 72px); }
.lb-sechead { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 16px; }
.lb-sechead h2 { margin: 0; font: 800 clamp(26px, 3vw, 36px)/1 var(--display); font-stretch: 87.5%; letter-spacing: -.005em; }
.lb-secsub { margin: 0; color: var(--dim); font-size: 15px; flex: 1 1 auto; }
.lb-railnav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lb .lb-more { display: inline-flex; align-items: center; min-height: 44px; color: var(--molten); font: 600 15px/1 var(--display); text-decoration: none; padding: 0 6px; }
.lb .lb-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- tiles ---------- */
.lb-tile {
  --cut: 12px; --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative; display: block; isolation: isolate;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  background: linear-gradient(160deg, #3a3456, #1d1a2e 60%, #2a2440);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: transform .22s var(--ease); transform-style: preserve-3d;
}
.lb-tile::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .25s; background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), var(--flare), rgba(var(--ember-rgb),  .35) 40%, transparent 70%); }
.lb-tile.is-hot { --lift: -4px; }
.lb-tile.is-hot::before { opacity: 1; }
.lb-tile-play {
  position: relative; z-index: 1; display: flex; flex-direction: column; width: calc(100% - 2px); margin: 1px; padding: 0; border: 0; text-align: left; cursor: pointer;
  background: var(--plate); color: var(--bone);
  clip-path: polygon(calc(var(--cut) - .5px) 0, 100% 0, 100% calc(100% - var(--cut) + .5px), calc(100% - var(--cut) + .5px) 100%, 0 100%, 0 calc(var(--cut) - .5px));
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.lb-tile-play::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 150, 60, .16), transparent 60%); }
.lb-tile.is-hot .lb-tile-play::after { opacity: 1; }
.lb-tile-play:active { transform: scale(.985); }
.lb-art { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #15122a, #0a0915); }
.lb-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--hue, var(--flare)); opacity: .9; }
.lb-art img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .35s ease, transform .6s var(--ease); }
.lb-art img.is-in { opacity: 1; transform: scale(1); }
.lb-tile.is-hot .lb-art img.is-in { transform: scale(1.07); }
.lb-playmark { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; color: #1d0b00; background: radial-gradient(circle at 35% 30%, #ffc27a, var(--flare) 55%, var(--ember)); border-radius: 50%; box-shadow: 0 0 0 6px rgba(var(--flare-rgb),  .25), 0 10px 30px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .35s var(--spring); }
.lb-playmark .lb-i { width: 26px; height: 26px; margin-left: 3px; }
.lb-tile.is-hot .lb-playmark, .lb-tile-play:focus-visible .lb-playmark { opacity: 1; transform: scale(1); }
.lb-tile-body { display: grid; gap: 3px; padding: 11px 44px 13px 13px; min-height: 66px; }
.lb-tile-name { font: 800 18px/1.05 var(--display); font-stretch: 87.5%; letter-spacing: .002em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-tile-tag { color: var(--ash); font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-tile-play:focus-visible { outline: none; }
.lb-tile:has(.lb-tile-play:focus-visible) { background: var(--molten); }
.lb-tile-play:focus-visible .lb-art { box-shadow: inset 0 0 0 3px var(--molten); }
.lb-state { position: absolute; z-index: 2; top: 9px; left: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px 5px 7px; font: 700 12px/1 var(--display); font-stretch: 87.5%; border-radius: 999px; pointer-events: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lb-state .lb-i { width: 13px; height: 13px; }
.lb-state--free { color: var(--molten); background: rgba(8, 6, 18, .7); box-shadow: inset 0 0 0 1px rgba(255, 179, 71, .35); }
.lb-state--used { color: var(--bone); background: rgba(10, 8, 20, .78); box-shadow: inset 0 0 0 1px var(--edge2); }
.lb-pin, .lb-info { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--bone); -webkit-tap-highlight-color: transparent; }
.lb-pin { top: 0; right: 0; }
.lb-pin .lb-i, .lb-info .lb-i { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(8, 6, 18, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .15s, color .15s, transform .25s var(--spring); }
.lb-pin:hover .lb-i, .lb-info:hover .lb-i { background: rgba(30, 26, 52, .9); }
.lb-pin[aria-pressed="true"] { color: var(--gold); }
.lb-pin[aria-pressed="true"] .lb-i { fill: var(--gold); transform: scale(1.06); }
.lb-info { right: 2px; bottom: 14px; color: var(--ash); }
.lb-info .lb-i { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.lb-info:hover { color: var(--bone); }

/* rails */
.lb-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(158px, 42vw, 248px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); padding: 6px var(--g) 18px; margin: -6px calc(var(--g) * -1) -18px; scrollbar-width: none; }
.lb-rail::-webkit-scrollbar { display: none; }
.lb-rail > * { scroll-snap-align: start; }
.lb-rail--mini { grid-auto-columns: 170px; }

/* grid */
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 18px 16px; }
.lb-grid > .lb-tile { content-visibility: auto; contain-intrinsic-size: 220px 260px; }
.lb-expand { display: flex; justify-content: center; margin-top: 22px; }
.lb-empty { padding: 36px 24px; text-align: center; color: var(--ash); border: 1px dashed var(--edge2); }
.lb-empty p { margin: 0 0 14px; }
.lb-empty b { color: var(--bone); }

/* toolbar */
.lb-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.lb-filter { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--edge2); background: var(--plate); clip-path: polygon(var(--cut-s) 0, 100% 0, 100% calc(100% - var(--cut-s)), calc(100% - var(--cut-s)) 100%, 0 100%, 0 var(--cut-s)); color: var(--dim); }
.lb-filter:focus-within { border-color: var(--flare); color: var(--molten); }
.lb-filter input { flex: 1; min-width: 0; border: 0; background: none; color: var(--bone); font: 400 16px var(--body); outline: none; padding: 12px 0; }
.lb-filter input::placeholder { color: var(--dim); }
.lb-sort { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px 0 14px; border: 1px solid var(--edge2); background: var(--plate); color: var(--dim); font: 600 14px var(--display); }
.lb-sort select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23ff8428' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center / 18px; color: var(--bone); font: 600 15px var(--display); min-height: 44px; padding: 12px 34px 12px 2px; cursor: pointer; }
.lb-sort select option { background: #12101f; color: var(--bone); }
.lb-chips, .lb-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--g) 12px; margin: 0 calc(var(--g) * -1) 10px; }
.lb-chips::-webkit-scrollbar, .lb-tabs::-webkit-scrollbar { display: none; }
.lb-chip, .lb-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--edge2); background: var(--plate); color: var(--ash); text-decoration: none; font: 600 14.5px/1 var(--display); font-stretch: 93%; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.lb-chip .lb-i, .lb-tab .lb-i { width: 15px; height: 15px; }
.lb-chip:hover, .lb-tab:hover { color: var(--bone); border-color: #5a5280; }
.lb-chip[aria-pressed="true"], .lb-tab[aria-current="page"] { color: #120a02; background: var(--hue, var(--flare)); border-color: transparent; }

/* halls (category cards) */
.lb-halls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lb-hall {
  --cut: 16px; position: relative; display: block; overflow: hidden; text-decoration: none; isolation: isolate; aspect-ratio: 2 / 1.12; background: #0d0b18;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .25s var(--ease);
}
.lb-hall-art { position: absolute; inset: 0; z-index: -2; }
.lb-hall-art img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s, transform .8s var(--ease); }
.lb-hall-art img.is-in { opacity: 1; }
.lb-hall::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 2, 12, 0) 30%, rgba(3, 2, 12, .9) 100%); }
.lb-hall::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 150, 60, .22), transparent 65%); box-shadow: inset 0 0 0 1px rgba(var(--flare-rgb),  .5); }
.lb-hall.is-hot::after { opacity: 1; }
.lb-hall.is-hot .lb-hall-art img { transform: scale(1.05); }
.lb-hall:active { transform: scale(.985); }
.lb-hall-copy { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 16px 18px; }
.lb-hall-copy::before { content: ""; width: 34px; height: 3px; background: var(--hue); margin-bottom: 8px; transition: width .3s var(--ease); }
.lb-hall:hover .lb-hall-copy::before { width: 64px; }
.lb-hall-name { font: 800 clamp(21px, 2vw, 27px)/1 var(--display); font-stretch: 85%; color: var(--bone); }
.lb-hall-count { font: 600 14px/1.2 var(--display); color: var(--hue); }
.lb-hall-line { color: #c9c5d8; font-size: 14px; line-height: 1.35; }
.lb-halls--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lb-hall--compact { aspect-ratio: 2 / 1.05; --cut: 12px; }
.lb-hall--compact .lb-hall-copy { padding: 12px 14px; }
.lb-hall--compact .lb-hall-name { font-size: 19px; }

/* ---------- category page ---------- */
.lb-cathero { position: relative; isolation: isolate; overflow: hidden; margin-top: -64px; padding-top: 64px; min-height: clamp(380px, 52vh, 520px); display: flex; align-items: flex-end; border-bottom: 1px solid var(--edge); }
.lb-cat-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .5s; }
.lb-cat-art.is-in { opacity: .9; }
.lb-cathero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(3, 2, 12, .96) 0%, rgba(3, 2, 12, .82) 38%, rgba(3, 2, 12, .25) 75%, rgba(3, 2, 12, .1) 100%),
  linear-gradient(0deg, var(--void) 0%, rgba(3, 2, 12, 0) 45%); }
.lb-cathero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--hue), transparent 70%); }
.lb-cathero--plain { min-height: 300px; background: radial-gradient(700px 300px at 20% 100%, rgba(var(--ember-rgb),  .2), transparent 70%); }
.lb-cathero-in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 32px var(--g) clamp(28px, 4vw, 48px); }
.lb-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-bottom: 8px; color: var(--ash); text-decoration: none; font: 600 15px/1 var(--display); }
.lb-back:hover { color: var(--bone); }
.lb-cat-title { margin: 0 0 12px; font: 900 clamp(52px, 8.5vw, 120px)/.86 var(--display); font-stretch: 75%; letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.lb-cathero .lb-lede { max-width: 30em; margin-bottom: 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.lb-cat-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; }
.lb-cat-facts li { padding: 8px 13px; background: rgba(8, 6, 18, .72); box-shadow: inset 0 0 0 1px var(--edge2); font: 600 14px/1 var(--display); color: var(--ash); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lb-cat-facts b { color: var(--hue); font-weight: 800; font-size: 16px; margin-right: 3px; }
.lb-view > .lb-tabs { position: sticky; top: 64px; z-index: 20; margin-top: 0; margin-bottom: 0; padding-top: 12px; padding-bottom: 12px; background: rgba(3, 2, 12, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: none; padding-left: max(var(--g), calc((100% - var(--max)) / 2 + var(--g))); padding-right: var(--g); }

/* ---------- you + deal + footer ---------- */
.lb-you { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 20px 32px; align-items: center; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.lb-you-id { display: flex; align-items: center; gap: 16px; }
.lb-avatar { flex: none; display: grid; place-items: center; width: 76px; height: 76px; overflow: hidden; border-radius: 50%; background: var(--plate2); box-shadow: 0 0 0 2px var(--flare), 0 0 24px rgba(var(--ember-rgb),  .4); }
.lb-avatar > * { max-width: 100%; max-height: 100%; }
.lb-avatar .lb-i { width: 40px; height: 40px; color: var(--ash); }
.lb-you-name { margin: 0; font: 800 28px/1 var(--display); font-stretch: 85%; }
.lb-you-lvl { display: block; margin: 6px 0 8px; color: var(--molten); font: 600 15px/1 var(--display); }
.lb-xp { display: block; width: 200px; max-width: 100%; height: 6px; background: var(--edge); overflow: hidden; }
.lb-xp i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--gold)); }
.lb-you-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.lb-you-stats div { padding: 12px 14px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--edge); }
.lb-you-stats dt { display: flex; align-items: center; gap: 6px; color: var(--dim); font: 600 13px/1.2 var(--display); }
.lb-you-stats dt .lb-i { width: 15px; height: 15px; color: var(--flare); }
.lb-you-stats dd { margin: 6px 0 0; font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.lb-you-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.lb-deal { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 48px; align-items: start; }
.lb-deal-main { display: flex; gap: 28px; align-items: flex-start; }
.lb-deal-price { margin: 0; display: grid; justify-items: center; flex: none; }
.lb-deal-price span { font: 900 clamp(84px, 10vw, 128px)/.8 var(--display); font-stretch: 75%; color: transparent; background: linear-gradient(180deg, var(--gold), var(--flare) 55%, var(--ember)); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 6px 24px rgba(var(--ember-rgb),  .45)); }
.lb-deal-price small { font: 700 18px/1 var(--display); color: var(--ash); margin-top: 6px; }
.lb-deal h2 { margin: 0 0 14px; font: 800 clamp(26px, 3vw, 36px)/1.02 var(--display); font-stretch: 85%; }
.lb-deal-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; color: #d4d0e2; }
.lb-deal-list li { display: flex; gap: 10px; align-items: center; }
.lb-deal-list .lb-i { color: var(--flare); stroke-width: 2.4; width: 18px; height: 18px; }
.lb-faq details { border-bottom: 1px solid var(--edge); }
.lb-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 16px 2px; font: 700 17px/1.3 var(--display); font-stretch: 93%; }
.lb-faq summary::-webkit-details-marker { display: none; }
.lb-faq summary::after { content: "+"; color: var(--flare); font-size: 22px; line-height: 1; transition: transform .2s; }
.lb-faq details[open] summary::after { transform: rotate(45deg); }
.lb-faq details p { margin: 0 0 16px; color: var(--ash); }
.lb-restore { margin: 18px 0 0; color: var(--ash); font-size: 15px; }
.lb-deal--open { display: block; padding: 28px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--edge); }
.lb-deal--open p { margin: 0; color: var(--ash); }
.lb-foot { margin-top: 72px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--edge); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; color: var(--dim); }
.lb-foot-brand { display: flex; align-items: center; gap: 8px; font: 700 16px var(--display); color: var(--ash); }
.lb-foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.lb-foot-links a, .lb-foot-links .lb-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ash); text-decoration: none; font-size: 15px; padding: 0; }
.lb-foot-links a:hover, .lb-foot-links .lb-link:hover { color: var(--bone); text-decoration: underline; }
.lb-foot-gfx { margin-left: auto; }
.lb-foot-gfx .fgfx-quality { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--ash) !important; font: 600 14px var(--display) !important; width: auto !important; }
.lb-foot-gfx .fgfx-quality span { color: var(--ash) !important; font: 600 14px var(--display) !important; }
.lb-foot-gfx #forge-gfx-quality { min-height: 44px; background: var(--plate) !important; color: var(--bone) !important; border: 1px solid var(--edge2) !important; border-radius: 0 !important; padding: 0 10px !important; }

/* ---------- bottom bars ---------- */
.lb-buybar { position: fixed; z-index: 25; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 24px), 640px); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; background: rgba(14, 11, 26, .9); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(var(--flare-rgb),  .35); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: transform .35s var(--ease), opacity .35s; }
.lb-buybar[hidden] { display: none; }
.lb-buybar.is-tucked { transform: translate(-50%, 140%); opacity: 0; }
.lb-buybar p { margin: 0 auto 0 0; font-size: 15px; line-height: 1.25; color: var(--ash); }
.lb-buybar b { color: var(--bone); font-family: var(--display); }
.lb-tabbar { display: none; }

/* ---------- layer: overlays ---------- */
.lb-layer { position: relative; z-index: 9000; }
.lb-sparks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9600; }
.lb-scrim { position: fixed; inset: 0; z-index: 9100; background: rgba(2, 1, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.lb-scrim.is-open { opacity: 1; }
.lb-search, .lb-sheet, .lb-reel { position: fixed; z-index: 9200; }
.lb-search[hidden], .lb-sheet[hidden], .lb-reel[hidden], .lb-scrim[hidden] { display: none; }

.lb-search { left: 50%; top: 8vh; width: min(760px, calc(100% - 32px)); max-height: 84vh; display: flex; flex-direction: column; background: var(--plate); box-shadow: 0 40px 100px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--edge2); transform: translate(-50%, 12px); opacity: 0; transition: transform .28s var(--ease), opacity .2s; clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.lb-search.is-open { transform: translate(-50%, 0); opacity: 1; }
.lb-search-bar { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--edge); }
.lb-search-field { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--flare); }
.lb-search-field .lb-i { width: 24px; height: 24px; }
.lb-search-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--bone); font: 600 22px var(--display); font-stretch: 93%; padding: 10px 0; }
.lb-search-field input::placeholder { color: var(--dim); font-weight: 500; }
.lb-search-field input::-webkit-search-cancel-button { filter: invert(1); }
.lb-search-body { overflow-y: auto; overscroll-behavior: contain; padding: 6px 14px 18px; }
.lb-sgroup { margin-top: 14px; }
.lb-sgroup h3 { margin: 0 0 8px; font: 600 14px/1 var(--display); color: var(--dim); }
.lb-sugs { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-result { display: flex; align-items: center; gap: 6px; padding: 3px; border-radius: 10px; transition: background .12s; }
.lb-result[aria-selected="true"], .lb-result:hover { background: var(--plate3); }
.lb-result-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 6px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--bone); }
.lb-result-main img { width: 72px; height: 54px; object-fit: cover; flex: none; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.lb-result-main span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lb-result-main b { font: 700 17px/1.1 var(--display); font-stretch: 90%; }
.lb-result-main small { color: var(--ash); font-size: 14px; }
.lb-result-play { color: var(--flare); opacity: 0; transition: opacity .12s; }
.lb-result[aria-selected="true"] .lb-result-play, .lb-result:hover .lb-result-play { opacity: 1; }
.lb-snone p { color: var(--ash); }
.lb-snone b { color: var(--bone); }

.lb-sheet { left: 50%; top: 50%; width: min(940px, calc(100% - 40px)); max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; background: var(--plate); transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .22s; box-shadow: 0 40px 120px rgba(0, 0, 0, .75), inset 0 0 0 1px var(--edge2); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.lb-sheet.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.lb-sheet-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.lb-sheet-x { position: absolute; top: 12px; right: 12px; z-index: 3; }
.lb-sheet-art { position: relative; background: #0d0b18; }
.lb-sheet-art img { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 901px) { .lb-sheet-art img { height: 100%; min-height: 100%; } }
.lb-sheet-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--hue); }
.lb-sheet-copy { padding: 26px 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.lb-sheet-cat { align-self: flex-start; color: var(--hue); font: 700 14px/1 var(--display); text-decoration: none; padding: 6px 0; }
.lb-sheet-cat:hover { text-decoration: underline; }
.lb-sheet-title { margin: 0; padding-right: 36px; font: 900 clamp(38px, 5vw, 56px)/.9 var(--display); font-stretch: 78%; }
.lb-sheet-tag { margin: 0; color: var(--bone); font-size: 18px; font-weight: 600; }
.lb-sheet-desc { margin: 0; color: var(--ash); font-size: 16px; line-height: 1.55; min-height: 3em; }
.lb-sheet-status { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; padding: 10px 12px; font-size: 15px; background: var(--plate2); box-shadow: inset 3px 0 0 var(--flare); }
.lb-sheet-status .lb-i { color: var(--flare); width: 18px; height: 18px; }
.lb-sheet-status--used { box-shadow: inset 3px 0 0 var(--ash); }
.lb-sheet-status--used .lb-i { color: var(--ash); }
.lb-sheet-rec { display: flex; gap: 22px; margin: 0; }
.lb-sheet-rec dt { color: var(--dim); font: 600 13px var(--display); }
.lb-sheet-rec dd { margin: 2px 0 0; font: 800 24px/1 var(--display); }
.lb-sheet .lb-cta { margin-top: 6px; }
.lb-sheet-in--you { display: block; padding: 8px 26px 24px; }
.lb-sheet .lb-you--sheet { margin-top: 18px; grid-template-columns: 1fr; border: 0; padding-top: 10px; padding-bottom: 0; }
.lb-sheet .lb-you--sheet .lb-you-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 761px) { #lobbyLayer .lb-sheet:has(.lb-sheet-in--you) { width: min(560px, calc(100% - 40px)); } }
.lb-sheet-more { grid-column: 1 / -1; padding: 18px 28px 22px; border-top: 1px solid var(--edge); --g: 28px; }
.lb-sheet-more h3 { margin: 0 0 12px; font: 700 18px var(--display); color: var(--ash); }

.lb-reel { left: 50%; top: 50%; width: min(860px, calc(100% - 32px)); transform: translate(-50%, -50%) scale(.96); opacity: 0; transition: transform .3s var(--spring), opacity .2s; background: var(--plate); box-shadow: 0 40px 120px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(var(--flare-rgb),  .4); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.lb-reel.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.lb-reel-in { position: relative; padding: 22px 0 24px; }
.lb-reel-head { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 16px; font: 700 18px var(--display); color: var(--molten); }
.lb-reel-window { position: relative; overflow: hidden; padding: 10px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.lb-reel-strip { display: flex; gap: 12px; width: max-content; will-change: transform; }
.lb-reel-cell { flex: none; width: 210px; display: grid; gap: 6px; background: var(--plate2); padding-bottom: 10px; box-shadow: inset 0 -3px 0 var(--hue); }
.lb-reel-cell img { display: block; width: 210px; height: 158px; object-fit: cover; }
.lb-reel-cell b { padding: 0 10px; font: 700 16px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-reel-mark { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--flare); box-shadow: 0 0 18px var(--flare); }
.lb-reel-mark::before, .lb-reel-mark::after { content: ""; position: absolute; left: 50%; margin-left: -9px; border: 9px solid transparent; }
.lb-reel-mark::before { top: 0; border-top-color: var(--flare); }
.lb-reel-mark::after { bottom: 0; border-bottom-color: var(--flare); }
.lb-reel-result { min-height: 132px; padding: 18px 28px 0; text-align: center; }
.lb-reel-result .lb-cta { justify-content: center; }
.lb-reel-name { margin: 0; font: 900 44px/.95 var(--display); font-stretch: 78%; animation: lb-pop .5s var(--spring); }
.lb-reel-tag { margin: 6px 0 16px; color: var(--ash); }
@keyframes lb-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lb-launch { position: fixed; z-index: 9500; overflow: hidden; transform-origin: center center; pointer-events: none; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-launch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb-toast { position: fixed; z-index: 9700; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; background: #1b1830; color: var(--bone); font: 600 15px var(--display); box-shadow: 0 14px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--edge2); transition: transform .3s var(--ease), opacity .2s; max-width: calc(100% - 32px); }
.lb-toast.on { transform: translate(-50%, 0); opacity: 1; }

/* view transitions between home and a category */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .lb-halls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lb-halls--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lb-topnav { display: none; }
  .lb-you-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lb-hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 34px; padding-bottom: 96px; }
  .lb-stack { width: min(100%, 400px); }
  .lb-halls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-halls--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-you { grid-template-columns: minmax(0, 1fr); }
  .lb-deal { grid-template-columns: minmax(0, 1fr); }
  .lb-sheet-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  #lobby { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .lb-top { gap: 8px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
  .lb-brand-sub { display: none; }
  .lb-searchbtn { min-width: 0; width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .lb-searchbtn span, .lb-searchbtn kbd { display: none; }
  .lb-unlockpill { display: none; }
  .lb-mebtn { display: none; }
  .lb-hero, .lb-cathero { margin-top: -62px; padding-top: 62px; }
  .lb-h1 { font-size: clamp(62px, 21vw, 110px); margin-bottom: 18px; }
  .lb-cta .lb-btn--lg { flex: 1 1 auto; }
  .lb-promise { gap: 6px 16px; font-size: 14px; }
  .lb-feat-name { font-size: 26px; }
  .lb-tile-body { padding: 9px 40px 11px 11px; min-height: 60px; }
  .lb-tile-name { font-size: 16.5px; }
  .lb-tile-tag { font-size: 13px; }
  .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .lb-playmark { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .lb-hall { aspect-ratio: 1 / .78; }
  .lb-hall-line { display: none; }
  .lb-halls > .lb-hall:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / .82; }
  .lb-hall-copy { padding: 11px 12px; }
  .lb-hall-name { font-size: 18px; }
  .lb-hall-count { font-size: 13px; }
  .lb-railnav .lb-roundbtn { display: none; }
  .lb-view > .lb-tabs { top: 60px; }
  .lb-cathero::before { background: linear-gradient(180deg, rgba(3, 2, 12, .5) 0%, rgba(3, 2, 12, .78) 45%, rgba(3, 2, 12, .9) 75%, var(--void) 100%); }
  .lb-cat-art.is-in { opacity: .75; }
  .lb-deal-main { flex-direction: column; gap: 10px; }
  .lb-deal-price { justify-items: start; }
  .lb-foot-gfx { margin-left: 0; }
  .lb-buybar { bottom: calc(70px + env(safe-area-inset-bottom)); padding: 7px 7px 7px 14px; }
  .lb-buybar p span:not([data-price]) { display: none; }
  body.lb-buy-up #forge-ask-open { bottom: calc(142px + env(safe-area-inset-bottom)); transition: bottom .35s var(--ease); }
  .lb-toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
  .lb-tabbar { position: fixed; z-index: 26; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 4px max(4px, env(safe-area-inset-bottom)); background: rgba(6, 5, 16, .94); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid var(--edge); }
  .lb-tabbar a, .lb-tabbar button { display: grid; justify-items: center; gap: 3px; min-height: 54px; padding: 6px 0 4px; border: 0; background: none; color: var(--dim); text-decoration: none; font: 600 11.5px/1 var(--display); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .lb-tabbar .lb-i { width: 23px; height: 23px; }
  #lobby[data-view="home"] .lb-tabbar [data-tab="home"], #lobby[data-view="halls"] .lb-tabbar [data-tab="halls"], #lobby[data-view^="cat-"]:not([data-view="cat-pinned"]) .lb-tabbar [data-tab="halls"], #lobby[data-view="cat-pinned"] .lb-tabbar [data-tab="pinned"] { color: var(--flare); }
  .lb-search { left: 0; top: 0; width: 100%; height: 100%; max-height: none; transform: translateY(16px); clip-path: none; }
  .lb-search.is-open { transform: none; }
  .lb-search-bar { padding-top: max(12px, env(safe-area-inset-top)); }
  .lb-sheet { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92vh; transform: translateY(100%); opacity: 1; clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px); padding-bottom: env(safe-area-inset-bottom); }
  .lb-sheet.is-open { transform: translateY(0); }
  .lb-sheet::before { content: ""; position: sticky; top: 8px; display: block; width: 44px; height: 4px; margin: 8px auto -12px; border-radius: 4px; background: var(--edge2); z-index: 4; }
  .lb-sheet-copy { padding: 20px 18px; }
  .lb-sheet .lb-cta .lb-btn--hot { flex: 1 1 100%; }
  .lb-sheet .lb-cta .lb-btn--ghost { flex: 1 1 0; }
  .lb-sheet-more { padding: 16px 18px 24px; --g: 18px; }
  .lb-reel-cell { width: 150px; }
  .lb-reel-cell img { width: 150px; height: 113px; }
  .lb-reel-name { font-size: 36px; }
}
@media (max-width: 380px) {
  .lb-grid { gap: 10px 8px; }
  .lb-tile-tag { -webkit-line-clamp: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lb *, .lb *::before, .lb *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .lb-tile { transform: none !important; }
  .lb-inf path { stroke-dashoffset: 0; }
}
body.reduce .lb *, body.reduce .lb *::before, body.reduce .lb *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
body.reduce .lb-tile { transform: none !important; }
@media (forced-colors: active) {
  .lb-tile, .lb-btn, .lb-hall, .lb-feat, .lb-filter, .lb-search, .lb-sheet, .lb-reel, .lb-buybar { clip-path: none; border: 1px solid CanvasText; }
}

/* Your player: the lifelike avatar bobblehead lives in the hero (mounted by forge-home-avatar.js) */
.lb-hero-copy { position: relative; }
.lb-me { position: absolute; right: -12px; bottom: -70px; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.lb-me .fgb3 { position: relative !important; left: auto !important; bottom: auto !important; width: 200px !important; margin: 0 !important; order: 1; }
.lb-me .fgb3-hit { width: 200px !important; height: 250px !important; }
.lb-me .fgb3-voice { display: none; }
.lb-me-edit { order: 2; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid rgba(255,255,255,.2); background: rgba(12,12,20,.75); color: #f4efe6; font: 700 14px/1 Saira, system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(6px); }
.lb-me-edit:hover, .lb-me-edit:focus-visible { border-color: #ff812a; color: #fff; outline: none; box-shadow: 0 0 0 3px rgba(255,129,42,.35); }
.lb-me:not(.on) .lb-me-edit { display: none; }
@media (max-width: 1180px) { .lb-me { right: -24px; } .lb-me .fgb3 { width: 170px !important; } .lb-me .fgb3-hit { width: 170px !important; height: 215px !important; } }
@media (max-width: 900px) { .lb-me { position: relative; right: auto; bottom: auto; margin: 18px auto 0; } .lb-me .fgb3, .lb-me .fgb3-hit { width: 160px !important; } .lb-me .fgb3-hit { height: 200px !important; } }
@media (min-width: 901px) { .lb-hero-copy .lb-lede { max-width: calc(100% - 190px); } .lb-me { right: -20px; bottom: -84px; } }

/* ---------- halls and discovery (2026-10-22) ---------- */
/* touch targets: every chip, tab and round button is at least 44 px */
.lb-chip, .lb-tab { min-height: 44px; }
.lb-roundbtn { width: 44px; height: 44px; }
.lb-chip small { font-size: 12px; opacity: .75; font-weight: 700; }
.lb-chips--status { margin-top: -4px; }
.lb-viewtoggle { display: flex; gap: 6px; align-items: center; }
.lb-viewtoggle .lb-roundbtn[aria-pressed="true"] { color: #120a02; background: var(--flare); border-color: transparent; }
.lb-viewtoggle .lb-i { width: 18px; height: 18px; }
.lb-new { position: absolute; z-index: 2; top: 9px; right: 48px; padding: 5px 9px; border-radius: 999px; font: 800 11.5px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #120a02; background: var(--gold); pointer-events: none; }
/* list view: art on the left, words on the right, one game per row */
.lb-grid--list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lb-grid--list > .lb-tile { contain-intrinsic-size: 100% 104px; }
.lb-grid--list .lb-tile-play { flex-direction: row; align-items: stretch; }
.lb-grid--list .lb-art { flex: none; width: clamp(112px, 26vw, 168px); aspect-ratio: 4 / 3; }
.lb-grid--list .lb-tile-body { align-content: center; min-height: 0; padding: 10px 92px 10px 14px; }
.lb-grid--list .lb-tile-tag { -webkit-line-clamp: 2; }
.lb-grid--list .lb-state { top: auto; bottom: 8px; left: 8px; }
.lb-grid--list .lb-info { bottom: auto; top: 50%; right: 46px; transform: translateY(-50%); }
.lb-grid--list .lb-pin { top: 50%; transform: translateY(-50%); }
.lb-grid--list .lb-new { top: 8px; left: 8px; right: auto; }
/* hall hero */
.lb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font: 600 15px/1 var(--display); color: var(--ash); }
.lb-crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--ash); text-decoration: none; }
.lb-crumbs a:hover { color: var(--bone); }
.lb-crumbs [aria-current] { color: var(--bone); }
.lb-hallbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -10px 0 18px; }
.lb-hallbar .lb-xp { width: min(260px, 60vw); height: 8px; }
.lb-hallbar small { color: var(--ash); font-size: 14px; }
.lb-hallpick { max-width: 60ch; margin: 0 0 14px; color: var(--ash); line-height: 1.45; }
.lb-hallpick .lb-i { display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; color: var(--hue, var(--flare)); }
.lb-hallpick b { color: var(--bone); }
@media (max-width: 560px) {
  .lb-grid--list .lb-tile-body { padding-right: 84px; }
  .lb-toolbar .lb-viewtoggle { margin-left: auto; }
}

/* install button, iOS add-to-home sheet, offline notice (forge-install.js) */
.lb-installbtn { flex: 0 0 auto; }
.lb-installbtn[hidden] { display: none; }
.lb-offline { margin: 0; padding: 10px var(--g); background: #3a2a0c; color: #ffe2a8; font-size: .92rem; line-height: 1.4; border-bottom: 1px solid #7a5a1c; }
.lb-installsheet { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; justify-items: center; background: rgba(3, 2, 12, .6); padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.lb-installsheet[hidden] { display: none; }
.lb-installsheet-card { width: min(440px, 100%); background: #15121f; color: var(--bone, #f4efe6); border: 1px solid var(--edge2, #3a3550); border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 20px 50px #000a; }
.lb-installsheet-card h2 { margin: 0 0 10px; font-size: 1.15rem; }
.lb-installsheet-card ol { margin: 0 0 10px; padding-left: 1.3em; line-height: 1.5; }
.lb-installsheet-card p { margin: 0 0 14px; opacity: .85; line-height: 1.45; }
.lb-installsheet-card .lb-btn { min-height: 44px; width: 100%; }
@media (min-width: 640px) { .lb-installsheet { align-items: center; } }
@media (prefers-reduced-motion: no-preference) { body:not(.reduce) .lb-installsheet-card { animation: lbSheetUp .22s ease-out; } }
@keyframes lbSheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* accent themes (You panel) */
.lb[data-theme="ocean"] { --ember: #0b7fd1; --flare: #2aa8ff; --molten: #7fd0ff; --flare-rgb: 42, 168, 255; --ember-rgb: 11, 127, 209; }
.lb[data-theme="forest"] { --ember: #2e9e4f; --flare: #45c86a; --molten: #9be6a9; --flare-rgb: 69, 200, 106; --ember-rgb: 46, 158, 79; }
.lb[data-theme="violet"] { --ember: #7b4fe0; --flare: #a07bff; --molten: #cdb8ff; --flare-rgb: 160, 123, 255; --ember-rgb: 123, 79, 224; }
.lb-themes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.lb-themes-l { color: var(--ash); font-size: .9rem; margin-right: 4px; }
.lb-theme { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--edge2); background: var(--plate2); color: var(--bone); font: inherit; cursor: pointer; }
.lb-theme i { width: 16px; height: 16px; border-radius: 50%; background: #ff8428; }
.lb-theme--ocean i { background: #2aa8ff; } .lb-theme--forest i { background: #45c86a; } .lb-theme--violet i { background: #a07bff; }
.lb-theme[aria-checked="true"] { border-color: var(--flare); box-shadow: 0 0 0 2px rgba(var(--flare-rgb), .35); }
.lb-theme:focus-visible { outline: 3px solid var(--molten); outline-offset: 2px; }
/* personal picks card */
.lb-likes-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.lb-likes .lb-chip { min-height: 44px; }
.lb-likes .lb-chip[aria-pressed="true"] { border-color: var(--hue, var(--flare)); background: color-mix(in srgb, var(--hue, var(--flare)) 22%, transparent); }
button.lb-more { background: none; border: 0; font: inherit; cursor: pointer; min-height: 44px; }

/* category hall 3D scene (forge-hall3d.mjs): above the art, below the title */
.lb-hall3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.lb-hall3d.is-in { opacity: .95; }
.lb-cathero-in { position: relative; z-index: 1; }
