/* Aurora Prestige 5.0 — approved Glass & Champagne direction.
   Real architecture behind live controls. Shared by both demo rule sets. */
:root{--text:#f6efdf;--muted:#d8cbb2;--gold:#e2c797;--line:#d2b77d40;--salon-glass:rgba(18,19,16,.18)}
html{background:#11110f;scrollbar-color:#837152 #151511}
body,body[data-theme=eclipse]{position:relative;isolation:isolate;min-height:100svh;background:#11110f;color:var(--text)}
body::before{content:"";position:absolute;inset:0;min-height:100svh;z-index:-1;pointer-events:none;background:linear-gradient(#06070518,#090a082b),url('prestige-glass-salon-v50.png') center top/cover no-repeat}
body[data-theme=eclipse]::before{filter:brightness(.75) saturate(.75)}
.topbar{width:calc(100% - 64px);max-width:1360px;margin:0 auto;padding:18px 12px 5px;min-height:66px;border:0;border-radius:0;background:none;box-shadow:none;gap:20px;z-index:10}
.topbar .brand,.topbar .brand>span,.topbar .brand>span:last-child{font:500 14px/1.5 'Manrope',Arial,sans-serif;letter-spacing:.28em;color:#ebd9b5}
.topbar .brand{flex-direction:row;gap:.75em;padding:0;align-items:center;white-space:nowrap}
.topbar .version-button,.candidate .topbar .version-button{font-size:12px;color:#d5c5a8;min-height:44px;display:flex;align-items:center}
.utility-menu>summary{min-height:44px;font-size:14px;color:#e3d5b9}
.utility-menu nav{background:#191a16f5;border-color:#cfb78166;border-radius:12px}
main{max-width:1424px;padding:0 32px 26px}
.arena,.cinema-mode .arena{border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;isolation:auto;min-height:0}
.ambient,.world-fx,.nebula-flow,.particles,.arena::before,.arena::after,.stage-header::before{display:none!important}
.stage-header{background:none;border:0;overflow:visible;isolation:auto}
.stage-bar{background:none;min-height:0;height:auto;padding:0;gap:0}
.stage-bar:empty{display:none}
#game-view .stage-header .game-heading,.candidate .stage-header .game-heading,.cinema-mode #game-view .stage-header .game-heading{min-height:138px;padding:10px 0 28px;background:none;border:0;filter:none}
#game-title,.candidate .game-heading h1{font:400 clamp(54px,6vw,92px)/1.08 Georgia,'Times New Roman',serif;letter-spacing:.16em;padding-left:.16em;color:#ead7b1;text-shadow:0 2px 18px #08080455}
#game-title span,.candidate .game-heading h1 span{font:500 14px/1.6 'Manrope',sans-serif;letter-spacing:.58em;padding-left:.58em;margin-top:10px;color:#e0c89b}
.game-content,.cinema-mode .game-content{width:min(1180px,100%);margin:0 auto;padding:5px 0 0}
.reel-area,.cinema-mode .reel-area{margin:0 auto;width:94%;border:0;background:none;box-shadow:none}
.reel-area::after{display:none}
.reels{--row:clamp(240px,25vw,338px);--edge:0px;gap:clamp(14px,4vw,68px);background:transparent!important;border:0;box-shadow:none;overflow:hidden;border-radius:0}
.reels .reel,.reels .symbol.center,.reels .strip-cell{background:transparent!important;border:0;box-shadow:none}
.reels .symbol.center,.reels .strip-cell{padding:4px 0 37px}
.reels .symbol.center .symbol-art,.reels .strip-cell .symbol-art{width:min(calc(var(--row) - 40px),100%);height:auto;aspect-ratio:1}
.reels .symbol.center .symbol-art>canvas,.reels .strip-cell .symbol-art>canvas{width:98%;height:98%}
.reels .symbol.center small{bottom:0;padding:4px 0;min-height:28px;font-size:14px;line-height:1.5;letter-spacing:.1em;color:#e2d3b5;background:none;text-shadow:0 2px 8px #000}
.reels .symbol.center:hover .symbol-art{transform:none}
.reels .symbol.center:focus-visible{outline:1px solid #efd5a1;outline-offset:-4px;border-radius:12px}
.result{background:none;border:0;margin:10px 0 12px;min-height:84px;padding:12px 0;gap:3px}
#result-title{font:400 clamp(23px,2.2vw,31px)/1.3 Georgia,'Times New Roman',serif;color:#f4ebd7;text-shadow:0 2px 10px #0008}
#result-title::before,#result-title::after{content:'';display:inline-block;width:54px;height:1px;vertical-align:middle;background:#d8bd838c;margin:0 22px}
.result.win #result-title{font-size:clamp(24px,2.4vw,34px);color:#ffe1a1}
#result-kicker{color:#e6cf9f;font-size:12px;font-weight:500;letter-spacing:.12em}
#result-detail{color:#e1d5be;font-size:14px;text-shadow:0 1px 8px #000}
.table-dock{overflow:visible;isolation:auto;margin:0;border:0;border-radius:0;background:none;box-shadow:none}
.controls{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(200px,.95fr);grid-template-areas:'balance stake spin' 'balance bets spin';align-items:center;gap:12px 38px;padding:27px 35px 28px;background:linear-gradient(125deg,#f9e9c609,#1416132b),var(--salon-glass);border:1px solid #e9d2a996;border-radius:24px;box-shadow:inset 0 1px 0 #fff5dd5c,inset 0 -1px 0 #f4dfa321,0 12px 32px #0002;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);isolation:isolate}
.controls::before{inset:3px;border:1px solid #fff0c51a;border-radius:21px;z-index:-1}
.controls>.metric,.controls>.stake-control{align-self:stretch;background:none;border:0;border-radius:0;padding:0;box-shadow:none;min-width:0;display:flex;flex-direction:column;justify-content:center}
.controls>.metric{padding-right:24px;border-right:1px solid #d8bd8357}
.controls>.stake-control{align-self:end}
.controls .metric>span,.controls .stake-control label{font-size:14px;line-height:1.6;font-weight:500;letter-spacing:.11em;color:#eadab9;text-shadow:none}
.controls .metric strong{font:400 clamp(32px,4vw,54px)/1.3 Georgia,'Times New Roman',serif;letter-spacing:-.02em;font-variant-numeric:lining-nums tabular-nums;color:#fff4de;padding:6px 0;overflow-wrap:anywhere;text-shadow:0 2px 8px #0004}
.controls .metric .metric-note{font:400 12px/1.6 'Manrope',sans-serif;letter-spacing:.14em;color:#e3d4b6}
.stake-heading{min-height:24px}
.stake-input-wrap{background:#0b0d091f;margin-top:6px;padding:0 14px;gap:10px;border:1px solid #d9c09696;border-radius:7px;box-shadow:inset 0 1px 3px #0001}
.stake-input-wrap input{height:59px;font:400 clamp(28px,3.4vw,43px)/1.3 Georgia,'Times New Roman',serif;font-variant-numeric:lining-nums tabular-nums;letter-spacing:0;padding:3px 0;color:#fff2d6;background:none;border:0;min-width:0;box-shadow:none}
.stake-input-wrap>span{font-size:14px;color:#e8dabd}
.stake-input-wrap:focus-within{border-color:#f7e0b0;box-shadow:0 0 0 3px #e3c28a26}
.stake-input-wrap input:focus-visible{outline:0}
.bet-options{align-self:start}
.bet-chips{gap:10px}
.bet-chips button{background:#0a0c081a;border:1px solid #d8bc888f;border-radius:6px;min-height:46px;padding:7px;font:400 21px/1.3 Georgia,'Times New Roman',serif;color:#f0e3ca;box-shadow:inset 0 1px #fff1ca08;transition:background .16s,border-color .16s}
.bet-chips button[aria-pressed=true]{background:linear-gradient(120deg,#ecd09bbf,#cba668ba);color:#271e11;border-color:#f1d9ac;box-shadow:inset 0 1px #fff0c875}
.bet-chips button:hover:not(:disabled){background-color:#e2c28c18;border-color:#ffe5b4}
.controls>.spin{align-self:center;min-height:116px;padding:24px 16px;flex-direction:row;justify-content:center;border-radius:10px;border:1px solid #f9e6bf;color:#302416;background:repeating-linear-gradient(0deg,#fff4df0a 0 1px,transparent 1px 3px),linear-gradient(120deg,#efd7a7 0%,#dfbf84 50%,#c7a05e 100%);font:600 22px/1.3 'Manrope',sans-serif;letter-spacing:.2em;box-shadow:inset 0 0 0 3px #7c5e3833,inset 0 1px 0 #fff9e7,0 3px 0 #775c38,0 12px 22px #0003;text-shadow:none;transition:transform .14s,filter .14s,box-shadow .14s}
.controls>.spin:hover:not(:disabled){filter:brightness(1.06);transform:translateY(-1px)}
.controls>.spin:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 0 0 3px #7c5e3833,0 1px 0 #775c38}
.controls>.spin:disabled{opacity:.52;filter:saturate(.65);cursor:default;transform:none}
.bet-error{color:#ffdfd4;background:#301811d9;border:1px solid #bc81694f;border-radius:6px;font-size:14px}
.payout-shelf{background:none;border:0;margin:18px auto 2px;padding:8px 0;max-width:700px;isolation:auto}
.payout-shelf .legend-item{grid-template-rows:40px auto auto;gap:1px;border-color:#dbc18b26;padding:0 8px}
.payout-shelf .legend-item .symbol-art{width:40px;height:40px}
.payout-shelf .legend-item>span:not(.symbol-art){font-size:12px;color:#d9c9ac;text-shadow:0 1px 5px #000}
.payout-shelf .legend-item b{font:500 15px/1.5 'Manrope',sans-serif;color:#eed5a2;text-shadow:0 1px 5px #000}
.console-bottom,.payout-shelf+.console-bottom{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px 28px;border:0;background:none;padding:14px 0 0;margin:0}
.game-options,.session-drawer{display:contents}
.game-options>summary,.session-drawer>summary,.console-bottom>.text-btn{display:inline-flex;order:1;align-items:center;min-height:44px;padding:8px 3px;gap:10px;background:none;font:400 16px/1.5 Georgia,'Times New Roman',serif;color:#f0e3c9;text-shadow:0 1px 8px #0006}
.game-options>summary::after,.session-drawer>summary::after{content:'+';font:400 19px/1 Arial,sans-serif;color:#e2c797;margin-left:6px}
.game-options[open]>summary::after,.session-drawer[open]>summary::after{content:'−'}
.game-options:not([open])> :not(summary),.session-drawer:not([open])> :not(summary){display:none!important}
.settings,.game-options[open]>.settings{order:10;flex:1 0 100%;border:1px solid #c3a5714f;border-radius:12px;background:#171914e0;margin-top:10px;padding:16px;gap:12px 24px}
.music-deck{order:11;flex:1 0 100%;padding:12px 16px 16px;border:0;background:#151711dc;border-radius:10px;font-size:14px}
.session-drawer>.below-game{order:12;flex:1 0 100%;padding:16px;margin:10px 0 0;border:1px solid #c3a5714f;border-radius:12px;background:#171914e0}
.session-drawer>.history{order:13;flex:1 0 100%;padding:12px;margin:0;background:#151711dc;border-radius:10px;max-width:100%}
.console-bottom .arena-footer{order:20;flex:1 0 100%;display:flex;justify-content:center;min-height:40px;padding:7px 0;margin:5px 0 0;background:none;color:#ddd0b7;font-size:12px;letter-spacing:.09em}
.console-bottom>.audio-toggle::before{display:none}
.console-bottom>.text-btn:hover,summary:hover{color:#fff4d8}
.candidate .console-bottom{padding-top:20px}
.candidate #session-state{padding:0 0 6px;text-align:center;display:block;min-height:0}
.candidate .stage-bar{justify-content:center}
.preview-stage::before{background:url('prestige-glass-salon-v50.png') center 35%/cover no-repeat}
.preview-final-caption{background:#161913a8;border-radius:6px}
dialog,#effects-dialog{background:linear-gradient(130deg,#29261fee,#11140ff7);border:1px solid #d4b78270;border-radius:18px;box-shadow:0 25px 90px #0009}
dialog::backdrop{background:#080a08c7;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.dialog-head button{min-width:44px;min-height:44px;border:1px solid #b99c6340;border-radius:50%}
.lineage-form{background:#f1d49a06;border-radius:10px;border-color:#c9ab7040}
.lineage-form.is-selected{background:#dcc28e14;border-color:#e1bd78}
.effect-choices button{border-radius:7px}
.cinema-mode .topbar{display:none}.cinema-mode main{padding-top:24px}
.cinema-mode .arena{min-height:0}.cinema-mode .session-drawer{display:contents}
@media(min-width:1550px){.topbar{padding-top:24px}.game-content{padding-top:16px}}
@media(max-width:900px){
 .controls{gap:12px 22px;padding:24px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(150px,.85fr)}
 .controls>.metric{padding-right:16px}.controls .metric strong{font-size:clamp(28px,4.5vw,42px)}.controls>.spin{font-size:19px;min-height:112px}
 .reels{--row:clamp(200px,29vw,260px);gap:18px}.console-bottom{gap:2px 22px}
}
@media(max-width:650px){
 body::before{background-image:linear-gradient(#06070518,#090a082b),url('prestige-glass-mobile-v50.png');background-size:100% 100%;background-position:center top}
 .topbar{width:100%;margin:0;padding:14px 16px 0;min-height:58px;grid-template-columns:1fr auto 1fr;gap:8px}
 .topbar .brand,.topbar .brand>span,.topbar .brand>span:last-child{font-size:11px;letter-spacing:.16em}.topbar .brand{gap:.6em}
 .topbar .version-button,.candidate .topbar .version-button{font-size:12px}.utility-menu>summary{font-size:13px;padding-left:0}
 main{padding:0 12px 18px}
 #game-view .stage-header .game-heading,.candidate .stage-header .game-heading,.cinema-mode #game-view .stage-header .game-heading{min-height:126px;padding:16px 0 25px}
 #game-title,.candidate .game-heading h1{font-size:clamp(40px,11.5vw,66px);letter-spacing:.14em;padding-left:.14em}
 #game-title span,.candidate .game-heading h1 span{font-size:12px;margin-top:9px;letter-spacing:.45em;padding-left:.45em}
 .game-content,.cinema-mode .game-content{width:100%;padding-top:12px}
 .reel-area,.cinema-mode .reel-area{width:100%}
 .reels{--row:clamp(160px,42vw,228px);gap:5px}
 .reels .symbol.center,.reels .strip-cell{padding:2px 0 31px}
 .reels .symbol.center .symbol-art,.reels .strip-cell .symbol-art{width:100%}
 .reels .symbol.center small{font-size:12px;letter-spacing:.02em;min-height:24px}
 .result{min-height:77px;padding:12px 4px;margin:5px 0 9px}
 #result-title{font-size:24px}#result-title::before,#result-title::after{width:22px;margin:0 10px}
 #result-detail{font-size:13px;line-height:1.6}.result.win #result-title{font-size:25px}
 .controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'balance stake' 'bets bets' 'spin spin';gap:17px 16px;padding:23px 20px 24px;border-radius:19px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
 .controls::before{border-radius:16px}
 .controls>.metric{padding-right:10px;justify-content:flex-start}.controls>.stake-control{align-self:start}
 .controls .metric>span,.controls .stake-control label{font-size:12px;letter-spacing:.06em;line-height:1.7}
 .controls .metric strong{font-size:clamp(25px,7vw,39px);line-height:1.45;padding:3px 0;letter-spacing:-.035em}
 .controls .metric .metric-note{font-size:10px;letter-spacing:.055em;line-height:1.5}
 .stake-input-wrap{padding:0 9px;gap:5px;margin-top:5px;border-radius:6px}
 .stake-input-wrap input{height:51px;font-size:clamp(25px,7vw,36px)}.stake-input-wrap>span{font-size:12px}
 .bet-chips{gap:10px}.bet-chips button{min-height:46px;font-size:22px}
 .controls>.spin{min-height:66px;font-size:21px;padding:17px;border-radius:8px;letter-spacing:.18em}
 .payout-shelf{margin:14px auto 0;padding:6px 0}.payout-shelf .legend-item{padding:0 2px;grid-template-rows:34px auto auto;gap:1px}
 .payout-shelf .legend-item .symbol-art{width:34px;height:34px}.payout-shelf .legend-item>span:not(.symbol-art){font-size:10px}.payout-shelf .legend-item b{font-size:13px}
 .console-bottom,.payout-shelf+.console-bottom{gap:0 16px;padding:9px 0 0}
 .game-options>summary,.session-drawer>summary,.console-bottom>.text-btn{font-size:15px;min-height:44px}
 .console-bottom .arena-footer{font-size:11px;margin-top:0;min-height:33px}
 .session-drawer>.below-game{flex-wrap:wrap}.settings{gap:10px 18px}.music-deck{gap:8px}
 .cinema-mode main{padding-top:12px}
}
@media(max-width:360px){
 .topbar{padding-left:12px;padding-right:12px}.topbar .brand,.topbar .brand>span,.topbar .brand>span:last-child{font-size:10px;letter-spacing:.11em}
 .controls{padding:19px 14px 20px;gap:15px 12px}.controls .metric strong{font-size:25px}.stake-input-wrap{padding:0 7px}
 .stake-input-wrap input{font-size:24px}.console-bottom{gap:0 11px}.game-options>summary,.session-drawer>summary,.console-bottom>.text-btn{font-size:14px}
 .reels{--row:152px}.reels .symbol.center small{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.controls>.spin,.bet-chips button{transition:none}.controls>.spin:hover:not(:disabled){transform:none}}

/* Desktop framing follows the available height, not just the screen width. */
@media(min-width:651px){
 body::before{position:fixed;inset:0;min-height:0;background-size:100% 100%;background-position:center}
 .topbar{width:calc(100% - 48px);max-width:1000px;min-height:48px;padding:2px 12px;gap:16px}
 .topbar .brand,.topbar .brand>span,.topbar .brand>span:last-child{font-size:12px;letter-spacing:.22em}
 main{max-width:1048px;padding:0 24px 12px}
 #game-view .stage-header .game-heading,.candidate .stage-header .game-heading,.cinema-mode #game-view .stage-header .game-heading{height:auto;min-height:86px;padding:4px 0 14px}
 #game-title,.candidate .game-heading h1{font-size:clamp(38px,6.4svh,60px);line-height:1.04;letter-spacing:.15em}
 #game-title span,.candidate .game-heading h1 span{font-size:12px;line-height:1.5;margin-top:6px}
 .game-content,.cinema-mode .game-content{width:min(920px,100%);padding:0}
 .reel-area,.cinema-mode .reel-area{width:min(740px,94%)}
 .reels{--row:clamp(146px,calc(100svh - 470px),244px);gap:28px}
 .reels .symbol.center,.reels .strip-cell{padding:2px 0 28px}
 .reels .symbol.center .symbol-art,.reels .strip-cell .symbol-art{width:min(calc(var(--row) - 32px),100%)}
 .reels .symbol.center small{font-size:12px;min-height:24px;padding:2px 0;letter-spacing:.06em}
 .result{min-height:54px;margin:4px 0 8px;padding:5px 0;gap:2px}
 #result-title,.result.win #result-title{font-size:24px;line-height:1.25}
 #result-title::before,#result-title::after{width:36px;margin:0 16px}
 #result-detail{font-size:13px;line-height:1.4}
 .controls{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(160px,.8fr);gap:8px 26px;padding:16px 24px;border-radius:18px}
 .controls::before{border-radius:15px}
 .controls>.metric{padding-right:20px}
 .controls .metric>span,.controls .stake-control label{font-size:13px;line-height:1.5;letter-spacing:.07em}
 .controls .metric strong{font-size:36px;line-height:1.2;padding:5px 0}
 .controls .metric .metric-note{font-size:11px;letter-spacing:.07em}
 .stake-heading{min-height:20px}
 .stake-input-wrap{margin-top:4px;padding:0 12px}
 .stake-input-wrap input{height:43px;font-size:30px}
 .bet-chips{gap:8px}.bet-chips button{min-height:36px;padding:4px;font-size:18px}
 .controls>.spin{min-height:92px;font-size:20px;padding:16px;border-radius:8px}
 .payout-shelf{max-width:540px;margin:8px auto 0;padding:0}
 .payout-shelf .symbol-legend{margin:0}
 .payout-shelf .legend-item{grid-template-rows:28px auto auto;gap:0;padding:0 6px}
 .payout-shelf .legend-item .symbol-art{width:28px;height:28px}
 .payout-shelf .legend-item>span:not(.symbol-art){font-size:11px;line-height:1.4}
 .payout-shelf .legend-item b{font-size:13px;line-height:1.4}
 .console-bottom,.payout-shelf+.console-bottom,.candidate .console-bottom{padding:4px 0 0;gap:0 24px}
 .game-options>summary,.session-drawer>summary,.console-bottom>.text-btn{min-height:36px;padding:4px 3px;font-size:15px}
 .console-bottom .arena-footer{min-height:26px;padding:3px 0;margin:0;font-size:11px;line-height:1.5}
 .cinema-mode main{padding-top:12px}
}
@media(min-width:651px) and (max-height:700px){
 .topbar{min-height:42px}.topbar .version-button,.candidate .topbar .version-button,.utility-menu>summary{min-height:36px}
 #game-view .stage-header .game-heading,.candidate .stage-header .game-heading,.cinema-mode #game-view .stage-header .game-heading{min-height:72px;padding:2px 0 9px}
 #game-title,.candidate .game-heading h1{font-size:38px}
 .reels{--row:clamp(130px,calc(100svh - 482px),218px)}
 .controls{padding:12px 20px;gap:6px 24px}.controls .metric strong{font-size:32px}
 .controls>.spin{min-height:86px}.stake-input-wrap input{height:39px;font-size:28px}
 .payout-shelf{margin-top:6px}
}
