/* Video poker: pay table on top, five cards on the felt, bet dock at the bottom (one layout for computer and phone) */
#game:has(.vp){background:radial-gradient(ellipse at 50% 0,rgba(90,140,255,.18),transparent 55%),linear-gradient(#120b1d,#08040c)}
.vp{display:flex;flex-direction:column;gap:10px;width:100%;max-width:760px;margin:0 auto;user-select:none}
.vp-title{flex:none;text-align:center;font-family:var(--display);font-size:28px;letter-spacing:6px;color:#f6d36a;text-shadow:0 0 18px #e8b42299;line-height:1.1}
.vp-title small{display:block;font-family:var(--body);font-size:11px;letter-spacing:3px;color:#c9b8ff;text-shadow:none}
.vp-pays{flex:none;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(5,auto);grid-auto-flow:column;gap:2px 8px;padding:8px;border-radius:14px;background:linear-gradient(#171a3a,#0b0c1e);border:1px solid #e8b42266}
.vp-pays div{display:flex;align-items:center;gap:6px;padding:2px 8px;border-radius:7px;font-size:13px}
.vp-pays span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vp-pays b{color:#f6d36a}.vp-pays i{font-style:normal;opacity:.75;min-width:70px;text-align:left;direction:ltr}
.vp-pays div.hit{background:linear-gradient(90deg,#f6d36a,#d9a62e);color:#241400;font-weight:800}.vp-pays div.hit b,.vp-pays div.hit i{color:#241400;opacity:1}
.vp-table{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:14px 10px;border-radius:22px;background:radial-gradient(ellipse at 50% 20%,var(--tf1,#16704a),var(--tf2,#0a3d27) 60%,var(--tf3,#052216));border:5px solid #2b2b33;box-shadow:0 0 0 2px #e8b422aa,inset 0 0 50px #000a}
.vp-msg{min-height:24px;font-size:17px;font-weight:700;text-align:center}.vp-msg.win{color:#8dffa4;text-shadow:0 0 12px #2e9d4a}.vp-msg.lose{color:#ffab9e}
.vp-cards{width:100%;display:flex;justify-content:center;gap:8px;direction:ltr;container-type:inline-size}
.vp-cards .vp-slot{flex:none;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;border:0;background:none;box-shadow:none;transition:transform .18s}
.vp-slot .pc{--cw:min(112px,calc((100cqw - 40px)/5));margin:0}
.vp-slot.held{transform:translateY(-10px)}.vp-slot.held .pc-front{box-shadow:0 0 0 3px #f6d36a,0 0 18px #f6d36a}
.vp-hold{visibility:hidden;font-size:12px;font-weight:800;direction:rtl;padding:1px 9px;border-radius:9px;background:#f6d36a;color:#241400;white-space:nowrap}
.vp-slot.held .vp-hold{visibility:visible}
.vp-slot:disabled{opacity:1}
.vp-recent{display:flex;gap:5px;height:22px;overflow:hidden;max-width:100%;flex-wrap:nowrap}
.vp-recent i{flex:none;font-style:normal;font-size:11px;padding:2px 8px;border-radius:9px;background:#0007;opacity:.7}.vp-recent i.w{background:#1e7a3acc;opacity:1}
.vp-dock{flex:none;display:grid;grid-template-columns:minmax(150px,1fr) minmax(220px,1.4fr) minmax(160px,1fr);gap:8px;align-items:center;padding:10px;border-radius:16px;background:linear-gradient(#1d1218,#0b070a);border:1px solid #e8b42266}
.vp-bet{display:flex;gap:6px}.vp-bet input{flex:1;min-width:0;text-align:center;direction:ltr;font-size:17px;height:38px}.vp-bet button{min-width:42px;height:38px;padding:0}
.vp-quick{display:flex;gap:5px}.vp-quick button{flex:1;padding:0;height:36px;font-size:13px}
.vp-main{font-family:var(--display);font-size:20px;height:46px;padding:0}
.vp-main.draw:not(:disabled){background:linear-gradient(#5ee08a,#1d8a47);color:#04210f}
.vp-lim{grid-column:1/-1;text-align:center;font-size:11px;opacity:.65}
@media(max-height:820px){body:not(.phone) .vp{gap:6px}body:not(.phone) .vp-title{font-size:21px}body:not(.phone) .vp-title small{display:none}body:not(.phone) .vp-slot .pc{--cw:min(86px,calc((100cqw - 40px)/5))}body:not(.phone) .vp-table{padding:8px;gap:5px}body:not(.phone) .vp-pays div{padding:0 8px;font-size:12px}body:not(.phone) .vp-lim{display:none}}
/* phone: one screen, the table takes what is left */
body.phone.ingame #game:has(.vp){padding:0}
body.phone .vp{flex:1;min-height:0;max-width:100%;gap:6px;padding-top:6px}
body.phone .vp-title{display:none}
body.phone .vp-pays{margin:0 8px;grid-template-columns:1fr;grid-auto-flow:row;grid-template-rows:none;padding:5px}
body.phone .vp-pays div{padding:0 8px;line-height:1.65}
body.phone .vp-table{flex:1;min-height:0;margin:0 6px;padding:6px 4px;gap:6px;border-width:4px;border-radius:18px;overflow:hidden}
body.phone .vp-cards{gap:5px}
body.phone .vp-slot .pc{--cw:calc((100cqw - 24px)/5)}
body.phone .vp-msg{font-size:14px;line-height:1.3}
body.phone .vp-dock{grid-template-columns:1fr;gap:6px;border:0;border-top:2px solid var(--gold2);border-radius:0;padding:8px 10px calc(env(safe-area-inset-bottom) + 8px)}
body.phone .vp-lim{display:none}
@media(max-height:720px){body.phone .vp-recent{display:none}body.phone .vp-pays{font-size:12px}body.phone .vp-pays div{line-height:1.4;font-size:12px}body.phone .vp-bet input,body.phone .vp-bet button{height:32px}body.phone .vp-quick button{height:28px}body.phone .vp-main{height:38px;font-size:18px}body.phone .vp-dock{gap:4px;padding-top:5px}}
.vp-actions{display:flex;gap:8px;min-width:0}.vp-actions .vp-main{flex:1;min-width:0}
.vp-tip{flex:none;min-width:92px;height:46px;padding:0 12px;font-family:var(--display);font-size:17px;color:#fff;background:linear-gradient(#4a6fe0,#253a8c);border:1px solid #b4c8ff}.vp-tip[hidden]{display:none}
body.phone .vp-tip{min-width:84px;font-size:15px}
@media(max-height:720px){body.phone .vp-tip{height:38px}}
.vp-recent{contain:inline-size;width:100%;justify-content:center}
@media(max-height:660px){body:not(.phone) .vp{gap:4px}body:not(.phone) .vp-title,body:not(.phone) .vp-recent,body:not(.phone) .vp-lim{display:none}body:not(.phone) .vp-pays{padding:3px 8px}body:not(.phone) .vp-pays div{line-height:1.25}body:not(.phone) .vp-slot .pc{--cw:min(66px,calc((100cqw - 40px)/5))}body:not(.phone) .vp-hold{font-size:10px}body:not(.phone) .vp-msg{font-size:14px;min-height:18px}body:not(.phone) .vp-dock{padding:5px 8px;gap:6px}body:not(.phone) .vp-main,body:not(.phone) .vp-tip{height:36px}body:not(.phone) main:has(.vp) #game{min-height:0;padding-block:8px}}
