/* Central Video Poker table only. Existing Baccarat shell/controls/dialogs are unchanged. */
[hidden]{display:none!important}.poker-scene{position:relative;display:flex;flex-direction:column;min-height:0;padding:18px 24px 16px;background:radial-gradient(ellipse at 65% 50%,#35d59b0d,transparent 65%),linear-gradient(#ffffff02 1px,transparent 1px),linear-gradient(90deg,#ffffff02 1px,transparent 1px);background-size:auto,32px 32px,32px 32px}.scene-heading{min-height:48px;text-align:center}.poker-table{display:grid;grid-template-columns:190px minmax(0,1fr);gap:28px;align-items:center;flex:1;min-height:0}.paytable{border:1px solid #34384988;border-radius:12px;padding:12px 10px;background:#10131a66}.paytable h2{color:#9096ab;font-size:10px;font-weight:600;letter-spacing:.1em;padding:0 7px 8px}.pay-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:24px;padding:3px 7px;font-size:11px;border-radius:5px;color:#9096ab}.pay-row b{font-size:12px;color:#d1d8e4}.pay-row:first-child b{color:#eecb7a}.pay-row.active{color:#88dfb9;background:#35d59b18;box-shadow:inset 0 0 0 1px #35d59b33}.pay-row.active b{color:#9aefc8}.poker-hand{position:relative;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:22px}.poker-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;width:100%;max-width:620px;perspective:900px}.poker-slot{position:relative;min-width:0;width:100%;padding:0;aspect-ratio:160/228;border:0;border-radius:10px;background:transparent;perspective:800px;overflow:visible;transition:translate .26s cubic-bezier(.2,.7,.2,1);isolation:isolate}.poker-slot:disabled{opacity:1;cursor:default}.poker-slot[aria-pressed=true]{translate:0 -14px}.card-rotation{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.2,.7,.2,1)}.poker-slot.open .card-rotation{transform:rotateY(180deg)}/* WebKit can paint a turned-away back's own-layer children through the face; hide the back once the turn passes edge-on. */.poker-slot.open .card-back{visibility:hidden;transition:visibility 0s linear .275s}.card-back,.card-face{position:absolute;inset:0;border-radius:9px;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;box-shadow:0 8px 20px #0005}.card-back{background:url('/games-assets/aedaa86e6c486e31d231a062a882f0701193fbbdb953df2f94058ff473a38255/public/video-poker/card-back.svg') center/100% 100%;border:1px solid #5f968277;box-shadow:inset 0 0 0 4px #1a322d,inset 0 0 0 5px #6caf9145,0 8px 20px #0005}.card-face{transform:rotateY(180deg);background:linear-gradient(130deg,#fcfcff,#e2e6ee);border:1px solid #ffffffba;color:#152238}.card-face.red{color:#d44160}.card-corner{position:absolute;left:8px;top:7px;display:flex;align-items:center;flex-direction:column;font-size:22px;font-weight:800;line-height:1.05}.card-corner small{font-size:14px}.card-corner.bottom{inset:auto 8px 7px auto;transform:rotate(180deg)}.card-symbol{position:absolute;inset:0;display:grid;place-items:center;font:48px Georgia,serif}.card-face .watermark{position:absolute;bottom:20px;width:100%;text-align:center;font-size:5px;letter-spacing:.2em;color:#8c95a344}.hold-tag{position:absolute;bottom:-14px;left:50%;translate:-50% 0;border:1px solid #414858;border-radius:6px;padding:4px 10px;font-size:10px;white-space:nowrap;background:#1b1d27;color:#9da8b9;transition:background .2s;color:#b6bfce;z-index:2;pointer-events:none}.poker-slot[aria-pressed=true] .card-face{box-shadow:0 0 0 2px #86dfb8,0 0 24px #35d59b22,0 8px 20px #0005}.poker-slot[aria-pressed=true] .hold-tag{background:#b5efd1;color:#123526;border-color:#c4ffdf;font-weight:800}.poker-slot.empty{opacity:.65}.poker-slot.arriving{animation:poker-deal .48s cubic-bezier(.15,.65,.2,1) both}.poker-slot.discarding{animation:poker-discard .4s ease-in both}.poker-slot.static .card-rotation{transition:none!important}.selection{font-size:12px;color:#929db3;min-height:18px;text-align:center}.selection b{color:#9be5c3}.hand-result{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;min-height:48px}.hand-result b{font-size:16px;color:#e8edf6}.draw-progress{width:80px;height:2px;background:#343849;border-radius:2px;overflow:hidden;opacity:0}.draw-progress span{display:block;height:100%;width:100%;background:#7bcca9;transform-origin:left}.poker-scene[data-working=true] .draw-progress{opacity:1}.poker-scene[data-working=true] .draw-progress span{animation:draw-progress 1.8s ease-in-out infinite}.mobile-pay{display:none}.game-header .text-tool{min-width:44px}.game-header .title-help{min-height:44px}.detail-line{display:flex;justify-content:space-between;gap:16px;padding:9px 0;font-size:12px}.detail-line span{color:#9096ab}.mini-cards{display:flex;justify-content:center;gap:8px;margin:16px 0}.radio-card,.round-option{min-height:44px}.more-options>summary{min-height:44px;display:flex;align-items:center}.muted{line-height:1.8}.help-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 20px}.help-step{padding:12px 10px;border:1px solid var(--edge2);border-radius:10px;background:var(--card);font-size:11px;line-height:1.7}.help-step b{display:block;color:#99e1bf;font-size:15px;margin-bottom:5px}.pay-modal .pay-row{min-height:34px}.modal-body .pay-row{font-size:12px}.section-card{line-height:1.8}.strategy-note{padding:12px;border:1px solid #343849;border-radius:10px;color:#a7cbb8;font-size:11px;line-height:1.8;margin-bottom:16px}.auto-summary{line-height:1.8}#away{min-height:80dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:22px}#away img{width:80px;height:80px}#away h1{font-size:24px}#away p{color:#9096ab;text-align:center;padding:0 20px;line-height:1.8}#away .primary{min-height:48px;padding:0 28px}#away a{color:#a4a7ff;min-height:44px;display:flex;align-items:center}.section-card p{margin:8px 0}.form-title{font-size:13px}
@keyframes poker-deal{0%{opacity:0;transform:translate(28px,-20px) rotate(-6deg) scale(.96)}75%{opacity:1;transform:translate(0,1px) rotate(.4deg)}100%{transform:none;opacity:1}}@keyframes poker-discard{to{opacity:0;transform:translateY(-60px) rotate(7deg) scale(.9)}}@keyframes draw-progress{0%,100%{transform:scaleX(.15)}50%{transform:scaleX(1)}}
@media(max-width:1000px) and (min-width:761px){.poker-table{grid-template-columns:158px 1fr;gap:20px}.card-corner{font-size:18px;left:6px;top:6px}.card-symbol{font-size:36px}.hold-tag{padding:4px 7px}.poker-scene{padding:14px 18px}.pay-row{font-size:10px}.pay-row b{font-size:11px}}
@media(max-width:760px){.poker-frame{height:calc(100dvh - 100px);min-height:610px;grid-template-rows:44px minmax(0,1fr) 158px}.poker-scene{padding:10px 14px 12px;background-size:auto,24px 24px,24px 24px}.scene-heading{min-height:44px}.poker-table{display:flex;justify-content:center}.paytable{display:none}.poker-hand{gap:15px;width:100%}.mobile-pay{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:10px;color:#8996ab;margin-bottom:5px}.mobile-pay .text-tool{font-size:11px;padding-right:0}.mobile-pay svg{width:13px;height:13px}.poker-cards{--cw:min(90px,calc((100vw - 86px)/3));display:grid;grid-template-columns:repeat(6,calc((var(--cw) - 12px)/2));grid-template-rows:repeat(2,calc(var(--cw)*1.425));column-gap:12px;row-gap:34px;justify-content:center;width:100%;padding-bottom:14px}.poker-slot{width:var(--cw);grid-column:var(--col)/span 2;grid-row:var(--row)}.poker-slot[aria-pressed=true]{translate:0 -8px}.card-corner{font-size:21px;left:6px;top:6px}.card-corner small{font-size:12px}.card-corner.bottom{inset:auto 6px 6px auto}.card-symbol{font-size:42px}.card-face .watermark{font-size:4px;bottom:16px}.hold-tag{font-size:10px;bottom:-13px;padding:4px 8px}.selection{font-size:11px;min-height:16px}.hand-result{min-height:35px;gap:6px}.hand-result b{font-size:14px}.draw-progress{display:none}.help-step{padding:8px;font-size:10px}.help-step b{font-size:12px}}
@media(max-width:760px) and (max-height:740px){.poker-frame{min-height:535px}.poker-cards{--cw:70px;row-gap:27px}.poker-hand{gap:12px}.mobile-pay{margin-bottom:0}.scene-heading{min-height:40px}.card-corner{font-size:17px;left:5px;top:5px}.card-corner small{font-size:10px}.card-corner.bottom{inset:auto 5px 5px auto}.card-symbol{font-size:32px}.card-face .watermark{font-size:3px;bottom:13px}}
@media(max-width:760px) and (max-height:600px){.poker-frame{min-height:464px;grid-template-rows:44px minmax(0,1fr) 158px}.poker-scene{padding:2px 12px 8px}.poker-cards{--cw:53px;row-gap:23px}.scene-heading{min-height:32px}.scene-heading .eyebrow{display:none}.poker-hand{gap:9px}.mobile-pay{height:36px}.card-corner{font-size:14px}.card-corner small{font-size:10px}.card-symbol{font-size:26px}.hold-tag{font-size:10px;padding:3px 5px;bottom:-11px}.hand-result{min-height:27px;gap:5px}.hand-result b{font-size:12px}.selection{font-size:10px}.card-face .watermark{bottom:10px}.game-header h1{font-size:16px}}
@media(max-width:760px) and (orientation:landscape) and (max-height:500px){.poker-frame{min-height:500px}.poker-cards{--cw:60px}.poker-hand{max-width:480px}.mobile-pay{max-width:350px}}
@media(prefers-reduced-motion:reduce){.poker-slot,.card-rotation{transition:none!important}.poker-slot.arriving,.poker-slot.discarding,.draw-progress span{animation:none!important}}

/* Keep the family shell and safe-area footer within the viewport. */
@media(max-width:760px){.poker-frame{height:calc(100dvh - 102px - var(--safe-bottom));min-height:0}}
@media(max-width:760px) and (max-height:740px){
 .poker-scene{padding:8px 12px}.scene-heading{min-height:36px}
 .poker-hand{gap:0}.mobile-pay{min-height:44px;margin:0}
 .poker-cards{--cw:66px;row-gap:18px;padding-bottom:4px}
}
/* GAMES-WIN-LOSS-FEEDBACK-01 (owner 2026-11-20, stop point 5 option A): on short phones the cards are at most 49px wide and
   start 10px lower, so the first row sits under the top 44px of the play area (DESIGN.md 顶部留位) and the page stays one screen. */
@media(max-width:760px) and (max-height:600px){
 .poker-frame{height:calc(100dvh - 102px - var(--safe-bottom));min-height:0;grid-template-rows:44px minmax(0,1fr) 158px}
 .poker-scene{min-height:0}
 .poker-scene{padding:0 12px}.poker-table{flex:1;min-height:0;padding-top:10px}.poker-hand{height:100%;gap:0}
 .scene-heading{position:absolute;bottom:0;left:12px;right:12px;min-height:0;height:16px;z-index:4}.round-status{margin:0;font-size:10px;line-height:16px}
 .mobile-pay{position:absolute;top:0;right:0;width:auto;min-height:44px;height:44px;z-index:3}.mobile-pay>span{display:none}.mobile-pay .text-tool{min-width:44px;min-height:44px}
 .poker-cards{--cw:clamp(44px,calc((100dvh - 392px)/2.85),49px);row-gap:8px;padding-bottom:0}
 .selection{display:none}.hold-tag{bottom:2px;padding:2px 4px;font-size:10px}.hand-result{position:absolute;bottom:0;min-height:16px;z-index:5}
 body[data-phase="settled"] .scene-heading{display:none}
}
@media(max-width:760px) and (orientation:landscape) and (max-height:500px){
 .poker-frame{height:auto;min-height:410px;grid-template-rows:44px minmax(230px,1fr) 158px}
}
@media(max-width:760px) and (max-height:600px){.hand-result{height:16px;gap:4px}.hand-result b{font-size:10px}}



.modal-body .secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;min-height:44px;padding:0 16px}
.modal-body input,.modal-body select{min-height:44px}
.modal-body .receipt-copy,.modal-body .receipt-download{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:1px solid var(--edge2);border-radius:12px;background:var(--card);font-weight:700}

.modal-actions,.receipt-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.history-more{margin-top:8px}

.deal-action[aria-disabled=true]{opacity:.55;cursor:default}

.selection{min-height:48px;display:flex;align-items:center;justify-content:center}
@media(max-width:760px){.selection{min-height:35px}}
@media(max-width:760px) and (max-height:740px) and (min-height:601px){.poker-cards{--cw:60px}}
@media(max-width:760px) and (max-height:600px){.selection{display:none}}

.controls .bet-buttons{position:relative}

/* Auxiliary dialogs share the game-family shell. */
#modal[open]{display:flex;flex-direction:column;max-width:min(520px,calc(100vw - 24px));width:520px;border-radius:20px}.modal-header{min-height:74px;flex-shrink:0}.modal-header .square{min-width:44px;min-height:44px}.modal-body{min-height:0;overflow-y:auto;overflow-wrap:anywhere;padding:22px}.modal-body .section-card{margin-bottom:14px;padding:16px;border:1px solid #282b39;border-radius:12px;background:#1b1d27}.fair-field{display:grid;gap:8px;margin:16px 0 12px}.fair-field input{min-width:0;width:100%;padding:10px;border:1px solid #343849;border-radius:9px;background:#14161f}.wrap-value{overflow-wrap:anywhere}.modal-body .primary{margin-top:12px}.limits-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.limits-grid p{margin:0}.record-row{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:8px}.record-row span{min-width:0}.record-row small{display:block;margin-top:4px}.help-visual{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}.help-visual .mini-card{height:64px;min-width:44px}.help-visual .mini-card.red{outline:2px solid #86dfb8;transform:translateY(-5px)}.modal-body button{max-width:100%}
@media(max-width:760px){.modal-header{min-height:66px}.modal-body{padding:18px;padding-bottom:calc(18px + env(safe-area-inset-bottom))}.limits-grid{gap:12px}}
.modal-body .fair-field + .primary{margin-top:0}
/* VIDEO-POKER-MAX-BET-100-01: royal-cap note under the paytable, in the .pay-row size and colour. */
.pay-cap-note{margin:4px 7px 0;font-size:11px;line-height:1.4;color:#9096ab}

/* GAMES-MOBILE-ONE-SCREEN-01: the Baccarat shell makes a portrait phone page a flex column whose game frame takes its content
   height. Video Poker keeps the earlier viewport-height formula, which fits every portrait height from 500px.
   GAMES-SHARED-AUTO-STATUS-01 amendment C4: as Blackjack (C2), the shared status strip is not taken out of the frame; the page
   moves down and scrolls, so the dealt cards keep their room. */
@supports(container-type:size){
@media(max-width:760px) and (orientation:portrait){
 .page>.poker-frame{flex:none;height:calc(100dvh - 102px - var(--safe-bottom));min-height:0}
}
}
/* BYTEWIN-EN-GAME-POLISH-01: the title and round hint are secondary while the result bar owns this area. */
@media(max-width:760px){.poker-scene:has(.fx-card.on) #eyebrow,.poker-scene:has(.fx-card.on) #roundStatus{visibility:hidden}}
/* On a short phone the result bar keeps its full centred width; its Paytable
   link moves just below it, beside the first card row's unused right edge. */
@media(max-width:760px) and (max-height:600px){.poker-scene:has(.fx-card.on) .mobile-pay{top:34px}.poker-scene:has(.fx-card.on) .mobile-pay .text-tool{width:44px;min-width:44px;padding:0;justify-content:center;font-size:10px}.poker-scene:has(.fx-card.on) .mobile-pay svg{display:none}}
