.quick-poker{max-width:1050px;margin:auto;padding:clamp(12px,2vw,28px);box-sizing:border-box;background:radial-gradient(ellipse at top,#234859,#0c202c 70%);color:#eff9ff;border:1px solid #426573;border-radius:22px;box-shadow:0 18px 60px #0005}
.qp-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.qp-heading h2{margin:4px 0;font-size:clamp(23px,3vw,36px)}.qp-heading small{font-size:11px;letter-spacing:.12em;color:#9fc4cf}
.qp-wallet{display:grid;gap:5px;text-align:right}.qp-wallet b{font-size:clamp(16px,2vw,24px);white-space:nowrap;font-variant-numeric:tabular-nums}
.qp-pay{width:100%;border-collapse:separate;border-spacing:0 4px;table-layout:fixed}.qp-pay caption{text-align:left;font-size:12px;color:#b0c9d3;padding:0 0 10px}.qp-pay th:first-child{width:48%;text-align:left}.qp-pay td,.qp-pay th{padding:10px 13px;background:#102c39;font-size:clamp(12px,1.2vw,17px);line-height:1.2}.qp-pay td{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}.qp-pay th:first-child{border-radius:8px 0 0 8px}.qp-pay td:last-child{border-radius:0 8px 8px 0}.qp-pay thead th{font-size:11px;color:#9dbac7;background:transparent;letter-spacing:.03em}.qp-pay .qp-hit>*{background:#41e890;color:#07301e}
.qp-outcome{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;min-height:62px;margin:10px 0;color:#c3e0e9;text-align:center}.qp-outcome>b{color:#ffdf67;font-size:24px}.qp-outcome>span{font-size:14px}
.qp-hand{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(6px,1.5vw,20px)}
.qp-card{position:relative;aspect-ratio:2/3;min-width:0;border:3px solid #edf6f8;border-radius:12px;background:linear-gradient(#fff,#dce9ed);color:#112c36;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-family:system-ui;cursor:pointer;box-shadow:0 8px 18px #0004;transition:transform .15s,border-color .15s}
.qp-card:disabled{opacity:1;cursor:default}.qp-card.red{color:#ec2452}.qp-card.held,.qp-card.qp-winning{border-color:#40ed93;box-shadow:0 0 0 2px #40ed9366,0 8px 18px #0004}.qp-card.held{transform:translateY(-5px)}.qp-card:focus-visible{outline:3px solid #ffda62;outline-offset:4px}
.qp-rank{font-size:clamp(26px,4.2vw,68px);font-weight:700;line-height:1}.qp-suit{font-size:clamp(30px,4.6vw,76px);line-height:1}.qp-card-label{position:absolute;bottom:8px;font-size:clamp(8px,.9vw,12px);font-weight:800;letter-spacing:.02em;color:#31566a}.qp-card.held .qp-card-label{color:#0c6f40}
.qp-card.qp-back{border-color:#7395a3;background:repeating-linear-gradient(45deg,#153950 0 8px,#24526a 8px 9px);color:#70a9c2;font-size:clamp(40px,6vw,90px);cursor:default}
.qp-controls{display:flex;align-items:end;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:22px}.qp-controls label{display:grid;gap:6px;font-size:12px;color:#b4d0da}.qp-controls input{max-width:190px;width:100%;height:48px;box-sizing:border-box;border:1px solid #597784;border-radius:10px;background:#081e2b;color:#f4fbff;padding:10px;font:700 18px system-ui}.qp-controls input:disabled{opacity:.6}.qp-controls .btn{min-height:48px}.qp-rules{margin-top:18px;color:#b0ccd7;font-size:13px;line-height:1.5}.qp-rules summary{cursor:pointer}
.gp-play:has(.quick-poker){height:auto;min-height:0}.qp-card{animation:qp-card-arrive .25s ease both}.qp-card:nth-child(2){animation-delay:.03s}.qp-card:nth-child(3){animation-delay:.06s}.qp-card:nth-child(4){animation-delay:.09s}.qp-card:nth-child(5){animation-delay:.12s}@keyframes qp-card-arrive{from{opacity:.2;translate:0 8px}to{opacity:1;translate:0 0}}
@media(max-width:600px){.quick-poker{padding:12px;border-radius:14px}.qp-pay th:first-child{width:45%}.qp-pay td,.qp-pay th{padding:8px 6px;font-size:11px}.qp-pay td:last-child{font-size:10px;white-space:nowrap}.qp-heading{align-items:start}.qp-wallet b{font-size:14px}.qp-card{padding:5px;border-width:2px;border-radius:8px}.qp-card-label{bottom:6px;font-size:7px}.qp-card .qp-rank{font-size:29px}.qp-card .qp-suit{font-size:33px}.qp-outcome{gap:6px;min-height:70px}.qp-controls{display:grid;grid-template-columns:1fr 1fr;align-items:end}.qp-controls label{min-width:0}.qp-controls input{max-width:100%}.qp-controls #qpHistory{grid-column:1/3}.qp-heading h2{font-size:21px}.qp-pay thead th{font-size:10px}}
@media(prefers-reduced-motion:reduce){.qp-card{animation:none;transition:none}}
/* Fit the complete hand and controls; the payout table occupies its own column. */
#gameArt>.tg:has(.quick-poker){container-type:inline-size}
.qp-pay-panel{min-width:0}.qp-pay-panel>summary{font-weight:700;color:#bfd9e3;cursor:pointer;padding:8px 0;min-height:28px;box-sizing:border-box}
.qp-pay-panel[open]>summary{margin-bottom:4px}
#gpPlay:has(.quick-poker) #demoBar:empty{display:none!important}
#gpPlay.fs:has(.quick-poker) #gpStage,#gpPlay.fs:has(.quick-poker) #gpInner{min-height:0}
#gpPlay.fs:has(.quick-poker) #fsBrand{padding:8px 12px;margin:0}
#gpPlay.fs:has(.quick-poker) #fsBrand .fsb-word b{font-size:24px}
#gpPlay.fs:has(.quick-poker) #gameArt{min-height:0;overflow-y:auto;overflow-x:hidden}
#gpPlay.fs:has(.quick-poker) #gameArt.ga-fill>.tg{min-height:0!important;justify-content:center;align-items:center}
#gpPlay.fs:has(.quick-poker) #gameArt.ga-fill>.tg>.quick-poker{width:min(100%,1400px)!important;max-width:1400px!important;flex:0 1 auto!important;margin:0 auto!important;box-sizing:border-box}
@container(min-width:900px){
  .quick-poker{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);grid-template-areas:'head head' 'pay outcome' 'pay hand' 'pay controls' 'rules rules';grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:8px 24px;max-width:1400px;padding:16px 20px}
  .qp-heading{grid-area:head;margin:0 0 6px}.qp-heading h2{font-size:clamp(24px,2vw,34px)}
  .qp-pay-panel{grid-area:pay}.qp-pay-panel>summary{font-size:13px;min-height:22px;padding:2px 0}
  .qp-pay{border-spacing:0 3px}.qp-pay td,.qp-pay th{padding:9px 8px;font-size:13px}.qp-pay caption{font-size:11px;padding-bottom:5px}.qp-pay thead th{font-size:10px}
  .qp-outcome{grid-area:outcome;margin:0;min-height:44px;gap:10px}.qp-outcome>b{font-size:23px}.qp-outcome>span{font-size:13px}
  .qp-hand{grid-area:hand;align-self:center;align-items:center;justify-items:center;gap:9px}
  .qp-card{width:min(100%,17dvh);padding:8px;max-height:28dvh}.qp-rank{font-size:clamp(28px,4.7dvh,58px)}.qp-suit{font-size:clamp(30px,5.4dvh,68px)}
  .qp-card-label{font-size:9px;bottom:7px}
  .qp-controls{grid-area:controls;gap:8px;margin:8px 0 0;align-self:center}.qp-controls input{max-width:160px}.qp-controls .btn{padding:10px 16px;font-size:13px}
  .qp-rules{grid-area:rules;margin:6px 0 0;font-size:12px}
}
@media(max-width:700px){
  #gpPlay.fs:has(.quick-poker){overflow:auto;justify-content:flex-start;padding-top:62px}
  #gpPlay.fs:has(.quick-poker) #gameArt.ga-fill>.tg{justify-content:flex-start!important;flex:0 1 auto!important}
  .quick-poker{padding:12px}.qp-heading{margin-bottom:8px}.qp-outcome{margin:6px 0;min-height:54px}.qp-controls{margin-top:14px}.qp-rules{margin-top:12px}
}
@media(max-height:700px) and (min-width:900px){
  .quick-poker{padding:10px 16px;gap:5px 20px}.qp-heading h2{font-size:24px}.qp-heading small{font-size:10px}.qp-pay td,.qp-pay th{padding:6px 8px;font-size:12px}.qp-pay caption{font-size:10px}.qp-outcome{min-height:36px}.qp-controls .btn,.qp-controls input{min-height:44px;height:44px}.qp-controls{margin-top:4px}
}
