@font-face{font-family:Sora;src:url(/games-assets/aedaa86e6c486e31d231a062a882f0701193fbbdb953df2f94058ff473a38255/public/trade/fonts/sora-latin-v17.woff2) format('woff2');font-weight:100 800;font-display:swap}
:root{color-scheme:dark;--bg:#0b0c11;--surface:#14161f;--card:#1b1d27;--edge:#282b39;--edge2:#343849;--text:#eef0f7;--muted:#9096ab;--green:#35d59b;--blue:#55c8f2;--red:#ff5d73;--safe-bottom:0px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:13px Sora,-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:1px solid var(--edge2);background:var(--card);font-weight:700;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button:disabled{opacity:.55;cursor:default}button:hover{border-color:#626980}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #8b8fff;outline-offset:3px}a{color:inherit;text-decoration:none}input,select{min-width:0;color:var(--text);background:var(--bg);border:1px solid var(--edge2);outline:0}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{appearance:textfield}svg{height:22px;width:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}h1,h2,h3,p{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}
.site{height:60px;border-bottom:1px solid var(--edge);display:flex;align-items:center;padding:0 22px;gap:32px;background:#0a0b10}.brand{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:800;letter-spacing:.02em}.brand svg{width:78px;height:13px;stroke:none}.site nav{display:flex;gap:28px;color:var(--muted);font-weight:700}.site nav a{min-height:44px;display:flex;align-items:center}.site nav a.active{color:var(--text)}.site-wallet{margin-left:auto;background:#14161f;border:1px solid var(--edge);border-radius:24px;padding:5px 14px;text-align:right}.site-wallet small{font-size:10px;letter-spacing:.06em;display:block;color:var(--muted)}.site-wallet b{font-size:16px;font-weight:800}
.page{max-width:1120px;margin:12px auto 0;padding:0 22px}.game-header{height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px}.identity{display:flex;align-items:center;gap:9px;min-width:0}.game-logo{width:30px;height:30px;object-fit:contain;flex-shrink:0;color:var(--green)}h1{font-size:21px;font-weight:800}.title-help{background:none;border:0;padding:0;min-height:44px;text-align:left;font-weight:800;white-space:nowrap}.title-help span{font-size:12px;letter-spacing:.08em;color:var(--muted);margin-left:5px}.tools{display:flex;align-items:center;gap:7px}.text-tool{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 8px;background:none;border:0;color:var(--muted);font-size:12px}.text-tool:hover{color:var(--text)}.text-tool svg{width:17px;height:17px}.square{width:44px;height:44px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:22px}.game-frame{height:clamp(500px,calc(100dvh - 200px),680px);border:1px solid var(--edge);border-radius:16px;background:var(--surface);overflow:hidden;display:grid;grid-template-rows:48px minmax(0,1fr) 112px}.empty{font-size:11px;color:var(--muted);white-space:nowrap}.chip{height:44px;min-width:52px;border:0;border-radius:7px;padding:0 9px;white-space:nowrap;flex-shrink:0;font-size:11px;color:var(--muted);background:var(--card)}.chip.win{color:var(--green);background:#35d59b18}.chip:hover{background:#242835}.scene{position:relative;display:flex;flex-direction:column;min-height:0;padding:18px 38px 16px;isolation:isolate;background:radial-gradient(ellipse at 50% 25%,#1e314025,transparent 66%),linear-gradient(#ffffff015 1px,transparent 1px);background-image:radial-gradient(ellipse at 50% 20%,#24493c23,transparent 65%),linear-gradient(#ffffff02 1px,transparent 1px),linear-gradient(90deg,#ffffff02 1px,transparent 1px);background-size:auto,32px 32px,32px 32px}.scene-heading{text-align:center;flex-shrink:0;min-height:45px}.eyebrow{font-size:10px;letter-spacing:.06em;color:#7d869c}.round-status{font-size:13px;font-weight:600;color:#b6bdd1;margin-top:7px}.hands{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);align-items:center;max-width:820px;width:100%;margin:0 auto}.hand{--side:var(--blue);position:relative;border-radius:16px;min-width:0;padding:6px 16px 8px;transition:background .5s,box-shadow .5s}.hand.banker{--side:var(--red)}.hand-heading{display:flex;align-items:center;justify-content:space-between;margin:0 auto 8px;max-width:275px}.hand-heading>span{display:flex;align-items:center;gap:8px}.hand-heading b{font-size:17px;color:var(--side)}.score{font-size:30px;line-height:1;font-weight:800;color:var(--muted);min-width:30px;text-align:right}.hand.active .score{color:var(--text)}.cards{display:flex;justify-content:center;align-items:center;gap:10px;height:145px;perspective:850px}.card-slot{height:100%;aspect-ratio:2.25/3.2;min-width:0;position:relative;flex-shrink:1;perspective:800px}.card-inner{width:100%;height:100%;position:relative;transform-style:preserve-3d;transition:transform .72s cubic-bezier(.2,.7,.15,1)}.card-slot.flipped .card-inner{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. */.card-slot.flipped:not(.squeeze-concealed) .card-back{visibility:hidden;transition:visibility 0s linear .36s}.card-face,.card-back{position:absolute;inset:0;border-radius:9px;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}.card-back{display:grid;place-items:center;background:repeating-linear-gradient(45deg,#ffffff03 0 1px,transparent 1px 7px),linear-gradient(135deg,#243347,#172231);border:1px solid #51647c66;box-shadow:inset 0 0 0 5px #17202e,inset 0 0 0 6px #71879c40,0 6px 18px #0004}.banker .card-back{background:repeating-linear-gradient(45deg,#ffffff03 0 1px,transparent 1px 7px),linear-gradient(135deg,#453047,#261e30);box-shadow:inset 0 0 0 5px #29202d,inset 0 0 0 6px #91657740,0 6px 18px #0004;border-color:#8a647066}.card-back>span{border:1px solid #9bb5cb50;border-radius:4px;transform:rotate(45deg);display:grid;place-items:center;width:38px;height:38px;color:#acc1d0;font-size:19px}.card-back>span i{font-style:normal;transform:rotate(-45deg)}.banker .card-back>span{color:#d4adbf;border-color:#c09aaf55}.placeholder{opacity:.8}.card-face{background:linear-gradient(130deg,#fcfcff,#e2e6ee);border:1px solid #ffffffba;color:#152238;transform:rotateY(180deg);box-shadow:0 8px 20px #0005}.card-face.red{color:#d44160}.card-corner{position:absolute;top:6px;left:8px;display:flex;flex-direction:column;align-items:center;font-size:20px;font-weight:800;line-height:1.1}.card-corner small{font-size:15px}.card-corner.bottom{inset:auto 8px 6px auto;transform:rotate(180deg)}.card-symbol{position:absolute;inset:0;display:grid;place-items:center;font-family:Georgia,'Times New Roman',serif;font-size:47px;font-weight:400}.card-slot.dealing{animation:deal .52s cubic-bezier(.15,.65,.2,1) both}.card-slot.revealing .card-inner{filter:drop-shadow(0 0 10px #ffffff15)}@keyframes deal{from{opacity:0;transform:translate3d(45px,-65px,0) rotate(-15deg) scale(.75)}to{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}}.hand-note{height:16px;margin-top:9px;color:#717b90;font-size:10px;text-align:center;line-height:16px}.table-center{height:100%;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:16px;color:#596175}.deck{width:33px;height:44px;border-radius:5px;display:grid;place-items:center;border:1px solid #465449;background:#1a2725;box-shadow:3px -3px #172120,3px -3px 0 1px #34423e,6px -6px #121c1a,6px -6px 0 1px #2a3633;transform:rotate(-10deg)}.deck svg{width:20px;height:20px;color:#719b87}.table-center>span{font-size:10px;font-weight:700;letter-spacing:.1em}.table-center>i{height:25px;width:1px;background:linear-gradient(#41495d60,transparent)}
.road-area{border-top:1px solid #282b3980;padding-top:9px;margin-top:5px;flex-shrink:0}.road-label{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:10px;line-height:14px;margin-bottom:6px}.road-label>span:last-child{margin-left:auto}.road-key{display:flex;align-items:center;gap:5px;font-size:10px;color:#6e778c}.road-key i{width:5px;height:5px;border-radius:50%;margin-left:4px}.blue-dot{background:var(--blue)}.red-dot{background:var(--red)}.green-dot{background:var(--green)}.road{display:grid;grid-template-rows:repeat(3,13px);grid-auto-columns:19px;grid-auto-flow:column;gap:2px;overflow-x:auto;height:43px;padding:1px;scrollbar-width:none}.road::-webkit-scrollbar{display:none}.road-cell{width:13px;height:13px;border-radius:50%;font-size:10px;line-height:13px;text-align:center;background:#ffffff03;color:#444b5b;font-weight:700}.road-cell.player{background:#55c8f218;color:var(--blue)}.road-cell.banker{background:#ff5d7318;color:var(--red)}.road-cell.tie{background:#35d59b18;color:var(--green)}.scene.has-result .scene-heading{opacity:0}.hand.winner{background:radial-gradient(ellipse,#35d59b0c,transparent 80%);box-shadow:inset 0 0 0 1px #35d59b30}.hand.winner .score{color:var(--green)}
.action>span>small{display:none}.footer{height:57px;display:flex;justify-content:space-between;align-items:center;padding:0 2px;gap:10px;color:#71788d;font-size:10px}.footer .text-tool{font-size:10px;padding-right:0;white-space:nowrap}
dialog{padding:0;max-width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);width:520px;border:1px solid var(--edge);border-radius:20px;background:var(--surface);color:var(--text);box-shadow:0 30px 100px #0008;overflow:hidden}dialog::backdrop{background:rgb(5 6 11 / 74%);backdrop-filter:blur(7px)}dialog[open]{display:flex;flex-direction:column}.modal-header{min-height:74px;padding:12px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--edge);gap:12px;flex-shrink:0}.modal-header h2{font-size:20px;font-weight:800;outline:0}.modal-header .square{background:none;border:1px solid #343849;border-radius:10px}.modal-body{overflow:auto;padding:22px;}.section-card{border:1px solid var(--edge);border-radius:14px;background:var(--card);padding:17px;margin-bottom:14px}.section-card h3{font-size:13px;margin-bottom:12px;font-weight:700}.section-card p{font-size:13px;line-height:1.85;color:var(--muted);margin:10px 0 0}.section-card p:first-child{margin-top:0}.section-card:last-child{margin-bottom:0}.section-card strong{color:var(--text)}.action-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.secondary,.primary{min-height:44px;padding:9px 14px;border-radius:10px;font-size:12px}.primary{background:#eef0f7;color:#14161f;border-color:#d3d8ee}.full{width:100%}.muted{color:var(--muted);font-size:11px;line-height:1.7}.form-field{display:flex;flex-direction:column;gap:8px}.form-field>label{font-size:12px}.field{min-height:44px;padding:10px 12px;border-radius:9px;width:100%;font-size:13px}.form-field small{font-size:10px;color:var(--muted);line-height:1.6}.form-status{font-size:11px;color:var(--green);margin-top:12px}.form-status:empty{display:none}details{border-top:1px solid var(--edge);margin-top:16px;padding-top:10px}summary{min-height:44px;cursor:pointer;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);list-style:none}summary:before{content:'›';font-size:18px}details[open]>summary:before{transform:rotate(90deg)}details p{line-height:1.8;color:var(--muted);font-size:12px;margin:4px 0 10px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:23px 12px}.stats small{display:block;color:var(--muted);font-size:11px;margin-bottom:8px}.stats b{display:block;font-size:21px;font-weight:800}.history-list{display:flex;flex-direction:column;gap:8px}.record-row{width:100%;min-height:76px;border-radius:12px;padding:12px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card);border-color:var(--edge)}.record-row>span{display:flex;flex-direction:column;gap:7px;min-width:0}.record-row b{font-size:12px}.record-row small{color:var(--muted);font-size:10px}.record-row>span:last-child{text-align:right;flex-shrink:0}.profit{color:var(--green)!important}.negative{color:#b1b9cc!important}.empty-state{text-align:center;padding:40px 0;color:var(--muted);font-size:12px}.detail-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-bottom:16px}.detail-hands{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:14px}.detail-hand{text-align:center;padding:14px 5px;background:var(--card);border:1px solid var(--edge);border-radius:12px}.detail-hand h3{font-size:12px;margin-bottom:12px;color:var(--blue)}.detail-hand.banker h3{color:var(--red)}.mini-cards{display:flex;justify-content:center;gap:4px;margin-bottom:10px}.mini-card{border-radius:5px;background:#e9edf5;color:#162337;display:grid;place-items:center;min-width:35px;height:48px;font-size:12px;font-weight:800}.mini-card.red{color:#d44160}.detail-hand>strong{font-size:19px}.detail-hand>strong small{font-size:10px;color:var(--muted);margin-left:4px}.help-visual{display:flex;justify-content:center;align-items:center;gap:24px;margin:5px 0 22px}.help-hand{display:flex;align-items:center;gap:7px}.help-hand>strong{font-size:35px;margin-left:7px}.help-visual>span{color:var(--muted);font-size:10px}.help-visual .mini-card{height:64px;min-width:44px;font-size:18px}.radio-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.radio-card{border:1px solid var(--edge2);border-radius:9px;min-height:48px;display:flex;gap:8px;align-items:center;justify-content:center;font-size:12px}.radio-card:has(input:checked){border-color:var(--green);background:#35d59b12}.radio-card input,.round-options input{accent-color:var(--green)}.form-title{font-size:12px;margin:0 0 12px}.form-title:not(:first-child){margin-top:20px}.round-options{display:flex;gap:6px;flex-wrap:wrap}.round-option{min-width:55px;min-height:44px;flex:1;display:flex;align-items:center;justify-content:center;gap:4px;border:1px solid var(--edge2);border-radius:8px;font-size:11px}.round-option:has(input:checked){border-color:#d1d7ea;background:#343849}.round-option input{width:12px;margin:0}.stop-rule{display:flex;align-items:center;gap:8px;min-height:52px;font-size:12px;margin-top:10px}.stop-rule>input{width:16px;height:16px;accent-color:var(--green)}.stop-rule>span:first-of-type{flex:1}.small-money{display:flex;align-items:center;gap:5px;color:var(--muted);width:110px}.small-money input{min-height:44px;padding:8px;width:88px;border-radius:8px;text-align:right}.strategy{border:0;padding:0;margin:16px 0}.strategy legend{font-size:12px;font-weight:700;margin-bottom:8px}.strategy-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;min-height:44px}.strategy-row label{display:flex;align-items:center;gap:5px;min-height:44px}.strategy-row input[type=number]{width:66px;height:44px;border-radius:8px;padding:6px}.strategy-row input[type=radio]{accent-color:var(--green)}.auto-summary{margin:16px 0 12px;color:var(--muted);font-size:11px;line-height:1.7}.auto-summary b{color:var(--text)}.toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);border:1px solid var(--edge2);padding:12px 18px;border-radius:11px;background:#242936f5;color:var(--text);z-index:30;max-width:calc(100vw - 28px);font-size:12px;text-align:center;box-shadow:0 8px 30px #0006;pointer-events:none}
.lobby{max-width:1120px;margin:50px auto}.lobby-intro h2{font-size:30px;margin:9px 0 14px}.lobby-intro p{color:var(--muted)}.game-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:28px}.game-card{padding:14px;border:1px solid var(--edge);border-radius:16px;background:var(--surface);text-align:left;color:var(--text);min-width:0}.game-card h3{font-size:16px;margin:15px 0 7px}.game-card>small{font-size:10px;color:var(--muted);letter-spacing:.1em}.lobby-art{height:160px;display:grid;place-items:center;border-radius:11px;background:radial-gradient(ellipse,#35d59b22,transparent),#171c24;font-size:70px;color:var(--green)}.dice-art{color:var(--blue);background:radial-gradient(ellipse,#55c8f222,transparent),#171c24}.balloon-art{color:var(--red);background:radial-gradient(ellipse,#ff5d7322,transparent),#171c24}.baccarat-art svg{height:90px;width:90px}.game-card>span{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--green);margin-top:18px}.baccarat-card{border-color:#35d59b60}.baccarat-card:hover{border-color:var(--green)}#reviewTools{position:fixed;right:8px;bottom:5px;z-index:35;display:flex;align-items:center;gap:6px;padding:6px;background:#1b1d27;border:1px solid var(--edge2);border-radius:8px;font-size:10px}#reviewTools select{height:30px;border-radius:5px;margin-left:8px}#reviewTools button{height:32px;border-radius:5px;font-size:10px}
@media(min-width:761px) and (max-width:1180px){.lobby{margin-left:22px;margin-right:22px}.scene{padding-left:28px;padding-right:28px}}
@media(min-width:761px) and (max-width:940px){.hands{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr)}.hand{padding-left:6px;padding-right:6px}.cards{height:132px;gap:7px}.game-title{gap:5px}.title-help span{font-size:10px}.scene{padding-left:24px;padding-right:24px}}
@media(max-width:760px){:root{--safe-bottom:max(34px,env(safe-area-inset-bottom))}.site{display:none}.page{margin:0;padding:0}.game-header{height:58px;padding:0 8px;gap:5px}.identity{gap:4px}h1{font-size:15px}.title-help span,.game-logo,.desktop-tool{display:none}.tools{gap:2px}.square{border-radius:10px}.square svg{width:19px;height:19px}.game-frame{height:calc(100dvh - 102px - var(--safe-bottom));min-height:calc(490px - var(--safe-bottom));border-radius:0;border-left:0;border-right:0;grid-template-rows:44px minmax(0,1fr) 142px}.chip{font-size:10px;min-width:48px}.scene{padding:12px 14px 10px;background-size:auto,24px 24px,24px 24px}.scene-heading{min-height:44px}.eyebrow{font-size:10px}.round-status{font-size:11px;margin-top:6px}.hands{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);flex:1;gap:5px}.hand{padding:4px 0 5px;border-radius:11px}.hand-heading{max-width:140px;margin-bottom:10px;justify-content:space-between}.hand-heading>span{gap:4px}.hand-heading b{font-size:15px}.score{font-size:26px;min-width:20px}.cards{height:112px;gap:5px}.card-face,.card-back{border-radius:7px}.card-corner{font-size:17px;top:5px;left:6px}.card-corner small{font-size:12px}.card-corner.bottom{inset:auto 6px 5px auto}.card-symbol{font-size:35px}.card-back>span{width:26px;height:26px;font-size:14px}.table-center{gap:10px}.deck{height:27px;width:21px;box-shadow:2px -2px #172120,2px -2px 0 1px #34423e}.deck svg{height:15px;width:15px}.table-center>span{font-size:10px}.table-center>i{height:16px}.hand-note{font-size:10px;height:14px;margin-top:8px;line-height:14px}.road-area{padding-top:7px;margin-top:6px}.road-label{font-size:10px;gap:6px;margin-bottom:5px}.road-key{font-size:10px}.road{grid-auto-columns:17px;grid-template-rows:repeat(3,12px);height:40px}.road-cell{height:12px;width:12px;line-height:12px;font-size:10px}.footer{height:44px;box-sizing:content-box;padding:0 12px var(--safe-bottom);font-size:10px}.footer .text-tool{font-size:10px;padding:0;min-height:44px}.modal-header{min-height:66px;padding:10px 18px}.modal-header h2{font-size:20px}.modal-body{padding:18px;padding-bottom:calc(18px + env(safe-area-inset-bottom))}.section-card{padding:15px}.section-card p{font-size:12px}.stats b{font-size:18px}.stats small{font-size:10px}.round-options{gap:5px}.round-option{min-width:62px}.record-row{padding:10px}.record-row>span:first-child small{font-size:10px}.detail-meta{font-size:10px}.mini-card{min-width:30px;height:42px;font-size:11px}.lobby{margin:30px 16px}.lobby-intro h2{font-size:25px}.game-grid{grid-template-columns:1fr 1fr;gap:12px}.lobby-art{height:110px;font-size:52px}.baccarat-art svg{width:68px;height:68px}.game-card{padding:11px}.game-card h3{font-size:14px}.game-card>small{font-size:9px}.game-card>span{font-size:10px;margin-top:12px}#reviewTools{opacity:.85;font-size:8px;max-width:calc(100vw - 12px)}#reviewTools select{font-size:9px;width:110px}}
@media(max-width:760px) and (max-height:600px){.scene{padding-top:8px;padding-bottom:7px}.scene-heading{min-height:38px}.round-status{margin-top:4px;font-size:10px}.cards{height:87px;gap:4px}.hand-heading{margin-bottom:6px}.hand-heading b{font-size:13px}.score{font-size:23px}.hand-note{margin-top:5px;font-size:10px}.card-corner{font-size:13px;left:4px;top:4px}.card-corner small{font-size:10px}.card-corner.bottom{inset:auto 4px 4px auto}.card-symbol{font-size:28px}.card-back>span{width:21px;height:21px;font-size:11px}.road-area{padding-top:5px;margin-top:2px}.road{height:30px;grid-template-rows:repeat(3,9px);gap:1px;grid-auto-columns:14px}.road-cell{width:9px;height:9px;line-height:9px;font-size:10px}.road-label{font-size:10px;margin-bottom:3px;line-height:11px}.hand-heading{max-width:117px}.scene .card-slot{max-width:62px}.hands{gap:3px}.road-key{gap:3px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

@media(max-width:760px){.game-frame{grid-template-rows:44px minmax(0,1fr) 152px}.cards:has(.card-slot:nth-child(3)) .card-slot{flex:0 0 73px;width:73px;aspect-ratio:auto}.cards:has(.card-slot:nth-child(3)) .card-slot+.card-slot{margin-left:-35px}.cards:has(.card-slot:nth-child(3)){gap:0}}
@media(max-width:350px){.cards{height:100px}.cards:has(.card-slot:nth-child(3)) .card-slot{flex-basis:64px;width:64px}.cards:has(.card-slot:nth-child(3)) .card-slot+.card-slot{margin-left:-32px}.help-visual{gap:12px}.help-hand{gap:4px}.help-hand>strong{font-size:29px;margin-left:4px}.help-visual .mini-card{min-width:36px;height:52px;font-size:15px}}
@media(max-width:760px) and (max-height:600px){.cards{height:87px}.cards:has(.card-slot:nth-child(3)) .card-slot{flex-basis:58px;width:58px}.cards:has(.card-slot:nth-child(3)) .card-slot+.card-slot{margin-left:-25px}}

@media(min-width:500px) and (max-width:760px){.cards{height:160px;gap:9px}.hand-heading{max-width:220px}.hand-heading b{font-size:17px}.score{font-size:32px}.cards:has(.card-slot:nth-child(3)) .card-slot{flex-basis:100px;width:100px}.cards:has(.card-slot:nth-child(3)) .card-slot+.card-slot{margin-left:-40px}}


.hand.winner{background:radial-gradient(ellipse,color-mix(in srgb,var(--side) 7%,transparent),transparent 80%);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--side) 35%,transparent)}.hand.winner .score{color:var(--side)}


.game-frame{grid-template-columns:minmax(0,1fr)}.scene{min-width:0;width:100%}

@media(max-width:760px){.game-frame{min-height:410px}}
@media(max-width:760px) and (max-height:600px){.scene-heading{min-height:32px}.hand-note{height:12px;line-height:12px;margin-top:4px}}

.lobby-art svg{height:85px;width:85px;stroke-width:1.4}@media(max-width:760px){.lobby-art svg{height:65px;width:65px}}
@media(max-width:760px){.game-frame{grid-template-rows:44px minmax(0,1fr) 158px}}
.acct button{min-height:44px;border-radius:10px;padding:0 12px}

/* Same sweep and lifetime as the Plinko wager feedback. */







/* A short exit overlaps the existing first-card preparation; no round delay. */
.retired-card{position:absolute;z-index:4;perspective:800px;pointer-events:none;animation:table-clear .18s ease-in both}
.retired-card.flipped .card-inner{transform:rotateY(180deg)}.retired-card.flipped .card-back{visibility:hidden}
@keyframes table-clear{to{opacity:0;transform:translate3d(0,-24px,0) scale(.92)}}
.scene[data-selection=player] .player .hand-note,.scene[data-selection=banker] .banker .hand-note{color:var(--side);font-weight:800}
.scene[data-selection=tie] .table-center>span{font-size:0}
.scene[data-selection=tie] .table-center>span::after{content:'已押和';font-size:10px;color:var(--green);white-space:nowrap}






@media(prefers-reduced-motion:reduce){.retired-card{display:none}}

/* Manual card reveal uses the existing table shell. */
.scene.squeeze-active .hand.winner{background:transparent;box-shadow:none;animation:none}

.scene.squeeze-active .round-status{visibility:hidden}
.hand.squeeze-pending .score{font-size:0!important}
.hand.squeeze-pending .score:after{content:'?';font-size:36px;color:var(--muted)}
.hand.squeeze-pending .hand-note{visibility:hidden}
.card-slot.squeeze-concealed .card-inner{transform:none!important}
.card-slot.squeeze-concealed .card-face{visibility:hidden}
.reveal-focus{--side:var(--red);position:absolute;z-index:8;left:50%;top:48%;transform:translate(-50%,-50%);width:310px;height:min(296px,calc(100% - 12px));padding:14px 22px 13px;display:flex;align-items:center;flex-direction:column;gap:10px;border:1px solid #444758;border-radius:16px;background:radial-gradient(ellipse at 50% 30%,#ff5d730b,transparent 70%),#14161ffa;box-shadow:0 20px 70px #000b,0 0 0 1000px #090b104d;overflow:hidden;animation:focus-arrive .17s ease-out}
.reveal-focus.player{--side:var(--blue);background:radial-gradient(ellipse at 50% 30%,#55c8f20d,transparent 70%),#14161ffa}
.reveal-heading{display:flex;align-items:center;justify-content:space-between;width:100%;flex-shrink:0;line-height:16px}
.reveal-heading>span{font-size:13px;font-weight:800;color:var(--side);display:flex;align-items:center;gap:9px}
.reveal-heading small{font-size:10px;color:var(--muted);font-weight:500}
.reveal-heading>i{width:5px;height:5px;border-radius:50%;background:var(--side);box-shadow:0 0 10px color-mix(in srgb,var(--side),transparent 50%)}
.peel-card{--cut:10px;position:relative;min-height:60px;aspect-ratio:12/17;height:100%;max-height:180px;flex:1;min-width:44px;padding:0;border:0;border-radius:9px;background:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;perspective:700px;box-shadow:0 10px 25px #0006}
.peel-card:hover{border:0}.peel-card:active{cursor:grabbing}.peel-card:focus-visible{outline:2px solid #ffffff70;outline-offset:5px}
.peel-inner{width:100%;height:100%;position:relative;transform:rotate(-3deg);transition:transform .16s ease-out}
.peel-face,.peel-back{position:absolute;inset:0;border-radius:8px;overflow:hidden}
.peel-face .card-face,.peel-back .card-back{position:absolute;inset:0;border-radius:8px;transform:none;backface-visibility:visible;box-shadow:none}
.peel-face .card-corner{font-size:22px}.peel-face .card-symbol{font-size:52px}
.peel-back{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%);transition:clip-path .14s ease-out;filter:drop-shadow(2px 2px 2px #0008)}
.paper-fold{position:absolute;inset:0;width:100%;height:100%;stroke:none;pointer-events:none;filter:drop-shadow(-2px -2px 3px #0005)}
.paper-fold polygon{transition:all .14s ease-out}.dragging .peel-back,.dragging .paper-fold polygon{transition:none}
.corner-grip{position:absolute;right:3px;bottom:4px;width:25px;height:25px;color:#171e31;pointer-events:none;opacity:.9}
.corner-grip svg{width:18px;height:18px;stroke-width:2}
.reveal-instruction{font-size:11px;line-height:18px;color:#c1c7d8;flex-shrink:0;white-space:nowrap}.reveal-instruction span{color:#5d657b;margin:0 5px}
.reveal-budget{width:72px;height:2px;background:#343849;overflow:hidden;border-radius:2px;flex-shrink:0}
.reveal-budget i{display:block;width:100%;height:100%;background:var(--side);transform-origin:left;animation:reveal-budget 7s linear forwards}
.reveal-focus.is-open .peel-back,.reveal-focus.is-open .paper-fold,.reveal-focus.is-open .corner-grip{opacity:0;transition:opacity .275s}
.reveal-focus.is-open .peel-inner{transform:rotate(0);filter:drop-shadow(0 0 13px #ffffff15)}
.reveal-focus.is-open .reveal-instruction{opacity:0}.reveal-focus.is-open .reveal-budget{opacity:0}
@keyframes reveal-budget{to{transform:scaleX(0)}}@keyframes focus-arrive{from{translate:0 4px}to{translate:0 0}}
@media(max-width:760px){.reveal-focus{height:min(260px,calc(100% - 12px));width:240px;max-width:calc(100% - 18px);padding:10px 18px;gap:7px;top:50%;border-radius:14px}.hand.squeeze-pending .score:after{font-size:26px}.peel-card{max-height:162px}.reveal-heading>span{font-size:12px}.reveal-instruction{font-size:10px}.peel-face .card-corner{font-size:19px}.peel-face .card-symbol{font-size:44px}}
@media(max-height:620px) and (max-width:760px){.reveal-focus{height:min(200px,calc(100% - 12px));padding:8px 16px;gap:5px}.reveal-heading{line-height:14px}.reveal-instruction{line-height:14px}.peel-card{max-height:120px}.peel-face .card-corner{font-size:15px}.peel-face .card-symbol{font-size:33px}}
@media(prefers-reduced-motion:reduce){.reveal-focus,.reveal-budget i{animation:none}.peel-inner,.peel-back,.paper-fold polygon{transition:none}}

.reveal-focus.is-open:not([data-method=peel]) .peel-inner{animation:manual-turn .55s ease-in-out both}
.reveal-focus.is-open:not([data-method=peel]) .peel-back{opacity:0;transition:none;animation:hide-back .275s step-end both}
@keyframes manual-turn{0%{transform:rotate(-3deg) rotateY(0)}49%{transform:rotateY(90deg)}50%{transform:rotateY(-90deg)}100%{transform:rotateY(0)}}
@keyframes hide-back{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){.reveal-focus.is-open:not([data-method=peel]) .peel-inner,.reveal-focus.is-open:not([data-method=peel]) .peel-back{animation:none}}

.form-field{display:flex;flex-direction:column;gap:8px}.form-field .action-row{margin-top:4px}

/* Mobile wager entry above the full-width game actions. */




/* Fairness-only field/action rhythm and explicit receipt tools. */
#modal[data-fairness="settings"] .section-card,#modal[data-fairness="settings"] .card,#modal[data-fairness="settings"] .info-card{margin-bottom:14px}#modal[data-fairness="settings"] .form-field,#modal[data-fairness="settings"] .seed-field,#modal[data-fairness="settings"] .fair-field{display:block;margin:0}
#modal[data-fairness="settings"] label{display:block;font-size:10px;font-weight:700;color:#9096ab;line-height:1.5;margin:0 0 8px}#modal[data-fairness="settings"] input[maxlength]{display:block;width:100%;min-width:0;height:44px;min-height:44px;padding:0 12px;font-size:13px}
#modal[data-fairness="settings"] .action-row,#modal[data-fairness="settings"] .fair-buttons,#modal[data-fairness="detail"] .action-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}#modal[data-fairness="settings"] .primary,#modal[data-fairness="detail"] .primary{background:#eef0f7;color:#14161f}
#modal[data-fairness="settings"] .form-field>small,#modal[data-fairness="settings"] .seed-field>small,#modal[data-fairness="settings"] .fair-field>small{display:block;margin-top:8px;font-size:11px;line-height:1.7;color:#9096ab}#modal[data-fairness="settings"] button,#modal[data-fairness="detail"] button{min-height:44px;font-size:12px}#modal[data-fairness="settings"] p:empty{display:none}
#modal .receipt-export{margin-top:12px;overflow-wrap:anywhere}#modal .receipt-export p{font-size:12px;line-height:1.8;color:#9096ab;margin:0}#modal .receipt-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}#modal .receipt-download,#modal .receipt-copy{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;border:1px solid #343849;border-radius:10px;background:#1b1d27;color:#eef0f7;font:700 12px Sora,sans-serif;text-decoration:none}#modal .receipt-export textarea{display:block;width:100%;max-width:100%;min-height:140px;margin-top:12px;padding:12px;border:1px solid #343849;border-radius:9px;background:#0b0c11;color:#eef0f7;font:12px monospace;user-select:text}
#modal[data-fairness="settings"] button,#modal[data-fairness="detail"] button{border-radius:10px;font-weight:700;padding:9px 14px}#modal[data-fairness="settings"] .section-card,#modal[data-fairness="settings"] .card,#modal[data-fairness="settings"] .info-card{padding:17px}#modal[data-fairness="settings"] p{font-size:13px;line-height:1.8}@media(max-width:760px){#modal[data-fairness="settings"] .section-card,#modal[data-fairness="settings"] .card,#modal[data-fairness="settings"] .info-card{padding:15px}}

/* HEADER-BALANCE-INT-01：窄屏顶栏余额只显示整数，截断不进位（setHeaderBalance，见 public/trade/wallet-connect.js）。 */
.hb-narrow{display:none}
@media(max-width:760px){.mobile-balance .hb-wide{display:none}.mobile-balance .hb-narrow{display:inline}}

@media(max-width:760px){.text-tool[data-modal="limits"]{min-width:44px;min-height:44px}}

/* GAMES-MOBILE-ONE-SCREEN-01: a portrait phone shows the whole game in one visual viewport; short landscape keeps its earlier
   scrolling layout. This shell (also used by Guess Bull and Video Poker) makes the page a flex column of the visual viewport
   height, so status lines above the game take their own height out of the frame. Header, recent row and controls keep their
   size. Baccarat's hands area is a size container: cards shrink with what is left, never larger than the sizes above, and
   their corners, symbol and three-card overlap follow the card height. The frame floor keeps 48px cards; under it the page
   scrolls and nothing is cut. */
@supports(container-type:size){
@media(max-width:760px) and (orientation:portrait){
 body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
 body>.page{flex:1 0 auto;display:flex;flex-direction:column;width:100%}
 .page>.game-frame{flex:1 0 auto;height:auto;min-height:398px}
 .hands{container-type:size;--bac-fit:calc(100cqh - 67px)}
 .hands .cards{--bac-cards:max(48px,min(112px,var(--bac-fit)));height:var(--bac-cards)}
 .hands .cards:has(.card-slot:nth-child(3)) .card-slot{flex-basis:min(73px,calc(var(--bac-cards)*.652));width:min(73px,calc(var(--bac-cards)*.652))}
 .hands .cards:has(.card-slot:nth-child(3)) .card-slot+.card-slot{margin-left:max(-35px,calc(var(--bac-cards)*-.3125),calc(22px - var(--bac-cards)*.652))}
/* GAMES-WIN-LOSS-FEEDBACK-01: with the 10px floor the corner rank no longer shrinks with small cards, so a three-card fan never lets the next
   card start before the widest rank 「10」 ends (corner left + 15px + 1px); larger cards keep the original overlap. */
 .hands .card-corner{font-size:max(10px,min(17px,calc(var(--bac-cards)*.152)))}
 .hands .card-corner small{font-size:max(10px,min(12px,calc(var(--bac-cards)*.107)))}
 .hands .card-symbol{font-size:min(35px,calc(var(--bac-cards)*.322))}
 .hands .card-back>span{width:min(26px,calc(var(--bac-cards)*.241));height:min(26px,calc(var(--bac-cards)*.241));font-size:min(14px,calc(var(--bac-cards)*.126))}
}
@media(max-width:350px) and (orientation:portrait){
 .hands .cards{--bac-cards:max(48px,min(100px,var(--bac-fit)))}
 .hands .cards:has(.card-slot:nth-child(3)) .card-slot{flex-basis:min(64px,calc(var(--bac-cards)*.64));width:min(64px,calc(var(--bac-cards)*.64))}
 .hands .cards:has(.card-slot:nth-child(3)) .card-slot+.card-slot{margin-left:max(-32px,calc(var(--bac-cards)*-.32),calc(22px - var(--bac-cards)*.64))}
}
@media(max-width:760px) and (orientation:portrait) and (max-height:600px){
 .hands{--bac-fit:calc(100cqh - 54px)}
 .hands .cards{--bac-cards:max(48px,min(87px,var(--bac-fit)))}
 .hands .cards:has(.card-slot:nth-child(3)) .card-slot{flex-basis:min(58px,calc(var(--bac-cards)*.667));width:min(58px,calc(var(--bac-cards)*.667))}
 .hands .cards:has(.card-slot:nth-child(3)) .card-slot+.card-slot{margin-left:max(-25px,calc(var(--bac-cards)*-.287),calc(20px - var(--bac-cards)*.667))}
 .hands .card-corner{font-size:max(10px,min(13px,calc(var(--bac-cards)*.152)))}
 .hands .card-corner small{font-size:10px}
 .hands .card-symbol{font-size:min(28px,calc(var(--bac-cards)*.322))}
 .hands .card-back>span{width:min(21px,calc(var(--bac-cards)*.241));height:min(21px,calc(var(--bac-cards)*.241));font-size:min(11px,calc(var(--bac-cards)*.126))}
}
}
/* GAMES-GUEST-DEMO-01 amendment C: the guest login button sits right after the footer note. */
.guest-login{margin-right:auto}
/* GAMES-WIN-LOSS-FEEDBACK-01 (DESIGN.md 触控区怎么量): the sound credit links in the help dialog take a 44px tap. */
dialog details a[href]{display:inline-block;min-width:44px;min-height:44px;line-height:44px;text-align:center}

/* BYTEWIN-EN-GAME-POLISH-01: only the secondary scene heading yields to the mobile result bar. */
@media(max-width:760px){.scene:has(.fx-card.on) .scene-heading{visibility:hidden}}

/* BYTEWIN-EN-GAME-POLISH-01: the bead road's short-phone cells still fit Chinese glyphs.
   The scene may take the normal page-scroll fallback; shrinking the cells reintroduces overlap. */
@media(max-width:760px) and (max-height:600px){
 .road{grid-template-rows:repeat(3,13px);grid-auto-columns:17px;gap:1px;height:43px}
 .road-cell{width:12px;height:12px;line-height:12px}
}
