/* Size the playable grid from the space left after the real, rendered controls. */
body{height:var(--candivo-view-height,100dvh);min-height:0;overflow:hidden}
.game{height:100%;min-height:0;box-sizing:border-box;display:flex;flex-direction:column;padding:4px 3px;overflow:hidden;--compact-board-size:var(--candivo-board-size,min(96vw,60dvh));--cell:calc((var(--compact-board-size) - 18px)/8)}
.game>.world-profile-strip,.game>.hud,.game>.level-line,.game>.task-progress,.game>.bottom-bar,.game>.podium-stage{flex:0 0 auto}
.game>.world-profile-strip{margin-bottom:4px}.game .world-profile-chip{min-height:42px}.game>.level-line{margin-top:4px;margin-bottom:3px}
.game .level-line .resources span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.game>.play-area{flex:1 1 0;min-height:0;gap:4px;overflow:hidden;justify-content:flex-start;align-items:center}
.game .board-frame{width:var(--compact-board-size);max-width:100%;flex:0 0 auto}
.game .board{width:calc(var(--compact-board-size) - 4px);height:calc(var(--compact-board-size) - 4px);align-content:start;justify-content:start}
.game .tile{padding:0;min-width:0;min-height:0}
.game.viewport-short>.world-profile-strip,.game.viewport-short>.podium-stage,.game.viewport-short>.arena-journey-strip{display:none}
.game .power-rail{flex:0 0 auto;width:100%;max-width:820px}
.game>.bottom-bar{width:100%;margin:2px auto 0;min-height:0}.game>.bottom-bar p{margin:2px 0;font-size:10px;line-height:13px;max-height:26px;overflow:auto}
.game>.podium-stage{min-height:36px;height:36px;max-width:100%;margin:3px auto 0;padding:4px 8px}.game>.podium-stage .podium-medal{width:25px;height:25px;font-size:21px}.game>.podium-stage .podium-copy{gap:1px}.game>.podium-stage .podium-copy b{font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.game>.podium-stage .podium-copy small{font-size:8px;letter-spacing:1px}
.duel-shell.duel-playing{height:var(--candivo-view-height,100dvh);bottom:auto}.duel-playing>.duel-content{overflow:hidden}.duel-playing .duel-pane.own .duel-grid{flex-shrink:0}
@supports(width:1cqh){.duel-playing .duel-pane.own{container-type:size}.duel-playing .duel-pane.own .duel-grid{width:min(100cqw,100cqh,700px);height:min(100cqw,100cqh,700px)}}
.duel-playing .voice-safety:not([open]){position:static;align-self:flex-end;flex:0 0 auto;min-height:14px;margin:0;padding:0 4px;max-width:100%;font-size:9px;line-height:14px}
@media(max-height:600px){.game>.world-profile-strip{margin-bottom:2px}.game .world-profile-chip{min-height:34px;padding-block:2px}.game .world-profile-chip img{width:26px;height:26px}.game>.podium-stage{height:29px;min-height:29px}.game>.task-progress{padding-block:4px;margin-bottom:4px}.game .compact-controls #soundToggle,.game .compact-controls #restartBtn,.game .compact-controls #reportBugBtn,.game .power-rail .power{height:38px;min-height:38px}}
