/* PERPMETRIC_E7C_N_DEX_SELECTOR */
:root {
    color-scheme: dark;
    --bg: #080b10;
    --panel: #10151d;
    --panel-2: #151c26;
    --text: #f3f6fa;
    --muted: #98a6b8;
    --border: #293341;
    --accent: #dbe7f6;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(124, 162, 214, 0.12), transparent 34rem),
        var(--bg);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
}

.selector-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 48px;
}

.selector-header,
.selector-brand,
.venue-card-topline {
    display: flex;
    align-items: center;
}

.selector-header {
    justify-content: space-between;
    gap: 20px;
}

.selector-brand {
    gap: 12px;
    text-decoration: none;
}

.selector-brand img {
    display: block;
}

.selector-brand span {
    display: grid;
    gap: 2px;
}

.selector-brand strong {
    letter-spacing: 0.14em;
    font-size: 0.86rem;
}

.selector-brand small,
.selector-mode,
.selector-eyebrow,
.venue-state,
.future-venues span,
footer {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.selector-mode,
.venue-state {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 10px;
}

.selector-hero {
    max-width: 820px;
    padding: 105px 0 52px;
}

.selector-eyebrow {
    margin: 0 0 16px;
}

.selector-hero h1 {
    margin: 0;
    max-width: 14ch;
    font-size: clamp(2.4rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.selector-hero > p:last-child {
    margin: 24px 0 0;
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.venue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.venue-card {
    min-height: 310px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--panel), var(--panel-2));
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.venue-card:hover,
.venue-card:focus-visible {
    transform: translateY(-3px);
    border-color: #56667a;
    outline: none;
}

.venue-card-topline {
    justify-content: space-between;
    gap: 12px;
}

.venue-badge {
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.11em;
}

.venue-card h2 {
    margin: 72px 0 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.045em;
}

.venue-card p {
    max-width: 52ch;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.venue-open {
    display: block;
    margin-top: 26px;
    font-weight: 700;
}

.venue-card-hyperliquid {
    box-shadow: inset 0 3px 0 rgba(130, 225, 191, 0.65);
}

.venue-card-aster {
    box-shadow: inset 0 3px 0 rgba(236, 188, 91, 0.75);
}

.future-venues {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--muted);
}

.future-venues strong {
    color: var(--text);
    font-size: 0.86rem;
}

footer {
    margin-top: 46px;
}

@media (max-width: 760px) {
    .selector-shell {
        width: min(100% - 24px, 1180px);
    }

    .selector-header,
    .future-venues {
        align-items: flex-start;
        flex-direction: column;
    }

    .selector-hero {
        padding-top: 72px;
    }

    .venue-grid {
        grid-template-columns: 1fr;
    }

    .venue-card {
        min-height: 270px;
    }

    .venue-card h2 {
        margin-top: 52px;
    }
}

/* E7C-R shared-brand /dex/ refinement */
.selector-brand img {
    display: block;
    width: min(232px, 48vw);
    height: auto;
}
.selector-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.selector-nav a, .selector-footer a {
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}
.selector-nav a:hover, .selector-nav a:focus-visible,
.selector-nav a[aria-current="page"],
.selector-footer a:hover, .selector-footer a:focus-visible {
    color: var(--text);
    background: rgba(255,255,255,0.055);
    outline: none;
}
.selector-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
@media (max-width: 760px) {
    .selector-nav, .selector-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
