/* Spintix: shared gold and slate-blue theme. Loaded after feature styles. */
:root {
  --bg:#1e2442; --panel:#2a3055; --panel2:#343b63; --panel-deep:#232947;
  --line:#414971; --border:var(--line); --text:#fafaff; --muted:#b4b5d5;
  --gold:#ffbf60; --gold-hover:#ffd08a; --gold-ink:#232844; --lavender:#aaa0e5;
  --purple:var(--gold); --bright:var(--gold); --green:#8bdfb5; --red:#ffa3b3;
  --radius:12px; color-scheme:dark;
}
html { background:var(--bg); scrollbar-color:#59618a var(--bg); }
body { background:radial-gradient(ellipse at 45% 0%,#29365366,transparent 65%),var(--bg); color:var(--text); }
body.dialog-open { overflow:hidden; }
h1,h2,h3,h4 { color:var(--text); }
p,.muted,.small,label { color:var(--muted); }
a,button,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button,input,select,textarea { font:inherit; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
input,select,textarea { background:var(--panel-deep); border-color:var(--line); color:var(--text); border-radius:9px; }
input::placeholder,textarea::placeholder { color:#8b90b0; opacity:1; }
input:focus,select:focus,textarea:focus,#modal input:focus,#modal select:focus,#modal textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px #ffbf6015; }
input[type=checkbox],input[type=range] { accent-color:var(--gold); }
.btn,.icon-button { border-radius:9px; }
.btn.primary,#modal .btn.primary,.confirmation-dialog .btn.primary,.btn.deposit {
  background:var(--gold); border-color:var(--gold); color:var(--gold-ink); box-shadow:0 4px 16px #11172b12; font-weight:700;
}
.btn.primary:hover:not(:disabled),#modal .btn.primary:hover:not(:disabled),.confirmation-dialog .btn.primary:hover:not(:disabled),.btn.deposit:hover { background:var(--gold-hover); border-color:var(--gold-hover); filter:none; }
.btn.secondary,.icon-button { background:#505878; border-color:#586080; color:var(--gold); }
.btn.secondary:hover:not(:disabled),.icon-button:hover { background:#5c6485; border-color:#6a7294; }
.btn.ghost { color:var(--muted); border-color:var(--line); background:transparent; }
.btn.ghost:hover:not(:disabled) { color:var(--text); background:var(--panel2); }
.btn.danger { background:#663a50; border-color:#8c5368; color:#ffd5de; }
.btn:disabled,button:disabled { cursor:default; }
.purple,.price,.item-value,.reward-eyebrow { color:var(--gold); }
.spinner { border-color:var(--line); border-top-color:var(--gold); }
.sidebar,.community { background:var(--panel); border-color:var(--line); }
.sidebar { padding-top:25px; }
.brand { color:var(--text); }
.brand img,.site-logo,.mobile-brand img { object-fit:contain; flex:none; }
.nav-section { color:#939bc2; letter-spacing:1.5px; }
.nav-item { color:var(--muted); padding:12px; border-radius:8px; }
.nav-item>.icon { color:var(--lavender); }
.nav-item:hover { color:var(--text); background:#ffffff06; }
.nav-item.active { color:var(--gold); background:#ffbf6009; box-shadow:inset 2px 0 var(--gold); }
.nav-item.active>.icon { color:var(--gold); }
.sound-line { color:var(--muted); border-color:var(--line); }
.sound-volume-note,#sound-volume-label { color:var(--muted); }
.topbar { background:#2a3055f5; border-color:var(--line); box-shadow:0 4px 20px #10162814; }
.header-context { color:var(--muted); }
.header-auth { display:flex; align-items:center; gap:8px; }
.header-auth .btn { min-height:38px; padding:9px 15px; }
.header-right .balance { background:transparent; border:0; padding:0; color:var(--text); }
body:not(.signed-in) .header-right>.balance,body:not(.signed-in) .header-right>.credit-plus { display:none; }
.credit-plus { color:var(--gold); border-color:#ffbf6070; background:transparent; border-radius:7px; }
.credit-plus:hover { background:#ffbf6012; }
.balance>span,.online-indicator,.online-indicator strong { color:var(--muted); }
.avatar-initial { background:#50587b; color:var(--text); }
.mobile-brand,.mobile-nav,.mobile-chat-shade { display:none; }
.page-title { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:20px 22px; gap:16px; }
.page-title h1 { font-size:27px; letter-spacing:-.6px; }
.page-title p { color:var(--muted); line-height:1.6; }
.section-heading h2 { color:var(--text); }
.tabs,.filters,.toolbar { border-color:var(--line); }
.tab,.filter-chip,.feed-tab { color:var(--muted); border-color:var(--line); }
.tab.active,.filter-chip.active,.feed-tab.active { color:var(--gold); background:#ffbf600b; border-color:#ffbf604a; }
.case-card,.item-card,.stat-card,.settings-panel,.house-panel,.reward-panel,.withdraw-request-card,.withdraw-item,.case-entry,.rbx-request,.rbx-credential,.crypto-recap {
  background:var(--panel); border-color:var(--line); border-radius:12px;
}
.case-card { border:1px solid var(--line); padding-bottom:12px; }
.case-card:hover { background:#31385e; border-color:#77759a; transform:translateY(-3px); }
.case-art { background:radial-gradient(ellipse at 50% 70%,#aaa0e511,transparent 70%); }
.case-card h3 { color:var(--text); }
.case-footer .price { color:var(--gold); font-size:13px; }
.case-category,.count-tag,.case-badge { background:#515879; color:var(--muted); border-color:var(--line); }
.case-search-input { background:var(--panel); border-color:var(--line); }
.case-search-input:focus-within { border-color:var(--gold); }
.case-search-input>.icon { color:var(--lavender); }
.search-box input,.search-tools select { background:var(--panel); border-color:var(--line); color:var(--muted); }
.search-box>.icon { color:var(--lavender); }
.item-name,.reel-name { color:var(--text); }
.item-card .odds,.reel-chance,.case-tagline { color:var(--muted); }
.item-value small,.reel-value span { color:var(--muted); }
.reel-window,.reel-shell,.idle-strip { background:var(--panel-deep); border-color:var(--line); }
.reel-card { background:var(--panel); border-color:var(--line); }
.reel-window:before { background:linear-gradient(90deg,var(--panel-deep),transparent); }
.reel-window:after { background:linear-gradient(90deg,#232947ed,transparent 18%,transparent 82%,#232947ed); }
.vertical-reel .reel-window:after,.battle-arena .vertical-reel .reel-window:after { background:linear-gradient(180deg,#232947f2,transparent 27%,transparent 73%,#232947f2); }
.reel-card.winner,.reel-card.is-winner { border-color:var(--gold); box-shadow:0 0 20px #ffbf6040,inset 0 0 18px #ffbf600c; }
.reel-card.landed,.battle-arena .reel-card.landed { border-color:var(--gold); background:#ffbf6009; box-shadow:0 0 18px #ffbf6040,inset 0 0 18px #ffbf6018; }
.reel-marker { color:var(--gold); }
.home-game,.home-game-battles,.home-game-blackjack,.home-game-towers {
  background:radial-gradient(ellipse at 50% 55%,#aaa0e52b,transparent 70%),linear-gradient(145deg,#343c68,#292f55); border:1px solid var(--line); border-radius:13px;
}
.home-game:hover { border-color:#ffbf6080; box-shadow:0 12px 30px #10172e33; }
.home-game-label { color:var(--text); }
.home-game-label>.icon,.home-versus { color:var(--gold); }
.home-game-bottom { background:#23294666; border-color:var(--line); }
.home-game-bottom>span:first-child { color:var(--muted); }
.home-game-arrow { color:var(--gold); border-color:#ffbf6045; }
.home-rewards>a { background:var(--panel); border-color:var(--line); }
.home-rewards>a:hover { border-color:#ffbf6060; }
.home-reward-icon { color:var(--gold); background:#ffbf6010; }
.home-tower-art b { background:linear-gradient(180deg,#6d78a7,#515e90); border-color:#99a5d88c; color:var(--gold); }
.home-playing-card.card-back { background:repeating-linear-gradient(45deg,#445079 0 4px,#6d77a2 4px 5px); border-color:#a2add7; color:var(--gold); }
.home-playing-card.card-front { color:#283155; }
.battle-row { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:18px; }
.battle-row .battle-case-list img { background:#444c74; border-radius:8px; object-fit:contain; }
.battle-row h3,.battle-row .price { color:var(--text); }
.battle-row p,.battle-speed-tag { color:var(--muted); }
.battle-status,.mode-badge { border-color:var(--line); background:#232946; color:var(--muted); }
.battle-status.waiting,.mode-badge.mode-standard { color:var(--gold); background:#ffbf600b; }
.battle-status.running { color:var(--green); }
.battle-message,.battle-rounds,.player-panel,.battle-celebration,.battle-lineup,.battle-topline { background:var(--panel); border-color:var(--line); }
.battle-message .price,.battle-celebration .victory-amount,.player-total { color:var(--gold); }
.builder-options,.builder-selected,.battle-builder-page .builder-case-catalog,.builder-footer { background:var(--panel); border-color:var(--line); }
.battle-mode-option,.battle-speed-option,.case-menu-option,.selected-battle-case { background:var(--panel-deep); border-color:var(--line); color:var(--muted); }
.battle-mode-option.selected,.battle-speed-option.selected { background:#ffbf600b; border-color:#ffbf6099; color:var(--gold); box-shadow:0 0 0 1px #ffbf6012; }
.battle-mode-option .mode-symbol,.selected-case-price,.case-menu-option small { color:var(--gold); }
.selected-case-counter,.case-menu-add { background:var(--panel2); color:var(--gold); border-color:var(--line); }
.selected-case-counter button { color:var(--gold); }
.selected-cases-empty { border-color:var(--line); background:var(--panel-deep); }
.blackjack-controls,.towers-controls { background:var(--panel); border-color:var(--line); }
.bj-shortcuts,.bj-bet-input,.bj-insurance,.bj-summary-hands>div { background:var(--panel-deep); border-color:var(--line); }
.bj-shortcuts button { color:var(--muted); }
.bj-manual { background:#ffbf6011; color:var(--gold); }
.blackjack-table,.bjt-felt { background:radial-gradient(ellipse at 50% 20%,#39497088,transparent 70%),linear-gradient(150deg,#283153,#242c4b); border-color:#59658b; }
.bj-table-toolbar,.bj-hand-label,.bj-hand-stake,.bj-status,.bj-felt-mark,.bjt-stake,.bjt-round-clock>span { color:var(--muted); }
.bj-total,.bjt-total { color:var(--text); background:#424e73; }
.bj-hand.active { border-color:#ffbf6060; }
.bj-table-result>strong,.bjt-seat.is-you .bjt-name,.bjt-stake .price { color:var(--gold); }
.bj-card-back,.bjt-felt .bj-card-back { background:repeating-linear-gradient(45deg,#3b4971 0 4px,#6c7da3 4px 5px); border-color:#99aacf; color:var(--gold); }
.bj-card-face { background:linear-gradient(150deg,#fff,#e8edf9); color:#28304a; }
.bj-card-face.red { color:#b93153; }
.blackjack-table.is-win,.bjt-felt.is-win,.towers-arena.is-win { border-color:var(--green); box-shadow:0 0 0 1px #8bdfb522,inset 0 0 30px #8bdfb512; }
.blackjack-table.is-loss,.bjt-felt.is-loss,.towers-arena.is-loss { border-color:var(--red); box-shadow:0 0 0 1px #ffa3b322,inset 0 0 30px #ffa3b312; }
.bjt-lobby-card { background:var(--panel); border-color:var(--line); }
.bjt-lobby-felt { background:radial-gradient(ellipse,#3b4b70,#252f50); border-color:var(--line); }
.bjt-lobby-deck,.bjt-lobby-bottom strong,.bjt-decision>strong { color:var(--gold); }
.bjt-decision>p,.bjt-name small { color:var(--muted); }
.bjt-betting-panel form { background:#293357f5; border-color:#7c789e; }
.bjt-bet-seat-label { color:var(--gold); }
.bjt-seat.is-bet-target .bjt-profile { border-color:var(--gold); box-shadow:0 0 0 4px #ffbf601a,0 0 20px #ffbf6026; }
.bjt-seat.is-bet-target .bjt-name,.bjt-seat.is-bet-target .bjt-stake { color:var(--gold); }
.bjt-empty-seat>span { background:#3b456a; border-color:#64709a; color:var(--gold); }
.bjt-empty-seat:hover>span { background:#535f88; border-color:var(--gold); }
.bjt-round-clock>div { background:conic-gradient(var(--gold) calc(var(--clock-progress,0)*1turn),#465073 0); color:var(--text); }
.blackjack-mode-tabs { background:var(--panel); border-color:var(--line); }
.blackjack-mode-tabs .tab.active { color:var(--gold); background:#ffbf600b; border-color:#ffbf6055; }
.towers-arena { background:radial-gradient(ellipse at 50% 70%,#8292bb26,transparent 75%),linear-gradient(160deg,#2c3559,#252e4c 70%); border-color:#59658b; }
.towers-modes { background:var(--panel-deep); border-color:var(--line); }
.towers-modes button { color:var(--muted); }
.towers-modes button.selected { background:var(--gold); color:var(--gold-ink); box-shadow:none; }
.tower-floor.active { background:#ffbf6008; box-shadow:inset 3px 0 var(--gold),inset -3px 0 var(--gold); }
.tower-floor.active .tower-tile { background:linear-gradient(180deg,#7181ad,#556591); color:var(--text); border-color:#a3b0dc99; box-shadow:0 2px 9px #101b392b; }
.tower-floor.active .tower-tile:not(:disabled):hover { background:#8393c0; border-color:var(--gold); box-shadow:0 0 18px #ffbf6026; }
.tower-level,.tower-multiplier,.towers-topline,.tower-tile { color:var(--muted); }
.tower-star,.tower-result strong { color:var(--gold); }
.deposit-choice,.deposit-method,.deposit-option { background:var(--panel); border-color:var(--line); }
.deposit-dialog .dialog-shell { background:var(--panel); }
.deposit-dialog .deposit-method { background:var(--panel-deep); border-color:var(--line); }
.deposit-dialog .deposit-method:after { background:linear-gradient(90deg,#232947eb 10%,#2329477a 57%,transparent); }
.deposit-dialog .deposit-method:hover:not(:disabled) { border-color:#ffbf6070; box-shadow:0 9px 30px #101b3933; }
.deposit-dialog .deposit-method-icon,.deposit-dialog .deposit-method>.icon { color:var(--gold); }
.deposit-dialog .deposit-method strong { color:var(--text); }
.deposit-dialog .deposit-method small,.deposit-dialog .deposit-soon-label { color:var(--muted); }
.deposit-dialog .deposit-soon-label { border-color:var(--line); background:#303959d9; }
.deposit-amount-input { background:var(--panel-deep); border-color:var(--line); }
.deposit-amount-input:focus-within { border-color:var(--gold); box-shadow:0 0 0 3px #ffbf6010; }
.deposit-amount-input>span:first-child { color:var(--gold); }
.deposit-amount-input>span:last-child,.deposit-credit-preview>span,.deposit-availability,.deposit-eyebrow { color:var(--muted); }
.deposit-amount-input input { color:var(--text); }
.deposit-dialog [name=amount_usd],.deposit-dialog [data-rbx-amount] [name=amount],.bjt-betting-panel input { background:var(--panel-deep); border-color:var(--line); color:var(--text); }
.deposit-dialog .crypto-recap { background:var(--panel-deep); border-color:var(--line); }
.deposit-dialog .crypto-rate,.deposit-dialog .rbx-account>.small { color:var(--muted); }
.bjt-betting-panel label { color:var(--muted); }
.bjt-seat.is-bet-target .bjt-hands:empty:before { border-color:var(--gold); background:#ffbf600a; box-shadow:12px -3px 0 -1px #2a3055,12px -3px 0 0 #ffbf6070; }
.deposit-hero { background:linear-gradient(115deg,#313d66,#283152); border-color:var(--line); }
.deposit-hero:after { background:linear-gradient(90deg,#2a3357ed,#2a335777 62%,transparent); }
.deposit-hero h3 { color:var(--text); }
.deposit-hero p,.deposit-redeem p { color:var(--muted); }
.deposit-quick button,.deposit-amount-field,.gift-purchase-amount,.crypto-copy,.crypto-rate,.crypto-network,.deposit-redeem { background:var(--panel-deep); border-color:var(--line); }
.deposit-quick button { color:var(--muted); }
.deposit-quick button:hover:not(:disabled) { border-color:var(--gold); color:var(--gold); }
.deposit-quick button.selected,.deposit-quick button.active { color:var(--gold); border-color:var(--gold); background:#ffbf6011; }
.deposit-credit-preview strong,.crypto-recap strong,.crypto-rate strong,.rbx-confirm>strong { color:var(--gold); }
.deposit-redeem>div>span { color:var(--gold); background:#ffbf6010; }
.deposit-redeem>div:first-child>span { color:var(--gold); background:#ffbf6010; border-color:#ffbf6030; }
.deposit-redeem strong { color:var(--text); }
.deposit-redeem-field input { background:var(--panel); color:var(--text); border-color:var(--line); }
.crypto-network>span,.crypto-copy-label,.crypto-state-note { color:var(--muted); }
.crypto-history>button,.rbx-history>button { border-color:var(--line); color:var(--muted); }
.crypto-history>button:hover,.rbx-history>button:hover { color:var(--text); }
.reward-code,.referral-link,.reward-stat,.reward-history,.reward-copy { background:var(--panel-deep); border-color:var(--line); }
.rakeback-card>strong,.reward-code strong,.referral-amount,.reward-total,.reward-card-top>span:first-child { color:var(--gold); }
.payout-notice,.rbx-notice,.notice { background:#aaa0e50a; border-color:#aaa0e54a; color:var(--muted); }
.payout-notice strong,.payout-notice a,.rbx-notice a { color:var(--gold); }
.status,.count-tag { background:#444c70; color:var(--muted); border-color:var(--line); }
.status.completed,.status.active,.status.connected { color:var(--green); background:#8bdfb510; }
.status.failed,.status.expired,.status.refunded { color:var(--red); background:#ffa3b310; }
.table-wrap { background:var(--panel); border-color:var(--line); }
th { background:#252d4c; color:var(--muted); border-color:var(--line); }
td,.table-wrap tr { color:var(--text); border-color:var(--line); }
.table-wrap tbody tr:hover { background:#ffffff03; }
.settings-panel h2,.house-stat>strong { color:var(--text); }
.settings-panel .form-help,.house-stat>span,.audit-detail { color:var(--muted); }
.security-config-status { background:var(--panel-deep); border-color:var(--line); color:var(--muted); }
.security-config-status.enabled { background:#8bdfb50d; color:var(--green); border-color:#8bdfb536; }
.chat-heading,.chat-form,.chat-message,.community-status,.chat-rains { border-color:var(--line); }
.chat-heading h2 { color:var(--text); }
.chat-message p,.chat-name { color:var(--text); }
.chat-message time,.chat-message small,.community-status,.chat-compose-footer>span { color:#a0a8cd; }
.chat-form textarea { background:var(--panel-deep); border-color:var(--line); color:var(--text); }
.chat-send { background:var(--gold); color:var(--gold-ink); border-color:var(--gold); }
.chat-show { background:var(--panel); color:var(--gold); border-color:var(--line); }
.chat-rain { background:var(--panel-deep); border-color:#69729c; }
.rain-heading>span,.rain-countdown { color:var(--gold); }
.rain-joined { color:var(--muted); }
.live-feed { border-color:var(--line); }
.feed-tabs,.feed-table th,.feed-table td,.feed-row { border-color:var(--line); }
.feed-table th { color:var(--muted); background:transparent; }
.feed-row { background:transparent; }
.feed-row:hover { background:#ffffff03; }
.feed-row.is-win .feed-result,.feed-row .positive { color:var(--green); }
.footer,.footer-policies,.legal-topbar { border-color:var(--line); color:var(--muted); }
.footer>span:first-child,.footer>span:last-child,.footer-policies a { color:var(--muted); }
.footer-policies a:hover { color:var(--gold); }
.legal-body { background:var(--bg); }
.legal-content,.legal-navigation { background:var(--panel); border-color:var(--line); }
.legal-navigation a.active,.legal-content a,.legal-contact a { color:var(--gold); }
.legal-date,.legal-footer,.legal-content p { color:var(--muted); }
.legal-navigation a.active { background:#ffbf600b; }
.install-body { background:var(--bg); }
.install-card { background:var(--panel); border-color:var(--line); color:var(--text); }
.toast { background:var(--panel2); color:var(--text); border-color:#6f789e; }
.toast.success { background:#294b45; color:#c4f7dd; border-color:#6db48e; }
.toast.error,.notice.error { background:#513246; color:#ffd0db; border-color:#925772; }

/* Every popup gets the same restrained, blue-tinted backdrop. */
dialog,#modal,.confirmation-dialog { background:var(--panel); border-color:var(--line); border-radius:15px; box-shadow:0 24px 90px #0a102a66; }
dialog::backdrop,#modal::backdrop,.confirmation-dialog::backdrop { background:rgba(18,25,48,.55); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
#modal .modal-heading { border-color:var(--line); }
#modal .modal-heading .icon-button { background:var(--panel2); border-color:var(--line); color:var(--muted); }
#modal .modal-heading .icon-button:hover { color:var(--gold); transform:rotate(90deg); }
.confirmation-mark { color:var(--gold); background:#ffbf6010; border-color:#ffbf6030; }
.form-error:not(:empty) { background:#ffa3b30b; color:#ffd0db; border-left-color:var(--red); }
.verification-widget { border-color:var(--line); }

/* Account access follows the mobile references, with the existing security checks. */
#modal.auth-dialog { width:min(520px,calc(100% - 28px)); max-width:520px; }
.auth-dialog .dialog-shell { padding:32px 36px 26px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
#modal.auth-dialog .modal-heading { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.auth-head { display:flex; align-items:center; gap:20px; margin:4px 0 30px; }
.auth-back { display:grid; place-items:center; flex:none; width:44px; height:42px; padding:0 0 5px; background:transparent; border:1px solid var(--gold); border-radius:9px; color:var(--gold); font-size:46px; line-height:1; font-weight:400; }
.auth-back:hover { background:#ffbf600b; }
.auth-tabs { display:flex; gap:22px; margin:0; }
.auth-tab { background:none; border:0; color:#9299bd; padding:8px 0; font-size:25px; font-weight:750; letter-spacing:-.5px; }
.auth-tab.active { color:var(--text); }
.auth-tab:hover { color:var(--gold); }
#modal.auth-dialog .stack { gap:20px; }
.auth-field { font-size:13px; color:var(--text); font-weight:500; }
.auth-field>input,.auth-password input { width:100%; min-height:49px; padding:13px 16px; border-color:#48517b; background:transparent; font-size:14px; border-radius:9px; }
.auth-field input::placeholder { color:#9298b9; }
.auth-field-help { font-size:11px; line-height:1.7; margin:-11px 0 -2px; }
.auth-password { display:block; position:relative; margin-top:8px; }
.auth-password input { padding-right:52px; }
.auth-password-toggle { position:absolute; right:8px; top:5px; width:40px; height:39px; display:grid; place-items:center; border:0; background:none; color:var(--muted); border-radius:7px; font-size:18px; }
.auth-password-toggle:hover,.auth-password-toggle[aria-pressed=true] { color:var(--gold); background:#ffffff04; }
.auth-referred { font-size:16px; color:var(--lavender); margin:0 0 0; }
.auth-referred strong { color:var(--text); font-weight:500; overflow-wrap:anywhere; }
.auth-referral summary { font-size:12px; color:var(--lavender); cursor:pointer; }
.auth-referral label { margin-top:12px; }
.auth-referral input { background:transparent; }
.auth-account-note { margin:0; font-size:12px; line-height:1.7; color:var(--muted); }
.auth-check { display:flex; align-items:flex-start; gap:10px; font-size:11px; line-height:1.8; color:var(--muted); font-weight:400; }
.auth-check input[type=checkbox] { margin:4px 0 0; width:15px; height:15px; min-height:15px; flex:none; }
.auth-check strong,.auth-check a { color:#e6e4ff; font-weight:600; }
.auth-check a:hover { color:var(--gold); }
.auth-cloudflare { font-size:10px; line-height:1.6; color:#a0a7c8; margin:0; }
#modal .auth-submit { width:100%; min-height:48px; font-size:14px; margin:2px 0 0; border-radius:9px; }
.auth-responsible { display:flex; justify-content:center; align-items:center; gap:16px; margin:30px 0 12px; }
.auth-age { display:grid; place-items:center; width:60px; height:60px; border:4px solid #ffbf6029; border-radius:50%; font-size:19px; font-weight:800; color:var(--gold); }
.auth-responsible>div { display:grid; gap:5px; }
.auth-responsible strong { color:var(--gold); font-size:19px; }
.auth-responsible>div>span { font-size:13px; color:var(--text); }
.auth-responsible-link { display:block; text-align:center; color:var(--muted); font-size:10px; text-decoration:underline; }
.auth-dialog .form-error { margin-top:0; }

@media(max-width:900px) {
  .topbar { min-height:66px; height:auto; padding:12px 18px; gap:12px; }
  .topbar>.mobile-menu,.topbar>.header-context { display:none; }
  .mobile-brand { display:flex; align-items:center; gap:8px; min-width:0; font-size:16px; font-weight:800; letter-spacing:-.4px; }
  .mobile-brand>span { max-width:145px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mobile-brand>img { width:31px; height:31px; }
  .header-right { margin-left:auto; gap:9px; }
  .header-auth .btn { min-height:38px; padding:9px 13px; font-size:12px; }
  .header-right .online-indicator { display:flex; margin-right:0; font-size:9px; gap:4px; }
  .header-right .online-indicator>span:last-child { display:none; }
  .header-right .balance strong { font-size:14px; }
  .header-right .balance>span { display:none; }
  .mobile-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); position:fixed; bottom:0; left:0; right:0; z-index:45; min-height:66px; padding:5px 8px calc(5px + env(safe-area-inset-bottom)); background:#2a3055fa; border-top:1px solid var(--line); box-shadow:0 -5px 24px #121a351f; }
  .mobile-nav>a,.mobile-nav>button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; border:0; padding:8px 2px; background:transparent; color:var(--muted); font-size:11px; line-height:1; min-height:54px; border-radius:8px; }
  .mobile-nav .icon { font-size:21px; color:var(--lavender); }
  .mobile-nav .active,.mobile-nav [aria-expanded=true] { color:var(--gold); }
  .mobile-nav .active .icon,.mobile-nav [aria-expanded=true] .icon { color:var(--gold); }
  .site-body { margin-left:0; margin-right:0; padding-bottom:calc(75px + env(safe-area-inset-bottom)); }
  #main { padding:20px 17px 30px; }
  .sidebar { z-index:60; bottom:calc(66px + env(safe-area-inset-bottom)); width:228px; max-width:calc(100vw - 45px); overflow-y:auto; box-shadow:12px 0 50px #0b112b66; transform:translateX(-100%); transition:transform .2s; }
  .sidebar.mobile-open { transform:translateX(0); }
  .mobile-shade { position:fixed; inset:0 0 calc(66px + env(safe-area-inset-bottom)); display:none; }
  .mobile-shade.open { display:block; z-index:55; background:rgba(18,25,48,.5); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
  .community { top:0; bottom:calc(66px + env(safe-area-inset-bottom)); width:min(340px,100vw); z-index:50; box-shadow:-15px 0 60px #0e163f66; }
  .mobile-chat-shade { display:block; position:fixed; inset:0 0 calc(66px + env(safe-area-inset-bottom)); z-index:46; border:0; padding:0; background:rgba(18,25,48,.4); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
  .chat-hidden .mobile-chat-shade { display:none; }
  .chat-show,.chat-hidden .chat-show { display:none; }
  .toast-stack { bottom:calc(84px + env(safe-area-inset-bottom)); right:15px; max-width:calc(100% - 30px); }
  .page-title { padding:19px 17px; margin-bottom:23px; }
  .page-title h1 { font-size:25px; }
  .footer { margin:0 17px; gap:14px; }
  .home-game { min-height:255px; }
  .auth-dialog .dialog-shell { padding:28px 28px 24px; }
}
@media(max-width:520px) {
  .mobile-brand { gap:6px; font-size:15px; }
  .mobile-brand>span { max-width:114px; }
  .topbar { padding:11px 14px; }
  .header-right { gap:8px; }
  .signed-in .mobile-brand>span { display:none; }
  .signed-in .header-right .balance { gap:4px; }
  .signed-in .header-right .balance strong { font-size:13px; max-width:108px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .profile-button .avatar { width:29px; height:29px; }
  .profile-chevron { display:none; }
  .header-auth { gap:7px; }
  .header-auth .btn { padding:10px 12px; font-size:11px; }
  .page-title { align-items:flex-start; flex-wrap:wrap; }
  .page-title .page-actions { width:100%; }
  .page-title .page-actions>.btn { flex:1; }
  .case-grid { gap:12px; }
  .search-tools input,.search-tools select { font-size:16px; }
  .case-card { border-radius:12px; padding-bottom:13px; }
  .case-art { height:156px; }
  .case-card h3 { font-size:13px; }
  .case-footer .price { font-size:12px; }
  .home-games { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .home-game { min-height:225px; }
  .home-game-label { padding:15px 12px 0; gap:7px; }
  .home-game-label strong { font-size:12px; letter-spacing:0; }
  .home-game-art { height:140px; min-height:140px; }
  .home-game-art>img { height:140px; width:100%; }
  .home-game-battles .home-game-art>img { height:115px; width:105px; left:calc(50% - 108px); }
  .home-game-battles .home-game-art>.home-battle-right { left:auto; right:calc(50% - 108px); }
  .home-versus { font-size:27px; }
  .home-playing-card { width:61px; height:88px; }
  .home-playing-card.card-back { font-size:32px; transform:translate(-19px,5px) rotate(-16deg); border-width:3px; }
  .home-playing-card.card-front { transform:translate(18px,-1px) rotate(14deg); }
  .home-playing-card.card-front b { font-size:16px; top:7px; left:8px; }
  .home-playing-card.card-front>span { font-size:36px; }
  .home-game-bottom { padding:10px 12px; min-height:61px; }
  .home-game-bottom>span:first-child { font-size:9px; line-height:1.6; }
  .home-game-arrow { width:25px; height:25px; }
  .home-tower-art { width:77%; gap:7px; }
  .home-tower-art b { height:19px; }
  .battle-row { grid-template-columns:minmax(0,1fr) auto; gap:13px; padding:16px; }
  .battle-row .battle-info { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
  .battle-row .battle-case-list { max-width:100%; gap:4px; }
  .battle-row .battle-case-list img { width:48px; height:48px; margin:0; }
  .battle-row>.battle-avatars { grid-column:1; grid-row:2; justify-content:flex-start; }
  .battle-row-actions { grid-column:2; grid-row:1/3; min-width:92px; padding-left:12px; border-left:1px solid var(--line); gap:15px; }
  .battle-row-actions .price { font-size:13px; }
  .battle-row-actions .btn { white-space:normal; text-align:center; font-size:10px; padding:10px; }
  .battle-row .battle-speed-tag { display:inline-block; margin-top:6px; }
  .battle-row h3 { margin-top:8px; }
  .battle-row p { font-size:10px; }
  .battle-list-tabs { display:flex; gap:6px; flex-wrap:wrap; }
  #modal.auth-dialog { width:calc(100% - 24px); max-height:92dvh; }
  .auth-dialog .dialog-shell { padding:24px 22px; max-height:90dvh; }
  .auth-head { gap:18px; margin-bottom:27px; }
  .auth-tabs { gap:19px; }
  .auth-tab { font-size:24px; }
  .auth-field>input,.auth-password input { min-height:49px; font-size:16px; }
  .auth-referral input { font-size:16px; }
  .auth-check { font-size:11px; }
  .auth-account-note { font-size:12px; }
  .auth-responsible { margin-top:26px; }
  .deposit-dialog .dialog-shell { padding:20px; }
}
@media(max-width:359px) {
  .mobile-brand>span { max-width:76px; }
  .mobile-brand>img { width:27px; height:27px; }
  .signed-in .mobile-brand>span { display:none; }
  .header-right .online-indicator { display:none; }
  .header-auth .btn { padding:9px; }
  .auth-dialog .dialog-shell { padding:22px 17px; }
  .auth-head { gap:14px; }
  .auth-tabs { gap:14px; }
  .auth-tab { font-size:22px; }
  .home-game-label { padding-left:10px; padding-right:10px; gap:5px; }
  .home-game-label strong { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after,dialog::backdrop { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
