@font-face{font-family:Sora;src:url(/games-assets/f74f4b0d9751e1205fd3f21f8da0554634e09b0c48c18f3dd66b4f18cb2fc003/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:8px;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}.mode{font-size:10px;font-weight:700;color:#ffc94d;background:#ffc94d10;border:1px solid #775c25;border-radius:6px;padding:4px 7px;white-space:nowrap}.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}.mobile-balance,.mobile-fair{display:none}.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}.recent{display:flex;align-items:center;gap:12px;padding:0 18px;border-bottom:1px solid var(--edge);min-width:0}.recent-label,.empty{font-size:11px;color:var(--muted);white-space:nowrap}.chips{display:flex;align-items:center;gap:6px;flex:1;min-width:0;height:100%;overflow-x:auto;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.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}.record-button{padding-right:0;white-space:nowrap}.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)}.hand-heading small{font-size:9px;color:var(--muted);letter-spacing:.14em}.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)}.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:9px;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:9px;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:8px;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)}.result-banner{position:absolute;left:50%;top:19px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:10px;z-index:3;padding:10px 17px;border:1px solid #35d59b35;border-radius:10px;box-shadow:0 8px 30px #0003;background:#162822f5;white-space:nowrap}.result-banner small{font-size:11px;color:#91b5a7}.result-banner strong{font-size:16px;color:var(--green)}.result-banner>span{font-size:10px;color:#a5c6b9}.result-banner.loss{border-color:var(--edge2);background:#1b1d27f5}.result-banner.loss strong{color:#b3bbcd}.result-banner.even{border-color:#9096ab30;background:#1b1d27f5}.result-banner.even strong{color:var(--text)}.result-banner.loss small,.result-banner.even small,.result-banner.loss>span,.result-banner.even>span{color:var(--muted)}.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)}.scene.celebrate .hand.winner{animation:win-glow 1.8s ease-out}.scene.celebrate:after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,#35d59b15,transparent 70%);animation:win-glow 1.8s ease-out;z-index:-1}@keyframes win-glow{0%{filter:brightness(1.1)}22%{filter:brightness(1.45)}100%{filter:brightness(1)}}.particles{position:absolute;inset:0;overflow:hidden;pointer-events:none}.particles i{position:absolute;width:4px;height:4px;border-radius:1px;background:var(--green);left:50%;top:50%;opacity:0;animation:particle 1.7s cubic-bezier(.1,.6,.25,1) both;transform:rotate(45deg)}@keyframes particle{10%{opacity:.8}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(200deg)}}
.controls{display:flex;align-items:flex-end;justify-content:center;gap:12px;padding:17px 26px 20px;border-top:1px solid var(--edge);background:var(--surface)}.stake-section{width:295px;flex-shrink:0}.label{display:block;font-size:10px;color:var(--muted);font-weight:700;margin-bottom:7px}.label span{font-size:9px;margin-left:5px}.stake-row{display:flex;gap:6px;height:46px}.money-input{display:flex;align-items:center;gap:9px;padding:0 12px;background:var(--card);border:1px solid var(--edge2);border-radius:11px;min-width:0;flex:1}.money-input>span{font-size:16px;color:var(--muted);font-weight:700}.money-input input{background:none;border:0;min-width:0;width:100%;font-size:17px;font-weight:800;height:100%}.stake-row .square{width:44px;height:46px;border-radius:11px}.auto-button{height:66px;width:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:13px;color:var(--muted);font-size:10px;flex-shrink:0}.auto-button svg{width:26px;height:26px}.auto-button.running{color:var(--text);border-color:#66718c}.bet-buttons{display:flex;gap:10px;max-width:475px;flex:1;min-width:0}.action{--dark:#1b718e;--light:#8cdcf8;--base:#44bde7;--ink:#07222c;height:66px;flex:1;min-width:0;border-radius:13px;background:linear-gradient(125deg,var(--light),var(--base));border:1px solid #ffffff50;box-shadow:inset 0 1px 0 #ffffff60,0 3px 0 var(--dark);color:var(--ink);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;transition:filter .15s,transform .12s,box-shadow .12s}.action>span{font-size:12px;font-weight:700}.action>span>small{display:none}.action>b{font-size:20px;font-weight:800;line-height:1.25}.action>b>small{font-size:14px;margin-left:2px}.tie-action{--dark:#0c7958;--light:#58e8b4;--base:#30c692;--ink:#06251b}.banker-action{--dark:#9b314b;--light:#ff8b9b;--base:#ed5476;--ink:#350c17}.action:hover:not(:disabled){filter:brightness(1.07);border-color:#ffffff90}.action:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px 0 #ffffff50,0 1px 0 var(--dark)}.action.chosen{outline:2px solid #ffffff90;outline-offset:3px}.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 25px 90px #0007;overflow:hidden}dialog::backdrop{background:#04060bd9;backdrop-filter:blur(6px)}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}.modal-body{overflow:auto;padding:22px;scrollbar-width:thin;scrollbar-color:#343849 transparent}.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}.preset-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.preset-grid button{min-height:44px;border-radius:9px;font-size:11px}.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}.stake-section{width:270px}.bet-buttons{max-width:440px}.controls{padding-left:20px;padding-right:20px;gap:10px}.scene{padding-left:28px;padding-right:28px}}
@media(min-width:761px) and (max-width:940px){.stake-section{width:220px}.stake-row{gap:5px}.stake-row .square{width:40px}.money-input{padding:0 9px;gap:5px}.money-input input{font-size:16px}.auto-button{width:60px}.controls{gap:9px;padding-left:15px;padding-right:15px}.bet-buttons{gap:7px}.action b{font-size:19px}.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}.mode{font-size:8px;padding:3px 5px}.tools{gap:2px}.square{border-radius:10px}.square svg{width:19px;height:19px}.mobile-balance{display:block;text-align:right;margin-left:auto;line-height:1.3}.mobile-balance small{display:block;color:var(--muted);font-size:8px}.mobile-balance b{font-size:11px;white-space:nowrap}.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}.recent{padding:0 12px;gap:8px}.recent-label{display:none}.chips{gap:5px}.chip{font-size:10px;min-width:48px}.mobile-fair{display:inline-flex;padding:0;font-size:10px}.record-button{font-size:11px}.scene{padding:12px 14px 10px;background-size:auto,24px 24px,24px 24px}.scene-heading{min-height:44px}.eyebrow{font-size:9px}.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}.hand-heading small{font-size:7px;letter-spacing:.08em}.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:8px}.table-center>i{height:16px}.hand-note{font-size:9px;height:14px;margin-top:8px;line-height:14px}.road-area{padding-top:7px;margin-top:6px}.road-label{font-size:9px;gap:6px;margin-bottom:5px}.road-key{font-size:8px}.road{grid-auto-columns:17px;grid-template-rows:repeat(3,12px);height:40px}.road-cell{height:12px;width:12px;line-height:12px;font-size:7px}.result-banner{top:12px;gap:7px;padding:9px 11px;border-radius:8px;min-height:40px}.result-banner small{font-size:10px}.result-banner strong{font-size:13px}.result-banner>span{font-size:8px}.controls{padding:8px 12px 12px;display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:50px 60px;gap:8px}.stake-section{width:auto;min-width:0;grid-column:2;grid-row:1}.label{font-size:8px;line-height:10px;margin:0 0 4px}.label span{font-size:8px}.stake-row{height:36px;gap:5px}.stake-row .square{height:44px;width:44px;align-self:flex-end}.money-input{height:36px;padding:0 9px;gap:6px;border-radius:9px}.money-input input{font-size:17px}.money-input>span{font-size:14px}.auto-button{height:50px;width:52px;grid-row:1;grid-column:1;border-radius:10px;gap:3px;font-size:8px}.auto-button svg{height:21px;width:21px}.bet-buttons{grid-column:1/-1;grid-row:2;max-width:none;gap:8px;align-self:stretch}.action{height:60px;border-radius:12px;gap:4px}.action>span{font-size:11px}.action>b{font-size:20px}.action>b>small{font-size:12px}.footer{height:44px;box-sizing:content-box;padding:0 12px var(--safe-bottom);font-size:8px}.footer .text-tool{font-size:9px;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}.preset-grid{grid-template-columns:repeat(3,1fr)}.preset-grid button{font-size:12px}.round-options{gap:5px}.round-option{min-width:62px}.record-row{padding:10px}.record-row>span:first-child small{font-size:9px}.detail-meta{font-size:9px}.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}.hand-heading small{font-size:6px}.score{font-size:23px}.hand-note{margin-top:5px;font-size:8px}.card-corner{font-size:13px;left:4px;top:4px}.card-corner small{font-size:9px}.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:6px}.road-label{font-size:8px;margin-bottom:3px;line-height:11px}.result-banner{top:8px;min-height:35px;padding:8px;gap:6px}.result-banner>span{display:none}.hand-heading{max-width:117px}.scene .card-slot{max-width:62px}.hands{gap:3px}.road-key{gap:3px}.controls{padding-left:10px;padding-right:10px}.stake-row{gap:4px}.stake-row .square{width:44px}.money-input{gap:4px;padding:0 7px}.money-input input{font-size:16px}.label{margin-left:2px}}
@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}.controls{grid-template-rows:58px 60px}.auto-button{height:58px}.stake-row,.money-input{height:44px}.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}.hand-heading small{font-size:9px}.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}}

.money-input input{min-height:44px}
.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)}
@media(max-width:760px){.controls{grid-template-rows:60px 60px}.stake-row,.money-input{height:46px}.auto-button{height:60px}}

.game-frame{grid-template-columns:minmax(0,1fr)}.recent,.scene,.controls{min-width:0;width:100%}
@media(min-width:761px) and (max-width:940px){.stake-section{width:248px}.stake-row .square{width:44px}}
@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) 150px}.controls{grid-template-rows:58px 60px}.stake-row,.money-input{height:44px}}
#baccaratStatus{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 12px;color:var(--muted);font-size:12px}#baccaratStatus button{min-height:44px;border-radius:9px;padding:0 10px}.acct button{min-height:44px;border-radius:10px;padding:0 12px}

/* Same sweep and lifetime as the Plinko wager feedback. */
.action[data-bet].wager-profit-active::after{position:absolute;inset:1px;border-radius:inherit;background:linear-gradient(110deg,transparent 35%,#fff9 50%,transparent 65%);content:"";animation:wager-sweep 1s linear infinite;pointer-events:none}
@keyframes wager-sweep{from{background-position:-230px}to{background-position:300px}}
.action[data-bet] .wager-profit{font-size:9px;font-weight:800;line-height:1.1;white-space:normal;text-align:center}
.action[data-bet] .wager-profit[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.action[data-bet].wager-profit-active::after{display:none}.action[data-bet].wager-profit-active{outline:2px solid currentColor;outline-offset:2px}}
.action[data-bet].wager-profit-active{position:relative;overflow:hidden;gap:1px}.action[data-bet].wager-profit-active .wager-profit{display:block}.action[data-bet].wager-profit-active b{font-size:14px}

/* 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)}
@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}
.action.chosen:disabled{opacity:1;outline-color:#ffffffb0}
.result-banner.profit{display:grid;grid-template-columns:auto auto;gap:4px 12px}
.result-banner.profit #resultLabel{grid-column:1/-1;text-align:center}
.result-banner.profit #resultNet{display:block;grid-column:1;grid-row:2;font-size:18px;font-weight:800;color:var(--green)}
.result-banner.profit #resultReturn{grid-column:2;grid-row:2;font-size:11px;font-weight:600;color:#a5c6b9}
@media(max-width:760px){.result-banner.profit{gap:3px 8px;padding:7px 10px}.result-banner.profit #resultNet{font-size:15px}.result-banner.profit #resultReturn{font-size:10px}}
@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.celebrate:after,.scene.squeeze-active .particles{visibility:hidden}
.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. */
@media(max-width:760px){.controls{grid-template-columns:minmax(0,1fr) 52px}.controls .stake-section{grid-column:1;grid-row:1}.controls .stake-row{gap:4px}.controls .money-input{max-width:104px;padding:0 6px;gap:3px}.controls .auto-button{grid-column:2;grid-row:1;width:52px;height:58px}}

@media(max-width:760px){.controls .stake-row .money-input{flex:0 1 104px}.controls .stake-row .square{flex:1;min-width:44px}}

/* 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}}
