/* The shop window, the bought table colours, and the lobby with seven games */
.sc-box.sh-box{width:min(640px,100%);max-height:calc(100dvh - 40px);overflow-y:auto}
.sh-wallet{text-align:center;margin:-4px 0 8px;font-size:14px}.sh-wallet b{color:var(--gold)}
.sh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-top:10px}
.sh-item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 8px;border-radius:14px;background:#0006;border:1px solid #f0c35a33}
.sh-item.on{border-color:var(--gold);box-shadow:0 0 12px #f0c35a55}
.sh-item b{font-size:14px;text-align:center}
.sh-item button{width:100%;display:flex;align-items:center;justify-content:center;gap:4px;height:34px;padding:0;font-size:13px}
.sh-back{display:block;width:56px;height:78px;border-radius:5px;overflow:hidden;box-shadow:0 3px 8px #000b}.sh-back svg{width:100%;height:100%;display:block}
.sh-frame{display:flex;align-items:center;justify-content:center;height:78px}.sh-frame svg{overflow:visible}
.sh-felt{display:flex;align-items:center;justify-content:center;width:100%;height:78px}
.sh-felt i{width:96%;height:62px;border-radius:50%;border:5px solid #2b2b33;box-shadow:0 0 0 2px #e8b422aa;background:radial-gradient(ellipse at 50% 25%,var(--tf1),var(--tf2) 60%,var(--tf3))}
.sh-note{text-align:center;font-size:12px;opacity:.7;margin:8px 0 0}
.sh-felt[data-f=t0]{--tf1:#1b6b4c;--tf2:#0c3a2a;--tf3:#051c13}
.sh-felt[data-f=t1],body[data-felt=t1]{--tf1:#1c5fa8;--tf2:#0c2f5c;--tf3:#04142b}
.sh-felt[data-f=t2],body[data-felt=t2]{--tf1:#9c2037;--tf2:#530c1b;--tf3:#24040b}
.sh-felt[data-f=t3],body[data-felt=t3]{--tf1:#6a2fa0;--tf2:#361453;--tf3:#170625}
.sh-felt[data-f=t4],body[data-felt=t4]{--tf1:#3c3f46;--tf2:#1c1e23;--tf3:#090a0c}
.sh-felt[data-f=t5],body[data-felt=t5]{--tf1:#b08a24;--tf2:#6b4c0c;--tf3:#2e1f02}
body[data-felt] .pk-felt,body[data-felt] .bjm .bj-table::before{background:radial-gradient(ellipse at 50% 20%,var(--tf1),var(--tf2) 60%,var(--tf3))}
body[data-felt] .rl-board,body[data-felt] .mrl{background:var(--tf2)}
body[data-felt] .mr-strip,body[data-felt] .mrc.out:not(.nred):not(.nblack){background:var(--tf3)}
#shopbtn svg{display:block}

.hm-videopoker{--c1:#2c2f7a;--c2:#0c0d2b}.hm-horses{--c1:#2f7a35;--c2:#0c2b10}
.hm-row2.hm-row2{grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr))}
@media(max-width:700px){.hm-row2.hm-row2{grid-template-columns:1fr}}
.hm-shop{--c1:#0d5f5a;--c2:#052a28}

/* phone lobby: three tiles on top, six games in two columns */
.ml .ml-pair{grid-template-columns:repeat(3,minmax(0,1fr))}
.ml .ml-grid{grid-template-rows:repeat(3,minmax(0,1fr));flex:3.2}
.ml .ml-pair b{font-size:14px;white-space:nowrap}.ml .ml-pair small{display:none}
.ml .t-shop{background:linear-gradient(135deg,#052a28,#0d7a72)}
.ml .t-videopoker{background:linear-gradient(160deg,#3a3d9c,#0c0d2b)}.ml .t-horses{background:linear-gradient(160deg,#3a8f3f,#0c2b10)}
@media(max-height:700px){.ml-first{min-height:540px}.ml .ml-tile small{display:none}.ml .ml-tile b{font-size:14px}}

.hm-wheel.hm-shop{background:linear-gradient(135deg,#052a28,#0d7a72)}
/* the new games behave like the others on a low computer screen */
@media(max-height:730px){body:not(.phone) main:has(.vp) #game,body:not(.phone) main:has(.hr) #game{min-height:0}body:not(.phone) main:has(.vp) #chat,body:not(.phone) main:has(.hr) #chat{min-height:0;height:calc(100dvh - 130px)}}
body.phone #shopbtn{display:none}
body.phone .ml .t-blackjack .ml-art .hm-cards .pc,body.phone .ml .t-videopoker .ml-art .hm-cards .pc{--cw:min(34px,42cqh)!important}
body.phone .ml .t-blackjack .ml-art,body.phone .ml .t-videopoker .ml-art{overflow:hidden;margin-bottom:3px}
body.phone .ml .t-videopoker .hm-cards .pc{margin:0 -7px!important}
.ml .ml-tile b{position:relative;z-index:1}
@media(max-height:700px){.ml-first{min-height:480px}}
.hm-scratch{--c1:#8a1c6a;--c2:#2a0620}
/* phone lobby: eight tiles in four rows, poker shown as "computer only" */
.ml .ml-grid{grid-template-rows:repeat(4,minmax(0,1fr));flex:4}
.ml .t-scratch{background:linear-gradient(160deg,#a8257f,#2a0620)}
.ml .ml-tile.ml-poker{flex:initial;display:flex;flex-direction:column;gap:2px;padding:4px;border-radius:16px;background:linear-gradient(160deg,#4a1d78,#1c0a30);border:1px solid #b388ff88;opacity:.75;font-family:var(--body);font-size:inherit}
.ml .ml-spade{display:flex;align-items:center;justify-content:center;font-size:min(44px,70cqh);line-height:1;color:#e9d6ff}
@media(max-height:760px){.ml .ml-grid .ml-tile small{display:none}.ml .ml-grid .ml-tile b{font-size:15px}}
@media(max-height:700px){.ml-first,.ml .ml-grid,.ml .ml-pair{gap:5px}}
/* a lower phone: the drawing stands beside the name, so both stay big enough */
@media(max-height:760px){
  body.phone .ml .ml-first{min-height:440px}
  body.phone .ml .ml-grid .ml-tile{flex-direction:row;justify-content:flex-start;gap:6px;padding:4px 8px}
  body.phone .ml .ml-grid .ml-tile .ml-art{flex:none;width:46%;height:100%}
  body.phone .ml .ml-grid .ml-tile b{flex:1;min-width:0;font-size:14px;line-height:1.15;text-align:center}
  body.phone .ml .ml-grid .t-blackjack .ml-art .hm-cards .pc,body.phone .ml .ml-grid .t-videopoker .ml-art .hm-cards .pc{--cw:min(38px,64cqh,36cqw)!important}
  body.phone .ml .ml-grid .ml-spade{font-size:min(40px,80cqh)}
}
