/* T-131: run result screen. Dark record sheet for the death panel (same felt / case / line tokens as the codex),
   plus the shared .rr-* blocks that the solo panels and the co-op result both use (colours follow currentColor).
   Static on purpose: no animation or transition, so the effects setting changes nothing here. */
.screen-overlay > #death-content {
 --record-accent:#ffb3a1; --rr-line:#2e4a42; --rr-case:#15251f; --rr-quiet:#9bb2a8;
 width:min(820px,100%); padding:26px 30px 22px 50px; background:linear-gradient(to right,#1c3129 0 18px,transparent 18px),#0f1c17; color:#e9efe7;
}
#death-content::after { background:radial-gradient(circle,#4c6b60 0 2px,transparent 2.5px) center top / 6px 24px repeat-y; }
#death-content h2 { padding-bottom:12px; font-size:38px; color:#f3e9cd; border-bottom-color:var(--record-accent); }
#death-content .run-results { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 22px; margin:14px 0 10px; }
#death-content .run-results > div { padding:8px 0; border-bottom:1px solid var(--rr-line); color:var(--rr-quiet); font-size:16px; }
#death-content .run-results > div strong,#death-content .run-results > div:first-child strong { color:#f3e9cd; font-size:26px; }
#death-content .recap-loadout { border-top-color:var(--rr-line); }
#death-content .recap-loadout h3,.rr-route h3 { color:#d7ff3f; }
#win-content .rr-route h3 { color:#334d43; }
#death-content .result-actions { border-top-color:var(--rr-line); background:transparent; display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:12px; align-items:center; }
#death-content .primary-button { margin:0; background:#d7ff3f; color:#14201b; }
#death-content .subtle-button { margin:0; min-height:56px; border:1px solid #5d7a70; color:#e9efe7; background:#15251f; text-decoration:none; }
#death-content button:focus-visible:not(:disabled) { outline:3px solid #f3e9cd; }
.rr-place { margin:6px 0 4px; font-size:18px; line-height:1.6; color:#ffb3a1; text-align:left; overflow-wrap:anywhere; }
.rr-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(90px,1fr)); gap:6px; margin:10px 0 6px; }
.rr-stat { display:flex; flex-direction:column; gap:2px; padding:7px 10px; border:1px solid rgba(155,178,168,.35); background:rgba(21,37,31,.55); text-align:left; min-width:0; }
.rr-stat span { font-size:13px; opacity:.8; }
.rr-stat strong { font:700 20px/1.25 var(--mono); overflow-wrap:anywhere; }
.rr-route { text-align:left; padding:10px 0 8px; border-top:1px solid rgba(155,178,168,.4); }
.rr-route h3 { margin:0 0 6px; font-size:17px; font-weight:700; }
.rr-floors { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.rr-floor { display:grid; grid-template-columns:44px 52px minmax(0,1fr); align-items:center; gap:8px; font-size:15px; line-height:1.5; }
.rr-floor b { font:700 16px var(--mono); }
.rr-floor time { font:13px var(--mono); opacity:.7; }
.rr-rooms { display:flex; flex-wrap:wrap; gap:4px; min-width:0; }
.rr-room { padding:1px 8px; border:1px solid rgba(155,178,168,.5); font-size:13px; white-space:nowrap; }
.rr-room-boss { border-color:#ffb3a1; color:#ffb3a1; font-weight:700; }
.rr-room-shop,.rr-room-treasure { border-color:#f2cf86; }
.rr-held-row { display:grid; grid-template-columns:44px minmax(0,1fr); gap:8px; align-items:baseline; margin:3px 0; font-size:15px; }
.rr-held-label { font-size:13px; opacity:.75; }
.rr-held-row .recap-weapons { font-size:15px; line-height:1.55; }
.rr-held .recap-empty { margin:0; font-size:14px; }
.rr-held-line { font-size:14px; }
@media (max-height:760px) {
 .screen-overlay > #death-content { padding:16px 24px 14px 46px; }
 #death-content h2 { font-size:30px; padding-bottom:8px; }
 #death-content .run-results > div { padding:4px 0; }
 #death-content .run-results > div strong,#death-content .run-results > div:first-child strong { font-size:22px; }
 #death-content .result-actions { padding-top:8px; }
 #death-content .result-actions .primary-button { min-height:46px; font-size:19px; }
 #death-content .result-actions .subtle-button { min-height:46px; }
 .rr-place { font-size:16px; margin:2px 0; }
 .rr-stat { padding:4px 8px; } .rr-stat strong { font-size:17px; }
}
@media (max-width:640px) { #death-content .run-results { grid-template-columns:repeat(2,minmax(0,1fr)); } #death-content .result-actions { grid-template-columns:1fr; } }
/* Co-op result: with the longer record the page must stay inside the shell so the actions below the scrolling body stay on screen. */
.coop-shell[data-page="result"] .coop-pages > #coop-result { height:100%; max-height:100%; }
.coop-shell[data-page="result"] .coop-result-body { overflow-y:auto; }
