/* The Cube draft stage of the Lobby (lcube.js). The home keeps its one screen: with the format row away the stage takes
   that row too, as one plate; the rooms scroll sideways, the cubes stand in one case that turns like the deck picker's.
   Colours are the client pages' plate tokens and the page's gold, so both themes follow. */
#home.lc-on .gl-home-fmt{display:none}
#home.lc-on .home-go [hidden]{display:none}
@media (min-width:900px){
  #home.lc-on .home-stage{grid-column:2;grid-row:1 / 3;min-height:0}
}
.lc-stage{flex:1;min-width:0;min-height:0;box-sizing:border-box;display:flex;flex-direction:column;gap:14px;padding:22px 24px 16px;
  border-radius:20px;border:1px solid var(--cp-edge);background:var(--cp-plate);box-shadow:var(--cp-hi);overflow:hidden}
.lc-sec{flex:none;display:flex;flex-direction:column;gap:10px;min-width:0}
.lc-sec .cp-h{margin:0;font-size:20px}
.lc-stage .sc-quiet{margin:0}
.lc-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.lc-stage .dr-mine{flex-wrap:nowrap;overflow-x:auto;margin:0;padding:2px 2px 8px;scrollbar-width:thin;scrollbar-color:var(--line2) transparent}
.lc-stage .dr-mine a{flex:none}
.lc-pick{flex:none;width:232px;padding:0;margin:0;background:none;border:0;border-radius:16px;text-align:left;color:inherit;font:inherit;cursor:pointer}
.lc-pick .cb-tile{width:100%;height:100%;box-sizing:border-box;pointer-events:none}
.lc-pick.on{outline:2px solid var(--gold);outline-offset:2px;box-shadow:0 0 22px var(--glow)}
.lc-pick:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.home-go .lc-all{display:inline-flex;align-items:center;text-decoration:none}
/* the phone's Mode step: the Cube draft card is a link that reads as the cards around it */
a.mode.lc-mode{text-decoration:none;color:inherit}
/* the case: one row of cubes that turns, the front one larger; the search field is a solid dark box so it reads on the stone and the felt */
.lc-head{flex:none}
.lc-find{position:relative;flex:0 1 360px;min-width:0;display:flex}
.lc-find svg{position:absolute;left:14px;top:50%;width:18px;height:18px;transform:translateY(-50%);stroke:#f3e9c9;pointer-events:none}
.lc-stage #lc-q{flex:1;width:100%;height:44px;padding:0 14px 0 42px;border-radius:12px;border:1px solid rgba(255,246,226,.38);background:rgba(10,12,16,.86);
  color:#fff6e2;font-size:16px;box-shadow:inset 0 2px 6px rgba(0,0,0,.65),0 0 0 1px rgba(0,0,0,.5)}
.lc-stage #lc-q::placeholder{color:rgba(243,233,201,.75)}
.lc-stage #lc-q:focus{outline:none;border-color:var(--gold);box-shadow:inset 0 2px 6px rgba(0,0,0,.65),0 0 0 3px rgba(240,200,100,.28)}
.lc-case{--lc-cube:clamp(120px,20vh,260px);position:relative;flex:1 1 0;min-height:180px;border-radius:14px;overflow:hidden;outline:none;touch-action:pan-y;
  background:url(/static/felt-shelf.webp) center 62%/cover;box-shadow:inset 0 0 0 1px var(--line),inset 0 24px 40px -20px #000c}
.lc-case:focus-visible{box-shadow:inset 0 0 0 2px var(--gold)}
.lc-ring{position:absolute;left:50%;bottom:26px;width:0;height:0}
.lc-ring .lc-pick{position:absolute;bottom:0;left:calc(var(--lc-cube) / -2);width:var(--lc-cube);transform-origin:50% 100%;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.lc-ring .lc-pick.far{visibility:hidden}
.lc-ring .lc-empty{position:absolute;left:-160px;width:320px;bottom:60px;text-align:center}
.lc-case .arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:200;width:48px;height:48px;border-radius:50%;border:1px solid #ffffff44;background:#000a;color:var(--ink);font-size:32px;line-height:1;cursor:pointer}
.lc-case .arrow.l{left:16px}.lc-case .arrow.r{right:16px}
.lc-case .arrow:hover:not(:disabled){border-color:var(--gold);color:var(--gold)}
.lc-case .arrow:disabled{opacity:.3;cursor:default}
.lc-case .lc-group{z-index:201;top:16px;font-size:13px}
.lc-ticker{flex:none}
/* Classic light: the light felt of the deck picker, so the caption's dark ink reads; the search field light with a clear edge */
:root[data-theme="pokeball"] .lc-case{background:url(/static/felt-shelf-light.webp) center 62%/cover}
:root[data-theme="pokeball"] .lc-stage #lc-q{background:#fff;border-color:rgba(0,0,0,.42);color:var(--ink);box-shadow:inset 0 1px 3px rgba(0,0,0,.18)}
:root[data-theme="pokeball"] .lc-stage #lc-q::placeholder{color:rgba(0,0,0,.58)}
:root[data-theme="pokeball"] .lc-find svg{stroke:var(--ink)}
/* the rooms' label stands beside its row, so a short window keeps its height for the case */
.lc-sec.lc-rooms{flex-direction:row;align-items:center;gap:14px}.lc-rooms .cp-h{flex:none;font-size:17px}.lc-rooms .dr-mine{flex:1;min-width:0;padding-bottom:4px}
