html,body{width:100%;height:100%;margin:0;background:var(--bg)}
.icon-action{width:42px;height:42px;padding:0!important;display:inline-grid;place-items:center}.icon-action.muted{color:#9aa5a8}
body{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
header{width:100%;max-width:none;flex:none;margin:0;padding:10px 16px}
main{width:100%;max-width:none;margin:0;padding:12px;flex:1;min-height:0;overflow:auto}
/* Compact, non-scrolling setup. */
main:not(.playing):has(.setup-grid){overflow:hidden;display:flex;align-items:center;justify-content:center}
.intro{display:none}
.setup-grid{width:min(1080px,calc(100% - 32px));max-height:100%;min-height:0;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:18px}
.map-preview{min-height:0}.map-caption{left:18px;bottom:18px}.map-caption h2{font-size:36px}.map-caption p{font-size:14px}
.setup-panel{min-height:0;padding:20px;gap:12px}.setup-panel h3{font-size:26px}.setup-panel input{padding:8px 10px;margin-top:3px}
.setup-panel .portrait{height:clamp(52px,14vh,116px);width:auto;max-width:none;aspect-ratio:1/2}
.setup-panel .alien-choice{padding-bottom:2px}.setup-panel .alien-choice>span{padding:0;font-size:13px}
.setup-panel .aliens{gap:5px}.setup-panel .quiet{padding:6px 9px;font-size:13px}.setup-panel .primary{padding:10px;margin-top:0}
.setup-panel>.hint,.setup-panel .player-color{display:none}.player-tabs{gap:3px;flex-wrap:nowrap;min-height:28px}.player-tabs button{padding:4px;font-size:12px;flex:1;min-width:0}
/* Board reaches all viewport edges, with controls inside its boundary. */
@media(hover:hover) and (pointer:fine){
 .playing .board-scroll{overflow:auto;scrollbar-width:none}.playing .board-scroll::-webkit-scrollbar{display:none}
}
body:has(main.playing)>header{position:absolute;z-index:30;top:env(safe-area-inset-top);left:env(safe-area-inset-left);right:env(safe-area-inset-right);width:auto;pointer-events:none;border:0;background:none}
body:has(main.playing)>header .brand,body:has(main.playing)>header .header-actions,body:has(main.playing)>header .header-player-strip{pointer-events:auto}
body:has(main.playing)>header .edition{display:none}
main.playing{position:relative;flex:1;width:100%;height:100%;padding:0;overflow:hidden}
.playing .board-heading,.playing .map-hint{display:none}
.playing .game-layout,.playing .game-layout>section,.playing .board-shell{position:absolute;inset:0;display:block;margin:0;padding:0;border:0;border-radius:0;min-height:0;overflow:hidden}
.playing .board-shell:before,.playing .board-shell:after{content:'';position:absolute;z-index:6;left:0;right:0;height:74px;pointer-events:none}
.playing .board-shell:before{top:0;background:linear-gradient(#10211fed,transparent)}
.playing .board-shell:after{bottom:0;background:linear-gradient(transparent,#10211fed)}
.playing .board-scroll{position:absolute;inset:0;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y}
.playing .board-scroll{cursor:grab}.playing .board-scroll.dragging{cursor:grabbing;scroll-behavior:auto}.playing .board,.playing .board *{user-select:none;-webkit-user-select:none}
.playing .board{width:100%;min-height:100%;margin:0;background-size:cover}
.playing .board-scroll{background:#263d30}
.playing .legend{position:absolute;z-index:7;left:12px;bottom:12px;max-width:calc(100% - 350px);border:1px solid #71847388;border-radius:8px;background:#142820ed;padding:8px 12px;gap:10px;pointer-events:none}
.playing .side{position:absolute;z-index:20;right:max(12px,env(safe-area-inset-right));top:72px;bottom:12px;width:300px;max-height:none;display:flex;flex-direction:column;gap:10px;overflow:auto;align-content:start;isolation:isolate;pointer-events:auto}
.playing .side>*{flex:none}.playing .turn-panel{padding:16px;background:#182a2bf5}.playing .turn-panel h2{font-size:28px}.playing .turn-stats{margin-bottom:8px}.playing .dice-area{padding:10px 0;margin-bottom:8px}.playing .status{min-height:0;margin:10px 0}
.playing .side button{position:relative;z-index:1;pointer-events:auto;touch-action:manipulation}
@media(min-width:851px){
 .playing .game-layout>section{right:324px}
 .playing .side{top:0;right:0;bottom:0;width:324px;padding:72px 12px 12px;box-sizing:border-box;border-left:1px solid #42545a;background:#111a21}
 .playing .desktop-map-name{display:block;position:absolute;top:18px;left:16px;max-width:130px;overflow:hidden;text-overflow:ellipsis;color:#eee7d8;font:600 22px/1 'Barlow Condensed',sans-serif;letter-spacing:.02em;white-space:nowrap}
 .playing .legend{max-width:calc(100% - 24px)}
 .playing .history{max-width:min(370px,calc(100% - 24px))}
 .playing .side>.event-card{order:-1;position:relative;z-index:2;box-shadow:0 12px 34px #0009}
}
.playing .roster{display:none}
.playing .history{position:absolute;z-index:7;left:12px;bottom:64px;margin:0;padding:8px 12px;border:1px solid #71847388;border-radius:8px;background:#142820f5;max-width:calc(100% - 350px)}
.playing .history ol{max-height:25vh}.tile.skip{background:linear-gradient(#cf5965,#702936);border-color:#ffd2d6;color:#fff;box-shadow:0 7px 0 #461c25,0 9px 0 #b76e78,0 0 14px #d84f6066,0 16px 12px #0009}
@media(max-width:850px){
 header{padding:8px 12px;gap:10px}.edition{display:none}.brand{font-size:22px}.header-actions{gap:6px}.header-actions .quiet{padding:6px 9px;font-size:13px}
 .playing .roster{top:58px;left:8px;right:8px;max-height:50px}.playing .roster-player small{font-size:12px}
 .playing .side{top:auto;bottom:max(8px,env(safe-area-inset-bottom));left:8px;right:8px;width:auto;max-height:44%;overflow:auto;gap:6px;border-radius:8px;background:#182a2bf5}
 .playing .deck{display:none}.playing .turn-panel{padding:10px;border-bottom:0}.playing .turn-panel .eyebrow{font-size:11px;margin-bottom:3px}.playing .turn-panel h2{font-size:23px;margin-bottom:5px}
 .playing .turn-stats{margin-bottom:4px}.playing .dice-area{float:left;border:0;padding:0;margin:0 9px 4px 0}.playing .die{width:38px;height:38px;padding:7px;gap:3px}.playing .dice-copy{display:none}.playing .status{font-size:13px;margin:5px 0;min-height:36px}.playing .turn-panel>.primary{padding:10px;clear:both}
 .playing .event-card{padding:12px}.playing .event-card h3{font-size:24px;margin:6px 0}.playing .event-card p{font-size:14px}.playing .event-card .primary{margin-top:8px;padding:10px}.playing .effect{margin-top:8px;padding-top:6px}
 .playing .legend{display:none}.playing .history{bottom:auto;top:62px;left:8px;max-width:70%;font-size:12px;padding:5px 8px}.playing .history ol{max-height:20vh}
}
@media(max-width:540px){
 main{padding:8px}.setup-grid{display:flex;flex-direction:column;gap:7px;width:min(420px,100%)}.map-preview{flex:none;height:66px;min-height:0}.map-badge{display:none}.map-caption{inset:8px 12px}.map-caption h2{font-size:26px}.map-caption .eyebrow{font-size:10px;margin:0}.map-caption>p:last-child{display:none}
 .setup-panel{padding:10px;gap:6px}.setup-panel .portrait{height:clamp(44px,9vh,72px)}.setup-panel h3{font-size:21px}.setup-panel label{font-size:13px}.setup-panel .hint{font-size:12px}.setup-panel .player-kind{font-size:13px}.setup-panel .row .hint{font-size:11px}
}
@media(max-height:540px) and (min-width:541px){
 header{padding:6px 12px}.setup-panel{gap:4px;padding:8px}.setup-panel .portrait{height:44px}.setup-panel .row h3{display:none}.setup-panel input{padding:4px 8px}.setup-panel .primary{padding:7px}.setup-panel .quiet{padding:4px 7px}.map-caption>p:last-child{display:none}
 .playing .side{left:auto;right:8px;top:50px;bottom:8px;width:270px;max-height:none}.playing .roster{right:290px}.playing .history{top:auto;bottom:8px;max-width:calc(100% - 310px)}
}
/* Map dimensions include the same clear margin around every outer field. */
.playing .board{--map-scale:.90;width:max(100%,calc(var(--world-width)*var(--map-scale)*1px));min-width:0;min-height:0;aspect-ratio:var(--world-width)/var(--world-height);background-image:var(--map-image);background-size:cover;background-position:center;background-repeat:no-repeat;container-type:inline-size}
.playing .board .tile{width:calc(56.8/var(--world-width)*100%);height:calc(41.8/var(--world-height)*100%);font-size:clamp(12px,1.3cqw,21px)}
.playing .board .tile.start{width:calc(264/var(--world-width)*100%);height:calc(152/var(--world-height)*100%);font-size:14px}
.playing .board .tile.finish{width:calc(96/var(--world-width)*100%);height:calc(66.5/var(--world-height)*100%);font-size:12px}
.playing .board.map-neonova:before{background:linear-gradient(#101b3544,#10203966)}
.map-neonova .map-place{background:#12243cea;border-color:#72c9e0;color:#c5f3ff}
.map-selection{position:absolute;z-index:3;left:14px;right:14px;top:14px;display:flex;gap:8px}
.map-selection button{flex:1;padding:9px 12px;text-align:left;border:1px solid #849394;border-radius:7px;background:#10212de8;font-weight:700;font-size:15px}
.map-selection button small{display:block;color:#b9c9ca;font-size:12px;font-weight:400}
.map-selection button.selected{border-color:#efbb7b;background:#354046;box-shadow:inset 0 0 0 1px #efbb7b}
.map-preview .map-badge{top:90px}
.setup-panel .portrait svg{transform:scale(.88);transform-origin:center}
.setup-panel .alien-choice>span{font-size:calc(13px - 1pt)}
.playing .history{padding:0;max-width:min(370px,calc(100% - 350px))}
.playing .history summary{list-style:none;display:flex;align-items:center;gap:6px;padding:8px 10px;color:#e4e9de;font-size:12px}
.playing .history summary::-webkit-details-marker{display:none}
.playing .history summary:hover{background:#344c43;border-radius:7px}
.playing .history[open]{width:370px}
.playing .history ol{padding:0 12px 10px;margin-top:0}
@media(max-width:850px){.playing .board{--map-scale:.80}.playing .history{max-width:calc(100% - 16px)}.playing .history[open]{width:min(340px,calc(100% - 16px))}}
@media(max-width:540px){.map-selection{inset:6px 8px;left:auto;width:55%;gap:5px}.map-selection button{padding:4px 7px;font-size:13px}.map-selection button small{font-size:11px}.map-preview .map-caption{right:58%}.map-preview .map-caption .eyebrow{display:none}.map-preview .map-caption h2{font-size:23px}}
/* Labels use board coordinates and avoid all field and number bounds. */
.playing .board .map-place{z-index:4;display:flex;align-items:center;justify-content:center;padding:0 8px;letter-spacing:.09em;line-height:1.1;white-space:nowrap;pointer-events:none;box-shadow:0 3px 10px #0008}
.playing .board .tile.casino,.help-field.tile.casino{background:linear-gradient(#24242a,#07090e);border-color:#d7dce3;color:#fff;box-shadow:0 7px 0 #050608,0 9px 0 #66727d,0 0 16px #fff8;font-size:22px}
.playing .board .tile.casino .field-symbol{color:#fff}
.playing .board .tile.card-field-preview{z-index:12;box-shadow:0 0 0 9px #fff9,0 0 35px 22px #f8d573,0 8px 0 #604b26;animation:field-preview-pulse .8s ease-in-out infinite alternate}
.card-choice.previewing{border-color:#ffe3a2;background:#594624}
@keyframes field-preview-pulse{to{box-shadow:0 0 0 16px #fff4,0 0 46px 30px #f8d573bb,0 8px 0 #604b26}}
.playing .board.map-stellara:before{background:linear-gradient(#0d183038,#15153865)}
.map-stellara .map-place{background:#192045ed;border-color:#ad9ce5;color:#e6ddff}
.casino-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:#08121bcc;backdrop-filter:blur(7px);overflow:auto}
.casino-window{width:min(520px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:2px solid #d9b46e;border-radius:18px;background:linear-gradient(145deg,#34283f,#152632);box-shadow:0 20px 70px #000b,0 0 35px #dca65a33;text-align:center}
.casino-window h2{font-size:36px;color:#ffe0a1}.casino-window .eyebrow{color:#ceb8d8}.casino-balance{margin:12px 0;color:#e2d4ad;font-size:16px}
.slot-reels{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:12px;background:#0c1520;border:1px solid #997c50;border-radius:13px;overflow:hidden}
.slot-reel{display:grid;place-items:center;aspect-ratio:1/1.1;border-radius:8px;background:linear-gradient(#c5c1b7,#fff7dd 40%,#d9d0b7);box-shadow:inset 0 5px 10px #0006;overflow:hidden}
.slot-symbol{font-size:62px;font-weight:900;line-height:1.2;color:#213241}.slot-symbol.symbol-4{font-family:'Barlow Condensed',sans-serif;font-size:80px;color:#d7203e;text-shadow:0 2px #ffb2b2}.slot-symbol.symbol-5{color:#d5a017;text-shadow:0 2px #855309,0 0 12px #ffdb73;font-size:76px}
.slot-reel.spinning .slot-symbol{animation:slot-tick .12s ease-out infinite}
@keyframes slot-tick{from{opacity:.35;transform:translateY(-14%) scale(.92)}to{opacity:1;transform:none}}
.casino-message{min-height:48px;margin:16px 0 8px;font-size:16px;color:#f4e2b2}.casino-bets{display:flex;justify-content:center;gap:10px;margin:8px 0 14px}.casino-bets button{min-width:70px;font-size:17px}.casino-bets .selected{background:#a77843;border-color:#ffe3a4;color:#fff5e4}
.casino-spin,.casino-leave{display:block;width:100%;margin-top:10px}.casino-odds{margin-top:16px;text-align:left;color:#bfc7cf;font-size:14px}.casino-odds strong{font-weight:700}.casino-odds p{margin:9px 0 0}.casino-leave:disabled{opacity:.5}
@media(max-width:540px){.casino-window{padding:17px}.casino-window h2{font-size:30px}.slot-reels{gap:7px;padding:9px}.slot-symbol{font-size:48px}.slot-symbol.symbol-4,.slot-symbol.symbol-5{font-size:64px}.casino-balance{margin:8px 0}.casino-message{margin-top:10px}.casino-odds{margin-top:10px}}
.casino-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;text-align:left}.casino-heading>div:first-child{min-width:0}.casino-heading .eyebrow{overflow-wrap:anywhere;letter-spacing:1px}.casino-wallet{flex:none;min-width:104px;padding:9px 12px;border:1px solid #b99860;border-radius:10px;background:#101e2de8;text-align:right}.casino-wallet small{display:block;color:#bec9d2;font-size:12px}.casino-wallet strong{display:block;font-size:25px;line-height:1.3;font-variant-numeric:tabular-nums;color:#ffe3a2}.casino-wallet strong>span{color:#f4c452}.wallet-delta{display:block;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.wallet-delta.gain{color:#8aeca9}.wallet-delta.loss{color:#ff9a9e}.wallet-delta.steady{color:#a8b6c1;font-weight:400}
@media(max-width:540px){.casino-heading{gap:8px}.casino-heading h2{font-size:27px}.casino-wallet{min-width:91px;padding:7px 9px}.casino-wallet strong{font-size:23px}}

/* Space around the lobby remains available even on short phone screens. */
main:not(.playing):has(.setup-grid){overflow:auto;display:block;padding:24px 16px calc(40px + env(safe-area-inset-bottom))}
.setup-grid{margin:auto;width:min(1080px,100%);max-height:none;transform:none}
.map-length{display:inline-block;margin-left:8px;padding:2px 7px;border:1px solid #dfb77e;border-radius:4px;text-transform:lowercase;letter-spacing:0}
.playing .board .tile{padding:0;align-items:center;justify-content:center;line-height:1}
.field-symbol{display:flex;align-items:center;justify-content:center;line-height:1;transform:translateY(-.04em)}
.playing .board .tile.start .field-symbol{align-self:center}
.leave-icon{border-color:#c66a70;color:#ffb0b3;display:inline-flex;align-items:center;justify-content:center}
.leave-icon:hover{background:#71343b;border-color:#ffb0b3}
.leave-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
#leave-dialog p{margin-top:16px}
@media(max-width:850px){
 .playing .board-scroll{bottom:var(--hud-space,290px)}
 .playing .board-shell:after{bottom:var(--hud-space,290px)}
 .playing .board .tile.casino{font-size:17px}
}
@media(max-width:540px){
 main:not(.playing):has(.setup-grid){padding:16px 10px calc(32px + env(safe-area-inset-bottom))}
 .map-preview{height:114px}
 .map-selection{top:43px;bottom:8px}
 .map-preview .map-badge{display:block;top:9px;left:10px;font-size:11px;padding:3px 6px}
 .map-preview .map-caption{top:53px}
 .header-actions #leave-open{padding:0;width:42px;height:42px}
 .playing .board .tile.casino{font-size:16px}
 .playing .board .jail-icon{position:static;inset:auto;width:1.15em;height:1.15em;border:0;background:none}
}

@media(max-width:850px){.playing .board-scroll{right:var(--hud-right,0px)}}

/* Field glyphs and number bubbles follow board zoom and perspective together. */
.playing .board{--map-scale:.90}
.playing .board .tile,
.playing .board .tile.start,
.playing .board .tile.finish,
.playing .board .tile.casino{font-size:calc(16 / var(--world-width) * 100cqw)}
.playing .board .field-symbol{font-size:calc(1em + 1pt);line-height:1;transform:none}
.playing .board .tile.casino .field-symbol{font-size:calc(1em + 2.5pt)}
.playing .board .tile .number{left:50%;top:calc(100% + .7em);bottom:auto;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;min-width:1.9em;height:1.45em;padding:0 .28em;font-size:1em;line-height:1;text-align:center;letter-spacing:0;font-variant-numeric:tabular-nums;border-radius:.65em}
.playing .board .jail-icon{position:static;inset:auto;width:1.15em;height:1.15em;border:0;background:none}

.die{border:0;cursor:pointer}
.die:disabled{opacity:1;cursor:default}
.die.rolling{will-change:transform}
.die:hover:not(:disabled){background:#fff4dd;box-shadow:0 5px 0 #b49a71,0 0 12px #efbb7b66}
@media(max-width:850px){
 .playing .board{--map-scale:.80}
 .playing .die{width:38px;height:38px;padding:7px;gap:3px;border-radius:9px;flex-shrink:0;touch-action:manipulation}
}

.playing .board .tile.start .number{display:none}

/* Three map-neutral chance spaces and their shared six-part prize wheel. */
.playing .board .tile.wheel,.help-field.tile.wheel{background:linear-gradient(#fffdf7,#e9e5da);border-color:#fff;color:#172128;box-shadow:0 7px 0 #aaa89f,0 9px 0 #f8f4e9,0 0 15px #fff8}
.wheel-field-icon,.wheel-legend i{display:block;border-radius:50%;background:conic-gradient(from -30deg,#d94b55 0 16.666%,#ed8a35 0 33.333%,#45a96b 0 50%,#efc94d 0 66.666%,#3989cf 0 83.333%,#8758c7 0);box-shadow:inset 0 0 0 .09em #fff,0 0 0 .06em #29323a;width:1.12em;height:1.12em}
.wheel-field-icon:after{content:'';display:block;width:.22em;height:.22em;margin:.45em;border-radius:50%;background:#fff;box-shadow:0 0 0 .06em #29323a}
.wheel-legend{display:flex;align-items:center;gap:5px}.wheel-legend i{width:14px;height:14px;box-shadow:inset 0 0 0 1px #fff}.wheel-legend i:after{display:none}
.wheel-backdrop{position:fixed;inset:0;z-index:102;display:grid;place-items:center;padding:16px;background:#07111bcc;backdrop-filter:blur(8px);overflow:auto}
.wheel-window{width:min(540px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:25px;border:2px solid #e9d8b0;border-radius:20px;background:radial-gradient(circle at 50% 23%,#3d4f61,#172630 60%,#101b24);box-shadow:0 22px 75px #000c,0 0 42px #f5d78722;text-align:center}
.wheel-window h2{font-size:36px;color:#fff0c7}.wheel-window .eyebrow{color:#d9c9ad}
.wheel-stage{position:relative;width:min(330px,72vw);margin:20px auto 15px;aspect-ratio:1;filter:drop-shadow(0 15px 17px #0009)}
.prize-wheel{position:absolute;inset:8px;border:7px solid #f7eed8;border-radius:50%;background:conic-gradient(from -30deg,#d94b55 0 16.666%,#ed8a35 0 33.333%,#45a96b 0 50%,#efc94d 0 66.666%,#3989cf 0 83.333%,#8758c7 0);box-shadow:inset 0 0 0 4px #18242c99,0 0 0 3px #8f7a52;transform:rotate(var(--wheel-rotation));transition:transform .11s linear;will-change:transform}
.prize-wheel:after{content:'';position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(from -30deg,transparent 0 59deg,#fff9 59deg 60deg);pointer-events:none}
.prize-wheel>span{position:absolute;z-index:1;left:50%;top:50%;width:74px;margin-left:-37px;margin-top:-14px;transform:rotate(var(--segment-angle)) translateY(calc(-1 * min(112px,24vw))) rotate(calc(-1 * var(--segment-angle)));color:#fff;font:800 20px/27px 'Barlow Condensed',sans-serif;letter-spacing:.035em;text-shadow:0 2px 3px #000b}
.prize-wheel>span small{display:block;font-size:.65em;line-height:1;letter-spacing:.02em}
.prize-wheel>span:nth-child(4){color:#302a18;text-shadow:0 1px #fff8}
.wheel-pointer{position:absolute;z-index:5;left:50%;top:-2px;transform:translateX(-50%);width:0;height:0;border-left:18px solid transparent;border-right:18px solid transparent;border-top:42px solid #fff5d6;filter:drop-shadow(0 3px 2px #0008)}
.wheel-hub{-webkit-user-select:none;user-select:none;pointer-events:none;position:absolute;z-index:4;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:58px;height:58px;border:6px solid #fff1cb;border-radius:50%;background:#24333d;color:#f5ca66;font-size:25px;box-shadow:0 4px 12px #0009}
.wheel-message{min-height:28px;margin:8px 0 14px;color:#f5e8c8;font-size:17px;font-weight:700}.wheel-spin{width:100%;font-size:17px}.wheel-window>.hint{margin-top:11px}
@media(max-width:540px){.wheel-window{padding:18px}.wheel-window h2{font-size:30px}.wheel-stage{margin:14px auto 10px}.prize-wheel>span{font-size:17px;line-height:23px}.wheel-message{font-size:15px}}

.portrait,.rank-card .portrait{aspect-ratio:1;height:auto;background:#292929}
.setup-panel .portrait{width:100%;height:clamp(82px,15vh,140px);aspect-ratio:1;max-width:none}
.setup-panel .portrait svg{transform:none}
@media(max-width:540px){.setup-panel .portrait{height:clamp(76px,12vh,108px)}}

/* One continuous tumble, followed by the authoritative face. */
.die.rolling{animation:dice-tumble 1s ease-out both}
@keyframes dice-tumble{0%{transform:rotate(-5deg)}12%{transform:translateY(-4px) rotate(18deg)}26%{transform:translateY(-2px) rotate(-18deg)}42%{transform:translateY(-5px) rotate(15deg)}58%{transform:translateY(-2px) rotate(-12deg)}74%{transform:translateY(-3px) rotate(8deg)}88%{transform:translateY(-1px) rotate(-8deg)}100%{transform:rotate(-5deg)}}
@media(max-width:850px){
 .playing .board{--map-scale:calc(.80 * var(--mobile-map-zoom,1))}
 .playing .dice-area{margin:-4px 9px 8px 0}
}
@media(prefers-reduced-motion:reduce){.die.rolling{animation:none}}

.turn-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}.playing .turn-meta .eyebrow{margin-bottom:0}.turn-wallet{margin-left:auto;white-space:nowrap;color:#ffe6ad;font-size:14px;font-variant-numeric:tabular-nums}.playing .turn-focus{padding:0;border:0;border-radius:3px;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;touch-action:manipulation}.turn-focus:hover{text-decoration:underline;text-underline-offset:4px}@media(max-width:850px){.turn-meta{margin-bottom:5px}}

/* Quiet background layer; fields, road markings and players retain full contrast. */
.playing .board{background-image:none}
.board-background{position:absolute;inset:0;z-index:-2;background:var(--map-image) center/cover no-repeat;filter:contrast(.9);pointer-events:none}
.room-map>img,.map-preview>img,.round-intro-map{filter:contrast(.9)}
.route-steps{display:block;clear:both;margin:0 0 10px;color:#ffe6ad;font-size:16px;font-weight:600}
@media(min-width:851px){.playing .dice-area{padding-bottom:15px}}
@media(max-width:850px){.playing .board{width:calc(var(--world-width)*var(--map-scale)*1px)}}
.prize-wheel{transition-duration:.07s}

.slot-reels.jackpot .symbol-5{animation:slot-jackpot-glow .9s ease-out both;animation-delay:var(--jackpot-delay,0ms)}
@keyframes slot-jackpot-glow{0%,100%{filter:brightness(1);transform:scale(1);text-shadow:0 2px #855309,0 0 12px #ffdb73}30%,65%{filter:brightness(1.65);transform:scale(1.08);text-shadow:0 0 6px #fff9d4,0 0 18px #ffe45a,0 0 32px #ffc52b}}

.field-information{list-style:none;padding:0;margin:16px 0;font-size:14px}
.field-information li{display:grid;grid-template-columns:126px minmax(0,1fr);align-items:center;gap:14px;margin:0;padding:16px 0}.field-information li+li{border-top:1px solid #52656c80}
.field-examples{display:flex;align-items:center;gap:6px;padding:0 3px 7px}
#help .help-field{position:relative;left:auto;top:auto;transform:none;flex:0 0 34px;width:34px;height:25px;font-size:14px;aspect-ratio:auto}
#help .help-field .field-symbol{transform:none}
#help .help-field.casino .field-symbol{font-size:17px}
#help h3{font-size:23px;margin-top:22px}
#help p{margin:12px 0;font-size:14px}
@media(min-width:851px){.playing .side>.history,.playing .side>.history[open]{position:static;inset:auto;width:100%;max-width:none;margin:0;border:1px solid #3b494e;background:#1b272e}.playing .side>.history ol{max-height:220px}.playing .side{padding-bottom:74px}}
@media(max-width:420px){.field-information li{grid-template-columns:114px minmax(0,1fr);gap:10px}.field-examples{gap:3px;padding-left:0;padding-right:0}}

/* Composite every selection portrait onto the same solid neutral surface.
   The small contrast adjustment puts the baked-in near-black image backdrops
   below this surface; lighten blending removes their rectangular edges. */
.alien-choice .portrait{background:#292929;isolation:isolate;overflow:hidden}
.alien-choice .portrait svg{filter:contrast(1.1);mix-blend-mode:lighten}

/* Keep the map title and its original controls pinned together. */
.sidebar-heading{display:none}
@media(min-width:851px){
 body:has(main.playing)>header{right:324px}
 .playing .side{padding-top:0}
 .playing .sidebar-heading{display:flex;position:sticky;top:0;z-index:6;order:-2;align-items:center;gap:8px;min-height:46px;margin:0 -12px 4px;padding:10px 12px;border-bottom:1px solid #3b494e;background:#111a21}
 .playing .sidebar-heading .desktop-map-name{position:static;flex:1;min-width:0;max-width:none}
 .playing .sidebar-heading .header-actions{position:static;flex:none;margin:0;gap:6px}
 .playing .sidebar-heading .header-actions button{width:40px;height:40px;padding:0;display:inline-grid;place-items:center}
}

/* Landed content and its result sound begin on the same presentation frame. */
.wheel-landed{animation:wheel-prize-glow 900ms ease-in-out 2}
@keyframes wheel-prize-glow{0%,100%{filter:brightness(1);text-shadow:0 2px 3px #000b}45%{filter:brightness(1.8);text-shadow:0 0 6px #fff,0 0 16px #ffe49a,0 0 28px #ffd75e}}
@media(prefers-reduced-motion:reduce){.wheel-landed{animation:none;filter:brightness(1.35);text-shadow:0 0 8px #ffe49a}}

/* Every toolbar icon has the same fixed footprint, including the leave action. */
.header-actions .icon-action{width:42px;height:42px;min-width:42px;min-height:42px;flex:0 0 42px;padding:0!important}
.player-camera-name{display:inline;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;touch-action:manipulation}
.player-camera-name:hover{text-decoration:underline;text-underline-offset:4px}
/* Tiles are graphic controls, never text-editing surfaces (including caret browsing). */
.playing .board,.playing .board *{caret-color:transparent}
.field-symbol .star-field-symbol{position:static;inset:auto;display:block;width:2.05em;height:1.2em;overflow:visible;fill:currentColor;pointer-events:none;flex:none}
.tile.star .star-field-symbol{width:1.2em}
@media(max-width:850px){
 .playing .side{box-shadow:none}
 .playing .board-shell:after{display:none}
 .playing .dice-area{padding:5px 0;margin-top:3px;margin-bottom:9px}
}

/* Result belongs to the stationary centre, never to the rotating disc. */
.wheel-window{-webkit-user-select:none;user-select:none}
.wheel-stage>.wheel-message{position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);width:max-content;max-width:82%;min-height:0;margin:0;padding:12px 16px;box-sizing:border-box;border:2px solid #f4d692;border-radius:13px;background:#172630f5;color:#fff0c7;box-shadow:0 5px 18px #0009;line-height:1.3;overflow-wrap:anywhere;pointer-events:none}
.wheel-message[hidden],.wheel-instructions[hidden]{display:none}
.wheel-instructions{min-height:28px;margin:8px 0 14px;color:#f5e8c8;font-size:17px}
