/* ZENITH UI — design system v2.0
   One stylesheet for the site, the app (= Microsoft Store app) and the admin Control Centre.
   Tokens first, then base, layout shells, components, motion. No framework, no build step. */

/* ---------- 1. tokens ---------- */
:root {
  /* colour */
  --z-midnight: #070B14;
  --z-deep: #101827;
  --z-panel: #121F33;
  --z-panel-2: #172840;
  --z-blue: #278BFF;
  --z-blue-600: #1A73E0;
  --z-blue-bright: #45A3FF;
  --z-ice: #91D2FF;
  --z-chrome: #C8D2DF;
  --z-white: #F4F7FC;
  --z-muted: #929FB2;
  --z-line: #253349;
  --z-line-2: #33445E;
  --z-success: #3DDC97;
  --z-warning: #F5B544;
  --z-danger: #FF5C7A;
  --z-glass: rgba(18, 31, 51, .62);
  --z-glass-strong: rgba(13, 22, 39, .86);
  --z-blue-soft: rgba(39, 139, 255, .14);
  --z-ice-soft: rgba(145, 210, 255, .10);

  /* gradients */
  --z-grad-chrome: linear-gradient(135deg, #F5F8FC 0%, #C7D2DF 38%, #8493A7 62%, #E6EDF5 100%);
  --z-grad-edge: linear-gradient(140deg, rgba(199,210,223,.55), rgba(199,210,223,.05) 40%, rgba(39,139,255,.35));
  --z-grad-page: radial-gradient(1200px 600px at 78% -10%, rgba(39,139,255,.16), transparent 60%),
                 radial-gradient(900px 500px at -10% 30%, rgba(145,210,255,.06), transparent 60%),
                 linear-gradient(180deg, #070B14 0%, #0A1120 100%);

  /* type */
  --z-font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --z-font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --z-font-mono: "JetBrains Mono", Consolas, monospace;
  --z-t-xs: 12px; --z-t-sm: 14px; --z-t-md: 16px; --z-t-lg: 20px;
  --z-t-xl: 28px; --z-t-2xl: 40px; --z-t-3xl: clamp(40px, 6vw, 72px);

  /* space (4px base) */
  --z-1: 4px; --z-2: 8px; --z-3: 12px; --z-4: 16px; --z-5: 24px; --z-6: 32px; --z-7: 48px; --z-8: 72px;

  /* shape + depth */
  --z-r-sm: 8px; --z-r-md: 12px; --z-r-lg: 18px; --z-r-pill: 999px;
  --z-shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.28);
  --z-shadow-2: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px rgba(0,0,0,.45);
  --z-glow: 0 0 0 1px rgba(39,139,255,.35), 0 8px 30px rgba(39,139,255,.28);

  /* motion */
  --z-ease: cubic-bezier(.2, .8, .2, 1);
  --z-fast: 160ms; --z-mid: 240ms; --z-slow: 400ms;

  /* layout */
  --z-max: 1200px;
  --z-rail: 248px;
  --z-top: 64px;
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--z-grad-page) fixed, var(--z-midnight);
  color: var(--z-white); font: 400 var(--z-t-md)/1.6 var(--z-font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--z-font-head); font-weight: 650; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 var(--z-3); }
h1 { font-size: var(--z-t-3xl); letter-spacing: -.035em; }
h2 { font-size: var(--z-t-2xl); }
h3 { font-size: var(--z-t-lg); letter-spacing: -.01em; }
p { margin: 0 0 var(--z-4); color: var(--z-chrome); }
a { color: var(--z-ice); text-decoration: none; }
a:hover { color: var(--z-white); }
img { max-width: 100%; display: block; }
code, kbd, .z-mono { font-family: var(--z-font-mono); font-size: .92em; }
::selection { background: rgba(39,139,255,.4); color: #fff; }
:focus-visible { outline: 2px solid var(--z-blue); outline-offset: 3px; border-radius: 6px; }
.z-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--z-blue); color: #fff; padding: 8px 14px; border-radius: 8px; }
.z-skip:focus { left: 8px; }
.z-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.z-eyebrow { font: 600 var(--z-t-xs)/1 var(--z-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--z-ice); }
.z-muted { color: var(--z-muted); }
.z-chrome-text { background: var(--z-grad-chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.z-container { width: min(100% - 32px, var(--z-max)); margin-inline: auto; }
.z-stack > * + * { margin-top: var(--z-4); }
.z-row { display: flex; align-items: center; gap: var(--z-3); flex-wrap: wrap; }
.z-between { justify-content: space-between; }
.z-grid { display: grid; gap: var(--z-5); }
.z-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.z-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.z-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .z-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .z-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .z-grid-2, .z-grid-3, .z-grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 3. surfaces ---------- */
.z-glass {
  background: var(--z-glass); border: 1px solid var(--z-line); border-radius: var(--z-r-md);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--z-shadow-1);
}
.z-edge { position: relative; }
.z-edge::before { /* chrome hairline border, hero cards only */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--z-grad-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.z-card { padding: var(--z-5); }
.z-card h3 { margin-bottom: var(--z-2); }
.z-divider { height: 1px; background: var(--z-line); border: 0; margin: var(--z-5) 0; }

/* ---------- 4. buttons ---------- */
.z-btn {
  --bg: var(--z-panel); --fg: var(--z-white); --bd: var(--z-line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--z-2);
  min-height: 44px; padding: 0 var(--z-5); border-radius: var(--z-r-sm);
  border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 600 var(--z-t-sm)/1 var(--z-font-body); letter-spacing: .01em; cursor: pointer;
  transition: transform var(--z-fast) var(--z-ease), background var(--z-fast) var(--z-ease), box-shadow var(--z-mid) var(--z-ease), border-color var(--z-fast);
  -webkit-tap-highlight-color: transparent; text-decoration: none; white-space: nowrap;
}
.z-btn:hover { --bd: rgba(199,210,223,.32); color: var(--fg); }
.z-btn:active { transform: translateY(1px) scale(.985); }
.z-btn[disabled], .z-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.z-btn-primary { --bg: linear-gradient(180deg, #3A97FF, var(--z-blue) 60%, var(--z-blue-600)); --bd: rgba(145,210,255,.45); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 20px rgba(39,139,255,.30); }
.z-btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, var(--z-glow); }
.z-btn-ghost { --bg: transparent; --bd: transparent; color: var(--z-chrome); }
.z-btn-ghost:hover { --bg: rgba(199,210,223,.06); color: var(--z-white); }
.z-btn-danger { --bg: rgba(255,92,122,.12); --bd: rgba(255,92,122,.4); --fg: #FFC2CE; }
.z-btn-sm { min-height: 34px; padding: 0 var(--z-3); font-size: var(--z-t-xs); }
.z-btn-lg { min-height: 52px; padding: 0 var(--z-6); font-size: var(--z-t-md); }
.z-btn-icon { width: 40px; min-height: 40px; padding: 0; }
.z-btn-block { width: 100%; }
.z-btn .z-spin { width: 16px; height: 16px; }

/* ---------- 5. icons ---------- */
.z-i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.z-i-sm { width: 16px; height: 16px; }

/* ---------- 6. badges + status ---------- */
.z-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--z-r-pill); font: 600 11px/1 var(--z-font-mono); letter-spacing: .06em; text-transform: uppercase; background: rgba(199,210,223,.08); color: var(--z-chrome); border: 1px solid var(--z-line); }
.z-badge-blue { background: var(--z-blue-soft); color: var(--z-ice); border-color: rgba(39,139,255,.35); }
.z-badge-ok { background: rgba(61,220,151,.12); color: #8FF0C4; border-color: rgba(61,220,151,.35); }
.z-badge-warn { background: rgba(245,181,68,.12); color: #FFD58A; border-color: rgba(245,181,68,.35); }
.z-badge-bad { background: rgba(255,92,122,.12); color: #FFB3C1; border-color: rgba(255,92,122,.35); }
.z-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--z-muted); flex: none; }
.z-dot-ok { background: var(--z-success); box-shadow: 0 0 0 3px rgba(61,220,151,.18); }
.z-dot-warn { background: var(--z-warning); }
.z-dot-bad { background: var(--z-danger); }
.z-dot-live { background: var(--z-blue); box-shadow: 0 0 0 0 rgba(39,139,255,.6); animation: z-pulse 2.4s var(--z-ease) infinite; }

/* ---------- 7. forms ---------- */
.z-field { display: grid; gap: 6px; }
.z-label { font-size: var(--z-t-sm); font-weight: 600; color: var(--z-chrome); }
.z-hint { font-size: var(--z-t-xs); color: var(--z-muted); }
.z-input, .z-select, .z-textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--z-r-sm);
  background: rgba(7,11,20,.55); border: 1px solid var(--z-line-2); color: var(--z-white);
  font: 400 var(--z-t-md)/1.4 var(--z-font-body); transition: border-color var(--z-fast), box-shadow var(--z-fast);
}
.z-textarea { min-height: 120px; resize: vertical; }
.z-input::placeholder, .z-textarea::placeholder { color: #5E6C80; }
.z-input:focus, .z-select:focus, .z-textarea:focus { outline: none; border-color: var(--z-blue); box-shadow: 0 0 0 4px rgba(39,139,255,.18); }
.z-field.is-error .z-input { border-color: var(--z-danger); box-shadow: 0 0 0 4px rgba(255,92,122,.14); }
.z-field.is-error .z-hint { color: #FFB3C1; }
.z-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23C7D2DF' stroke-width='2'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.z-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--z-t-sm); color: var(--z-chrome); cursor: pointer; }
.z-check input { width: 18px; height: 18px; accent-color: var(--z-blue); margin-top: 2px; }
.z-switch { position: relative; width: 44px; height: 26px; flex: none; }
.z-switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.z-switch span { position: absolute; inset: 0; border-radius: 999px; background: #22324A; transition: background var(--z-mid) var(--z-ease); }
.z-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--z-chrome); transition: transform var(--z-mid) var(--z-ease); }
.z-switch input:checked + span { background: var(--z-blue); }
.z-switch input:checked + span::after { transform: translateX(18px); background: #fff; }
.z-switch input:focus-visible + span { outline: 2px solid var(--z-ice); outline-offset: 2px; }
.z-key { display: flex; align-items: center; gap: var(--z-2); padding: 10px 12px; border-radius: var(--z-r-sm); background: rgba(7,11,20,.6); border: 1px dashed rgba(145,210,255,.35); font: 500 var(--z-t-sm)/1 var(--z-font-mono); letter-spacing: .08em; color: var(--z-ice); }
.z-key span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 8. tabs, segmented, dropdown ---------- */
.z-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--z-r-sm); background: rgba(7,11,20,.5); border: 1px solid var(--z-line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.z-tabs button { position: relative; border: 0; background: transparent; color: var(--z-muted); padding: 8px 14px; border-radius: 8px; font: 600 var(--z-t-sm)/1 var(--z-font-body); cursor: pointer; white-space: nowrap; transition: color var(--z-fast), background var(--z-fast); }
.z-tabs button[aria-selected="true"] { background: var(--z-panel-2); color: var(--z-white); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.z-menu { position: relative; display: inline-block; }
.z-menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; z-index: 40; border-radius: var(--z-r-sm); background: var(--z-glass-strong); border: 1px solid var(--z-line-2); box-shadow: var(--z-shadow-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity var(--z-fast) var(--z-ease), transform var(--z-fast) var(--z-ease); }
.z-menu.is-open .z-menu-list { opacity: 1; transform: none; pointer-events: auto; }
.z-menu-list a, .z-menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none; color: var(--z-chrome); font: 500 var(--z-t-sm)/1.2 var(--z-font-body); text-align: left; cursor: pointer; }
.z-menu-list a:hover, .z-menu-list button:hover, .z-menu-list [data-active] { background: rgba(199,210,223,.07); color: var(--z-white); }
.z-menu-list hr { border: 0; height: 1px; background: var(--z-line); margin: 6px 4px; }

/* ---------- 9. tables ---------- */
.z-table-wrap { overflow-x: auto; border-radius: var(--z-r-md); border: 1px solid var(--z-line); background: rgba(13,22,39,.55); }
.z-table { width: 100%; border-collapse: collapse; font-size: var(--z-t-sm); }
.z-table th { position: sticky; top: 0; text-align: left; font: 600 11px/1 var(--z-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--z-muted); padding: 14px 16px; background: rgba(13,22,39,.96); border-bottom: 1px solid var(--z-line); white-space: nowrap; }
.z-table td { padding: 14px 16px; border-bottom: 1px solid var(--z-line); color: var(--z-chrome); vertical-align: middle; }
.z-table tr:last-child td { border-bottom: 0; }
.z-table tbody tr { transition: background var(--z-fast); }
.z-table tbody tr:hover { background: rgba(39,139,255,.05); }
.z-table .z-strong { color: var(--z-white); font-weight: 600; }
@media (max-width: 640px) { /* tables become cards on phones */
  .z-table-cards thead { display: none; }
  .z-table-cards tr { display: grid; gap: 4px; padding: 14px 16px; border-bottom: 1px solid var(--z-line); }
  .z-table-cards td { padding: 0; border: 0; display: flex; justify-content: space-between; gap: 12px; }
  .z-table-cards td::before { content: attr(data-l); color: var(--z-muted); font: 600 11px/1.6 var(--z-font-mono); text-transform: uppercase; letter-spacing: .06em; }
}

/* ---------- 10. product tile ---------- */
.z-tile { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--z-r-md); color: inherit; transition: transform var(--z-mid) var(--z-ease), box-shadow var(--z-mid) var(--z-ease), border-color var(--z-mid); }
.z-tile:hover { transform: translateY(-3px); box-shadow: var(--z-shadow-2), 0 0 0 1px rgba(39,139,255,.3); color: inherit; }
.z-tile-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--z-deep); }
.z-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--z-slow) var(--z-ease); }
.z-tile:hover .z-tile-media img { transform: scale(1.04); }
.z-tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,11,20,.85)); }
.z-tile-tags { position: absolute; left: 12px; top: 12px; z-index: 1; display: flex; gap: 6px; }
.z-tile-tags .z-badge { background: rgba(7,11,20,.88); color: var(--z-white); border-color: rgba(199,210,223,.22); box-shadow: 0 2px 10px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.z-tile-tags .z-badge-blue { background: rgba(14,52,104,.92); color: var(--z-ice); border-color: rgba(69,163,255,.45); }
/* shop-by-game cards: product art behind a dark scrim */
.z-cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: var(--z-5); overflow: hidden; border-radius: var(--z-r-md); color: inherit; isolation: isolate; border: 1px solid var(--z-line); transition: transform var(--z-mid) var(--z-ease), box-shadow var(--z-mid) var(--z-ease), border-color var(--z-mid); }
.z-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--z-slow) var(--z-ease); }
.z-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,11,20,.15) 0%, rgba(7,11,20,.6) 45%, rgba(7,11,20,.95) 100%); }
.z-cat:hover { transform: translateY(-3px); border-color: rgba(69,163,255,.45); box-shadow: var(--z-shadow-2); color: inherit; }
.z-cat:hover img { transform: scale(1.05); }
.z-cat h3 { margin: 0 0 4px; color: var(--z-white); text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.z-cat .z-cat-n { font-size: 13px; color: var(--z-chrome); }
/* product feature grid */
.z-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--z-3); margin-top: var(--z-4); }
.z-feat { padding: var(--z-4); border-radius: var(--z-r-sm); background: rgba(18,31,51,.6); border: 1px solid var(--z-line); }
.z-feat b { display: flex; align-items: center; gap: 8px; color: var(--z-white); font-family: var(--z-font-head); }
.z-feat b svg { color: var(--z-ice); flex: none; }
.z-feat p { margin: 6px 0 0; font-size: 14px; }
@media (max-width: 640px) { .z-feats { grid-template-columns: minmax(0, 1fr); } }
.z-tile-body { padding: var(--z-4) var(--z-4) var(--z-5); display: grid; gap: 6px; }
.z-tile-name { font: 650 var(--z-t-lg)/1.1 var(--z-font-head); letter-spacing: .02em; color: var(--z-white); }
.z-price { font: 600 var(--z-t-lg)/1 var(--z-font-head); color: var(--z-white); }
.z-price s { color: var(--z-muted); font-size: .7em; margin-left: 6px; }

/* ---------- 11. stat card + chart ---------- */
.z-stat { padding: var(--z-5); display: grid; gap: 6px; }
.z-stat-label { font-size: var(--z-t-xs); color: var(--z-muted); text-transform: uppercase; letter-spacing: .1em; font-family: var(--z-font-mono); }
.z-stat-value { font: 650 32px/1 var(--z-font-head); letter-spacing: -.02em; }
.z-delta { font: 600 var(--z-t-xs)/1 var(--z-font-mono); color: var(--z-success); }
.z-delta.is-down { color: var(--z-danger); }
.z-spark { width: 100%; height: 44px; }
.z-chart { width: 100%; height: 240px; }
.z-bar { height: 8px; border-radius: 999px; background: rgba(199,210,223,.08); overflow: hidden; }
.z-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--z-blue), var(--z-ice)); }

/* ---------- 12. feedback: toast, alert, empty, error, skeleton, spinner ---------- */
.z-toasts { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.z-toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--z-r-sm); background: var(--z-glass-strong); border: 1px solid var(--z-line-2); box-shadow: var(--z-shadow-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: z-toast-in var(--z-mid) var(--z-ease) both; }
.z-toast.is-leaving { animation: z-toast-out var(--z-fast) var(--z-ease) both; }
.z-toast b { display: block; color: var(--z-white); font-size: var(--z-t-sm); }
.z-toast span { color: var(--z-muted); font-size: var(--z-t-sm); }
.z-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--z-r-sm); border: 1px solid; font-size: var(--z-t-sm); }
.z-alert-info { background: var(--z-blue-soft); border-color: rgba(39,139,255,.35); color: var(--z-ice); }
.z-alert-warn { background: rgba(245,181,68,.10); border-color: rgba(245,181,68,.35); color: #FFD58A; }
.z-alert-bad { background: rgba(255,92,122,.10); border-color: rgba(255,92,122,.35); color: #FFB3C1; }
.z-empty { display: grid; justify-items: center; text-align: center; gap: var(--z-3); padding: var(--z-7) var(--z-5); }
.z-empty-art { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--z-ice-soft); border: 1px solid rgba(145,210,255,.2); color: var(--z-ice); }
.z-empty-art .z-i { width: 32px; height: 32px; }
.z-skel { position: relative; overflow: hidden; border-radius: 8px; background: rgba(199,210,223,.07); }
.z-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(199,210,223,.10), transparent); animation: z-shimmer 1.4s linear infinite; }
.z-spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(199,210,223,.2); border-top-color: var(--z-ice); animation: z-rot .8s linear infinite; }
.z-progress { height: 4px; border-radius: 999px; background: rgba(199,210,223,.1); overflow: hidden; }
.z-progress > i { display: block; height: 100%; width: var(--p, 40%); background: linear-gradient(90deg, var(--z-blue), var(--z-ice)); transition: width var(--z-mid) var(--z-ease); }

/* ---------- 13. modal + sheet ---------- */
.z-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.z-modal.is-open { visibility: visible; }
.z-modal-scrim { position: absolute; inset: 0; background: rgba(3,6,12,.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--z-mid) var(--z-ease); }
.z-modal.is-open .z-modal-scrim { opacity: 1; }
.z-modal-box { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: var(--z-6); border-radius: var(--z-r-lg); background: linear-gradient(180deg, #13223A, #0E192C); border: 1px solid var(--z-line-2); box-shadow: var(--z-shadow-2);
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity var(--z-mid) var(--z-ease), transform var(--z-mid) var(--z-ease); }
.z-modal.is-open .z-modal-box { opacity: 1; transform: none; }
.z-modal-actions { display: flex; justify-content: flex-end; gap: var(--z-3); margin-top: var(--z-5); }
@media (max-width: 640px) { /* modals become bottom sheets */
  .z-modal { place-items: end stretch; padding: 0; }
  .z-modal-box { width: 100%; border-radius: var(--z-r-lg) var(--z-r-lg) 0 0; padding: var(--z-5) var(--z-5) calc(var(--z-5) + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .z-modal-box::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: rgba(199,210,223,.25); margin: -8px auto 16px; }
  .z-modal-actions { flex-direction: column-reverse; } .z-modal-actions .z-btn { width: 100%; }
}

/* ---------- 14. SITE shell: top nav + footer ---------- */
.z-nav { position: sticky; top: 0; z-index: 50; height: var(--z-top); border-bottom: 1px solid transparent; transition: background var(--z-mid), border-color var(--z-mid); }
.z-nav.is-scrolled { background: rgba(7,11,20,.78); border-color: var(--z-line); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.z-nav-in { height: 100%; display: flex; align-items: center; gap: var(--z-5); }
.z-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--z-white); font: 700 18px/1 var(--z-font-head); letter-spacing: .28em; }
.z-logo img { width: 32px; height: 32px; border-radius: 8px; }
.z-nav-links { display: flex; gap: 4px; margin-left: var(--z-4); }
.z-nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--z-chrome); font-size: var(--z-t-sm); font-weight: 500; position: relative; }
.z-nav-links a:hover, .z-nav-links a[aria-current] { color: var(--z-white); }
.z-nav-links a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--z-blue); }
.z-nav-end { margin-left: auto; display: flex; gap: var(--z-2); align-items: center; }
.z-nav-burger { display: none; }
@media (max-width: 860px) { .z-nav-links, .z-nav-end .z-hide-m { display: none; } .z-nav-burger { display: inline-flex; } }
.z-drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.z-drawer.is-open { visibility: visible; }
.z-drawer .z-modal-scrim { opacity: 0; }
.z-drawer.is-open .z-modal-scrim { opacity: 1; }
.z-drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 86vw); padding: var(--z-5); background: var(--z-deep); border-left: 1px solid var(--z-line); transform: translateX(100%); transition: transform var(--z-mid) var(--z-ease); display: flex; flex-direction: column; gap: 4px; }
.z-drawer.is-open .z-drawer-panel { transform: none; }
.z-drawer-panel a { padding: 14px 12px; border-radius: 10px; color: var(--z-white); font: 600 var(--z-t-lg)/1 var(--z-font-head); }
.z-drawer-panel a:hover { background: rgba(199,210,223,.06); }
.z-footer { margin-top: var(--z-8); border-top: 1px solid var(--z-line); padding: var(--z-7) 0 calc(var(--z-6) + env(safe-area-inset-bottom)); color: var(--z-muted); font-size: var(--z-t-sm); }
.z-footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--z-6); }
.z-footer h4 { font: 600 var(--z-t-xs)/1 var(--z-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--z-chrome); margin-bottom: var(--z-4); }
.z-footer a { display: block; color: var(--z-muted); padding: 4px 0; }
.z-footer a:hover { color: var(--z-white); }
@media (max-width: 768px) { .z-footer-grid { grid-template-columns: 1fr 1fr; } .z-footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 15. APP + ADMIN shell: rail, topbar, bottom tabs ---------- */
.z-shell { display: grid; grid-template-columns: var(--z-rail) 1fr; min-height: 100dvh; }
.z-rail { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: var(--z-5) var(--z-4); background: linear-gradient(180deg, rgba(13,22,39,.92), rgba(7,11,20,.92)); border-right: 1px solid var(--z-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.z-rail .z-logo { padding: 4px 8px var(--z-5); }
.z-rail-group { margin-top: var(--z-4); padding: 0 10px 6px; font: 600 10px/1 var(--z-font-mono); letter-spacing: .16em; text-transform: uppercase; color: #5E6C80; }
.z-rail a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--z-chrome); font: 500 var(--z-t-sm)/1 var(--z-font-body); transition: background var(--z-fast), color var(--z-fast); }
.z-rail a:hover { background: rgba(199,210,223,.05); color: var(--z-white); }
.z-rail a[aria-current] { background: linear-gradient(90deg, rgba(39,139,255,.18), rgba(39,139,255,.04)); color: var(--z-white); }
.z-rail a[aria-current]::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--z-blue); box-shadow: 0 0 12px var(--z-blue); }
.z-rail a .z-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--z-blue); color: #fff; font: 700 11px/20px var(--z-font-mono); text-align: center; }
.z-rail-foot { margin-top: auto; padding-top: var(--z-4); border-top: 1px solid var(--z-line); }
.z-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.z-avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 14px/1 var(--z-font-head); color: var(--z-midnight); background: var(--z-grad-chrome); }
.z-user small { display: block; color: var(--z-muted); font-size: 12px; }
.z-main { min-width: 0; }
.z-topbar { position: sticky; top: 0; z-index: 30; height: var(--z-top); display: flex; align-items: center; gap: var(--z-3); padding: 0 var(--z-6); background: rgba(7,11,20,.72); border-bottom: 1px solid var(--z-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.z-topbar h1 { font-size: var(--z-t-lg); margin: 0; letter-spacing: -.01em; }
.z-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; min-width: 260px; border-radius: 10px; background: rgba(7,11,20,.6); border: 1px solid var(--z-line); color: var(--z-muted); font-size: var(--z-t-sm); cursor: text; }
.z-search kbd { margin-left: auto; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--z-line-2); font-size: 11px; color: var(--z-muted); }
.z-page { padding: var(--z-6); display: grid; gap: var(--z-5); max-width: 1320px; }
.z-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--z-4); flex-wrap: wrap; }
.z-page-head h2 { font-size: var(--z-t-xl); margin: 0; }
.z-bell { position: relative; }
.z-bell::after { content: ""; position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--z-blue); box-shadow: 0 0 0 2px var(--z-midnight); }
.z-tabbar { display: none; }
@media (max-width: 1024px) { :root { --z-rail: 76px; } .z-rail .z-logo span, .z-rail a span, .z-rail-group, .z-user > div, .z-rail a .z-count { display: none; } .z-rail a { justify-content: center; } .z-rail .z-logo { justify-content: center; } }
@media (max-width: 768px) { /* phones: no rail, bottom tab bar */
  .z-shell { grid-template-columns: minmax(0, 1fr); }
  .z-rail { display: none; }
  .z-topbar { padding: 0 var(--z-4); }
  .z-search { display: none; }
  .z-page { padding: var(--z-4) var(--z-4) calc(96px + env(safe-area-inset-bottom)); }
  .z-tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(10,17,32,.92); border-top: 1px solid var(--z-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .z-tabbar a { display: grid; justify-items: center; gap: 4px; padding: 6px 0; border-radius: 10px; color: var(--z-muted); font: 600 10px/1 var(--z-font-body); }
  .z-tabbar a[aria-current] { color: var(--z-white); }
  .z-tabbar a[aria-current] .z-i { color: var(--z-blue); filter: drop-shadow(0 0 6px rgba(39,139,255,.6)); }
}
/* Windows Store app: title-bar area when running as an installed app with window-controls-overlay */
@media (display-mode: window-controls-overlay) {
  .z-topbar { left: env(titlebar-area-x, 0); width: env(titlebar-area-width, 100%); height: env(titlebar-area-height, var(--z-top)); -webkit-app-region: drag; app-region: drag; }
  .z-topbar a, .z-topbar button, .z-topbar .z-search { -webkit-app-region: no-drag; app-region: no-drag; }
}
@media (display-mode: standalone), (display-mode: window-controls-overlay) { .z-site-only { display: none !important; } }

/* ---------- 16. hero + marketing blocks ---------- */
.z-hero { position: relative; padding: var(--z-8) 0 var(--z-7); overflow: hidden; }
.z-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--z-7); align-items: center; }
.z-hero h1 { margin: var(--z-4) 0; }
.z-hero p.lead { font-size: var(--z-t-lg); max-width: 34ch; }
.z-hero-art { position: relative; aspect-ratio: 5/4; border-radius: var(--z-r-lg); overflow: hidden; }
.z-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.z-hero-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 70% 20%, transparent, rgba(7,11,20,.55)); }
.z-hero-float { position: absolute; z-index: 2; padding: 14px 16px; min-width: 200px; }
.z-light { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(39,139,255,.22), transparent 65%); filter: blur(20px); pointer-events: none; z-index: -1; }
.z-marquee { display: flex; gap: var(--z-7); overflow: hidden; padding: var(--z-5) 0; border-block: 1px solid var(--z-line); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.z-marquee div { display: flex; gap: var(--z-7); flex: none; animation: z-marq 38s linear infinite; }
.z-marquee span { font: 600 var(--z-t-sm)/1 var(--z-font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--z-muted); white-space: nowrap; }
.z-section { padding: var(--z-8) 0 0; }
.z-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--z-4); margin-bottom: var(--z-6); flex-wrap: wrap; }
.z-section-head h2 { margin: var(--z-2) 0 0; }
.z-feature { padding: var(--z-6); }
.z-feature .z-empty-art { width: 48px; height: 48px; border-radius: 14px; margin-bottom: var(--z-4); }
.z-feature .z-empty-art .z-i { width: 22px; height: 22px; }
@media (max-width: 900px) { .z-hero-grid { grid-template-columns: minmax(0, 1fr); } .z-hero { padding-top: var(--z-6); } .z-hero-art { aspect-ratio: 16/10; } .z-hero-float { display: none; } }

/* ---------- 17. product page ---------- */
.z-pdp { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--z-7); align-items: start; }
.z-buybox { position: sticky; top: calc(var(--z-top) + 16px); padding: var(--z-6); }
.z-gallery { display: grid; gap: var(--z-3); }
.z-gallery-main { aspect-ratio: 16/10; border-radius: var(--z-r-lg); overflow: hidden; }
.z-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.z-list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.z-list-check li { display: flex; gap: 10px; color: var(--z-chrome); font-size: var(--z-t-sm); }
.z-list-check .z-i { color: var(--z-ice); }
.z-buybar { display: none; }
@media (max-width: 900px) {
  .z-pdp { grid-template-columns: minmax(0, 1fr); }
  .z-buybox { position: static; }
  .z-buybar { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(10,17,32,.94); border-top: 1px solid var(--z-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .z-buybar .z-btn { flex: 1; }
}

/* ---------- 18. auth ---------- */
.z-auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.z-auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--z-7); }
.z-auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.z-auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,20,.2), rgba(7,11,20,.95)); }
.z-auth-art > * { position: relative; z-index: 1; }
.z-auth-form { display: grid; place-items: center; padding: var(--z-6) var(--z-4); }
.z-auth-card { width: min(420px, 100%); padding: var(--z-6); }
.z-btn-discord { --bg: #5865F2; --bd: rgba(255,255,255,.18); --fg: #fff; }
.z-btn-discord:hover { --bg: #4f5be0; }
.z-or { display: flex; align-items: center; gap: 12px; color: var(--z-muted); font-size: var(--z-t-xs); text-transform: uppercase; letter-spacing: .14em; margin: var(--z-4) 0; }
.z-or::before, .z-or::after { content: ""; flex: 1; height: 1px; background: var(--z-line); }
@media (max-width: 900px) { .z-auth { grid-template-columns: minmax(0, 1fr); } .z-auth-art { display: none; } }

/* ---------- 19. lists used in app/admin ---------- */
.z-list { display: grid; }
.z-list-item { display: flex; align-items: center; gap: var(--z-4); padding: var(--z-4); border-bottom: 1px solid var(--z-line); }
.z-list-item:last-child { border-bottom: 0; }
.z-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; background: var(--z-deep); }
.z-thumb img { width: 100%; height: 100%; object-fit: cover; }
.z-list-item .z-grow { flex: 1; min-width: 0; }
.z-list-item .z-grow b { display: block; color: var(--z-white); font-weight: 600; }
.z-list-item .z-grow small { color: var(--z-muted); font-size: var(--z-t-xs); }
.z-timeline { position: relative; display: grid; gap: var(--z-5); padding-left: 24px; }
.z-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--z-blue), rgba(39,139,255,0)); }
.z-timeline > div { position: relative; }
.z-timeline > div::before { content: ""; position: absolute; left: -22px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--z-midnight); border: 2px solid var(--z-blue); }
.z-thread { display: grid; gap: var(--z-4); }
.z-msg { max-width: 78%; padding: 12px 14px; border-radius: 14px; background: var(--z-panel); border: 1px solid var(--z-line); font-size: var(--z-t-sm); color: var(--z-chrome); }
.z-msg.is-me { margin-left: auto; background: var(--z-blue-soft); border-color: rgba(39,139,255,.3); color: var(--z-white); }
.z-msg.is-note { background: rgba(245,181,68,.08); border-style: dashed; border-color: rgba(245,181,68,.35); }
.z-msg small { display: block; margin-top: 6px; color: var(--z-muted); font-size: 11px; }
.z-notif { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--z-line); }
.z-notif.is-unread { background: linear-gradient(90deg, rgba(39,139,255,.08), transparent); }
.z-notif.is-unread .z-grow b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--z-blue); margin-left: 8px; vertical-align: middle; }

/* ---------- 20. command palette (admin) ---------- */
.z-cmd .z-modal-box { width: min(620px, 100%); padding: 0; place-self: start center; margin-top: 12vh; }
.z-cmd-input { width: 100%; border: 0; border-bottom: 1px solid var(--z-line); background: transparent; color: var(--z-white); padding: 18px 20px; font: 400 var(--z-t-lg)/1.2 var(--z-font-body); outline: none; }
.z-cmd .z-menu-list { position: static; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; border: 0; background: none; max-height: 340px; overflow: auto; }

/* ---------- 21. splash (kept from Zenith 1) ---------- */
.z-splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--z-midnight); animation: z-splash-out 500ms var(--z-ease) 1.6s forwards; }
.z-splash b { font: 700 clamp(28px, 6vw, 56px)/1 var(--z-font-head); letter-spacing: .6em; padding-left: .6em; animation: z-splash-in 1.2s var(--z-ease) both; }

/* ---------- 22. motion ---------- */
@keyframes z-rot { to { transform: rotate(360deg); } }
@keyframes z-shimmer { to { transform: translateX(100%); } }
@keyframes z-pulse { 0% { box-shadow: 0 0 0 0 rgba(39,139,255,.55); } 70% { box-shadow: 0 0 0 8px rgba(39,139,255,0); } 100% { box-shadow: 0 0 0 0 rgba(39,139,255,0); } }
@keyframes z-toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes z-toast-out { to { opacity: 0; transform: translateX(16px); } }
@keyframes z-marq { to { transform: translateX(calc(-100% - var(--z-7))); } }
@keyframes z-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes z-splash-in { from { opacity: 0; letter-spacing: 1.2em; filter: blur(8px); } }
@keyframes z-splash-out { to { opacity: 0; visibility: hidden; } }
.z-enter { animation: z-rise var(--z-slow) var(--z-ease) both; }
.z-enter-2 { animation-delay: 60ms; } .z-enter-3 { animation-delay: 120ms; } .z-enter-4 { animation-delay: 180ms; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--z-mid); animation-timing-function: var(--z-ease); }
/* Reduced motion: keep it calm, not dead. Fades and the slow marquee stay; anything that moves things around goes. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .z-enter, .z-in { animation-name: z-fade !important; }
  .z-marquee div { animation-duration: 90s !important; }
  .z-hero2-bg img { animation: none !important; }
  .z-splash b, .z-splash img { animation-name: z-fade !important; }
  @view-transition { navigation: none; }
}
}

/* ---------- 23. documentation + device previews (design-system page) ---------- */
.z-doc { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--z-7); align-items: start; }
.z-doc-nav { position: sticky; top: calc(var(--z-top) + 24px); display: grid; gap: 2px; max-height: calc(100dvh - 120px); overflow: auto; }
.z-doc-nav a { padding: 7px 12px; border-radius: 6px; color: var(--z-muted); font-size: var(--z-t-sm); border-left: 2px solid transparent; }
.z-doc-nav a:hover { color: var(--z-white); background: rgba(200,210,223,.04); }
.z-doc-nav a.is-active { color: var(--z-white); border-left-color: var(--z-blue); background: rgba(39,139,255,.08); }
.z-doc section { scroll-margin-top: calc(var(--z-top) + 16px); padding-bottom: var(--z-7); border-bottom: 1px solid var(--z-line); margin-bottom: var(--z-7); }
.z-doc section > h2 { font-size: var(--z-t-xl); margin-bottom: 6px; }
.z-doc section > p.z-lede { max-width: 70ch; margin-bottom: var(--z-5); }
.z-spec { width: 100%; border-collapse: collapse; font-size: var(--z-t-sm); margin-top: var(--z-4); }
.z-spec td, .z-spec th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--z-line); color: var(--z-chrome); vertical-align: top; }
.z-spec th { color: var(--z-muted); font: 600 11px/1 var(--z-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.z-spec code { color: var(--z-ice); }
.z-demo { padding: var(--z-5); border: 1px solid var(--z-line); border-radius: var(--z-r-md); background: rgba(16,24,39,.55); }
.z-demo + .z-demo { margin-top: var(--z-4); }
.z-demo-label { display: block; margin-bottom: var(--z-3); font: 600 11px/1 var(--z-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--z-muted); }
.z-devices { display: flex; gap: var(--z-6); flex-wrap: wrap; align-items: flex-start; }
.z-phone { position: relative; width: 300px; height: 600px; flex: none; border-radius: 36px; padding: 10px; background: linear-gradient(160deg, #2A3445, #0B111C); box-shadow: var(--z-shadow-2); }
.z-phone-screen { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: var(--z-grad-page), var(--z-midnight); }
.z-phone .z-tabbar { display: grid; position: absolute; left: 0; right: 0; bottom: 0; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 6px 10px; background: rgba(10,17,32,.94); border-top: 1px solid var(--z-line); }
.z-phone .z-tabbar a { display: grid; justify-items: center; gap: 4px; padding: 6px 0; color: var(--z-muted); font: 600 10px/1 var(--z-font-body); }
.z-phone .z-tabbar a[aria-current] { color: var(--z-white); }
.z-phone .z-tabbar a[aria-current] .z-i { color: var(--z-blue); }
.z-phone-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; }
.z-phone-body { padding: 0 14px 80px; display: grid; gap: 10px; }
.z-desk { flex: 1; min-width: 520px; border-radius: var(--z-r-md); overflow: hidden; border: 1px solid var(--z-line); background: var(--z-midnight); }
.z-desk .z-shell { min-height: 0; height: 420px; grid-template-columns: 200px 1fr; }
.z-desk .z-rail { position: static; height: 100%; }
.z-desk .z-topbar { position: static; }
@media (max-width: 1024px) { .z-doc { grid-template-columns: minmax(0, 1fr); } .z-doc-nav { position: static; display: flex; overflow-x: auto; max-height: none; padding-bottom: 6px; } .z-doc-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; } .z-doc-nav a.is-active { border-bottom-color: var(--z-blue); } .z-desk { min-width: 0; } }
@media (max-width: 640px) { .z-desk .z-shell { grid-template-columns: minmax(0, 1fr); } .z-desk .z-rail { display: none; } .z-phone { width: 100%; max-width: 300px; } .z-auth-demo { grid-template-columns: minmax(0, 1fr) !important; } .z-auth-demo .z-auth-art { display: none; } }

.z-grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .z-grid-2-1 { grid-template-columns: minmax(0, 1fr); } }
.z-lede code, .z-spec code { overflow-wrap: anywhere; }
@media (max-width: 860px) { .z-hide-m { display: none !important; } }
@media (max-width: 640px) { .z-spec { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .z-spec td, .z-spec th { min-width: 120px; } }
@media (max-width: 900px) { .z-auth { grid-template-columns: minmax(0, 1fr); } }
.z-list-check li > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .z-auth-form { padding: 16px 8px; } .z-auth-card { padding: 20px; } .z-doc section > h2 { font-size: 24px; } }
/* long-form text (privacy, terms) */
.z-prose h1 { font-size: var(--z-t-2xl); } .z-prose h2 { font-size: var(--z-t-lg); margin-top: var(--z-6); } .z-prose p, .z-prose li { color: var(--z-chrome); } .z-prose a { text-decoration: underline; text-underline-offset: 3px; } .z-prose ul { padding-left: 20px; }
.z-list-item .z-grow b, .z-list-item .z-grow small { overflow-wrap: anywhere; }

.z-searchbox { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--z-r-sm); background: rgba(7,11,20,.6); border: 1px solid var(--z-line-2); color: var(--z-muted); cursor: text; }
.z-searchbox:focus-within { border-color: var(--z-blue); box-shadow: 0 0 0 4px rgba(39,139,255,.18); }
.z-searchbox input { all: unset; flex: 1; min-width: 0; color: var(--z-white); font: 400 var(--z-t-md)/1.4 var(--z-font-body); }
.z-footer .z-foot-h { font: 600 var(--z-t-xs)/1 var(--z-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--z-chrome); margin-bottom: var(--z-4); }
.z-h3 { font-size: var(--z-t-lg); letter-spacing: -.01em; }

/* ---------- 24. Zenith 2.0 home: intro, cinematic hero, grain, light-up edges ---------- */
@keyframes z-fade { from { opacity: 0; } }

/* first-visit intro (first.js adds .z-seen for returning visitors before anything is drawn) */
.z-splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 45%, #0e1a33 0%, var(--z-midnight) 70%); animation: z-splash-out 600ms var(--z-ease) 2.1s forwards; cursor: pointer; }
.z-seen .z-splash { display: none; }
.z-splash-in { display: grid; justify-items: center; gap: 18px; }
.z-splash img { width: 72px; height: 72px; filter: drop-shadow(0 0 24px rgba(77,166,255,.6)); animation: z-crown 1.1s var(--z-ease) both; }
.z-splash b { font: 700 clamp(28px, 6vw, 56px)/1 var(--z-font-head); letter-spacing: .5em; padding-left: .5em; color: transparent; background: linear-gradient(100deg, #8fa3c2 0%, #fff 45%, #9ad0ff 55%, #8fa3c2 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: z-splash-in 1.2s var(--z-ease) .2s both, z-sheen 1.6s ease-in-out .6s both; }
.z-splash i { display: block; width: 180px; height: 1px; background: linear-gradient(90deg, transparent, var(--z-ice), transparent); transform-origin: center; animation: z-line 1.1s var(--z-ease) .7s both; }
@keyframes z-crown { from { opacity: 0; transform: translateY(10px) scale(.9); filter: blur(6px); } }
@keyframes z-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes z-line { from { transform: scaleX(0); opacity: 0; } }
@keyframes z-splash-out { to { opacity: 0; visibility: hidden; } }

/* staggered entrance: waits for the intro on a first visit, quick on later visits */
.z-in { animation: z-rise 900ms var(--z-ease) both; animation-delay: calc(2.2s + var(--d, 0ms)); }
.z-seen .z-in { animation-delay: var(--d, 0ms); }
.z-in-1 { --d: 0ms; } .z-in-2 { --d: 90ms; } .z-in-3 { --d: 180ms; } .z-in-4 { --d: 270ms; } .z-in-5 { --d: 380ms; } .z-in-6 { --d: 460ms; } .z-in-7 { --d: 560ms; }

/* cinematic hero */
.z-hero2 { position: relative; isolation: isolate; min-height: min(92dvh, 880px); display: flex; align-items: flex-end; overflow: hidden; padding: 140px 0 72px; }
.z-hero2-bg { position: absolute; inset: 0 0 0 34%; z-index: -2; }
.z-hero2-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--z-midnight) 0%, rgba(7,11,20,0) 28%); }
.z-hero2-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: z-kenburns 24s ease-out both; }
.z-hero2 { background: var(--z-midnight); }
.z-hero2::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 90% at 0% 60%, rgba(30,70,140,.22), transparent 60%),
  linear-gradient(0deg, var(--z-midnight) 0%, rgba(7,11,20,0) 38%), linear-gradient(180deg, rgba(7,11,20,.7) 0%, rgba(7,11,20,0) 22%); }
@keyframes z-kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.z-hero2-in { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--z-6); position: relative; }
.z-hero2-copy { max-width: 620px; }
.z-hero2-title { display: grid; font-size: clamp(52px, 8.4vw, 112px); line-height: .92; letter-spacing: -.045em; margin: 18px 0 22px; font-weight: 700; }
.z-hero2-title span { color: transparent; background: linear-gradient(180deg, #ffffff 0%, #d7e3f4 48%, #8fa6c6 100%); -webkit-background-clip: text; background-clip: text; }
.z-hero2-title .z-hero2-last { background: linear-gradient(100deg, #9ad0ff 0%, #ffffff 40%, #4da6ff 75%, #c7e4ff 100%); -webkit-background-clip: text; background-clip: text; text-shadow: 0 0 60px rgba(77,166,255,.25); }
.z-hero2 .lead { max-width: 52ch; color: #c3cfdf; text-wrap: pretty; }
.z-hero2-trust { margin-top: 26px; gap: 20px; font-size: 14px; color: #9fb0c8; flex-wrap: wrap; }
.z-btn-glass { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.z-btn-glass:hover { background: rgba(255,255,255,.1); }
.z-hero2-release { display: grid; gap: 6px; padding: 16px 18px; min-width: 220px; text-decoration: none; color: inherit; border-radius: 14px; transition: transform .25s var(--z-ease), border-color .25s; }
.z-hero2-release b { font-size: 16px; } .z-hero2-release .z-muted { font-size: 13px; }
.z-hero2-release:hover { transform: translateY(-2px); border-color: rgba(126,200,255,.4); }
@media (max-width: 760px) {
  .z-hero2 { min-height: 86dvh; padding: 110px 0 40px; }
  .z-hero2-bg { inset: 0; }
  .z-hero2::before { background: linear-gradient(0deg, var(--z-midnight) 8%, rgba(7,11,20,.78) 55%, rgba(7,11,20,.45) 100%); }
  .z-hero2-in { flex-direction: column; align-items: stretch; }
  .z-hero2-release { min-width: 0; }
}

/* marquee: moving strip of games with chrome stars */
.z-marquee { padding: 22px 0; background: linear-gradient(90deg, rgba(77,166,255,.04), rgba(77,166,255,.0) 50%, rgba(77,166,255,.04)); }
.z-marquee div { animation: z-marq 42s linear infinite; }
.z-marquee:hover div { animation-play-state: paused; }
.z-marquee span { color: #8ea0bb; transition: color .2s; }
.z-marquee .z-marq-dot { color: var(--z-ice); opacity: .7; letter-spacing: 0; }

/* film grain over the whole site (very faint, never blocks clicks) */
body::after { content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* light-up edges that follow the mouse (zenith-ui.js sets --mx/--my) */
.z-tile, .z-cat, .z-glass.z-card { position: relative; }
.z-tile::after, .z-cat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(126,200,255,.75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.z-tile:hover::after, .z-cat:hover::after { opacity: 1; }

/* ---------- 25. box-art covers ---------- */
.z-box { background: transparent; border: 0; box-shadow: none; overflow: visible; perspective: 900px; }
.z-box .z-tile-media { aspect-ratio: 3 / 4; border-radius: 14px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s var(--z-ease), box-shadow .5s var(--z-ease);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 18px 40px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(126,200,255,.14); }
.z-box .z-tile-media::after { background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 46%, rgba(160,210,255,.08) 52%, transparent 62%); background-size: 260% 100%; background-position: 120% 0; transition: background-position .9s var(--z-ease); }
.z-box:hover { transform: none; box-shadow: none; }
.z-box:hover .z-tile-media { box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 30px 60px -20px rgba(10,40,90,.9), 0 0 0 1px rgba(126,200,255,.45), 0 0 50px -10px rgba(77,166,255,.45); }
.z-box:hover .z-tile-media::after { background-position: -40% 0; }
.z-box:hover .z-tile-media img { transform: scale(1.03); }
.z-box .z-tile-body { padding: 14px 4px 0; background: none; }
.z-box::after { display: none; }
.z-cat img { object-position: 50% 20%; }
.z-gallery-box { aspect-ratio: 3 / 4; max-width: 520px; box-shadow: 0 30px 70px -30px rgba(10,40,90,.9), 0 0 0 1px rgba(126,200,255,.18); }
.z-cart-thumb { width: 45px; height: 60px; object-fit: cover; border-radius: 6px; flex: none; box-shadow: 0 0 0 1px rgba(126,200,255,.18); }

/* ---------- 26. stats, releases, why, vouch wall, CTA ---------- */
.z-link { display: inline-flex; align-items: center; gap: 6px; color: var(--z-ice); font-weight: 600; font-size: 14px; text-decoration: none; }
.z-link .z-i { transition: transform .25s var(--z-ease); }
.z-link:hover .z-i, a:hover .z-link .z-i { transform: translateX(4px); }

.z-stats-sec { padding-top: 56px; padding-bottom: 8px; }
.z-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--z-line); }
.z-stat { padding: 28px 8px 28px 28px; display: grid; gap: 6px; border-left: 1px solid var(--z-line); }
.z-stat:first-child { border-left: 0; padding-left: 0; }
.z-stat b { font: 700 clamp(36px, 4.6vw, 56px)/1 var(--z-font-head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: transparent; background: linear-gradient(180deg, #fff, #9fb7d6); -webkit-background-clip: text; background-clip: text; }
.z-stat span { color: var(--z-muted); font-size: 14px; }
@media (max-width: 760px) {
  .z-stats { grid-template-columns: repeat(2, 1fr); }
  .z-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .z-stat:nth-child(n+3) { border-top: 1px solid var(--z-line); }
}

.z-why { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .z-why { grid-template-columns: minmax(0, 1fr); } }
.z-rel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.z-rel-head h2 { margin: 8px 0 0; font-size: clamp(28px, 3.2vw, 40px); }
.z-rel-feat { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; padding: 18px; border-radius: 18px; text-decoration: none; color: inherit; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(47,107,255,.16), rgba(126,200,255,.04) 60%); border: 1px solid rgba(126,200,255,.26); }
.z-rel-feat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.09) 50%, transparent 70%); transform: translateX(-100%); pointer-events: none; }
.z-rel-feat.z-enter { animation: z-open 900ms var(--z-ease) both; }
.z-rel-feat.z-enter::before { animation: z-swipe 1.6s var(--z-ease) .6s both; }
@keyframes z-open { from { opacity: 0; clip-path: inset(48% 0 48% 0 round 18px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 18px); } }
@keyframes z-swipe { to { transform: translateX(100%); } }
.z-rel-feat img { width: 120px; height: 160px; object-fit: cover; border-radius: 10px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(126,200,255,.2); }
.z-rel-feat h3 { margin: 10px 0 6px; font-size: 22px; }
.z-rel-feat p { margin: 0 0 12px; color: #c3cfdf; }
.z-rel-feat:hover { border-color: rgba(126,200,255,.5); }
.z-rel-new { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--z-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--z-ice); }
.z-rel-list { list-style: none; margin: 18px 0 0; padding: 0 0 0 22px; position: relative; }
.z-rel-list::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--z-ice), rgba(126,200,255,.05)); transform-origin: top; transform: scaleY(0); transition: transform 1.4s var(--z-ease); }
.z-rel.z-drawn .z-rel-list::before { transform: scaleY(1); }
.z-rel-list li { position: relative; padding: 14px 0; border-bottom: 1px solid var(--z-line); }
.z-rel-list li::before { content: ""; position: absolute; left: -22px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--z-midnight); border: 1.5px solid var(--z-ice); }
.z-rel-list li:last-child { border-bottom: 0; }
.z-rel-list .z-h3 a { color: var(--z-white); text-decoration: none; }
.z-rel-list .z-h3 a:hover { color: var(--z-ice); }

.z-why-list { display: grid; gap: 4px; padding-top: 10px; }
.z-why-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--z-line); }
.z-why-row:last-child { border-bottom: 0; }
.z-why-n { font: 600 14px/1.6 var(--z-font-mono); color: var(--z-ice); letter-spacing: .1em; }
.z-why-row h3 { margin: 0 0 6px; font-size: 20px; }
.z-why-row p { margin: 0; color: #b4c2d6; max-width: 46ch; }

.z-wall { display: grid; gap: 16px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.z-wall-row { overflow: hidden; }
.z-wall-track { display: flex; gap: 16px; width: max-content; animation: z-wall 70s linear infinite; }
.z-wall-rev .z-wall-track { animation-direction: reverse; animation-duration: 85s; }
.z-wall:hover .z-wall-track { animation-play-state: paused; }
@keyframes z-wall { to { transform: translateX(calc(-50% - 8px)); } }
.z-vouch { margin: 0; width: 340px; flex: none; padding: 20px 22px; border-radius: 16px; background: linear-gradient(180deg, rgba(23,32,52,.72), rgba(14,20,34,.72)); border: 1px solid var(--z-line); }
.z-vouch blockquote { margin: 12px 0; color: var(--z-white); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.z-vouch figcaption { color: var(--z-muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .z-wall-track { animation-duration: 200s !important; } }

.z-btn-discord { background: #5865F2; border-color: #5865F2; color: #fff; }
.z-btn-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }
.z-store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 14px; border-radius: 10px; background: #000; border: 1px solid rgba(255,255,255,.28); color: #fff; text-decoration: none; transition: border-color .2s, transform .2s var(--z-ease); }
.z-store-badge:hover { border-color: rgba(255,255,255,.6); color: #fff; transform: translateY(-1px); }
.z-store-badge .z-i { width: 24px; height: 24px; color: #fff; }
.z-store-badge span { display: grid; font: 600 15px/1.15 var(--z-font-body); }
.z-store-badge small { font: 400 11px/1.2 var(--z-font-body); opacity: .8; }
.z-cta-art { border-radius: 16px; width: 100%; height: auto; box-shadow: 0 30px 70px -30px rgba(10,40,90,.9); }

/* section headings wipe in from the left */
.z-section-head.z-enter h2 { animation: z-wipe 900ms var(--z-ease) both; }
.z-rel.z-enter .z-rel-head h2 { animation: z-wipe 900ms var(--z-ease) both; }
@keyframes z-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- 27. hero "latest release" card opens up after the entrance ---------- */
.z-hero2-release { width: 300px; }
.z-hr-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--z-ease); }
.z-hr-in { overflow: hidden; display: flex; gap: 12px; align-items: center; opacity: 0; transition: opacity .4s var(--z-ease) .15s; }
.z-hr-in img { width: 60px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; margin-top: 12px; box-shadow: 0 0 0 1px rgba(126,200,255,.25); }
.z-hr-in > span { display: grid; gap: 6px; margin-top: 12px; }
.z-hr-note { font-size: 13px; color: #c3cfdf; }
.z-hero2-release.is-open .z-hr-more, .z-hero2-release:hover .z-hr-more, .z-hero2-release:focus-visible .z-hr-more { grid-template-rows: 1fr; }
.z-hero2-release.is-open .z-hr-in, .z-hero2-release:hover .z-hr-in, .z-hero2-release:focus-visible .z-hr-in { opacity: 1; }
@media (max-width: 760px) { .z-hero2-release { width: auto; } }

/* ---------- 28. inner pages: header, releases, support ---------- */
.z-pagehead { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 10vw, 120px) 0 clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.z-pagehead-bg { position: absolute; inset: 0; z-index: -1; }
.z-pagehead-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: blur(28px) saturate(1.2); opacity: .45; transform: scale(1.2); }
.z-pagehead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,11,20,.55), var(--z-midnight) 92%); }
.z-pagehead h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -.04em; line-height: .98; margin: 14px 0 14px; color: transparent; background: linear-gradient(180deg, #fff 0%, #cfdcf0 55%, #8fa6c6 100%); -webkit-background-clip: text; background-clip: text; }
.z-pagehead p { max-width: 60ch; color: #c3cfdf; margin: 0; text-wrap: pretty; }

.z-month { margin-top: 40px; }
.z-month-h { font: 600 13px/1 var(--z-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--z-muted); margin: 0 0 6px; }
.z-relrow { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; padding: 4px 8px 4px 0; border-radius: 12px; transition: background .2s; }
.z-relrow:hover { background: rgba(126,200,255,.05); }
.z-relrow img { width: 54px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; box-shadow: 0 0 0 1px rgba(126,200,255,.18); }
.z-relrow .z-grow { display: grid; gap: 4px; }
.z-relrow b { font-size: 17px; color: var(--z-white); }
.z-relrow .z-muted { font-size: 14px; }
.z-relrow > .z-i { color: var(--z-ice); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s var(--z-ease); }
.z-relrow:hover > .z-i { opacity: 1; transform: none; }
.z-month .z-rel-list li::before { top: 34px; }

.z-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--z-line); }
.z-path { display: grid; gap: 8px; align-content: start; padding: 28px 28px 28px 0; text-decoration: none; color: inherit; border-left: 1px solid var(--z-line); padding-left: 28px; transition: background .25s; }
.z-path:first-child { border-left: 0; padding-left: 0; }
.z-path:hover { background: linear-gradient(180deg, rgba(126,200,255,.06), transparent); }
.z-path h3 { margin: 4px 0 0; font-size: 22px; }
.z-path p { margin: 0 0 6px; color: #b4c2d6; }
@media (max-width: 760px) { .z-paths { grid-template-columns: minmax(0, 1fr); } .z-path { border-left: 0; padding-left: 0; border-top: 1px solid var(--z-line); } .z-path:first-child { border-top: 0; } }

.z-help { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); margin-top: 64px; align-items: start; }
@media (max-width: 900px) { .z-help { grid-template-columns: minmax(0, 1fr); } }
.z-help h2 { margin: 8px 0 18px; font-size: clamp(26px, 3vw, 34px); }
.z-faqs { border-top: 1px solid var(--z-line); }
.z-faq { border-bottom: 1px solid var(--z-line); }
.z-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; color: var(--z-white); font-size: 17px; }
.z-faq summary::-webkit-details-marker { display: none; }
.z-faq-x { position: relative; width: 14px; height: 14px; flex: none; }
.z-faq-x::before, .z-faq-x::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--z-ice); transition: transform .3s var(--z-ease); }
.z-faq-x::after { transform: rotate(90deg); }
.z-faq[open] .z-faq-x::after { transform: rotate(0deg); }
.z-faq-a p { margin: 0 0 20px; color: #c3cfdf; max-width: 62ch; }
.z-faq[open] .z-faq-a { animation: z-fade .4s var(--z-ease); }
.z-guides { display: grid; gap: 10px; }
.z-guide { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: inherit; background: rgba(23,32,52,.55); border: 1px solid var(--z-line); transition: border-color .2s, transform .2s var(--z-ease); }
.z-guide:hover { border-color: rgba(126,200,255,.45); transform: translateX(3px); }
.z-guide-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(77,166,255,.14); color: var(--z-ice); flex: none; }
.z-guide .z-grow { display: grid; gap: 2px; } .z-guide small { color: var(--z-muted); }
.z-guide > .z-i { color: var(--z-ice); }
.z-relrow .z-grow, .z-guide .z-grow { flex: 1 1 auto; min-width: 0; }
.z-month, .z-rel-feat { max-width: 920px; }

/* ---------- 29. product page polish ---------- */
.z-gallery { position: relative; }
.z-pdp-glow { position: absolute; z-index: -1; left: -12%; top: -8%; width: 124%; height: 116%; object-fit: cover; filter: blur(70px) saturate(1.4); opacity: .45; pointer-events: none; }
.z-gallery-box { animation: z-cover-in 1s var(--z-ease) both; }
@keyframes z-cover-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.z-pdp > div > .z-glass.z-card { background: none; border: 0; border-top: 1px solid var(--z-line); border-radius: 0; box-shadow: none; padding: 28px 0 8px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.z-pdp > div > .z-glass.z-card h3 { font-size: 22px; }
.z-buybox { box-shadow: 0 40px 80px -40px rgba(10,40,90,.9), 0 0 0 1px rgba(126,200,255,.16); }
@media (prefers-reduced-motion: reduce) { .z-gallery-box { animation-name: z-fade !important; } }

/* ---------- 30. premium pass: footer, closing band, buy-box trust strip ---------- */
.z-price-xl { font-size: 40px; letter-spacing: -.03em; color: transparent; background: linear-gradient(180deg, #fff 0%, #d7e3f4 55%, #8fa6c6 100%); -webkit-background-clip: text; background-clip: text; }
.z-price-xl s { color: var(--z-muted); -webkit-text-fill-color: var(--z-muted); }
.z-trust { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--z-line); display: grid; gap: 9px; }
.z-trust li { display: flex; align-items: center; gap: 10px; font: 600 11px/1.3 var(--z-font-mono); letter-spacing: .1em; text-transform: uppercase; color: #9fb0c8; }
.z-trust .z-i { color: var(--z-ice); flex: none; }

.z-closer { margin-top: var(--z-8); padding: 56px 0; position: relative; isolation: isolate; border-top: 1px solid var(--z-line); background: linear-gradient(180deg, rgba(18,31,51,.0), rgba(18,31,51,.55)); }
.z-closer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(640px 220px at 18% 100%, rgba(39,139,255,.16), transparent 70%); }
.z-closer-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.z-closer h2 { margin: 10px 0 8px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; }
.z-closer p { margin: 0; max-width: 52ch; color: #b4c2d6; }
.z-closer .z-row { gap: 12px; }

.z-footer { margin-top: 0; border-top: 0; padding-top: 0; position: relative; }
.z-footer::before { content: ""; display: block; height: 1px; background: linear-gradient(90deg, transparent, rgba(199,210,223,.45) 20%, rgba(39,139,255,.55) 50%, rgba(199,210,223,.45) 80%, transparent); }
.z-foot-brand { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 56px 0 36px; border-bottom: 1px solid var(--z-line); margin-bottom: 36px; }
.z-foot-tag { margin: 18px 0 10px; font: 700 clamp(22px, 2.6vw, 30px)/1.05 var(--z-font-head); letter-spacing: -.03em; color: transparent; background: linear-gradient(100deg, #9ad0ff 0%, #ffffff 40%, #4da6ff 75%, #c7e4ff 100%); -webkit-background-clip: text; background-clip: text; }
.z-foot-trust { display: grid; gap: 10px; }
.z-foot-trust span { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--z-font-mono); letter-spacing: .12em; text-transform: uppercase; color: #9fb0c8; }
.z-foot-trust .z-i { color: var(--z-ice); }
.z-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.z-footer-grid a { display: flex; align-items: center; gap: 8px; }
.z-footer-grid .z-i { color: var(--z-chrome); opacity: .8; }
.z-foot-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--z-line); }
.z-foot-bar p { margin: 0; font-size: 12px; color: var(--z-muted); }
.z-foot-ver { font: 600 11px/1 var(--z-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--z-ice); padding: 7px 10px; border: 1px solid rgba(126,200,255,.25); border-radius: 999px; }
@media (max-width: 768px) { .z-footer-grid { grid-template-columns: 1fr 1fr; } .z-footer-grid > :first-child { grid-column: auto; } .z-foot-brand { padding-top: 40px; } }

/* hover: product names light up with the cover */
.z-tile:hover .z-tile-name { color: var(--z-ice); }
.z-tile-name { transition: color var(--z-mid) var(--z-ease); }

/* ---------- 31. welcome: three questions for someone new ---------- */
.z-welcome { z-index: 95; }
.z-welcome .z-modal-scrim { background: radial-gradient(70% 60% at 50% 35%, rgba(14,26,51,.88), rgba(3,6,12,.94)); }
.zw-box { width: min(640px, 100%); padding: 0; overflow: hidden auto; background: linear-gradient(180deg, #121F36, #0B1426); }
.zw-box::before { display: none; }
.zw-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px 0; }
.zw-head .z-logo { font-size: 14px; } .zw-head .z-logo img { width: 26px; height: 26px; }
.zw-dots { display: flex; gap: 6px; }
.zw-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(199,210,223,.2); transition: background .3s, transform .3s var(--z-ease); }
.zw-dots i.is-on { background: var(--z-ice); transform: scale(1.25); }
.zw-bar { height: 2px; margin: 16px 22px 0; background: rgba(199,210,223,.1); border-radius: 2px; overflow: hidden; }
.zw-bar i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--z-blue), var(--z-ice)); transition: width .6s var(--z-ease); }
.zw-pane { position: relative; min-height: 360px; padding: 26px 22px 24px; display: grid; }
.zw-step { grid-area: 1 / 1; display: grid; align-content: start; gap: 6px; }
.zw-title { font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -.035em; line-height: 1; margin: 10px 0 8px; }
.zw-title span { color: transparent; background: linear-gradient(100deg, #9ad0ff 0%, #ffffff 40%, #4da6ff 75%, #c7e4ff 100%); -webkit-background-clip: text; background-clip: text; }
.zw-lead { color: #b4c2d6; margin: 0 0 18px; max-width: 48ch; text-wrap: pretty; }
.zw-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.zw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zw-chip { display: inline-flex; align-items: center; gap: 0; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--z-line-2); background: rgba(7,11,20,.5); color: var(--z-chrome); font: 600 14px/1 var(--z-font-body); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--z-ease), gap .2s var(--z-ease); animation: zw-pop .5s var(--z-ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.zw-chip .z-i { width: 0; opacity: 0; transition: width .2s var(--z-ease), opacity .2s; }
.zw-chip.is-on { border-color: var(--z-blue); background: var(--z-blue-soft); color: #fff; gap: 8px; }
.zw-chip.is-on .z-i { width: 16px; opacity: 1; color: var(--z-ice); }
.zw-chip:hover { transform: translateY(-1px); border-color: rgba(126,200,255,.5); }
.zw-cards { display: grid; gap: 10px; }
.zw-card { display: grid; gap: 4px; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--z-line-2); background: rgba(7,11,20,.45); color: inherit; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--z-ease); animation: zw-pop .5s var(--z-ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.zw-card b { color: var(--z-white); font: 600 17px/1.2 var(--z-font-head); }
.zw-card span { color: var(--z-muted); font-size: 14px; }
.zw-card:hover, .zw-card.is-on { border-color: var(--z-blue); background: var(--z-blue-soft); transform: translateX(3px); }
.zw-picks { display: grid; gap: 8px; }
.zw-pick { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1px solid var(--z-line-2); background: rgba(7,11,20,.45); color: inherit; text-decoration: none;
  transition: border-color .2s, transform .2s var(--z-ease); animation: zw-flip .7s var(--z-ease) both; animation-delay: calc(var(--i, 0) * 90ms); transform-origin: left center; }
.zw-pick img { width: 54px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; box-shadow: 0 0 0 1px rgba(126,200,255,.25); }
.zw-pick span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.zw-pick b { color: var(--z-white); font: 600 16px/1.2 var(--z-font-head); }
.zw-pick small { color: var(--z-muted); }
.zw-pick > .z-i { color: var(--z-ice); }
.zw-pick:hover { border-color: rgba(126,200,255,.5); transform: translateX(3px); color: inherit; }
@keyframes zw-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes zw-flip { from { opacity: 0; transform: perspective(600px) rotateY(-14deg) translateX(-10px); } }
.zw-step.is-in-r { animation: zw-in-r .5s var(--z-ease) both; }
.zw-step.is-in-l { animation: zw-in-l .5s var(--z-ease) both; }
.zw-step.is-out-l { animation: zw-out-l .35s var(--z-ease) both; pointer-events: none; }
.zw-step.is-out-r { animation: zw-out-r .35s var(--z-ease) both; pointer-events: none; }
@keyframes zw-in-r { from { opacity: 0; transform: translateX(28px); } }
@keyframes zw-in-l { from { opacity: 0; transform: translateX(-28px); } }
@keyframes zw-out-l { to { opacity: 0; transform: translateX(-28px); } }
@keyframes zw-out-r { to { opacity: 0; transform: translateX(28px); } }
@media (max-width: 640px) { .zw-pane { min-height: 0; } .zw-actions .z-btn { flex: 1 1 auto; } }

/* ---------- 32. motion everywhere: aurora, sparks, scroll bar, sheen, varied reveals, cart fly ---------- */
.z-aurora { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.z-aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.z-aurora i:nth-child(1) { left: -20vmax; top: -30vmax; background: radial-gradient(circle, rgba(39,139,255,.22), transparent 60%); animation: z-drift-a 38s ease-in-out infinite alternate; }
.z-aurora i:nth-child(2) { right: -25vmax; top: 10vh; background: radial-gradient(circle, rgba(145,210,255,.12), transparent 60%); animation: z-drift-b 46s ease-in-out infinite alternate; }
.z-aurora i:nth-child(3) { left: 20vw; bottom: -40vmax; background: radial-gradient(circle, rgba(26,115,224,.16), transparent 60%); animation: z-drift-c 52s ease-in-out infinite alternate; }
@keyframes z-drift-a { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes z-drift-b { to { transform: translate(-14vw, 18vh) scale(.9); } }
@keyframes z-drift-c { to { transform: translate(-10vw, -14vh) scale(1.1); } }

.z-scrollbar { position: fixed; left: 0; top: 0; z-index: 61; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--z-blue), var(--z-ice)); pointer-events: none; box-shadow: 0 0 8px rgba(77,166,255,.6); }

.z-sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.z-sparks i { position: absolute; left: var(--x, 50%); bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #cfe8ff; box-shadow: 0 0 8px 2px rgba(145,210,255,.6); opacity: 0; animation: z-spark var(--t, 9s) linear infinite; animation-delay: var(--d, 0s); }
@keyframes z-spark { 0% { transform: translateY(0) scale(.6); opacity: 0; } 10% { opacity: .9; } 90% { opacity: .45; } 100% { transform: translateY(-88vh) translateX(var(--sx, 20px)) scale(1.1); opacity: 0; } }

/* hero follows the mouse a little (zenith-ui.js sets --px/--py; off under reduced motion) */
.z-hero2-bg img { translate: var(--px, 0px) var(--py, 0px); transition: translate .6s var(--z-ease); }
.z-hero2-copy { translate: calc(var(--px, 0px) * -.35) calc(var(--py, 0px) * -.35); transition: translate .6s var(--z-ease); }

.z-btn-primary { position: relative; overflow: hidden; }
.z-btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-130%); transition: transform .7s var(--z-ease); pointer-events: none; }
.z-btn-primary:hover::after { transform: translateX(130%); }

.z-enter[data-fx="left"] { animation-name: z-rise-l; }
.z-enter[data-fx="right"] { animation-name: z-rise-r; }
.z-enter[data-fx="scale"] { animation-name: z-scale-in; }
@keyframes z-rise-l { from { opacity: 0; transform: translateX(-22px); } }
@keyframes z-rise-r { from { opacity: 0; transform: translateX(22px); } }
@keyframes z-scale-in { from { opacity: 0; transform: scale(.94) translateY(8px); } }

.z-stat { position: relative; }
.z-stat::after { content: ""; position: absolute; left: 28px; right: 8px; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--z-ice), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--z-ease) .3s; }
.z-stat:first-child::after { left: 0; }
.z-stats.z-enter .z-stat::after { transform: scaleX(1); }
.z-why-n::after { content: ""; display: block; width: 0; height: 1px; background: var(--z-ice); margin-top: 8px; transition: width .9s var(--z-ease) .25s; }
.z-why-row.z-enter .z-why-n::after { width: 28px; }

.z-foot-tag { background-size: 220% 100%; animation: z-sheen-loop 8s ease-in-out infinite; }
@keyframes z-sheen-loop { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.z-pdp-glow { animation: z-breathe 7s ease-in-out infinite; }
@keyframes z-breathe { 50% { opacity: .62; transform: scale(1.03); } }
.z-logo img { transition: filter .3s, transform .35s var(--z-ease); }
.z-logo:hover img { filter: drop-shadow(0 0 10px rgba(77,166,255,.75)); transform: rotate(-6deg) scale(1.08); }

.z-fly { position: fixed; z-index: 99; pointer-events: none; border-radius: 8px; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
#cartCount.z-pop { animation: z-pop .5s var(--z-ease); }
@keyframes z-pop { 30% { transform: scale(1.6); } }
#cartOpen.z-shake { animation: z-wiggle .5s var(--z-ease); }
@keyframes z-wiggle { 25% { transform: rotate(-10deg); } 60% { transform: rotate(7deg); } }

/* Reduced motion, second pass: the site must still feel alive on a PC with Windows animations off.
   Entrances keep a small, quick rise instead of a plain fade; the slow ambient layers stay; anything that
   follows the mouse or flies across the page is off (zenith-ui.js and shop.js check the same setting). */
@keyframes z-rise-sm { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .z-enter, .z-in, .z-gallery-box, .z-enter[data-fx] { animation-name: z-rise-sm !important; animation-duration: .45s !important; }
  .z-rel-feat.z-enter { animation-name: z-rise-sm !important; }
  .zw-step, .zw-chip, .zw-card, .zw-pick { animation-duration: .3s !important; }
  .z-sparks i { animation-duration: 16s !important; }
  .z-hero2-bg img, .z-hero2-copy { translate: 0 0 !important; }
  .z-btn-primary::after { display: none; }
}

/* ---------- 33. editorial pass: typography, featured layout, spec strip, steps, nav, hero sheen, 404 ---------- */
h1, h2, h3, .zw-title { text-wrap: balance; }
.z-price, .z-stat b, .z-spec dd, .z-why-n, .z-rel-list .z-eyebrow, .z-month-h { font-variant-numeric: tabular-nums; }
.z-vouch blockquote { hanging-punctuation: first; }
.z-section-sub { margin: 6px 0 0; color: var(--z-muted); max-width: 52ch; }

/* nav: the underline grows in on hover and stays on the current page */
.z-nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--z-blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--z-ease); }
.z-nav-links a:hover::after, .z-nav-links a[aria-current]::after { transform: scaleX(1); }

/* hero: a light sweeps across "Dominate." once the words have landed; a scroll cue breathes at the bottom */
.z-hero2-title .z-hero2-last { background-size: 220% 100%; background-position: 100% 0; }
.z-hero2-title .z-hero2-last.z-in { animation: z-rise 900ms var(--z-ease) both, z-hero-sheen 1.5s ease-in-out both; animation-delay: calc(2.2s + 270ms), 3.5s; }
.z-seen .z-hero2-title .z-hero2-last.z-in { animation-delay: 270ms, 1.3s; }
@keyframes z-hero-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.z-scrollcue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; color: #8ea0bb; font: 600 10px/1 var(--z-font-mono); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; opacity: 0; animation: z-fade .8s var(--z-ease) 3.6s both; }
.z-seen .z-scrollcue { animation-delay: 1.4s; }
.z-scrollcue i { width: 1px; height: 36px; background: linear-gradient(180deg, var(--z-ice), transparent); overflow: hidden; position: relative; }
.z-scrollcue i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, #fff, transparent); animation: z-cue 2.2s ease-in-out infinite; }
@keyframes z-cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.z-scrollcue:hover { color: var(--z-ice); }
@media (max-width: 760px) { .z-scrollcue { display: none; } }

/* featured: one lead card for the bundle, two covers beside it */
.z-featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--z-5); align-items: stretch; }
.z-featured-side { display: grid; grid-template-columns: 1fr 1fr; gap: var(--z-5); }
.z-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 42%); gap: 28px; align-items: end; padding: 28px; border-radius: 18px; text-decoration: none; color: inherit; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgba(47,107,255,.14), rgba(18,31,51,.6) 55%, rgba(13,22,39,.8)); border: 1px solid rgba(126,200,255,.22); transition: border-color .3s, transform .3s var(--z-ease); }
.z-lead::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(77,166,255,.22), transparent 60%); filter: blur(30px); z-index: -1; transition: transform .6s var(--z-ease); }
.z-lead:hover { border-color: rgba(126,200,255,.5); transform: translateY(-3px); color: inherit; }
.z-lead:hover::before { transform: scale(1.2); }
.z-lead-copy { display: grid; gap: 10px; align-content: end; }
.z-lead-copy h3 { margin: 4px 0 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1; }
.z-lead-copy p { margin: 0; color: #c3cfdf; max-width: 38ch; }
.z-lead-meta { display: flex; align-items: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.z-lead-meta .z-price { font-size: 28px; }
.z-lead-cover { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(10,40,90,.9), 0 0 0 1px rgba(126,200,255,.25); transform: rotate(2.5deg); transition: transform .6s var(--z-ease); }
.z-lead:hover .z-lead-cover { transform: rotate(0deg) scale(1.02); }
.z-lead-cover img { width: 100%; height: 100%; object-fit: cover; }
.z-lead-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.14) 48%, transparent 60%); background-size: 260% 100%; background-position: 120% 0; transition: background-position 1s var(--z-ease); }
.z-lead:hover .z-lead-cover::after { background-position: -40% 0; }
.z-lead-configs { display: flex; flex-wrap: wrap; gap: 6px; }
.z-lead-configs span { font: 600 11px/1 var(--z-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--z-ice); padding: 6px 9px; border: 1px solid rgba(126,200,255,.25); border-radius: 999px; }
@media (max-width: 1024px) { .z-featured { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .z-lead { grid-template-columns: minmax(0, 1fr); } .z-lead-cover { max-width: 240px; transform: none; } .z-featured-side { grid-template-columns: 1fr 1fr; } }

/* why: numerals as big chrome figures */
.z-why-row { grid-template-columns: 84px minmax(0, 1fr); }
.z-why-n { font: 700 36px/1 var(--z-font-head); letter-spacing: -.04em; color: transparent; background: linear-gradient(180deg, #fff, #7f97b8); -webkit-background-clip: text; background-clip: text; }
.z-why-n::after { -webkit-text-fill-color: initial; }

/* shop by game: a vignette so the covers read as framed prints, and the count slides up on hover */
.z-cat { box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -40px 60px -30px rgba(0,0,0,.8); }
.z-cat .z-cat-n { display: inline-flex; align-items: center; gap: 6px; transition: color .25s; }
.z-cat:hover .z-cat-n { color: var(--z-ice); }

/* product page: a spec strip like a label on hardware, and three steps */
.z-spec { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 18px 0 0; padding: 0; border-block: 1px solid var(--z-line); }
@media (max-width: 1100px) and (min-width: 641px) { .z-spec { grid-template-columns: repeat(3, minmax(0, 1fr)); } .z-spec div:nth-child(3n+1) { border-left: 0; padding-left: 0; } .z-spec div:nth-child(n+4) { border-top: 1px solid var(--z-line); } }
.z-spec div { padding: 14px 16px 14px 0; border-left: 1px solid var(--z-line); padding-left: 16px; }
.z-spec div:first-child { border-left: 0; padding-left: 0; }
.z-spec dt { font: 600 10px/1 var(--z-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--z-muted); margin: 0 0 8px; }
.z-spec dd { margin: 0; color: var(--z-white); font-weight: 600; font-size: 14px; }
@media (max-width: 640px) { .z-spec { grid-template-columns: 1fr 1fr; } .z-spec div:nth-child(odd) { border-left: 0; padding-left: 0; } .z-spec div:nth-child(n+3) { border-top: 1px solid var(--z-line); } }
.z-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; margin-top: 14px; }
.z-step { position: relative; padding: 18px 20px 4px 0; border-top: 1px solid var(--z-line); }
.z-step::before { counter-increment: step; content: "0" counter(step); display: block; font: 700 26px/1 var(--z-font-head); letter-spacing: -.04em; color: transparent; background: linear-gradient(180deg, #fff, #7f97b8); -webkit-background-clip: text; background-clip: text; margin-bottom: 10px; }
.z-step b { display: block; color: var(--z-white); font: 600 16px/1.3 var(--z-font-head); margin-bottom: 6px; }
.z-step p { margin: 0; color: #b4c2d6; font-size: 14px; }
.z-step::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--z-ice); transition: width 1s var(--z-ease); }
.z-step.z-enter::after { width: 100%; }
@media (max-width: 640px) { .z-steps { grid-template-columns: minmax(0, 1fr); } }

/* release centre: month labels stay put while that month scrolls */
.z-month-h { position: sticky; top: calc(var(--z-top) + 10px); z-index: 2; width: max-content; padding: 6px 10px; margin-left: -10px; border-radius: 999px; background: rgba(7,11,20,.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* 404 */
.z-404 { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.z-404 h1 { font-size: clamp(56px, 12vw, 140px); letter-spacing: -.05em; line-height: .9; margin: 12px 0 10px; color: transparent; background: linear-gradient(180deg, #fff 0%, #cfdcf0 50%, #4f6688 100%); -webkit-background-clip: text; background-clip: text; }
.z-404 p { max-width: 44ch; margin: 0 auto 24px; color: #b4c2d6; }

@media (prefers-reduced-motion: reduce) {
  .z-hero2-title .z-hero2-last.z-in { animation-name: z-rise-sm, z-hero-sheen !important; animation-duration: .45s, 1.5s !important; }
  .z-scrollcue i::after { animation-duration: 4s !important; }
}

/* ---------- 34. wow: 3D cover fan in the hero, cursor spotlight, frost page wipe, cover glare, ignite ---------- */
.z-hero2-side { display: grid; gap: 18px; justify-items: end; align-content: end; }
.z-fan { position: relative; width: 440px; height: 290px; perspective: 1100px; perspective-origin: 50% 30%; }
.z-fan-card { --k: calc(var(--i) - 2); position: absolute; left: 50%; bottom: 40px; width: 150px; margin-left: -75px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; text-decoration: none; color: #fff;
  transform: rotateY(var(--fx, 0deg)) rotateX(var(--fy, 0deg)) translateX(calc(var(--k) * 80px)) translateY(calc(var(--k) * var(--k) * 10px)) rotateZ(calc(var(--k) * 7deg));
  z-index: calc(10 - var(--k) * var(--k)); box-shadow: 0 24px 50px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(126,200,255,.25);
  transition: transform .55s var(--z-ease), box-shadow .4s; animation: z-fan-in .9s var(--z-ease) both, z-float 6s ease-in-out infinite; animation-delay: calc(2.5s + var(--i) * 110ms), calc(var(--i) * -1.3s); }
.z-seen .z-fan-card { animation-delay: calc(400ms + var(--i) * 110ms), calc(var(--i) * -1.3s); }
@keyframes z-fan-in { from { opacity: 0; scale: .8; } }
@keyframes z-float { 0%, 100% { translate: 0 -5px; } 50% { translate: 0 5px; } }
.z-fan-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.z-fan-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 48%, transparent 60%); background-size: 260% 100%; background-position: 120% 0; transition: background-position .9s var(--z-ease); }
.z-fan-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 10px; font: 700 11px/1 var(--z-font-mono); letter-spacing: .14em; text-transform: uppercase; text-align: center; background: linear-gradient(180deg, transparent, rgba(7,11,20,.92)); opacity: 0; transition: opacity .3s; }
.z-fan-card:hover { transform: rotateY(var(--fx, 0deg)) rotateX(var(--fy, 0deg)) translateX(calc(var(--k) * 80px)) translateY(calc(var(--k) * var(--k) * 10px - 34px)) rotateZ(calc(var(--k) * 2deg)) scale(1.12); z-index: 30;
  box-shadow: 0 40px 70px -24px rgba(10,40,90,1), 0 0 0 1px rgba(126,200,255,.7), 0 0 60px -10px rgba(77,166,255,.6); }
.z-fan-card:hover::after { background-position: -40% 0; }
.z-fan-card:hover span { opacity: 1; }
@media (max-width: 1100px) { .z-fan { width: 380px; } .z-fan-card { width: 130px; margin-left: -65px; transform: rotateY(var(--fx, 0deg)) rotateX(var(--fy, 0deg)) translateX(calc(var(--k) * 68px)) translateY(calc(var(--k) * var(--k) * 10px)) rotateZ(calc(var(--k) * 7deg)); } }
@media (max-width: 760px) {
  .z-hero2-side { justify-items: stretch; width: 100%; }
  .z-fan { width: auto; height: auto; perspective: none; display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 14px; margin: 6px -16px 0; padding-inline: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .z-fan::-webkit-scrollbar { display: none; }
  .z-fan-card { position: static; width: 96px; flex: none; margin: 0; transform: none !important; scroll-snap-align: center; animation-name: z-fan-in, none; }
  .z-fan-card span { opacity: 1; font-size: 9px; padding-top: 18px; }
}

/* cursor spotlight over the whole page (desktop pointers only; zenith-ui.js moves it) */
.z-spot { position: fixed; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(560px circle at var(--sx, -999px) var(--sy, -999px), rgba(77,166,255,.09), rgba(77,166,255,.03) 40%, transparent 65%); }

/* frost wipe between pages instead of a cut */
::view-transition-old(root) { animation: z-vt-out .4s var(--z-ease) both; }
::view-transition-new(root) { animation: z-vt-in .55s var(--z-ease) both; }
@keyframes z-vt-out { to { opacity: .35; scale: .985; filter: blur(6px); } }
@keyframes z-vt-in { from { clip-path: inset(0 100% 0 0); filter: brightness(1.6); } 60% { filter: brightness(1); } to { clip-path: inset(0 0 0 0); } }

/* the title lands, then a pulse of light rolls out of it */
.z-hero2-title { position: relative; }
.z-hero2-title::after { content: ""; position: absolute; left: 28%; top: 64%; width: 12px; height: 12px; border-radius: 50%; pointer-events: none; opacity: 0; animation: z-ignite 1.3s ease-out 3.45s both; }
.z-seen .z-hero2-title::after { animation-delay: 1.25s; }
@keyframes z-ignite { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(145,210,255,.6), 0 0 40px 20px rgba(77,166,255,.55); } 100% { opacity: 0; box-shadow: 0 0 0 320px rgba(145,210,255,0), 0 0 120px 80px rgba(77,166,255,0); } }

/* product cover: tilts toward the mouse with a glare that follows it */
.z-gallery-box { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--z-ease); }
.z-gallery-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.24), transparent 55%); }
.z-gallery-box:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .z-fan-card { animation: z-rise-sm .45s var(--z-ease) both !important; animation-delay: calc(300ms + var(--i) * 60ms) !important; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: .2s; }
  ::view-transition-new(root) { animation-duration: .3s; }
  .z-hero2-title::after { animation-duration: .9s; }
}

/* hero: the latest-release card is a one-line pill above the fan, so the fan keeps the bottom right */
.z-hero2-side .z-hero2-release { display: flex; align-items: center; gap: 12px; width: auto; max-width: 440px; padding: 8px 16px 8px 12px; border-radius: 999px; }
.z-hero2-side .z-hero2-release b { font-size: 14px; white-space: nowrap; }
.z-hero2-side .z-hero2-release .z-muted { font-size: 12px; white-space: nowrap; }
.z-hero2-side .z-hero2-release .z-hr-more { display: none; }
@media (max-width: 760px) { .z-hero2-side .z-hero2-release { max-width: none; } }

/* ---------- 35. push 2: it remembers you, headline vouch, phone menu, search shortcut ---------- */
/* "Yours" on the games you told the welcome about */
.z-cat .z-yours-tag { position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font: 700 10px/1 var(--z-font-mono); letter-spacing: .16em; text-transform: uppercase; color: #fff; background: linear-gradient(180deg, #3A97FF, var(--z-blue-600)); box-shadow: 0 6px 18px rgba(39,139,255,.4); animation: zw-pop .5s var(--z-ease) both; }
.z-cat.is-yours { border-color: rgba(69,163,255,.45); }
.z-yours { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -8px 0 18px; }
.z-yours > span { font: 600 11px/1 var(--z-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--z-muted); margin-right: 4px; }
.z-yours button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(69,163,255,.35); background: var(--z-blue-soft); color: var(--z-ice); font: 600 13px/1 var(--z-font-body); cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--z-ease); animation: zw-pop .5s var(--z-ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.z-yours button:hover, .z-yours button[aria-pressed="true"] { background: var(--z-blue); border-color: var(--z-blue); color: #fff; transform: translateY(-1px); }
.z-yours .z-btn-ghost { min-height: 34px; font-size: 12px; }

/* one big vouch above the wall, rotating */
.z-quote { position: relative; margin: 0 auto 36px; max-width: 980px; padding: 8px 0 0 64px; min-height: 120px; }
.z-quote::before { content: "\201C"; position: absolute; left: 0; top: -22px; font: 700 140px/1 var(--z-font-head); color: transparent; background: linear-gradient(180deg, #9ad0ff, rgba(154,208,255,.1)); -webkit-background-clip: text; background-clip: text; }
.z-quote blockquote { margin: 0; font: 500 clamp(20px, 2.6vw, 30px)/1.3 var(--z-font-head); letter-spacing: -.02em; color: var(--z-white); text-wrap: balance; transition: opacity .5s var(--z-ease), transform .5s var(--z-ease); }
.z-quote figcaption { margin-top: 12px; display: flex; align-items: center; gap: 12px; color: var(--z-muted); font-size: 14px; transition: opacity .5s var(--z-ease) .05s; }
.z-quote figcaption .z-row { gap: 2px; color: var(--z-ice); }
.z-quote.is-swapping blockquote { opacity: 0; transform: translateY(8px); }
.z-quote.is-swapping figcaption { opacity: 0; }
.z-quote-dots { position: absolute; right: 0; top: 10px; display: flex; gap: 6px; }
.z-quote-dots i { width: 18px; height: 2px; border-radius: 2px; background: rgba(199,210,223,.18); overflow: hidden; position: relative; }
.z-quote-dots i::after { content: ""; position: absolute; inset: 0; background: var(--z-ice); transform: scaleX(0); transform-origin: left; }
.z-quote-dots i.is-on::after { animation: z-quote-fill var(--qt, 6s) linear both; }
@keyframes z-quote-fill { to { transform: scaleX(1); } }
@media (max-width: 640px) { .z-quote { padding-left: 0; padding-top: 44px; } .z-quote::before { top: -10px; font-size: 96px; } .z-quote-dots { top: 0; } }

/* phone menu: a proper panel, big numbered links that stagger in, the two actions at the bottom */
.z-drawer-panel { width: min(380px, 92vw); padding: 20px 22px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #0F1B30, #0A1222); border-left: 1px solid rgba(126,200,255,.18); box-shadow: -30px 0 80px rgba(0,0,0,.5); gap: 0; }
#navDrawer .z-drawer-panel > a { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 6px; border-bottom: 1px solid var(--z-line); border-radius: 0; font: 700 clamp(26px, 7vw, 32px)/1 var(--z-font-head); letter-spacing: -.03em; color: var(--z-white); opacity: 0; transform: translateX(24px); }
#navDrawer .z-drawer-panel > a::after { content: "\2192"; font: 600 18px/1 var(--z-font-body); color: var(--z-ice); opacity: 0; transition: opacity .2s, transform .2s var(--z-ease); transform: translateX(-6px); }
#navDrawer .z-drawer-panel > a:hover { background: none; color: var(--z-ice); }
#navDrawer .z-drawer-panel > a:hover::after { opacity: 1; transform: none; }
#navDrawer.is-open .z-drawer-panel > a { animation: z-menu-in .5s var(--z-ease) forwards; }
#navDrawer.is-open .z-drawer-panel > a:nth-of-type(1) { animation-delay: 60ms; } #navDrawer.is-open .z-drawer-panel > a:nth-of-type(2) { animation-delay: 120ms; }
#navDrawer.is-open .z-drawer-panel > a:nth-of-type(3) { animation-delay: 180ms; } #navDrawer.is-open .z-drawer-panel > a:nth-of-type(4) { animation-delay: 240ms; }
#navDrawer.is-open .z-drawer-panel > a:nth-of-type(5) { animation-delay: 300ms; } #navDrawer.is-open .z-drawer-panel > a:nth-of-type(6) { animation-delay: 360ms; }
@keyframes z-menu-in { to { opacity: 1; transform: none; } }
#navDrawer .z-drawer-panel > a[href="/app/"], #navDrawer .z-drawer-panel > a[target="_blank"] { font: 600 15px/1 var(--z-font-body); letter-spacing: 0; justify-content: center; gap: 10px; border: 1px solid var(--z-line-2); border-radius: 12px; padding: 16px; margin-top: 10px; }
#navDrawer .z-drawer-panel > a[href="/app/"] { background: linear-gradient(180deg, #3A97FF, var(--z-blue) 60%, var(--z-blue-600)); border-color: rgba(145,210,255,.45); color: #fff; }
#navDrawer .z-drawer-panel > a[target="_blank"] { background: #5865F2; border-color: #5865F2; color: #fff; margin-top: auto; }
#navDrawer .z-drawer-panel > a[href="/app/"]::after, #navDrawer .z-drawer-panel > a[target="_blank"]::after { display: none; }
#navDrawer .z-drawer-panel > .z-row { padding-bottom: 8px; border-bottom: 1px solid var(--z-line); margin-bottom: 6px; }
#navDrawer .z-drawer-panel .z-menu-foot { margin-top: 18px; font: 600 10px/1.6 var(--z-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--z-muted); text-align: center; }

/* search: "/" focuses it, and the box says so */
.z-searchbox { position: relative; }
.z-searchbox kbd { position: absolute; right: 12px; top: 50%; translate: 0 -50%; font: 600 11px/1 var(--z-font-mono); color: var(--z-muted); padding: 4px 7px; border: 1px solid var(--z-line-2); border-radius: 6px; pointer-events: none; }
.z-searchbox:focus-within kbd { opacity: 0; }
@media (pointer: coarse) { .z-searchbox kbd { display: none; } }

@media (prefers-reduced-motion: reduce) {
  #navDrawer.is-open .z-drawer-panel > a { animation-duration: .25s; }
  .z-quote-dots i.is-on::after { animation-duration: var(--qt, 6s); }
}
