/* Home page, "Expedition" redesign (2026-10-19).
 *
 * Tokens (--dz-*) come from site-nav.css, which base.html loads on every page. Everything here is
 * scoped under .dzh so nothing leaks into other templates. Plain CSS instead of Tailwind classes:
 * the Play CDN only styles class names it finds literally in the DOM, and these rules need hover,
 * media queries and gradients that are clearer written out.
 */
.dzh {
    --dzh-display: 'Oswald', 'Roboto', system-ui, sans-serif;
    --dzh-mono: 'Roboto Mono', ui-monospace, monospace;
    color: var(--dz-text);
    font-size: 15px;
    line-height: 1.5;
}
.dzh *, .dzh *::before, .dzh *::after { box-sizing: border-box; }
.dzh .dzh-display { font-family: var(--dzh-display); text-transform: uppercase; letter-spacing: .01em; }
.dzh .dzh-mono { font-family: var(--dzh-mono); font-variant-numeric: tabular-nums; }
.dzh a { color: var(--dz-accent); text-decoration: none; }
.dzh a:hover { color: var(--dz-accent-hover); }
.dzh-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.dzh-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dz-accent); }
.dzh-h2 { margin: 6px 0 0; font-family: var(--dzh-display); font-size: 44px; font-weight: 600; line-height: 1; text-transform: uppercase; color: #fff; }
.dzh-sub { color: var(--dz-muted); font-size: 14px; }

/* ---- buttons ---- */
.dzh .dzh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px; border-radius: 10px;
    font: 700 14px/1 Roboto, system-ui, sans-serif; letter-spacing: .02em;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(10, 14, 28, .6); color: var(--dz-text);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: background-color .16s var(--dz-ease), color .16s var(--dz-ease);
    cursor: pointer;
}
.dzh .dzh-btn:hover { background: rgba(22, 29, 51, .95); color: #fff; }
.dzh .dzh-btn--acc { background: var(--dz-accent); border-color: var(--dz-accent); color: var(--dz-accent-ink); }
.dzh .dzh-btn--acc:hover { background: var(--dz-accent-press); border-color: var(--dz-accent-press); color: var(--dz-accent-ink); }
.dzh .dzh-btn--sm { height: 42px; padding: 0 14px; font-weight: 500; background: var(--dz-field); }
.dzh .dzh-btn--sm.dzh-btn--acc { font-weight: 700; background: var(--dz-accent); }
.dzh .dzh-btn:focus-visible { outline: 2px solid var(--dz-accent); outline-offset: 3px; }

/* ---- hero: slides under the sticky navbar, which stays transparent for as long as it is over the hero.
   base.html marks the bar .scrolled (solid) after 30 px; home.html's scroll handler sets .dzh-over-hero while the hero
   is still under the bar, which wins, so the bar does not flash solid while the hero scrolls away. The
   :not(.scrolled) form covers the first paint, before that handler has run. ---- */
body:has(.dzh-hero) #navbar:not(.scrolled),
body #navbar.dzh-over-hero {
    background: linear-gradient(180deg, rgba(0, 0, 39, .85) 0%, rgba(0, 0, 39, 0) 100%) border-box;   /* keeps links legible over a bright sky */
    /* border-box: a gradient sized to the padding box repeats into the 1px bottom border, which then
       shows the gradient's dark top row as a line across the hero */
    background-repeat: no-repeat;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
/* base.html's blurred site-logo backdrop fights the hero art; the home page sits on plain navy. */
body:has(.dzh-hero) main > div.fixed.pointer-events-none { display: none; }
.dzh-hero {
    position: relative;
    margin-top: calc(-4rem - 1px);         /* the navbar's h-16 + its 1px bottom border: no strip of page between */
    min-height: 640px;
    display: flex; align-items: center;
    background-color: var(--dz-bg);
    background-image:
        linear-gradient(90deg, rgba(0, 0, 39, .94) 0%, rgba(0, 0, 39, .6) 42%, rgba(0, 0, 39, 0) 72%),
        linear-gradient(0deg, rgba(0, 0, 39, 1) 0%, rgba(0, 0, 39, 1) 4%, rgba(0, 0, 39, 0) 30%),
        linear-gradient(180deg, rgba(0, 0, 39, .55) 0%, rgba(0, 0, 39, 0) 28%),
        var(--dzh-hero-img);
    background-size: cover;
    background-position: center 40%;
}
.dzh-hero__inner { width: 100%; padding-top: 136px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.dzh-live {
    display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(10, 14, 28, .7); border: 1px solid var(--dz-line-strong);
    font-size: 13px; color: var(--dz-text-2);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dzh-live b { color: var(--dz-text); font-weight: 500; }
.dzh-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dz-accent); }
.dzh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dzh-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); flex: 0 0 auto; }
.dzh-hero h1 {
    margin: 0; max-width: 760px;
    font-family: var(--dzh-display); font-size: 84px; line-height: .95; font-weight: 700;
    letter-spacing: .01em; text-transform: uppercase; color: #fff;
}
.dzh-hero h1 span { color: var(--dz-accent); }
.dzh-hero p { margin: 0; max-width: 540px; font-size: 18px; color: var(--dz-text-2); }
.dzh-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--dz-text-2); }
.dzh-facts span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 1px; background: var(--dz-accent); vertical-align: middle; }
.dzh-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }

/* ---- "By the numbers": live network totals, a slim band under the server cards (same look as the facts band) ---- */
.dzh-stats {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
    background: var(--dz-panel);
    border: 1px solid var(--dz-line); border-radius: 14px; overflow: hidden;
}
.dzh-stat { padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.dzh-stat + .dzh-stat { border-left: 1px solid var(--dz-line); }
.dzh-stat__value { font-family: var(--dzh-mono); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 500; color: #fff; }
.dzh-stat__label { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dz-muted); }

.dzh-main { padding-top: 24px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 88px; }
.dzh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* ---- server cards ---- */
.dzh-servers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dzh-card {
    background: var(--dz-surface); border: 1px solid var(--dz-line); border-radius: 14px;
    overflow: hidden; box-shadow: var(--dz-shadow-2);
    display: flex; flex-direction: column;
    transition: transform .2s var(--dz-ease), box-shadow .2s var(--dz-ease), border-color .2s var(--dz-ease);
}
.dzh-card:hover { transform: translateY(-3px); box-shadow: var(--dz-shadow-3); border-color: var(--dz-line-strong); }
/* The whole card is the DZSA join link (new tab): the Join button's ::after is stretched over the card.
   Copy and Leaderboard sit above that layer and keep their own click. No script, so middle-click,
   ctrl-click and the link's focus ring all behave like any link. */
.dzh-card { position: relative; cursor: pointer; }
.dzh .dzh-join { -webkit-backdrop-filter: none; backdrop-filter: none; }   /* a backdrop-filter would trap the ::after inside the button */
.dzh .dzh-join::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.dzh-card .dzh-copy,
.dzh-card .dzh-card__actions a:not(.dzh-join) { position: relative; z-index: 2; }
.dzh-card:has(.dzh-copy:hover, .dzh-card__actions a:not(.dzh-join):hover) { cursor: default; }
/* Join via DZSA: see-through yellow (same as the navbar's Sign in); the card hover lights it like its own hover */
.dzh .dzh-btn.dzh-join {
    background: var(--dz-accent-glass);
    border-color: var(--dz-accent-glass-line);
    color: var(--dz-accent-glass-ink);
}
.dzh .dzh-btn.dzh-join:hover,
.dzh .dzh-card:hover .dzh-btn.dzh-join {
    background: var(--dz-accent-glass-hover);
    border-color: var(--dz-accent);
    color: var(--dz-accent-glass-ink);
}
.dzh-card__img { position: relative; height: 200px; background: var(--dz-raised) center / cover no-repeat; }
.dzh-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dzh-card__shade {
    position: absolute; inset: auto 0 0 0; padding: 56px 18px 14px;
    background: linear-gradient(0deg, rgba(10, 14, 28, 1) 0%, rgba(10, 14, 28, .75) 45%, rgba(10, 14, 28, 0) 100%);
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.dzh-card__name { font-family: var(--dzh-display); font-size: 36px; font-weight: 700; line-height: 1; text-transform: uppercase; color: #fff; }
.dzh-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px;
    background: rgba(10, 14, 28, .85); font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; white-space: nowrap;
}
.dzh-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dzh-pill--online { color: #4ade80; }
.dzh-pill--offline { color: #f87171; }
.dzh-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.dzh-dlc {
    position: absolute; top: 12px; left: 12px; z-index: 1; padding: 3px 8px; border-radius: 999px;
    background: rgba(10, 14, 28, .82); border: 1px solid var(--dz-line-strong);
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dz-text);
}
.dzh-count { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dzh-count__n { font-family: var(--dzh-mono); font-size: 22px; font-weight: 500; color: #fff; }
.dzh-count__max { font-family: var(--dzh-mono); color: var(--dz-muted); }
.dzh-count__queue { font-family: var(--dzh-mono); font-size: 13px; color: var(--dz-accent); margin-left: 10px; }
.dzh-load { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dzh-bar { height: 4px; border-radius: 999px; background: #1d2438; overflow: hidden; }
.dzh-bar > i { display: block; height: 100%; border-radius: 999px; background: currentColor; }
.dzh-tier-room { color: #4ade80; }
.dzh-tier-active { color: #fde047; }
.dzh-tier-busy { color: #fb923c; }
.dzh-tier-full { color: #f87171; }
.dzh-tier-off { color: var(--dz-muted); }
.dzh-ip {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; background: var(--dz-field); border: 1px solid var(--dz-line); border-radius: 10px;
}
.dzh-ip__text { font-family: var(--dzh-mono); font-size: 13px; color: var(--dz-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dzh-copy {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
    border: 0; border-radius: 6px; background: var(--dz-raised); color: var(--dz-text);
    font: 500 12px Roboto, sans-serif; cursor: pointer; flex: 0 0 auto;
}
.dzh-copy:hover { background: #1d2438; }
.dzh-copy.is-copied { background: rgba(74, 222, 128, .14); color: #4ade80; }
.dzh-status { display: inline-flex; align-items: center; gap: 8px; }
.dzh-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.dzh-status--warn { color: #fb923c; }
.dzh-status--warn::before { background: #fb923c; }

/* ---- first-time join guide ---- */
.dzh-guide {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 40px; align-items: start;
    padding: 28px 32px; background: var(--dz-panel); border: 1px solid var(--dz-line); border-radius: 14px;
}
.dzh-guide__head h2 { margin: 6px 0 8px; font-family: var(--dzh-display); font-size: 32px; font-weight: 600; line-height: 1; text-transform: uppercase; color: #fff; }
.dzh-guide__head p { margin: 0; font-size: 14px; color: var(--dz-text-2); }
.dzh-guide__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dzh-guide__steps li { display: flex; gap: 12px; }
.dzh-guide__steps .dzh-mono { color: var(--dz-accent); font-size: 13px; padding-top: 2px; }
.dzh-guide__steps b { display: block; color: var(--dz-text); margin-bottom: 2px; }
.dzh-guide__steps span { font-size: 14px; color: var(--dz-text-2); }
.dzh-guide__manual { grid-column: 2; font-size: 14px; color: var(--dz-text-2); border-top: 1px solid var(--dz-line); padding-top: 12px; }
.dzh-guide__manual summary { cursor: pointer; color: var(--dz-text); font-weight: 500; }
.dzh-guide__manual summary:focus-visible { outline: 2px solid var(--dz-accent); outline-offset: 3px; border-radius: 4px; }
.dzh-guide__manual p { margin: 10px 0 0; }
.dzh-guide__manual-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: start; margin-top: 12px; }
.dzh-guide__manual ol { margin: 0; padding-left: 20px; list-style: decimal;   /* numbers match the picture's 1-4 */
    display: flex; flex-direction: column; gap: 8px; }
.dzh-guide__manual li::marker { color: var(--dz-accent); font-weight: 700; }
.dzh-guide__shot { cursor: zoom-in; display: block; border: 1px solid var(--dz-line-strong); border-radius: 10px; overflow: hidden; }
.dzh-guide__shot img { display: block; width: 100%; height: auto; }
.dzh-guide__shot:hover { border-color: var(--dz-accent-glass-line); }
@media (max-width: 767px) {
    .dzh-guide__manual-body { grid-template-columns: minmax(0, 1fr); }
    .dzh-guide__shot { max-width: 260px; }
}
.dzh-copy:focus-visible { outline: 2px solid var(--dz-accent); outline-offset: 2px; }
.dzh-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dzh-card__actions img { width: 18px; height: 18px; object-fit: contain; }

/* ---- Nexus band ---- */
.dzh-nexus {
    position: relative; min-height: 460px; display: flex;
    border-radius: 20px; overflow: hidden; border: 1px solid var(--dz-line);
    background: var(--dz-surface) var(--dzh-nexus-img) right center / cover no-repeat;
    background-clip: padding-box;          /* else the photo shows through the translucent border at the corners */
}
.dzh-nexus__panel {
    margin-right: auto; width: 46%; min-width: 360px; padding: 48px;
    background: rgba(10, 14, 28, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
.dzh-nexus__panel h2 { margin: 0; font-family: var(--dzh-display); font-size: 40px; font-weight: 600; line-height: 1; text-transform: uppercase; color: #fff; }
.dzh-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dzh-steps li { display: flex; gap: 14px; }
.dzh-steps .dzh-mono { color: var(--dz-accent); font-size: 13px; padding-top: 2px; }
.dzh-steps b { display: block; color: var(--dz-text); }
.dzh-steps span { font-size: 14px; color: var(--dz-text-2); }
.dzh-more { font-weight: 700; }

/* ---- features ---- */
.dzh-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dzh .dzh-feature {
    display: flex; flex-direction: column; color: var(--dz-text);
    background: var(--dz-surface); border: 1px solid var(--dz-line); border-radius: 14px; overflow: hidden;
    transition: transform .2s var(--dz-ease), box-shadow .2s var(--dz-ease), border-color .2s var(--dz-ease);
}
.dzh .dzh-feature:hover { color: var(--dz-text); transform: translateY(-3px); box-shadow: var(--dz-shadow-3); border-color: var(--dz-line-strong); }
.dzh-feature:focus-visible { outline: 2px solid var(--dz-accent); outline-offset: 3px; }
.dzh-feature__img { aspect-ratio: 16 / 10; background: var(--dz-raised); overflow: hidden; }
.dzh-feature__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--dz-ease); }
.dzh-feature:hover .dzh-feature__img img { transform: scale(1.04); }
.dzh-feature__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dzh-feature__title { font-family: var(--dzh-display); font-size: 24px; font-weight: 600; line-height: 1.1; text-transform: uppercase; color: #fff; }
.dzh-feature__text { font-size: 14px; color: var(--dz-text-2); }
.dzh-feature__link { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--dz-accent); }

/* ---- facts + quick links ---- */
.dzh-band {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--dz-line); border-radius: 14px; background: var(--dz-panel); overflow: hidden;
}
.dzh-band > div { padding: 22px 24px; }
.dzh-band > div + div { border-left: 1px solid var(--dz-line); }
.dzh-band h3 { margin: 0 0 4px; font-family: var(--dzh-display); font-size: 26px; font-weight: 600; text-transform: uppercase; color: #fff; }
.dzh-band p { margin: 0; font-size: 14px; color: var(--dz-text-2); }
.dzh-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dzh-links .dzh-btn { height: 44px; font-weight: 500; background: var(--dz-field); }
.dzh-links .dzh-btn i { color: var(--dz-accent); }
.dzh-updated { margin: 24px 0 0; font-size: 13px; color: var(--dz-muted); }

/* ---- smaller screens ---- */
@media (max-width: 1100px) {
    .dzh-servers, .dzh-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dzh-guide { grid-template-columns: minmax(0, 1fr); }
    .dzh-guide__manual { grid-column: 1; }
    .dzh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dzh-stat:nth-child(5) { border-left: 0; }
    .dzh-stat:nth-child(n + 5) { border-top: 1px solid var(--dz-line); }
    .dzh-stat:last-child { grid-column: span 2; }
}
@media (max-width: 767px) {
    .dzh-wrap { padding: 0 16px; }
    .dzh-hero { min-height: 480px; align-items: flex-end; background-position: var(--dzh-hero-x, 60%) center;   /* per picture (main.HOME_HEROES) */
        background-image:
            linear-gradient(0deg, rgba(0, 0, 39, 1) 0%, rgba(0, 0, 39, .55) 55%, rgba(0, 0, 39, .25) 100%),
            var(--dzh-hero-img); }
    .dzh-hero__inner { padding-top: 92px; padding-bottom: 24px; gap: 12px; }
    .dzh-hero h1 { font-size: 44px; }
    .dzh-hero p { font-size: 15px; }
    .dzh-actions .dzh-btn { flex: 1 1 140px; }
    /* phones: the four strongest numbers (first in the markup) in a 2 x 2 grid, the rest hidden */
    .dzh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dzh-stat--minor { display: none; }
    .dzh-stat { padding: 14px 10px; }
    .dzh-stat:nth-child(odd) { border-left: 0; }
    .dzh-stat:nth-child(n + 3) { border-top: 1px solid var(--dz-line); }
    .dzh-stat__value { font-size: 20px; }
    .dzh-main { padding-top: 16px; padding-bottom: 56px; gap: 56px; }
    .dzh-h2 { font-size: 32px; }
    .dzh-servers, .dzh-band { grid-template-columns: minmax(0, 1fr); }
    /* compact server cards: shorter picture, tighter body */
    .dzh-card__img { height: 112px; }
    .dzh-card__shade { padding: 32px 14px 10px; }
    .dzh-card__name { font-size: 26px; }
    .dzh-card__body { padding: 12px 14px 14px; gap: 10px; }
    .dzh-ip { padding: 6px 8px; }
    .dzh-card__actions .dzh-btn { height: 40px; }
    .dzh-guide { padding: 20px 16px; }
    .dzh-guide__steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .dzh-ip { display: none; }          /* DayZ is not played on a phone: the address stays on desktop, Join remains */
    .dzh-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dzh-feature__img { aspect-ratio: 16 / 10; }
    .dzh-feature__body { padding: 10px 12px 12px; }
    .dzh-feature__title { font-size: 17px; }
    .dzh-feature__text, .dzh-feature__link { display: none; }
    .dzh-band { display: none; }        /* the hero already says first-person / Vanilla+; keep phones short */
    .dzh-nexus { flex-direction: column; min-height: 0; background-position: 75% top; background-size: auto 200px; padding-top: 160px; }
    .dzh-nexus__panel { width: 100%; min-width: 0; padding: 28px 20px; }
    .dzh-nexus__panel h2 { font-size: 30px; }
    .dzh-band > div + div { border-left: 0; border-top: 1px solid var(--dz-line); }
    .dzh-links { margin-top: 0; }
    .dzh-links .dzh-btn { flex: 1 1 calc(50% - 5px); padding: 0 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .dzh-card, .dzh-feature, .dzh-feature__img img { transition: none; }
    .dzh-card:hover, .dzh .dzh-feature:hover { transform: none; }
}
