#accident-screen { --pink: #f9a0ca; }
.accident-intro { flex: 0 0 108px; padding: 20px 24px 0; text-align: center; }
.accident-tag { display: inline-flex; align-items: center; gap: 7px; color: var(--pink); font-size: 12px; font-weight: 650; visibility: hidden; opacity: 0; }
.accident-tag::before { content: ""; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }
.accident-intro h2 { margin: 15px 0 0; font-size: 28px; font-weight: 850; line-height: 1.3; }
.accident-stage { flex: 1 1 auto; min-height: 250px; position: relative; container-type: size; isolation: isolate; overflow: hidden; }
.accident-art { position: absolute; width: min(100cqw, 100cqh); aspect-ratio: 1; left: 50%; bottom: 0; margin-left: calc(min(100cqw, 100cqh) / -2); }
.accident-art img { display: block; object-fit: contain; pointer-events: none; }
.accident-floor { position: absolute; width: 100%; height: 24%; bottom: 0; background: #202026; clip-path: polygon(12% 28%,77% 0,100% 40%,88% 90%,20% 100%,0 61%); }
.accident-oven-intact, .accident-oven-wreck { position: absolute; width: 78%; right: -5%; bottom: 18%; z-index: 1; transform-origin: 52% 83%; }
.accident-oven-wreck { opacity: 0; }
.accident-amu-before { position: absolute; width: 88%; left: -12%; bottom: 1%; z-index: 2; transform-origin: 40% 85%; }
.accident-amu-after { position: absolute; width: 66%; height: 82%; left: 0; bottom: 0; z-index: 3; opacity: 0; transform-origin: 50% 90%; }
.accident-amu-after img { width: 100%; height: 100%; transform-origin: 50% 95%; }
.accident-input { position: absolute; width: 20%; height: 25%; left: 26%; top: 37%; z-index: 4; transform-origin: center; }
.accident-pressure { position: absolute; width: 22%; height: 36%; top: 3%; left: 72%; z-index: 2; opacity: 0; transform-origin: center bottom; }
.pressure-two { left: 63%; top: 10%; }
.accident-poof { position: absolute; width: 106%; height: 80%; left: -3%; top: 12%; z-index: 8; opacity: 0; }
.accident-bang { position: absolute; right: 20%; top: 21%; font-size: 45px; font-weight: 900; color: var(--green); z-index: 9; opacity: 0; text-shadow: 3px 3px #101014; }
.accident-silence { position: absolute; left: 15%; top: 3%; width: 64px; height: 40px; display: grid; place-items: center; background: var(--pink); color: #101014; border-radius: 8px; font-size: 21px; font-weight: 750; z-index: 7; opacity: 0; transform: rotate(-6deg); }
.accident-silence::after { content: ""; position: absolute; width: 10px; height: 10px; left: 20px; bottom: -4px; background: var(--pink); transform: rotate(45deg); }
.accident-ash { position: absolute; width: 5px; height: 4px; background: #a4a3a6; opacity: 0; z-index: 6; left: 26%; top: 34%; transform: rotate(30deg); }
.ash-two { left: 40%; top: 24%; width: 4px; height: 6px; }
.ash-three { left: 14%; top: 51%; width: 3px; height: 4px; }
.accident-escaped-bug { position: absolute; width: 17%; left: 75%; bottom: 4%; z-index: 5; opacity: 0; }
.accident-caption { flex: 0 0 60px; display: grid; place-items: center; padding: 8px 20px 0; color: #b3b3bf; font-size: 12px; text-align: center; }
.accident-actions { flex: 0 0 124px; padding: 14px 24px 48px; }
.accident-actions .feed-now { visibility: hidden; opacity: 0; pointer-events: none; }
#accident-screen[data-phase="result"] .accident-tag,
#accident-screen[data-phase="result"] .accident-actions .feed-now { visibility: visible; }
#accident-screen[data-phase="result"] .accident-actions .feed-now { pointer-events: auto; }
#accident-mode-control[hidden] { display: none; }
@media (max-height: 740px) {
  body.export .accident-intro { flex-basis: 91px; padding-top: 10px; }
  body.export .accident-intro h2 { font-size: 25px; margin-top: 12px; }
  body.export .accident-caption { flex-basis: 42px; }
  body.export .accident-actions { flex-basis: 112px; padding-top: 8px; }
}
@media (max-height: 640px) {
  body.export .accident-stage { min-height: 160px; }
}
