/* Grand Collection: one instrument size, five material signatures. */
body[data-room]{--rail-size:110px;--edge-space:136px;--reference-width:4.486;--reference-max:245;--reference-gap:.13;--reference-overhead:349.78125}
body[data-room] main{width:calc(100% - var(--edge-space)*2);max-width:1380px;margin:0 auto;padding:0 8px 5px}
body[data-room] .topbar{position:absolute;inset:0 0 auto;width:100%;height:0;min-height:0;padding:0;margin:0;pointer-events:none;overflow:visible}
body[data-room] .topbar .version-button{position:absolute;top:13px;left:20px;pointer-events:auto;min-height:32px;padding:5px 9px;border-radius:9px;background:linear-gradient(125deg,#201c1680,#070e16bb);border-color:rgba(var(--ui-rgb),.25)}
body[data-room] .shared-masthead{padding:7px 0 0;text-align:center}
body[data-room] .shared-masthead .brand{display:flex!important;position:static!important;transform:none!important;justify-content:center;align-items:center;gap:7px;width:auto;height:16px;margin:0 0 6px;font:500 10px/16px 'Manrope',sans-serif;letter-spacing:.23em;color:#e9d5ab;text-decoration:none;pointer-events:auto}
body[data-room] #game-title{font-size:42px;line-height:1;margin:0 0 5px;letter-spacing:.19em}
body[data-room] #game-title span{font-size:7px;line-height:1;margin-top:6px;letter-spacing:.65em}
/* All six destinations live on the right, with independent accessible popovers. */
body[data-room] .topbar .header-actions{position:fixed;top:50%;right:18px;transform:translateY(-50%);width:var(--rail-size);display:flex;flex-direction:column;gap:9px;padding:8px;margin:0;pointer-events:auto;border:1px solid rgba(var(--ui-rgb),.32);border-radius:22px;background:linear-gradient(155deg,rgba(var(--ui-rgb),.08),transparent 35%),#060d16ed;box-shadow:inset 0 1px #fff4cf26,0 15px 42px #0008;backdrop-filter:blur(18px);max-height:calc(100svh - 24px)}
body[data-room] .topbar .platform-nav{display:flex;position:static;transform:none;flex-direction:column;gap:5px;width:100%;height:auto;margin:0;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none;border-radius:0}
body[data-room] .topbar .platform-nav button{width:100%;min-width:0;min-height:72px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:10px 3px;font:600 11px/1.2 'Manrope',sans-serif;letter-spacing:.03em;border-radius:14px;border:1px solid #ffffff0d;background:linear-gradient(120deg,#ffffff06,#ffffff00);color:#c8c8c5;text-align:center}
body[data-room] .topbar .platform-nav button span{font:500 6px/1.4 'Manrope',sans-serif;letter-spacing:.16em;color:#949da8}
body[data-room] .topbar .platform-nav button::before{content:'';display:block;width:23px;height:23px;background:var(--ui-accent);mask:var(--rail-icon) center/contain no-repeat;-webkit-mask:var(--rail-icon) center/contain no-repeat}
.platform-nav button[data-platform=solo]{--rail-icon:url('icons/solo.svg')}.platform-nav button[data-platform=duel]{--rail-icon:url('icons/duel.svg')}.platform-nav button[data-platform=atelier]{--rail-icon:url('icons/atelier.svg')}
body[data-room] .topbar .platform-nav button[aria-pressed=true]{background:linear-gradient(135deg,rgba(var(--ui-rgb),.2),rgba(var(--ui-rgb),.035));border-color:rgba(var(--ui-rgb),.55);box-shadow:inset 0 1px #fff9e125,0 5px 15px #0004;color:#fff3d9}
body[data-room] .topbar .platform-nav button[aria-pressed=true]::after{content:'';position:absolute;left:-5px;top:28%;height:44%;width:2px;background:var(--ui-accent);box-shadow:0 0 9px var(--ui-accent);border-radius:5px}
body[data-room] .topbar .platform-nav button:hover{transform:none;background:rgba(var(--ui-rgb),.13)}
body[data-room] .header-utilities{display:flex;flex-direction:column;gap:4px;width:100%;padding-top:8px;border-top:1px solid #ffffff18}
body[data-room] .topbar .header-utilities>*,body[data-room] .topbar .header-utilities>details>summary{width:100%;margin:0}
body[data-room] .topbar .game-options>summary,body[data-room] .topbar .utility-menu>summary,body[data-room] .topbar #rules-open{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:51px;padding:7px 2px;font:500 9px/1.2 'Manrope',sans-serif;color:#bec7d1;border-radius:10px;border:1px solid transparent;background:transparent}
body[data-room] .topbar .game-options>summary::after,body[data-room] .topbar .utility-menu>summary::after{display:none}
body[data-room] .topbar .game-options>summary::before,body[data-room] .topbar .utility-menu>summary::before,body[data-room] .topbar #rules-open::before{content:'';display:block;width:18px;height:18px;background:#c4c8ce;mask:var(--rail-icon) center/contain no-repeat;-webkit-mask:var(--rail-icon) center/contain no-repeat}
.game-options>summary{--rail-icon:url('icons/settings.svg')}.utility-menu>summary{--rail-icon:url('icons/menu.svg')}#rules-open{--rail-icon:url('icons/rules.svg')}
body[data-room] .topbar .header-utilities>button:hover,body[data-room] .topbar .header-utilities summary:hover{background:#ffffff0c;border-color:#ffffff14}
body[data-room] .topbar .game-options .settings-popover{position:fixed;top:auto;bottom:65px;right:calc(100% + 14px);width:300px;max-width:calc(100vw - 145px);max-height:calc(100svh - 36px);overflow:auto}
body[data-room] .topbar .utility-menu nav{position:absolute;left:auto;right:calc(100% + 15px);top:auto;bottom:0;width:210px;max-width:calc(100vw - 145px)}
body[data-room] .world-selector{margin:5px auto 5px}
body[data-room] .room-switch{width:min(720px,100%);padding:3px;gap:3px;border-radius:24px;overflow:hidden;border-color:#d8c29260}
body[data-room] .room-switch button{min-height:36px;height:36px;padding:3px 5px;gap:0;border-radius:20px}
body[data-room] .room-switch .room-name{font-size:15px;line-height:1.15}
body[data-room] .room-switch button .room-subtitle{display:none!important}
body[data-room] .room-switch button::before{opacity:.83!important;filter:brightness(.9);background-position:center 46%!important}
body[data-room] .room-switch button::after{background:linear-gradient(90deg,#04081055,#04081099,#04081044)}
body[data-room] .room-switch button[aria-pressed=true]::before{opacity:1!important}
body[data-room] .room-switch #room-abyss .room-name{font-size:11px}.room-switch #room-star .room-name{font-size:14px}
/* A room's crown/foot never changes the exterior size. The default Gold/Blue
   reference is 3.8 rows high and 4.486 rows wide (3.72 on a phone), from 9.2. */
body[data-room] .reels{--reference-width:4.486;--reference-max:245;--row-min:20;--row-max:245;--reel-width-factor:calc(var(--reference-width)*var(--capsule-height)/3.8);--row:calc(clamp(20px,min(24vw,calc((100svh - 272px)/3.8)),245px)*3.8/var(--capsule-height));width:calc(var(--row)*var(--capsule-height)*var(--reference-width)/3.8);gap:calc(var(--row)*var(--capsule-height)*.13/3.8)}
body[data-room] .reels .symbol .symbol-art,body[data-room] .reels .symbol.center .symbol-art,body[data-room] .reels .strip-cell .symbol-art{max-width:76%!important}
body[data-room] .reels .reel::after{inset:0 -4%;background-size:var(--capsule-size);background-repeat:no-repeat}
body[data-room] .reel-area{max-width:none;width:100%;padding:0}
body[data-room] .dual-game-note{margin:3px auto 0}
body[data-room] .orbit-console{margin-top:3px}
.club-teaser{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px;margin:14px auto;border:1px solid #d6be8744;border-radius:18px;background:linear-gradient(100deg,#060b16ed,#131527bd),url('room-star-v920.webp') center/cover}
.club-teaser h2{font:30px/1.1 Georgia,serif;color:#f4e2bb;margin:8px 0}.club-teaser p{font-size:12px;color:#b8c6d5;margin:0}.club-teaser button{white-space:nowrap}
body #club-dialog{width:min(850px,calc(100vw - 26px));max-height:calc(100svh - 30px);padding:26px;border:1px solid #caba965c;border-radius:23px;background:radial-gradient(ellipse at 0 0,#38405645,transparent 65%),#071019;color:#ede5d6;box-shadow:0 30px 100px #000b;overflow:auto}
#club-dialog::backdrop{background:#010610c2;backdrop-filter:blur(9px)}
#club-dialog .dialog-head{position:relative;align-items:center;margin-bottom:18px}#club-dialog .dialog-head h2{font:36px/1.15 Georgia,serif;margin:3px 0}
#club-dialog .dialog-head button{font-size:18px;width:40px;min-height:40px;border-radius:50%;border:1px solid #ffffff30;background:#ffffff08}
.club-tabs{display:flex;gap:6px;border-bottom:1px solid #ffffff1c;padding-bottom:12px;margin-bottom:12px}.club-tabs button{flex:1;min-height:40px;font:500 11px 'Manrope',sans-serif;padding:8px 9px;border:1px solid transparent;border-radius:9px;color:#9aaabd;background:#ffffff04}.club-tabs button[aria-pressed=true]{border-color:#dec89570;color:#f8dfac;background:#c3a76817}
.club-status{font-size:11px;min-height:18px;color:#dac38e}.club-status.is-error{color:#ffb4a7}.club-section h3{font:26px/1.2 Georgia,serif;margin:20px 0 8px}.club-section p{font:12px/1.6 'Manrope',sans-serif;color:#b6c4d0;margin:8px 0}.club-section label{display:block;font:11px/1.7 'Manrope',sans-serif;color:#c7d2df;margin-top:18px}
.club-balance{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #dccb9350;padding:17px 22px;border-radius:13px;background:linear-gradient(105deg,#b8a5631a,#ffffff02)}.club-balance small{display:block;font-size:8px;letter-spacing:.18em;color:#d7bb83}.club-balance strong{display:block;font:38px/1.2 Georgia,serif;font-variant-numeric:tabular-nums}.club-balance p{max-width:260px;font-size:11px}
.landscape-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.landscape-card{position:relative;overflow:hidden;border:1px solid #ffffff26;border-radius:15px;background:#030b15}.landscape-card img{width:100%;height:132px;object-fit:cover;display:block}.landscape-card>div{padding:14px}.landscape-card h4{font:23px/1.2 Georgia,serif;margin:0}.landscape-card p{font-size:10px;margin:6px 0 12px}.landscape-card button,.club-turns button,.invitation-code button,.inbox-letter button{border:1px solid #e1c98c55;border-radius:8px;background:#c6ab7020;color:#ffe5b0;padding:9px 12px;min-height:40px;font-size:11px}.landscape-card button{width:100%}.landscape-card button:disabled{opacity:.45;cursor:default}
.club-turns{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.club-turn-card{border:1px solid #ffffff22;border-radius:10px;text-align:center;padding:13px 5px;background:#ffffff04}.club-turn-card strong{display:block;font:26px Georgia,serif}.club-turn-card small{display:block;font:9px 'Manrope',sans-serif;margin:8px 0;color:#bbc8d4}.club-turn-card button{font-size:9px;padding:5px;min-height:36px;width:100%}.club-turn-card button:disabled{opacity:.35}
.invitation-code{display:flex;gap:8px;margin:8px 0}.invitation-code input{flex:1;min-width:0;border:1px solid #7c91a34a;background:#030911;border-radius:10px;padding:12px;color:#eee4cf;font:15px/1.3 'Manrope',sans-serif;letter-spacing:.06em}.invitation-code button{white-space:nowrap}.referral-milestones{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:18px 0}.referral-step{border:1px solid #a6bbd12e;padding:15px 5px;text-align:center;border-radius:11px}.referral-step strong{display:block;font:26px Georgia,serif}.referral-step small{display:block;font-size:9px;line-height:1.5;margin-top:6px;color:#a5b6c4}.referral-step.complete{border-color:#e2cb8760;background:#ad914020}.referral-step.complete strong{color:#ebd295}
#club-dialog .club-explainer,#club-dialog .club-footnote{font-size:10px;line-height:1.6;color:#98aabb}.club-footnote{border-top:1px solid #ffffff1c;margin:22px 0 0;padding-top:15px}
.inbox-letter{border:1px solid #99adba33;border-radius:13px;padding:16px;margin:12px 0;background:#ffffff03}.inbox-letter.unread{border-color:#debf6d66;background:linear-gradient(100deg,#d4b5660c,transparent)}.inbox-letter h4{font:22px Georgia,serif;margin:3px 0}.inbox-letter time{font-size:9px;color:#c6ab74;letter-spacing:.12em}.inbox-letter p{font-size:11px}.inbox-letter button{min-height:32px;padding:6px 10px}.club-optin{display:flex!important;gap:10px;align-items:center}#club-dialog input[type=checkbox]{width:18px;height:18px;accent-color:#dac28d}
#inbox-count:not(:empty){display:inline-block;border-radius:8px;padding:1px 5px;background:#e6cd97;color:#211b11;font-size:9px;margin-left:6px}
body[data-room] .duel-instrument{width:calc(var(--row)*var(--capsule-height)*var(--reference-width)/3.8);gap:calc(var(--row)*.1)}
@media(max-width:1100px){body[data-room]{--rail-size:83px;--edge-space:105px}body[data-room] .topbar .header-actions{right:12px;padding:6px}.topbar .platform-nav button span{letter-spacing:.05em!important}body[data-room] .topbar .platform-nav button{font-size:10px}}
@media(max-width:650px){
 body[data-room]{--rail-size:43px;--reference-width:3.72;--reference-max:180;--reference-gap:.07;--reference-overhead:272}
 body[data-room] main{width:calc(100% - 50px);margin:0 46px 0 4px;padding:0 0 4px}
 body[data-room] .shared-masthead{padding-top:7px}body[data-room] .shared-masthead .brand{font-size:7px;height:13px;line-height:13px;gap:5px;letter-spacing:.17em;margin:0 0 5px}
 body[data-room] #game-title{font-size:27px;line-height:1;margin:0 0 5px}body[data-room] #game-title span{font-size:6px;margin-top:5px}
 body[data-room] .topbar .version-button{top:7px;left:6px;padding:4px 5px;min-height:24px;border-radius:6px}.version-button span,.version-button small{display:none}.version-button b{font-size:11px;grid-column:1}
 body[data-room] .topbar .header-actions{right:3px;width:43px;padding:3px;gap:5px;border-radius:14px}
 body[data-room] .topbar .platform-nav button{padding:7px 0;min-height:59px;font-size:7px;gap:6px;border-radius:9px}
 body[data-room] .topbar .platform-nav button span{display:none}body[data-room] .topbar .platform-nav button::before{width:20px;height:20px}body[data-room] .topbar .platform-nav button[aria-pressed=true]::after{left:-3px}
 body[data-room] .header-utilities{gap:2px;padding-top:5px}body[data-room] .topbar .game-options>summary,body[data-room] .topbar .utility-menu>summary,body[data-room] .topbar #rules-open{min-height:48px;font-size:6px;gap:5px;padding:5px 0;border-radius:8px}
 body[data-room] .topbar .game-options .settings-popover{right:calc(100% + 8px);bottom:0;width:285px;max-width:calc(100vw - 65px);padding:12px}body[data-room] .topbar .utility-menu nav{right:calc(100% + 8px);max-width:calc(100vw - 65px);bottom:0}
 body[data-room] .world-selector{margin:4px auto}body[data-room] .room-switch{padding:2px;gap:2px;border-radius:16px}body[data-room] .room-switch button{min-height:32px;height:32px;padding:2px 0;border-radius:13px}body[data-room] .room-switch .room-name{font-size:10px}body[data-room] .room-switch #room-abyss .room-name{font-size:8px;letter-spacing:.02em}body[data-room] .room-switch #room-star .room-name{font-size:9px;letter-spacing:0}
 body[data-room] .reels{--reference-width:3.72;--reference-max:180;width:calc(var(--row)*var(--capsule-height)*3.72/3.8);gap:calc(var(--row)*var(--capsule-height)*.07/3.8)}
 body[data-room] .reels .symbol .symbol-art,body[data-room] .reels .symbol.center .symbol-art,body[data-room] .reels .strip-cell .symbol-art{max-width:82%!important}
 body[data-room] .orbit-console{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 61px;gap:3px 4px;padding:5px;border-radius:12px}
 body[data-room] .orbit-console>.metric,body[data-room] .orbit-console>.stake-control{padding:0 7px;height:43px;min-height:43px}body[data-room] .orbit-console .metric strong,body[data-room] .orbit-console .stake-input-wrap input{font-size:20px}
 body[data-room] .orbit-console>.spin{width:61px;min-height:76px}.console-hints .bet-hint{font-size:6px}body[data-room] .dual-game-note>p:last-child{font-size:7px;line-height:1.5}body[data-room] .dual-game-title{font-size:9px}
 .club-teaser{padding:16px;flex-direction:column;align-items:stretch;gap:14px}.club-teaser h2{font-size:25px}
 body #club-dialog{padding:17px;width:calc(100vw - 20px);max-height:calc(100svh - 20px);border-radius:18px}.club-tabs button{font-size:10px;padding:7px 4px}.club-balance{padding:14px;gap:12px}.club-balance strong{font-size:30px}.club-balance p{font-size:9px;max-width:155px}.landscape-grid{gap:9px}.landscape-card img{height:104px}.landscape-card>div{padding:10px}.landscape-card h4{font-size:18px}.landscape-card p{font-size:9px;min-height:27px}.landscape-card button{font-size:10px;padding:7px 4px}.club-section h3{font-size:24px}
 .club-turns{grid-template-columns:repeat(3,1fr)}.referral-step{padding:12px 3px}.referral-step strong{font-size:22px}.referral-step small{font-size:8px}.invitation-code input{font-size:11px;padding:10px;letter-spacing:0}.invitation-code button{font-size:10px;padding:8px}
 body[data-room] .duel-instrument{--row:clamp(15px,calc((100vw - 75px)*3.8/(2*3.72*var(--capsule-height))),80px)}.duel-players{gap:5px}
}
@media(min-width:651px){body[data-room] .duel-instrument{--row:clamp(18px,min(calc((100vw - var(--edge-space)*2 - 64px)*3.8/(2*4.486*var(--capsule-height))),calc((100svh - 315px)/var(--capsule-height))),180px)}}
@media(max-height:520px) and (min-width:651px){body[data-room] .topbar .header-actions{top:10px;transform:none}.topbar .platform-nav button{min-height:43px!important;padding:3px!important;gap:2px!important}.topbar .platform-nav button span{display:none!important}.header-utilities{gap:0!important}.topbar .header-utilities summary,.topbar #rules-open{min-height:38px!important}}
/* User's 9.2 console finish, with a shared height and common text baseline. */
body[data-room] .orbit-console{width:min(1000px,100%);max-width:1000px;padding:0;margin:4px auto 0;gap:10px;min-height:58px;grid-template-columns:minmax(0,1.15fr) minmax(0,1.1fr) minmax(0,1.2fr) 96px;grid-template-areas:'balance stake bets spin';border:0!important;border-radius:0;background:none!important;box-shadow:none!important;backdrop-filter:none}
body[data-room] .orbit-console>.metric,body[data-room] .orbit-console>.stake-control{height:58px;min-height:58px;max-height:58px;padding:7px 13px;grid-template-rows:11px 27px;gap:4px;border:1px solid #cfbd8c45;border-radius:11px;background:linear-gradient(135deg,#f9f1cf0b,transparent 60%),#0b1216e8;box-shadow:inset 0 1px #fff5cb26,0 5px 16px #0005}
body[data-room] .orbit-console .balance-value,body[data-room] .orbit-console .stake-input-wrap{height:27px;line-height:27px}
body[data-room] .orbit-console .metric strong,body[data-room] .orbit-console .stake-input-wrap input{font:400 25px/27px Georgia,serif;height:27px;min-height:27px}
body[data-room] .orbit-console .bet-options{padding:0;align-self:stretch;height:58px}
body[data-room] .orbit-console .bet-chips{height:58px;box-sizing:border-box;padding:4px;border:1px solid #cfbd8c40;border-radius:11px;background:#091216e3;box-shadow:inset 0 1px #fff5cb18,0 5px 16px #0004}
body[data-room] .orbit-console .bet-chips button{min-height:0;font-size:17px}
body[data-room] .orbit-console>.spin{height:58px;min-height:58px;max-height:58px;width:96px;border-radius:12px;font-size:11px;box-shadow:inset 0 1px #fff9e5,inset 0 -3px #93713c88,0 0 0 3px #d9bc7317,0 6px 15px #0008}
@media(max-width:650px){
 body[data-room] .orbit-console{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 61px;grid-template-areas:'balance stake spin' 'bets bets bets';gap:5px;min-height:0}
 body[data-room] .orbit-console>.metric,body[data-room] .orbit-console>.stake-control{height:48px;min-height:48px;max-height:48px;padding:4px 8px;gap:2px;grid-template-rows:11px 24px;border-radius:9px}
 body[data-room] .orbit-console .metric strong,body[data-room] .orbit-console .stake-input-wrap input{font-size:20px;line-height:24px;height:24px;min-height:24px}
 body[data-room] .orbit-console .balance-value,body[data-room] .orbit-console .stake-input-wrap{height:24px;line-height:24px}
 body[data-room] .orbit-console>.spin{width:61px;height:48px;min-height:48px;max-height:48px;font-size:10px;border-radius:10px}
 body[data-room] .orbit-console .bet-options,body[data-room] .orbit-console .bet-chips{height:35px}body[data-room] .orbit-console .bet-chips{padding:2px;border-radius:8px}body[data-room] .orbit-console .bet-chips button{font-size:15px;min-height:0}
}
