/* ZeroPvP deep layer (2026-11-16, owner: "more OLED black deep colours like pvptiers, mine still red, not orange;
   the nav a bit more Minecrafty, not too much"). Loads last (build.js). Colours only through the zp.css tokens. */

/* the ground: flat deep purple (2026-11-30; was OLED black with a crimson light) */
html, body { background-color: var(--zp-base); }
body { background-image: none; }  /* 2026-11-30 purple: flat ground, no light gradient */

/* ---------- the nav: the same bar and motion, with subtle Minecraft touches ---------- */
.zn-bar {
  border-radius: 14px;
  background: color-mix(in srgb, var(--zp-band) 92%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -2px 0 rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.07), 0 18px 44px -20px rgba(0, 0, 0, 0.95);
}
html[data-nx="low"] .zn-bar, html[data-nx="still"] .zn-bar { background: var(--zp-box); }
/* the gliding marker is an inventory slot: a sunken well with a purple base line; it still glides (polish.js) */
.zn-mark i { height: 40px; margin-top: -20px; background: var(--zp-band); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.65), inset 0 -2px 0 var(--zp-red-hi); }
.zn-mark i:nth-child(1) { border-radius: 7px 0 0 7px; box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.65), inset 0 -2px 0 var(--zp-red-hi); }
.zn-mark i:nth-child(3) { border-radius: 0 7px 7px 0; box-shadow: inset -2px 2px 0 rgba(255, 255, 255, 0.05), inset 0 -2px 0 var(--zp-red-hi), inset 0 2px 0 rgba(0, 0, 0, 0.65); }
.zn-l { border-radius: 7px; gap: 8px; }
/* item icons: grey and quiet at rest, their real colours on hover and on the current page */
.zn-ico, .zn-sico { flex: none; width: 18px; height: 18px; image-rendering: pixelated; filter: grayscale(1) brightness(1.15); opacity: 0.7; transition: filter 180ms ease-out, opacity 180ms ease-out, transform 220ms cubic-bezier(.22, 1, .36, 1); }
.zn-l:hover .zn-ico, .zn-l:focus-visible .zn-ico, .zn-l[aria-current="page"] .zn-ico, .zn-x:hover .zn-ico, .zn-x:focus-visible .zn-ico { filter: none; opacity: 1; }
@media (hover: hover) { .zn-l:hover .zn-ico, .zn-x:hover .zn-ico { transform: translateY(-1px); } }
.zn-sheet-main a .zn-sico { width: 22px; height: 22px; }
.zn-sheet-main a[aria-current="page"] .zn-sico, .zn-sheet-main a:hover .zn-sico { filter: none; opacity: 1; }
/* Play now: the lit purple on a Minecraft-button bevel, the label in the game font */
.zn-cta { border-radius: 10px; background: var(--zp-grad); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.24), inset 0 -3px 0 rgba(0, 0, 0, 0.32), 0 10px 22px -12px rgba(0, 0, 0, 0.9); }
.zn-cta:hover, .zn-cta:focus-visible { background: var(--zp-grad); filter: brightness(1.1); }
.zn-cta-t { font: 400 18px/1 'McVanilla', 'ZeroCraft', monospace; padding-bottom: 2px; }
.zn-cta-dot { border-radius: 7px; background: rgba(0, 0, 0, 0.32); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.35); }
.zn-cta-dot .zi { color: #fff !important; }
.zn-burger { border-radius: 10px; background: var(--zp-box); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -2px 0 rgba(0, 0, 0, 0.7); }
.zn-menu { border-radius: 14px; background: var(--zp-ground); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px -20px rgba(0, 0, 0, 0.95); }
.zn-menu-col a[aria-current="page"] { background: var(--zp-raise); box-shadow: inset 0 -2px 0 var(--zp-red-hi); }
/* the search row under the bar: a sunken field, the address in the game font on a bevelled chip */
.nx-find { border-radius: 12px; background: var(--zp-band); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.nx-ip { border-radius: 12px; background: var(--zp-box); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -2px 0 rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.nx-ip .zp-ip-hint { border-radius: 6px; }

@media (prefers-reduced-motion: reduce) { .zn-ico, .zn-sico { transition: none; } }

/* ==========================================================================
   ONE LOOK (2026-11-17, owner: "make the kits page, matches and all other pages match the design and layout
   of the leaderboard"). The leaderboard's components (assets/css/tierlist.css) applied to the shared site
   components every content page already uses, in one place: chamfered panels with a hairline edge, a header
   row like the tier list's panels, chamfered buttons and tags, and the kit picker as inventory slots.
   The home page keeps its own hero (owner), so it is left out with body:not([data-page="index"]).
   ========================================================================== */
:root {
  --u-cut: 14px;
  --u-edge: rgba(255, 255, 255, 0.15);
  --u-fill: var(--zp-box);
  --u-diag: transparent calc(50% - 0.8px), var(--u-edge) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px);
}
/* panels and cards: the tier list's chamfered frame (top-right and both bottom corners cut, hairline on every edge) */
html:root body:not([data-page="index"]) :is(.zp-panel, .zp-card, .ph-aside, .pf-hero, .kcard, .hof-past, .champ, .tr-ladder, .lb-legend, .doc-toc) {
  border: 0 !important; border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - var(--u-cut)) 0, 100% var(--u-cut), 100% calc(100% - var(--u-cut)), calc(100% - var(--u-cut)) 100%, var(--u-cut) 100%, 0 calc(100% - var(--u-cut)));
  background:
    linear-gradient(to bottom left, var(--u-diag)) right top / var(--u-cut) var(--u-cut) no-repeat,
    linear-gradient(to bottom right, var(--u-diag)) right bottom / var(--u-cut) var(--u-cut) no-repeat,
    linear-gradient(to bottom left, var(--u-diag)) left bottom / var(--u-cut) var(--u-cut) no-repeat,
    var(--u-fill) !important;
  box-shadow: inset 0 0 0 1px var(--u-edge) !important;
}
/* boxes inside a panel: a flat step up, no second frame */
html:root body:not([data-page="index"]) :is(.zp-panel, .zp-card, .ph-aside, .pf-hero) :is(.zp-card, .kcard) { clip-path: none; background: rgba(255, 255, 255, 0.035) !important; box-shadow: none !important; border-radius: 6px !important; }
/* the header row of a panel, like the tier list's: a lit strip with a hairline under it, plain title */
html:root body:not([data-page="index"]) .zp-panel-head { min-height: 52px; border-bottom: 1px solid var(--u-edge) !important; background: rgba(255, 255, 255, 0.04) !important; }
html:root body:not([data-page="index"]) .zp-panel-title { font: 600 18px/1.2 var(--nx-body) !important; -webkit-font-smoothing: antialiased; text-transform: none; }
html:root body:not([data-page="index"]) .zp-panel-title::before { display: none !important; }
html:root body:not([data-page="index"]) .zp-panel-foot { background: rgba(0, 0, 0, 0.25) !important; border-top: 1px solid var(--u-edge) !important; }
/* buttons: chamfered like the tier list's; the main action lit purple */
html:root body:not([data-page="index"]) main :is(.zp-btn, .md-back, .nw-back) {
  border-radius: 0 !important; border: 0 !important;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
}
html:root body:not([data-page="index"]) main .zp-btn:not(.is-primary):not(.is-discord):not(.is-gold) { background: var(--zp-raise) !important; }
html:root body:not([data-page="index"]) main .zp-btn.is-primary { background: var(--zp-grad) !important; box-shadow: inset 0 0 0 1px rgba(199, 161, 255, 0.45) !important; color: #fff !important; }
html:root body:not([data-page="index"]) main .zp-btn:is(:hover, :focus-visible) { filter: brightness(1.12); }
html:root body:not([data-page="index"]) main :is(.zp-btn, .md-back, .nw-back):focus-visible { outline: 0 !important; box-shadow: inset 0 0 0 2px #fff !important; }
/* tier tags: the tier list's small chamfered tag in the game font */
html:root body:not([data-page="index"]) main :is(.zp-tier, .tier-pill) { border-radius: 0 !important; clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
/* rows in panels: a quiet hover that slides, like the tier list's rows */
html:root body:not([data-page="index"]) :is(.zp-lrow, .mu-row) { transition: transform 250ms cubic-bezier(.22, 1, .36, 1), background-color 180ms; }
@media (hover: hover) { html:root body:not([data-page="index"]) :is(a.zp-lrow, a.mu-row):hover { transform: translateX(4px); } }

/* ---------- the kit picker: an inventory row of slots (ZeroPvP's own, not a strip of boxed tabs) ----------
   every kit is a sunken slot holding its item, the label beside it; the picked one gets a purple frame like
   the game's hotbar selector, and the frame glides (nx.js moves the picked look between items). Phones scroll
   sideways with snap. */
html:root body :is(.zp-tabs, .h-lb-tabs, .tl-tabs) {
  display: flex !important; gap: 6px !important; padding: 7px !important; border: 0 !important; border-radius: 12px !important;
  background: var(--zp-band) !important; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07) !important;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; max-width: 100%;
}
html:root body :is(.zp-tabs, .h-lb-tabs, .tl-tabs)::-webkit-scrollbar { display: none; }
html:root body :is(.zp-tabs, .h-lb-tabs) > :is(button, a), html:root body .tl-tabs > .tl-tab {
  position: relative; flex: none; display: inline-flex !important; align-items: center; gap: 10px; min-height: 52px; height: auto; width: auto;
  margin: 0 !important; padding: 0 14px 0 5px !important; border: 0 !important; border-radius: 8px !important; scroll-snap-align: start;
  background: transparent !important; box-shadow: none !important; color: var(--zp-muted) !important;
  font: 600 14px/1 var(--nx-body) !important; text-shadow: none !important; white-space: nowrap; transition: color 180ms, background-color 180ms;
}
html:root body :is(.zp-tabs, .h-lb-tabs) > :is(button, a):not(:has(img)) { padding: 0 16px !important; }
html:root body :is(.zp-tabs, .h-lb-tabs) > :is(button, a) img, html:root body .tl-tabs > .tl-tab img {
  position: static !important; transform: none !important; flex: none; width: 42px !important; height: 42px !important; padding: 7px; box-sizing: border-box;
  background: var(--zp-raise) !important; border-radius: 4px; image-rendering: pixelated; filter: none !important; opacity: 0.85;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.65), inset -2px -2px 0 rgba(255, 255, 255, 0.06);
}
html:root body :is(.zp-tabs, .h-lb-tabs) > :is(button, a):hover, html:root body .tl-tabs > .tl-tab:hover { color: #fff !important; background: rgba(255, 255, 255, 0.04) !important; }
html:root body :is(.zp-tabs, .h-lb-tabs) > :is(button, a):is([aria-selected="true"], .active, .is-on), html:root body .tl-tabs > .tl-tab[aria-selected="true"] {
  color: #fff !important; background: color-mix(in srgb, var(--zp-red-hi) 13%, transparent) !important;
  box-shadow: inset 0 0 0 2px var(--zp-red-hi), 0 0 18px -6px color-mix(in srgb, var(--zp-red-hi) 80%, transparent) !important;
}
html:root body :is(.zp-tabs, .h-lb-tabs) > :is(button, a):is([aria-selected="true"], .active, .is-on) img, html:root body .tl-tabs > .tl-tab[aria-selected="true"] img { opacity: 1; }
html:root body .tl-tabs .tl-glow { display: none !important; }
html:root body .tl-tabs-wrap { overflow: visible; padding-top: 0; margin-top: 22px; }html:root body .tl-tabs { width: auto !important; }

/* page heads sit on the page like the leaderboard's (no separate band), kit icons in slot wells, kit link tiles chamfered */
html:root body:not([data-page="index"]) .page-hero { background: transparent !important; box-shadow: none !important; }
html:root body:not([data-page="index"]) :is(.zp-kit-ico, .kp-ico) { border: 0 !important; border-radius: 4px !important; background: var(--zp-raise) !important; box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.65), inset -2px -2px 0 rgba(255, 255, 255, 0.06) !important; }
html:root body:not([data-page="index"]) :is(.kit-links a, .ph-kits > a) {
  border-radius: 0 !important; background: var(--zp-box) !important; box-shadow: inset 0 0 0 1px var(--u-edge) !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: transform 250ms cubic-bezier(.22, 1, .36, 1), box-shadow 180ms;
}
@media (hover: hover) { html:root body:not([data-page="index"]) :is(.kit-links a, .ph-kits > a):hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zp-red-hi) 70%, transparent) !important; } }
@media (prefers-reduced-motion: reduce) { html:root body :is(.zp-lrow, .mu-row, .kit-links a, .ph-kits > a) { transition: none !important; } }html:root body:not([data-page="index"]) .md-head { background: transparent !important; box-shadow: none !important; }
