/* Fixed-screen visual dashboard. Games paginate instead of growing vertically. */
.gd-adventure-continue{grid-column:1/-1}.gd-adventure-title{font-size:16px;color:#ffe7a8;white-space:nowrap}.gd-adventure-continue .gd-scene:after{background:linear-gradient(90deg,#071b26f0,#071b2690 55%,#071b2620)}
@media(max-height:450px){.gd-adventure-title{font-size:14px}.gd-adventure-continue>span:not(.gd-scene){gap:1px}.gd-adventure-continue strong{font-size:20px}.gd-adventure-continue small{font-size:10px}}
.game-session #game-home:not([hidden]){padding:0!important;overflow:hidden;background:#0b1720 center/cover}#game-home:before{content:'';position:absolute;inset:0;background:#07141bbd;pointer-events:none}.gd-compact{position:relative;height:100%;box-sizing:border-box;max-width:1600px;margin:auto;padding:44px 14px 6px;display:grid;grid-template-rows:62px minmax(74px,.65fr) 36px minmax(0,1.5fr) 36px;gap:8px;overflow:hidden}#game-home button{font:inherit;cursor:pointer;color:#edf8f4;min-height:36px;box-sizing:border-box}.gd-topbar{display:flex;gap:14px;align-items:center;background:#102932ee;border:1px solid #6a9995;border-radius:13px;padding:5px 10px;min-height:0}.gd-current-echo{display:flex;align-items:center;gap:10px;flex:1;min-width:0;border:0;background:none;padding:0;text-align:left}.gd-current-echo>img{height:48px;width:58px;object-fit:contain;flex:none}.gd-current-echo>span{min-width:0;display:flex;flex-direction:column;gap:1px}.gd-current-echo strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:16px}.gd-current-echo small{font-size:11px;color:#b8d7cf}.gd-compact-wallet{white-space:nowrap;font-size:16px;color:#f9db99}.gd-compact-wallet small{font-size:11px}.gd-compact-capture{display:flex;gap:7px;align-items:center;background:#9cf0d3!important;color:#12353d!important;border:0;border-radius:20px;padding:8px 16px;font-weight:700!important}.gd-compact-capture svg{width:23px;height:23px}.gd-bell-slot{flex:none}.gd-bell-slot button{position:relative!important;inset:auto!important;min-width:40px;min-height:40px}.gd-featured{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-height:0}.gd-feature{position:relative;isolation:isolate;border:1px solid #c2a56c;border-radius:13px;overflow:hidden;text-align:left;display:flex;align-items:center;justify-content:space-between;background:#1c4544;padding:12px 18px}.gd-scene{position:absolute;inset:0;overflow:hidden;z-index:-1;pointer-events:none}.gd-scene>img{width:100%;height:100%;object-fit:cover;image-rendering:pixelated}.gd-feature .gd-scene:after,.gd-game-card .gd-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#071b26d9,transparent 95%)}.gd-feature-kingdom{background:#4e7452}.gd-feature .gd-scene-kingdom{left:30%;background:#a7d39b url(assets/kingdom-side-v1/grass.webp) center/cover}.gd-kingdom-preview{display:block;height:100%;width:100%}.gd-kingdom-preview img,.gd-kingdom-preview svg{height:130%;width:100%;object-fit:contain;object-position:center 70%}.gd-feature>span:not(.gd-scene){display:flex;flex-direction:column;gap:5px;text-shadow:0 2px 3px #000}.gd-feature strong{font-size:clamp(20px,3.2vh,30px);color:#ffe7a8}.gd-feature small{font-size:12px}.gd-feature>b{font-size:28px}.gd-tabbar{display:flex;gap:7px;align-items:center}.gd-tabbar button{background:#17333c;border:1px solid #63928b;border-radius:9px;padding:5px 22px}.gd-tabbar button[aria-selected=true]{color:#102e35!important;background:#a2ead0;border-color:#d1fce9}.gd-tabbar button small{opacity:.7}.gd-tabbar>span{font-size:12px;color:#c9dfd6;margin-left:auto}.gd-page-grid{min-height:0;display:grid;grid-template-columns:repeat(var(--gd-cols),minmax(0,1fr));grid-template-rows:repeat(var(--gd-rows),minmax(0,1fr));gap:10px;touch-action:pan-y}.gd-game-card{position:relative;isolation:isolate;border:1px solid #7ea7a2;background:#214149;border-radius:12px;overflow:hidden;text-align:left;padding:0;display:flex;align-items:end;min-width:0}.gd-game-card .gd-scene:after{background:linear-gradient(0deg,#091c28 0%,#0a263d11 90%)}.gd-game-card .gd-scene-arena>img,.gd-scene-achievement-rings>img{object-fit:contain;padding:8px;box-sizing:border-box}.gd-card-copy{display:flex;flex-direction:column;padding:9px 12px;max-width:100%;box-sizing:border-box;gap:3px;background:linear-gradient(0deg,#0b2433,transparent);width:100%}.gd-card-copy strong{font-size:17px;text-shadow:0 1px 2px #000}.gd-card-copy small{font-size:10px;color:#c3dbd5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gd-resume{position:absolute;top:7px;right:7px;border:1px solid #f7d994;border-radius:10px;padding:3px 8px;background:#102d37ed;color:#ffe6a6;font-size:10px}.gd-word-preview{display:flex;align-items:center;justify-content:space-evenly;height:100%;background:linear-gradient(#7c6059,#273b43)}.gd-word-letters{font-size:30px;letter-spacing:8px;color:#ffe6a6}.gd-word-preview svg{height:65%;width:40%}.gd-chase-preview{display:flex;align-items:center;justify-content:center;height:100%;background:repeating-linear-gradient(90deg,#566868 0 48%,#e6dc9e 48% 51%,#566868 51% 100%)}.gd-preview-car{height:90%;width:50%;transform:rotate(12deg)}.gd-premium-mark{display:flex;height:100%;align-items:center;justify-content:center;gap:14px;font-size:36px;color:#e7cd78;background:radial-gradient(#577250,#1d3438)}.gd-pagebar{display:flex;align-items:center;justify-content:center;gap:14px;font-size:12px;color:#d7ede6;position:relative}.gd-pagebar button{border:1px solid #709d94;border-radius:8px;background:#14343b;width:48px;min-height:34px!important}.gd-pagebar button:disabled{opacity:.3;cursor:default!important}.gd-pagebar small{position:absolute;right:0;color:#9dc0b4;font-size:10px}@media(max-height:450px){.gd-compact{padding:30px 9px 4px;grid-template-rows:48px 67px 32px minmax(55px,1fr) 30px;gap:5px}.gd-topbar{padding:3px 8px;border-radius:10px}.gd-current-echo>img{height:38px;width:43px}.gd-current-echo strong{font-size:12px}.gd-current-echo small{font-size:9px}.gd-compact-wallet{font-size:13px}.gd-compact-wallet small{display:none}.gd-compact-capture{padding:6px 12px;font-size:12px!important}.gd-feature strong{font-size:22px}.gd-feature small{font-size:10px}.gd-feature{padding:8px 12px}.gd-tabbar button{padding:3px 20px;min-height:30px!important;font-size:12px!important}.gd-tabbar>span{font-size:10px}.gd-card-copy{padding:5px 9px}.gd-card-copy strong{font-size:14px}.gd-card-copy small{font-size:9px}.gd-resume{top:4px;right:4px;padding:2px 6px;font-size:9px}.gd-pagebar button{min-height:28px!important}.gd-word-letters{font-size:20px}.gd-page-grid{gap:7px}}@media(max-width:650px){.gd-tabbar>span{display:none}.gd-topbar{gap:7px}.gd-compact-wallet{font-size:12px}.gd-compact-capture span{display:none}.gd-featured{gap:7px}.gd-current-echo strong{max-width:130px}.gd-feature strong{font-size:20px}}

.gd-compact *{box-sizing:border-box}.gd-compact .gd-topbar{height:100%;min-height:0;margin:0;overflow:hidden}.gd-compact .gd-current-echo{height:100%;min-height:0}.gd-compact .gd-kingdom-preview img{height:100%;object-position:center bottom}

/* Reserve the shared menu corner without adding dashboard height. */
.game-session #game-home .gd-topbar{padding-right:var(--gs-menu-clear,calc(64px + env(safe-area-inset-right)))}

.gd-collection-preview,.gd-treasure-preview,.gd-capture-preview{display:flex;align-items:center;justify-content:center;height:100%;padding:12px 12px 42px;gap:2%;background:radial-gradient(ellipse at center,#3b6467,#102c3a)}
.gd-collection-preview img{width:30%;height:85%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 6px 3px #0007)}
.gd-collection-preview img:nth-child(2){transform:translateY(-8%)}
.gd-treasure-preview>span{width:30%;height:80%;display:grid;place-items:center}.gd-treasure-preview svg,.gd-treasure-preview img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.gd-capture-preview svg{height:65%;color:#9cf0d3}



/* Keep the Tavern shortcut between Emporium and Kingdom. */
.gd-featured:has(.gd-feature-tavern){grid-template-columns:repeat(3,minmax(0,1fr))}.gd-featured:has(.gd-feature-tavern) .gd-feature{min-width:0;padding:8px 12px}.gd-featured:has(.gd-feature-tavern) .gd-feature strong{font-size:clamp(16px,2.5vw,28px)}@media(max-width:700px){.gd-featured:has(.gd-feature-tavern){gap:6px}.gd-featured:has(.gd-feature-tavern) .gd-feature{padding:6px 8px}.gd-featured:has(.gd-feature-tavern) .gd-feature>b{font-size:18px}.gd-featured:has(.gd-feature-tavern) .gd-feature small{font-size:9px}}

/* Full cover illustrations share one crop treatment across Games, Rivals and Base. */
.gd-feature .gd-scene.gd-illustrated{left:0;background:none}
.gd-feature .gd-scene.gd-illustrated>img,.gd-game-card .gd-scene.gd-illustrated>img{width:100%;height:100%;padding:0;object-fit:cover;object-position:center 48%;image-rendering:auto;box-sizing:border-box}
