/* The status areas use fixed tracks. Only meter fills and text change during play. */
.state-panel .phase-heading { position:relative; }
.state-panel.state-high .phase-heading { padding-inline-end:clamp(85px,25vw,112px); }
.state-panel.state-high:has(#cz-next-guarantee:not([hidden])) #state-guide { visibility:visible; }
.state-panel.state-high #cz-next-guarantee { inset-block-start:-18px; font-size:10px; white-space:nowrap; padding:2px 3px; }
.state-panel.state-high #state-guide { white-space:nowrap; font-size:clamp(10px,3vw,13px); }
.state-panel.state-cz .phase-heading { padding-inline-end:87px; }
.state-panel.state-cz #state-guide { white-space:nowrap; }
#cz-periodic-note { position:absolute; inset-inline-end:3px; inset-block-start:4px; color:#ffda9d; font-size:10px; white-space:nowrap; }
#state-panel:is(.state-cz,.state-revival) .expectation-readout {
  align-self:center; grid-template-columns:clamp(60px,17vw,78px) minmax(0,1fr); grid-template-rows:1fr; align-items:center; gap:2px;
}
#state-panel:is(.state-cz,.state-revival) .expectation-readout > span { font-size:10px; line-height:13px; white-space:nowrap; }
#state-panel:is(.state-cz,.state-revival) .expectation-values { gap:2px; }
#state-panel:is(.state-cz,.state-revival) .expectation-values > div { grid-template-rows:13px minmax(18px,auto) 4px; }
#state-panel:is(.state-cz,.state-revival) .expectation-values small { line-height:13px; }
#state-panel:is(.state-cz,.state-revival) .expectation-values strong { font-size:clamp(15px,4.85vw,21px); }
#state-panel:is(.state-at-special,.state-at-return) .phase-metrics { grid-template-columns:var(--left-stat) minmax(0,1fr); }
#state-panel.state-at-special .state-summary { white-space:nowrap; }
.state-panel.state-normal .phase-metrics { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
.state-panel.state-normal #morning-ceiling { display:flex; align-items:center; justify-content:center; }
.state-panel.state-normal #morning-ceiling strong { font:800 clamp(10px,3vw,13px)/1.25 system-ui,sans-serif; white-space:nowrap; }
.state-panel.state-normal #cz-next-guarantee { position:absolute; inset-block-end:0; inset-inline-end:3px; font-size:10px; padding:1px 2px; }
.state-panel.state-normal:has(#cz-next-guarantee:not([hidden])) #morning-ceiling { align-self:start; }
#periodic-readout { grid-template-columns:minmax(0,1fr) max-content; align-self:center; width:100%; }
#periodic-readout span { font-size:clamp(10px,3.05vw,13px); }
#periodic-games { font-size:clamp(12px,4.1vw,20px); }

#state-panel:is(.state-at,.state-upper-at) .phase-metrics {
  grid-template-columns:minmax(0,.83fr) minmax(0,1.04fr) minmax(0,1fr);
  justify-items:stretch; column-gap:3px; text-align:center;
}
#state-panel:is(.state-at,.state-upper-at) #remaining-readout {
  grid-area:1/1; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:17px 22px;
  justify-content:stretch; justify-items:center; align-content:start; align-self:start; padding:0; text-align:center; gap:0; margin:0;
}
#state-panel:is(.state-at,.state-upper-at) #remaining-game { font-size:clamp(17px,5.8vw,27px); line-height:24px; }
#state-panel:is(.state-at,.state-upper-at) #remaining-label,
#state-panel #at-won > span,#state-panel:is(.state-at,.state-upper-at) #at-progress > span {
  font:750 clamp(10px,3vw,13px)/13px system-ui,sans-serif; white-space:nowrap;
}
#state-panel #at-won {
  grid-area:1/2; display:grid; grid-template-rows:17px 22px; align-self:start; justify-items:center;
  border-inline:1px solid #42616a; white-space:nowrap; min-width:0;
}
#state-panel #at-won strong { color:#ffe7ad; font:850 clamp(17px,5.8vw,24px)/23px var(--font-code); }
#state-panel:is(.state-at,.state-upper-at) #at-progress {
  grid-area:1/3; grid-template-columns:minmax(0,1fr);
  grid-template-rows:19px 18px 4px; margin:0; padding:0; gap:0; border:0;
}
#state-panel:is(.state-at,.state-upper-at) #at-progress > span { grid-area:1/1; }
#state-panel:is(.state-at,.state-upper-at) #at-progress > strong { grid-area:2/1; justify-self:center; font-size:clamp(12px,4.4vw,20px); line-height:18px; white-space:nowrap; }
#state-panel:is(.state-at,.state-upper-at) #at-progress .gauge-track { grid-area:3/1; width:92%; justify-self:center; }
#state-panel:is(.state-at,.state-upper-at) #at-progress small { display:none; }
.phase-heading #zone-total { white-space:nowrap; }
.phase-heading #zone-total:empty { display:none; }
.rare-roles[data-at-final="true"] .award-columns:not(:has([data-won])) { opacity:.57; }
.state-panel.state-revival .phase-heading strong { font-size:clamp(12px,4.2vw,19px); }
.state-panel.state-revival .phase-heading #state-guide { font-size:clamp(10px,3vw,13px); white-space:nowrap; }
.state-panel.state-upper-cz .phase-heading #state-guide { font-size:clamp(10px,3vw,13px); white-space:nowrap; }
.state-panel.state-upper-cz #upper-cz-rate::before { content:"約"; font-size:.60em; }
.recap-actual small { display:block; font-size:.82em; color:#adcfe2; }
#judge-coin-chart { height:120px; }
.guide-zone-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(245px,1fr)); gap:8px; }
.guide-zone-list figure { display:grid; gap:3px; margin:5px 0; }
.guide-zone-list .zone-photo { width:100%; height:auto; border:1px solid #4d7e9b; }
.guide-zone-list h3 { margin:0; color:#ffe2a2; font:850 16px/1.3 system-ui,sans-serif; }
.guide-zone-list .zone-focus { font-weight:800; color:#9beefa; }
.guide-spec-summary { display:flex; flex-wrap:wrap; gap:5px; font-size:12px; }
.guide-spec-summary span { background:#101d31; border:1px solid #38566e; padding:3px 6px; color:#e5f1ff; }

.state-panel.state-high .phase-metrics { --left-stat:clamp(43px,14vw,72px); }
.lcd-picture:has(.state-panel.state-high) { grid-template-rows:calc(var(--state-slot) + 12px) minmax(0,1fr) var(--notice-slot); }
.state-panel.state-high .phase-metrics #remaining-readout {
  grid-template-columns:1fr; justify-items:center; justify-content:center; text-align:center;
}
.state-panel.state-high .phase-metrics #remaining-game { justify-self:center; font-size:clamp(17px,5.8vw,29px); line-height:1; }
#high-summary { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:4px; line-height:13px; }
#high-summary > div { display:grid; grid-template-columns:max-content repeat(3,minmax(0,1fr)); gap:0 2px; text-align:right; }
#high-summary > div + div { border-inline-start:1px solid #59827a; padding-inline-start:3px; }
#high-summary > div > :nth-child(4n + 1) { text-align:left; }
#high-summary [aria-label] { font-variant-numeric:tabular-nums; }
.lcd-picture { position:relative; }
.lcd-notices:has(.entry-toast[data-theme="HIGH_CONTINUE"]:not([hidden])) { position:static; }
.lcd-notices .entry-toast[data-theme="HIGH_CONTINUE"]:not([hidden]) {
  inset:50% auto auto 50%; transform:translate(-50%,-50%); width:76%; min-height:76px;
  grid-template-columns:1fr; justify-items:center; align-content:center;
  border-color:#86f9ad; background:#041e19f5; color:#c0ffd8;
}
.entry-toast[data-theme="HIGH_CONTINUE"] strong { font-size:clamp(27px,9vw,40px); }
.entry-toast[data-theme="HIGH_CONTINUE"] p { font-size:13px; }
.high-recap { margin-top:12px; }
.high-recap-note { margin:4px 0; font-size:11px; color:#bdd4e4; }
