/* WEB G120 W040: account button and saved betting history view. */
#stage .profile-row>div>button.login{width:33.333333%;align-self:flex-start;padding-left:0;padding-right:0;white-space:nowrap}
#modal.game-records .records-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
#modal.game-records .records-filters button{padding:6px 10px}
#modal.game-records .records-filters button[aria-pressed="true"]{border-color:#ffb347;color:#ffb347}
#modal.game-records .records-filters label{display:flex;align-items:center;gap:6px;margin:0}
#modal.game-records .records-filters select{background:#061e2c;border:1px solid #27617c;color:#fff;padding:6px;font:inherit}
#modal.game-records .records-scroll{overflow:auto;max-height:340px}
#stage.in-game span#livePrice{width:330px;line-height:25px}
#stage #priceValue{font-size:21px;font-weight:800;font-variant-numeric:tabular-nums}
#stage.in-game #roomRound{color:#ffb347}
#stage .odds #upTotal,#stage .odds #downTotal{font-weight:900}
#result .result-bet{color:#ffb347;font-weight:900}
#result .result-profit-up{color:#48f2a5;font-weight:900}
#result .result-profit-down{color:#ff566f;font-weight:900}
#result .result-profit-flat{color:#fff;font-weight:900}
#stage header>.main-title{color:var(--mint)}
#stage.in-game .room-badge{display:grid;grid-template-columns:1fr 1px 1fr;gap:10px;padding:0 16px;color:#fff}
#stage.in-game #roomAmount,#roomRound{color:#fff;font-size:15px;font-weight:900;white-space:nowrap}
.room-divider{width:1px;height:20px;background:#fff;opacity:.8}
#stage.in-game #marketStatus{font-size:19px;line-height:22px;top:53px}
.binance-link{position:absolute;z-index:6;display:inline-flex;align-items:center;justify-content:center;height:20px;padding:0 6px;border:1px solid #f3ba2f;border-radius:3px;background:#081a27;color:#f3ba2f;font-size:10px;font-weight:800;text-decoration:none;white-space:nowrap}
.binance-link:hover,.binance-link:focus-visible{background:#f3ba2f;color:#081a27;outline:2px solid #fff;outline-offset:1px}
.context-link{left:94px;top:5px}
.minute-link{right:7px;top:5px}
.mini-chart.one .chart-indicators{display:inline;font-size:9px;line-height:12px}
#stage .seed-box .betting-label{font-size:17px;font-weight:900}
#stage .seed-box{grid-template-columns:83px 1fr}
#betValue{cursor:default;text-decoration:none}
#stage{overflow:visible;position:absolute;left:50%;top:50%;transform-origin:0 0}#viewport{display:block}
button:disabled{opacity:.5;cursor:default}.direction:disabled{opacity:1}button:focus-visible,input:focus-visible{outline:2px solid #ffd65a;outline-offset:2px}
#livePrice{position:absolute;z-index:42;top:79px;font-size:11px;color:#ffb347;left:16px}#stage.in-game #livePrice{left:306px;top:76px;width:240px;text-align:left;font-size:18px;font-weight:700;line-height:22px;color:#fff}.total-bet{left:1058px;top:44px;width:300px;height:56px}
.metric div{display:grid;grid-template-columns:minmax(0,1fr) 62px 55px;align-items:center;gap:6px}.metric div>span{font-size:13px;font-weight:800;white-space:nowrap}.metric b{margin:0;text-align:right;font-size:18px;font-weight:900;font-variant-numeric:tabular-nums;color:#fff}.metric b.positive{color:var(--mint)}.metric b.negative{color:var(--red)}.tf button{padding:0;border:0;background:none;color:#78dbed;font-weight:bold}.tf button[aria-pressed=true]{color:#ffb347}
.seed-box{padding:12px 10px;grid-template-columns:78px minmax(0,1fr);grid-template-rows:1fr 1fr;row-gap:6px}.seed-box strong{font-size:19px;white-space:nowrap}.seed-box b{font-size:21px;color:#ffb347;white-space:nowrap}.seed-box small:first-child{color:#ffb347}
.players #playerRows{height:104px;grid-auto-rows:13px;font-size:9px;overflow:visible;gap:0 5px}.player-row{display:flex;justify-content:space-between;align-items:center;white-space:nowrap;min-width:0}.player-name{max-width:58px;overflow:hidden;text-overflow:ellipsis;font-weight:400}.players nav{display:flex;justify-content:center;align-items:center;gap:12px;height:18px}.players nav button{font-size:10px;background:none;border:0;color:#8fefff}.players nav small{font-size:9px}
.runner{width:44.25px;height:32px}.runner img{width:265.5px;height:32px;max-width:none;animation:walk 650ms steps(6) infinite}.runner.running{width:60.2353px}.runner.running img{width:301.1765px;animation:run 430ms steps(5) infinite}@keyframes walk{to{transform:translateX(-265.5px)}}@keyframes run{to{transform:translateX(-301.1765px)}}
.rail{width:706px}.rail>.race-track{width:706px;opacity:.7}.race-gap{position:absolute;right:0;top:0;width:84px;height:70px;padding:2px 3px;background:linear-gradient(145deg,#092131b8,#020c17b3);border:1px solid #3a8e9d66;text-align:center}.race-gap small{display:block;color:#9eeeff;font-size:10px;font-weight:800;line-height:16px}.race-gap b{display:block;font-size:16px;font-weight:900;line-height:23px;font-variant-numeric:tabular-nums}#downRace{color:var(--red)}#upRace{color:var(--mint)}
.round-timer.start-action{animation:start-pulse .6s ease-in-out}@keyframes start-pulse{0%,50%,100%{transform:scale(1)}25%,75%{transform:scale(1.18)}}
#guide{left:50%;transform:translateX(-50%);width:max-content;max-width:650px;padding:3px 12px}#result{left:119px;top:auto;bottom:8px;width:500px;height:auto;min-height:128px;padding:12px;font-size:24px;background:rgba(53,57,64,.8);line-height:1.35;display:flex;flex-direction:column;justify-content:flex-end}#result small{font-size:18px;color:#fff}#outcome{position:absolute;left:0;right:0;top:175px;text-align:center;font-size:38px;font-weight:900;animation:result-pulse 1s infinite alternate;color:#ffd65a}@keyframes result-pulse{to{opacity:.45}}

#modal{position:absolute;margin:auto;width:650px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);background:#03121ff5;color:#fff;border:1px solid #4ddfff;border-radius:6px;padding:24px;box-shadow:0 0 38px #2adfff33;font-family:inherit}#modal::backdrop{background:#000b}#modal h2{font-size:20px;color:#8fefff;margin:0 0 20px}#modal label{display:grid;gap:8px;margin:14px 0;font-size:14px;color:#8fefff}#modal input{width:100%;padding:12px;background:#061e2c;color:white;border:1px solid #27617c;border-radius:3px;font-size:16px}#modal footer{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}#modal button{background:#061e2c;border:1px solid #4ddfff;border-radius:3px;padding:10px 20px;font-size:14px}#modalError{color:#ff788d;min-height:20px;font-size:14px}#modal.warning{animation:warning 1s infinite alternate}@keyframes warning{to{border-color:#ff566f;box-shadow:0 0 32px #ff566f88}}#modalBody{line-height:1.6;font-size:14px}#modalBody table{border-collapse:collapse;width:100%;font-size:12px}#modalBody th,#modalBody td{border-bottom:1px solid #1c3f55;padding:7px 4px;text-align:right}#modalBody th{color:#8fefff}#modalBody .pager{display:flex;gap:12px;justify-content:center;margin-top:12px}#modalBody .pager button{padding:6px 12px}.ai-choices{display:flex;gap:12px;justify-content:center}
.balance-change{animation:balance .9s ease-out}@keyframes balance{30%{color:#48f2a5;text-shadow:0 0 12px #48f2a5}}#notice{max-width:650px;font-size:15px}.up-text{color:var(--mint)}.down-text{color:var(--red)}

/* G092: room for TOTAL BET at the top of the enlarged result panel. */
.center-overlay:has(#result:not(.hidden)) .center-pool{top:253px;z-index:1}
#modal.game-records{width:980px}
#modal.game-records table{font-size:13px;font-variant-numeric:tabular-nums}
#modal.game-records th,#modal.game-records td{border:1px solid #376078;padding:5px 9px;white-space:nowrap;color:#fff}
#modal.game-records th{color:#8fefff;text-align:center;background:#10304499}
#modal.game-records tbody+tbody{border-top:2px solid #4c849b}
#modal.game-records .round-cell,#modal.game-records .result-cell{text-align:center}
#modal.game-records td.up-text{color:#48f2a5}
#modal.game-records td.down-text{color:#ff566f}

/* G093: separate symbol/quote colours without changing the quote feed. */
#livePrice{white-space:nowrap}#livePrice .price-symbol{color:#48f2a5}#priceValue{color:#fff}
.direction b{display:flex;flex-direction:column;gap:2px;line-height:29px;font-size:28px}.direction b span{display:block;font-size:inherit;line-height:inherit}

/* G095: quote-source status belongs directly above the Bitcoin quote. */
#marketStatus{position:absolute;left:16px;top:57px;font-size:12px;line-height:18px;font-weight:800;color:#8fefff;z-index:42}#stage.in-game #marketStatus{left:306px;top:54px}

/* G099: compact account dialogs; shared records and settings retain their size. */
#modal.account-dialog{width:434px;padding:16px}
#modal.account-dialog h2{font-size:18px;margin-bottom:12px}
#modal.account-dialog label{gap:6px;margin:10px 0}
#modal.account-dialog input{padding:8px}
#modal.account-dialog footer{margin-top:10px;gap:8px}
#modal.account-dialog button{padding:8px 14px}

.player-observer{color:#a9d2e5;font-size:11px}

/* G102: partner portal and referral share one row inside the existing profile. */
#accountActions #partner,#accountActions #partnerMemberLink{grid-column:auto;font-size:11px}
#accountActions #aiSettings{grid-column:1/-1}

.seed-box small{font-size:12px;font-weight:800;white-space:nowrap}#betValue,#rightUp,#rightDown,#upTotal,#downTotal,#centerPool{color:#fff}

/* G114: receipt lives inside the central race screen. */
#betReceipt{position:absolute;left:50%;top:211px;transform:translateX(-50%);width:max-content;max-width:600px;padding:12px 24px;border:2px solid;border-radius:5px;font-size:22px;font-weight:900;line-height:30px;color:#fff;z-index:12;text-align:center;white-space:nowrap}
#betReceipt.up-receipt{background:#07552d;border-color:#48f2a5}#betReceipt.down-receipt{background:#790e22;border-color:#ff566f}.receipt-flash{animation:receipt-flash .4s ease-in-out 4}@keyframes receipt-flash{0%,100%{opacity:1}50%{opacity:.25}}
.metric div>span{color:var(--mint)}.direction img{width:113.4px;height:81px;flex-shrink:0}.direction{gap:8px}
.runner.running{width:69.270595px;height:36.8px}.runner.running img{width:346.352975px;height:36.8px;animation:run-large 430ms steps(5) infinite}@keyframes run-large{to{transform:translateX(-346.352975px)}}.runner.running.red{top:0}.runner.running.green{top:33px}
header>.audio-controls{margin-left:0}header>.window-controls{margin-left:auto}header .window-controls button{width:27px}#marketStatus{font-size:15px;line-height:20px}#exitWindow{color:#ff8295}
/* G115 lobby account hierarchy and separate guide panel. */
.profile{padding:32px 16px 10px}.profile-row{gap:10px}.profile-row>span{width:56px;height:56px;font-size:20px}.profile dl{margin:8px 0;font-size:12px;line-height:22px}.profile .money-title{font-size:24px;line-height:32px;font-weight:900}.profile dl [data-balance]{font-size:24px;line-height:32px;color:#ffad36}.profile .money-heading{font-size:24px;line-height:32px;margin:8px 0}.profile .money-heading b{float:none;display:block;color:#ffad36;font-size:24px;line-height:30px}.profile .account-heading{margin-top:18px}.profile .money button,.profile .account button{height:32px}.profile .store-referral{margin:12px 0 8px}.store-referral small{color:#8fefff;font-size:12px}.store-referral>div{display:flex;align-items:center;gap:8px;margin-top:5px}.store-referral strong{font-size:19px;color:#48f2a5;letter-spacing:.3px;user-select:all;overflow-wrap:anywhere;min-width:0}.store-referral button{padding:7px;flex-shrink:0}.partner-link{display:block}.partner-link button{width:100%}
#charge{--frame-color:#48f2a5;color:#48f2a5;background-color:#073b2c}#refund{--frame-color:#ff8c69;color:#ffad87;background-color:#461d19}#reward{--frame-color:#ffd65a;color:#ffd65a;background-color:#3d310b}#transactions{--frame-color:#b58cff;color:#c6a6ff;background-color:#271441}.account .login{--frame-color:#65ceff;color:#65ceff;background-color:#082e47}#register{--frame-color:#f381ce;color:#f381ce;background-color:#38152f}#partner{--frame-color:#ffd65a;color:#ffd65a;background-color:#393009}
.help-panel{left:1040px;top:190px;width:308px;height:145px;padding:30px 16px 12px;display:grid;gap:5px}.help-panel button{font-weight:800;color:#9df3ff;background-color:#092739;min-height:28px}.service{top:345px;height:401px;padding:29px 14px 7px}.service-cards{gap:10px}.service article{height:57px;padding:5px}.service article b{font-size:20px;margin-top:4px}.service h3{margin:6px 0 4px;font-size:11px}.service p{padding:5px;margin:5px 0;line-height:16px;font-size:11px}.service>strong{padding:5px}.service .countdown{font-size:12px;padding:5px}.service li{padding:3px;font-size:11px}.service>small{margin-top:4px;font-size:9px}
.profile dl .money-title,.profile dl .money-title+dd{grid-column:1/-1}.profile dl .money-title+dd{text-align:left;line-height:28px}.profile-row>span{height:48px;width:48px}.profile-row{min-height:52px}

/* G116 compact lobby, distinct VIP, readable account and room-scoped tickets. */
.profile .money-title,.profile .money-heading{font-size:17px;line-height:23px}.profile dl{font-size:14px;line-height:25px}.profile dl [data-balance],.profile .money-heading b{font-size:22px;line-height:27px}.profile-row small,.profile-row em,.profile h3,.profile button,.store-referral small{font-size:13px}.profile .money-heading b{display:inline;float:right}.profile .account-heading{margin-top:20px}.store-referral strong{font-size:17px}
.btc-symbol{position:absolute;left:18px;top:51px;width:39px;height:44px;color:#ffb641;font-size:39px;font-weight:900;z-index:15}#stage:not(.in-game) #marketStatus{left:66px;top:52px;font-size:17px}#stage:not(.in-game) #livePrice{left:66px;top:78px;font-size:18px}#stage.in-game .btc-symbol{display:none}
#vipRoom{position:absolute;left:1040px;top:190px;width:308px;height:135px}#vipRoom .room-card{height:135px;padding:9px 12px;--frame-color:#e28cff}#vipRoom img{position:absolute;left:15px;top:10px;width:60px;height:47px}#vipRoom h2{font-size:23px;margin-left:35px}#vipRoom button{width:230px;height:27px;margin-top:3px}
.help-panel{top:333px;height:120px;padding-top:27px;grid-template-columns:1fr;gap:3px}.help-panel button{min-height:24px;font-size:12px}#helpGame{--frame-color:#42efad;color:#42efad}#helpCharts{--frame-color:#5dbeff;color:#5dbeff}#helpBet{--frame-color:#ffbd57;color:#ffbd57}
.service{top:461px;height:285px;padding-top:28px}.service-cards article{height:43px;padding:3px}.service article b{font-size:17px;margin-top:1px}.service h3{display:none}.service p{margin:5px 0;font-size:11px;line-height:17px}.service>strong{padding:3px;font-size:12px}.service .countdown{padding:3px;font-size:11px}.service li{padding:1px;font-size:10px}.service>small{font-size:10px;margin-top:3px}.tour-card{height:254px;--frame-color:var(--accent)}.tour-card img{height:53px}.tour-card b{font-size:15px;margin:6px 0}.tour-card small{display:block;font-size:11px}.tour-card button{width:100%;margin-top:12px;padding:8px 3px;border:1px solid var(--accent);background:#061d2c;color:var(--accent);font-weight:800}.tour-rule{font-size:12px}
