/* The lobby with a stage (lobby2.js) */
.l2{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) clamp(240px,19vw,310px);grid-template-rows:minmax(0,1fr);gap:14px;width:100%}
.l2-main,.l2-side{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}
.l2 button{font-family:var(--body)}

/* services */
body .l2 .hm-row2.l2-svc{flex:none;display:grid;grid-template-columns:1.35fr repeat(5,minmax(0,1fr));grid-template-rows:none;gap:9px;margin:0}
.l2 .l2-svc .l2-sv{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:9px;min-width:0;height:62px;margin:0;padding:0 8px;border-radius:15px;border:1px solid #f0c35a66;text-align:start;overflow:hidden;animation:none;background:#0007;color:var(--txt)}
.l2-sv i{flex:none;display:grid;place-items:center;width:36px;height:36px;font-style:normal;font-size:27px;line-height:1}
.l2-sv i svg{width:100%;height:100%}
.l2-sv>span{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.l2 .l2-sv b{font-family:var(--display);font-weight:400;font-size:16px;color:#ffe9a8;white-space:nowrap}
.l2 .l2-sv small{font-size:12px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.l2 .l2-svc .l2-bonus.ready{background:var(--goldtxt);background-color:var(--gold);border-color:#fff3b0;color:#2a1700;animation:l2glow 1.8s ease-in-out infinite}
.l2 .l2-bonus.ready b{color:#2a1700}
@keyframes l2glow{50%{box-shadow:0 0 26px #f0c35acc}}
.l2 .l2-svc .l2-wheel{background:linear-gradient(120deg,#6a1b9a,#c2185b 55%,#e65100)}
.l2 .l2-svc .hm-vault{background:linear-gradient(120deg,#2a1c04,#6b4a0c 60%,#3a2706)}
.l2 .l2-svc .hm-vault.owe{border-color:#ff5252;box-shadow:0 0 14px #ff5252aa}
.l2 .l2-svc .hm-shop{background:linear-gradient(135deg,#052a28,#0d7a72)}
.l2 .l2-svc .hm-jobs{background:linear-gradient(135deg,#2c1a06,#8a5a14)}
.l2 .l2-svc .l2-lead{background:linear-gradient(135deg,#0d2a52,#1d5fa8)}
.l2-wheelico{width:32px;height:32px;border-radius:50%;border:3px solid #fff3b0;background:conic-gradient(#c62828 0 45deg,#f0c35a 0 90deg,#1e8f5a 0 135deg,#f0c35a 0 180deg,#1d4e7a 0 225deg,#f0c35a 0 270deg,#7b1fa2 0 315deg,#f0c35a 0)}

/* the stage */
.l2-show{flex:none;position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);align-items:center;gap:10px;height:clamp(136px,23vh,250px);padding:10px 30px;border-radius:22px;border:2px solid var(--gold);background:radial-gradient(ellipse at 22% 50%,#ffffff26,transparent 60%),linear-gradient(120deg,var(--c1,#1d5a94),var(--c2,#0a1f3a));box-shadow:0 0 26px #f0c35a55;overflow:hidden;cursor:pointer}
.l2-show::before{content:"";position:absolute;inset:-80%;pointer-events:none;background:repeating-conic-gradient(#ffffff10 0 10deg,transparent 10deg 30deg);animation:l2turn 60s linear infinite}
@keyframes l2turn{to{transform:rotate(360deg)}}
.l2-show>*{position:relative}
.l2-show.fire{border-color:#ff9a1f;box-shadow:0 0 32px #ff7a1a99}
.l2-txt{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.l2-tag{padding:2px 12px;border-radius:20px;background:#000b;color:#ffd54f;font-weight:700;font-size:14px}.l2-tag em{font-style:normal}
.l2-txt h2{margin:0;font-family:var(--display);font-weight:400;font-size:clamp(26px,3.2vw,50px);line-height:1.05;color:#fff3b0;text-shadow:0 4px 14px #000a}
.l2-txt p{margin:0;font-size:15px}
.l2 .l2-play{height:42px;padding:0 30px;border-radius:30px;font-family:var(--display);font-size:20px;background:var(--goldtxt);background-color:var(--gold);color:#2a1700;border-color:#fff3b0}
.l2-show .l2-art{animation:l2float 3.5s ease-in-out infinite}
@keyframes l2float{50%{transform:translateY(-7px) rotate(-1.5deg)}}
.l2-dots{position:absolute!important;bottom:6px;left:50%;transform:translateX(-50%);display:flex;gap:6px}
.l2 .l2-dots button{width:28px;height:9px;padding:0;border-radius:6px;background:#0009;border:1px solid #fff8}.l2 .l2-dots button.on{background:var(--gold)}

/* pictures take the room they are given */
.l2-art{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;container-type:size;pointer-events:none}
.l2-art>svg{width:100%;height:90cqh;max-width:100%}
.l2-art>.wheelwrap{width:auto!important;height:92cqh!important;aspect-ratio:1;max-width:96cqw}.l2-art>.wheelwrap svg{width:100%;height:100%}
.l2-art .hm-cards{display:flex;align-items:center;justify-content:center;direction:ltr;margin:0;transform:none}
.l2-art .hm-cards .pc{--cw:min(100px,46cqh,18cqw)!important}
.l2-art .hm-cards[data-cards=holdem] .pc{--cw:min(100px,48cqh,24cqw)!important}
.l2-art .hm-cards[data-cards=blackjack] .pc{--cw:min(110px,50cqh,28cqw)!important}

/* categories and the games */
.l2-cats{flex:none;display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}
.l2 .l2-cats button{flex:none;height:34px;padding:0 15px;border-radius:20px;background:#0008;border:1px solid #f0c35a44;font-weight:700;font-size:13.5px}
.l2 .l2-cats button.on{background:var(--goldtxt);background-color:var(--gold);color:#2a1700}
.l2-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));grid-auto-rows:142px;align-content:start;gap:10px;overflow:auto;padding:5px 3px 8px;scrollbar-width:thin;scrollbar-color:#6b4423 transparent}
.l2 .l2-g{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0;padding:7px 8px;border-radius:17px;border:2px solid #f0c35a4d;overflow:hidden;background:linear-gradient(160deg,var(--c1,#1d5a94),var(--c2,#0a1f3a));box-shadow:0 6px 14px #0009;color:var(--txt)}
.l2 .l2-g:hover{border-color:var(--gold);box-shadow:0 0 22px #f0c35a77;filter:none}
.l2-g .l2-art{flex:1}
.l2-name{flex:none;font-family:var(--display);font-weight:400;font-size:clamp(16px,1.5vw,22px);color:#fff3b0;text-shadow:0 3px 8px #000a;line-height:1.15;white-space:nowrap}
.l2-g small{flex:none;max-width:100%;font-size:12px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.l2 .l2-g.hot{border-color:#ff9a1f;box-shadow:0 0 18px #ff7a1acc}
.l2 .l2-g.shut,.l2 .l2-g.off{filter:grayscale(.85) brightness(.75)}
.l2-live{position:absolute;top:6px;left:6px;display:flex;align-items:center;gap:4px;padding:0 8px;border-radius:20px;background:#000b;font-size:12px;z-index:1}
.l2-live::before{content:"";width:8px;height:8px;border-radius:50%;background:#4cff7a;box-shadow:0 0 6px #4cff7a}
.l2-ribbon{position:absolute;top:6px;right:6px;padding:0 9px;border-radius:20px;background:#e53935;font-size:11.5px;font-weight:700;z-index:1}
.l2-ribbon.gray{background:#333;border:1px solid #fff8}

/* the player, the black room, the friends */
.l2-me{flex:none;display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:17px;border:1px solid #e8b422aa;background:linear-gradient(150deg,#4a1670,#14051f 70%)}
.l2 .l2-mehead{display:flex;align-items:center;gap:10px;min-width:0;padding:0;background:none;border:0;text-align:start;color:var(--txt)}
.l2-mehead svg{flex:none;overflow:visible}
.l2-mehead>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;line-height:1.2}
.l2-mehead b{font-family:var(--display);font-weight:400;font-size:18px;color:#fff3b0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.l2-mehead small{font-size:12px;opacity:.88}.l2-mehead small em{font-style:normal}
.l2-bar{display:block;height:8px;border-radius:6px;background:#000b;border:1px solid #fff2;overflow:hidden}.l2-bar u{display:block;height:100%;min-width:4px;background:var(--goldtxt);background-color:var(--gold);text-decoration:none}
.l2 .hm-vip{display:flex;margin:0}.l2 .hm-vip>*{flex:1;min-width:0}
.l2 .bk-door{flex:none;margin:0}
.l2 .l2-side>.hm-panel{flex:1;min-height:80px;max-height:none;overflow:auto}

@media(max-height:700px){
  .l2{gap:10px}.l2-main,.l2-side{gap:7px}.l2 .l2-svc .l2-sv{height:50px}.l2-sv i{width:28px;height:28px;font-size:22px}
  .l2-show{height:136px}.l2-txt p{display:none}.l2-grid{grid-auto-rows:118px}.l2-g small{display:none}.l2 .hm-vip{display:none}
}
@media(max-width:1200px){body:not(.phone) .l2-sv i{display:none}body:not(.phone) .l2-bonus i{display:grid}}

/* phone: one column that scrolls. The chat has its place in the bottom menu: the floating button would hide a game */
body.phone.home-on #chatfab{display:none!important}
body.phone .l2{display:flex;flex-direction:column;gap:7px;padding:7px 8px 16px}
body.phone .l2 .hm-row2.l2-svc{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
body.phone .l2 .l2-svc .l2-sv{flex-direction:column;gap:1px;height:58px;padding:3px 1px;border-radius:13px;text-align:center}
body.phone .l2-sv i{width:28px;height:28px;font-size:22px}body.phone .l2-wheelico{width:26px;height:26px;border-width:2px}
body.phone .l2 .l2-sv b{font-size:11px}
body.phone .l2 .l2-sv small{display:none}
body.phone .l2-show{height:152px;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);padding:8px 12px 18px;border-radius:18px}
body.phone .l2-txt h2{font-size:clamp(21px,7vw,30px)}body.phone .l2-txt p{font-size:12px}body.phone .l2 .l2-play{height:36px;font-size:17px;padding:0 20px}body.phone .l2-tag{font-size:11.5px}
body.phone .l2-art .hm-cards .pc{--cw:min(56px,58cqh,26cqw)!important}
body.phone .l2-grid{flex:none;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:106px;gap:6px;overflow:visible;padding:0}
body.phone .l2 .l2-g{padding:4px 3px 5px;border-radius:14px;border-width:1px}
body.phone .l2-name{font-size:clamp(12px,3.7vw,15px)}
body.phone .l2-live{top:4px;left:4px;font-size:10.5px;padding:0 6px}body.phone .l2-ribbon{top:4px;right:4px;font-size:9.5px;padding:0 6px}
body.phone .l2 .bk-door{min-height:46px}
body.phone .l2>.hm-panel{max-height:none;overflow:visible;padding:10px 12px}
body.phone .l2>.hm-panel button{min-height:40px}
@media(max-width:340px){body.phone .l2 .l2-sv b{font-size:9.5px}body.phone .l2-name{font-size:11.5px}}
/* a low phone: everything above the games gets shorter, so they show without scrolling */
@media(max-height:640px){
  body.phone .l2{gap:5px;padding-top:5px}
  body.phone .l2-me{padding:5px 8px}body.phone .l2-mehead>span{gap:1px}body.phone .l2-mehead b{font-size:15px}body.phone .l2-mehead small:last-child{display:none}body.phone .l2-bar{height:5px}
  body.phone .l2 .l2-svc .l2-sv{height:46px}body.phone .l2-sv i{width:22px;height:22px;font-size:18px}body.phone .l2-wheelico{width:20px;height:20px}
  body.phone .l2-show{height:94px;padding:5px 10px 10px}body.phone .l2-txt{gap:3px}body.phone .l2-txt p,body.phone .l2-dots{display:none!important}body.phone .l2-txt h2{font-size:19px}body.phone .l2-tag{font-size:10px;white-space:nowrap}body.phone .l2 .l2-play{height:28px;font-size:14px}
  body.phone .l2 .bk-door{min-height:34px;padding-block:2px}body.phone .l2 .bk-door small{display:none}
  body.phone .l2 .l2-cats button{height:28px}
  body.phone .l2-grid{grid-auto-rows:88px}
}
@media(prefers-reduced-motion:reduce){.l2-show::before,.l2-show .l2-art,.l2 .l2-svc .l2-bonus.ready{animation:none!important}}
