@font-face{font-family:YY9Chinese;src:url("../assets/中文字体.otf") format("opentype");font-display:swap}
:root{color-scheme:dark;font-family:YY9Chinese,system-ui,"PingFang SC","Microsoft YaHei",sans-serif;color:#fff0c4;background:#3e100c}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#b27730,#38100d 75%)}button,select,input{font:inherit}button{position:relative;cursor:pointer;border:3px solid #ffe2a0;color:#fff8d3;background:linear-gradient(#ff6f4b 0%,#d83627 48%,#ae211d 50%,#c82f20 100%);border-radius:18px;min-height:44px;padding:8px 18px;box-shadow:inset 0 3px 1px #fff6,0 6px 0 #751b16,0 8px 15px #0005;text-shadow:0 2px 2px #6c191b;touch-action:manipulation;transition:filter .1s}button:active{filter:brightness(1.14);translate:0 3px;box-shadow:inset 0 3px 1px #fff6,0 2px 0 #751b16}button:disabled{filter:saturate(.35);opacity:.65;cursor:default}button:focus-visible,select:focus-visible{outline:4px solid #fff;outline-offset:4px}#viewport{position:fixed;inset:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden}#stage{position:absolute;left:50%;top:50%;width:1080px;height:2240px;transform-origin:center;flex-shrink:0;overflow:hidden;border:5px solid #e7ba55;border-radius:30px;background:#efbd53 url('../assets/红金云纹背景.jpg') center/100% 100% no-repeat;font-size:30px;box-shadow:0 0 0 5px #951c16,0 0 80px #0008}#top{position:absolute;left:20px;top:24px;width:1040px;height:132px;padding:12px;display:flex;align-items:center;gap:14px;border:2px solid #eb8e50;border-radius:20px;background:linear-gradient(#cd4231,#9f241f);box-shadow:0 7px 0 #79231b,0 12px 15px #82240e44}#top button{font-size:31px;height:100px;min-width:132px}#back{font-size:50px!important;min-width:90px!important;padding:2px}#profile{min-width:0;flex:1;color:#fff0bb;display:flex;align-items:center;gap:12px;text-shadow:0 3px #71150f}#profile-avatar{width:77px;height:77px;object-fit:contain;border:2px solid #f4c257;border-radius:50%;background:#733327}#profile-name{font-size:23px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:470px;opacity:.9}#profile-balance{font-family:Georgia,serif;font-variant-numeric:tabular-nums;font-size:45px;line-height:1.2}#profile-currency{font:21px YY9Chinese,system-ui;margin-left:8px}#brand{position:absolute;left:35px;top:190px;width:1010px;height:200px;display:flex;align-items:center;gap:22px;padding:0 5px}#title-tiles{width:190px;height:150px;position:relative;flex-shrink:0}#title-tiles span{position:absolute;width:103px;height:142px;border:3px solid #c9ad63;border-radius:12px;background:linear-gradient(120deg,#fffbed,#eee6c7);box-shadow:0 9px 0 #236544,0 13px 12px #4f2b1077;display:grid;place-items:center;font:900 88px YY9Chinese,KaiTi,STKaiti,serif;color:#28734e;rotate:-14deg;left:10px;top:5px}#title-tiles span+span{left:76px;top:18px;rotate:11deg;color:#c02c20}h1{margin:0;font:900 106px YY9Chinese,KaiTi,STKaiti,"Songti SC",serif;letter-spacing:-5px;white-space:nowrap;color:#ffed88;-webkit-text-stroke:2px #842511;text-shadow:0 4px #ac3e10,0 8px #b93b12,0 12px 0 #752116,4px 12px 12px #4c160a77}#brand small{display:block;letter-spacing:8px;text-align:center;font-size:23px;font-weight:700;color:#8b2b16;margin-top:14px}#mode{display:none}#cover{display:none}#pyramid{position:absolute;left:32px;top:445px;width:1016px;height:1085px;padding:36px 14px 20px;overflow:visible}#pyramid:before{content:'';position:absolute;inset:-30px -12px -22px;border:4px solid #ce8b2c;border-radius:25px;background:linear-gradient(145deg,#fff2b04d,#f4bd4a22 40%,#8b2f0b20);box-shadow:inset 0 0 0 4px #fff2bc66;pointer-events:none}.row{height:145px;display:flex;align-items:center;justify-content:flex-start;gap:20px;position:relative;z-index:2}.cards{display:flex;gap:10px;align-items:center}.prize{width:176px;flex-shrink:0;text-align:center;color:#6c2118;background:linear-gradient(#ffe795,#f3bb4b);border:3px solid #924821;border-radius:8px 18px 18px 8px;padding:8px 3px 6px;box-shadow:inset 0 2px #fff8,0 4px 0 #b4772c;font-size:32px;position:relative}.prize:before{content:'';position:absolute;left:-15px;top:34%;width:22px;height:22px;rotate:45deg;background:#f9d06d;border-left:3px solid #924821;border-bottom:3px solid #924821}.prize small{display:block;font-size:23px;font-weight:800;line-height:1.1}.prize strong{font-family:Georgia,serif;font-weight:800;display:block;font-size:33px;line-height:1.2;padding-top:5px}.row.cleared .prize{background:linear-gradient(#ff6554,#d21c1a);color:#fff5ba;border-color:#ffe59b;box-shadow:0 0 22px #ffcf53}.row.cleared .prize:before{background:#f4483b;border-color:#ffe59b}.tile{position:relative;width:101px;height:130px;border:3px solid #d8c695;border-radius:10px;background:linear-gradient(115deg,#fffef2 10%,#f8f1d5 60%,#dcd4ab);box-shadow:inset 3px 3px #fff,0 7px 0 #1e6649,0 10px 0 #12452e,0 12px 10px #58391355;display:grid;place-items:center;overflow:visible;touch-action:none;outline:none}.tile:focus-visible{outline:4px solid #fff;outline-offset:5px}.tile-art{width:94%;height:94%;pointer-events:none}.tile canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;border-radius:7px;z-index:2;transition:opacity .12s}.tile.revealed canvas{opacity:0;pointer-events:none}.tile.revealed .tile-art{animation:tile-pop .2s ease-out}.ink-circle{position:absolute;left:-15%;top:-12%;width:130%;height:124%;z-index:4;overflow:visible;pointer-events:none;filter:drop-shadow(0 1px 0 #7a0d0b44)}.ink-reveal{stroke-dasharray:1;stroke-dashoffset:1;animation:ink-draw .43s cubic-bezier(.2,.6,.45,1) forwards}.tile:not(.matched)>.ink-circle{display:none}.row.cleared{isolation:isolate}.row.cleared:after{content:'中';position:absolute;left:calc(100% - 48px);top:13px;border:5px solid #ba1919;color:#ba1919;font:900 34px YY9Chinese,KaiTi,serif;rotate:-13deg;padding:3px;border-radius:4px;opacity:.9;pointer-events:none}#fortune{position:absolute;left:555px;top:10px;width:430px;height:300px;pointer-events:none;z-index:1}#fortune-copy{position:absolute;left:0;top:5px;font-size:32px;font-weight:900;text-align:center;color:#8c2b13;text-shadow:1px 2px #fff9}#fortune-copy strong{display:block;font-family:Georgia,serif;font-size:85px;line-height:1;color:#d32519;-webkit-text-stroke:1px #8c2311;text-shadow:0 3px #fff4a1,0 7px #f0a927}#fortune-copy small{font-family:YY9Chinese,system-ui;font-size:28px;display:block;margin-top:12px;color:#7c2e1c}#mascot{position:absolute;width:250px;height:300px;object-fit:contain;right:-30px;bottom:-5px;filter:drop-shadow(0 8px 4px #7d381d33)}#status{position:absolute;left:140px;top:1575px;width:800px;height:145px;border:7px solid #e5ac42;border-radius:35px;background:radial-gradient(ellipse,#78301c,#421b18);box-shadow:inset 0 0 0 3px #fff0b4,0 8px 0 #823323,0 15px 25px #16302544;text-align:center;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center}#status:before{content:'';position:absolute;inset:-10px;border:10px dotted #fff083;border-radius:38px;pointer-events:none;filter:drop-shadow(0 0 5px #ffc33e)}#message{position:absolute;left:-100px;top:-47px;width:1000px;color:#5b271a;font-size:25px;text-shadow:0 1px #ffefb8}#win-label{font-size:26px;color:#ffd88f;letter-spacing:10px;line-height:1.2}#win{font-family:Georgia,serif;font-size:83px;font-variant-numeric:tabular-nums;color:#ffe98f;line-height:1.1;text-shadow:0 3px #c78027,0 5px #421b13}#hand{position:absolute;left:40px;top:1752px;width:1000px;height:280px;border:5px solid #bca36b;border-radius:21px;background:linear-gradient(135deg,#fff7db,#ddd6bb);padding:16px 16px 20px;box-shadow:0 9px #25503a,0 15px 20px #0004}h2{margin:0;color:#fff2c5}#hand h2{position:absolute;top:-26px;left:285px;width:420px;height:46px;line-height:43px;text-align:center;background:linear-gradient(#c33522,#9b231b);border:2px solid #ffdf89;border-radius:22px;font-size:29px;letter-spacing:8px;z-index:3}#hand h2 small{display:none}#hands{display:grid;grid-template-columns:repeat(8,1fr);gap:14px 10px;justify-items:center;padding-top:14px}#hands .tile{width:105px;height:105px;box-shadow:inset 3px 3px #fff,0 4px 0 #9b967c,0 6px 5px #0003}#hands .tile-art{width:95%;height:95%}#actions{position:absolute;left:35px;top:2045px;width:1010px;height:160px}#betbar{display:flex;align-items:center;justify-content:center;gap:18px;height:58px;margin-bottom:18px;color:#fff7d9;font-size:28px;text-shadow:0 2px #1c4832}#betbar button{font-size:25px;min-height:56px;padding:3px 20px;border-width:2px;border-radius:12px}#betbar label{margin-right:auto}select{color:#fff0c1;background:#164731;border:2px solid #b7a151;border-radius:10px;padding:5px 15px;font-size:28px}#playbar{display:flex;gap:22px}#playbar button{height:116px;flex:1;font-size:40px;letter-spacing:4px;font-weight:800;padding:4px}#buy{background:linear-gradient(#ffe993,#ffc855 50%,#eaaa32 51%,#ffd35f);color:#7b2c14;border-color:#fff1b2;text-shadow:0 2px #ffe491;box-shadow:inset 0 4px #fff5,0 7px 0 #94601c,0 12px 15px #0004}#reveal{background:linear-gradient(#ff7650,#d63e26 50%,#aa261c 51%,#d73924)}#ten{font-size:34px!important;letter-spacing:0!important}#celebration{position:absolute;left:0;top:0;width:100%;height:100%;z-index:8;pointer-events:none;overflow:hidden}#celebration-banner{position:absolute;left:190px;top:1485px;width:700px;text-align:center;transform:translateY(35px) scale(.85);opacity:0;transition:opacity .2s,transform .3s}#celebration-banner.show{transform:translateY(0) scale(1);opacity:1}#celebration-banner strong{display:inline-block;letter-spacing:10px;color:#fff49a;font:900 64px YY9Chinese,KaiTi,serif;text-shadow:0 4px #bf351e,0 8px #82311b;padding:5px 70px 15px;border-radius:55% 55% 20px 20px;background:linear-gradient(#eb4a2d,#a41d18);border:4px solid #edb33f}.coin{position:absolute;width:24px;height:24px;border-radius:50%;background:linear-gradient(45deg,#eaa62b,#fff49a,#eeb439);border:3px solid #b47722;box-shadow:inset 0 0 0 3px #ffdd67;will-change:transform;pointer-events:none}.coin:after{content:'';position:absolute;inset:6px;background:#c48d2a;rotate:25deg}dialog{border:2px solid #d99c49;border-radius:22px;background:linear-gradient(#fcf1cd,#e7c48b);color:#482719;padding:28px;max-width:min(92vw,620px);max-height:85dvh;overflow:auto;font-size:16px;line-height:1.7;box-shadow:0 20px 100px #0009}dialog::backdrop{background:#36120c99}dialog h2{font-size:25px;padding-right:40px;color:#923323;margin-bottom:20px}#close{position:absolute;right:12px;top:12px;min-width:44px;font-size:25px}dialog button{margin:6px}dialog input[type=range]{width:100%}#toast{position:fixed;top:48%;left:50%;transform:translate(-50%,-50%);background:#612619ef;color:#fff1bc;border:1px solid #dab165;border-radius:14px;padding:16px 22px;pointer-events:none;opacity:0;transition:opacity .15s;z-index:100;max-width:85vw}#toast.show{opacity:1}.audio-setting{display:block;margin:15px 0}.audio-setting label{display:flex;align-items:center;justify-content:space-between}.volume-readout{font-variant-numeric:tabular-nums}.asset-error{padding:20px;color:#8c2418;text-align:center;background:#ffefae;position:fixed;inset:25% 5%;z-index:1000}.asset-error button{margin:20px}#loading{position:absolute;inset:0;z-index:20;background:#781d16 url('../assets/红金云纹背景.jpg') center/cover;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:28px;color:#7a2317}#loading img{width:350px;height:350px;object-fit:contain}#loading progress{width:600px;height:35px;accent-color:#b9241a}#loading p{font-size:34px;font-weight:700}#loading[hidden]{display:none}
#stage.landscape{width:2160px;height:1080px;border-radius:22px;background-size:100% 220%;background-position:center 20%}#stage.landscape #top{left:25px;top:20px;width:2110px;height:110px;padding:8px 16px}#stage.landscape #top button{height:88px;min-width:145px}#stage.landscape #profile-balance{font-size:42px}#stage.landscape #profile-name{font-size:22px}#stage.landscape #profile{max-width:1600px}#stage.landscape #brand{left:30px;top:150px;width:680px;height:160px;gap:12px}#stage.landscape #title-tiles{width:120px;height:120px;scale:.75;transform-origin:left center;margin-right:-25px}#stage.landscape h1{font-size:78px;letter-spacing:-4px}#stage.landscape #brand small{font-size:20px;letter-spacing:5px;margin-top:7px}#stage.landscape #pyramid{left:795px;top:165px;width:1310px;height:855px;padding:0 14px}#stage.landscape .row{height:120px;gap:28px}#stage.landscape .tile{width:119px;height:108px}#stage.landscape .cards{gap:14px}#stage.landscape .tile-art{width:90%;height:98%}#stage.landscape .prize{width:200px;padding:4px;font-size:30px}#stage.landscape .prize strong{font-size:34px}#stage.landscape .prize small{font-size:22px}#stage.landscape #fortune{left:700px;top:0;width:550px;height:270px}#stage.landscape #fortune-copy{font-size:31px}#stage.landscape #fortune-copy strong{font-size:85px}#stage.landscape #mascot{width:280px;height:300px;right:5px}#stage.landscape #hand{left:40px;top:440px;width:690px;height:315px;padding:24px 16px}#stage.landscape #hands{gap:20px 8px;padding-top:16px}#stage.landscape #hands .tile{width:72px;height:105px}#stage.landscape #hand h2{left:155px;width:380px;font-size:27px}#stage.landscape #status{left:90px;top:325px;width:580px;height:95px;border-width:5px;border-radius:25px}#stage.landscape #status:before{border-width:7px;border-radius:30px}#stage.landscape #win{font-size:59px}#stage.landscape #win-label{font-size:19px;letter-spacing:7px}#stage.landscape #message{top:446px;left:-35px;width:650px;font-size:24px;color:#fff4cb;text-shadow:0 1px #183721}#stage.landscape #actions{left:40px;top:830px;width:690px;height:190px}#stage.landscape #betbar{height:65px;margin-bottom:24px;gap:13px}#stage.landscape #betbar button{padding:3px 12px;font-size:25px}#stage.landscape #playbar{gap:15px}#stage.landscape #playbar button{height:105px;font-size:31px;letter-spacing:0}#stage.landscape #ten{font-size:28px!important}#stage.landscape #celebration-banner{left:60px;top:190px;width:650px}#stage.landscape #celebration-banner strong{font-size:51px}#stage.landscape #loading img{width:260px;height:260px}
@keyframes tile-pop{from{transform:scale(.88);filter:brightness(1.5)}to{transform:scale(1);filter:brightness(1)}}@keyframes ink-draw{to{stroke-dashoffset:0}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.ink-reveal{stroke-dashoffset:0}}
/* 下方手牌与两侧舞狮均独立素材，装饰不压住牌面。 */
#hand{left:150px;width:780px}#hand h2{left:175px}#hands{gap:14px 7px}#hands .tile{width:83px;height:105px}#lion-left,#lion-right{position:absolute;top:1790px;width:146px;height:220px;object-fit:contain;z-index:5;pointer-events:none;filter:drop-shadow(0 5px 3px #06362166)}#lion-left{left:8px;rotate:-5deg}#lion-right{right:8px;rotate:5deg}#stage.landscape #lion-left,#stage.landscape #lion-right{display:none}#stage.landscape #hand{left:40px;top:440px;width:690px;height:315px}#stage.landscape #hand h2{left:155px}#stage.landscape #hands{gap:20px 8px}#stage.landscape #hands .tile{width:72px;height:105px}

h1{paint-order:stroke fill;-webkit-text-stroke:5px #8d2a12;color:#ffe279}#playbar button{height:102px}#stage.landscape #playbar button{height:105px}
/* 中奖时参考图中的人物 + 红绸报喜，完全不拦截触摸。 */
#celebration-mascot{position:absolute;left:275px;top:720px;width:530px;height:530px;object-fit:contain;opacity:0;transform:translateY(40px) scale(.8);transition:opacity .18s,transform .28s cubic-bezier(.2,.8,.3,1.2);filter:drop-shadow(0 9px 2px #74400e66)}#celebration.active #celebration-mascot{opacity:1;transform:translateY(0) scale(1)}#celebration-banner{top:1185px;left:140px;width:800px}#celebration-banner strong{font-size:90px;letter-spacing:7px;padding:8px 95px 22px;border-radius:55% 55% 28px 28px;border-width:7px;color:#ffe575;-webkit-text-stroke:1px #9b2c15;paint-order:stroke fill;box-shadow:0 9px #6f241c,0 15px 18px #71451a55}.coin{width:38px;height:38px;border-width:4px}.coin:after{inset:11px}#stage.landscape #celebration-mascot{left:1130px;top:260px;width:490px;height:490px}#stage.landscape #celebration-banner{left:1010px;top:680px;width:730px}#stage.landscape #celebration-banner strong{font-size:72px}
#ticket-stock{position:absolute;left:450px;top:391px;width:580px;text-align:right;font-size:23px;line-height:32px;color:#8c271b;font-weight:700;z-index:3}#betbar label{margin-right:0;white-space:nowrap}#betbar #quantity-label{margin-right:auto}#betbar{gap:13px}#stage.landscape #ticket-stock{left:1200px;top:132px;width:870px;text-align:right;font-size:23px}#stage.landscape #betbar{gap:9px}#stage.landscape #quantity-label{font-size:24px}#stage.landscape #quantity{font-size:24px;padding:4px 7px}#stage.landscape #betbar button{font-size:22px;padding:3px 9px}
#scratch-sheet{position:absolute;inset:0;width:100%;height:100%;z-index:6;pointer-events:none}#stage{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}

/* v0.3.2 平面彩票印刷牌面，坐标与热区不变。 */
.tile,#hands .tile,#stage.landscape #hands .tile{background:#fffbee url('../assets/彩票纸面.jpg') center/100% 100%;border:2px solid #b9ad81;border-radius:6px;box-shadow:none}
#title-tiles span{background:#fffbee url('../assets/彩票纸面.jpg') center/100% 100%;box-shadow:none;border-width:2px}
#profile-id{display:block;font-size:16px;line-height:1.1;max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.85}.game-guide{font-size:17px;line-height:1.7}.guide-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #caa15c}.guide-row>strong{flex:0 0 50px;font-size:14px}.guide-icons{display:flex;gap:3px;flex:1;min-width:0}.guide-tile{display:grid;place-items:center;width:calc((100% - 18px)/7);max-width:46px;aspect-ratio:100/122;background:#fffbee;border:1px solid #b9ad81;border-radius:3px}.guide-tile .tile-art{width:96%;height:96%}.guide-row>b{min-width:57px;color:#b62529;text-align:right}
/* 全屏：画布高度随可用视口变化；只等比缩放画布，纵向重新分配间距，不裁切内容。 */
#stage{--screen-y:1;border-radius:0}
#brand{top:calc(190px * var(--screen-y));height:calc(200px * var(--screen-y))}
#pyramid{top:calc(445px * var(--screen-y));height:calc(1085px * var(--screen-y));padding-top:calc(36px * var(--screen-y))}
.row{height:calc(145px * var(--screen-y))}
.tile{height:calc(130px * min(1.25,var(--screen-y)))}
#status{top:calc(1575px * var(--screen-y));height:calc(145px * var(--screen-y))}
#hand{top:calc(1752px * var(--screen-y));height:calc(280px * var(--screen-y))}
#hands{row-gap:calc(14px * var(--screen-y))}
#hands .tile{height:calc(105px * min(1.25,var(--screen-y)))}
#lion-left,#lion-right{top:calc(1790px * var(--screen-y))}
#actions{top:calc(2045px * var(--screen-y));height:calc(160px * var(--screen-y))}
#ticket-stock{top:calc(391px * var(--screen-y))}
#stage.landscape #brand{top:calc(150px * var(--screen-y));height:calc(160px * var(--screen-y))}
#stage.landscape #pyramid{top:calc(165px * var(--screen-y));height:calc(855px * var(--screen-y));padding-top:0}
#stage.landscape .row{height:calc(120px * var(--screen-y))}
#stage.landscape .tile{height:calc(108px * min(1.3,var(--screen-y)))}
#stage.landscape #status{top:calc(325px * var(--screen-y));height:calc(95px * var(--screen-y))}
#stage.landscape #hand{top:calc(440px * var(--screen-y));height:calc(315px * var(--screen-y))}
#stage.landscape #hands{row-gap:calc(20px * var(--screen-y))}
#stage.landscape #hands .tile{height:calc(105px * min(1.3,var(--screen-y)))}
#stage.landscape #message{top:calc(446px * var(--screen-y))}
#stage.landscape #actions{top:calc(830px * var(--screen-y));height:calc(190px * var(--screen-y))}
#stage.landscape #playbar button{height:calc(105px * min(1.3,var(--screen-y)))}
#stage.landscape #ticket-stock{top:calc(132px * var(--screen-y))}
/* v0.5.0 顶部功能导航与固定几何基线：正常运行禁止调参；调控板共用同一布局。 */
#viewport{bottom:auto;height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
#top{top:calc(20px * var(--screen-y));height:calc(260px * var(--screen-y));display:grid;grid-template-columns:90px minmax(0,1fr);grid-template-rows:calc(90px * var(--screen-y)) calc(116px * var(--screen-y));gap:calc(10px * var(--screen-y)) 14px;padding:calc(12px * var(--screen-y)) 12px}
#top #back{width:90px;height:calc(88px * var(--screen-y));min-width:0!important;grid-column:1;grid-row:1}
#profile{grid-column:2;grid-row:1;overflow:hidden}
#top-tools{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:center}
#top #top-tools button{width:100%;min-width:0;height:calc(112px * var(--screen-y));min-height:0;padding:4px 2px;font-size:32px;white-space:nowrap;letter-spacing:0}
#brand{top:calc(300px * var(--screen-y));height:calc(145px * var(--screen-y))}
#ticket-stock{top:calc(448px * var(--screen-y))}
#pyramid{top:calc(500px * var(--screen-y));height:calc(970px * var(--screen-y))}
.row{height:calc(132px * var(--screen-y))}
.tile{height:calc(120px * min(1.25,var(--screen-y)))}
#status{top:calc(1540px * var(--screen-y));height:calc(110px * var(--screen-y));gap:0}
#win-label{line-height:1;font-size:24px;letter-spacing:7px;margin:0}
#win{line-height:.92;font-size:78px;margin:0}
#hand{top:calc(1680px * var(--screen-y));height:calc(250px * var(--screen-y));padding:12px 16px}
#hand h2{top:-25px}
#hands{padding-top:8px;row-gap:calc(10px * var(--screen-y))}
#hands .tile{height:calc(98px * min(1.25,var(--screen-y)))}
#lion-left,#lion-right{top:calc(1710px * var(--screen-y))}
#actions{top:auto;bottom:calc(70px * var(--screen-y));height:auto}
#betbar{justify-content:flex-start;height:58px;margin-bottom:18px;gap:22px}
#stage.landscape #top{display:flex;top:calc(16px * var(--screen-y));height:142px;gap:18px;padding:12px 16px}
#stage.landscape #top #back{height:110px;width:90px;flex:0 0 90px}
#stage.landscape #profile{flex:1;min-width:0}
#stage.landscape #top-tools{display:grid;grid-template-columns:repeat(5,154px);gap:15px;flex:0 0 auto}
#stage.landscape #top #top-tools button{height:110px;min-width:0;font-size:32px}
#stage.landscape #brand{top:calc(170px * var(--screen-y));height:calc(140px * var(--screen-y))}
#stage.landscape #pyramid{top:calc(190px * var(--screen-y));height:calc(830px * var(--screen-y))}
#stage.landscape .row{height:calc(116px * var(--screen-y))}
#stage.landscape #ticket-stock{top:calc(163px * var(--screen-y));font-size:21px}
#stage.landscape #status{top:calc(330px * var(--screen-y));height:calc(85px * var(--screen-y));gap:0}
#stage.landscape #win{font-size:59px;line-height:.9}
#stage.landscape #win-label{font-size:19px;line-height:1}
#stage.landscape #hand{top:calc(445px * var(--screen-y));height:calc(315px * var(--screen-y));padding:24px 16px}
#stage.landscape #hand h2{top:-32px}
#stage.landscape #hands{padding-top:16px;row-gap:calc(20px * var(--screen-y))}
#stage.landscape #actions{top:auto;bottom:calc(70px * var(--screen-y));height:auto}
#stage.landscape #betbar{justify-content:flex-start;gap:18px}
/* 底部控件与下半票面使用同一纵向基准，避免较宽竖屏时相互挤压。 */
#stage:not(.landscape) #betbar{height:calc(58px * var(--screen-y));margin-bottom:calc(18px * var(--screen-y))}
#stage:not(.landscape) #playbar button{height:calc(116px * var(--screen-y))}

/* v0.5.1 中奖标题靠左，金额在板块几何中心。 */
#status{position:absolute;display:block}
#win-label{position:absolute;left:26px;top:50%;transform:translateY(-50%);letter-spacing:3px;line-height:1.2}
#win{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;line-height:1}
#stage.landscape #win-label{left:22px;letter-spacing:2px}
#mode:empty,#profile-currency:empty{display:none}

/* 玩家资料：头像｜昵称/ID｜余额，横竖屏同序。 */
#profile{display:flex;align-items:center;gap:18px}
#profile-avatar{flex:0 0 77px}
#profile-details{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:8px}
#profile-name{font-size:30px;line-height:1.2;max-width:100%}
#profile-id{font-size:22px;line-height:1.2;max-width:100%}
#profile-balance{flex:0 0 auto;margin-left:auto;text-align:right;white-space:nowrap;line-height:1.2;padding-right:12px}
#stage.landscape #profile-name{font-size:30px}
#stage.landscape #profile-id{font-size:22px}

/* 等待服务端购票时仅运行确认光效，不显示伪造牌面。 */
body[data-state=STARTING] #buy{animation:purchase-wait .8s ease-in-out infinite alternate}body[data-state=STARTING] #message{opacity:.85}@keyframes purchase-wait{to{filter:brightness(1.3)}}
html,body{overscroll-behavior:none;touch-action:manipulation}
