/* Mythral home page only. The shell, buttons and tokens live in mythral.css. */

/* ---------- Navigation: over the world until the page moves ---------- */
.ev-home .m-nav { position: fixed; inset: 0 0 auto; transition: background-color .35s var(--ev-ease), box-shadow .35s var(--ev-ease); }
.ev-home .m-brand { transition: opacity .3s var(--ev-ease); }
/* See-through over the hero only when a script can turn it solid again. */
@media (scripting: enabled) {
    .ev-home .m-nav:not(.is-stuck) { background: linear-gradient(to bottom, rgba(7, 11, 24, .72), rgba(7, 11, 24, 0)); box-shadow: none; }
    /* The hero already shows the logo. The small one joins the bar once the hero's has scrolled away. */
    .ev-home .m-nav:not(.is-stuck) .m-brand { opacity: 0; pointer-events: none; }
    .ev-home .m-nav:not(.is-stuck) .m-brand:focus-visible { opacity: 1; }
}
.ev-home .m-alerts { padding-top: 88px; }

.ev-page h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; margin: 0; }

/* ---------- Hero ---------- */
.ev-hero { position: relative; min-height: max(100svh, 720px); display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(rgba(7, 11, 24, .62), rgba(7, 11, 24, .62)), url("../img/world/haze-960.webp") center / cover no-repeat, var(--ev-night); isolation: isolate; } /* the haze, dimmed, holds the frame until the world painting lands; dim enough that the title reads on it too */
.ev-world, .ev-scene-canvas, .ev-hero-shade { position: absolute; inset: 0; }
.ev-world { z-index: -5; }
.ev-world-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ev-scene-canvas { z-index: -4; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.ev-scene-canvas.is-ready { opacity: 1; }
.ev-cast { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.ev-actor { position: absolute; display: block; transform: translate3d(calc(var(--px, 0) * var(--pull) * -1px), calc(var(--py, 0) * var(--pull) * -.6px), 0); }
.ev-actor img { display: block; width: 100%; height: auto; animation: ev-float var(--bob, 7s) ease-in-out infinite; }
.ev-actor-lead { --pull: 22; --bob: 7s; right: max(2vw, calc(50% - 720px)); bottom: 13%; width: min(29vw, 440px); }
.ev-actor-wing { --pull: 10; --bob: 9s; left: 47%; top: 13%; width: min(7vw, 104px); }
@keyframes ev-float { 50% { transform: translateY(-14px); } }
.ev-hero-shade { z-index: -3; pointer-events: none;
    background:
        linear-gradient(to right, rgba(7, 11, 24, .74) 0%, rgba(7, 11, 24, .54) 34%, rgba(7, 11, 24, 0) 56%),
        linear-gradient(to bottom, rgba(7, 11, 24, 0) 62%, var(--ev-ink) 100%);
}
.ev-hero-inner { flex: 1; display: flex; align-items: center; padding-block: 104px 28px; }
.ev-hero-copy { max-width: 600px; }
.ev-hero-logo { display: block; width: min(500px, 100%); height: auto; margin: 0 0 6px -14px; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .55)); }
.ev-hero h1 { font-size: clamp(25px, 2.5vw, 35px); margin: 0 0 12px; text-shadow: 0 2px 16px rgba(0, 0, 0, .75); }
.ev-lede { max-width: 500px; margin: 0 0 28px; color: var(--ev-text); font-size: 18px; line-height: 1.6; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.ev-motion { position: absolute; z-index: 2; right: 18px; top: 84px; width: 38px; height: 38px; border-radius: 50%; color: var(--ev-text); background: rgba(9, 13, 30, .62); border: 1px solid rgba(255, 255, 255, .24); }
.ev-motion:hover { color: var(--ev-gold-hi); border-color: var(--ev-gold); }

/* The strip sitting across the hero's lower edge. */
.ev-hero-bar { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; padding: 0; margin-bottom: 30px; background: var(--ev-line); border: 1px solid var(--ev-line); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px -22px #000; }
.ev-plate { display: block; padding: 15px 22px; background: rgba(11, 16, 36, .9); color: var(--ev-text); text-decoration: none; transition: background-color .25s var(--ev-ease); }
a.ev-plate:hover { background: rgba(26, 32, 66, .95); color: var(--ev-gold-hi); }
.ev a.ev-plate:focus-visible { outline-offset: -4px; }
.ev-plate-label { display: block; margin-bottom: 3px; color: var(--ev-gold); font: 600 11px/1.4 var(--ev-display); letter-spacing: .16em; text-transform: uppercase; }
.ev-plate p { margin: 0; font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.ev .m-gauge { display: flex; padding: 0; border-radius: 0; background: none; color: var(--ev-text); font: 600 16px var(--ev-body); }
.ev-plate small { color: var(--ev-soft); font-weight: 400; font-size: 13px; }

/* ---------- Sections ---------- */
.ev-page { background: var(--ev-ink); }
.ev-section { position: relative; isolation: isolate; padding-block: clamp(56px, 6.5vw, 96px); content-visibility: auto; contain-intrinsic-size: auto 760px; }
.ev-section-deep { background: linear-gradient(to bottom, var(--ev-ink), var(--ev-night) 22%, var(--ev-night) 78%, var(--ev-ink)); }
/* A blurred evening sky behind each band, so no section sits on flat colour. Tiny, and only fetched near the viewport. */
.ev-section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("../img/world/haze-960.webp") center top / cover no-repeat; opacity: .5; -webkit-mask: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent); mask: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent); }
.ev-section::after { content: ""; position: absolute; left: 50%; top: 0; width: min(70%, 780px); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--ev-line), transparent); }
.ev-section-lede { color: var(--ev-soft); font-size: 17px; }
.ev-empty { grid-column: 1 / -1; color: var(--ev-soft); }

/* ---------- Server features: real screenshots at native size, never enlarged ---------- */
.ev-head-note { flex: 0 1 340px; margin: 0; color: var(--ev-soft); font-size: 14px; line-height: 1.5; text-align: right; }
/* One showcase panel: the tabs down the side, the chosen system beside them. The leading systems get the big tabs. */
.ev-showcase { --stage-h: 520px; display: grid; grid-template-columns: 286px minmax(0, 1fr); }
/* The panel neither leans nor lifts on hover: its layers carry the depth, and leaning would draw part of a window larger. */
.ev-card.ev-showcase { transform: translateY(var(--lift, 0)); }
@media (hover: hover) { [data-card].ev-showcase:hover { --lift: 0; } }
.ev-show-nav { position: relative; z-index: 3; padding: 22px 16px; background: linear-gradient(180deg, rgba(5, 8, 20, .55), rgba(5, 8, 20, .25)); border-right: 1px solid var(--m-line); }
.ev-show-tabs { display: flex; flex-direction: column; gap: 6px; }
.ev-show-tab {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 9px 12px;
    color: var(--ev-soft); font-size: 14.5px; font-weight: 600; line-height: 1.25; text-decoration: none;
    border: 1px solid transparent; border-radius: 10px; transition: color .25s var(--ev-ease), background-color .25s var(--ev-ease), border-color .25s var(--ev-ease);
}
.ev-show-tab:hover { color: var(--ev-text); background: rgba(255, 255, 255, .04); }
.ev-show-icon { display: grid; place-items: center; flex: 0 0 30px; height: 30px; color: var(--ev-gold); font-size: 15px; border-radius: 8px; background: rgba(230, 182, 90, .08); border: 1px solid rgba(230, 182, 90, .2); }
.ev-show-name { display: grid; gap: 3px; min-width: 0; }
.ev-show-name small { color: #a9afc4; font: 500 12.5px/1.3 var(--bs-body-font-family); letter-spacing: 0; }
.ev-show-tab.is-main { min-height: 72px; padding: 12px 14px; color: var(--ev-text); font: 600 16.5px/1.2 var(--ev-display); letter-spacing: .02em; background: rgba(255, 255, 255, .025); border-color: rgba(255, 255, 255, .07); }
.ev-show-tab.is-main .ev-show-icon { flex-basis: 44px; height: 44px; font-size: 20px; border-radius: 11px; }
.ev-show-tab[aria-selected="true"] { color: var(--ev-gold-hi); background: linear-gradient(90deg, rgba(230, 182, 90, .16), rgba(230, 182, 90, .03)); border-color: var(--ev-line); }
.ev-show-tab[aria-selected="true"]::before { content: ""; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(to bottom, var(--ev-gold-hi), var(--ev-gold-lo)); box-shadow: 0 0 12px rgba(255, 196, 110, .6); }
.ev-show-tab[aria-selected="true"] .ev-show-icon { color: var(--ev-gold-ink); background: linear-gradient(to bottom, #ffdf94, #c98d33); border-color: transparent; }
.ev-show-flag { margin-left: auto; padding: 2px 7px; color: var(--ev-gold-hi); font: 700 10px/1.4 var(--bs-body-font-family); letter-spacing: .08em; text-transform: uppercase; border: 1px dashed var(--ev-gold); border-radius: 4px; }
.ev-show-tab.is-main .ev-show-flag { position: absolute; top: 8px; right: 8px; }
.ev-show-tab.is-main:has(.ev-show-flag) .ev-show-name { padding-right: 60px; }
.ev-show-group { display: flex; align-items: center; gap: 10px; margin: 16px 4px 6px; color: var(--ev-gold); font: 600 11.5px/1 var(--ev-display); letter-spacing: .2em; text-transform: uppercase; }
.ev-show-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--ev-line), transparent); }
.ev-show-panels { min-width: 0; }
/* Every panel keeps at least the same height, so switching tabs does not move the page below. */
.ev-show-panel { min-height: calc(var(--stage-h) + 230px); }
/* Without the script, following a tab's link shows its panel (beside the first). Bootstrap hides [hidden] with !important. */
html:not(.ev-show-on) .ev-show-panel:target { display: block !important; }
.ev-show-on .ev-show-panel:not([hidden]) { animation: ev-panel-in .45s var(--ev-ease) both; }
@keyframes ev-panel-in { from { opacity: 0; } }
/* The stage: a backdrop, the real window floating forward, and details cut from the same screen.
   Sizes only ever shrink, and nothing scales up on hover, so the game's text is never drawn larger than the game drew it. */
.ev-stage {
    position: relative; isolation: isolate; display: block; height: var(--stage-h); overflow: hidden;
    background: #070b18; cursor: zoom-in; perspective: 1400px; container-type: size;
}
.ev-stage-bg { position: absolute; inset: -18px; z-index: -3; }
.ev-stage-bg img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(1.05); }
.ev-stage-bg.is-shot img { filter: brightness(.42) saturate(.9) blur(1.5px); }
.ev-stage-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 46%, transparent 30%, rgba(7, 11, 24, .72) 100%), linear-gradient(to bottom, transparent 66%, rgba(12, 17, 39, .95)); }
/* Warm light behind the window, so it sits in the scene rather than on top of it. */
.ev-stage-light { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse 46% 52% at var(--lx, 50%) 48%, rgba(255, 196, 110, .22), rgba(120, 90, 210, .1) 48%, transparent 72%); }
.ev-stage-main {
    position: absolute; z-index: 0; left: var(--lx, 50%); top: 48%; display: block; line-height: 0;
    /* The turn brings one edge closer, which perspective draws larger; the scale keeps even that edge within the game's own size. */
    transform: translate(-50%, -50%) rotateY(var(--tilt, -7deg)) rotateX(2deg) scale(.94);
}
.ev-stage-main img {
    display: block; width: auto; height: auto; max-width: var(--main-max, 92cqw); max-height: calc(100cqh - 72px);
    border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 231, 173, .3), 0 30px 60px -18px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(255, 190, 100, .28);
}
.ev-stage-main::after { /* A soft sheen that crosses the window on hover. Light only: it never covers the text. */
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 4px; opacity: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%) -120% 0 / 220% 100% no-repeat;
    transition: opacity .3s var(--ev-ease), background-position 1.1s var(--ev-ease); mix-blend-mode: screen;
}
.ev-stage:hover .ev-stage-main::after, .ev-stage:focus-visible .ev-stage-main::after { opacity: 1; background-position: 120% 0; }
/* Details: smaller cuts of the same screenshot, framed, pointing at what matters. */
.ev-detail {
    position: absolute; z-index: 1; display: grid; gap: 6px; padding: 8px 8px 7px; line-height: 0;
    background: rgba(9, 13, 30, .88); border: 1px solid var(--ev-line); border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 22px 40px -14px #000, 0 0 30px -12px rgba(255, 196, 110, .35);
}
.ev-detail img { display: block; max-width: 100%; height: auto; border-radius: 3px; }
.ev-detail-label { line-height: 1; color: var(--ev-gold-hi); font: 600 10.5px/1 var(--ev-display); letter-spacing: .16em; text-transform: uppercase; }
.ev-stage:hover .ev-detail { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 26px 44px -14px #000, 0 0 36px -8px rgba(255, 196, 110, .5); }

/* Per system: where the window sits, how far it turns, and where its details go. */
.ev-feature-dungeon .ev-stage { --lx: 39%; --tilt: 8deg; --main-max: 68cqw; }
.ev-feature-dungeon .ev-stage-main img { border-radius: 22px; box-shadow: none; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .8)) drop-shadow(0 0 1px rgba(255, 231, 173, .5)); }
.ev-feature-dungeon .ev-detail-1 { right: 26px; top: 30px; }
.ev-feature-dungeon .ev-detail-2 { right: 26px; bottom: 36px; }
/* Scenes from video frames: one picture, no window over it. */
.ev-feature-tower .ev-stage, .ev-feature-mounts .ev-stage, .ev-feature-bosses .ev-stage, .ev-feature-visuals .ev-stage { --lx: 50%; --tilt: -6deg; --main-max: 90cqw; }
.ev-feature-mounts .ev-stage, .ev-feature-visuals .ev-stage { --tilt: 6deg; }
.ev-feature-autohunt .ev-stage { --lx: 50%; --tilt: -8deg; }
.ev-feature-autohunt .ev-detail-1 { left: 18px; bottom: 30px; }
.ev-feature-inventory .ev-stage { --lx: 50%; --tilt: 9deg; }
.ev-feature-flight .ev-stage { --lx: 50%; --tilt: 6deg; --main-max: 90cqw; }
.ev-feature-inventory .ev-detail-1 { right: 18px; top: 34px; }
.ev-feature-inventory .ev-detail-2 { right: 18px; bottom: 40px; }
.ev-feature-buffs .ev-stage { --lx: 50%; --tilt: -8deg; --main-max: 86cqw; }
.ev-feature-buffs .ev-detail-1 { left: 50%; bottom: 34px; transform: translateX(-50%); }
.ev-feature-achieve .ev-stage { --lx: 42%; --tilt: 7deg; --main-max: 76cqw; }
.ev-feature-achieve .ev-detail-1 { right: 18px; bottom: 30px; }
.ev-feature-skin .ev-stage { --lx: 50%; --tilt: -8deg; --main-max: 94cqw; }
.ev-feature-skin .ev-detail-1 { left: 18px; bottom: 26px; }
.ev-shot-zoom { position: absolute; z-index: 2; right: 14px; top: 14px; display: grid; place-items: center; width: 34px; height: 34px; color: var(--ev-text); font-size: 13px; background: rgba(9, 13, 30, .72); border: 1px solid rgba(255, 231, 173, .3); border-radius: 50%; opacity: .75; transition: opacity .25s var(--ev-ease), color .25s var(--ev-ease); }
.ev-feature-dungeon .ev-shot-zoom, .ev-feature-inventory .ev-shot-zoom { right: auto; left: 14px; }
.ev-stage:hover .ev-shot-zoom, .ev-stage:focus-visible .ev-shot-zoom { opacity: 1; color: var(--ev-gold-hi); }
.ev a.ev-stage:focus-visible { outline-offset: -5px; }
.ev-feature-body { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px 36px; padding: 24px 30px 28px; }
.ev-feature h3 { margin: 0 0 8px; font-size: clamp(22px, 2vw, 27px); }
.ev-feature p { margin: 0; color: var(--ev-soft); font-size: 15.5px; line-height: 1.55; }
.ev-show-side { display: grid; align-content: start; gap: 14px; }
.ev-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.ev-facts li { padding: 4px 11px; color: var(--ev-gold-hi); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; background: rgba(230, 182, 90, .08); border: 1px solid var(--ev-line); border-radius: 999px; }

/* ---------- Admin-only previews of systems in development ---------- */
.ev-feature .ev-preview-note { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; color: var(--ev-gold-hi); font-size: 13.5px; font-weight: 600; border: 1px dashed var(--ev-gold); border-radius: 10px; background: rgba(230, 182, 90, .06); }

/* ---------- Previews with no screenshot yet: a crest, until the system is real ---------- */
.ev-show-crest { display: grid; place-items: center; height: calc(var(--stage-h) * .5); color: var(--ev-gold); font-size: 72px; background: radial-gradient(ellipse at 50% 55%, rgba(230, 182, 90, .18), transparent 66%), linear-gradient(165deg, #1a2050, #0c1127); border-bottom: 1px solid var(--m-line); }

/* ---------- DirectX 11 before and after ---------- */
.ev-compare { --split: 50%; position: relative; height: var(--stage-h); overflow: hidden; background: #070b18; touch-action: pan-y; }
.ev-compare picture, .ev-compare img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-compare-new { clip-path: inset(0 0 0 var(--split)); }
.ev-compare-line { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: linear-gradient(to bottom, transparent, var(--ev-gold-hi) 12%, var(--ev-gold-hi) 88%, transparent); pointer-events: none; }
.ev-compare-knob { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; color: var(--ev-gold-ink); font-size: 13px; border-radius: 50%; background: linear-gradient(to bottom, #ffdf94, #c98d33); box-shadow: 0 0 0 4px rgba(7, 11, 24, .45), 0 10px 22px rgba(0, 0, 0, .6); }
.ev-compare-range { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ev-compare-range:focus-visible ~ .ev-compare-line .ev-compare-knob, .ev-compare:has(.ev-compare-range:focus-visible) .ev-compare-knob { box-shadow: 0 0 0 3px var(--ev-gold-hi), 0 10px 22px rgba(0, 0, 0, .6); }
.ev-compare-tag { position: absolute; z-index: 2; top: 14px; padding: 4px 11px; color: var(--ev-text); font-size: 12.5px; font-weight: 600; background: rgba(9, 13, 30, .78); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; pointer-events: none; }
.ev-compare-tag-old { left: 14px; }
.ev-compare-tag-new { right: 14px; color: var(--ev-gold-hi); border-color: var(--ev-line); }
/* The hour on screen, set like a clock face. */
.ev-compare-clock { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 16px; color: var(--ev-gold-hi); font: 600 20px/1 var(--ev-display); letter-spacing: .08em; font-variant-numeric: tabular-nums; background: rgba(9, 13, 30, .8); border: 1px solid var(--ev-line); border-radius: 999px; box-shadow: 0 10px 24px -8px #000; pointer-events: none; }
/* While the view changes, the last frame stays on top and fades out, so the day flows instead of blinking. */
.ev-compare .is-ghost { z-index: 1; transition: opacity .9s var(--ev-ease); }
.ev-compare .is-ghost.is-gone { opacity: 0; }
.ev-status { display: inline-block; margin-bottom: 10px; padding: 3px 10px; color: #1c1405; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(to bottom, #ffdf94, #e2a94a); border-radius: 4px; }
/* Choices inside a system: waves, hours, views. */
.ev-views { display: grid; gap: 8px; }
.ev-views-label { color: var(--ev-gold); font: 600 11px/1 var(--ev-display); letter-spacing: .18em; text-transform: uppercase; }
.ev-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-choices button { position: relative; min-height: 36px; padding: 6px 13px; color: var(--ev-soft); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; transition: color .25s var(--ev-ease), border-color .25s var(--ev-ease), background-color .25s var(--ev-ease); }
.ev-choices button:hover { color: var(--ev-text); border-color: var(--ev-line); }
.ev-choices button[aria-pressed="true"] { color: var(--ev-gold-hi); border-color: var(--ev-gold); background: rgba(230, 182, 90, .12); box-shadow: 0 0 18px -6px rgba(255, 196, 110, .55); }
.ev-choices button.is-featured::after { content: ""; position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ev-gold-hi); box-shadow: 0 0 0 2px var(--ev-ink), 0 0 10px rgba(255, 196, 110, .8); }
.ev-choices .ev-play { display: inline-flex; align-items: center; gap: 6px; color: var(--ev-gold-hi); border-color: var(--ev-line); }
.ev-choices .ev-play[hidden] { display: none; }
.ev-feature .ev-wave-line { color: var(--ev-text); font-style: italic; }
.ev-wave-line::before { content: "\201C"; }
.ev-wave-line::after { content: "\201D"; }
.ev-fineprint { margin: 12px 0 0 !important; font-size: 13px !important; color: #a9afc4 !important; }

/* The enlarged screenshot. On a small screen it stays at full size and pans. */
.ev-zoom { max-width: 100vw; max-height: 100dvh; padding: 0; color: var(--ev-text); background: transparent; border: 0; overflow: visible; }
.ev-zoom::backdrop { background: rgba(4, 6, 14, .9); }
.ev-zoom-frame { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid var(--ev-line); border-radius: 8px; line-height: 0; }
.ev-zoom-frame img { display: block; max-width: none; }
.ev-zoom-close { position: fixed; z-index: 2; right: 14px; top: 14px; width: 44px; height: 44px; color: var(--ev-text); background: rgba(9, 13, 30, .86); border: 1px solid var(--ev-gold); border-radius: 50%; }

/* ---------- Jobs ---------- */
.ev-jobs-art { position: absolute; inset: 0; z-index: -1; -webkit-mask: linear-gradient(to bottom, transparent, #000 24%, #000 74%, transparent); mask: linear-gradient(to bottom, transparent, #000 24%, #000 74%, transparent); }
.ev-jobs-art img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ev-jobs-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--ev-ink) 18%, rgba(7, 11, 24, .25) 62%, rgba(7, 11, 24, .4)); }
.ev-jobs-band::before { content: none; }
.ev-jobs { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.ev .m-job-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; margin: 26px 0 0; }
.ev .m-job-list a { position: relative; display: block; padding: 14px 18px; color: var(--ev-soft); font: 600 15px var(--ev-display); letter-spacing: .06em; text-decoration: none; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: linear-gradient(to bottom, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0)); transition: color .25s var(--ev-ease), border-color .25s var(--ev-ease), background-color .25s var(--ev-ease); }
.ev .m-job-list a:hover { color: var(--ev-text); border-color: var(--ev-line); }
.ev .m-job-list a[aria-current="true"] { color: var(--ev-gold-hi); border-color: var(--ev-gold); background: linear-gradient(to bottom, rgba(230, 182, 90, .16), rgba(230, 182, 90, .03)); }
.ev-jobs-stage { min-height: 500px; display: flex; align-items: flex-end; }
.ev .m-job-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
.ev .m-job-panel[hidden] { display: none; }
.ev-hero-job { position: relative; text-align: center; }
.ev .ev-hero-job .m-job-portrait { position: relative; display: block; height: auto; margin: 0; padding: 0; background: none; }
.ev .ev-hero-job .m-job-portrait::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -3%; height: 9%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ev-job) 60%, #ffd98a 40%), transparent); filter: blur(5px); opacity: .8; }
.ev .ev-hero-job img { display: block; height: clamp(250px, 29vw, 390px); width: 100%; margin-inline: auto; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .55)); }
.ev-hero-job h3 { margin: 16px 0 4px; font-size: 21px; }
.ev-hero-job p { margin: 0 auto; max-width: 260px; color: var(--ev-soft); font-size: 14.5px; }
.ev-hero-job .ev-job-gear { display: inline-flex; align-items: center; gap: 7px; max-width: 290px; margin-top: 10px; padding: 5px 12px; color: var(--ev-gold-hi); font-size: 12.5px; font-weight: 600; line-height: 1.35; text-align: left; background: rgba(230, 182, 90, .08); border: 1px solid var(--ev-line); border-radius: 10px; }

/* ---------- Realm ---------- */
.ev-realm { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 18px; }
.ev-realm-solo { grid-template-columns: 7fr 5fr; }
.ev-event { display: flex; align-items: flex-end; min-height: 420px; }
.ev-event-art { position: absolute; inset: 0; z-index: -1; }
.ev-event-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-pet { position: absolute; z-index: -1; pointer-events: none; }
.ev-pet img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .5)); transition: transform .6s var(--ev-ease); }
[data-card]:hover .ev-pet img { transform: translateY(-8px) scale(1.04); }
.ev-event .ev-pet { right: 4%; top: 4%; width: 34%; }
.ev-community .ev-pet { right: -6%; bottom: 56px; width: 56%; opacity: .95; }
.ev-community ul { position: relative; }
.ev-event-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 11, 24, .97) 22%, rgba(7, 11, 24, .35) 66%, rgba(7, 11, 24, .05)); }
.ev-event-body { padding: 26px; }
.ev-event h3 { margin: 0 0 4px; font-size: 28px; }
.ev-countdown { margin: 0 0 10px; color: var(--ev-gold-hi); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.ev-event p:not(.ev-countdown) { margin: 0 0 14px; color: var(--ev-soft); font-size: 14.5px; }
.ev-legends, .ev-community { padding: 26px; display: flex; flex-direction: column; }
.ev-legends ol { list-style: none; padding: 0; margin: 4px 0 16px; flex: 1; }
.ev-legends li { display: flex; align-items: center; gap: 13px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ev-legends li:last-child { border-bottom: 0; }
.ev-rank { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; color: var(--ev-gold-hi); font: 700 14px/1 var(--ev-display); }
.ev-rank::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--ev-gold); opacity: .55; transform: rotate(45deg); }
.ev-rank-who { flex: 1; min-width: 0; font-weight: 600; }
.ev-rank-who a { color: var(--ev-text); text-decoration: none; }
.ev-rank-who a:hover { color: var(--ev-gold-hi); }
.ev-rank-who small { display: block; color: var(--ev-soft); font-weight: 400; font-size: 12.5px; }
.ev-rank-score { color: var(--ev-gold); font-weight: 600; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.ev-rank-score small { display: block; color: var(--ev-soft); font-weight: 400; font-size: 11.5px; }
.ev-community h3 { margin: 0 0 8px; font-size: 22px; }
.ev-community p { color: var(--ev-soft); font-size: 14.5px; }
.ev-community ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 10px; }

/* ---------- Final call ---------- */
.ev-final { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 11vw, 150px); text-align: center; content-visibility: auto; contain-intrinsic-size: auto 620px; }
.ev-final-art { position: absolute; inset: 0; z-index: -1; }
.ev-final-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-final-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ev-ink), rgba(7, 11, 24, .68) 34%, rgba(7, 11, 24, .78) 72%, var(--ev-ink)); }
.ev-steps { counter-reset: ev-step; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 960px; padding: 0; margin: 34px auto; }
.ev-steps li { counter-increment: ev-step; padding: 20px; background: rgba(11, 16, 36, .78); border: 1px solid var(--ev-line); border-radius: 10px; }
.ev-steps li::before { content: counter(ev-step); display: block; color: var(--ev-gold); font: 700 24px var(--ev-display); }
.ev-steps h3 { font-size: 17px; margin: 4px 0; }
.ev-steps p { margin: 0; color: var(--ev-soft); font-size: 14.5px; }
.ev-final .ev-actions { justify-content: center; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 991.98px) {
    .ev-hero-inner { align-items: flex-start; padding-top: 84px; }
    .ev-hero-copy { max-width: none; }
    .ev-hero-logo { width: min(84vw, 480px); margin-inline: auto; }
    .ev-hero h1, .ev-lede { text-align: center; margin-inline: auto; }
    .ev-lede { font-size: 16px; margin-bottom: 20px; }
    .ev-motion { top: auto; right: 14px; bottom: 104px; }
    .ev-hero-shade { background: linear-gradient(to bottom, rgba(7, 11, 24, .58), rgba(7, 11, 24, .22) 44%, rgba(7, 11, 24, .1) 62%, var(--ev-ink) 100%); }
    .ev-actor-lead { right: 4vw; bottom: 94px; width: min(46vw, 260px); }
    .ev-actor-wing { display: none; }
    .ev-actions { justify-content: center; }
    .ev-hero-bar { grid-auto-flow: row; grid-template-columns: 1fr 1fr; margin-inline: 12px; width: auto; }
    .ev-hero-bar > :nth-child(3) { display: none; }
    .ev-plate { padding: 12px 14px; }
    .ev-plate p { font-size: 14.5px; }
    .ev-head { margin-bottom: 24px; }
    .ev-head { flex-wrap: wrap; }
    .ev-head-note { flex-basis: 100%; text-align: left; }
    /* The tabs become a strip you swipe above the panel; the leading systems keep their larger tabs. */
    .ev-showcase { --stage-h: 360px; grid-template-columns: minmax(0, 1fr); }
    .ev-show-nav { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--m-line); }
    .ev-show-tabs { flex-direction: row; align-items: center; gap: 8px; padding: 0 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
    .ev-show-tabs::-webkit-scrollbar { display: none; }
    .ev-show-tab { flex: 0 0 auto; min-height: 44px; scroll-snap-align: start; border-color: rgba(255, 255, 255, .08); white-space: nowrap; }
    .ev-show-tab.is-main { min-height: 56px; font-size: 15px; }
    .ev-show-tab.is-main small { display: none; }
    .ev-show-tab.is-main .ev-show-icon { flex-basis: 34px; height: 34px; font-size: 16px; }
    /* In the strip the Preview flag follows the name instead of sitting on it. */
    .ev-show-tab.is-main .ev-show-flag { position: static; margin-left: 8px; }
    .ev-show-tab.is-main:has(.ev-show-flag) .ev-show-name { padding-right: 0; }
    .ev-show-tab[aria-selected="true"]::before { left: 12px; right: 12px; top: auto; bottom: -1px; width: auto; height: 2px; border-radius: 2px 2px 0 0; }
    .ev-show-group { flex: 0 0 1px; align-self: stretch; margin: 6px 4px; font-size: 0; background: var(--ev-line); } /* a quiet divider: the strip has no room for the heading */
    .ev-show-group::after { display: none; }
    .ev-feature-body { grid-template-columns: minmax(0, 1fr); padding: 18px 18px 22px; }
    .ev-feature-achieve .ev-stage { --lx: 50%; --main-max: 92cqw; }
    .ev-feature-achieve .ev-detail-1 { right: 10px; bottom: 14px; }
    .ev-feature-skin .ev-detail-1 { left: 10px; bottom: 14px; }
    .ev-stage { --main-max: 86cqw; }
    .ev-feature-dungeon .ev-stage { --lx: 50%; --main-max: 92cqw; }
    .ev-compare-clock { bottom: 12px; font-size: 16px; }
    .ev-detail { padding: 6px; }
    .ev-detail img { max-width: 150px; }
    /* On a phone the window itself fills the stage, so a detail would only cover part of it. */
    .ev-feature-dungeon .ev-detail { display: none; }
    .ev-detail-label { font-size: 9.5px; }
    .ev-jobs { grid-template-columns: 1fr; gap: 20px; }
    .ev-jobs-stage { min-height: 0; }
    .ev .ev-hero-job img { height: clamp(210px, 54vw, 340px); }
    .ev-realm { grid-template-columns: 1fr; }
    /* The pets are decoration: on a narrow card the event's pet keeps to its corner above the words, and the
       community card's pet would sit on its text, so it goes. */
    .ev-event { min-height: 380px; }
    .ev-event .ev-pet { top: 14px; right: 14px; width: min(30%, 150px); }
    .ev-community .ev-pet { display: none; }
    .ev-steps { grid-template-columns: 1fr; text-align: left; }
    /* The dock covers the bottom of the page, so the footer ends above it. */
    .ev-home .m-footer { padding-bottom: calc(28px + 76px + env(safe-area-inset-bottom)); }
}
/* Tablets have room for two columns where phones need one. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .ev-realm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ev-realm .ev-event { grid-column: 1 / -1; }
    .ev-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Entrance and reveal ---------- */
/* The logo is the page's largest paint, so it appears at once; the words and calls rise in after it. */
.ev-hero h1, .ev-lede, .ev-hero .ev-actions, .ev-hero-bar { animation: ev-rise .8s var(--ev-ease) both; }
.ev-hero h1 { animation-delay: .08s; }
.ev-lede { animation-delay: .16s; }
.ev-hero .ev-actions { animation-delay: .26s; }
.ev-hero-bar { animation-delay: .4s; }
@keyframes ev-rise { from { opacity: 0; transform: translateY(16px); } }
.ev-reveal-on .ev-page .ev-section .ev-head, .ev-reveal-on .ev-page .ev-card, .ev-reveal-on .ev-page .ev-hero-job, .ev-reveal-on .ev-steps li { transition: opacity .7s var(--ev-ease), transform .7s var(--ev-ease); }
.ev-reveal-on .ev-page .ev-section .ev-head:not(.is-in), .ev-reveal-on .ev-page .ev-hero-job:not(.is-in), .ev-reveal-on .ev-steps li:not(.is-in) { opacity: 0; transform: translateY(22px); }
/* Cards keep their own transform for the pointer tilt, so they rise through it. */
.ev-reveal-on .ev-page .ev-card:not(.is-in) { opacity: 0; --lift: 24px; }

/* ---------- Phone dock ---------- */
.ev-dock { position: fixed; z-index: 1020; left: 0; right: 0; bottom: 0; display: none; gap: 10px; padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: linear-gradient(to top, rgba(7, 11, 24, .98), rgba(7, 11, 24, .9)); border-top: 1px solid var(--ev-line); box-shadow: 0 -18px 34px -18px #000; transform: translateY(110%); transition: transform .35s var(--ev-ease); }
.ev-dock .ev-btn { flex: 1; min-height: 48px; }
.ev-dock .ev-btn-gold { min-width: 0; }
@media (max-width: 991.98px) {
    .ev-dock:not([hidden]) { display: flex; }
    .ev-dock.is-shown { transform: none; }
}

/* ---------- Motion off: everything stays, nothing moves ---------- */
html[data-tier="0"] .ev-actor img, html[data-motion="off"] .ev-actor img, .ev-hero.is-away .ev-actor img { animation-play-state: paused; }
