/* ============================================================
 * vex.rip · design system
 * squared off, split-layout, no monospace anywhere
 * ============================================================ */
:root {
    --bg:       #000000;
    --bg-2:     #0a0a0a;
    --bg-3:     #141414;
    --bg-4:     #1c1c1c;
    --bg-5:     #262626;
    --line:     rgba(255, 255, 255, 0.06);
    --line-2:   rgba(255, 255, 255, 0.13);
    --line-3:   rgba(255, 255, 255, 0.22);

    --text:     #f4f6fa;
    --text-2:   #a4abb5;
    --text-3:   #6b7280;
    --text-4:   #3f4551;

    --buy:      #ffffff;
    --buy-hi:   #e6e6e6;
    --buy-dim:  rgba(255, 255, 255, 0.10);
    --buy-glow: rgba(255, 255, 255, 0.35);

    /* status colors — only used inside pills/badges */
    --status-good: #3fb883;
    --status-warn: #4a8eff;
    --status-bad:  #ff5757;

    --hot:      #ff5757;
    --success:  #3fb883;
    --wave:     #ffffff;
    --purple:   #4a4a4a;
    --gold:     #e6e6e6;

    --r-sm:     4px;
    --r-md:     6px;
    --r-lg:     8px;
    --r-xl:     10px;

    --sidebar-w: 300px;
    --nav-h:    58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
html, body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: -0.003em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(255, 255, 255, 0.25); color: #fff; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; outline: 0; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

body {
    background: #000;
    position: relative;
}
/* keep the actual page above the rain layer */
.top, .ann-bar, main.wrap, .foot { position: relative; z-index: 3; }

/* ============================================================
 * announcement bar (site-wide, above main)
 * ============================================================ */
.ann-bar {
    display: flex; flex-direction: column;
    gap: 1px;
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid var(--line);
}
.ann-bar .ann-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    font-size: 13px;
    color: var(--text);
    background: linear-gradient(90deg, rgba(255,255,255,.03), transparent 60%);
    border-left: 3px solid var(--text-3);
    animation: annSlide .35s cubic-bezier(.2,.7,.2,1) both;
}
.ann-bar .ann-item .kind {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px;
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-2);
}
.ann-bar .ann-item .kind::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
    animation: ledPulse 2s ease-in-out infinite;
}
.ann-bar .ann-item .msg {
    min-width: 0;
}
.ann-bar .ann-item .msg .t {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -.01em;
}
.ann-bar .ann-item .msg .b {
    font-size: 12.5px;
    color: var(--text-2);
    margin-top: 1px;
}
.ann-bar .ann-item .x {
    width: 24px; height: 24px;
    display: grid; place-items: center;
    color: var(--text-3);
    border-radius: 4px;
    background: transparent;
    transition: color .15s, background .15s;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.ann-bar .ann-item .x:hover { color: var(--text); background: rgba(255,255,255,.06); }

.ann-bar .ann-item.info    { border-left-color: var(--text-2); }
.ann-bar .ann-item.info    .kind { color: var(--text); }
.ann-bar .ann-item.success { border-left-color: var(--status-good); background: linear-gradient(90deg, rgba(63,184,131,.10), transparent 60%); }
.ann-bar .ann-item.success .kind { color: var(--status-good); border-color: rgba(63,184,131,.4); }
.ann-bar .ann-item.warn    { border-left-color: var(--status-warn); background: linear-gradient(90deg, rgba(74,142,255,.10), transparent 60%); }
.ann-bar .ann-item.warn    .kind { color: var(--status-warn); border-color: rgba(74,142,255,.4); }
.ann-bar .ann-item.maint   { border-left-color: var(--status-bad); background: linear-gradient(90deg, rgba(255,92,92,.10), transparent 60%); }
.ann-bar .ann-item.maint   .kind { color: var(--status-bad); border-color: rgba(255,92,92,.4); }

@keyframes annSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
    .ann-bar .ann-item { grid-template-columns: 1fr auto; padding: 10px 14px; }
    .ann-bar .ann-item .kind { display: none; }
}

/* small utility label: was mono, now uppercase manrope with letter-spacing */
.label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ============================================================
 * top bar (single-line, dense, squared)
 * ============================================================ */
.top {
    position: sticky; top: 0; z-index: 60;
    height: var(--nav-h);
    padding: 0 20px;
    background: rgba(6, 7, 11, 0.85);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 18px;
}
.brand {
    display: inline-flex; align-items: center;
    text-decoration: none;
    line-height: 0;
    padding: 4px 0;
    flex-shrink: 0;
    transition: filter .2s;
}
.brand img {
    height: 34px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255,255,255,.15));
}
.brand:hover img { filter: drop-shadow(0 0 16px rgba(255,255,255,.35)); }

.top-nav {
    display: flex; align-items: center; gap: 2px;
    margin-left: 8px;
}
.top-nav a {
    padding: 6px 12px;
    font-weight: 500;
    font-size: 13.5px;
    color: var(--text-2);
    border-radius: var(--r-sm);
    display: inline-flex; align-items: center; gap: 6px;
    transition: color .12s, background .12s;
    white-space: nowrap;
}
.top-nav a:hover, .top-nav a.on { color: var(--text); background: rgba(255,255,255,.04); }
.top-nav a.on { background: var(--bg-3); }
.top-nav .new-tag {
    padding: 1px 6px;
    background: var(--buy);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: 0.06em;
    border-radius: 3px;
    text-transform: uppercase;
}

.top-spacer { flex: 1; }

.icon-btn {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text-2);
    transition: color .12s, background .12s, border-color .12s;
    position: relative;
    text-decoration: none;
    flex-shrink: 0;
}
.icon-btn:hover { color: var(--text); background: var(--bg-3); border-color: var(--line-2); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.discord { color: var(--text-2); }
.icon-btn.discord:hover { color: var(--text); }
.icon-btn .count {
    position: absolute; top: -4px; right: -4px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    background: var(--buy);
    color: #0a0a0a;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    display: grid; place-items: center;
    box-shadow: 0 0 8px var(--buy-glow);
}

.locale {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 10px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
}
.locale .cur { color: var(--text); font-weight: 700; }

/* ============================================================
 * shell: hero (full-width) then split (sidebar + main)
 * ============================================================ */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
 * hero (landing only)
 * ============================================================ */
.hero {
    padding: 46px 0 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 44px;
    align-items: end;
    border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 26px; } }
/* HUD-grid framed logo mark */
.hero-mark {
    position: relative;
    display: block;
    width: 220px; height: 220px;
    margin: 0 0 22px -10px;
    background:
        /* fine sub-grid: 10 divisions */
        linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 22px 22px,
        /* major grid lines: every 5th */
        linear-gradient(to right, rgba(255,255,255,.14) 1px, transparent 1px) 0 0 / 110px 110px,
        linear-gradient(to bottom, rgba(255,255,255,.14) 1px, transparent 1px) 0 0 / 110px 110px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 60%, transparent 100%);
    mask-image: radial-gradient(circle at 50% 50%, black 60%, transparent 100%);
}
/* the actual logo, centered on top of the grid */
.hero-mark::before {
    content: '';
    position: absolute; inset: 0;
    background: url('/logo.png') center/60% no-repeat;
    filter: drop-shadow(0 0 22px rgba(255,255,255,.5)) drop-shadow(0 0 60px rgba(255,255,255,.15));
    animation: markPulse 4s ease-in-out infinite;
    z-index: 2;
}
/* corner brackets */
.hero-mark::after {
    content: '';
    position: absolute; inset: 0;
    background:
        /* top-left corner */
        linear-gradient(to right, #fff 14px, transparent 14px) 0 0/50% 1px no-repeat,
        linear-gradient(to bottom, #fff 14px, transparent 14px) 0 0/1px 50% no-repeat,
        /* top-right */
        linear-gradient(to left, #fff 14px, transparent 14px) 100% 0/50% 1px no-repeat,
        linear-gradient(to bottom, #fff 14px, transparent 14px) 100% 0/1px 50% no-repeat,
        /* bottom-left */
        linear-gradient(to right, #fff 14px, transparent 14px) 0 100%/50% 1px no-repeat,
        linear-gradient(to top, #fff 14px, transparent 14px) 0 100%/1px 50% no-repeat,
        /* bottom-right */
        linear-gradient(to left, #fff 14px, transparent 14px) 100% 100%/50% 1px no-repeat,
        linear-gradient(to top, #fff 14px, transparent 14px) 100% 100%/1px 50% no-repeat;
    opacity: .8;
    pointer-events: none;
}
@keyframes markPulse {
    0%,100% { filter: drop-shadow(0 0 18px rgba(255,255,255,.4))  drop-shadow(0 0 50px rgba(255,255,255,.12)); }
    50%     { filter: drop-shadow(0 0 28px rgba(255,255,255,.65)) drop-shadow(0 0 80px rgba(255,255,255,.25)); }
}
.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(38px, 5.5vw, 64px);
    letter-spacing: -0.038em;
    line-height: 1;
    margin-bottom: 16px;
}
.hero h1 .accent { color: var(--buy); text-shadow: 0 0 60px var(--buy-glow); }
.hero p.tag {
    font-size: 15px;
    color: var(--text-2);
    max-width: 560px;
    line-height: 1.6;
}
.hero p.tag b { color: var(--text); font-weight: 700; }
.hero-stats {
    display: flex; gap: 22px;
    padding-bottom: 6px;
    flex-wrap: wrap;
}
.hero-stats .stat {
    min-width: 100px;
}
.hero-stats .stat .v {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.025em;
    color: var(--text);
    line-height: 1;
}
.hero-stats .stat .v .u { color: var(--buy); }
.hero-stats .stat .k {
    margin-top: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 600;
}

/* ============================================================
 * split layout: sidebar + main
 * ============================================================ */
.split {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    gap: 28px;
    padding: 28px 0 40px;
    align-items: flex-start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 20px; } }

.side {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    display: flex; flex-direction: column;
    gap: 18px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px 18px 20px;
    max-height: calc(100vh - var(--nav-h) - 40px);
    overflow-y: auto;
}
@media (max-width: 900px) { .side { position: static; max-height: none; } }

.side-search {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: border-color .15s;
}
.side-search:focus-within { border-color: var(--buy-dim); box-shadow: 0 0 0 3px var(--buy-dim); }
.side-search svg { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }
.side-search input {
    flex: 1;
    font-size: 13px;
    min-width: 0;
}
.side-search input::placeholder { color: var(--text-3); }
.side-search .k {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    color: var(--text-3);
    background: var(--bg-4);
    padding: 3px 6px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.side-search .clr {
    color: var(--text-3);
    font-size: 16px;
    line-height: 1;
    display: none;
}
.side-search.hasq .clr { display: inline; cursor: pointer; }
.side-search.hasq .k { display: none; }

.side-block { display: flex; flex-direction: column; gap: 8px; }
.side-block h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
    display: flex; align-items: center; justify-content: space-between;
}
.side-block h4 .count { color: var(--text-4); font-weight: 500; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px;
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
    cursor: pointer;
    transition: background .12s, color .12s;
    text-decoration: none;
    border-left: 2px solid transparent;
}
.side-item:hover { background: var(--bg-3); color: var(--text); }
.side-item.on {
    background: var(--bg-3);
    color: var(--text);
    border-left-color: var(--buy);
}
.side-item .ic {
    width: 20px; height: 20px;
    border-radius: 3px;
    display: grid; place-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 10px;
    color: #fff;
    background: var(--bg-4);
    flex-shrink: 0;
    text-transform: uppercase;
    line-height: 1;
}
.side-item .n { flex: 1; }
.side-item .c {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 10.5px;
    color: var(--text-3);
    padding: 1px 6px;
    background: var(--bg-4);
    border-radius: 3px;
}
.side-item.on .c { color: var(--buy); background: var(--buy-dim); }

.side-sep { height: 1px; background: var(--line); margin: 4px 0; }

.side-radio { display: flex; flex-direction: column; gap: 2px; }
.side-radio label {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    transition: background .12s, color .12s;
}
.side-radio label:hover { background: var(--bg-3); color: var(--text); }
.side-radio input { display: none; }
.side-radio input:checked + span { color: var(--text); }
.side-radio label .dot {
    width: 12px; height: 12px;
    border: 1.5px solid var(--line-3);
    border-radius: 50%;
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: border-color .12s;
}
.side-radio input:checked ~ .dot { border-color: var(--buy); }
.side-radio input:checked ~ .dot::after {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--buy);
}

/* ============================================================
 * main
 * ============================================================ */
.main { min-width: 0; }

.crumbs {
    display: flex; align-items: center; gap: 10px;
    font-size: 12.5px;
    color: var(--text-3);
    margin-bottom: 16px;
}
.crumbs a { color: var(--text-3); transition: color .12s; }
.crumbs a:hover { color: var(--text); }
.crumbs .cur { color: var(--text); font-weight: 600; }
.crumbs svg { width: 12px; height: 12px; color: var(--text-4); }

.page-title {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
    margin-bottom: 8px;
}
.page-title h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.028em;
    line-height: 1.1;
    display: inline-flex; align-items: baseline; gap: 10px;
}
.page-title h1 .count {
    padding: 3px 10px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--text-2);
    font-weight: 600;
}
.page-desc {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 22px;
}

.tools {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; margin-bottom: 20px; flex-wrap: wrap;
    padding: 10px 12px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.tools .cnt {
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 500;
    padding-left: 4px;
}
.tools .cnt b { color: var(--text); font-weight: 700; }
.tools .sort {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 12.5px;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
.tools .sort:hover { background: var(--bg-4); border-color: var(--line-2); }
.tools .sort svg { width: 11px; height: 11px; color: var(--text-3); }

/* ============================================================
 * product grid + cards
 * ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    padding-bottom: 20px;
}
.card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
}
.card:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.card .art {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-3);
    overflow: hidden;
    display: grid; place-items: center;
    border-bottom: 1px solid var(--line);
}
.card .art .bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.55;
    transition: transform .5s ease, opacity .3s;
}
.card:hover .art .bg { transform: scale(1.06); opacity: .82; }
.card .art .brand {
    position: relative; z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 40px;
    letter-spacing: -0.035em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.6);
    text-align: center;
    padding: 20px;
    line-height: 1;
    text-transform: uppercase;
}
.card .art .brand.long { font-size: 26px; text-transform: none; letter-spacing: -0.02em; }
.card .art .brand .dot { color: var(--wave); }
.card .art .tag-featured {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 8px;
    background: var(--gold);
    color: #0a0a0a;
    border-radius: var(--r-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 2;
}
.card .art .tag-status {
    position: absolute; bottom: 8px; left: 8px;
    padding: 3px 9px 3px 7px;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--success);
    z-index: 2;
}
.card .art .tag-status { color: var(--status-good); }
.card .art .tag-status .d { width: 5px; height: 5px; border-radius: 50%; background: var(--status-good); box-shadow: 0 0 6px var(--status-good); animation: ledPulse 1.8s ease-in-out infinite; }
.card .art .tag-status.warn { color: var(--status-warn); }
.card .art .tag-status.warn .d { background: var(--status-warn); box-shadow: 0 0 6px var(--status-warn); }
.card .art .tag-status.danger { color: var(--status-bad); }
.card .art .tag-status.danger .d { background: var(--status-bad); box-shadow: 0 0 6px var(--status-bad); }
.card .art .oos {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px 14px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    border-radius: var(--r-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    z-index: 3;
    border: 1px solid var(--line-2);
}
.card.oos .art .bg { filter: grayscale(1); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.card .name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: -0.015em;
    color: var(--text);
    line-height: 1.15;
}
.card .price-line { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--text-3); }
.card .from { color: var(--text-3); font-weight: 500; }
.card .price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--text);
}
.card .dur { color: var(--text-3); font-weight: 500; }
.card .actions {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6px; margin-top: 2px;
}
.card .btn {
    padding: 8px 12px;
    border-radius: var(--r-sm);
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: background .15s, transform .15s;
    text-decoration: none;
}
.card .btn.add { background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text); }
.card .btn.add:hover { background: var(--bg-4); }
.card .btn.buy { background: var(--buy); color: #0a0a0a; font-weight: 700; }
.card .btn.buy:hover { background: var(--buy-hi); transform: translateY(-1px); box-shadow: 0 4px 14px var(--buy-glow); }
.card .btn svg { width: 12px; height: 12px; }
.card.oos .btn.buy { background: var(--bg-3); color: var(--text-3); cursor: not-allowed; }
.card.oos .btn.buy:hover { transform: none; box-shadow: none; background: var(--bg-3); }

.empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-3);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    grid-column: 1 / -1;
}

/* ============================================================
 * landing extras: featured banner + games grid
 * ============================================================ */
.section-title {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 20px; margin: 34px 0 16px;
    flex-wrap: wrap;
}
.section-title h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
}
.section-title h2 .accent { color: var(--gold); }
.section-title .view-all {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
    transition: color .15s, gap .15s;
}
.section-title .view-all:hover { color: var(--buy); gap: 10px; }
.section-title .view-all svg { width: 12px; height: 12px; }

.featured {
    display: flex; align-items: center; gap: 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(71, 113, 255, 0.14), rgba(169, 123, 255, 0.06)), var(--bg-2);
    border: 1px solid rgba(71, 113, 255, 0.35);
    border-radius: var(--r-lg);
    margin-bottom: 22px;
}
.featured .art {
    width: 46px; height: 46px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, #fff, #888);
    display: grid; place-items: center;
    color: #0a0a0a;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}
.featured .text { flex: 1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.featured .text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.015em;
}
.featured .text .k {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--buy);
    font-weight: 700;
}
.featured .cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: var(--buy);
    color: #0a0a0a;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s;
    font-family: 'Space Grotesk', sans-serif;
}
.featured .cta:hover { background: var(--buy-hi); }
.featured .cta svg { width: 12px; height: 12px; }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding-bottom: 20px;
}
.game-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex; align-items: flex-end;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    background: var(--bg-3);
    border: 1px solid var(--line);
    transition: transform .2s, border-color .2s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.game-card .bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .55; transition: transform .5s, opacity .3s;
}
.game-card:hover .bg { transform: scale(1.05); opacity: .8; }
.game-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent 65%);
}
.game-card .meta { position: relative; z-index: 1; }
.game-card .title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
}
.game-card .sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
    font-weight: 600;
}
.game-card.dim { opacity: 0.4; pointer-events: none; }
.game-card.dim .bg { filter: grayscale(1); }
.game-card .soon-tag {
    position: absolute; top: 10px; right: 10px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid var(--line-2);
    border-radius: 3px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    z-index: 2;
}

/* ============================================================
 * product detail
 * ============================================================ */
.product {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    padding: 8px 0 32px;
}
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 22px; } }
.p-art {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    display: grid; place-items: center;
    background: #0a0d16;
}
.p-art .bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .55;
}
.p-art .grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}
.p-art .brand {
    position: relative; z-index: 2;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 72px;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow: 0 4px 40px rgba(0,0,0,.6);
    text-align: center;
    padding: 24px;
    text-transform: uppercase;
    line-height: 1;
}
.p-art .brand.long { font-size: 46px; text-transform: none; letter-spacing: -0.02em; }
.p-art .brand .dot { color: var(--wave); }
.p-art .status-pill {
    position: absolute; bottom: 14px; left: 14px;
    padding: 6px 12px 6px 10px;
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--success);
    z-index: 3;
}
.p-art .status-pill { color: var(--status-good); }
.p-art .status-pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--status-good); box-shadow: 0 0 10px var(--status-good); animation: ledPulse 1.8s ease-in-out infinite; }
.p-art .status-pill.warn   { color: var(--status-warn); }
.p-art .status-pill.warn .d{ background: var(--status-warn); box-shadow: 0 0 10px var(--status-warn); }
.p-art .status-pill.danger { color: var(--status-bad); }
.p-art .status-pill.danger .d { background: var(--status-bad); box-shadow: 0 0 10px var(--status-bad); }
.p-art .game-tag {
    position: absolute; top: 14px; left: 14px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    z-index: 3;
}

.p-side { display: flex; flex-direction: column; gap: 16px; }
.p-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: -0.028em;
    line-height: 1.05;
}
.p-provider {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 700;
}
.p-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }

.p-price-block {
    padding: 18px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    display: flex; flex-direction: column; gap: 14px;
}
.p-select-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 700;
}
.p-durations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 6px;
}
.p-dur {
    padding: 10px 8px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    text-align: center;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
.p-dur:hover { background: var(--bg-4); border-color: var(--line-2); }
.p-dur.on { background: var(--bg-4); border-color: var(--buy); box-shadow: inset 0 0 0 1px var(--buy); }
.p-dur .lbl {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    color: var(--buy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}
.p-dur:not(.on) .lbl { color: var(--text-3); }
.p-dur .pr {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    letter-spacing: -0.015em;
}
.p-price-big { display: flex; align-items: baseline; gap: 10px; }
.p-price-big .amt {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -0.03em;
    color: var(--text);
}
.p-price-big .unit {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}
.p-stock {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px;
    color: var(--gold);
    font-weight: 600;
}
.p-stock svg { width: 14px; height: 14px; }
.buy-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.buy-row .btn {
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .15s, transform .15s, box-shadow .15s;
    font-family: 'Space Grotesk', sans-serif;
}
.buy-row .btn.add { background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text); }
.buy-row .btn.add:hover { background: var(--bg-4); }
.buy-row .btn.buy {
    background: var(--buy);
    color: #0a0a0a;
    font-weight: 700;
    box-shadow: 0 5px 18px var(--buy-glow);
}
.buy-row .btn.buy:hover { background: var(--buy-hi); transform: translateY(-1px); box-shadow: 0 8px 26px var(--buy-glow); }
.buy-row .btn svg { width: 14px; height: 14px; }

.p-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.p-facts .cell {
    padding: 12px 14px;
    background: var(--bg-2);
    display: flex; align-items: center; gap: 10px;
}
.p-facts .cell .ic {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    background: var(--bg-3);
    border-radius: var(--r-sm);
    color: var(--buy);
    flex-shrink: 0;
}
.p-facts .cell .ic svg { width: 14px; height: 14px; }
.p-facts .cell .k { font-family: 'Space Grotesk', sans-serif; font-size: 11.5px; font-weight: 700; color: var(--text); }
.p-facts .cell .v { font-family: 'Space Grotesk', sans-serif; font-size: 10px; color: var(--text-3); letter-spacing: 0.06em; margin-top: 2px; text-transform: uppercase; font-weight: 600; }

/* ============================================================
 * footer
 * ============================================================ */
.foot {
    border-top: 1px solid var(--line);
    padding: 28px 20px 26px;
    background: rgba(0,0,0,0.4);
    margin-top: 40px;
    font-size: 12.5px;
    color: var(--text-3);
}
.foot-inner {
    max-width: 1440px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.foot .fbrand {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text);
}
.foot .fbrand img {
    height: 22px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 6px rgba(255,255,255,.15));
}
.foot .fbrand .ft {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}
.foot .fbrand .ft .d { color: var(--buy); }
.foot .links { display: flex; gap: 18px; }
.foot .links a { color: var(--text-3); transition: color .15s; }
.foot .links a:hover { color: var(--text); }
.foot .cp {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    color: var(--text-4);
    text-transform: uppercase;
    font-weight: 600;
}

/* ============================================================
 * responsive
 * ============================================================ */
@media (max-width: 900px) {
    .top-nav a.hide-md { display: none; }
    .page-title h1 { font-size: 22px; }
    .p-title { font-size: 24px; }
}
@media (max-width: 640px) {
    .top { padding: 0 14px; gap: 10px; }
    .brand img { height: 28px; }
    .top-nav { display: none; }
    .locale { display: none; }
    .wrap { padding: 0 14px; }
    .hero h1 { font-size: 32px; }
    .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .card .art .brand { font-size: 28px; }
    .card .art .brand.long { font-size: 18px; }
    .card .actions { grid-template-columns: 1fr; }
    .p-art .brand { font-size: 42px; }
    .p-art .brand.long { font-size: 30px; }
    .p-facts { grid-template-columns: 1fr; }
    .buy-row { grid-template-columns: 1fr; }
}

/* ============================================================
 * animated rain background
 * ============================================================ */
.rain-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    perspective: 800px;
}
.rain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.rain.back-row {
    z-index: 0;
    bottom: 60px;
    opacity: 0.5;
    filter: blur(0.5px);
    transform: translate3d(0, 0, 0) scale(0.75);
}
.rain .drop {
    position: absolute;
    bottom: 100%;
    width: 15px;
    height: 120px;
    pointer-events: none;
    animation: drop 0.5s linear infinite;
    will-change: transform;
}
.rain .stem {
    width: 1px;
    height: 60%;
    margin-left: 7px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.35));
    animation: stem 0.5s linear infinite;
}
.rain .splat {
    width: 15px;
    height: 10px;
    border-top: 2px dotted rgba(255,255,255,.35);
    border-radius: 50%;
    opacity: 1;
    transform: scale(0);
    animation: splat 0.5s linear infinite;
    display: none;
}
body.splat-toggle .rain .splat { display: block; }
body.back-row-toggle .rain.back-row { display: block; }

@keyframes drop {
    0%   { transform: translateY(0); }
    82%  { transform: translateY(100vh); }
    100% { transform: translateY(100vh); }
}
@keyframes stem {
    0%   { opacity: 1; }
    65%  { opacity: 1; }
    75%  { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes splat {
    0%   { opacity: 1; transform: scale(0); }
    80%  { opacity: 1; transform: scale(0); }
    90%  { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* puddle band lives in its own fixed wrapper ABOVE content */
.puddle-wrap {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 30px;
    pointer-events: none;
    z-index: 20;
    overflow: hidden;
    opacity: 1;
    transition: opacity .35s ease;
}
.puddle-wrap.hide { opacity: 0; }
.puddle-band {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 30px;
    pointer-events: none;
    background:
        linear-gradient(to bottom,
            transparent 0%,
            rgba(120, 160, 220, 0.05) 60%,
            rgba(140, 180, 230, 0.12) 100%);
    z-index: 2;
    overflow: hidden;
}
.puddle-band::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,.18) 30%,
        rgba(255,255,255,.28) 50%,
        rgba(255,255,255,.18) 70%,
        transparent);
}
/* subtle moving highlight sweep on the water surface */
.puddle-band::after {
    content: '';
    position: absolute;
    left: -20%; right: -20%; bottom: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    filter: blur(1.5px);
    animation: puddleSweep 8s linear infinite;
}
@keyframes puddleSweep {
    from { transform: translateX(-40%); }
    to   { transform: translateX( 40%); }
}
.puddle-band .puddle {
    position: absolute;
    bottom: 3px;
    height: 3px;
    background: radial-gradient(ellipse at center,
        rgba(200,220,255,.28) 0%,
        rgba(140,180,230,.10) 55%,
        transparent 100%);
    border-radius: 50%;
    filter: blur(1px);
    animation: puddleRipple 3s ease-in-out infinite;
}
@keyframes puddleRipple {
    0%,100% { transform: scaleX(1);    opacity: .35; }
    50%     { transform: scaleX(1.25); opacity: .6; }
}

/* ============================================================
 * shared animations & motion polish
 * ============================================================ */
@keyframes ledPulse {
    0%,100% { transform: scale(1);   filter: brightness(1); }
    50%     { transform: scale(1.35); filter: brightness(1.6); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes glowPulse {
    0%,100% { box-shadow: 0 0 0 rgba(255,255,255,.0); }
    50%     { box-shadow: 0 0 22px rgba(255,255,255,.35); }
}
@keyframes floaty {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-3px); }
}

/* fade-in the whole shell on view swap */
main.wrap > * { animation: fadeInUp .38s cubic-bezier(.2,.7,.2,1) both; }
main.wrap .grid > .card {
    animation: fadeInUp .5s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(var(--i, 0) * 40ms);
}
main.wrap .hero > * { animation: fadeInUp .55s cubic-bezier(.2,.7,.2,1) both; }
main.wrap .hero > *:nth-child(2) { animation-delay: 80ms; }

/* card hover: 3D tilt + expand + one clean slash of light */
.grid { perspective: 1400px; }
.card {
    transition: transform .55s cubic-bezier(.2,.7,.2,1),
                border-color .35s,
                box-shadow .45s;
    position: relative;
    overflow: hidden;
}
.card::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 45%; height: 100%;
    background: linear-gradient(115deg,
        transparent 0%,
        rgba(255,255,255,.03) 30%,
        rgba(255,255,255,.28) 50%,
        rgba(255,255,255,.03) 70%,
        transparent 100%);
    transform: translateX(-180%) skewX(-14deg);
    transition: transform .9s cubic-bezier(.25,.9,.3,1);
    pointer-events: none;
    z-index: 5;
}
.card:hover {
    transform: rotateX(6deg) rotateY(-2deg) scale(1.035) translateY(-6px);
    border-color: rgba(255,255,255,.32);
    box-shadow:
        0 24px 60px rgba(0,0,0,.7),
        0 0 30px rgba(255,255,255,.05);
}
.card:hover::after { transform: translateX(320%) skewX(-14deg); }

/* top-nav link underline slide */
.top-nav a {
    position: relative;
    transition: color .18s;
}
.top-nav a::after {
    content: '';
    position: absolute; left: 12px; right: 12px; bottom: 6px;
    height: 1.5px;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s cubic-bezier(.2,.7,.2,1);
}
.top-nav a:hover::after,
.top-nav a.on::after { transform: scaleX(1); }

/* buy button hover glow pulse */
.buy-row .btn.buy:hover,
.card .btn.buy:hover,
.featured .cta:hover { animation: glowPulse 1.4s ease-in-out infinite; }

/* logo brand micro-float */
.brand img { animation: floaty 4s ease-in-out infinite; }

/* icon-btn hover spin the cart */
.icon-btn { transition: color .18s, background .18s, border-color .18s, transform .2s; }
.icon-btn:hover { transform: translateY(-1px); }

/* section title underline draw */
.section-title h2, .page-title h1 {
    position: relative; display: inline-block;
}
.section-title h2::after,
.page-title h1::after {
    content: '';
    display: block;
    margin-top: 6px;
    width: 100%; max-width: 44px;
    height: 2px;
    background: linear-gradient(to right, var(--text), transparent);
    transform-origin: left;
    animation: drawIn .6s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes drawIn {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* focus rings unified */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; border-radius: 3px; }

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .rain-bg { display: none; }
}
