/* High specificity: embedded presentation overrides standalone game styles only. */
html[data-gamehub-embedded],html[data-gamehub-embedded] body{width:100%;height:100%;height:100dvh;min-height:0;margin:0;overflow:hidden}
html[data-gamehub-embedded] .page,html[data-gamehub-embedded] .wrap{width:100%;max-width:none;height:100%;padding:8px;margin:0;display:flex;flex-direction:column;min-height:0;overflow:hidden}
html[data-gamehub-embedded] .page>header,html[data-gamehub-embedded] .wrap>.game-header,html[data-gamehub-embedded] .wrap>h1,html[data-gamehub-embedded] .wrap>.eyebrow,html[data-gamehub-embedded] .wrap>.subtitle,html[data-gamehub-embedded] .page>.page-note,html[data-gamehub-embedded] .page>.top-hud,html[data-gamehub-embedded] .page>.ingredients-panel{display:none}
html[data-gamehub-embedded] .page>.layout,html[data-gamehub-embedded] .page>.game-layout,html[data-gamehub-embedded] .page>.app-layout,html[data-gamehub-embedded] .wrap>.game-layout{display:flex;flex:1 1 0;min-width:0;min-height:0;gap:0;align-items:stretch}
html[data-gamehub-embedded] .arena-wrap:not(.is-fullscreen),html[data-gamehub-embedded] .race-surface:not(.is-fullscreen),html[data-gamehub-embedded] .game-surface:not(.is-fullscreen),html[data-gamehub-embedded] .play-surface:not(.is-fullscreen){width:100%;height:100%;min-height:0;max-height:none;flex:1 1 0;border-radius:12px}
html[data-gamehub-embedded] .stage-panel{display:flex;flex-direction:column;flex:1 1 0;min-height:0;min-width:0}
html[data-gamehub-embedded] .stage-toolbar{flex:none;height:44px;padding:8px 12px}
html[data-gamehub-embedded] .stage-panel .mission-summary,html[data-gamehub-embedded] .stage-panel>.game-message{display:none}
html[data-gamehub-embedded] .stage-wrap{flex:1 1 0;min-height:0}
html[data-gamehub-embedded] .viewport{height:100%;min-height:0;aspect-ratio:auto}
html[data-gamehub-embedded] .stage-panel>.hud{flex:none;padding:6px 12px;font-size:10px}
/* Burger inputs remain on the game surface instead of an off-screen panel. */
html[data-gamehub-embedded] .play-surface .fullscreen-hud{display:flex;top:8px;font-size:11px}
html[data-gamehub-embedded] .play-surface .plate-labels{top:52px}
html[data-gamehub-embedded] .play-surface .view-buttons{top:94px}
html[data-gamehub-embedded] .play-surface .fullscreen-ingredients{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));bottom:8px}
html[data-gamehub-embedded] .play-surface .fullscreen-ingredients .ingredient-button{min-height:58px;padding:5px 2px}
html[data-gamehub-embedded] .play-surface .fullscreen-ingredients .ingredient-icon{font-size:20px;margin-bottom:3px}
html[data-gamehub-embedded] .play-surface .build-actions{bottom:78px}
html[data-gamehub-embedded] .play-surface .feedback{bottom:138px;padding:6px}
html[data-gamehub-embedded] .game-overlay{overflow:hidden;padding:12px}
html[data-gamehub-embedded] .overlay-card{transform-origin:center;max-width:95%;flex:none}
/* Boards reserve a compact action strip and use a square bounded by both axes. */
html[data-gamehub-embedded] .board-section,html[data-gamehub-embedded] .board-area{height:100%;flex:1 1 0;min-height:0;min-width:0;padding:6px;display:flex;flex-direction:column}
html[data-gamehub-embedded] .board-toolbar,html[data-gamehub-embedded] .view-tools{flex:none;min-height:38px;padding:4px 6px;margin:0;flex-wrap:wrap}
html[data-gamehub-embedded] .board-play-surface:not(.is-board-fullscreen){flex:1 1 0;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:52px 0 0}
html[data-gamehub-embedded] .board-fullscreen-actions,html[data-gamehub-embedded] .board-fullscreen-actions[hidden]{display:flex!important;position:absolute;top:0;left:0;right:0;z-index:30;align-items:center;justify-content:space-between;gap:6px;padding:4px 8px;background:#102336;color:#eaf7ff;border-radius:8px}
html[data-gamehub-embedded] .board-fullscreen-actions button{font-size:11px;padding:7px}
html[data-gamehub-embedded] .board-play-surface:not(.is-board-fullscreen) #fullscreen-exit-btn{display:none}
html[data-gamehub-embedded] .board-section>.board-footer{flex:none;padding:5px;font-size:9px}
html[data-gamehub-embedded] .board-play-surface:not(.is-board-fullscreen)>#board,html[data-gamehub-embedded] .board-play-surface:not(.is-board-fullscreen)>#boardWrapper{width:var(--hub-board-size,100%);height:var(--hub-board-size,100%);aspect-ratio:1;flex:none;margin:0;min-height:0}
html[data-gamehub-embedded] .board-cell{min-height:0;padding:2px}
html[data-gamehub-embedded] .board-play-surface:not(.is-board-fullscreen)>.scene-wrap,html[data-gamehub-embedded] .board-play-surface:not(.is-board-fullscreen)>#stage3d{width:100%;height:100%;min-height:0;flex:1 1 0}
html[data-gamehub-embedded] .scene-3d{height:100%;min-height:0}
/* Panels are paged in an accessible dialog; they never add height to the game. */
html[data-gamehub-embedded] .hub-settings{box-sizing:border-box;width:min(640px,calc(100vw - 20px));height:min(740px,calc(100dvh - 20px));max-height:calc(100dvh - 20px);padding:12px;border:1px solid #547487;border-radius:14px;background:#152333;color:#eaf7ff;overflow:hidden}
html[data-gamehub-embedded] .hub-settings[open]{display:flex;flex-direction:column}
.hub-settings::backdrop{background:#071522aa}
.hub-settings-bar{display:flex;align-items:center;gap:10px;flex:none;margin-bottom:10px}
.hub-settings-bar select{flex:1;min-width:0;padding:8px;background:#23384b;color:white;border:1px solid #547487;border-radius:8px;font:inherit}
.hub-settings-bar button{padding:8px 12px;color:white;background:#23384b;border:1px solid #547487;border-radius:8px;cursor:pointer}
.hub-settings-viewport{flex:1 1 0;min-height:0;position:relative;overflow:hidden}
.hub-settings-content{width:100%;transform-origin:top center}
html[data-gamehub-embedded] .hub-settings-content>.panel,html[data-gamehub-embedded] .hub-settings-content>div{margin:0;min-width:0;max-width:100%}
html[data-gamehub-embedded] .hub-settings-content [data-hub-panel][hidden]{display:none!important}
html[data-gamehub-embedded] .menu-overlay{height:100%;overflow:hidden;padding:12px 20px}
html[data-gamehub-embedded] .menu-overlay .menu-nav{margin-bottom:12px}
html[data-gamehub-embedded] .menu-overlay .mode-layout{min-height:0;gap:24px}
html[data-gamehub-embedded] .menu-overlay .mode-panel{padding:18px}
html[data-gamehub-embedded] .menu-overlay .hero-car{display:none}
html[data-gamehub-embedded] .menu-overlay .menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-gamehub-embedded] .menu-overlay .track-card{padding:8px}
html[data-gamehub-embedded] .menu-overlay .track-heading{margin-bottom:12px}
html[data-gamehub-embedded] .menu-overlay .track-thumb{max-height:90px;margin-bottom:6px}
html[data-gamehub-embedded] .menu-overlay .menu-section{margin-bottom:6px}
.hub-track-pager{display:flex;justify-content:center;align-items:center;gap:12px;margin:8px 0;color:#d2e7f7;font:12px system-ui}
.hub-track-pager button{padding:6px 12px;color:#d2e7f7;background:#23384b;border:1px solid #547487;border-radius:8px}
@media(max-width:650px){html[data-gamehub-embedded] .page,html[data-gamehub-embedded] .wrap{padding:4px}html[data-gamehub-embedded] .menu-overlay .mode-hero{display:none}html[data-gamehub-embedded] .menu-overlay .mode-panel{padding:14px}html[data-gamehub-embedded] .menu-overlay .menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-gamehub-embedded] .board-toolbar>div:first-child,html[data-gamehub-embedded] .board-toolbar>span,html[data-gamehub-embedded] .view-tools>span{display:none}html[data-gamehub-embedded] .board-fullscreen-actions{flex-wrap:wrap}html[data-gamehub-embedded] .play-surface .fullscreen-ingredients{grid-template-columns:repeat(5,minmax(0,1fr))}html[data-gamehub-embedded] .play-surface .build-actions{bottom:136px}html[data-gamehub-embedded] .play-surface .feedback{bottom:187px}html[data-gamehub-embedded] .play-surface .build-actions button{padding:8px 6px}html[data-gamehub-embedded] .play-surface .fullscreen-ingredients .ingredient-button strong{font-size:8px}html[data-gamehub-embedded] .play-surface .plate-labels{top:48px}html[data-gamehub-embedded] .play-surface .view-buttons{top:86px}}
@media(max-height:420px){html[data-gamehub-embedded] .overlay-card .chef-face,html[data-gamehub-embedded] .overlay-card .flow,html[data-gamehub-embedded] .overlay-card .stage-flow{display:none}html[data-gamehub-embedded] .play-surface .fullscreen-ingredients{grid-template-columns:repeat(10,minmax(0,1fr))}html[data-gamehub-embedded] .play-surface .build-actions{bottom:74px}html[data-gamehub-embedded] .play-surface .feedback{bottom:122px}}
