/* A compact status box, with stage and controls on a separate line. */
.game-app .game-topbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:36px;
    margin-bottom:-6px;
    padding:0 3px;
}
.game-topbar .round-information { text-align:left; min-width:0; }
.game-topbar #hud-mode-badge { padding:6px 9px; font-size:13px; white-space:nowrap; }
.game-topbar .game-controls { gap:5px; }
.game-topbar .game-controls .icon-button {
    width:32px; height:32px; min-width:32px; min-height:32px; border-radius:10px;
}
.game-topbar .icon-button .icon,
.game-topbar .sound-button::before { width:16px; height:16px; }
.game-app .game-panel.game-hud {
    display:grid;
    grid-template-columns:minmax(64px,.9fr) minmax(0,2fr) minmax(48px,.65fr);
    align-items:center;
    gap:10px;
    padding:12px 14px;
    min-height:78px;
    border-radius:20px;
}
.game-panel.game-hud .score-main,
.game-panel.game-hud .moves-stat,
.game-panel.game-hud .time-gauge {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-width:0;
    gap:3px;
    text-align:center;
}
.game-panel.game-hud .score-main { grid-column:1; grid-row:1; }
.game-panel.game-hud #hud-score {
    font-size:30px;
    line-height:1;
    letter-spacing:-.7px;
    max-width:100%;
    overflow-wrap:anywhere;
}
.game-hud .hud-stat-icon { color:#aaa0c9; font-size:15px; line-height:1; }
.game-panel.game-hud #stage-mission-bar:not(.hidden) { display:contents; }
.game-panel.game-hud #stage-mission-chips {
    grid-column:2;
    grid-row:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    flex-wrap:nowrap;
    min-width:0;
    gap:5px;
}
.game-panel.game-hud #stage-mission-chips > .mission-chip {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:nowrap;
    position:relative;
    gap:6px;
    min-width:0;
    max-width:100%;
    padding:5px 8px;
    border:0;
    border-radius:10px;
    background:#f1edfc;
    color:#665781;
    font-size:17px;
    line-height:1.2;
    white-space:nowrap;
}
.mission-icon { display:flex; align-items:center; justify-content:center; flex:none; width:28px; height:28px; font-size:22px; }
.mission-icon img { display:block; width:28px; height:28px; object-fit:contain; }
.mission-progress { display:flex; align-items:baseline; gap:2px; min-width:0; }
.mission-progress strong { font-weight:800; }
.mission-progress > span { font-size:.9em; color:#746388; }
.mission-check { font-size:13px; color:#2f7564; }
.game-panel.game-hud #stage-mission-chips > .is-complete { background:#e6f5ef; color:#2f7564; }
.game-panel.game-hud .is-complete .mission-progress > span { color:#508b7c; }
.game-panel.game-hud .moves-stat { grid-column:3; grid-row:1; padding:0 0 0 6px; border:0; border-left:1px solid #eee8f6; }
.game-panel.game-hud #hud-moves-value { font-size:30px; line-height:1; }
.game-panel.game-hud .gauges { display:contents; }
.game-panel.game-hud .time-gauge { display:none; grid-column:3; grid-row:1; border-left:1px solid #eee8f6; padding-left:6px; }
.game-panel.game-hud .time-gauge .gauge-track { display:none; }
.game-panel.game-hud #hud-time-icon .icon { width:16px; height:16px; }
.game-panel.game-hud #hud-time-text { min-width:0; font-size:28px; line-height:1; text-align:center; }
.game-panel.game-hud #hud-time-text::after { content:'s'; font:12px 'Noto Sans KR',sans-serif; margin-left:2px; }
.game-panel.game-hud:has(#stage-mission-bar.hidden) { grid-template-columns:minmax(0,1fr) minmax(60px,.6fr); }
.game-panel.game-hud:has(#stage-mission-bar.hidden) .time-gauge { display:flex; grid-column:2; }
.game-panel.game-hud:has(#hud-time-bar.from-teal-400) #hud-time-text::after { content:none; }
.game-app:has(#hud-mode-badge.bg-rose-500) .game-hud .moves-stat { display:none; }
.game-app:has(#hud-mode-badge.bg-rose-500) .game-hud .time-gauge { display:flex; }
.game-app .hud-aux { display:none!important; }
.hud-visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
@media (max-width:650px), (orientation:landscape) and (max-height:500px) and (max-width:1000px) {
    .game-app { gap:9px; }
    .game-app .game-topbar { margin-bottom:-3px; }
    .game-app .game-panel.game-hud {
        grid-template-columns:minmax(52px,.9fr) minmax(0,2fr) minmax(40px,.65fr);
        gap:7px;
        padding:9px 10px;
        min-height:68px;
        border-radius:16px;
    }
    .game-panel.game-hud #hud-score { font-size:clamp(20px,6.2vw,26px); }
    .game-panel.game-hud #hud-moves-value,
    .game-panel.game-hud #hud-time-text { font-size:26px; }
    .game-panel.game-hud #stage-mission-chips > .mission-chip { font-size:16px; padding:4px 5px; gap:4px; }
    .game-panel.game-hud:has(#stage-mission-bar.hidden) { grid-template-columns:minmax(0,1fr) minmax(60px,.6fr); }
    .game-app .board-shell { padding:6px; }
    .game-app .board-note { display:none; }
}
@media (max-width:350px) {
    .game-panel.game-hud #stage-mission-chips > .mission-chip { font-size:14px; }
    .mission-icon,.mission-icon img { width:24px; height:24px; }
    .mission-icon { font-size:20px; }
}
@media (orientation:landscape) and (max-height:500px) and (max-width:1000px) {
    .game-app { grid-template-rows:min-content min-content 1fr; }
    .game-app .game-topbar { grid-column:1; grid-row:1; }
    .game-app .game-panel.game-hud { grid-column:1; grid-row:2; }
    .game-app .game-tools { grid-column:1; grid-row:3; }
    .game-app .board-shell { grid-column:2; grid-row:1 / span 3; }
}
