/* Standalone Deathmatch arena; custom illustrated background will be added later. */
html,body.deathmatch-page{min-height:100%;margin:0;background:#050812}
body.deathmatch-page{background:radial-gradient(ellipse at 50% 15%,#24293d 0%,#0b101c 48%,#04060b 100%);background-attachment:fixed}
.deathmatch-page .deathmatch-overlay{position:relative;inset:auto;z-index:1;min-height:100vh;padding:40px 16px;align-items:flex-start}
.deathmatch-page .deathmatch-panel{max-height:none;width:min(980px,100%);padding-top:54px}
.deathmatch-back-link{position:absolute;left:20px;top:17px;color:#e8c6b6;text-decoration:none;font:700 13px Georgia;border:1px solid #725d55;border-radius:5px;padding:8px 11px;background:#1d1720}
.deathmatch-back-link:hover{background:#38232b;color:#fff}
@media(max-width:620px){.deathmatch-page .deathmatch-overlay{padding:12px 6px}.deathmatch-page .deathmatch-panel{padding-top:60px}.deathmatch-back-link{left:12px;top:12px}}

/* Custom Deathmatch coliseum artwork: place image at /deathmatch-arena.png */
body.deathmatch-page{background-image:linear-gradient(90deg,rgba(2,5,12,.20),rgba(2,5,12,.07) 50%,rgba(2,5,12,.20)),url('/deathmatch-arena.png');background-size:cover;background-position:center center;background-repeat:no-repeat;background-attachment:fixed}
.deathmatch-page .deathmatch-panel{background:linear-gradient(140deg,rgba(14,17,26,.92),rgba(9,12,20,.90));backdrop-filter:blur(4px)}
@media(max-width:620px){body.deathmatch-page{background-position:center top;background-attachment:scroll}}

/* Match dashboard background sizing: stretch artwork to the full viewport, fixed in place. */
html,body.deathmatch-page{width:100%;min-height:100%;}
body.deathmatch-page{background-image:none!important;background:#050912!important;position:relative;overflow-x:hidden}
body.deathmatch-page::before{content:"";position:fixed;z-index:0;inset:0;width:100vw;height:100vh;pointer-events:none;background-image:url('/deathmatch-arena.png');background-repeat:no-repeat;background-size:cover;background-position:center center}
.deathmatch-page .deathmatch-overlay{position:relative;z-index:1}
@media(max-width:620px){body.deathmatch-page::before{background-size:cover;background-position:center top}}

/* Reveal more of the arena artwork through the Deathmatch comparison panel. */
.deathmatch-page .deathmatch-panel{background:linear-gradient(140deg,rgba(14,17,26,.66),rgba(9,12,20,.58));backdrop-filter:blur(2px)}
.deathmatch-page .deathmatch-pick{background:rgba(13,20,29,.65)}
.deathmatch-page .deathmatch-outcome{background:rgba(9,15,24,.64)}
.deathmatch-page .deathmatch-verdict{background:linear-gradient(120deg,rgba(39,30,36,.72),rgba(21,24,32,.64))}

/* Cinematic 4.4-second fade-in, matching the cemetery intro title. */
.deathmatch-page .deathmatch-panel{animation:deathmatchPanelAppear 4.4s ease-out both;animation-delay:1.15s}
@keyframes deathmatchPanelAppear{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.deathmatch-page .deathmatch-panel[hidden],.deathmatch-page .deathmatch-show[hidden]{display:none!important}
.deathmatch-page .deathmatch-panel.deathmatch-reveal{animation:deathmatchPanelAppear 1.1s ease-out both;animation-delay:0s}
.deathmatch-hide{position:absolute;right:17px;top:15px;z-index:3;border:1px solid #8d736c;border-radius:5px;background:rgba(14,14,20,.55);color:#f4e4dc;padding:7px 12px;font:700 16px Arial;cursor:pointer}
.deathmatch-hide:hover{background:rgba(76,32,42,.8)}
.deathmatch-page .deathmatch-show{position:fixed;top:22px;left:50%;transform:translateX(-50%);z-index:5;border:1px solid #b18a79;border-radius:7px;background:rgba(14,14,20,.64);color:#f3d9c8;padding:12px 18px;font:800 14px Georgia;letter-spacing:1px;box-shadow:0 5px 25px #0008;cursor:pointer}
.deathmatch-page .deathmatch-show:hover{background:rgba(76,32,42,.85)}
@media(prefers-reduced-motion:reduce){.deathmatch-page .deathmatch-panel,.deathmatch-page .deathmatch-panel.deathmatch-reveal{animation:none}}

/* Animated coliseum crowd glow: irregular torch-like flicker around screen edges.
   Pure CSS; no additional artwork, network requests, or Helius usage. */
body.deathmatch-page::after{
 content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
 background:
  radial-gradient(ellipse 24% 65% at 0% 50%,rgba(255,138,45,.50),transparent 80%),
  radial-gradient(ellipse 22% 58% at 100% 46%,rgba(255,118,38,.49),transparent 82%),
  radial-gradient(ellipse 75% 24% at 50% 100%,rgba(255,125,45,.72),transparent 86%),
  radial-gradient(ellipse 70% 23% at 50% 0%,rgba(117,181,255,.67),transparent 88%);
 mix-blend-mode:screen;
 animation:arenaCrowdFlicker 12s ease-in-out infinite;
}
@keyframes arenaCrowdFlicker{
  0%,18%{opacity:.43;filter:brightness(.83)}
  29%{opacity:.75;filter:brightness(1.13)}
  40%,62%{opacity:.44;filter:brightness(.85)}
  73%{opacity:.79;filter:brightness(1.17)}
  84%,100%{opacity:.43;filter:brightness(.83)}
}
@media(prefers-reduced-motion:reduce){body.deathmatch-page::after{animation:none;opacity:.52}}

/* Cinematic three-column arena battle, revealed after both challengers are selected and fight begins. */
.deathmatch-page .deathmatch-battle[hidden],.deathmatch-page .deathmatch-final-verdict[hidden]{display:none!important}
.deathmatch-battle{position:relative;z-index:2;min-height:100vh;padding:82px 20px 28px;color:#f1e3d8;animation:deathmatchPanelAppear .85s ease-out both}
.deathmatch-battle-back{position:absolute;top:20px;left:24px;padding:10px 14px;border:1px solid #8c766a;border-radius:5px;background:#0c111dcc;color:#e8d5c5;text-decoration:none;font:700 13px Georgia,serif}
.deathmatch-battle-back:hover{background:#37232b}
.deathmatch-battle-header{text-align:center;font:900 clamp(20px,3vw,36px) Georgia,serif;letter-spacing:.14em;color:#efc6b8;text-shadow:0 3px 10px #000,0 0 18px #7b122a}
.deathmatch-battle-grid{display:grid;grid-template-columns:minmax(175px,1fr) minmax(310px,1.65fr) minmax(175px,1fr);align-items:start;gap:clamp(12px,2vw,32px);width:100%;max-width:1600px;margin:35px auto 0}
.deathmatch-fighter{min-width:0;padding:25px 16px;text-align:center;border:2px ridge #87705e;border-radius:10px;background:linear-gradient(145deg,#131620db,#080c15d9);box-shadow:0 10px 35px #000c,inset 0 0 30px #b05d2411;backdrop-filter:blur(3px)}
.deathmatch-fighter-a{justify-self:start;width:100%}.deathmatch-fighter-b{justify-self:end;width:100%}
.deathmatch-fighter-tag{font:800 12px Georgia,serif;letter-spacing:.18em;color:#c69b7d}
.deathmatch-fighter h3{font:900 clamp(19px,2.4vw,34px) Georgia,serif;color:#f5e4dc;margin:18px 0 7px;overflow-wrap:anywhere}
.deathmatch-fighter p{font:14px Georgia,serif;overflow-wrap:anywhere;color:#c4b8b2}
.deathmatch-fighter-status{margin:20px auto 12px;padding:8px;border:1px solid #68544f;border-radius:5px;color:#d5b7aa;font:700 12px Arial}
.deathmatch-fighter small{display:block;font:11px/1.5 Arial;color:#b4a8a5}
.deathmatch-fighter-wins{margin-top:26px;padding:12px 5px;color:#ffd2a0;font:900 15px Georgia,serif;border-top:1px solid #6c5649}
.deathmatch-ring{text-align:center;min-width:0;padding:20px 20px 24px;border:1px solid #86675a;border-radius:12px;background:linear-gradient(150deg,#0e111ce8,#15131bdb);box-shadow:0 15px 45px #000d;backdrop-filter:blur(4px)}
.deathmatch-round-count{font:900 14px Georgia,serif;letter-spacing:.2em;color:#d5a17f}
.deathmatch-battle-score{display:flex;align-items:center;justify-content:center;gap:24px;margin:18px 0;font:900 clamp(38px,5vw,68px) Georgia,serif;color:#f7e5d7;text-shadow:0 0 16px #a22b2b77}
.deathmatch-battle-score b{font:900 17px Georgia,serif;color:#bf665d}
.deathmatch-round-card{min-height:166px;padding:20px 10px;border:1px solid #6b5353;border-radius:8px;background:#241b23bd}
.deathmatch-round-card h3{font:900 clamp(19px,2vw,27px) Georgia,serif;color:#f4d6bb;margin:0 0 19px}
.deathmatch-round-values{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;font:800 clamp(15px,2vw,23px) Georgia,serif}
.deathmatch-round-values span{overflow-wrap:anywhere}
.deathmatch-round-values b{font-size:13px;color:#bda59a}
.deathmatch-round-winning{color:#9bffba;text-shadow:0 0 9px #35c96388}
.deathmatch-round-card strong{display:block;margin-top:20px;color:#e9c1a5;font:800 14px Georgia,serif}
.deathmatch-round-enter{animation:deathmatchRoundReveal .8s ease-out both}
@keyframes deathmatchRoundReveal{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.deathmatch-round-history{max-height:165px;overflow:auto;text-align:left;margin:14px 0}
.deathmatch-history-item{padding:7px 10px;border-bottom:1px solid #67505b55;font:12px Georgia,serif;color:#c8b8b1}
.deathmatch-final-verdict{margin:20px 0;padding:19px 12px;border:1px solid #a4775b;border-radius:8px;background:#42252bb8;animation:deathmatchRoundReveal 1.2s ease-out both}
.deathmatch-final-verdict h3{font:900 20px Georgia,serif;color:#ffcfb1;margin:0 0 10px}
.deathmatch-final-verdict p{font:900 22px Georgia,serif;color:#fff0df}
.deathmatch-final-verdict small{font:12px/1.6 Georgia,serif;color:#d2c0b7}
.deathmatch-rematch{padding:11px 18px;border:1px solid #b38c76;border-radius:5px;background:linear-gradient(#503039,#201820);color:#f5dfce;font:800 13px Georgia,serif;cursor:pointer}
.deathmatch-rematch:hover{background:#693d46}
.deathmatch-battle-disclaimer{text-align:center;margin:22px 0;font:11px Arial;color:#c1b5b2;text-shadow:0 2px 5px #000}
@media(max-width:800px){.deathmatch-battle{padding:75px 10px 20px}.deathmatch-battle-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.deathmatch-fighter{padding:14px 8px}.deathmatch-ring{grid-column:1/-1;grid-row:2;padding:18px 10px}.deathmatch-fighter h3{font-size:clamp(15px,4vw,23px)}.deathmatch-fighter-wins{margin-top:14px}.deathmatch-battle-header{margin-top:10px}}
@media(prefers-reduced-motion:reduce){.deathmatch-battle,.deathmatch-round-enter,.deathmatch-final-verdict{animation:none}}


/* In-battle challenger HUD: compact, translucent badges in opposite top corners.
   Selection layout remains unchanged. */
.deathmatch-battle{padding-top:110px}
.deathmatch-battle-grid{display:flex;justify-content:center;max-width:1600px;margin:25px auto 0}
.deathmatch-battle-grid .deathmatch-ring{width:min(620px,100%);flex:0 1 620px}
.deathmatch-battle .deathmatch-fighter{
 position:absolute;top:16px;width:clamp(125px,17vw,205px);min-width:0;
 padding:10px 9px;text-align:center;opacity:.66;
 border:1px solid rgba(135,112,94,.5);border-radius:8px;
 background:rgba(10,13,22,.45);box-shadow:none;backdrop-filter:blur(2px);
}
.deathmatch-battle .deathmatch-fighter-a{left:clamp(10px,2vw,30px);right:auto}
.deathmatch-battle .deathmatch-fighter-b{right:clamp(10px,2vw,30px);left:auto}
.deathmatch-battle .deathmatch-fighter-tag{font-size:9px;letter-spacing:.1em}
.deathmatch-battle .deathmatch-fighter-icon{
 display:flex;align-items:center;justify-content:center;width:32px;height:32px;
 margin:6px auto;border:1px solid #9d7b65;border-radius:50%;
 background:rgba(88,52,52,.5);font:800 12px Georgia,serif;color:#f1d3b9;
 overflow:hidden;
}
.deathmatch-battle .deathmatch-fighter h3{font-size:clamp(12px,1.4vw,18px);margin:5px 0 3px}
.deathmatch-battle .deathmatch-fighter p{font-size:11px;margin:3px 0}
.deathmatch-battle .deathmatch-fighter-status{font-size:9px;margin:7px auto 5px;padding:4px}
.deathmatch-battle .deathmatch-fighter small{font-size:9px}
.deathmatch-battle .deathmatch-fighter-wins{font-size:11px;margin-top:7px;padding:6px 2px}
.deathmatch-battle-back{top:12px;left:50%;transform:translateX(-50%);font-size:10px;padding:6px 8px}
.deathmatch-battle-header{margin-top:0}
@media(max-width:800px){
 .deathmatch-battle{padding:155px 10px 20px}
 .deathmatch-battle-grid{display:flex;margin-top:16px}
 .deathmatch-battle-grid .deathmatch-ring{width:100%}
 .deathmatch-battle .deathmatch-fighter{top:42px;width:clamp(120px,39vw,185px);padding:7px 5px}
 .deathmatch-battle .deathmatch-fighter-a{left:7px}
 .deathmatch-battle .deathmatch-fighter-b{right:7px}
 .deathmatch-battle .deathmatch-fighter-icon{width:25px;height:25px;font-size:10px;margin:3px auto}
 .deathmatch-battle .deathmatch-fighter h3{font-size:12px}
 .deathmatch-battle .deathmatch-fighter small{display:none}
 .deathmatch-battle .deathmatch-fighter-status{margin:4px auto}
 .deathmatch-battle .deathmatch-fighter-wins{margin-top:4px}
}


/* Page-level HUD: never position challengers relative to the rounds window. */
.deathmatch-battle .deathmatch-fighter{
 position:fixed;top:12px;z-index:8;
 max-height:calc(100dvh - 24px);overflow:auto;
}
.deathmatch-battle .deathmatch-fighter-a{left:12px;right:auto}
.deathmatch-battle .deathmatch-fighter-b{right:12px;left:auto}
.deathmatch-battle-grid{display:flex;justify-content:center}
@media(max-width:800px){
 .deathmatch-battle .deathmatch-fighter{top:12px;width:clamp(105px,32vw,160px)}
 .deathmatch-battle .deathmatch-fighter-a{left:6px}
 .deathmatch-battle .deathmatch-fighter-b{right:6px}
 .deathmatch-battle{padding-top:175px}
}

/* HUD elements live directly under body, outside animated/transformed containers. */
body.deathmatch-page > .deathmatch-fighter{display:none}
body.deathmatch-in-battle > .deathmatch-fighter{display:block}
/* In-battle challenger HUD: compact, translucent badges in opposite top corners.
   Selection layout remains unchanged. */
.deathmatch-battle{padding-top:110px}
.deathmatch-battle-grid{display:flex;justify-content:center;max-width:1600px;margin:25px auto 0}
.deathmatch-battle-grid .deathmatch-ring{width:min(620px,100%);flex:0 1 620px}
body.deathmatch-in-battle .deathmatch-fighter{
 position:absolute;top:16px;width:clamp(125px,17vw,205px);min-width:0;
 padding:10px 9px;text-align:center;opacity:.66;
 border:1px solid rgba(135,112,94,.5);border-radius:8px;
 background:rgba(10,13,22,.45);box-shadow:none;backdrop-filter:blur(2px);
}
body.deathmatch-in-battle .deathmatch-fighter-a{left:clamp(10px,2vw,30px);right:auto}
body.deathmatch-in-battle .deathmatch-fighter-b{right:clamp(10px,2vw,30px);left:auto}
body.deathmatch-in-battle .deathmatch-fighter-tag{font-size:9px;letter-spacing:.1em}
body.deathmatch-in-battle .deathmatch-fighter-icon{
 display:flex;align-items:center;justify-content:center;width:32px;height:32px;
 margin:6px auto;border:1px solid #9d7b65;border-radius:50%;
 background:rgba(88,52,52,.5);font:800 12px Georgia,serif;color:#f1d3b9;
 overflow:hidden;
}
body.deathmatch-in-battle .deathmatch-fighter h3{font-size:clamp(12px,1.4vw,18px);margin:5px 0 3px}
body.deathmatch-in-battle .deathmatch-fighter p{font-size:11px;margin:3px 0}
body.deathmatch-in-battle .deathmatch-fighter-status{font-size:9px;margin:7px auto 5px;padding:4px}
body.deathmatch-in-battle .deathmatch-fighter small{font-size:9px}
body.deathmatch-in-battle .deathmatch-fighter-wins{font-size:11px;margin-top:7px;padding:6px 2px}
.deathmatch-battle-back{top:12px;left:50%;transform:translateX(-50%);font-size:10px;padding:6px 8px}
.deathmatch-battle-header{margin-top:0}
@media(max-width:800px){
 .deathmatch-battle{padding:155px 10px 20px}
 .deathmatch-battle-grid{display:flex;margin-top:16px}
 .deathmatch-battle-grid .deathmatch-ring{width:100%}
 body.deathmatch-in-battle .deathmatch-fighter{top:42px;width:clamp(120px,39vw,185px);padding:7px 5px}
 body.deathmatch-in-battle .deathmatch-fighter-a{left:7px}
 body.deathmatch-in-battle .deathmatch-fighter-b{right:7px}
 body.deathmatch-in-battle .deathmatch-fighter-icon{width:25px;height:25px;font-size:10px;margin:3px auto}
 body.deathmatch-in-battle .deathmatch-fighter h3{font-size:12px}
 body.deathmatch-in-battle .deathmatch-fighter small{display:none}
 body.deathmatch-in-battle .deathmatch-fighter-status{margin:4px auto}
 body.deathmatch-in-battle .deathmatch-fighter-wins{margin-top:4px}
}


/* Page-level HUD: never position challengers relative to the rounds window. */
body.deathmatch-in-battle .deathmatch-fighter{
 position:fixed;top:12px;z-index:8;
 max-height:calc(100dvh - 24px);overflow:auto;
}
body.deathmatch-in-battle .deathmatch-fighter-a{left:12px;right:auto}
body.deathmatch-in-battle .deathmatch-fighter-b{right:12px;left:auto}
.deathmatch-battle-grid{display:flex;justify-content:center}
@media(max-width:800px){
 body.deathmatch-in-battle .deathmatch-fighter{top:12px;width:clamp(105px,32vw,160px)}
 body.deathmatch-in-battle .deathmatch-fighter-a{left:6px}
 body.deathmatch-in-battle .deathmatch-fighter-b{right:6px}
 .deathmatch-battle{padding-top:175px}
}

body.deathmatch-in-battle > .deathmatch-fighter{position:fixed;top:12px;z-index:150;opacity:.66}


/* Refined battle presentation: corner challengers slightly less transparent
   than the central results panel; a slimmer central window and subtler type. */
body.deathmatch-in-battle > .deathmatch-fighter{opacity:.84}
.deathmatch-battle-grid .deathmatch-ring{
 width:min(540px,100%);flex:0 1 540px;
 padding:17px 15px 20px;
}
.deathmatch-round-count{font-size:12px}
.deathmatch-battle-score{font-size:clamp(34px,4.4vw,58px);gap:19px;margin:14px 0}
.deathmatch-battle-score b{font-size:15px}
.deathmatch-round-card{padding:17px 9px;min-height:145px}
.deathmatch-round-card h3{font-size:clamp(17px,1.8vw,23px);margin-bottom:16px}
.deathmatch-round-values{font-size:clamp(14px,1.7vw,20px)}
.deathmatch-round-values b{font-size:12px}
.deathmatch-final-verdict h3{font-size:18px}
.deathmatch-final-verdict p{font-size:19px}
.deathmatch-final-verdict small{font-size:11px}
.deathmatch-rematch{font-size:12px}
@media(max-width:800px){
 .deathmatch-battle-grid .deathmatch-ring{width:min(540px,100%);flex:0 1 540px;padding:15px 10px}
}
/* Round winner labels and round-by-round winner history intentionally retain their sizes. */


/* Health HUD and arena translucency adjustments. */
body.deathmatch-in-battle > .deathmatch-fighter{opacity:.94}
.deathmatch-battle-grid .deathmatch-ring{
 background:linear-gradient(150deg,rgba(14,17,28,.70),rgba(21,19,27,.65));
 backdrop-filter:blur(2px);
}
body.deathmatch-in-battle .deathmatch-fighter-health-row{
 display:flex;align-items:center;justify-content:center;gap:8px;
 margin:7px auto 3px;
}
body.deathmatch-in-battle .deathmatch-fighter-icon{
 flex:0 0 32px;margin:0;
}
body.deathmatch-in-battle .deathmatch-fighter-b .deathmatch-fighter-health-row{flex-direction:row-reverse}
body.deathmatch-in-battle .deathmatch-health{
 flex:1;min-width:35px;max-width:110px;height:12px;
 background:rgba(51,10,17,.85);border:1px solid #8c5d57;border-radius:4px;
 overflow:hidden;box-shadow:inset 0 1px 4px #000a;
}
body.deathmatch-in-battle .deathmatch-health-fill{
 height:100%;width:100%;
 background:linear-gradient(90deg,#9c2128,#ec5b43,#ffc46a);
 box-shadow:0 0 8px #ff654b88;
 transition:width .65s ease;
}
@media(max-width:800px){
 body.deathmatch-in-battle .deathmatch-fighter-icon{flex-basis:25px}
 body.deathmatch-in-battle .deathmatch-fighter-health-row{gap:5px}
 body.deathmatch-in-battle .deathmatch-health{height:9px}
}
@media(prefers-reduced-motion:reduce){
 body.deathmatch-in-battle .deathmatch-health-fill{transition:none}
}


/* External health bars: challenger cards stay in viewport corners;
   the larger bars extend inward, completely outside each card. */
body.deathmatch-in-battle > .deathmatch-fighter{overflow:visible}
body.deathmatch-in-battle .deathmatch-fighter-health-row{
 display:block;margin:7px auto 3px;
}
body.deathmatch-in-battle .deathmatch-fighter-icon{
 display:flex;margin:0 auto;
}
body.deathmatch-in-battle .deathmatch-health{
 position:absolute;top:44px;
 box-sizing:border-box;width:clamp(130px,16vw,230px);max-width:none;
 height:22px;min-width:0;border:2px solid #9d685b;border-radius:6px;
 background:rgba(45,9,17,.88);box-shadow:0 3px 12px #000b,inset 0 1px 5px #000a;
}
body.deathmatch-in-battle .deathmatch-fighter-a .deathmatch-health{
 left:calc(100% + 14px);right:auto;
}
body.deathmatch-in-battle .deathmatch-fighter-b .deathmatch-health{
 right:calc(100% + 14px);left:auto;
}
@media(max-width:800px){
 body.deathmatch-in-battle .deathmatch-health{
  top:39px;width:clamp(55px,16vw,125px);height:16px;
 }
 body.deathmatch-in-battle .deathmatch-fighter-a .deathmatch-health{
  left:calc(100% + 5px)
 }
 body.deathmatch-in-battle .deathmatch-fighter-b .deathmatch-health{
  right:calc(100% + 5px)
 }
}


/* Post-match cinematic champion reveal. */
.deathmatch-battle.deathmatch-finished .deathmatch-round-card,
.deathmatch-battle.deathmatch-finished .deathmatch-round-history,
.deathmatch-battle.deathmatch-finished .deathmatch-battle-score{display:none!important}
.deathmatch-battle-header .deathmatch-champion{
 display:inline-block;animation:deathmatchChampionReveal 1.6s ease-out both;
 font-size:clamp(23px,3.5vw,43px);color:#ffe0a6;
 text-shadow:0 0 16px #dc7a34,0 3px 10px #000;
}
.deathmatch-champion small{
 display:block;margin-top:8px;font:800 12px Georgia,serif;
 letter-spacing:.2em;color:#f0b98b;
}
body.deathmatch-finished > .deathmatch-fighter.deathmatch-loser{
 opacity:0;filter:grayscale(1);transition:opacity 3.5s ease,filter 3.5s ease;
 pointer-events:none;
}
body.deathmatch-finished > .deathmatch-fighter.deathmatch-winner{
 opacity:0;transition:opacity 1.3s ease;pointer-events:none;
}
.deathmatch-battle.deathmatch-finished .deathmatch-ring{margin-top:12px}
@keyframes deathmatchChampionReveal{
 from{opacity:0;transform:translateY(18px) scale(.88)}
 to{opacity:1;transform:translateY(0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
 .deathmatch-battle-header .deathmatch-champion{animation:none}
 body.deathmatch-finished > .deathmatch-fighter{transition:none!important}
}


/* Verdict champion moves from the corner into the center with icon and health. */
.deathmatch-battle.deathmatch-finished .deathmatch-round-history{
 display:flex!important;
}
.deathmatch-verdict-champion{
 display:flex;flex-direction:column;align-items:center;gap:8px;
 margin:8px auto 24px;position:relative;z-index:2;
 will-change:transform,opacity;
}
.deathmatch-verdict-icon{
 display:flex;align-items:center;justify-content:center;
 width:66px;height:66px;border:2px solid #c49a70;border-radius:50%;
 background:rgba(88,52,52,.85);color:#ffe0b2;
 font:800 23px Georgia,serif;box-shadow:0 0 22px #c16b4770;
}
.deathmatch-verdict-name{
 font:800 clamp(24px,3vw,38px) Georgia,serif;color:#ffe0a6;
 text-shadow:0 0 15px #dc7a34,0 3px 9px #000;
 overflow-wrap:anywhere;
}
.deathmatch-verdict-health{
 box-sizing:border-box;width:min(280px,85%);height:24px;
 border:2px solid #9d685b;border-radius:6px;
 background:rgba(45,9,17,.9);overflow:hidden;
 box-shadow:0 3px 12px #000b;
}
.deathmatch-verdict-health-fill{
 height:100%;background:linear-gradient(90deg,#9c2128,#ec5b43,#ffc46a);
}
.deathmatch-verdict-champion small{
 font:800 11px Georgia,serif;letter-spacing:.16em;color:#f0b98b;
}


/* Keep the completed round history in its original vertical scrolling list. */
.deathmatch-battle.deathmatch-finished .deathmatch-round-history{
 display:block!important;
 max-height:165px;
 overflow-y:auto;
 overflow-x:hidden;
 text-align:left;
 margin:14px 0;
}
.deathmatch-battle.deathmatch-finished .deathmatch-history-item{
 display:block;
 width:100%;
 box-sizing:border-box;
}


/* Compact final champion so the seven-round recap is visible without
   needing to scroll inside the history column on desktop. */
.deathmatch-battle.deathmatch-finished .deathmatch-verdict-champion{
 gap:4px;margin:2px auto 10px;
}
.deathmatch-battle.deathmatch-finished .deathmatch-verdict-icon{
 width:43px;height:43px;font-size:16px;
}
.deathmatch-battle.deathmatch-finished .deathmatch-verdict-name{
 font-size:clamp(18px,2.2vw,26px);
}
.deathmatch-battle.deathmatch-finished .deathmatch-verdict-health{
 width:min(210px,80%);height:16px;
}
.deathmatch-battle.deathmatch-finished .deathmatch-verdict-champion small{
 font-size:9px;margin:0;
}
.deathmatch-battle.deathmatch-finished .deathmatch-final-verdict{
 padding-top:8px;padding-bottom:8px;
}
.deathmatch-battle.deathmatch-finished .deathmatch-round-history{
 max-height:none;overflow:visible;
 margin:8px 0;
}
.deathmatch-battle.deathmatch-finished .deathmatch-history-item{
 padding:4px 8px;font-size:11px;
}


/* Fixed-screen arena: no document scrolling, with search lists still scrollable. */
html:has(body.deathmatch-page),body.deathmatch-page{
 height:100%;overflow:hidden;overscroll-behavior:none;
}
body.deathmatch-page .deathmatch-overlay{
 height:100dvh;min-height:0;box-sizing:border-box;overflow:hidden;
}
body.deathmatch-page .deathmatch-battle{
 height:100%;min-height:0;box-sizing:border-box;
 padding-bottom:8px;overflow:hidden;
}
body.deathmatch-page .deathmatch-results{
 max-height:min(28dvh,220px);overflow-y:auto;overscroll-behavior:contain;
}
/* Match the cemetery navigation to the New Deathmatch action. */
.deathmatch-battle-back{
 font:800 12px Georgia,serif;
 padding:12px 20px;
 border-radius:7px;
 min-height:43px;box-sizing:border-box;
 display:inline-flex;align-items:center;justify-content:center;
}
.deathmatch-final-verdict .deathmatch-verdict-explanation{
 margin:7px auto 8px;max-width:440px;
 font:13px/1.4 Georgia,serif;color:#e8d3c0;
}
@media(max-height:740px){
 body.deathmatch-page .deathmatch-battle{padding-top:55px}
 .deathmatch-battle-grid{margin-top:9px}
 .deathmatch-battle.deathmatch-finished .deathmatch-verdict-champion{margin-bottom:5px}
 .deathmatch-battle.deathmatch-finished .deathmatch-history-item{padding:3px 8px}
}
