/* Approved September 26 shell; shared across every locale and wrapper. */
.shell-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}.shell-icon svg{width:100%;height:100%}
body .shell-menu{position:relative;z-index:1002}body .shell-menu>summary{height:52px;min-height:0;display:flex;align-items:center;gap:9px;border:1px solid rgba(190,210,255,.14);border-radius:28px;background:#172440;color:#eef4ff;padding:0 14px;box-shadow:none;font:800 14px var(--rv-font-body)}.shell-menu>summary img{width:32px!important;height:32px!important;border-radius:50%;object-fit:cover}.shell-menu[open]>summary{border-color:#c4fa72}.shell-menu>summary:after{display:none!important}.shell-menu>summary bdi{max-width:170px;overflow:hidden;text-overflow:ellipsis}.shell-menu-shade{position:fixed;inset:0;z-index:1000;background:rgba(4,7,20,.45);border:0;border-radius:0;width:100%;height:100%;padding:0}.shell-menu-shade[hidden]{display:none}body .shell-menu>.site-menu-panel{position:absolute;inset-block-start:calc(100% + 12px);inset-inline-end:0;width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px);overflow:auto;background:#0f1733;border:1px solid rgba(190,210,255,.14);border-radius:22px;padding:16px;box-sizing:border-box;box-shadow:0 24px 70px #04071470;display:block}.shell-menu:not([open])>.site-menu-panel{display:none!important}.shell-menu .site-menu-panel>:not(.shell-menu-content){display:none!important}.shell-menu-content{display:grid;gap:14px}.shell-menu-content button,.shell-menu-content a{box-sizing:border-box}.shell-account-card{position:relative;display:flex!important;flex-direction:column;align-items:flex-start!important;gap:5px!important;padding:14px 34px 14px 14px!important;border:1px solid rgba(190,210,255,.14)!important;border-radius:20px!important;background:#172440!important;color:#eef4ff!important;box-shadow:none!important}.shell-account-card>.shell-icon{position:absolute;inset-inline-end:12px;top:50%;transform:translateY(-50%)}.shell-account-identity{display:flex;align-items:center;gap:10px;min-width:0;font-size:18px;font-weight:800}.shell-account-identity img{width:44px;height:44px;border-radius:50%;object-fit:cover}.shell-account-card>small{padding-inline-start:54px;color:#a9bddc;font-size:13px}.shell-menu-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shell-menu-tiles .shell-menu-tile{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:#172440;border:1px solid rgba(190,210,255,.14);border-radius:18px;padding:14px;min-width:0;text-decoration:none;color:#eef4ff;font-size:15px}.shell-menu-tile small{font-size:12px;color:#a9bddc;display:none}.shell-menu-tile:first-child small{display:block;width:100%}.shell-menu-tiles .shell-plus{background:#c4fa72;color:#0b1028}.shell-menu-languages{padding:14px;border-radius:20px;background:#172440;border:1px solid rgba(190,210,255,.14)}.shell-menu-languages h2{margin:0 0 12px;font-size:15px}.shell-menu-languages .menu-language-picker{display:block;border:0!important;background:none!important;padding:0!important}.shell-menu-languages .menu-language-picker>summary{display:none!important}.shell-menu-languages .menu-language-choices,.shell-language-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;position:static!important;padding:0!important;border:0!important}.shell-menu-languages .menu-language-choices button{display:block!important;min-height:38px;min-width:0!important;padding:8px 3px!important;font-size:11px!important;text-align:center;white-space:normal;border-radius:10px!important;box-shadow:none!important;background:#20304c;color:#a9bddc;border:1px solid transparent}.shell-menu-languages .menu-language-choices button>span{display:none}.shell-menu-languages .menu-language-choices button[aria-pressed=true]{background:#314737!important;color:#c4fa72!important;border-color:#c4fa72!important}.shell-menu-links{display:flex;gap:10px 14px;flex-wrap:wrap}.shell-menu-links a{display:inline!important;padding:0!important;background:none!important;border:0!important;font-size:12px;color:#a9bddc;text-decoration:underline}.shell-menu-open{overflow:hidden}
body.has-game-shell{background:#0b1028}body .shell-game-header{height:84px!important;max-width:none!important;box-sizing:border-box;padding:0 40px!important;display:flex!important;gap:14px;align-items:center!important;border-bottom:1px solid rgba(190,210,255,.12);margin:0!important;flex-wrap:nowrap!important}.shell-game-header .game-identity{margin:0!important;min-width:0;flex:1 1 auto;gap:4px!important}.shell-game-header .game-wordmark{font-family:var(--rv-font-display);font-size:32px!important;line-height:1!important;white-space:nowrap}.shell-game-header .game-wordmark img{width:auto!important;height:30px!important;max-width:230px;object-fit:contain}.shell-game-header .game-byline{font-size:11px!important;gap:5px!important;line-height:1}.shell-game-header .game-byline img{height:18px!important;width:auto!important;max-width:none!important}.shell-game-header .shell-game-toolbar{order:1;display:flex;gap:8px;align-items:center;min-width:0}.shell-game-header .shell-spin-button{order:2}.shell-game-header .shared-search{order:3;margin:0!important;width:44px;min-width:44px;height:44px}.shell-game-header .shell-menu{order:4;margin:0!important}.shell-spin-button{height:52px;display:flex;align-items:center;gap:6px;border:0;border-radius:28px;background:#ff8275;color:#1a1030;padding:0 16px;box-shadow:none;font-size:14px;font-weight:800;flex-shrink:0}.shell-controls{display:flex;gap:8px}.shell-controls .shell-control{height:52px!important;width:52px!important;min-width:52px!important;padding:0!important;border-radius:14px!important;background:#172440!important;border:1px solid rgba(190,210,255,.14)!important;color:#eef4ff!important;box-shadow:none!important;display:flex;align-items:center;justify-content:center;font-size:24px!important}.shell-controls .shell-pause{font-size:0!important}.shell-controls .shell-pause:before{content:'Ⅱ';font-size:23px;line-height:1}.shell-controls .shell-pause[aria-pressed=true]:before{content:'▶'}.shell-stats{display:flex!important;height:52px!important;align-items:center!important;gap:0!important;background:#172440!important;border:1px solid rgba(190,210,255,.14)!important;border-radius:14px!important;box-sizing:border-box;margin:0!important;padding:4px 6px!important;box-shadow:none!important;min-width:0}.shell-stats>div,.shell-stats>button{background:none!important;border:0!important;border-inline-end:1px solid #a9bddc33!important;border-radius:0!important;padding:0 10px!important;min-width:0!important;box-shadow:none!important;text-align:start;display:flex!important;flex-direction:column;justify-content:center;gap:3px;height:36px}.shell-stats>button:last-child{border:0!important}.shell-stats span,.shell-stats .score-label{font-size:10px!important;line-height:1!important;color:#a9bddc!important;text-transform:uppercase;white-space:nowrap}.shell-stats strong,.shell-stats .score-number{font:800 20px/1 var(--rv-font-display)!important;color:#eef4ff!important}.shell-stats #score{color:#ffdc67!important}.shell-stats #hud-rank-number,.shell-stats .shell-rank strong{color:#c4fa72!important}.shell-stats .level-track,.shell-stats .session-label,.shell-stats .score-chase,.shell-stats #hud-rank-state,.shell-stats .level-badge>span{display:none!important}.shell-stats .level-badge{background:none!important;padding:0!important}.has-game-shell .game-top>.top-buttons:empty,.has-game-shell [data-daily-entry]{display:none!important}
.shell-dialog{position:fixed;inset:96px 40px auto auto;width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 116px);overflow:auto;margin:0;padding:22px;box-sizing:border-box;border:1px solid rgba(190,210,255,.14);border-radius:22px;background:#121b38;color:#eef4ff;font-family:var(--rv-font-body);box-shadow:0 30px 80px #0006}.shell-dialog::backdrop{background:rgba(4,7,20,.45)}.shell-dialog-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.shell-dialog-top h2{margin:0;font:800 24px var(--rv-font-display)}.shell-dialog-top p{margin:5px 0 0;color:#a9bddc;font-size:13px}.shell-close{width:32px;height:32px;border:0;border-radius:50%;background:#24324d;color:#eef4ff;display:grid;place-items:center;flex-shrink:0}.shell-spin-art{width:100%;aspect-ratio:1.75;object-fit:cover;border-radius:16px}.shell-collection{display:inline-block;margin-top:12px;color:#86dcf7;background:#203552;border-radius:8px;padding:4px 8px;font-size:11px}.shell-spin-content h3{font:800 24px var(--rv-font-display);margin:10px 0 4px}.shell-spin-content p{color:#a9bddc;font-size:14px;margin:0 0 16px}.shell-spin-actions{display:grid;grid-template-columns:1.4fr 1fr;gap:10px}.shell-play,.shell-again,.shell-show-more{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px;border-radius:14px;font-weight:800;text-decoration:none;border:1px solid #a9bddc33;background:#172440;color:#eef4ff;font-size:14px}.shell-play{background:#ffdc67;color:#172440;border:0}.shell-more-title{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:18px}.shell-more-title h4{font-size:13px;margin:0}.shell-more-title a{font-size:12px;white-space:nowrap;color:#86dcf7}.shell-spin-more{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.shell-spin-more a{color:#eef4ff;text-decoration:none;font-size:10px;min-width:0}.shell-spin-more img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}.shell-spin-more b{display:block;margin-top:5px;overflow-wrap:anywhere}
.shell-leaderboard{margin:24px auto;padding:18px;max-width:760px;background:#172440;border:1px solid rgba(190,210,255,.14);border-radius:18px;color:#eef4ff}.shell-rank-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.shell-rank-heading h2{font:800 18px var(--rv-font-display);margin:0}.shell-rank-heading button{border:0;background:none;color:#86dcf7;font-weight:800}.shell-rank-list{list-style:none;padding:0;margin:14px 0}.shell-rank-row{display:flex;align-items:center;gap:12px;min-height:52px;border-bottom:1px solid #a9bddc22}.shell-position{width:28px;text-align:center;color:#a9bddc}.shell-rank-row[data-position="1"]>.shell-position{color:#ffd166}.shell-rank-row[data-position="2"]>.shell-position{color:#cfd8e6}.shell-rank-row[data-position="3"]>.shell-position{color:#f0a46b}.shell-rank-person{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:1;min-width:0}.shell-rank-person img,.shell-own-rank img{width:30px;height:30px;border-radius:50%;object-fit:cover}.shell-rank-person small{font-size:10px;color:#a9bddc}.shell-rank-row>strong{color:#ffdc67;font:800 22px var(--rv-font-display)}.shell-own-rank{background:#c4fa72;color:#172440;padding:12px;border-radius:14px;display:flex;align-items:center;gap:12px;margin-top:14px}.shell-own-rank>span{flex:1;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.shell-own-rank small{font-size:11px}.shell-own-rank>span>small{width:100%}.shell-rank-modes{display:flex;background:#0b1028;border-radius:12px;padding:4px;margin-top:12px;gap:3px}.shell-rank-modes:empty{display:none}.shell-rank-modes button{flex:1;min-width:0;border:0;border-radius:9px;background:none;color:#a9bddc;min-height:36px;padding:5px;font-size:12px;font-weight:700}.shell-rank-modes button[aria-pressed=true]{background:#eef4ff;color:#172440}.shell-rules{font-size:12px;color:#a9bddc}.shell-rank-status{font-size:12px;color:#a9bddc}.shell-show-more{width:100%;margin-bottom:14px}
[dir=rtl] .shell-dialog{inset-inline-end:40px;inset-inline-start:auto}[dir=rtl] .shell-account-card>.shell-icon{transform:translateY(-50%) rotate(180deg)}
@media(max-width:1100px) and (min-width:761px){body .shell-game-header{padding-inline:20px!important;gap:8px}.shell-game-header .game-wordmark{font-size:24px!important}.shell-stats>div,.shell-stats>button{padding-inline:6px!important}.shell-game-header .shell-account-name{max-width:75px}.shell-game-header .shared-search{display:none}}
@media(max-width:760px){body .shell-game-header{height:120px!important;padding:0 12px 0 16px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:64px 56px;gap:0 8px;position:relative;z-index:20}.shell-game-header .game-identity{grid-column:1;grid-row:1;max-width:100%;overflow:hidden}.shell-game-header .game-wordmark{font-size:24px!important;letter-spacing:-.04em}.shell-game-header .game-wordmark img{height:22px!important;max-width:100%!important}.shell-game-header .game-byline img{height:15px!important}.shell-game-header .shell-spin-button{grid-column:2;grid-row:1;height:44px;padding-inline:11px;font-size:14px}.shell-game-header .shell-menu{grid-column:3;grid-row:1}.shell-game-header .shared-search{display:none!important}.shell-game-header .shell-game-toolbar{grid-column:1/-1;grid-row:2;width:100%;gap:8px}.shell-menu>summary .shell-account-name,.shell-menu>summary .country-flag{display:none!important}body .shell-menu>summary{height:44px;padding:0 10px 0 5px;gap:7px}.shell-menu>summary>.shell-icon{order:2}.shell-stats{flex:1;height:48px!important;padding-inline:4px!important;overflow:hidden}.shell-stats>div,.shell-stats>button{flex:1;padding:0 5px!important}.shell-stats span,.shell-stats .score-label{font-size:9px!important;white-space:normal}.shell-stats strong,.shell-stats .score-number{font-size:18px!important}.shell-controls{gap:8px}.shell-controls .shell-control{width:48px!important;min-width:48px!important;height:48px!important}.shell-menu[open]{position:static}body .shell-menu>.site-menu-panel{position:fixed;inset:64px 0 0;width:100%;max-width:none;max-height:none;border:0;border-radius:0;padding:14px 16px 24px;background:#0f1733;overflow:auto}.shell-menu-shade{background:rgba(4,7,20,.64)}body:has(.shell-menu[open])>header{z-index:1002!important;position:relative}.shell-menu-tiles .shell-menu-tile{min-height:92px;flex-direction:column;align-items:flex-start;gap:5px}.shell-menu-tile small{display:block}.shell-menu-content{gap:14px}.shell-menu-languages .menu-language-choices button{font-size:12px!important;min-height:38px}.shell-dialog,[dir=rtl] .shell-dialog{inset:150px 0 0;width:100%;max-width:100%;max-height:calc(100dvh - 150px);border-radius:26px 26px 0 0;padding:24px 18px}.shell-dialog:before{content:'';position:absolute;top:8px;left:calc(50% - 18px);width:36px;height:4px;border-radius:5px;background:#74839c}.shell-dialog::backdrop{background:rgba(4,7,20,.64)}.shell-ranks,[dir=rtl] .shell-ranks{top:92px;max-height:calc(100dvh - 92px)}.shell-leaderboard{margin:12px;padding:14px}.shell-leaderboard>.shell-own-rank,.shell-leaderboard>.shell-rules,.shell-leaderboard>.shell-rank-modes,.shell-leaderboard .shell-rank-row:nth-child(n+3){display:none}.shell-rank-heading h2{font-size:16px}.shell-podium .shell-rank-row:nth-child(-n+3){min-height:64px}.shell-podium .shell-rank-row:nth-child(-n+3) .shell-position{background:#ffd166;color:#172440;border-radius:50%;height:28px;display:grid;place-items:center}.shell-podium .shell-rank-row:nth-child(2) .shell-position{background:#cfd8e6}.shell-podium .shell-rank-row:nth-child(3) .shell-position{background:#f0a46b}}
@media(prefers-reduced-motion:reduce){.shell-dialog,.shell-menu{scroll-behavior:auto}}

/* Reset legacy ID-based header styles while preserving their event handlers. */
body.has-game-shell header.shell-game-header .header-controls{display:none!important}
body.has-game-shell header.shell-game-header .game-identity{order:0;min-width:0;margin:0!important;padding:0!important}
body.has-game-shell header.shell-game-header .game-wordmark{font-family:var(--rv-font-display)!important;font-style:normal!important;text-transform:uppercase!important;line-height:1.1!important;white-space:nowrap;color:#fff9e9!important}
body.has-game-shell header.shell-game-header .maiolica-wordmark>span{color:#ffe45c!important}
body.has-game-shell header.shell-game-header .game-byline{display:flex!important;align-items:center;gap:5px!important;margin:4px 0 0!important}
body.has-game-shell header.shell-game-header .game-byline .revolving-logo{display:inline-flex!important;width:auto!important}
body.has-game-shell header.shell-game-header .game-byline img{height:18px!important;width:auto!important;max-width:none!important}
body.has-game-shell header.shell-game-header .shell-menu>summary{width:auto!important;min-width:0!important;max-width:none!important;padding:0 12px!important}
body.has-game-shell header.shell-game-header .shell-spin-button{display:flex!important;margin:0!important;min-width:0!important;width:auto!important;background:#ff8275!important;color:#1a1030!important;border:0!important;box-shadow:none!important}
body.has-game-shell header.shell-game-header :is(#pause,#mute,#sound,#help).shell-control{width:52px!important;min-width:52px!important;max-width:52px!important;height:52px!important;padding:0!important;border-radius:14px!important}
body.has-game-shell header.shell-game-header .header-controls [hidden]{display:none!important}
body.has-game-shell header.shell-game-header .shell-stats .score-label{letter-spacing:0!important;font-size:10px!important;line-height:1.1!important}
body.has-game-shell header.shell-game-header .shell-stats #level-hud{width:auto!important;min-width:0!important;padding:0 8px!important}
body.has-game-shell header.shell-game-header .shell-stats #level-hud .level-badge>div{display:flex;flex-direction:column;gap:3px}
body.has-game-shell header.shell-game-header .shell-stats #level-number{font-size:20px!important;line-height:1!important}
body.has-game-shell header.shell-game-header .shell-stats #hud-rank{width:auto!important;min-width:0!important;margin:0!important;gap:3px!important}
body.has-game-shell .daily-board[hidden]{display:none!important}
body[data-page=maiolica].has-game-shell main{display:block!important;max-width:1600px!important;padding:24px 40px!important}
body[data-page=maiolica].has-game-shell main>.game{width:100%!important;max-width:none!important;display:block!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
.shell-maiolica-grid{display:grid;grid-template-columns:240px minmax(0,1fr) 300px;gap:24px;align-items:start}
body[data-page=maiolica] .shell-maiolica-grid .shell-maiolica-left,body[data-page=maiolica] .shell-maiolica-right{display:block!important;background:#fff9e9!important;padding:16px!important;border-radius:22px!important;color:#172440!important;width:100%!important;box-sizing:border-box}
body[data-page=maiolica] .shell-maiolica-board{width:100%!important;max-width:600px!important;margin:auto!important;background:#fff9e9!important;border-radius:22px!important;padding:8px!important;box-sizing:border-box}
body[data-page=maiolica] .shell-maiolica-left .tray-heading{margin:0 0 12px!important;display:block!important}.shell-maiolica-left .tray-heading small{display:none!important}
body[data-page=maiolica] .shell-maiolica-left .tray{display:flex!important;flex-direction:column;gap:12px;min-height:0!important}
body[data-page=maiolica] .shell-maiolica-left .piece{min-height:90px!important;width:100%!important}
body[data-page=maiolica] .shell-maiolica-left .rotation-controls{display:flex!important;flex-direction:column;gap:10px;margin:16px 0 0!important}
body[data-page=maiolica] .shell-maiolica-left .rotation-controls button{width:100%!important;min-height:46px!important;margin:0!important}
body[data-page=maiolica] .shell-maiolica-left #rotation-tip{display:none!important}
body[data-page=maiolica] .shell-maiolica-left #rescue{order:1}
body[data-page=maiolica] .shell-maiolica-left #restart{order:2}
body[data-page=maiolica] .shell-maiolica-right .shell-leaderboard{background:transparent;border:0;margin:14px 0 0;padding:0;color:#172440}
.shell-maiolica-right .shell-rank-heading h2{font-size:16px}.shell-maiolica-right .shell-rank-row>strong{color:#172440;font-size:18px}.shell-maiolica-right .shell-rank-person{font-size:11px;gap:4px}.shell-maiolica-right .shell-position,.shell-maiolica-right .shell-rank-person small,.shell-maiolica-right .shell-rules,.shell-maiolica-right .shell-rank-status{color:#405475}.shell-maiolica-right .shell-rank-modes{display:none}
body[data-page=maiolica] .shell-maiolica-right .mode-controls{display:block!important;margin:0!important;padding:0!important}
body[data-page=maiolica] .shell-maiolica-right .mode-buttons{display:flex!important;gap:4px!important;background:#e6e1d7;padding:4px;border-radius:14px}
body[data-page=maiolica] .shell-maiolica-right .mode-choice{min-width:0!important;min-height:44px!important;padding:4px!important;margin:0!important;flex:1;border-radius:10px!important;box-shadow:none!important;border:0!important;background:transparent!important}
body[data-page=maiolica] .shell-maiolica-right .mode-choice[aria-pressed=true]{background:#fff!important}
.shell-maiolica-right .mode-choice>span,.shell-maiolica-right .mode-choice>small{display:none!important}
body[data-page=maiolica] .shell-maiolica-right .mode-choice>strong{font-size:12px!important;color:#172440!important}
body[data-page=maiolica] .shell-maiolica-right #mode-description{font-size:12px!important;color:#405475!important}
body[data-page=maiolica] .desktop-extras{margin-top:24px!important}
@media(max-width:760px){
 body.has-game-shell header.shell-game-header .game-byline img{height:15px!important}
 body.has-game-shell header.shell-game-header .shell-menu>summary{width:74px!important;height:44px!important;padding:0 8px!important}
 body.has-game-shell header.shell-game-header .shell-spin-button{height:44px!important;padding:0 10px!important}
 body.has-game-shell header.shell-game-header :is(#pause,#mute,#sound,#help).shell-control{width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important}
 body.has-game-shell header.shell-game-header .shell-stats .score-label{font-size:9px!important}
 body.has-game-shell header.shell-game-header .shell-stats>div,body.has-game-shell header.shell-game-header .shell-stats>button{padding-inline:4px!important}
 body[data-page=maiolica].has-game-shell main{padding:8px 12px!important}
 .shell-maiolica-grid{display:flex;flex-direction:column;gap:0}
 body[data-page=maiolica] .shell-maiolica-board{order:0;border-radius:22px 22px 0 0!important}
 body[data-page=maiolica] .shell-maiolica-grid .shell-maiolica-left{order:1;border-radius:0 0 22px 22px!important;padding:8px!important}
 body[data-page=maiolica] .shell-maiolica-left .tray{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 body[data-page=maiolica] .shell-maiolica-left .piece{min-height:60px!important}
 body[data-page=maiolica] .shell-maiolica-left .rotation-controls{flex-direction:row;margin-top:8px!important}
 body[data-page=maiolica] .shell-maiolica-right{order:2;background:none!important;padding:12px 0 0!important}
 body[data-page=maiolica] .shell-maiolica-right .mode-picker-title,body[data-page=maiolica] .shell-maiolica-right #mode-description{display:none!important}
 body[data-page=maiolica] .shell-maiolica-right .shell-leaderboard{background:#172440;color:#eef4ff;border:1px solid #a9bddc33;border-radius:18px;padding:14px}
 .shell-maiolica-right .shell-rank-person,.shell-maiolica-right .shell-position,.shell-maiolica-right .shell-rank-person small{color:#a9bddc}.shell-maiolica-right .shell-rank-row>strong{color:#ffdc67}
}
@media(max-width:760px){
 body.has-game-shell header.shell-game-header{grid-template-columns:minmax(0,1fr) auto 74px!important;grid-template-rows:64px 56px!important;row-gap:0!important;column-gap:8px!important;align-items:center!important}
 body.has-game-shell header.shell-game-header .game-identity{grid-column:1!important;grid-row:1!important;height:auto!important;gap:0!important}
 body.has-game-shell header.shell-game-header .game-wordmark{font-size:clamp(17px,5.8vw,24px)!important;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 body.has-game-shell header.shell-game-header .shell-spin-button{grid-column:2!important;grid-row:1!important}
 body.has-game-shell header.shell-game-header .shell-menu{grid-column:3!important;grid-row:1!important;align-self:center!important}
 body.has-game-shell header.shell-game-header .shell-game-toolbar{grid-column:1/-1!important;grid-row:2!important;align-self:center!important;margin:0!important}
}
.shell-mode-chip{font-size:10px;color:#a9bddc;padding:4px 6px;background:#223451;border-radius:6px;margin-inline-start:auto}.shell-maiolica-right .shell-mode-chip{color:#172440;background:#e6e1d7}.shell-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:8px;list-style:none;padding:12px 0 0;margin:14px 0}.shell-podium .shell-rank-row{flex-direction:column;min-height:140px;border:1px solid #a9bddc22;border-radius:16px 16px 8px 8px;padding:12px 5px;background:#192742;gap:8px;min-width:0}.shell-podium .shell-rank-row[data-position="1"]{grid-column:2;grid-row:1;min-height:164px}.shell-podium .shell-rank-row[data-position="2"]{grid-column:1;grid-row:1}.shell-podium .shell-rank-row[data-position="3"]{grid-column:3;grid-row:1;min-height:128px}.shell-podium .shell-rank-person{justify-content:center;flex-direction:column;flex-wrap:nowrap;gap:5px;font-size:10px;max-width:100%}.shell-podium bdi{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell-podium .shell-rank-person small{font-size:9px}.shell-podium .shell-rank-row>strong{font-size:20px}.shell-podium .shell-position{border-radius:50%;width:26px;height:26px;background:#ffd166;color:#172440!important;display:grid;place-items:center;font-size:12px}.shell-podium [data-position="2"] .shell-position{background:#cfd8e6}.shell-podium [data-position="3"] .shell-position{background:#f0a46b}
body.has-game-shell header.shell-game-header>.game-top{display:none!important}
body.has-game-shell header.shell-game-header #pause.shell-pause{font-size:0!important}
body.has-game-shell header.shell-game-header .shell-stats>div,body.has-game-shell header.shell-game-header .shell-stats>button{justify-content:center!important;align-items:flex-start!important;gap:3px!important;height:38px!important;overflow:hidden!important;line-height:1!important}
body.has-game-shell header.shell-game-header .shell-stats>div>span,body.has-game-shell header.shell-game-header .shell-stats>button>span{white-space:nowrap!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;line-height:1.2!important;margin:0!important}
body.has-game-shell main>.shell-leaderboard{grid-column:1/-1!important;order:3!important;width:calc(100% - 24px);box-sizing:border-box}

body.has-game-shell header.shell-game-header .shell-stats>div>span,body.has-game-shell header.shell-game-header .shell-stats>button>span{min-height:0!important;height:auto!important;max-height:12px!important;flex:0 0 auto!important}
body.has-game-shell header.shell-game-header .shell-stats strong{margin:0!important;min-height:0!important;height:auto!important;flex:0 0 auto!important}
body .site-menu.shell-menu>.site-menu-panel .menu-language-choices{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
body .site-menu.shell-menu>.site-menu-panel .menu-language-choices button[hidden]{display:flex!important}
body .site-menu.shell-menu>.site-menu-panel .menu-language-choices button{min-width:0!important;padding:6px 4px!important;justify-content:center!important;font-size:11px!important;text-align:center!important}
body .site-menu.shell-menu>.site-menu-panel .menu-language-choices button[aria-pressed=true]{background:#c4fa72!important;color:#172440!important}
body .site-menu.shell-menu>.site-menu-panel .shell-plus,body .site-menu.shell-menu>.site-menu-panel .shell-plus *{color:#172440!important}
body.has-game-shell header.shell-game-header #pause.shell-pause.is-paused:before{content:'▶'}
body.has-game-shell header.shell-game-header .shell-stats>div>small{font-size:10px!important;line-height:1.1!important;min-height:0!important;height:auto!important;max-height:12px!important;margin:0!important;white-space:nowrap!important;color:#a9bddc!important;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;max-width:100%;flex:0 0 auto!important}
body.has-game-shell header.shell-game-header .shell-stats strong{white-space:nowrap!important;max-width:100%;overflow:hidden;text-overflow:ellipsis}
body[data-page=maiolica] .shell-maiolica-grid .shell-maiolica-left{grid-column:1!important;grid-row:1!important;align-self:start!important;height:auto!important}
body[data-page=maiolica] .shell-maiolica-grid .shell-maiolica-board{grid-column:2!important;grid-row:1!important;margin:0 auto!important;align-self:start!important}
body[data-page=maiolica] .shell-maiolica-grid .shell-maiolica-right{grid-column:3!important;grid-row:1!important;align-self:start!important}
body[data-page=maiolica] .shell-maiolica-right .shell-rank-heading button{color:#194378!important;white-space:nowrap;font-size:12px}
body[data-page=maiolica] .shell-maiolica-right .shell-rank-row[data-position]>.shell-position{color:#172440!important;background:#e5e8ed;border-radius:50%;width:26px;height:26px;display:grid;place-items:center}
body[data-page=maiolica] .shell-maiolica-right .shell-rank-row[data-position="1"]>.shell-position{background:#ffd166}
body[data-page=maiolica] .shell-maiolica-right .shell-rank-row[data-position="2"]>.shell-position{background:#cfd8e6}
body[data-page=maiolica] .shell-maiolica-right .shell-rank-row[data-position="3"]>.shell-position{background:#f0a46b}
body .shell-menu bdi,body .shell-own-rank bdi,body .shell-rank-person bdi{text-transform:none!important}
body[data-page=maiolica] .shell-maiolica-left #rescue{border-radius:12px!important;min-height:46px!important;background:#e7e0ce;color:#172440;border:1px solid #c9c2ae;font:700 14px var(--rv-font-body)}
body.has-game-shell .game-byline{color:#a9bddc!important;text-decoration:none!important}
@media(max-width:760px){body[data-page=maiolica] .shell-maiolica-right .shell-rank-heading button{color:#86dcf7!important}}
/* Flow's conveyor must retain its horizontal geometry and live transforms. */
body[data-page=maiolica] .shell-maiolica-left .tray-window.flow .tray{display:flex!important;flex-direction:row!important;gap:10px!important}

@media(max-width:760px){
 .shell-dialog,[dir=rtl] .shell-dialog{height:calc(100dvh - 150px)}
 .shell-ranks,[dir=rtl] .shell-ranks{height:calc(100dvh - 92px)}
 body.has-game-shell header.shell-game-header .shell-stats .shell-rank strong{font-size:16px!important}
}
.shell-podium .shell-rank-row[data-position="1"]{min-height:180px!important}
.shell-podium .shell-rank-row[data-position="2"]{min-height:162px!important}
.shell-podium .shell-rank-row[data-position="3"]{min-height:148px!important}
body.has-game-shell{background:#0b1028!important;background-image:none!important}
body.has-game-shell header.shell-game-header{background:#0b1028!important;background-image:none!important}
body.has-game-shell header.shell-game-header .game-identity{align-self:center!important}
body.has-game-shell header.shell-game-header .shell-stats>div>span,body.has-game-shell header.shell-game-header .shell-stats>button>span,body.has-game-shell header.shell-game-header .shell-stats .score-label{font-size:10px!important}

/* Size the avatar frame and its image together; keep the brand mark uncropped. */
body .shell-menu>summary .player-avatar{width:32px!important;height:32px!important;flex:0 0 32px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
body .shell-account-identity .player-avatar{width:44px!important;height:44px!important;flex:0 0 44px;box-sizing:border-box}
body .shell-rank-person .player-avatar,body .shell-own-rank .player-avatar{width:30px!important;height:30px!important;flex:0 0 30px;box-sizing:border-box}
body .shell-menu .player-avatar>img,body .shell-leaderboard .player-avatar>img,body .shell-ranks .player-avatar>img{position:static!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;transform:none!important;object-fit:cover;border-radius:50%}
