/* Little chapters layout with Quiet meter’s slim result bar. */
:root{--meter-hit:#a9c99d;--meter-hit-bg:#4b6c52;--meter-miss:#e0a990;--meter-miss-bg:#86584d;--meter-edge:#4a6172;--meter-well:#0b1d3266;--meter-shadow:#020f2044}
html[data-theme=light]{--meter-hit:#426348;--meter-hit-bg:#8eac83;--meter-miss:#94573f;--meter-miss-bg:#ca947c;--meter-edge:#78929566;--meter-well:#fff8e938;--meter-shadow:#5c77751f}
.quiet-meter{display:flex;align-items:center;gap:13px;width:min(306px,calc(100vw - 28px));max-width:100%;font:12px/1.3 Historicle,monospace;text-align:left;font-weight:400;user-select:none}
.meter-content{flex:1;min-width:0}
.meter-topline{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:6px}
.quiet-meter-game .quiet-meter .points-total{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:0;border-right:1px solid var(--meter-edge);padding-right:13px;color:var(--meter-hit);font-size:25px;line-height:1.1}
.quiet-meter .points-total small{color:var(--meter-hit);font-size:9px;line-height:1.1;margin-top:4px}
.meter-count{color:var(--muted);font-size:10px;white-space:nowrap}
.meter-track{display:grid;border:1px solid var(--meter-edge);padding:2px;height:12px;gap:1px;background:var(--meter-well);box-shadow:2px 2px var(--meter-shadow)}
.meter-cell{display:block;min-width:0;background:transparent}
.meter-cell.hit{background:var(--meter-hit-bg)}.meter-cell.miss{background:var(--meter-miss-bg)}
/* The larger header offsets the smaller top padding, leaving the rail in place. */
body.quiet-meter-game{--header-height:82px}
.quiet-meter-game .game{padding-top:18px}
.quiet-meter-game .game-header{grid-template-columns:minmax(120px,1fr) auto minmax(120px,1fr)}
@media(max-width:720px){
  body.quiet-meter-game{--header-height:124px}
  .quiet-meter-game .game-header{grid-template-columns:1fr auto;grid-template-rows:38px 56px;padding:calc(10px + var(--safe-top)) 0 10px;gap:8px}
  .quiet-meter-game .brand{grid-column:1;grid-row:1}.quiet-meter-game .landing-tools{grid-column:2;grid-row:1}
  .quiet-meter-game .run-status{grid-column:1/-1;grid-row:2;justify-self:center}
  .quiet-meter-game .game{padding-top:12px}
}
@media(max-height:480px) and (orientation:landscape){
  body.quiet-meter-game{--header-height:66px}
  .quiet-meter-game .quiet-meter{max-width:270px}
  .quiet-meter-game .game-header{grid-template-columns:minmax(105px,1fr) auto minmax(105px,1fr);grid-template-rows:1fr;gap:7px;padding:calc(4px + var(--safe-top)) 0 4px}
  .quiet-meter-game .run-status{grid-column:2;grid-row:1}.quiet-meter-game .landing-tools{grid-column:3;grid-row:1}.quiet-meter-game .brand{font-size:20px}
  .quiet-meter-game .game{padding-top:5px}
}

/* Leave clear space between the meter and pinned controls on narrow landscapes. */
@media(max-width:600px) and (max-height:480px) and (orientation:landscape){
  .quiet-meter-game .quiet-meter{max-width:min(240px,calc(100vw - 320px))}
}
