/* Shared HUD geometry: theme artwork supplies surfaces, not text placement. */
html body.layout-pad[data-ui-context="game"] {--pad-top-h:56px}
html body.layout-pad #padTop .pad-stat {
 display:grid!important;grid-template-rows:14px minmax(0,1fr);align-content:start;align-items:start;justify-items:center;
 box-sizing:border-box;min-width:0;margin:0!important;padding:6px 4px;gap:0!important;
}
html body.layout-pad #padTop .pad-stat>small {
 align-self:start;line-height:14px;margin:0;white-space:nowrap;max-width:100%;
}
html body.layout-pad #padTop .pad-stat>strong {
 align-self:start;margin:0;line-height:1.1;min-width:0;
}
html body.layout-pad #padTop .pad-score-slot {align-self:start;align-items:flex-start;max-width:100%;min-width:0}
html body.layout-pad #padTop #scoreBox {align-items:baseline;max-width:100%;gap:var(--hud-score-gap)}
html body.layout-pad #padTop #scoreValue {margin:0;line-height:1.1!important}
/* v0.15.184: the three numbers (moves, skill, level points) share one size; the clock is smaller but larger than before and further from the points;
   the skill trend arrows are about twice as big. Everything shrinks together on narrow and short screens. */
html body.layout-pad{--hud-num:20px;--hud-clock:14px;--hud-trend-h:28px;--hud-score-gap:8px}
@media(max-width:379px){html body.layout-pad{--hud-num:18px;--hud-clock:12px;--hud-trend-h:24px;--hud-score-gap:7px}}
@media(max-width:339px){html body.layout-pad{--hud-num:16px;--hud-clock:11px;--hud-trend-h:22px;--hud-score-gap:6px;--hud-trend-dx:2px}}
html body.layout-pad #padTop .pad-stat-moves>strong,
html body.layout-pad #padTop .pad-stat-level>strong,
html body.layout-pad #padTop #scoreBox strong {font-size:var(--hud-num)!important}
html body.layout-pad #padTop .pad-stat-moves>strong em {font-size:.66em}
html body.layout-pad #padTop #scoreBox #scoreBonus {font-size:calc(var(--hud-num)*.5);line-height:1.1;color:var(--ui-accent,#ffd76a)}
html body.layout-pad #padTop #scoreBox #scoreTime {font-size:var(--hud-clock)}
