/* =========================================================
   Project Echelon Zero — main-menu site (/new)
   All rules are prefixed .ez- so they never touch the old page.
   ========================================================= */

.ez-root {
    --ez-accent: #FBB03B;
    --ez-accent-hover: #FFC566;
    --ez-ground: #0B0C0E;
    --ez-panel: rgba(14, 15, 18, 0.86);
    --ez-line: #2A2C31;
    --ez-line-strong: #3A3C42;
    --ez-text: #ECEAE4;
    --ez-text-2: #B9B7B0;
    --ez-muted: #8E8C85;
    --ez-on-accent: #121212;
    --ez-display: 'Chakra Petch', 'Segoe UI', sans-serif;
    --ez-mono: 'JetBrains Mono', Consolas, monospace;

    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 640px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--ez-ground);
    color: var(--ez-text);
    font-family: var(--ez-display);
    line-height: 1.4;
}

body:has(.ez-root) { margin: 0; background: #0B0C0E; overflow: hidden; }

.ez-root *, .ez-root *::before, .ez-root *::after { box-sizing: border-box; }
.ez-root a { color: inherit; text-decoration: none; }
.ez-root button { font-family: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
.ez-root :focus-visible { outline: 2px solid var(--ez-accent); outline-offset: 2px; }

/* ---------- background ---------- */
.ez-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    filter: blur(5px) brightness(0.32) saturate(0.85);
    transform: scale(1.06);
    z-index: 0;
    transition: opacity .3s ease;
}
.ez-vignette {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse at 70% 40%, rgba(11,12,14,0) 0%, rgba(11,12,14,.75) 85%);
}
.ez-topbar { position: relative; z-index: 1; flex: none; height: 6px; background: var(--ez-accent); }

.ez-body { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; display: flex; flex-wrap: wrap; }

/* ---------- left menu ---------- */
.ez-menu {
    flex: 0 0 340px;
    padding: 40px 0 28px;
    background: rgba(14, 15, 18, 0.88);
    border-right: 1px solid var(--ez-line);
    display: flex; flex-direction: column; gap: 36px;
    min-height: 0;
}
.ez-brand { padding: 0 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ez-emblem { width: 92px; height: auto; }
.ez-brand-wordmark { width: 220px; height: auto; }

.ez-menu-list { display: flex; flex-direction: column; gap: 2px; }
.ez-root .ez-menu-btn {
    width: 100%; min-height: 52px;
    padding: 0 36px 0 33px;
    display: flex; align-items: center; gap: 16px;
    border-left: 3px solid transparent;
    color: var(--ez-text-2);
    transition: background .15s ease, color .15s ease;
}
.ez-root .ez-menu-btn:hover { background: rgba(251,176,59,.08); color: #fff; }
.ez-root .ez-menu-btn.is-active { border-left-color: var(--ez-accent); background: rgba(251,176,59,.12); color: #fff; }
.ez-menu-code { font-family: var(--ez-mono); font-size: 12px; letter-spacing: .04em; color: #6E6C66; }
.ez-menu-btn.is-active .ez-menu-code { color: var(--ez-accent); }
.ez-menu-label { font-size: 19px; font-weight: 600; letter-spacing: .02em; }

.ez-follow { margin-top: auto; padding: 0 36px; display: flex; flex-direction: column; gap: 12px; }
.ez-follow-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ez-root .ez-chip {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 14px;
    border: 1px solid var(--ez-line-strong);
    font-size: 14px; font-weight: 500;
}
.ez-root .ez-chip:hover { background: rgba(255,255,255,.06); }

/* ---------- content panel ---------- */
.ez-panel {
    flex: 999 1 560px; min-width: 0; min-height: 0;
    padding: 48px 56px 32px;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.ez-section { animation: ez-in .25s ease-out; }
.ez-fill { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 24px; }

@keyframes ez-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.ez-kicker { font-family: var(--ez-mono); font-size: 13px; letter-spacing: .16em; color: var(--ez-accent); }
.ez-kicker-sm { font-size: 11px; letter-spacing: .14em; }
.ez-muted { color: var(--ez-muted); }
.ez-mono { font-family: var(--ez-mono); }
.ez-header { display: flex; flex-direction: column; gap: 8px; }
.ez-header-row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ez-header-narrow { max-width: 680px; }
.ez-root .ez-h1 { margin: 0; font-family: var(--ez-display); font-size: 44px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; color: var(--ez-text); }
.ez-root .ez-h2 { margin: 0; font-family: var(--ez-display); font-size: 28px; font-weight: 700; color: var(--ez-text); }
.ez-lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ez-text-2); max-width: 760px; }
.ez-body { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ez-text-2); }

/* ---------- buttons ---------- */
.ez-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.ez-root .ez-btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 54px; padding: 0 24px;
    font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    transition: background .15s ease, filter .15s ease;
}
.ez-root .ez-btn-primary { background: var(--ez-accent); color: var(--ez-on-accent); font-weight: 700; padding: 0 28px; font-size: 16px; }
.ez-root .ez-btn-primary:hover { background: var(--ez-accent-hover); }
.ez-root .ez-btn-outline { border: 1px solid var(--ez-text); }
.ez-root .ez-btn-ghost { border: 1px solid var(--ez-line-strong); }
.ez-root .ez-btn-outline:hover, .ez-root .ez-btn-ghost:hover { background: rgba(255,255,255,.06); }

/* ---------- 01 briefing ---------- */
.ez-briefing { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 28px; max-width: 920px; }
.ez-wordmark { width: min(100%, 720px); height: auto; }
.ez-root .ez-tagline { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--ez-text); }
.ez-root .ez-report {
    margin-top: 20px; align-self: flex-start; max-width: 560px;
    display: flex; gap: 18px; align-items: stretch;
    padding: 12px; background: rgba(14,15,18,.8); border: 1px solid var(--ez-line);
    transition: border-color .15s ease;
}
.ez-root .ez-report:hover { border-color: var(--ez-accent); }
.ez-report img { width: 156px; height: 88px; object-fit: cover; flex: none; }
.ez-report-text { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.ez-report-title { font-size: 17px; font-weight: 600; color: var(--ez-text); }
.ez-report-body { font-size: 14px; color: #A3A19A; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 02 game modes ---------- */
.ez-modes {
    flex: 1 1 auto; min-height: 0;
    display: flex; flex-wrap: wrap;
    background: var(--ez-panel); border: 1px solid var(--ez-line); border-top: 3px solid var(--ez-accent);
    overflow: hidden;
}
.ez-modes-list { flex: 0 0 240px; padding: 20px 0; border-right: 1px solid var(--ez-line); display: flex; flex-direction: column; }
.ez-root .ez-mode-btn { min-height: 46px; padding: 0 24px; display: flex; align-items: center; font-family: var(--ez-mono); font-size: 15px; color: var(--ez-text); }
.ez-root .ez-mode-btn:hover { background: rgba(251,176,59,.1); }
.ez-root .ez-mode-btn.is-active { background: var(--ez-accent); color: var(--ez-on-accent); }
.ez-modes-detail { flex: 999 1 340px; min-width: 0; padding: 28px 32px; display: flex; gap: 32px; flex-wrap: wrap; align-content: flex-start; overflow: auto; }
.ez-modes-copy { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
.ez-options { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ez-options li { display: flex; align-items: center; gap: 12px; min-height: 36px; font-family: var(--ez-mono); font-size: 14px; border-bottom: 1px solid #23252A; }
.ez-pip { width: 6px; height: 6px; background: var(--ez-accent); flex: none; }
.ez-modes-img { flex: 1 1 360px; min-width: 0; max-width: 600px; aspect-ratio: 16 / 9; object-fit: contain; border: 1px solid var(--ez-line); }

/* ---------- 03 recon gallery ---------- */
.ez-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ez-root .ez-tab {
    min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center;
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    border: 1px solid var(--ez-line-strong);
}
.ez-root .ez-tab:hover { border-color: var(--ez-accent); }
.ez-root .ez-tab.is-active { background: var(--ez-accent); border-color: var(--ez-accent); color: var(--ez-on-accent); }

.ez-viewer { flex: 1 1 auto; min-height: 220px; position: relative; background: #000; border: 1px solid var(--ez-line); }
.ez-viewer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ez-viewer-bar {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(11,12,14,.82);
}
.ez-viewer-caption { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ez-viewer-title { font-size: 18px; font-weight: 600; }
.ez-viewer-controls { display: flex; align-items: center; gap: 10px; }
.ez-counter { font-family: var(--ez-mono); font-size: 22px; font-weight: 500; }
.ez-root .ez-icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--ez-line-strong); }
.ez-root .ez-icon-btn:hover { border-color: var(--ez-accent); color: var(--ez-accent); }

.ez-thumbs { flex: none; display: flex; gap: 10px; overflow-x: auto; padding: 4px; scrollbar-width: thin; scrollbar-color: #3A3C42 transparent; }
.ez-root .ez-thumb { flex: none; width: 132px; height: 74px; opacity: .6; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .15s ease; }
.ez-root .ez-thumb:hover { opacity: 1; outline-color: rgba(251,176,59,.6); }
.ez-root .ez-thumb.is-active { opacity: 1; outline-color: var(--ez-accent); }
.ez-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 04 squad ---------- */
.ez-studio-logo { width: 150px; height: auto; flex: none; }
.ez-squad { display: flex; flex-wrap: wrap; gap: 12px; }
.ez-root .ez-member {
    flex: 1 1 120px;
    padding: 16px 10px 14px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: var(--ez-panel); border: 1px solid var(--ez-line); border-top: 3px solid var(--ez-line);
    text-align: center;
    transition: border-color .15s ease, background .15s ease;
}
.ez-root .ez-member:hover { border-color: rgba(251,176,59,.5); }
.ez-root .ez-member.is-active { background: rgba(251,176,59,.10); border-color: var(--ez-accent); }
.ez-member img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.ez-bio img { width: 250px; height: 250px; border-radius: 50%; object-fit: cover; align-self:center; }
.ez-member-name { font-size: 18px; font-weight: 700; color: var(--ez-text); }
.ez-member-role {
	font-family: var(--ez-mono);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ez-accent);
}
.ez-bio {
	padding: 20px 24px;
	background: var(--ez-panel);
	border: 1px solid var(--ez-line);
	display: flex;
	flex-direction: row;
	gap: 8px;
	flex-grow: 1;
}
.ez-bio-head { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; flex-direction: column; }
.ez-bio-name { font-size: 22px; font-weight: 700; }

/* ---------- 05 enlist ---------- */
.ez-enlist { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 28px; max-width: 1040px; }
.ez-tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.ez-root .ez-tile {
    flex: 1 1 280px; min-height: 200px; padding: 28px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
    background: var(--ez-panel); border: 1px solid var(--ez-line-strong);
    transition: background .15s ease, filter .15s ease;
}
.ez-root .ez-tile:hover { background: rgba(255,255,255,.06); }
.ez-root .ez-tile-outline { border-color: var(--ez-text); }
.ez-root .ez-tile-primary { background: var(--ez-accent); border-color: var(--ez-accent); color: var(--ez-on-accent); }
.ez-root .ez-tile-primary:hover { background: var(--ez-accent-hover); }
.ez-tile-text { display: flex; flex-direction: column; gap: 6px; }
.ez-tile-title { font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ez-tile-sub { font-size: 15px; opacity: .8; }

/* ---------- footer HUD ---------- */
.ez-footer {
    position: relative; z-index: 1; flex: none;
    min-height: 44px; padding: 0 36px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: rgba(8,9,10,.92); border-top: 1px solid var(--ez-line);
    font-family: var(--ez-mono); font-size: 12px; letter-spacing: .08em; color: var(--ez-muted);
}

/* ---------- smaller laptops ---------- */
@media (max-height: 820px) {
    .ez-menu { padding-top: 28px; gap: 24px; }
    .ez-emblem { width: 72px; }
    .ez-panel { padding-top: 32px; }
    .ez-root .ez-h1 { font-size: 36px; }
    .ez-briefing { gap: 20px; }
}

/* ---------- phones / narrow: stack and allow normal scrolling ---------- */
@media (max-width: 820px) {
    body:has(.ez-root) { overflow: auto; }
    .ez-root { height: auto; min-height: 100vh; overflow: visible; }
    .ez-menu { flex: 1 1 100%; padding: 20px 0; gap: 16px; border-right: 0; border-bottom: 1px solid var(--ez-line); }
    .ez-brand { flex-direction: row; align-items: center; padding: 0 20px; }
    .ez-emblem { width: 48px; }
    .ez-brand-wordmark { width: 180px; }
    .ez-menu-list { flex-direction: row; overflow-x: auto; }
    .ez-root .ez-menu-btn { width: auto; flex: none; padding: 0 18px; border-left: 0; border-bottom: 3px solid transparent; }
    .ez-root .ez-menu-btn.is-active { border-bottom-color: var(--ez-accent); }
    .ez-follow { display: none; }
    .ez-panel { padding: 24px 20px; overflow: visible; }
    .ez-root .ez-h1 { font-size: 30px; }
    .ez-root .ez-tagline { font-size: 16px; letter-spacing: .2em; }
    .ez-modes-list { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--ez-line); }
    .ez-viewer { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
    .ez-footer { padding: 10px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .ez-section { animation: none; }
}
