/* Eclipse Shards · feedback_1117c (lane screens): the death card (ui/death.js draws the molten ECLIPSED).
   Selectors are by class, not id: ui/firstopen.js warms a copy of this card with its ids stripped. Opacity-only entrances, nothing moves
   under the cursor; the Rise button keeps its place and size. */
#game .death-modal.death-modal{background:radial-gradient(ellipse 60% 50% at 50% 46%,rgba(12,3,7,.74),rgba(12,3,7,.4) 58%,transparent 86%),linear-gradient(transparent 30%,#100907d8)}
.death-modal .death-copy{max-width:min(900px,94vw)}

/* the crowned skull: FLORA still (assets/ui/death/skull.webp); a film of it replaces it when .death-skull has data-film (death.js) */
.death-modal .death-skull{position:relative;width:clamp(78px,12.5vh,124px);aspect-ratio:1;margin:0 auto 12px;pointer-events:none;font:0/0 a}
.death-modal .death-skull>img,.death-modal .death-skull>canvas{position:absolute;inset:0;width:100%;height:100%;display:block;filter:drop-shadow(0 10px 16px rgba(0,0,0,.85))}
.death-modal .death-skull>canvas{opacity:0;transition:opacity .6s}
.death-modal .death-skull.film-on>canvas{opacity:1}
.death-modal .death-skull.film-on>img{opacity:0;transition:opacity .6s}

/* ECLIPSED: the styled word (no canvas, or ?deathfx=0), and the molten canvas once death.js runs (.melt-on) */
.death-modal .death-copy h2.eclipsed{margin:4px 0 0;font:700 clamp(54px,7.6vw,104px)/1.05 var(--display);letter-spacing:.12em;text-transform:uppercase;color:#a8402a;background:linear-gradient(180deg,#f4dba0 0%,#dca052 24%,#a8402a 52%,#6e1722 78%,#3a0d26 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:none;filter:drop-shadow(0 6px 14px rgba(0,0,0,.85))}
.death-modal .death-copy h2.eclipsed>canvas{display:none}
.death-modal .death-copy h2.eclipsed.melt-on{font-size:0;line-height:0;background:none;filter:none;-webkit-text-fill-color:currentColor}
.death-modal .death-copy h2.eclipsed.melt-on>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.death-modal .death-copy h2.eclipsed.melt-on>canvas{display:block;margin:0 auto;max-width:100%;filter:drop-shadow(0 6px 12px rgba(0,0,0,.9)) drop-shadow(0 0 1px rgba(0,0,0,.8))}
.death-modal .death-copy .death-desc{margin-top:2px;text-shadow:0 2px 10px #000,0 0 2px #000}

/* the order things arrive in: skull, the line, the word (canvas, from the top down), the gold, the button */
.death-modal.show .death-skull{animation:es-skull-in 1.6s cubic-bezier(.2,.7,.2,1) .1s both,es-skull-float 6s ease-in-out 1.7s infinite alternate}
.death-modal.show .death-copy>p{animation:es-death-fade 1.2s ease .3s both}
.death-modal.show .death-desc{animation:es-death-fade 1.1s ease 1.1s both}
.death-modal.show .death-rise{animation:es-death-fade .9s ease 1.4s both}
@keyframes es-skull-in{from{opacity:0;transform:translateY(10px) scale(.92)}to{opacity:1;transform:none}}
@keyframes es-skull-float{from{transform:translateY(0)}to{transform:translateY(-4px)}}
@keyframes es-death-fade{from{opacity:0}to{opacity:1}}
/* the warm copy behind the first loading screen: everything at its final look, no entrances */
.death-modal.es-still *{animation:none!important}
@media (max-height:620px){.death-modal .death-skull{width:64px;margin-bottom:6px}}
