/* ---------- meridian market · shared styles ---------- */
:root {
    --bg: #0d0f13;
    --bg-2: #131620;
    --bg-3: #1a1e2a;
    --bg-4: #232838;
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #f4f6fa;
    --text-2: #a1a8b3;
    --text-3: #676e7a;
    --text-4: #3b414d;
    --accent: #7dd3d0;
    --accent-2: #4dbeb9;
    --buy: #4771ff;
    --buy-hover: #5a80ff;
    --success: #3fb883;
    --gold: #f5b13d;
    --hot: #ff5757;
    --purple: #a97bff;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
}
html { overflow-x: clip; }
::selection { background: rgba(125, 211, 208, 0.28); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

body {
    background-image:
        radial-gradient(1200px 700px at 15% -20%, rgba(125, 211, 208, 0.07), transparent 60%),
        radial-gradient(900px 600px at 100% 100%, rgba(169, 123, 255, 0.06), transparent 60%);
    background-attachment: fixed;
}

/* ---------- container ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ---------- top bar ---------- */
.top {
    position: sticky; top: 0; z-index: 60;
    padding: 14px 28px;
    background: rgba(13, 15, 19, 0.75);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--line);
}
.top-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex; align-items: center; gap: 22px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1;
    flex-shrink: 0;
}
.brand img {
    width: 26px; height: 26px;
    filter: drop-shadow(0 0 6px rgba(125, 211, 208, 0.35));
    transition: transform .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand .m { color: var(--text); }
.brand .k {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.top-nav {
    display: flex; align-items: center; gap: 4px;
}
.top-nav a, .top-nav .menu {
    padding: 8px 14px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-2);
    border-radius: 8px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: color .15s, background .15s;
    cursor: pointer;
}
.top-nav a:hover, .top-nav .menu:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.top-nav .menu svg { width: 12px; height: 12px; opacity: .5; }
.top-nav .new {
    padding: 2px 8px;
    background: linear-gradient(135deg, #4771ff, #6a8dff);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.08em;
    border-radius: 6px;
    text-transform: uppercase;
    animation: newPulse 2.2s ease-in-out infinite;
}
@keyframes newPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(71, 113, 255, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(71, 113, 255, 0); }
}
.top-nav .live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.top-spacer { flex: 1; }

.top-search {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 280px;
    transition: border-color .15s, background .15s;
}
.top-search:focus-within { border-color: var(--line-2); background: var(--bg-3); }
.top-search svg { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }
.top-search input {
    flex: 1;
    outline: none;
    font-size: 13px;
    color: var(--text);
}
.top-search input::placeholder { color: var(--text-3); }

.top-utils {
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}
.pill-select {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px 6px 8px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
}
.pill-select .flag {
    display: inline-grid; place-items: center;
    width: 18px; height: 12px;
    background: linear-gradient(180deg, #012169 33%, #fff 33% 66%, #c8102e 66%);
    border-radius: 2px;
    font-size: 8px;
}
.pill-select .sep { width: 1px; height: 12px; background: var(--line-2); }
.pill-select .cur { color: var(--text); font-weight: 600; }
.icon-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text-2);
    transition: color .15s, background .15s, border-color .15s, transform .15s;
    position: relative;
}
.icon-btn:hover { color: var(--text); background: var(--bg-3); border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.discord { color: #7289da; }
.icon-btn.discord:hover { color: #97acef; }
.icon-btn .count {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: #08131a;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    display: grid; place-items: center;
}

/* ---------- breadcrumb ---------- */
.crumbs {
    padding: 26px 0 14px;
    display: flex; align-items: center; gap: 10px;
    font-size: 13px;
    color: var(--text-3);
}
.crumbs a { color: var(--text-3); transition: color .14s; }
.crumbs a:hover { color: var(--text); }
.crumbs .cur { color: var(--text); font-weight: 500; }
.crumbs svg { width: 14px; height: 14px; color: var(--text-4); }
.crumbs .home {
    display: grid; place-items: center;
    width: 26px; height: 26px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 6px;
}

/* ---------- page header ---------- */
.page-head {
    padding: 20px 0 40px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
    flex-wrap: wrap;
    position: relative;
}
.page-head::after {
    content: '';
    position: absolute;
    left: 0; right: 40%; bottom: 20px;
    height: 1px;
    background: linear-gradient(90deg, var(--line-2), transparent);
}
.page-head h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    display: flex; align-items: baseline; gap: 14px;
    flex-wrap: wrap;
}
.page-head h1 .count-pill {
    padding: 4px 12px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-2);
    text-transform: none;
}
.page-head .lede {
    max-width: 640px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
}
.page-head .head-search {
    max-width: 340px;
    flex-shrink: 0;
}
.page-head .head-search .top-search { width: 100%; }

/* ---------- game filter chips ---------- */
.game-chips {
    display: flex; gap: 6px;
    padding: 18px 0 34px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--line);
    margin-bottom: 30px;
}
.game-chips::-webkit-scrollbar { display: none; }
.game-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px 8px 10px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
    text-decoration: none;
    transition: color .15s, background .15s, border-color .15s, transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
.game-chip:hover { color: var(--text); background: var(--bg-3); border-color: var(--line-2); transform: translateY(-1px); }
.game-chip.on {
    color: var(--text);
    background: var(--bg-4);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(125, 211, 208, 0.1);
}
.game-chip .ico {
    width: 22px; height: 22px;
    border-radius: 5px;
    display: grid; place-items: center;
    background: var(--bg-3);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--text);
    line-height: 1;
    overflow: hidden;
}
.game-chip .ico img { width: 100%; height: 100%; object-fit: cover; }
.game-chip .all {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #08131a;
}

/* ---------- list toolbar ---------- */
.list-tools {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.list-tools .count-line {
    font-size: 14px;
    color: var(--text-2);
    font-weight: 500;
}
.list-tools .count-line b { color: var(--text); font-weight: 700; }
.list-tools .sort {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.list-tools .sort:hover { background: var(--bg-3); border-color: var(--line-2); }
.list-tools .sort svg { width: 14px; height: 14px; color: var(--text-3); }

/* ---------- product grid ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    padding-bottom: 80px;
}
.card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .2s, box-shadow .2s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--line-2);
    box-shadow: 0 20px 50px 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;
}
.card .art .bg {
    position: absolute; inset: 0;
    background-position: center;
    background-size: cover;
    opacity: .35;
    transition: transform .8s ease, opacity .3s;
}
.card:hover .art .bg { transform: scale(1.08); opacity: .5; }
.card .art .logo {
    position: relative; z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 46px;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
    text-align: center;
    padding: 20px;
}
.card .art .logo.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 30px;
    letter-spacing: 0;
}
.card .art .logo .dot { color: var(--accent); }
.card .art .logo img { max-width: 60%; max-height: 60%; }
.card .art .status {
    position: absolute; bottom: 10px; left: 10px;
    padding: 4px 10px 4px 8px;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--success);
    z-index: 2;
}
.card .art .status .d { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.card .art .status.warn { color: var(--gold); }
.card .art .status.warn .d { background: var(--gold); }
.card .art .status.danger { color: var(--hot); }
.card .art .status.danger .d { background: var(--hot); }
.card .art .featured {
    position: absolute; top: 10px; left: 10px;
    padding: 4px 10px 4px 8px;
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--gold);
    color: #0a0a0a;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
}
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.card .name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.015em;
    color: var(--text);
    line-height: 1.15;
    text-decoration: none;
    transition: color .15s;
}
.card .name:hover { color: var(--accent); }
.card .price-line {
    display: flex; align-items: baseline; gap: 6px;
    font-size: 13px;
    color: var(--text-3);
}
.card .price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--text);
}
.card .price-line .from { color: var(--text-3); }
.card .price-line .dur { color: var(--text-3); }
.card .actions {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-top: 4px;
}
.card .btn {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.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: #fff;
}
.card .btn.buy:hover { background: var(--buy-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(71, 113, 255, 0.35); }
.card .btn svg { width: 13px; height: 13px; }
.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); }

/* ---------- generic ---------- */
.spacer-lg { height: 60px; }

/* ---------- footer ---------- */
.foot {
    border-top: 1px solid var(--line);
    padding: 40px 0 36px;
    margin-top: 40px;
}
.foot-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
}
.foot .fbrand {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}
.foot .fbrand img { width: 22px; height: 22px; filter: drop-shadow(0 0 5px rgba(125, 211, 208, 0.3)); }
.foot .fbrand .k {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.foot .flinks { display: flex; gap: 20px; }
.foot .flinks a {
    font-size: 13px;
    color: var(--text-3);
    transition: color .15s;
}
.foot .flinks a:hover { color: var(--text); }
.foot .fcp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--text-4);
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .top-search { display: none; }
    .top-nav .menu.hide-mobile { display: none; }
    .pill-select { display: none; }
    .page-head { flex-direction: column; }
    .page-head h1 { font-size: 28px; }
}
@media (max-width: 600px) {
    .top { padding: 12px 16px; }
    .container { padding: 0 16px; }
    .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .card .art .logo { font-size: 32px; }
    .card .art .logo.mono { font-size: 22px; }
    .card .actions { grid-template-columns: 1fr; }
}

/* ---------- landing extras ---------- */
.hero-band {
    padding: 60px 0 40px;
}
.hero-band h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(38px, 5vw, 60px);
    letter-spacing: -0.035em;
    line-height: 1;
    margin-bottom: 18px;
    max-width: 700px;
}
.hero-band h1 .grad {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-band .lede {
    font-size: 16px;
    color: var(--text-2);
    max-width: 620px;
    line-height: 1.65;
}
.featured-band {
    display: flex; align-items: center; gap: 20px;
    padding: 22px;
    margin-top: 34px;
    background: linear-gradient(135deg, rgba(71, 113, 255, 0.15), rgba(169, 123, 255, 0.08));
    border: 1px solid rgba(71, 113, 255, 0.28);
    border-radius: 14px;
    flex-wrap: wrap;
}
.featured-band .art {
    width: 62px; height: 62px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4771ff, #a97bff);
    display: grid; place-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}
.featured-band .text { flex: 1; min-width: 200px; }
.featured-band .text .k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--buy);
    margin-bottom: 4px;
    font-weight: 600;
}
.featured-band .text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.15;
}
.featured-band .cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px;
    background: var(--buy);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: background .15s, transform .15s, box-shadow .15s;
    text-decoration: none;
}
.featured-band .cta:hover { background: var(--buy-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(71, 113, 255, 0.4); }
.featured-band .cta svg { width: 14px; height: 14px; }

.section-title {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 44px 0 6px;
}
.section-title .fire { color: var(--gold); }
.section-sub {
    font-size: 13.5px;
    color: var(--text-3);
    margin-bottom: 22px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    padding-bottom: 60px;
}
.game-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    display: flex; align-items: flex-end;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    background: var(--bg-3);
    border: 1px solid var(--line);
    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), 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 .8s ease, opacity .3s;
}
.game-card:hover .bg { transform: scale(1.06); opacity: .75; }
.game-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent 60%);
}
.game-card .meta { position: relative; z-index: 1; }
.game-card .title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
}
.game-card .sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
}
.game-card.dim { opacity: 0.5; pointer-events: none; }
.game-card.dim .bg { filter: grayscale(1); }
.game-card .soon-tag {
    position: absolute; top: 12px; right: 12px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid var(--line-2);
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    z-index: 2;
}
