/* ============================================================
 * 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; }

/* ============================================================
 * In-header Discord CTA
 * ============================================================ */
/* Liquid-glass Discord chip — white theme, matches the rest of
   the site. Pulsing white LED indicator, subtle inner sheen,
   heavy backdrop-blur so it reads as glass on the dark header. */
.top-discord {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
            backdrop-filter: blur(16px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.22),
        inset 0 -1px 0 rgba(0,0,0,.30),
        0 6px 18px rgba(0,0,0,.35);
    transition: background .18s, border-color .18s, transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s;
    flex-shrink: 0;
    max-width: 340px;
    overflow: hidden;
    margin-left: auto;              /* push all the way to the right */
}
.top-discord:hover {
    background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
    border-color: rgba(255,255,255,.38);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.32),
        inset 0 -1px 0 rgba(0,0,0,.30),
        0 10px 26px rgba(0,0,0,.4),
        0 0 24px rgba(255,255,255,.18);
}
.top-discord .td-badge {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff, #e8e8e8);
    display: grid; place-items: center;
    color: #0a0a12;
    box-shadow:
        0 4px 14px rgba(255,255,255,.35),
        inset 0 0 0 1px rgba(255,255,255,.9),
        inset 0 -2px 4px rgba(0,0,0,.08);
    flex-shrink: 0;
    animation: tdPulse 2.6s ease-in-out infinite;
}
.top-discord .td-badge svg { width: 17px; height: 17px; }
@keyframes tdPulse {
    0%,100% { box-shadow: 0 4px 14px rgba(255,255,255,.30), inset 0 0 0 1px rgba(255,255,255,.9), inset 0 -2px 4px rgba(0,0,0,.08); }
    50%     { box-shadow: 0 6px 22px rgba(255,255,255,.6),  inset 0 0 0 1px rgba(255,255,255,1),  inset 0 -2px 4px rgba(0,0,0,.08); }
}
.top-discord .td-copy {
    display: inline-flex; flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}
.top-discord .td-eye {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #d8d8d8;
    margin-bottom: 2px;
}
.top-discord .td-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255,255,255,.9);
    animation: ledPulse 1.6s ease-in-out infinite;
}
.top-discord .td-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 8px rgba(255,255,255,.3);
}
.top-discord .td-arr {
    width: 11px; height: 11px;
    color: #d8d8d8;
    transition: transform .18s, color .18s;
    flex-shrink: 0;
}
.top-discord:hover .td-arr { transform: translateX(2px); color: #ffffff; }

@media (max-width: 900px) {
    .top-discord { padding: 6px 10px 6px 6px; max-width: 220px; }
    .top-discord .td-eye { display: none; }
    .top-discord .td-title { font-size: 12px; }
}
@media (max-width: 640px) {
    .top-discord .td-copy { display: none; }
    .top-discord { padding: 4px; }
}

/* ============================================================
 * 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;
    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-legacy {
    width: 24px; height: 24px;
    display: none;
    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; 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); }

/* Swag nav link — bare word, pure white with a soft white glow,
   no box. Pulses gently to draw the eye without shouting. */
.top-nav a.swag-nav {
    position: relative;
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 5px 8px;
    text-shadow:
        0 0 6px  rgba(255,255,255,.7),
        0 0 18px rgba(255,255,255,.45),
        0 0 40px rgba(255,255,255,.25);
    animation: swagGlowPulse 2.6s ease-in-out infinite;
}
.top-nav a.swag-nav::after { content: none; }
.top-nav a.swag-nav:hover {
    background: transparent;
    color: #ffffff;
    text-shadow:
        0 0 8px  rgba(255,255,255,.9),
        0 0 22px rgba(255,255,255,.7),
        0 0 60px rgba(255,255,255,.4);
}
@keyframes swagGlowPulse {
    0%,100% { text-shadow: 0 0 6px rgba(255,255,255,.55), 0 0 18px rgba(255,255,255,.35), 0 0 40px rgba(255,255,255,.2); }
    50%     { text-shadow: 0 0 8px rgba(255,255,255,.85), 0 0 24px rgba(255,255,255,.55), 0 0 60px rgba(255,255,255,.35); }
}
@media (prefers-reduced-motion: reduce){
    .top-nav a.swag-nav{ animation: none; }
}

/* coming-soon nav link — visible but visibly disabled, with a glowy diagonal slash */
.top-nav a.soon {
    position: relative;
    color: var(--text-3);
    cursor: not-allowed;
}
.top-nav a.soon:hover { color: var(--text-2); background: transparent; }

/* hover tooltip — the .soon-tip span is injected by app.js */
.soon-tip {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translate(-50%, -6px);
    padding: 6px 12px;
    background: #000;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s, transform .22s cubic-bezier(.2,.7,.2,1);
    z-index: 100;
    box-shadow: 0 10px 26px rgba(0,0,0,.7);
}
.soon-tip::before {
    content: '';
    position: absolute;
    left: 50%; top: -5px;
    width: 8px; height: 8px;
    background: #000;
    border-left: 1px solid rgba(255,255,255,.22);
    border-top: 1px solid rgba(255,255,255,.22);
    transform: translateX(-50%) rotate(45deg);
}
.top-nav a.soon:hover .soon-tip,
.top-nav a.soon:focus-visible .soon-tip {
    opacity: 1;
    transform: translate(-50%, 0);
}
.top-nav a.soon::before {
    content: '';
    position: absolute;
    left: 8px; right: 8px;
    top: 50%;
    height: 1.5px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,.95) 20%,
        rgba(255,255,255,.95) 80%,
        rgba(255,255,255,0));
    transform: translateY(-50%) rotate(-8deg);
    transform-origin: center;
    box-shadow:
        0 0 6px rgba(255,255,255,.6),
        0 0 14px rgba(255,255,255,.35);
    pointer-events: none;
    animation: slashGlow 3.5s ease-in-out infinite;
}
@keyframes slashGlow {
    0%,100% { opacity: .85; }
    50%     { opacity: 1;   }
}
.top-nav a.soon::after { display: none; }
.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 {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    user-select: none;
    transition: background .12s, border-color .12s;
    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; }
.locale:hover { background: var(--bg-3); border-color: var(--line-2); }
.locale .caret { width: 10px; height: 10px; color: var(--text-3); transition: transform .18s; }
.locale.open .caret { transform: rotate(180deg); color: var(--text); }
.locale-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    list-style: none; padding: 4px; margin: 0;
    background: #000;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 6px;
    box-shadow: 0 14px 40px rgba(0,0,0,.7), 0 0 30px rgba(255,255,255,.03);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .16s, transform .18s cubic-bezier(.2,.7,.2,1);
    z-index: 80;
}
.locale.open .locale-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.locale-menu li {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background .12s;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12.5px;
}
.locale-menu li:hover { background: var(--bg-3); }
.locale-menu li.on { background: var(--bg-3); color: var(--text); }
.locale-menu li.on::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--buy);
}
.locale-menu li { position: relative; }
.locale-menu li .fl { font-size: 15px; line-height: 1; }
.locale-menu li .cd {
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.005em;
}
.locale-menu li .sm {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    color: var(--text-3);
}

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

/* ============================================================
 * 404 view
 * ============================================================ */
.v404 {
    position: relative;
    min-height: calc(100vh - 58px - 90px);
    padding: 80px 24px 90px;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
/* faint sub-grid backdrop that pulses */
.v404-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(closest-side at 50% 50%, black 30%, transparent 100%);
            mask-image: radial-gradient(closest-side at 50% 50%, black 30%, transparent 100%);
    animation: v404GridBreath 5s ease-in-out infinite;
    z-index: 0;
}
@keyframes v404GridBreath {
    0%,100% { opacity: .55; }
    50%     { opacity: .95; }
}
/* rolling scanline */
.v404-scan {
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(
            180deg,
            transparent 0,
            transparent 2px,
            rgba(255,255,255,.02) 2px,
            rgba(255,255,255,.02) 3px
        );
    z-index: 0;
    pointer-events: none;
}
.v404-scan::after {
    content: '';
    position: absolute; left: 0; right: 0;
    height: 220px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.045) 45%, transparent);
    filter: blur(4px);
    animation: v404Scan 6s linear infinite;
}
@keyframes v404Scan {
    from { transform: translateY(-25%); }
    to   { transform: translateY(120%); }
}
/* drifting stars layer */
.v404-stars {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 0;
}
.v404-stars span {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255,255,255,.75);
    animation: v404Star ease-in-out infinite;
}
@keyframes v404Star {
    0%,100% { transform: scale(.6); opacity: .12; }
    50%     { transform: scale(1.1); opacity: 1; }
}

.v404-inner {
    position: relative;
    z-index: 2;
    max-width: 620px;
}
/* the giant 404 with layered glitch ghosts */
.v404-num {
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(140px, 24vw, 260px);
    letter-spacing: -.06em;
    line-height: 1;
    display: inline-flex;
    gap: clamp(6px, 1.6vw, 22px);
    color: #fff;
    text-shadow:
        0 0 30px rgba(255,255,255,.35),
        0 0 90px rgba(255,255,255,.12);
    margin-bottom: 22px;
}
.v404-num .d {
    animation: v404Float 4.5s ease-in-out infinite;
}
.v404-num .d.d1 { animation-delay: 0s; }
.v404-num .d.d0 { animation-delay: .35s; color: #fff; }
@keyframes v404Float {
    0%,100% { transform: translateY(0)   rotate(-.5deg); }
    50%     { transform: translateY(-6px) rotate(.5deg); }
}
/* red + cyan chromatic ghosts behind the number */
.v404-num-ghost {
    position: absolute; inset: 0;
    display: inline-flex;
    gap: clamp(6px, 1.6vw, 22px);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: -1;
}
.v404-num-ghost span:nth-child(1),
.v404-num-ghost span:nth-child(3) { color: rgba(255, 92, 92, .55); }
.v404-num-ghost span:nth-child(2) { color: rgba(74, 142, 255, .55); }
.v404-num-ghost { animation: v404Chrom 3.6s cubic-bezier(.36,.07,.19,.97) infinite; }
@keyframes v404Chrom {
    0%,100% { transform: translate(0,0); }
    12%     { transform: translate(-4px, 2px); }
    25%     { transform: translate(3px, -2px); }
    37%     { transform: translate(-2px, 1px); }
    50%     { transform: translate(2px, -3px); }
    62%     { transform: translate(-5px, 2px); }
    75%     { transform: translate(1px, -1px); }
    87%     { transform: translate(-2px, 3px); }
}
/* rare glitch flash */
.v404-num::after {
    content: '';
    position: absolute; inset: -6% -4%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
    background-size: 300% 100%;
    background-position: -100% 0;
    animation: v404Glitch 4.2s cubic-bezier(.5,0,.5,1) infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}
@keyframes v404Glitch {
    0%,88% { background-position: -100% 0; opacity: 0; }
    89%    { background-position: -100% 0; opacity: 1; }
    100%   { background-position:  200% 0; opacity: 0; }
}

.v404-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px;
    background: rgba(255,92,92,.08);
    border: 1px solid rgba(255,92,92,.35);
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--status-bad);
    margin-bottom: 18px;
}
.v404-badge .v404-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--status-bad);
    box-shadow: 0 0 10px var(--status-bad);
    animation: ledPulse 1.4s ease-in-out infinite;
}

.v404-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(26px, 3.4vw, 36px);
    letter-spacing: -.02em;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 12px;
}
.v404-lede {
    font-size: 14.5px;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 22px;
    max-width: 520px;
    margin-left: auto; margin-right: auto;
}
.v404-path {
    display: inline-block;
    max-width: 100%;
    padding: 6px 14px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-2);
    letter-spacing: .01em;
    margin-bottom: 26px;
    word-break: break-all;
}
.v404-actions {
    display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.v404-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px;
    border-radius: 7px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .01em;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .18s cubic-bezier(.2,.7,.2,1);
}
.v404-btn.primary { background: #fff; color: #000; }
.v404-btn.primary:hover { background: #e6e6e6; transform: translateY(-1px); }
.v404-btn.ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text);
}
.v404-btn.ghost:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.28); }
.v404-btn.discord {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 6px 22px rgba(88,101,242,.4), inset 0 0 0 1px rgba(255,255,255,.14);
}
.v404-btn.discord:hover { background: #6871f6; transform: translateY(-1px); }

/* ============================================================
 * ethos strip — small quiet trust line between hero and featured
 * ============================================================ */
.ethos {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    margin: 22px 0 4px;
    background: linear-gradient(90deg, rgba(255,255,255,.025), transparent 70%);
    border-left: 2px solid rgba(255,255,255,.14);
    border-radius: 3px;
    animation: fadeInUp .5s cubic-bezier(.2,.7,.2,1) both;
}
.ethos-mark {
    display: inline-grid; place-items: center;
    width: 18px; height: 18px;
    color: var(--text-2);
    flex-shrink: 0;
}
.ethos-mark svg { width: 12px; height: 12px; }
.ethos-eye {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text);
    flex-shrink: 0;
    padding-right: 12px;
    border-right: 1px solid var(--line);
}
.ethos-body {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    letter-spacing: -.005em;
}
@media (max-width: 640px) {
    .ethos { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
    .ethos-eye { border-right: 0; padding-right: 0; }
    .ethos-body { flex-basis: 100%; font-size: 12.5px; }
}

/* ============================================================
 * 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-right {
    display: flex; flex-direction: column;
    gap: 18px;
    align-items: stretch;
    min-width: 340px;
}
@media (max-width: 900px) {
    .hero-right { min-width: 0; }
}

/* live-purchases panel */
.hero-live {
    background: rgba(255,255,255,.025);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 12px 14px 6px;
    backdrop-filter: blur(6px);
}
.hero-live .hl-head {
    display: flex; align-items: center; gap: 8px;
    padding: 0 2px 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}
.hero-live .hl-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--status-good);
    box-shadow: 0 0 8px var(--status-good);
    animation: ledPulse 1.6s ease-in-out infinite;
}
.hero-live .hl-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-2);
}
.hero-live .hl-live {
    margin-left: auto;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: .18em;
    color: var(--status-good);
    padding: 2px 8px;
    background: rgba(63,184,131,.1);
    border: 1px solid rgba(63,184,131,.3);
    border-radius: 999px;
}
.hero-live .hl-list {
    display: flex; flex-direction: column;
    gap: 2px;
    max-height: 220px;
    overflow: hidden;
}
.hero-live .hl-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 4px;
    border-radius: 5px;
    transition: background .18s;
}
.hero-live .hl-row:hover { background: rgba(255,255,255,.03); }
.hero-live .hl-row.new {
    animation: hlSlideIn .45s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes hlSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-live .hl-logo {
    width: 34px; height: 34px;
    border-radius: 5px;
    display: grid; place-items: center;
    overflow: hidden;
    padding: 3px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}
.hero-live .hl-logo img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.hero-live .hl-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}
.hero-live .hl-body { min-width: 0; }
.hero-live .hl-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-live .hl-loc {
    display: flex; align-items: center; gap: 5px;
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-live .hl-loc svg { width: 10px; height: 10px; flex-shrink: 0; }
.hero-live .hl-loc .dot { opacity: .5; }
.hero-live .hl-loc .t { color: var(--text-3); }

.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: 22px; height: 22px;
    border-radius: 4px;
    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;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
    position: relative;
}
.side-item .ic.has-img {
    padding: 2px;
}
.side-item .ic img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 2px rgba(0,0,0,.4));
}
.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: #000;
    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: #000;
    overflow: hidden;
    display: grid; place-items: center;
    border-bottom: 1px solid var(--line);
}
.card .art .bg {
    position: absolute; inset: 0;
    background: #000;
    transition: transform .5s ease;
}
.card:hover .art .bg { transform: scale(1.04); }
.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); }

/* provider logo shown on the product card art */
.card .art .provider-logo {
    position: relative; z-index: 1;
    width: 62%; height: 62%;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,.55));
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.card:hover .art .provider-logo { transform: scale(1.06); }

/* tiny game icon in the top-right of a product card */
.card .art .game-badge {
    position: absolute; top: 8px; right: 8px;
    width: 26px; height: 26px;
    object-fit: contain;
    padding: 3px;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.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 .tag-status.discontinued { color: var(--text-3); }
.card .art .tag-status.discontinued .d { background: var(--text-3); box-shadow: none; animation: none; }
.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(255,255,255,.06), rgba(255,255,255,.015)), #000;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--r-lg);
    margin-bottom: 22px;
    box-shadow: 0 0 24px rgba(255,255,255,.05);
}
.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;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
}
.featured .art.has-img { padding: 5px; }
.featured .art img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}
.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 { background: #000; }
.game-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.25); }
.game-card .bg {
    position: absolute; inset: 0;
    background: #000 center/cover no-repeat;
    opacity: .9;
    transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s;
}
.game-card:hover .bg { transform: scale(1.05); opacity: 1; }
.game-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%);
}
.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;
    background: #000;
    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;
    background-repeat: no-repeat;
    filter: grayscale(1) contrast(1.05) brightness(.9);
    opacity: .35;
    /* radial fade — center visible, outside fades to nothing */
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 15%, rgba(0,0,0,.45) 55%, transparent 100%);
    mask-image: radial-gradient(circle at 50% 50%, black 15%, rgba(0,0,0,.45) 55%, transparent 100%);
}
.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); }

/* provider logo on the product detail page */
.p-art .p-provider-logo {
    position: relative; z-index: 2;
    max-width: 56%; max-height: 62%;
    width: auto; height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 40px rgba(0,0,0,.6));
    animation: pFloat 5s ease-in-out infinite;
}
@keyframes pFloat {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-6px); }
}
.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 .status-pill.discontinued { color: var(--text-3); }
.p-art .status-pill.discontinued .d { background: var(--text-3); box-shadow: none; animation: none; }
.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.oos {
    position: relative;
    opacity: .35;
    cursor: not-allowed;
    filter: grayscale(1);
    background: var(--bg-2);
}
.p-dur.oos:hover { background: var(--bg-2); border-color: var(--line); }
.p-dur.oos .oos-tip {
    position: absolute;
    left: 50%; bottom: calc(100% + 8px);
    transform: translate(-50%, 6px);
    padding: 5px 10px;
    background: #000;
    border: 1px solid rgba(255,92,92,.4);
    border-radius: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--status-bad);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s, transform .2s cubic-bezier(.2,.7,.2,1);
    z-index: 10;
    box-shadow: 0 8px 22px rgba(0,0,0,.6);
}
.p-dur.oos:hover .oos-tip { opacity: 1; transform: translate(-50%, 0); }
.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);
    pointer-events: none;
    z-index: 5;
    /* no transition — resting state snaps back instantly on unhover
       so we never see the slash retreat in reverse */
}
.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 {
    animation: cardSlash .9s cubic-bezier(.25,.9,.3,1) forwards;
}
@keyframes cardSlash {
    from { transform: translateX(-180%) skewX(-14deg); }
    to   { 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; }

/* coming-soon modal (Discord etc.) */
.cs-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: grid; place-items: center;
    z-index: 200;
    padding: 20px;
    animation: csFade .2s ease both;
}
@keyframes csFade { from { opacity: 0 } to { opacity: 1 } }
.cs-modal {
    max-width: 400px; width: 100%;
    background: #000;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    padding: 32px 30px 26px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 40px rgba(255,255,255,.04);
    animation: csPop .35s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes csPop {
    from { opacity: 0; transform: translateY(10px) scale(.96) }
    to   { opacity: 1; transform: translateY(0) scale(1) }
}
.cs-icon {
    width: 52px; height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    display: grid; place-items: center;
    color: var(--text-2);
}
.cs-icon svg { width: 26px; height: 26px; }
.cs-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 14px;
}
.cs-modal h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -.015em;
    margin-bottom: 8px;
}
.cs-modal p {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 22px;
}
.cs-modal .cs-close {
    padding: 9px 22px;
    background: #fff;
    color: #000;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .04em;
    transition: background .12s;
}
.cs-modal .cs-close:hover { background: #e6e6e6; }

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