/* Riffle — lobby, auth gate, shop, leaderboard, account. Sits on ui.css; the 3D table is the backdrop. */
:root{--bg:#07080a;--felt:#122a1f;--felt2:#0a1a13;--slots:#3fc6d9;--lw:64px}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:#000;color:var(--ink);font:14px/1.4 var(--font);-webkit-font-smoothing:antialiased;overflow:hidden;overscroll-behavior:none}
[hidden]{display:none!important}
button,input{font:inherit;color:inherit}
canvas#gl{position:fixed;inset:0;width:100vw;height:100vh;display:block;z-index:0}
a{color:inherit}

#app{position:relative;z-index:1;height:100dvh;display:flex;flex-direction:column}
body.has-rail #app{padding-left:200px} /* desktop: the hall keeps its place whether the rail is open or closed */
@media (max-width:900px){ body.has-rail #app{padding-left:0} } /* phones and tablets: the rail floats, the hall uses the full width */
@media (max-width:720px){ .sc-rail{display:none} body.has-rail #app{padding-left:0} }

/* ---------- card-fan brand mark (reused for the gate) ---------- */
.logo{position:relative;width:calc(var(--lw) * 5.1);height:calc(var(--lw) * 1.7);margin:0 auto 2px}
.logo .c{position:absolute;left:50%;bottom:0;width:var(--lw);aspect-ratio:100/140;margin-left:calc(var(--lw) / -2);transform-origin:50% 160%;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.5));transform:translateY(12px);opacity:0;animation:fan .55s cubic-bezier(.2,.8,.3,1) forwards}
.logo .c svg{display:block;width:100%;height:100%}
.logo .c:nth-child(1){--x:calc(var(--lw) * -1.9);--r:-10.5deg;animation-delay:.05s}
.logo .c:nth-child(2){--x:calc(var(--lw) * -1.14);--r:-6.3deg;animation-delay:.11s}
.logo .c:nth-child(3){--x:calc(var(--lw) * -.38);--r:-2.1deg;animation-delay:.17s}
.logo .c:nth-child(4){--x:calc(var(--lw) * .38);--r:2.1deg;animation-delay:.23s}
.logo .c:nth-child(5){--x:calc(var(--lw) * 1.14);--r:6.3deg;animation-delay:.29s}
.logo .c:nth-child(6){--x:calc(var(--lw) * 1.9);--r:10.5deg;animation-delay:.35s}
@keyframes fan{to{transform:translateX(var(--x)) rotate(var(--r));opacity:1}}
body.is3d .gate .logo{display:none}

/* ---------- auth gate ---------- */
.gate-wrap{flex:1;display:flex;align-items:flex-end;justify-content:center;padding:0 16px 22px;pointer-events:none}
.gate{pointer-events:auto;width:min(292px,100%);padding:14px 14px 12px;display:flex;flex-direction:column;gap:8px;background:rgba(8,9,12,.58);border:1px solid rgba(255,255,255,.1);border-radius:12px;backdrop-filter:blur(6px);box-shadow:0 14px 40px rgba(0,0,0,.45)}
.gate .mark{text-align:center;font:800 12px var(--font);letter-spacing:.3em;color:var(--gold2);margin:0}
.gate-tabs{display:flex;background:rgba(0,0,0,.32);border-radius:8px;padding:2px;gap:2px}
.gate-tabs button{flex:1;height:28px;border:0;background:none;color:var(--ink3);font:700 12px var(--font);border-radius:7px;cursor:pointer;transition:background .12s,color .12s}
.gate-tabs button.cur{background:rgba(255,255,255,.09);color:var(--ink)}
.gate form{display:flex;flex-direction:column;gap:7px}
.gate label{display:flex;flex-direction:column;gap:3px;font-size:9.5px;color:var(--ink3);text-transform:uppercase;letter-spacing:.07em;font-weight:700}
.gate input{height:34px;border-radius:7px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.3);color:var(--ink);padding:0 10px;font:600 13px var(--font);outline:0}
.gate input:focus{border-color:rgba(255,255,255,.5)}
.gate .err{color:#ffb3aa;font-size:11.5px;line-height:1.35;background:rgba(224,87,74,.12);border:1px solid rgba(224,87,74,.35);border-radius:7px;padding:6px 9px}
.gate .go{height:36px;border:0;border-radius:7px;background:var(--gold);color:#1b1405;font:700 13px var(--font);cursor:pointer;transition:background .12s,transform .08s,opacity .15s}
.gate .go:hover{background:var(--gold2)}.gate .go:active{transform:translateY(1px)}.gate .go:disabled{opacity:.55;cursor:default}
.gate .sep{display:flex;align-items:center;gap:8px;color:var(--ink3);font-size:9.5px;text-transform:uppercase;letter-spacing:.1em;margin:0}
.gate .sep::before,.gate .sep::after{content:"";flex:1;height:1px;background:var(--line)}
.gate .guest{width:100%;height:42px;border:0;border-radius:8px;background:#fff;color:#111;font:800 14.5px var(--font);letter-spacing:-.01em;cursor:pointer;transition:transform .08s,opacity .15s,box-shadow .15s;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.gate .guest:hover{box-shadow:0 8px 22px rgba(255,255,255,.12)}.gate .guest:active{transform:translateY(1px)}.gate .guest:disabled{opacity:.6;cursor:default}
.gate #gateMain{display:flex;flex-direction:column;gap:8px}
.gate #gateMain .go{height:34px;background:rgba(255,255,255,.1);color:var(--ink);border:1px solid rgba(255,255,255,.16)}.gate #gateMain .go:hover{background:rgba(255,255,255,.18)}
.gate .hint{text-align:center;color:var(--ink3);font-size:11.5px;line-height:1.4;margin:0}

/* ---------- lobby chrome: top bar + mobile nav ---------- */
.top{position:relative;z-index:2;flex:0 0 auto;display:flex;align-items:center;gap:14px;padding:16px 26px}
.top .brand{display:block;flex:none;text-decoration:none;cursor:default}
.top .logo{--lw:24px;width:calc(var(--lw) * 5.1);height:calc(var(--lw) * 1.6);margin:0}
.top .logo .c{filter:drop-shadow(0 3px 5px rgba(0,0,0,.55))}
body.lobby-home,html.lobby-home body{background:#000;background-image:none}
body.lobby-home::before,html.lobby-home body::before{display:none}
body.lobby-home canvas#gl,html.lobby-home canvas#gl{visibility:hidden}
.top .who{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.top .who b{color:var(--ink);font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}
.top .who small{color:var(--ink3);font-size:11px}
.top .spacer{flex:1}
.top .bonusbtn{height:38px;padding:0 16px;white-space:nowrap}
.top .bonusbtn.ready{animation:bglow 1.8s ease-in-out infinite}
@keyframes bglow{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.55)}50%{box-shadow:0 0 0 6px rgba(255,255,255,0)}}
.top .wait{color:var(--ink3);font-size:11.5px;white-space:nowrap}
.top .hamb{display:none;width:38px;height:38px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(0,0,0,.25);cursor:pointer;flex:none;align-items:center;justify-content:center}
.top .hamb span,.top .hamb span::before,.top .hamb span::after{display:block;width:16px;height:2px;background:var(--ink2);border-radius:2px;position:relative;content:""}
.top .hamb span::before{position:absolute;top:-5px}.top .hamb span::after{position:absolute;top:5px}
@media (max-width:720px){
  .top,body.has-rail .top{padding:12px 14px;gap:10px} /* the rail is hidden here, so no space is kept for it: the menu button sits at the edge */
  .top .hamb{display:flex}
  .top .who small{display:none}
  .top .who b{max-width:96px}
  .top .bonusbtn{height:34px;padding:0 10px;font-size:12px}
}
@media (max-width:420px){ .top .who{display:none} }

.mnav{position:absolute;top:100%;left:0;right:0;z-index:40;background:rgba(7,8,10,.97);border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);padding:8px;display:flex;flex-direction:column;gap:2px;transform:translateY(-6px) scaleY(.98);opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;transform-origin:top}
.mnav.open{opacity:1;transform:none;pointer-events:auto}
.mnav a{display:flex;align-items:center;gap:12px;height:46px;padding:0 12px;border-radius:10px;color:var(--ink2);text-decoration:none;font-weight:600;font-size:13.5px}
.mnav a i{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-style:normal;font-weight:800;font-size:11px;background:rgba(255,255,255,.06);color:var(--ink);flex:none}
.mnav a:hover{background:rgba(255,255,255,.06)}
.mnav a.cur{background:rgba(255,255,255,.12);color:var(--gold2)}.mnav a.cur i{background:var(--gold);color:#1b1405}

/* ---------- main scroll area ---------- */
.view{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:2px 26px 60px}
@media (max-width:720px){ .view{padding:2px 14px 80px} }
.view>section{max-width:980px}
.view h2.pagehead{font-size:20px;margin:10px 0 4px;color:var(--ink);letter-spacing:.01em}
.view p.lede{color:var(--ink3);font-size:13px;margin:0 0 20px}

/* ---------- lobby home: tiles ---------- */
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:16px 0 8px}
@media (max-width:760px){ .tiles{grid-template-columns:1fr} }
.tile{--accent:var(--gold2);display:block;border-radius:16px;padding:20px 20px 18px;text-decoration:none;background:var(--panel);
  border:1px solid var(--line);backdrop-filter:blur(10px);position:relative;overflow:hidden;transition:transform .12s,border-color .12s;isolation:isolate}
.tile::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.16;background:linear-gradient(135deg,var(--accent) 0%,transparent 62%)}
.tile:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.22)}
.tile h3{margin:0 0 6px;font-size:19px;color:var(--ink);letter-spacing:.01em}
.tile p{margin:0 0 16px;color:var(--ink2);font-size:12.5px;line-height:1.55;max-width:32ch}
.tile .go{display:inline-flex;align-items:center;gap:6px;color:var(--accent);font-weight:800;font-size:12.5px;text-transform:uppercase;letter-spacing:.06em}
.tile.poker{--accent:var(--gold2)}.tile.blackjack{--accent:var(--red)}.tile.roulette{--accent:var(--green)}.tile.slots{--accent:var(--slots)}

.stat-line{display:flex;align-items:center;gap:8px;color:var(--ink3);font-size:12px;margin:2px 2px 24px}
.stat-line i{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 8px var(--green);flex:none}

.previews{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:30px}
@media (max-width:760px){ .previews{grid-template-columns:1fr} }
.panel{padding:16px 18px}
.panel h4{display:flex;justify-content:space-between;align-items:center;margin:0 0 10px;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink3);font-weight:700}
.panel h4 a{color:var(--gold2);font-size:11.5px;text-decoration:none;font-weight:700;text-transform:none;letter-spacing:0}
.panel h4 a:hover{text-decoration:underline}
.lb-mini,.shop-mini{display:flex;flex-direction:column;gap:2px}
.lb-mini .row,.shop-mini .row{display:flex;align-items:center;gap:10px;padding:7px 2px;font-size:13px}
.lb-mini .row b{width:16px;color:var(--ink3);font-weight:700;font-size:11.5px}
.lb-mini .row span.n{flex:1;color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lb-mini .row span.v{color:var(--gold2);font-weight:700;font-variant-numeric:tabular-nums;font-size:12.5px}
.shop-mini .row span.n{flex:1;color:var(--ink);font-weight:600}
.shop-mini .row span.v{color:var(--ink3);font-size:12px;font-variant-numeric:tabular-nums}
.av-dot{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:10px;font-weight:800;color:#1b1405;flex:none}

/* ---------- leaderboard ---------- */
.lb-tabs{display:flex;gap:8px;margin:14px 0 16px}
.lb-tabs button{height:36px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:rgba(0,0,0,.2);color:var(--ink2);font:700 12.5px var(--font);cursor:pointer}
.lb-tabs button.cur{background:var(--gold);border-color:var(--gold);color:#1b1405}
.lb-wrap{overflow-x:auto}
.lb #lbTable{background:rgba(8,9,12,.8);border:1px solid var(--line);border-radius:14px;padding:16px 18px;backdrop-filter:blur(8px);max-width:760px}
.lb .lb-total{color:var(--ink3);font-size:12px;margin:12px 0 0}
.lb-table{width:100%;border-collapse:collapse;font-size:13px;min-width:320px}
.lb-table th{text-align:left;color:var(--ink3);font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;padding:0 10px 8px;font-weight:700}
.lb-table td{padding:9px 10px;border-top:1px solid var(--line);white-space:nowrap}
.lb-table td.name{white-space:nowrap;max-width:260px;overflow:hidden}
.lb-table th:first-child,.lb-table td.rank{width:52px}
.lb-table th:nth-child(3),.lb-table td.lvl{width:72px;text-align:right}
.lb-table th:last-child,.lb-table td.val{width:150px;text-align:right;font-weight:800;color:var(--cash2)}
.lb-table td.name span{overflow:hidden;text-overflow:ellipsis}
.lb-table .rank{color:var(--ink3);font-variant-numeric:tabular-nums;width:30px}
.lb-table .val{color:var(--gold2);font-weight:800;font-variant-numeric:tabular-nums;text-align:right}
.lb-table .tag{font-size:10px;color:var(--ink3);border:1px solid var(--line);border-radius:4px;padding:1px 5px;margin-left:6px;text-transform:uppercase;letter-spacing:.04em}
.lb-table tr.me{background:rgba(255,255,255,.1)}
.lb-table tr.pin td{border-top:2px dashed rgba(255,255,255,.18);padding-top:13px}

/* ---------- shop ---------- */
.shop h3.cat{margin:28px 0 12px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink3);font-weight:700}
.shop h3.cat:first-of-type{margin-top:12px}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(152px,1fr));gap:12px}
.item{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:13px;display:flex;flex-direction:column;gap:9px;backdrop-filter:blur(8px);cursor:pointer;transition:border-color .12s}
.item:hover{border-color:rgba(255,255,255,.22)}
.item .swatch{width:100%;height:42px;border-radius:8px;border:1px solid rgba(255,255,255,.14)}
.item .av-prev{width:100%;height:42px;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);display:flex;align-items:center;justify-content:center;color:var(--ink3);font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.item.previewing .av-prev{border-color:var(--gold);color:var(--gold2)}
.item .name{font-weight:700;font-size:13px;color:var(--ink)}
.item .price{font-size:11.5px;color:var(--ink3);font-variant-numeric:tabular-nums}
.item .price.owned{color:var(--green);font-weight:700}
.item .row{display:flex;gap:6px;margin-top:auto}
.item button{flex:1;height:32px;font-size:12px;padding:0 6px}

/* ---------- account ---------- */
.acct .block{margin-bottom:34px}
.acct h3.h{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink3);font-weight:700;margin:0 0 14px}
.acct .namerow{display:flex;gap:10px;align-items:flex-end;max-width:360px;flex-wrap:wrap}
.acct .namerow label{flex:1;display:flex;flex-direction:column;gap:6px;font-size:10.5px;color:var(--ink3);text-transform:uppercase;letter-spacing:.06em;font-weight:700;min-width:160px}
.acct input{height:42px;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.28);color:var(--ink);padding:0 12px;font:600 14px var(--font);outline:0}
.acct input:focus{border-color:rgba(255,255,255,.5)}
.acct .namerow button{height:42px}

.look-panel{padding:16px 18px 18px;max-width:420px}
.crow{display:grid;grid-template-columns:106px 30px 1fr 30px;align-items:center;gap:8px;font-size:13px;padding:5px 0}
.crow b{color:var(--ink3);font-weight:700;font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.crow .arr{height:30px;border:1px solid rgba(255,255,255,.12);border-radius:6px;background:rgba(0,0,0,.25);color:var(--ink);cursor:pointer;font-size:17px;line-height:1}
.crow .arr:hover{background:rgba(255,255,255,.08)}
.crow .val{text-align:center;color:var(--ink);font-weight:600;text-transform:capitalize;display:flex;justify-content:center;align-items:center;height:30px;gap:6px;overflow:hidden}
.crow .val .sw{display:inline-block;width:20px;height:20px;border-radius:50%;border:2px solid rgba(255,255,255,.25);flex:none}
.crow .lock{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--ink3);justify-content:center}
.crow .lock .pr{color:var(--gold2);font-weight:700;white-space:nowrap}
.crow .lock a{color:var(--gold2);text-decoration:none;font-weight:700}
.crow .lock a:hover{text-decoration:underline}
.crow-rand{margin-top:10px}
@media (max-width:460px){ .crow{grid-template-columns:82px 26px 1fr 26px;font-size:12px}.crow .arr,.crow .val{height:26px}.crow b{font-size:9.5px} }

.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.stat-group{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 16px 10px}
.stat-group h4{margin:0 0 8px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink3);font-weight:700;display:flex;align-items:center;gap:8px}
.stat-group h4 svg{width:16px;height:16px;color:var(--ink2)}
.stat-group .srow{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;border-top:1px solid var(--line);font-size:13px;color:var(--ink2)}
.stat-group .srow b{color:var(--ink);font-weight:800;font-variant-numeric:tabular-nums;font-size:15px}
.stat-group .srow b.pos{color:var(--cash2)}.stat-group .srow b.neg{color:#ff9a8f}
.stat-group .bar{height:6px;border-radius:3px;background:rgba(255,255,255,.08);margin:8px 0 4px;overflow:hidden}
.stat-group .bar i{display:block;height:100%;background:linear-gradient(90deg,var(--cash),var(--cash2));border-radius:3px}
.stat-group small{display:block;color:var(--ink3);font-size:11px;margin-bottom:4px}

.guest-box{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.3);border-radius:14px;padding:18px 20px}
.guest-box p{margin:0 0 14px;color:var(--ink2);font-size:13px;line-height:1.5}
.guest-box form{display:flex;flex-direction:column;gap:10px;max-width:320px}
.guest-box label{display:flex;flex-direction:column;gap:6px;font-size:10.5px;color:var(--ink3);text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.guest-box input{height:40px;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.28);color:var(--ink);padding:0 12px;font:600 13.5px var(--font);outline:0}
.guest-box .err{color:#ffb3aa;font-size:12px;background:rgba(224,87,74,.12);border:1px solid rgba(224,87,74,.35);border-radius:8px;padding:7px 10px}

.logout-row{margin-top:36px}

/* ---------- visuals: busts, image-led tables, podium, shelf ---------- */
canvas.head{display:block;border-radius:50%;background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.07),rgba(0,0,0,.32) 72%)}
.home .floor-head{display:flex;align-items:center;gap:22px;margin:4px 0 22px}
.home .floor-head canvas.head{width:110px;height:110px;flex:none;box-shadow:0 10px 30px -10px rgba(0,0,0,.7)}
.home .floor-text h2{margin:0 0 6px;font-size:26px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.home .floor-text p{margin:0;color:var(--ink2);font-size:14px;max-width:56ch;line-height:1.5}
.home .tiles{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}
.home .tile{position:relative;min-height:210px;border-radius:14px;overflow:hidden;background:#0d0f13 var(--img) center/cover no-repeat;color:var(--ink);text-decoration:none;box-shadow:0 22px 44px -22px rgba(0,0,0,.85);transition:filter .15s}
.home .tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,8,10,0) 28%,rgba(7,8,10,.9) 100%)}
.home .tile:hover{filter:brightness(1.1)}
.home .tile .tile-text{position:absolute;left:20px;right:20px;bottom:18px;z-index:1}
.home .tile h3{margin:0 0 12px;font-size:28px;font-weight:800;letter-spacing:-.02em;color:#fff}
.home .tile p{margin:4px 0 12px;color:rgba(241,236,224,.85);font-size:13px;line-height:1.45;max-width:40ch}
.home .tile .go{display:inline-block;padding:8px 13px;border-radius:7px;background:var(--gold);color:#1b1405;font-weight:700;font-size:12.5px}
.home .tile.poker{grid-column:span 7;min-height:320px}.home .tile.blackjack{grid-column:span 5;min-height:320px}.home .tile.roulette{grid-column:span 6}.home .tile.slots{grid-column:span 6}
.home .lb-mini .row{display:grid;grid-template-columns:22px 36px 1fr auto;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--line)}
.home .lb-mini .row:last-child{border-bottom:0}
.home .lb-mini .row b{color:var(--ink3);font-variant-numeric:tabular-nums;font-size:12px}
.home .lb-mini canvas.head{width:36px;height:36px}
.home .lb-mini .n{color:var(--ink);font-weight:600;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home .lb-mini .v{color:var(--gold2);font-weight:800;font-variant-numeric:tabular-nums;font-size:13px}
.home .lb-mini .row.me .n{color:var(--gold2)}
.home .shelf{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.home .shelf-item{display:flex;flex-direction:column;align-items:center;gap:4px;text-decoration:none;padding:8px 4px;border-radius:10px}
.home .shelf-item:hover{background:rgba(255,255,255,.05)}
.home .shelf-item canvas.head{width:78px;height:78px}
.home .shelf-item .n{color:var(--ink);font-size:12px;font-weight:600;text-align:center}
.home .shelf-item .v{color:var(--gold2);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.shop .item canvas.head{width:100%;aspect-ratio:1;height:auto;margin-bottom:6px}
.shop .item .cardback{width:64%;margin:4px auto 10px;filter:drop-shadow(0 8px 14px rgba(0,0,0,.5))}
.shop .item .cardback svg{display:block;width:100%;height:auto}
.shop .item .felt-sw{aspect-ratio:1.4;margin:8px 0 10px;border-radius:999px;background:radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--felt) 85%,#fff 15%),var(--felt) 65%,color-mix(in srgb,var(--felt) 70%,#000 30%));border:6px solid #2a1810;box-shadow:inset 0 0 0 3px #1a1412,0 10px 20px -10px rgba(0,0,0,.8);display:grid;place-items:center}
.shop .item .felt-sw span{font:900 13px Georgia,"Times New Roman",serif;letter-spacing:.08em;color:rgba(0,0,0,.35)}
.shop .item .worn{display:inline-flex;align-items:center;gap:6px;height:36px;color:var(--green);font-weight:700;font-size:13px}
.shop .item .worn svg{width:16px;height:16px}
.shop .item.equipped{box-shadow:inset 0 0 0 1px rgba(73,195,127,.45)}
.lb .podium{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:end;gap:10px;margin:6px 0 22px;max-width:560px;border-bottom:2px solid rgba(255,255,255,.18)}
.lb .podium .step{display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 8px 10px;border-radius:12px 12px 0 0;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));border:1px solid var(--line);border-bottom:0;position:relative}
.lb .podium .step canvas.head{width:96px;height:96px}
.lb .podium .step.s1 canvas.head{width:124px;height:124px}
.lb .podium .step.s1{padding-bottom:26px;border-color:rgba(255,255,255,.45);background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.03))}
.lb .podium .step.s3{padding-bottom:4px}
.lb .podium .step b{color:var(--ink);font-size:13px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lb .podium .step span{color:var(--gold2);font-weight:800;font-variant-numeric:tabular-nums;font-size:13px}
.lb .podium .step i{position:absolute;top:8px;left:10px;font-style:normal;font-weight:800;font-size:12px;color:var(--ink3)}
.lb .podium .step.s1 i{color:var(--gold2)}
.lb .podium .step.empty{border:0;background:none}
.lb-table td.name canvas.head{width:34px;height:34px;display:inline-block;vertical-align:middle;margin-right:9px}
.lb-table td.name span{vertical-align:middle}
.lb-table td.rank{color:var(--ink3);font-variant-numeric:tabular-nums}
.mnav a i svg{width:18px;height:18px;display:block}
@media (max-width:720px){
  .home .floor-head{gap:14px}.home .floor-head canvas.head{width:76px;height:76px}.home .floor-text h2{font-size:20px}
  .home .tile,.home .tile.poker,.home .tile.blackjack,.home .tile.roulette,.home .tile.slots{grid-column:span 12;min-height:190px}
  .home .shelf{grid-template-columns:repeat(2,1fr)}
  .stats{grid-template-columns:1fr}
  .lb .podium .step canvas.head{width:64px;height:64px}.lb .podium .step.s1 canvas.head{width:84px;height:84px}
}

.lb-table .gb{margin-left:8px;font-style:italic;color:var(--ink3);font-size:11px}

/* the lobby home fills the viewport exactly: four tiles in a fixed two-row grid, nothing to scroll */
body.home-fit .view{overflow:hidden;padding-bottom:18px}
body.home-fit .home{height:100%;display:flex;flex-direction:column;min-height:0}
body.home-fit .home .floor-head{flex:none;margin:0 0 16px}
body.home-fit .home .tiles{flex:1;min-height:0;grid-template-rows:1fr 1fr}
body.home-fit .home .tile,body.home-fit .home .tile.poker,body.home-fit .home .tile.blackjack,body.home-fit .home .tile.roulette,body.home-fit .home .tile.slots{min-height:0}
@media (max-width:720px){ body.home-fit .view{overflow-y:auto} body.home-fit .home{height:auto} }

/* age gate, statement, daily challenge, friends button */
.gate-age{display:flex;flex-direction:column;gap:7px;padding:2px 2px 4px}
.gate-age .age-h{margin:0;font-size:13.5px;font-weight:700;color:#fff;letter-spacing:-.01em;text-align:center;line-height:1.4}
.gate-age p{margin:0;font-size:12.5px;line-height:1.45;color:var(--ink2)}
.gate-age .go{margin-top:4px}
.gate-note{margin:2px 0 0;text-align:center;font-size:10.5px;color:var(--ink3);letter-spacing:.02em}
.chal{display:grid;grid-template-columns:1fr auto;gap:6px 14px;align-items:center;padding:10px 14px 11px;margin:0 0 12px;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:rgba(255,255,255,.03)}
.chal-t{display:flex;gap:10px;align-items:baseline;min-width:0;overflow:hidden}.chal-t b{font-size:11.5px;color:var(--ink3);white-space:nowrap;font-weight:700}.chal-t span{font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chal-r{font-size:12px;color:var(--ink2);white-space:nowrap}
.chal-p{grid-column:1/-1;height:4px;border-radius:2px;background:rgba(255,255,255,.1);overflow:hidden}.chal-p i{display:block;height:100%;background:#5fd98f;transition:width .5s}
.chal.done{border-color:rgba(74,209,127,.45)}.chal.done .chal-r{color:#9ff0b3}
.home .tile .go.alt{margin-left:8px;background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.28);cursor:pointer;font:inherit;font-weight:700;font-size:12.5px;line-height:1}
.home .tile .go.alt:hover{background:rgba(255,255,255,.24)}
.acct .legal{margin:-6px 0 14px;font-size:12.5px;color:var(--ink3);max-width:60ch}

/* ---------- mobile pass (phone-width fixes only; nothing above this block changes) ---------- */
@media (max-width: 720px) {
  /* "Claim daily bonus +$NNN,NNN" has no width cap, so on a phone it pushes the coin/profile HUD
     clean off the right edge of the screen instead of just being a long button — give it a fixed
     flex-basis (max-width alone only caps the ceiling; flex-shrink can still crush it toward 0 once
     overflow:hidden removes its content-driven minimum) so it reliably ellipsizes at a legible width.
     The row (hamburger + rail inset on body.has-rail + card-fan logo + this button + the coins HUD)
     is still too tight to fit everything on one line down around ~375-400px — rather than chase an
     exact pixel budget that a longer name or a translated string would blow again, let the row wrap:
     .top is a normal-flow flex item (not fixed/absolute), so a second line just makes the header a
     little taller and pushes the content below it down, with nothing clipped or overlapping. */
  .top{gap:6px;flex-wrap:wrap;row-gap:4px}
  .top .logo{--lw:20px}
  .top .bonusbtn{flex:0 0 118px;width:118px;overflow:hidden;text-overflow:ellipsis;font-size:11px;padding:0 8px}

  /* body.home-fit's "exact two-row grid, nothing to scroll" layout is a desktop-only trick; on mobile
     .view already scrolls (see the max-width:720px rule above), but .tiles still carries flex:1 +
     grid-template-rows:1fr 1fr from the unconditional rule, which squashes each tile to a sliver well
     under its own min-height:190px instead of letting it take its real size. The unconditional
     body.home-fit .home .tile rule also forces min-height:0 (needed so desktop's fixed-height rows can
     shrink tiles to fit) at higher specificity than the plain .home .tile{min-height:190px} rule above,
     so that has to be restored here too or the tiles still collapse to their text's natural height */
  body.home-fit .home .tiles{flex:none;min-height:0;grid-template-rows:none}
  body.home-fit .home .tile,body.home-fit .home .tile.poker,body.home-fit .home .tile.blackjack,body.home-fit .home .tile.roulette,body.home-fit .home .tile.slots{min-height:190px}

  /* leaderboard: the Level column's fixed width, the Cash column's fixed 150px, and the podium's
     560px max-width all overflow a phone screen, pushing the cash amount off the right edge */
  .lb .podium{max-width:100%;gap:6px}
  .lb-table th:nth-child(3),.lb-table td.lvl{display:none}
  .lb-table th:last-child,.lb-table td.val{width:auto;min-width:0}
  .lb-table td.name{max-width:120px}
  .lb #lbTable{padding:12px 10px}

  /* avatar customizer: under 460px the ‹ › step buttons drop to 26px tall and the row labels to
     9.5px — below the 40px tap-target and 13px legibility floors */
  .crow{grid-template-columns:96px 40px 1fr 40px}
  .crow b{font-size:13px}
  .crow .arr,.crow .val{height:40px}
}
.home .floor-text .quip{margin:6px 0 0;font-size:13.5px;line-height:1.4;color:var(--ink3);max-width:60ch}
@media (max-width:720px){.home .floor-text .quip{font-size:12.5px}}

/* short viewports (landscape phones, small laptops): the hall scrolls instead of squashing the tiles */
@media (max-height:620px){
  body.home-fit .view{overflow:auto}
  body.home-fit .home{height:auto;display:block}
  body.home-fit .home .tiles{flex:none;min-height:0;grid-template-rows:none;grid-auto-rows:190px}
  body.home-fit .home .tile,body.home-fit .home .tile.poker,body.home-fit .home .tile.blackjack,body.home-fit .home .tile.roulette,body.home-fit .home .tile.slots{min-height:190px}
}
/* narrow desktops and landscape phones: keep the top bar on one line */
@media (max-width:1100px){
  .top .bonusbtn{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .top .who small{display:none}
  .sc-hud-lvl{display:none}
}

/* landscape phones: the avatar editor fits without scrolling — compact rows, no heading, the bust on the right */
@media (max-height:520px) and (orientation:landscape){
  .top{padding:6px 14px 6px 52px}
  .avatar-page .pagehead{display:none}
  .avatar-page .look-panel{padding:8px 10px;max-width:380px}
  .crow{grid-template-columns:82px 26px 1fr 26px;gap:6px;padding:2px 0;font-size:12px}
  .crow b{font-size:10px}
  .crow .arr,.crow .val{height:26px;font-size:15px}.crow .val{font-size:12px}
  .crow .val .sw{width:16px;height:16px}
  .crow-rand{margin-top:6px;height:30px}
}
