/* Deadmonton episode-one landing — one viewport, cinematic scene and real game data.
   All decorative art remains separate; leaderboard and media content remain live. */
:root{color-scheme:dark;--dm-acid:#bbff12;--dm-black:#020a05;--dm-ink:#020906;--dm-red:#f1242e}
*{box-sizing:border-box}
html,body{width:100%;height:100%;height:100dvh;overflow:hidden;margin:0;background:var(--dm-black);color:white}
body{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif}
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:3px solid #fff;outline-offset:3px}
.dm-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.dm-page{position:relative;isolation:isolate;width:100%;height:100%;height:100dvh;overflow:hidden;background:#010903}
.dm-stage-backdrop{position:absolute;inset:0;z-index:-4;background:url('/assets/deadmonton-home/night_skyline.webp') center center / cover no-repeat,#041405}
.dm-stage-glow{position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#020a05bd 0%,transparent 30%,#01090333 68%,#0109033d 100%),linear-gradient(180deg,#02090344 0%,transparent 30%,#0524080b 60%,#0310045e 85%,#010802c9 100%),radial-gradient(ellipse 56% 37% at 54% 81%,#38e60d46,transparent 86%)}
/* Large, consistent character portrait: head remains inside the viewport. */
.dm-hero-art{position:absolute;z-index:2;left:-4.2%;bottom:-3%;height:103%;width:auto;max-width:none;object-fit:contain;object-position:left bottom;pointer-events:none;filter:drop-shadow(12px 1px 18px #011204aa)}
/* Poster-style group, instead of three tiny cropped zombie sprites. */
.dm-zombie-assault{position:absolute;z-index:1;left:33.8%;bottom:6%;width:44%;height:auto;max-width:none;pointer-events:none;filter:drop-shadow(0 0 26px #2bea197c)}
.dm-intro{position:absolute;z-index:4;top:calc(3.1% + 100px);left:27%;width:40.5%;display:flex;flex-direction:column;align-items:center;pointer-events:none;text-align:center}
.dm-title{display:block;width:100%;height:auto;line-height:0;margin:0 0 -38px;flex-shrink:0}
.dm-title img{display:block;width:100%;height:auto;aspect-ratio:1983 / 668;object-fit:contain;filter:drop-shadow(0 7px 8px #000c)}
.dm-episode,.dm-tagline{margin:0;line-height:0;width:77%;flex-shrink:0;z-index:-1000}
.dm-episode img{display:block;width:100%;height:clamp(30px,6.8dvh,67px);object-fit:fill;filter:drop-shadow(0 4px 6px #130300dc)}
.dm-tagline{width:80%;margin-top:2px}.dm-tagline img{display:block;width:100%;height:clamp(14px,3.2dvh,34px);object-fit:fill;filter:drop-shadow(0 2px 6px #000d)}
/* Decorative frame is above the actual screenshot/video, which is sourced
   exclusively from media.json and is never baked into the frame. */
.dm-media-panel{position:absolute;z-index:5;left:68.4%;right:2.6%;top:10%;height:28.5%;min-height:0}
.dm-media-decoration{position:absolute;inset:0;z-index:2;width:100%;height:100%;pointer-events:none}
/* Covers the retired "replace with footage" prompt baked into the frame art.
   Keeps the original border and title intact without editing the source image. */
.dm-media-footnote{position:absolute;z-index:3;left:18%;right:18%;bottom:8%;height:7%;display:none;align-items:center;justify-content:center;background:#090f09;color:#e8f6dd;text-align:center;text-transform:uppercase;white-space:nowrap;letter-spacing:.075em;font:700 clamp(7px,.75vw,12px)/1.1 system-ui,sans-serif;pointer-events:none}
.dm-media-panel.dm-media-video .dm-media-footnote{display:flex}
.dm-media-frame{position:absolute;z-index:1;left:3.9%;right:3.9%;top:11.5%;bottom:25%;min-width:0;overflow:hidden;background:#010605;border:1px solid #567b0c}
.dm-media-frame img,.dm-media-frame video{display:block;width:100%;height:100%;object-fit:cover}
/* Keep the video rendered for Safari muted autoplay. Until 'playing', the
   foreground JPEG covers its enormous native paused-video play control. */
.dm-media-frame .dm-preview-video{position:absolute;inset:0;z-index:1;pointer-events:none}
.dm-media-frame .dm-preview-image{position:absolute;inset:0;z-index:2;pointer-events:none}
/* WebKit's built-in start-playback affordance must never cover our own icon. */
.dm-media-frame .dm-preview-video::-webkit-media-controls-start-playback-button{display:none!important}
.dm-media-frame .dm-preview-video::-webkit-media-controls{display:none!important}
.dm-media-frame [hidden]{display:none!important}
/* The JPEG poster has ONE baked-in green play circle, offset slightly from
   the frame center by the source artwork. Don't overlay another circle/ring:
   a transparent, full-video hit area makes the original icon (and entire
   video preview) clickable on all screen sizes without alignment drift. */
.dm-preview-play{position:absolute;z-index:3;inset:0;display:block;width:100%;height:100%;border:0;border-radius:0;margin:0;padding:0;background:transparent;box-shadow:none;cursor:pointer;touch-action:manipulation}
.dm-preview-play:hover{background:transparent;box-shadow:none}
.dm-preview-play:focus-visible{outline:3px solid #fff;outline-offset:-4px}
.dm-preview-play:disabled{cursor:progress}
.dm-preview-video{pointer-events:none}
.dm-media-tag{position:absolute;top:5px;left:6px;z-index:4;padding:3px 5px;color:#d2fba5;background:#071006c2;font:700 clamp(7px,.58vw,11px)/1 system-ui,sans-serif;letter-spacing:.07em;text-transform:uppercase;pointer-events:none}
.dm-media-controls{position:absolute;z-index:3;bottom:4%;left:7%;right:7%;height:8%;display:flex;align-items:center;justify-content:space-between;gap:8px}
.dm-media-arrow{height:100%;width:22px;min-height:18px;background:#050e06a1;color:#c7ff23;border:1px solid #8cbe1a;border-radius:3px;font:20px/1 Impact,sans-serif;cursor:pointer;flex-shrink:0}
.dm-media-arrow:disabled{opacity:0;cursor:default}
.dm-media-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;color:#b8c7ae;font:400 clamp(8px,.65vw,12px)/1.1 system-ui,sans-serif;opacity:0}
.dm-media-panel:has(.dm-media-arrow:not(:disabled)) .dm-media-caption{opacity:1}
/* Generated frame supplies the grunge title, row lines and rank glyphs;
   dynamic text is rendered above it using textContent, not fake scores. */
.dm-board{position:absolute;z-index:5;left:70.5%;right:2.6%;top:41%;height:31%;min-width:0;min-height:0}
.dm-board-decoration{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}
.dm-board-list{position:absolute;left:6.2%;right:6.5%;top:23.8%;bottom:12.5%;display:grid;grid-template-rows:repeat(5,minmax(0,1fr));list-style:none;margin:0;padding:0;min-width:0;min-height:0}
.dm-board-list li{display:grid;grid-template-columns:15% minmax(0,1fr) auto;align-items:center;min-width:0;color:#fff;gap:3px;margin:0;padding:0;min-height:0;font:700 clamp(10px,1.0vw,18px)/1.1 system-ui,sans-serif;text-shadow:0 2px 4px #000}
.dm-board-rank{visibility:hidden;min-width:0}
.dm-board-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dm-board-score{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:900;padding-right:clamp(8px,.8vw,15px)}
.dm-board-list li.dm-board-status{display:flex;grid-column:1/-1;justify-content:center;text-align:center;padding:0 10%;font-size:clamp(11px,1vw,14px);background:#010804dd;color:#e8f6dd}
#dm-board-refresh{position:absolute;z-index:7;top:7.7%;right:8.5%;width:clamp(19px,1.55vw,28px);height:clamp(19px,1.55vw,28px);display:flex;align-items:center;justify-content:center;font:700 clamp(14px,1.35vw,24px)/1 system-ui,sans-serif;color:#071303;background:#c2fc36cc;border:1px solid #243508;border-radius:3px;cursor:pointer}
#dm-board-refresh:disabled{opacity:.55;cursor:wait}
.dm-board-footer{position:absolute;left:9%;right:9%;bottom:2.2%;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#9ccd68;font:700 clamp(7px,.48vw,10px)/1.1 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.dm-actions{position:absolute;z-index:8;left:38%;right:2.5%;bottom:6.4%;height:11%;display:flex;align-items:center;justify-content:center;gap:clamp(7px,.85vw,15px)}
.dm-cta{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;height:100%;border:0;line-height:0;text-decoration:none;transition:filter .16s ease,transform .16s ease}
.dm-cta img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 0 5px #000b)}
.dm-play{flex:1.4}.dm-download{flex:1}
.dm-unavailable{cursor:not-allowed}
.dm-unavailable .dm-soon{position:absolute;left:50%;top:-19%;transform:translateX(-50%);padding:2px 7px;background:#031109dd;border:1px solid #a5e52d8a;border-radius:3px;color:#e8f9de;font:700 clamp(8px,.56vw,11px)/1.2 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
a.dm-cta:hover{filter:brightness(1.18);transform:translateY(-3px)}
@media(max-width:1100px) and (min-width:701px){
 .dm-hero-art{left:-7%;height:100%}.dm-zombie-assault{left:33%;width:45%;bottom:7%}
 .dm-media-panel{right:1%;left:69.0%}.dm-board{right:1%;left:69.5%}
 .dm-intro{left:26%;width:42%}.dm-actions{left:34%;right:1%;bottom:5.8%}
 .dm-board-list li{font-size:clamp(10px,1vw,14px)}
}
/* Mobile: deliberately compose all panels inside the available viewport. */
@media(max-width:700px){
 .dm-stage-backdrop{background-position:55% center}
 .dm-hero-art{left:-22%;bottom:29%;height:69%;opacity:.88}
 .dm-zombie-assault{left:26%;width:86%;bottom:20%;opacity:.57}
 .dm-stage-glow{background:linear-gradient(180deg,#01070244,#00000019 20%,#000e04c8 60%,#010702dc 100%),radial-gradient(ellipse at 53% 57%,#31fb075a,transparent 69%)}
 .dm-intro{top:2%;left:22%;right:1.2%;width:auto;align-items:flex-end}
 .dm-title{width:100%;margin-bottom:calc(0px - clamp(12px,4vw,22px))}.dm-title img{height:auto}
 .dm-episode{width:86%}.dm-episode img{height:clamp(25px,4.2dvh,44px)}
 .dm-tagline{width:91%}.dm-tagline img{height:clamp(14px,2.5dvh,25px)}
 .dm-media-panel{left:20%;right:2%;top:24%;height:26%}
 .dm-board{left:5%;right:5%;top:50.8%;height:30.8%}
 .dm-board-list li{font-size:clamp(11px,2.75vw,16px)}
 .dm-board-footer{font-size:8px}
 .dm-actions{left:2%;right:2%;bottom:2.4%;height:12%;gap:3px}
 .dm-play{flex:1.32}.dm-download{flex:1}
 .dm-unavailable .dm-soon{top:-22%;font-size:7px;padding:1px 3px}
}
@media(max-width:380px){
 .dm-hero-art{left:-29%}.dm-intro{left:17%}.dm-media-panel{left:16%;top:22%;height:25%}
 .dm-board{top:48.5%;height:32.5%}.dm-actions{bottom:1.5%;height:13.8%}
 .dm-board-list li{font-size:10px}
}
@media(max-height:650px) and (min-width:701px){
 .dm-intro{top:calc(1% + 100px)}.dm-title{max-width:min(100%,64vh)}.dm-episode img{height:6vh}
 .dm-media-panel{top:7%;height:33%}.dm-board{top:41%;height:34%}
 .dm-actions{bottom:3%;height:12%}.dm-board-list li{font-size:clamp(10px,.95vw,14px)}
}
@media(max-height:610px) and (max-width:700px){
 .dm-title{max-width:min(100%,34dvh)}.dm-intro{top:1%}.dm-media-panel{top:21%;height:27%}
 .dm-board{top:49%;height:32%}.dm-actions{bottom:1%;height:16%}
 .dm-board-footer{display:none}
}
/* Motion accents: glow once per 2-second cycle, diagonal title glare once per 5-second cycle.
   Glare is alpha-masked by the real logo, so it never shines over empty sky. */
.dm-play img{animation:dm-play-glow 2s ease-in-out infinite}
@keyframes dm-play-glow{
  0%,45%,100%{filter:drop-shadow(0 0 5px #000b) drop-shadow(0 0 2px #fc26354d)}
  58%,72%{filter:drop-shadow(0 0 9px #ff2c4deb) drop-shadow(0 0 24px #ff192fd9) brightness(1.2)}
  86%{filter:drop-shadow(0 0 5px #da243a66)}
}
.dm-title{position:relative;isolation:isolate}
.dm-title::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(135deg,transparent 36%,#faffbf1f 44%,#ffffffeb 50%,#faffbf52 56%,transparent 64%);
  background-size:320% 220%;background-position:170% -35%;mix-blend-mode:screen;opacity:0;
  -webkit-mask-image:url('/assets/deadmonton-home/deadmonton_logo.png');
  mask-image:url('/assets/deadmonton-home/deadmonton_logo.png');
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  animation:dm-title-glare 5s ease-in-out infinite
}
@keyframes dm-title-glare{
  0%,18%,100%{opacity:0;background-position:170% -35%}
  24%{opacity:.92}
  58%{opacity:1;background-position:-55% 35%}
  66%{opacity:0;background-position:-55% 35%}
}
@media(prefers-reduced-motion:reduce){
 .dm-cta{transition:none}
 .dm-play img,.dm-title::after{animation:none!important}
 .dm-title::after{display:none}
}