/* Reference composition: 1280 x 800 (16:10). All content scales together.
   The viewport remains the fullscreen target. Controls keep their reference
   positions while the background and character artwork can fill the screen. */
.dm-page{
 position:fixed;top:0;left:0;width:100vw;height:100dvh;
 margin:0;overflow:hidden;transform:none;transform-origin:center;
 container:dm-viewport/size;
}
/* Fit inside the available landscape viewport, including rotated portrait. */
.dm-composition{
 position:absolute;top:50%;left:50%;
 width:min(100cqw,160cqh);height:min(100cqh,62.5cqw);
 transform:translate(-50%,-50%);container:dm-landing/size;
 isolation:isolate;overflow:visible;
}
/* Lower the skyline so the title and Game 1 ribbon no longer cover the building
   tops. The top rows of the artwork are near-black, so the strip exposed above
   the shifted image is filled with that colour and blended by a short fade. */
.dm-page .dm-stage-backdrop{
 /* Height of the exposed strip: 0 on wide screens, where the cover-scaled art
    is taller than the viewport and still reaches the top edge. */
 --dm-sky-gap:max(0px,calc(8cqh + (100cqh - max(100cqh,56.25cqw)) / 2));
 background:
  linear-gradient(180deg,#030c03 0,#030c03 var(--dm-sky-gap),
   #030c0300 calc(var(--dm-sky-gap) + min(7cqh,var(--dm-sky-gap)))),
  url('/assets/deadmonton-home/night_skyline.webp') center calc(50% + 8cqh) / cover no-repeat,
  #030c03;
}
.dm-page .dm-stage-glow{
 background:linear-gradient(90deg,#020a05b0 0%,transparent 29%,#01090333 68%,#0109033d 100%),
 linear-gradient(180deg,#02090320 0%,transparent 33%,#0524080b 61%,#03100455 88%,#010802bb 100%),
 radial-gradient(ellipse 58% 41% at 53% 80%,#38e60d4b,transparent 85%);
}
/* The replacement image shows more of the character. Scale it up and
   offset it in composition-height units to keep the original head framing. */
.dm-page .dm-hero-art{
 left:calc(-16% - 14cqh);
 top:4%;bottom:auto;height:152%;width:auto;max-width:none;opacity:1;
}
.dm-page .dm-zombie-assault{left:33%;bottom:2%;width:49%;height:auto;max-width:none;opacity:1}

/* Enlarge the headline 15%, expanding mainly toward the protagonist.
   Shifting the group's centre from 46% to 43% retains its old right edge,
   safely before the video and fullscreen controls on all landscape ratios.
   Height-based sizing preserves the same 15% increase on short phones. */
.dm-page .dm-intro{
 position:absolute;top:8%;left:calc(43% - min(49.45cqw,95.45cqh) / 2);right:auto;
 width:min(49.45cqw,95.45cqh);max-width:none;height:auto;
 display:flex;flex-direction:column;
 align-items:center;justify-content:flex-start;text-align:center;
 pointer-events:none;z-index:auto;
}
.dm-page .dm-title{
 display:block;flex:0 0 auto;width:100%;height:auto;max-width:none;
 margin:0;line-height:0;z-index:3;
}
.dm-page .dm-intro .dm-title{transform:none}
.dm-page .dm-title img{
 display:block;width:100%;height:auto;max-height:none;
 aspect-ratio:1983/668;object-fit:contain;
}
.dm-page .dm-episode,.dm-page .dm-tagline{
 position:relative;display:block;flex:0 0 auto;height:auto;
 max-width:none;line-height:0;z-index:3;
}
/* Keep Game 1 immediately under the title. The tagline uses the
   previously requested exact zero-pixel additive offset. */
.dm-page .dm-episode{width:68%;margin:-4.9cqh 0 0}
.dm-page .dm-episode img{
 display:block;width:100%;height:auto;max-height:none;
 aspect-ratio:1000/171;object-fit:cover;
}
.dm-page .dm-tagline img{
 display:block;width:100%;height:auto;max-height:none;
 aspect-ratio:1100/71;object-fit:contain;
}
/* Separate red link, but naturally stacked after the tagline. */
.dm-page .dm-primary-play{
 /* Relative left offset moves the CTA toward the protagonist without
    removing it from the header flow or changing its vertical spacing. */
 position:relative;top:auto;left:3cqw;right:auto;bottom:auto;
 flex:0 0 auto;width:57.4%;height:auto;max-width:none;
 aspect-ratio:800/230;margin:41.9cqh 0 0; /* centre on the store buttons' row */
 z-index:11;pointer-events:auto;display:flex;
 align-items:center;justify-content:center;
}
.dm-page .dm-primary-play img{display:block;width:100%;height:100%;object-fit:contain}

/* The download images are paired, centered, and retain their aspect ratios. */
.dm-page .dm-store-actions{
 position:absolute;z-index:8;left:68%;right:1.5%;top:86%;bottom:auto;
 width:auto;height:8%;display:flex;align-items:center;
 justify-content:center;gap:.65cqw;
}
.dm-page .dm-store-actions .dm-download{flex:1 1 0;min-width:0;max-width:none}
.dm-page .dm-unavailable .dm-soon{
 top:-18%;font-size:.62cqw;padding:.25cqh .3125cqw;
}

/* Compact, accessible neon fullscreen control, left of Play Now. */
.dm-page .dm-fullscreen-toggle{
 position:absolute;z-index:20;top:86.25%;left:2.5%;right:auto;
 width:20.5%;height:7.5%;min-height:0; /* bottom-left, centred on the Play Now row */
 display:flex;align-items:center;justify-content:center;
 gap:3.5%;padding:.25cqh 2%;border:0;border-radius:0;
 color:#f9fff2;background:linear-gradient(135deg,#d8ff44,#91ed04,#c8ff32);
 clip-path:polygon(4% 0,96% 0,100% 21%,100% 79%,96% 100%,4% 100%,0 79%,0 21%);
 filter:drop-shadow(0 0 4px #9bea17) drop-shadow(0 0 10px #a7e929ad);
 font:italic 900 1.18cqw/1 Impact,'Arial Black',system-ui,sans-serif;
 text-shadow:0 2px 3px #000;letter-spacing:-.03em;
 cursor:pointer;touch-action:manipulation;
}
.dm-page .dm-fullscreen-toggle::before{
 content:'';position:absolute;z-index:0;inset:.234375cqw;pointer-events:none;
 background:linear-gradient(180deg,#101a0aed,#020803f9);
 clip-path:polygon(4% 0,96% 0,100% 21%,100% 79%,96% 100%,4% 100%,0 79%,0 21%);
}
.dm-page .dm-fullscreen-toggle:hover{
 filter:drop-shadow(0 0 8px #bcfa29) drop-shadow(0 0 15px #a2e929c9);
}
.dm-page .dm-fullscreen-toggle:focus-visible{outline:3px solid #fff;outline-offset:4px}
.dm-page .dm-fullscreen-icon{
 position:relative;z-index:1;width:12%;height:44%;
 min-width:0;min-height:0;flex:0 0 12%;stroke:#fff;
}
.dm-page .dm-fullscreen-divider{
 position:relative;z-index:1;width:1px;height:54%;flex:0 0 1px;
 background:#c9ff30;
}
.dm-page .dm-fullscreen-label{position:relative;z-index:1;white-space:nowrap}
.dm-page .dm-fullscreen-notice{
 position:absolute;z-index:30;top:auto;bottom:17%;left:2.5%;right:auto;
 width:min(43%,500px);margin:0;padding:10px 14px;
 background:#061309ed;border:1px solid #b5f53a;border-radius:4px;
 color:#f0ffe5;font:600 .9cqw/1.35 system-ui,sans-serif;
 box-shadow:0 2px 12px #000b;
}
.dm-page .dm-fullscreen-notice[hidden]{display:none}

/* The panels remain independent, with correctly proportioned video frame
   and an intentionally compact leaderboard for five visible score rows. */
.dm-page .dm-media-panel{
 left:69.5%;right:1.5%;top:15%;height:auto;
 aspect-ratio:1100/598;min-height:0;
}
.dm-page .dm-board{
 left:70%;right:1.5%;top:45%;height:auto;
 aspect-ratio:1000/779;min-height:0; /* native frame proportions */
}
.dm-page .dm-board-list li{font-size:1.04cqw}
.dm-page .dm-board-list li.dm-board-status{font-size:.94cqw}
.dm-page .dm-board-score{padding-right:.7cqw}
.dm-page .dm-board-footer{display:flex;font-size:.5cqw}
.dm-page #dm-board-refresh{
 width:1.5cqw;height:1.5cqw;
 font-size:1.3cqw;
}
.dm-page .dm-media-tag{font-size:.62cqw}
.dm-page .dm-media-footnote{font-size:.7cqw}
.dm-page .dm-media-caption{font-size:.65cqw}

/* The single fluid hero placement above replaces the old hard breakpoint
   that made his apparent size and position jump between devices. */
/* The title glare uses the exact newly uploaded logo, bypassing old cache. */
.dm-page .dm-title::after{
 -webkit-mask-image:url('/assets/deadmonton-home/deadmonton_logo.png?v=61fb8d0');
 mask-image:url('/assets/deadmonton-home/deadmonton_logo.png?v=61fb8d0');
}
.dm-page:fullscreen{
 position:fixed;top:0;left:0;width:100vw;height:100dvh;
 overflow:hidden;transform:none;
}
@media (orientation:portrait){
 .dm-page,.dm-page:fullscreen{
  top:50%;left:50%;width:100dvh;height:100dvw;
  transform:translate(-50%,-50%) rotate(90deg);
 }
}

/* Definitive tagline styling, last in the cascade on every screen. */
.dm-page .dm-tagline {
  width: 73%;
  margin: calc(-1.1cqh + 0px) 0 0;
}


/* Pixel offsets from the 1280 x 800 reference expressed in frame units. */
.dm-page .dm-media-tag{top:.625cqh;left:.46875cqw;padding:.375cqh .390625cqw}
.dm-page .dm-board-list li{gap:.234375cqw}
.dm-page .dm-media-controls{gap:.625cqw}
.dm-page .dm-media-arrow{width:1.71875cqw;min-height:0;font-size:1.5625cqw}
.dm-page .dm-unavailable .dm-soon{border-radius:.234375cqw}
/* The single backdrop lives on the viewport; the composition stays transparent. */
.dm-page{background:#010903}
