/*
 * Zetra store.
 * Built on the FruitSMP store's layout, recoloured for Zetra: the logo's brick red as
 * the main colour, its ember sparks as the gold second colour, a dusk sky over a sea of
 * clouds in the hero. Display type is Rubik (heavy, like the logo's Z), text is Montserrat.
 */

:root {
    --bg: #100A0B;
    --bg-2: #160E10;
    --panel: #1C1214;
    --panel-2: #24171A;
    --panel-3: #311F22;
    --line: rgba(255, 210, 200, .08);
    --line-2: rgba(255, 210, 200, .15);
    --text: #FFF5F2;
    --muted: #CFB7B1;
    --dim: #957C77;
    --good: #4DD68C;
    --bad: #FF5C65;
    --discord: #5865F2;
    --main: #FF4433;
    --ember: #FFB23F;
    --blaze: linear-gradient(135deg, #F0362B 0%, #FF6A2C 100%);
    --ember-grad: linear-gradient(90deg, #C9221C, #FF4433 30%, #FF7A2E 65%, #FFB23F);
    --r-sm: 12px;
    --r: 18px;
    --r-lg: 26px;
    --shadow: 0 22px 44px -22px rgba(0, 0, 0, .8);
    --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display: 'Rubik', 'Montserrat', system-ui, sans-serif;
    --wrap: 1220px;
    --accent: var(--main);
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font: 500 15px/1.6 var(--font);
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; }
[hidden] { display: none !important; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; padding: .1em .4em; border-radius: 6px; background: rgba(255, 255, 255, .08); }
::selection { background: rgba(255, 68, 51, .55); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 8px; }
body.is-locked { overflow: hidden; }

.z-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--main); color: #fff; font-weight: 700; }
.z-skip:focus { left: 12px; }
.z-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.z-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.z-main { flex: 1; position: relative; z-index: 2; }
.z-section { padding-top: 56px; }
.z-section--tight { padding-top: 28px; }
.z-main > :last-child { padding-bottom: 72px; }
.z-loading { display: grid; place-items: center; min-height: 240px; }

.z-h1, .z-h2, .z-h3, .z-hero-title, .z-cat-title, .z-card-name, .z-price, .z-brand-name, .z-rung-name, .z-pill-text strong {
    font-family: var(--display); font-weight: 800; letter-spacing: -.01em;
}
.z-h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.z-h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
.z-h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.z-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.z-muted { color: var(--muted); }
.z-dim { color: var(--dim); }
.z-small { font-size: 13px; }
.z-row { display: flex; align-items: center; gap: 10px; }
.z-row--wrap { flex-wrap: wrap; }
.z-link { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.z-link:hover { color: var(--text); text-decoration-color: currentColor; }

.z-panel {
    position: relative;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
}

/* ------------------------------------------------------------------ buttons */

.z-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 44px; padding: 0 18px;
    border: 1px solid transparent; border-radius: 12px;
    background: var(--panel-3); color: var(--text);
    font-weight: 800; font-size: 14px; letter-spacing: .01em; line-height: 1; white-space: nowrap;
    transition: transform .15s ease, filter .15s ease, background-color .2s ease;
}
.z-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.z-btn:active { transform: translateY(1px); }
.z-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.z-btn--lg { height: 52px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.z-btn--blaze {
    background: var(--blaze); color: #fff;
    box-shadow: 0 10px 24px -10px rgba(240, 54, 43, .85), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -3px 0 rgba(120, 12, 8, .35);
    text-shadow: 0 1px 0 rgba(110, 10, 6, .35);
}
.z-btn--ember { background: linear-gradient(135deg, #FFC24D, #FF9A1F); color: #2E1300; box-shadow: 0 10px 24px -10px rgba(255, 170, 40, .8), inset 0 -3px 0 rgba(140, 70, 0, .3); }
.z-btn--ghost { background: rgba(255, 255, 255, .05); border-color: var(--line-2); }
.z-btn--ghost:hover { background: rgba(255, 255, 255, .09); }
.z-btn--discord { background: var(--discord); color: #fff; }
.z-btn--block { display: flex; width: 100%; }
.z-btn[disabled], .z-btn--disabled { background: rgba(255, 255, 255, .05); color: var(--dim); cursor: not-allowed; transform: none; filter: none; box-shadow: none; text-shadow: none; }
.z-btn.is-busy { pointer-events: none; opacity: .75; }

.z-icon-btn {
    display: inline-grid; place-items: center; flex: none;
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--muted);
    transition: color .15s, background-color .15s, transform .15s;
}
.z-icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.z-icon-btn--danger:hover { color: #fff; background: var(--bad); border-color: var(--bad); }

/* ------------------------------------------------------------------ header */

.z-top { position: sticky; top: 0; z-index: 60; background: rgba(16, 10, 11, .92); border-bottom: 1px solid var(--line); }
.z-top-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.z-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.z-brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.z-brand-name { font-size: 21px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.z-brand-name b { font-weight: 800; color: var(--main); margin-left: 5px; }
.z-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.z-nav::-webkit-scrollbar { display: none; }
.z-nav-link {
    position: relative; display: flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 12px; border-radius: 10px;
    color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap;
    transition: color .15s, background-color .15s;
}
.z-nav-link img { width: 24px; height: 24px; object-fit: contain; transition: transform .2s; }
.z-nav-link i { color: var(--accent); }
.z-nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.z-nav-link:hover img { transform: translateY(-2px) rotate(-6deg); }
.z-nav-link.is-active { color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.z-nav-link.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 3px; border-radius: 3px; background: var(--accent); }
.z-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.z-user { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 10px; font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.z-user img { width: 28px; height: 28px; border-radius: 7px; image-rendering: pixelated; background: var(--panel-3); }
.z-user:hover { background: rgba(255, 255, 255, .09); }
.z-cart-btn {
    position: relative; display: flex; align-items: center; gap: 10px;
    height: 42px; padding: 0 14px; border-radius: 12px; border: 0;
    background: var(--blaze); color: #fff; font-weight: 800;
    box-shadow: 0 8px 20px -10px rgba(240, 54, 43, .9), inset 0 -3px 0 rgba(120, 12, 8, .3);
    transition: transform .15s;
}
.z-cart-btn:hover { transform: translateY(-1px); }
.z-cart-btn > i { font-size: 16px; }
.z-cart-btn.is-bump { animation: z-bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes z-bump { 40% { transform: scale(1.12); } }
.z-cart-count { position: absolute; top: -7px; left: 26px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: #D72A20; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.z-cart-total { font-size: 14px; }
.z-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); }
.z-drop { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 6px; padding: 12px 20px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .8); }
.z-drop-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.z-drop-link img { width: 36px; height: 36px; object-fit: contain; }
.z-drop-link > i { width: 36px; text-align: center; color: var(--accent); font-size: 18px; }
.z-drop-link span { display: flex; flex-direction: column; line-height: 1.25; }
.z-drop-link small { color: var(--dim); font-size: 12px; font-weight: 600; }

/* ------------------------------------------------------------------ hero */

.z-hero { position: relative; z-index: 1; overflow: hidden; isolation: isolate; padding: 24px 0 46px; min-height: 0; background: #1F0A1C; }
/* Inner pages: a short banner so the products start higher up. */
.z-hero:not(.z-hero--home) .z-hero-layer--sky { background-position: center 40%; }
.z-hero:not(.z-hero--home) .z-hero-layer--far, .z-hero:not(.z-hero--home) .z-hero-layer--mid { background-position: center 80%; }
.z-hero:not(.z-hero--home) .z-hero-layer--front { opacity: .55; }
.z-hero--home { min-height: min(700px, 88vh); padding-bottom: 90px; }
.z-hero-layer, .z-embers, .z-hero-fade { position: absolute; inset: 0; pointer-events: none; }
.z-hero-layer { background-position: center bottom; background-size: cover; background-repeat: no-repeat; will-change: transform; }
.z-hero-layer--sky { background-image: url("/img/hero/sky.webp"); background-position: center 70%; z-index: -5; inset: -40px 0 0; }
.z-hero-layer--far { background-image: url("/img/hero/far.webp"); z-index: -4; }
.z-hero-layer--mid { background-image: url("/img/hero/mid.webp"); z-index: -3; }
.z-embers { z-index: -2; width: 100%; height: 100%; }
.z-hero-layer--front { background-image: url("/img/hero/front.webp"); z-index: -1; }
.z-hero-fade { z-index: -1; background: linear-gradient(180deg, rgba(16, 10, 11, 0) 60%, rgba(16, 10, 11, .55) 82%, var(--bg) 100%); }

.z-hero-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.z-logo { justify-self: center; display: block; width: min(190px, 50vw); animation: z-bob 5.5s ease-in-out infinite; will-change: transform; }
.z-hero--home .z-logo { width: min(330px, 64vw); }
.z-logo img { width: 100%; height: auto; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .6)); }
@keyframes z-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }

.z-pill {
    display: inline-flex; align-items: center; gap: 12px; position: relative;
    padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(18, 8, 14, .6);
    box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .9);
    text-align: left; transition: transform .2s, background-color .2s, border-color .2s;
}
.z-pill:hover { transform: translateY(-2px); background: rgba(18, 8, 14, .8); border-color: rgba(255, 255, 255, .25); }
.z-pill--ip { justify-self: start; }
.z-pill--discord { justify-self: end; padding: 8px 8px 8px 16px; text-align: right; }
.z-pill-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blaze); color: #fff; font-size: 16px; box-shadow: 0 0 0 5px rgba(255, 68, 51, .2); }
.z-pill--discord .z-pill-icon { background: var(--discord); box-shadow: 0 0 0 5px rgba(88, 101, 242, .22); font-size: 20px; }
.z-pill-text { display: flex; flex-direction: column; line-height: 1.2; }
.z-pill-text strong { font-size: 19px; letter-spacing: .02em; text-transform: uppercase; }
.z-pill-text small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.z-pill.is-copied .z-pill-text small { color: var(--good); }
.z-pill-badge { position: absolute; top: -17px; left: 50px; padding: 3px 9px; border-radius: 999px; background: var(--good); color: #062812; font-size: 11px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(77, 214, 140, .9); }
.z-pill-badge.is-off { background: #4A3A3C; color: var(--muted); box-shadow: none; }
.z-pill-badge i { font-size: 7px; vertical-align: 2px; animation: z-pulse 1.6s ease-in-out infinite; }
.z-pill-badge.is-off i { animation: none; }
@keyframes z-pulse { 50% { opacity: .35; } }
.z-pill-spacer { display: block; }

.z-hero-copy { position: relative; margin-top: 10px; text-align: center; }
.z-hero-copy:empty { display: none; }
.z-kicker--hero { color: #FFD7C2; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.z-hero-title { margin: 0; font-size: clamp(42px, 7vw, 82px); font-weight: 900; line-height: .95; text-transform: uppercase; letter-spacing: .01em; color: #fff; text-shadow: 0 2px 0 #B8261C, 0 4px 0 #8E1A13, 0 6px 0 #66110C, 0 18px 30px rgba(0, 0, 0, .55); }
.z-hero-title span { color: var(--ember); text-shadow: 0 2px 0 #C2700F, 0 4px 0 #8F4E06, 0 6px 0 #5E3203, 0 18px 30px rgba(0, 0, 0, .55); }
.z-hero-text { max-width: 560px; margin: 16px auto 0; font-size: 17px; font-weight: 600; color: #FBE2DA; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.z-hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.z-hero-cta .z-btn--ghost { background: rgba(18, 8, 14, .55); border-color: rgba(255, 255, 255, .18); }

/* ------------------------------------------------------------------ section heads */

.z-section-head { margin-bottom: 22px; }
.z-section-head .z-muted { margin-top: 6px; }
.z-section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ home categories */

.z-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.z-cat {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; gap: 20px; min-height: 180px; padding: 22px 22px 22px 18px;
    border-radius: var(--r-lg); border: 1px solid var(--line);
    background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 16%, var(--panel-2)), var(--panel) 65%);
    box-shadow: var(--shadow);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s;
}
.z-cat::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); opacity: .85; }
.z-cat-glow { position: absolute; z-index: -1; left: -40px; top: 50%; width: 260px; height: 260px; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent), transparent 65%); opacity: .55; transition: opacity .3s, transform .4s; }
.z-cat-art { flex: none; display: grid; place-items: center; width: 112px; height: 112px; }
.z-cat-art img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.z-cat-art i { font-size: 54px; color: var(--accent); }
.z-cat-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.z-cat-title { font-size: 28px; line-height: 1.05; }
.z-cat-blurb { margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.z-cat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--dim); }
.z-cat-meta b { color: var(--text); }
.z-cat-meta span { white-space: nowrap; }
.z-cat-meta i { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); transition: transform .25s, background-color .25s, color .25s; }
.z-cat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 28px 50px -24px color-mix(in srgb, var(--accent) 55%, #000); }
.z-cat:hover .z-cat-art img { transform: scale(1.07) rotate(-4deg); }
.z-cat:hover .z-cat-glow { opacity: .9; transform: translateY(-50%) scale(1.1); }
.z-cat:hover .z-cat-meta i { background: var(--accent); color: #1A0E10; transform: translateX(3px); }

/* ------------------------------------------------------------------ rank ladder */

.z-ladder-card { position: relative; padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--line); background: radial-gradient(800px 300px at 90% -10%, rgba(255, 68, 51, .16), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--shadow); overflow: hidden; }
.z-ladder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: end; margin-top: 8px; }
.z-ladder-grid--solo { grid-template-columns: minmax(0, 1fr); }
.z-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; align-items: end; }
.z-rung { --rank: var(--main); display: flex; }
.z-rung-btn {
    position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 14px 10px 18px; border-radius: 18px; border: 1px solid var(--line);
    background: linear-gradient(180deg, color-mix(in srgb, var(--rank) 15%, var(--panel-3)), var(--panel-2));
    min-height: calc(200px + var(--i, 0) * 26px);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
}
.z-rung-btn::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 3px; border-radius: 3px; background: var(--rank); }
.z-rung-step { position: absolute; top: 10px; left: 12px; font: 800 11px var(--font); letter-spacing: .1em; color: var(--dim); }
.z-rung-art { flex: 1; display: grid; place-items: end center; width: 100%; }
.z-rung-art img { width: 80%; max-width: 132px; height: auto; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.z-rung-name { font-size: 22px; line-height: 1; margin-top: 8px; color: var(--rank); }
.z-rung-price { font-weight: 800; }
.z-rung-price small { color: var(--dim); font-size: 11px; }
.z-rung-list { display: flex; flex-direction: column; gap: 5px; width: 100%; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.z-rung-list span { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.z-rung-list i { width: 14px; font-size: 11px; color: var(--rank); }
.z-rung-btn:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -24px color-mix(in srgb, var(--rank) 70%, #000); border-color: color-mix(in srgb, var(--rank) 55%, transparent); }
.z-rung-btn:hover .z-rung-art img { transform: scale(1.08) rotate(-4deg); }
.z-ladder-arrow { display: none; }

.z-side-rank {
    --rank: #FF62B9;
    position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%;
    padding: 18px; border-radius: 18px; border: 1px dashed color-mix(in srgb, var(--rank) 45%, transparent);
    background: radial-gradient(260px 160px at 80% 0, color-mix(in srgb, var(--rank) 22%, transparent), transparent 70%), rgba(0, 0, 0, .18);
    text-align: left;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s;
}
.z-side-rank:hover { transform: translateY(-4px); border-style: solid; }
.z-side-rank-top { display: flex; align-items: center; gap: 12px; }
.z-side-rank-top img { width: 76px; height: 76px; flex: none; }
.z-side-rank-top > span { display: flex; flex-direction: column; }
.z-side-rank .z-kicker { color: var(--rank); margin-bottom: 2px; }
.z-side-rank .z-h3 { color: var(--rank); }

/* ------------------------------------------------------------------ compare table */

.z-compare { margin-top: 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.z-compare.z-panel { margin-top: 26px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.z-compare summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-weight: 800; }
.z-compare summary::-webkit-details-marker { display: none; }
.z-compare summary::after { content: '\f078'; font: 900 12px 'Font Awesome 6 Free'; margin-left: auto; color: var(--dim); transition: transform .2s; }
.z-compare[open] summary::after { transform: rotate(180deg); }
.z-compare summary i { color: var(--main); }
.z-compare-body { padding: 0 8px 12px; overflow-x: auto; }
.z-table { width: 100%; min-width: 480px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.z-table th, .z-table td { padding: 11px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.z-table tr:last-child td { border-bottom: 0; }
.z-table th:first-child, .z-table td:first-child { text-align: left; color: var(--muted); font-weight: 700; }
.z-table thead th { font: 800 19px/1 var(--display); color: var(--c, var(--text)); padding-top: 4px; }
.z-table thead th small { display: block; margin-top: 4px; font: 700 12px var(--font); color: var(--dim); }
.z-table td { font-weight: 800; }
.z-table td .fa-check { color: var(--good); }
.z-table td .fa-minus { color: var(--dim); opacity: .5; }
.z-table tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.z-table .z-group td { padding-top: 16px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-align: left; border-bottom: 0; }

/* ------------------------------------------------------------------ product grid + cards */

.z-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
/* A short shelf gets wider cards instead of one card per narrow column. */
.z-grid--few { grid-template-columns: repeat(var(--n), minmax(0, 360px)); }
.z-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Currency packs: the amount is the headline. */
.z-card--gem .z-card-art { height: 180px; }
.z-gem-amount { display: flex; align-items: baseline; gap: 8px; font: 900 30px/1 var(--display); color: #fff; }
.z-gem-amount small { font: 800 12px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--tint); }
.z-card--gem .z-card-desc { font-size: 12px; font-weight: 700; color: var(--dim); }

.z-card {
    --tint: var(--accent);
    position: relative; display: flex; flex-direction: column;
    border-radius: var(--r); border: 1px solid var(--line); overflow: hidden;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 11%, var(--panel-2)), var(--panel) 60%);
    box-shadow: var(--shadow);
    container-type: inline-size;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s;
}
.z-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--tint) 45%, transparent); box-shadow: 0 30px 50px -26px color-mix(in srgb, var(--tint) 60%, #000); }
.z-card-art { position: relative; display: grid; place-items: center; height: 210px; padding: 0; border: 0; background: none; overflow: hidden; }
.z-card-glow { position: absolute; inset: 8% 12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tint) 45%, transparent), transparent 70%); opacity: .4; transition: opacity .3s, transform .4s; pointer-events: none; }
/* Pinned to the art box: a percentage height on a grid item in an auto row never resolves. */
.z-card-art img { position: absolute; left: 14px; top: 12px; width: calc(100% - 28px); height: calc(100% - 20px); object-fit: contain; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.z-card-art i { position: relative; font-size: 64px; color: var(--tint); }
.z-card:hover .z-card-art img { transform: translateY(-6px) scale(1.05) rotate(-3deg); }
.z-card:hover .z-card-glow { opacity: .7; transform: scale(1.12); }
.z-card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 2px 18px 18px; }
.z-card-name { margin: 0; font-size: 23px; line-height: 1.1; }
.z-card-name em { font-style: normal; color: var(--tint); }
.z-card-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.z-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.z-card-btns { display: flex; gap: 8px; }
@container (max-width: 250px) {
    .z-card-foot { flex-direction: column; align-items: stretch; gap: 12px; }
    .z-card-btns .z-btn { flex: 1; }
    .z-card .z-chip { white-space: normal; height: auto; min-height: 24px; padding: 4px 8px; line-height: 1.25; }
}

.z-price { margin: 0; font-size: 25px; line-height: 1; color: var(--text); white-space: nowrap; }
.z-price small { font: 700 11px var(--font); color: var(--dim); letter-spacing: .05em; }
.z-price s { font: 600 13px var(--font); color: var(--dim); margin-left: 6px; }
.z-price--lg { font-size: 36px; margin: 6px 0 4px; }
.z-price--lg small { font-size: 13px; }

.z-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.z-chips:empty { display: none; }
.z-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; background: color-mix(in srgb, var(--tint, var(--accent)) 17%, transparent); color: color-mix(in srgb, var(--tint, var(--accent)) 62%, #fff); border: 1px solid color-mix(in srgb, var(--tint, var(--accent)) 30%, transparent); }
.z-chip--soft { background: rgba(255, 255, 255, .05); color: var(--muted); border-color: var(--line-2); }
.z-chip--gold { background: rgba(255, 178, 63, .15); color: #FFD27A; border-color: rgba(255, 178, 63, .35); }

.z-ribbon { position: absolute; z-index: 3; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--blaze); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .7); }
.z-ribbon--sale { background: linear-gradient(135deg, #4DD68C, #1FB86A); color: #052414; }
.z-ribbon--best { background: linear-gradient(135deg, #FFD34D, #FF9F1C); color: #3A2000; }
.z-ribbon--sub { background: rgba(18, 8, 14, .75); border: 1px solid rgba(255, 255, 255, .14); color: var(--text); }

/* ------------------------------------------------------------------ crate strip (home) */

.z-crates { position: relative; padding: 30px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255, 178, 63, .25); background: radial-gradient(600px 260px at 85% 0, rgba(255, 140, 40, .25), transparent 65%), linear-gradient(180deg, #24150F, #170E0B); box-shadow: 0 30px 60px -30px rgba(200, 90, 20, .5); }
.z-crates::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(1.6px 1.6px at 12% 22%, #FFB23F, transparent), radial-gradient(1.2px 1.2px at 32% 70%, #FF7A2E, transparent), radial-gradient(1.6px 1.6px at 56% 16%, #FFD27A, transparent), radial-gradient(1.2px 1.2px at 76% 56%, #FF7A2E, transparent), radial-gradient(1.6px 1.6px at 91% 30%, #FFB23F, transparent), radial-gradient(1.2px 1.2px at 22% 86%, #FFD27A, transparent); opacity: .55; }
.z-crates .z-section-head, .z-crates .z-grid { position: relative; z-index: 1; }
.z-crates .z-kicker { color: var(--ember); }
.z-crates .z-card { background: linear-gradient(180deg, #2E1B12, #1C110C 65%); border-color: rgba(255, 178, 63, .16); }

.z-gems { position: relative; padding: 30px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255, 77, 122, .25); background: radial-gradient(640px 280px at 12% 0, rgba(255, 60, 110, .22), transparent 65%), linear-gradient(180deg, #26121A, #180B10); box-shadow: 0 30px 60px -30px rgba(200, 30, 80, .45); }
.z-gems .z-kicker { color: #FF7FA0; }
.z-gems .z-section-head .z-muted { max-width: 620px; }
.z-gems .z-card { background: linear-gradient(180deg, #33161F, #1E0E14 65%); border-color: rgba(255, 77, 122, .16); }
.z-btn--ruby { background: linear-gradient(135deg, #FF4D7A, #E8264B); color: #fff; box-shadow: 0 10px 24px -10px rgba(232, 38, 75, .8), inset 0 -3px 0 rgba(110, 8, 30, .3); }

/* ------------------------------------------------------------------ category page */

.z-tabs { display: flex; gap: 8px; margin-bottom: 26px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.z-tabs::-webkit-scrollbar { display: none; }
.z-tab { display: flex; align-items: center; gap: 8px; flex: none; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 700; font-size: 14px; transition: color .15s, border-color .15s, background-color .15s; }
.z-tab img { width: 26px; height: 26px; object-fit: contain; }
.z-tab i { color: var(--accent, var(--muted)); }
.z-tab:hover { color: var(--text); border-color: var(--line-2); }
.z-tab.is-active { color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); box-shadow: inset 0 -3px 0 var(--accent); }

.z-cat-head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.z-cat-head-art { flex: none; display: grid; place-items: center; width: 100px; height: 100px; border-radius: 24px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 70%), var(--panel-2); border: 1px solid var(--line); }
.z-cat-head-art img { width: 86%; height: 86%; object-fit: contain; }
.z-cat-head-art i { font-size: 38px; color: var(--accent); }
.z-cat-head .z-muted { margin-top: 6px; max-width: 640px; }

.z-note { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); font-size: 14px; }
.z-note > i { margin-top: 3px; color: var(--accent); }
.z-note--sm { margin: 0; padding: 10px 12px; font-size: 12.5px; }

.z-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 24px; text-align: center; }
.z-empty .z-btn { margin-top: 10px; }
.z-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: 26px; margin-bottom: 4px; }

/* ------------------------------------------------------------------ prose (package descriptions) */

.z-prose { color: var(--muted); font-size: 14.5px; }
.z-prose > :first-child { margin-top: 0; }
.z-prose h1, .z-prose h2, .z-prose h3, .z-prose h4 { margin: 20px 0 8px; font: 800 18px/1.2 var(--display); color: var(--text); }
.z-prose p { margin: 8px 0; }
.z-prose a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }
.z-prose strong { color: var(--text); font-weight: 800; }
.z-prose em { font-style: normal; font-weight: 700; color: var(--text); }
.z-perks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.z-perks li { position: relative; padding: 6px 0 6px 28px; color: var(--text); font-weight: 600; }
.z-perks li::before { content: '\f00c'; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font: 900 9px 'Font Awesome 6 Free'; color: #1A0E10; background: var(--tint, var(--accent)); }
.z-perks li.is-inherit { color: var(--muted); }
.z-perks li.is-inherit::before { content: '\f077'; background: rgba(255, 255, 255, .14); color: var(--text); }
.z-perks code { background: rgba(255, 255, 255, .07); color: #fff; }

/* ------------------------------------------------------------------ modules + help */

.z-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.z-modules > :only-child, .z-modules > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.z-module { display: flex; flex-direction: column; gap: 14px; padding: 22px; overflow: hidden; }
.z-module--wide { grid-column: 1 / -1; }
.z-module-head { display: flex; align-items: center; gap: 14px; }
.z-module-head .z-kicker { margin-bottom: 2px; }
.z-module-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: 19px; }
.z-goal-pct { margin-left: auto; font: 900 34px/1 var(--display); color: var(--ember); }
.z-goal { position: relative; height: 18px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); overflow: hidden; }
.z-goal span { position: absolute; inset: 0 auto 0 0; width: var(--pct); border-radius: inherit; background: var(--ember-grad); }
.z-goal.is-striped span::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .2) 0 10px, transparent 10px 20px); background-size: 28px 28px; }
.z-goal.is-animated span::after { animation: z-stripes 1.2s linear infinite; }
@keyframes z-stripes { to { background-position: 28px 0; } }
.z-faces { display: flex; flex-wrap: wrap; gap: 8px; }
.z-face { position: relative; width: 46px; height: 46px; border-radius: 12px; background: var(--panel-3); border: 1px solid var(--line-2); transition: transform .2s; }
.z-face img { width: 100%; height: 100%; border-radius: 11px; image-rendering: pixelated; }
.z-face:hover, .z-face:focus-visible { transform: translateY(-3px) scale(1.06); z-index: 2; }
.z-face[data-tip]:hover::after, .z-face[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: #0B0708; border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow); }
.z-module--top { min-height: 150px; padding-right: 130px; }
.z-top-bust { position: absolute; right: 10px; bottom: -6px; width: 112px; pointer-events: none; }
.z-top-bust img { width: 100%; image-rendering: pixelated; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); }
.z-top-name { font: 800 26px/1.1 var(--display); }

.z-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.z-help-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.z-help-card .z-row { margin-top: auto; padding-top: 6px; }
.z-help-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: 19px; }

/* ------------------------------------------------------------------ forms */

.z-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.z-input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .3); color: var(--text); font: 600 15px var(--font); transition: border-color .15s, box-shadow .15s; }
.z-input:focus { outline: none; border-color: var(--main); box-shadow: 0 0 0 4px rgba(255, 68, 51, .2); }
.z-input-wrap { position: relative; }
.z-input-wrap > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.z-input-wrap .z-input { padding-left: 44px; }
.z-input-row { display: flex; gap: 8px; }
.z-input-row .z-input { height: 42px; font-size: 14px; }
.z-input-row .z-btn { height: 42px; }
.z-hint { font-size: 12.5px; color: var(--muted); }
.z-error { color: var(--bad); font-size: 13px; font-weight: 700; }
.z-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.z-seg button { height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 800; font-size: 13px; transition: background-color .15s, color .15s; }
.z-seg button.is-on { background: var(--blaze); color: #fff; }

/* ------------------------------------------------------------------ overlays: modal + drawer */

.z-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.z-overlay-bg { position: absolute; inset: 0; background: rgba(8, 4, 6, .78); opacity: 0; transition: opacity .22s; }
.z-overlay.is-open .z-overlay-bg { opacity: 1; }
.z-modal { --tint: var(--accent); position: relative; width: 100%; max-width: 700px; max-height: calc(100vh - 40px); overflow-y: auto; display: flex; flex-direction: column; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--bg-2)); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .22s, transform .26s cubic-bezier(.2, .8, .2, 1); }
.z-overlay.is-open .z-modal { opacity: 1; transform: none; }
.z-modal-close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); color: var(--muted); }
.z-modal-close:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.z-modal-head { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; padding: 26px 26px 18px; border-bottom: 1px solid var(--line); background: radial-gradient(500px 220px at 0 0, color-mix(in srgb, var(--tint) 22%, transparent), transparent 70%); }
.z-modal-art { position: relative; display: grid; place-items: center; height: 200px; border-radius: 20px; background: rgba(0, 0, 0, .22); overflow: hidden; }
.z-modal-art img { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; object-fit: contain; animation: z-bob 6s ease-in-out infinite; }
.z-modal-art i { font-size: 60px; color: var(--tint); }
.z-modal-title { min-width: 0; padding-right: 30px; }
.z-modal-title .z-chips { margin: 10px 0 2px; }
.z-modal-section { padding: 20px 26px; }
.z-modal-section > * + * { margin-top: 12px; }
.z-modal-foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 16px 26px 22px; background: linear-gradient(180deg, rgba(22, 14, 16, 0), var(--bg-2) 30%); }
.z-modal-foot .z-btn--blaze { flex: 1; }

.z-overlay--drawer { place-items: stretch end; padding: 0; }
.z-drawer { position: relative; width: min(430px, 100vw); height: 100%; display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .8); transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.z-overlay.is-open .z-drawer { transform: none; }
.z-drawer-loading { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(16, 10, 11, .6); }
.z-spinner { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--main); animation: z-spin .8s linear infinite; }
@keyframes z-spin { to { transform: rotate(360deg); } }
.z-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.z-drawer-head h2 { font-size: 22px; }
.z-drawer-head i { color: var(--main); margin-right: 6px; }
.z-drawer-user { padding: 14px 20px 0; }
.z-user-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.z-user-card img { width: 44px; height: 44px; border-radius: 10px; image-rendering: pixelated; background: var(--panel-3); }
.z-user-card > span { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.z-user-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-user-card small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.z-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.z-drawer-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 50px 10px; }
.z-who { display: flex; flex-direction: column; gap: 14px; padding: 6px 0; }
.z-who-face { display: flex; justify-content: center; }
.z-who-face img { width: 96px; height: 96px; border-radius: 22px; image-rendering: pixelated; background: var(--panel-3); border: 1px solid var(--line-2); box-shadow: 0 0 0 6px rgba(255, 68, 51, .1); }
.z-line { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.z-line-art { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.z-line-art img { width: 90%; height: 90%; object-fit: contain; }
.z-line-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.z-line-name { margin: 0; font: 800 16px/1.2 var(--display); }
.z-line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.z-line-price { font: 800 16px var(--display); }
.z-stepper { display: inline-flex; align-items: center; border-radius: 10px; border: 1px solid var(--line-2); overflow: hidden; }
.z-stepper button { width: 30px; height: 30px; border: 0; background: rgba(255, 255, 255, .05); color: var(--muted); font-size: 11px; }
.z-stepper button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.z-stepper span { min-width: 30px; text-align: center; font-weight: 800; font-size: 13px; }
.z-codes { margin-top: 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.z-codes summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 14px; font-weight: 800; font-size: 14px; }
.z-codes summary::-webkit-details-marker { display: none; }
.z-codes summary i { color: var(--ember); }
.z-codes summary::after { content: '\f078'; font: 900 11px 'Font Awesome 6 Free'; margin-left: auto; color: var(--dim); transition: transform .2s; }
.z-codes[open] summary::after { transform: rotate(180deg); }
.z-codes-body { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; }
.z-applied { display: flex; flex-wrap: wrap; gap: 6px; }
.z-applied .z-chip { --tint: var(--good); }
.z-applied button { border: 0; background: none; padding: 0; color: inherit; opacity: .7; }
.z-drawer-foot { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 22px; border-top: 1px solid var(--line); background: var(--panel); }
.z-drawer-total { display: flex; align-items: baseline; justify-content: space-between; font-weight: 800; color: var(--muted); }
.z-drawer-total strong { font: 900 30px/1 var(--display); color: var(--text); }
.z-drawer-total small { font: 700 11px var(--font); color: var(--dim); }

/* toast */
.z-toast { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; max-width: min(380px, calc(100vw - 40px)); padding: 13px 16px; border-radius: 14px; background: #0E090A; border: 1px solid var(--line-2); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .9); font-weight: 700; font-size: 14px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s; }
.z-toast.is-shown { transform: none; opacity: 1; }
.z-toast i { color: var(--main); }
.z-toast.is-good i { color: var(--good); }
.z-toast.is-bad { border-color: rgba(255, 92, 101, .4); }
.z-toast.is-bad i { color: var(--bad); }

/* Shown only while config.js has no Tebex token. */
html[data-preview] .z-foot-legal { padding-bottom: 64px; }
html[data-preview] body::after { content: 'Preview data, checkout not connected yet'; position: fixed; z-index: 110; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 178, 63, .14); border: 1px solid rgba(255, 178, 63, .4); color: #FFD27A; font-size: 11px; font-weight: 800; letter-spacing: .04em; pointer-events: none; }

/* thanks page */
.z-thanks { position: relative; overflow: hidden; }
.z-thanks .z-empty-icon { width: 84px; height: 84px; border-radius: 26px; font-size: 36px; --accent: var(--good); animation: z-pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes z-pop { from { transform: scale(.3); opacity: 0; } }

/* ------------------------------------------------------------------ footer */

.z-foot { position: relative; z-index: 2; margin-top: 40px; background: #0C0708; }
.z-ember-bar { height: 4px; background: var(--ember-grad); }
.z-foot-in { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; padding-top: 40px; padding-bottom: 30px; }
.z-foot-brand .z-brand { margin-bottom: 12px; }
.z-foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.z-foot-col a, .z-foot-col button { color: var(--muted); font-weight: 600; transition: color .15s; background: none; border: 0; padding: 0; text-align: left; font-size: 14px; }
.z-foot-col a:hover, .z-foot-col button:hover { color: var(--text); }
.z-foot-head { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.z-foot-ip { font: 800 19px/1.2 var(--display); }
.z-foot-ip i { color: var(--main); font-size: 15px; margin-right: 6px; }
.z-foot-legal { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.z-pay { display: flex; gap: 10px; font-size: 24px; color: var(--muted); }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
    .z-ladder-grid { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 980px) {
    .z-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .z-nav { display: none; }
    .z-burger { display: grid; place-items: center; }
    .z-ladder-grid { grid-template-columns: 1fr; }
    .z-help { grid-template-columns: 1fr; }
    .z-foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    body { font-size: 14.5px; }
    .z-wrap { padding-left: 16px; padding-right: 16px; }
    .z-section { padding-top: 36px; }
    .z-section--tight { padding-top: 20px; }
    .z-hero { padding: 18px 0 34px; min-height: 0; }
    .z-hero--home { padding-bottom: 50px; }
    .z-hero:not(.z-hero--home) .z-logo { width: min(170px, 44vw); }
    .z-hero--home .z-logo { width: min(230px, 58vw); }
    .z-hero-copy { margin-top: 6px; }
    .z-hero-text { font-size: 15px; }
    .z-hero-cta { margin-top: 18px; }
    .z-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 10px; }
    .z-logo { grid-column: 1 / -1; grid-row: 1; }
    .z-pill { max-width: 100%; min-width: 0; padding: 6px 12px 6px 6px; }
    .z-pill--discord { padding: 6px 6px 6px 12px; }
    .z-pill-icon { width: 36px; height: 36px; font-size: 14px; }
    .z-pill-text strong { font-size: 15px; white-space: nowrap; }
    .z-pill-text small { font-size: 9.5px; letter-spacing: .06em; white-space: nowrap; }
    .z-pill-spacer { display: none; }
    .z-hero-in:not(:has(.z-pill--discord:not([hidden]))) .z-pill--ip { grid-column: 1 / -1; justify-self: center; }
    .z-pill-badge { left: 44px; }
    .z-cart-total, .z-user span { display: none; }
    .z-cats { grid-template-columns: 1fr; }
    .z-cat { min-height: 0; padding: 16px; gap: 14px; }
    .z-cat-art { width: 96px; height: 96px; }
    .z-cat-title { font-size: 25px; }
    .z-ladder-card, .z-crates, .z-gems { padding: 20px; }
    .z-card--gem .z-card-art { height: 130px; }
    .z-gem-amount { font-size: 23px; flex-wrap: wrap; gap: 2px 6px; }
    .z-rung-list span { font-size: 11.5px; }
    .z-ladder { grid-template-columns: repeat(var(--n, 3), minmax(186px, 1fr)); overflow-x: auto; padding: 8px 2px 10px; margin: -8px -2px 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
    .z-rung-list span { justify-content: flex-start; text-align: left; line-height: 1.3; }
    .z-rung { scroll-snap-align: start; }
    .z-rung-btn { min-height: calc(176px + var(--i, 0) * 18px); }
    .z-rung-name { font-size: 19px; }
    .z-grid, .z-grid--few, .z-grid--3 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .z-card-art { height: 150px; }
    .z-card-body { padding: 2px 12px 14px; }
    .z-card-name { font-size: 19px; }
    .z-card-foot { flex-direction: column; align-items: stretch; }
    .z-card-btns .z-btn { flex: 1; }
    .z-price { font-size: 21px; }
    .z-cat-head { gap: 14px; }
    .z-cat-head-art { width: 76px; height: 76px; border-radius: 18px; }
    .z-modal-head { grid-template-columns: 1fr; padding: 22px 20px 16px; }
    .z-modal-art { height: 180px; }
    .z-modal-section { padding: 16px 20px; }
    .z-modal-foot { padding: 14px 20px 18px; }
    .z-overlay { padding: 10px; }
    .z-modules { grid-template-columns: 1fr; }
    .z-foot-in { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-top: 30px; }
    .z-foot-brand { grid-column: 1 / -1; }
    .z-module--top { padding-right: 104px; }
    .z-top-bust { width: 92px; }
}
@media (max-width: 400px) {
    .z-card-art { height: 128px; }
    .z-card-desc { display: none; }
}
@media (max-width: 380px) {
    .z-pill { gap: 8px; padding: 5px 10px 5px 5px; }
    .z-pill-icon { width: 32px; height: 32px; font-size: 13px; }
    .z-pill-text strong { font-size: 13.5px; }
    .z-pill-text small { font-size: 9px; letter-spacing: .04em; }
    .z-pill-badge { left: 38px; }
    .z-brand-name b { display: none; }
}
@media (max-width: 340px) {
    .z-grid, .z-grid--few, .z-grid--3 { grid-template-columns: 1fr; }
}

html[data-noanim] *, html[data-noanim] *::before, html[data-noanim] *::after { animation: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .z-hero-layer { transform: none !important; }
}
