@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --orange: #ff6a00;
    --orange-soft: #ff8a32;
    --black: #080a0c;
    --black-2: #0d1013;
    --black-3: #12161a;
    --panel: rgba(17, 21, 25, .82);
    --line: rgba(255,255,255,.09);
    --text: #f4f5f6;
    --muted: #8c949d;
    --green: #64df91;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 70% 0%,
            rgba(255,106,0,.12),
            transparent 35%
        ),
        var(--black);

    color: var(--text);
    font-family: Inter, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;

    background:
        linear-gradient(
            rgba(255,255,255,.014) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.014) 1px,
            transparent 1px
        );

    background-size: 48px 48px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.hidden {
    display: none !important;
}


/* NAV */

.nav {
    height: 82px;
    padding: 0 max(28px, 5vw);

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(8,10,12,.87);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: var(--orange);
    color: #111;

    font-family: "Barlow Condensed";
    font-weight: 900;
    font-size: 22px;

    transform: skew(-5deg);
}

.brand strong {
    display: block;
    font: 800 24px/20px "Barlow Condensed";
    letter-spacing: .08em;
}

.brand small {
    display: block;
    color: var(--orange);
    font: 700 11px Inter;
    letter-spacing: .28em;
    margin-top: 5px;
}

.nav-links {
    display: flex;
    gap: 34px;

    font: 700 13px Inter;
    letter-spacing: .12em;
}

.nav-links a {
    color: #aab0b6;
    transition: .2s;
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-account {
    font-family: "Barlow Condensed";
    font-weight: 700;
    letter-spacing: .06em;
}

.logout-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}


/* HERO */

.hero {
    min-height: calc(100vh - 82px);

    position: relative;

    display: flex;
    align-items: center;

    padding: 80px max(28px, 8vw);

    overflow: hidden;

    border-bottom: 1px solid var(--line);
}

.hero::after {
    content: "";
    position: absolute;

    width: 850px;
    height: 850px;

    right: -220px;
    top: -240px;

    border: 1px solid rgba(255,106,0,.18);
    border-radius: 50%;

    box-shadow:
        0 0 0 80px rgba(255,106,0,.025),
        0 0 0 160px rgba(255,106,0,.018);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .16;

    background:
        linear-gradient(
            100deg,
            transparent 30%,
            rgba(255,106,0,.20),
            transparent 70%
        );
}

.hero-content {
    width: min(850px, 100%);
    position: relative;
    z-index: 2;
}

.launch-badge {
    display: inline-flex;
    gap: 10px;
    align-items: center;

    padding: 8px 13px;

    border: 1px solid rgba(100,223,145,.28);
    background: rgba(100,223,145,.07);

    color: var(--green);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);

    box-shadow:
        0 0 12px var(--green);
}

.eyebrow {
    color: var(--orange);
    letter-spacing: .20em;
    font-size: 12px;
    font-weight: 800;

    margin-top: 36px;
}

.hero h1 {
    margin: 10px 0 12px;

    font-family: "Barlow Condensed";
    font-size: clamp(78px, 13vw, 170px);
    line-height: .78;
    font-weight: 900;

    letter-spacing: -.035em;
}

.hero h1 span {
    display: block;
    color: transparent;

    -webkit-text-stroke:
        1.5px rgba(255,255,255,.88);
}

.hero-copy {
    max-width: 660px;

    margin: 36px 0 0;

    color: #a8afb6;

    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.7;
}

.hero-actions {
    margin-top: 38px;

    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    min-height: 52px;

    padding: 0 25px;

    border: 1px solid var(--line);

    display: inline-flex;
    justify-content: center;
    align-items: center;

    font-family: "Barlow Condensed";
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .08em;

    cursor: pointer;

    transition:
        transform .15s,
        background .15s,
        border .15s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    border-color: var(--orange);
    background: var(--orange);
    color: #111;
}

.btn-primary:hover {
    background: var(--orange-soft);
}

.btn-secondary {
    background: rgba(255,255,255,.025);
}

.btn:disabled {
    opacity: .42;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    min-width: 240px;
    min-height: 62px;
    font-size: 19px;
}

.server-strip {
    margin-top: 55px;
    padding-top: 22px;

    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;

    border-top: 1px solid var(--line);
}

.server-live {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--muted);
    font-size: 12px;
    letter-spacing: .10em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
}

.status-dot.online {
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.server-address {
    color: #666e76;
    font-family: monospace;
}


/* GENERAL */

.section {
    width: min(1280px, calc(100% - 48px));
    margin: auto;
    padding: 110px 0;
}

.section + .section {
    border-top: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 48px;
}

.section-heading > span {
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

.section-heading h2,
.connect-section h2 {
    margin: 5px 0;

    font-family: "Barlow Condensed";
    font-size: clamp(42px, 6vw, 72px);
    line-height: .95;
    font-weight: 900;
}

.section-heading p {
    color: var(--muted);
}


/* PLAYER */

.player-card {
    min-height: 150px;
    padding: 30px;

    display: flex;
    align-items: center;
    gap: 25px;

    background: var(--panel);
    border: 1px solid var(--line);
}

.avatar {
    width: 82px;
    height: 82px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    background:
        linear-gradient(
            145deg,
            var(--orange),
            #633019
        );

    color: #111;

    font: 900 40px "Barlow Condensed";
}

.player-info {
    flex: 1;
}

.label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .18em;
}

.player-info h3 {
    margin: 5px 0;
    font: 800 32px "Barlow Condensed";
}

.steam-id {
    color: #667079;
    font-family: monospace;
    font-size: 12px;
}

.player-stats {
    display: flex;
    gap: 45px;
}

.player-stats div {
    min-width: 68px;
}

.player-stats strong {
    display: block;

    font: 800 32px "Barlow Condensed";
}

.player-stats span {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .14em;
}


/* QUEUE */

.queue-layout {
    display: grid;
    grid-template-columns: 1.25fr .75fr;

    border: 1px solid var(--line);
    background: var(--panel);
}

.queue-main {
    min-height: 430px;
    padding: 55px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-right: 1px solid var(--line);
}

.queue-number {
    display: flex;
    align-items: baseline;
}

.queue-number strong {
    color: var(--orange);

    font: 900 110px/1 "Barlow Condensed";
}

.queue-number span {
    color: #667079;
    font: 700 35px "Barlow Condensed";
}

.queue-main p {
    color: var(--muted);
}

.queue-progress {
    width: 100%;
    height: 5px;

    margin: 22px 0 32px;

    background: #21262b;
    overflow: hidden;
}

.queue-progress div {
    height: 100%;
    width: 0%;

    background: var(--orange);
    transition: width .35s ease;
}

.free-note {
    margin-top: 18px !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
}

.queue-roster {
    padding: 35px;
}

.roster-title {
    padding-bottom: 20px;

    display: flex;
    justify-content: space-between;

    color: #7d858d;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;

    border-bottom: 1px solid var(--line);
}

.queue-player,
.queue-empty {
    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(255,255,255,.055);
}

.queue-player strong {
    font-size: 13px;
}

.queue-player span {
    color: var(--orange);
    font: 700 14px "Barlow Condensed";
}

.queue-empty {
    color: #4f565d;
    font-size: 12px;
}


/* MATCH PREVIEW */

.match-preview {
    position: relative;
}

.versus {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: stretch;
}

.team {
    padding: 42px;

    background: var(--panel);
    border: 1px solid var(--line);
}

.team-a {
    border-top: 2px solid var(--orange);
}

.team-b {
    border-top: 2px solid #77828c;
}

.team-label {
    color: var(--muted);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.team h3 {
    margin: 5px 0 20px;

    font: 900 45px "Barlow Condensed";
}

.team p {
    min-height: 55px;

    color: var(--muted);
    line-height: 1.6;
}

.player-line {
    padding: 15px 0;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid var(--line);
}

.player-line span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .12em;
}

.player-line strong {
    font-family: "Barlow Condensed";
}

.vs-mark {
    display: grid;
    place-items: center;

    color: var(--orange);

    font: 900 40px "Barlow Condensed";
}


/* MAPS */

.map-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.map-card {
    min-height: 300px;

    position: relative;
    overflow: hidden;

    border: 1px solid var(--line);

    background: #111;

    cursor: default;
}

.map-card img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(.68)
        contrast(1.06)
        brightness(.73);

    transition:
        transform .45s,
        filter .45s;
}

.map-card:hover img {
    transform: scale(1.04);

    filter:
        saturate(.9)
        contrast(1.08)
        brightness(.86);
}

.map-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(5,6,7,.96) 0%,
            rgba(5,6,7,.15) 75%
        );
}

.map-card::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: 0;

    width: 4px;
    height: 0;

    background: var(--orange);

    transition: height .3s;
}

.map-card:hover::after {
    height: 100%;
}

.map-meta {
    position: absolute;

    left: 28px;
    bottom: 25px;

    z-index: 2;
}

.map-meta > span {
    color: var(--orange);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.map-meta h3 {
    margin: 2px 0;

    font: 900 38px "Barlow Condensed";
}

.map-meta small {
    color: #838b92;
    font-family: monospace;
}

.map-card.unavailable img {
    filter:
        grayscale(1)
        brightness(.36);
}

.map-card.unavailable::before {
    content: "";
    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 10px,
            rgba(0,0,0,.10) 10px,
            rgba(0,0,0,.10) 20px
        );
}

.unavailable-label {
    color: #e07777 !important;
}


/* STEPS */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 1px;

    background: var(--line);
}

.steps article {
    min-height: 245px;
    padding: 34px;

    background: var(--black-2);
}

.steps strong {
    color: var(--orange);

    font: 900 42px "Barlow Condensed";
}

.steps h3 {
    margin: 15px 0 8px;

    font: 800 25px "Barlow Condensed";
}

.steps p {
    color: var(--muted);
    line-height: 1.6;
}


/* CONNECT */

.connect-section {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.connect-section p {
    color: var(--muted);
}

.connect-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.connect-actions code {
    padding: 15px 19px;

    color: var(--orange);

    background: #090b0d;
    border: 1px solid var(--line);
}


/* FOOTER */

footer {
    min-height: 160px;

    padding: 45px max(28px, 6vw);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-top: 1px solid var(--line);

    color: #606970;

    font-size: 11px;
}

.footer-brand strong {
    display: block;

    color: #d6d9dc;

    font: 800 20px "Barlow Condensed";
}

.footer-brand span {
    color: var(--orange);

    font-size: 8px;
    letter-spacing: .20em;
}

.legal {
    max-width: 330px;
    text-align: right;
}


/* TOAST */

.toast {
    position: fixed;

    left: 50%;
    bottom: 30px;

    z-index: 999;

    padding: 14px 20px;

    background: #161a1e;
    border: 1px solid var(--line);

    color: white;

    font-size: 12px;

    transform:
        translate(-50%, 30px);

    opacity: 0;
    pointer-events: none;

    transition: .25s;
}

.toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* RESPONSIVE */

@media (max-width: 950px) {

    .nav-links {
        display: none;
    }

    .queue-layout {
        grid-template-columns: 1fr;
    }

    .queue-main {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .player-card {
        flex-wrap: wrap;
    }

    .player-stats {
        width: 100%;
        justify-content: space-between;
    }

    .versus {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vs-mark {
        min-height: 70px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .nav {
        height: 70px;
        padding: 0 18px;
    }

    .brand strong {
        font-size: 20px;
    }

    .hero {
        min-height: calc(100vh - 70px);
        padding: 70px 24px;
    }

    .hero h1 {
        font-size: 80px;
    }

    .section {
        width: calc(100% - 32px);
        padding: 75px 0;
    }

    .queue-main,
    .queue-roster,
    .team {
        padding: 25px;
    }

    .queue-number strong {
        font-size: 80px;
    }

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

    .map-card {
        min-height: 250px;
    }

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

    .connect-section {
        display: block;
    }

    .connect-actions {
        margin-top: 30px;
        align-items: stretch;
    }

    .connect-actions code {
        overflow-wrap: anywhere;
    }

    footer {
        display: block;
    }

    footer > * {
        margin-bottom: 18px;
    }

    .legal {
        text-align: left;
    }

}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* ============================================================
   LIVE MATCHMAKING
   ============================================================ */

.match-id-row {
    margin-bottom: 18px;
    padding: 14px 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(255,255,255,.025);
    border: 1px solid var(--line);

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}

.match-id-row strong {
    color: var(--orange);

    font-family: monospace;
    font-size: 13px;
}


.match-roster {
    margin-top: 25px;
}


.match-player {
    min-height: 66px;

    padding: 10px 0;

    display: flex;
    align-items: center;

    gap: 13px;

    border-top: 1px solid var(--line);
}


.match-player-avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    background: #252a2f;

    object-fit: cover;
}


.match-player-info {
    min-width: 0;
    flex: 1;
}


.match-player-name {
    display: flex;
    align-items: center;

    gap: 7px;

    font-size: 13px;
    font-weight: 700;
}


.match-player-name span:first-child {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.captain-badge {
    padding: 3px 5px;

    color: #111;
    background: var(--orange);

    font-size: 7px;
    font-weight: 900;
    letter-spacing: .10em;
}


.match-player-elo {
    margin-top: 4px;

    color: var(--muted);

    font-size: 9px;
    letter-spacing: .12em;
}


.vote-status {
    margin-top: 28px;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border: 1px solid rgba(255,106,0,.28);

    background: rgba(255,106,0,.055);
}


.vote-status strong {
    color: var(--orange);

    font-family: "Barlow Condensed";
    font-size: 20px;
    letter-spacing: .08em;
}


.vote-status span {
    color: var(--muted);
    font-size: 12px;
}


/* ============================================================
   MAP VOTING
   ============================================================ */

.map-card.vote-enabled {
    cursor: pointer;

    border-color: rgba(255,106,0,.32);
}


.map-card.vote-enabled:hover {
    border-color: var(--orange);
}


.map-card.my-vote {
    border-color: var(--orange);

    box-shadow:
        inset 0 0 0 2px var(--orange),
        0 0 30px rgba(255,106,0,.12);
}


.map-card.vote-winner {
    border-color: var(--green);

    box-shadow:
        inset 0 0 0 2px var(--green),
        0 0 35px rgba(100,223,145,.10);
}


.map-card.vote-winner::after {
    background: var(--green);
    height: 100%;
}


.map-vote-count {
    position: absolute;

    right: 18px;
    top: 18px;

    z-index: 5;

    min-width: 48px;

    padding: 8px 10px;

    text-align: center;

    background: rgba(5,7,8,.88);

    border: 1px solid rgba(255,255,255,.13);

    color: white;

    font: 800 14px "Barlow Condensed";
}


.map-vote-count span {
    display: block;

    margin-top: 1px;

    color: var(--muted);

    font-family: Inter;
    font-size: 7px;
    letter-spacing: .12em;
}


.map-vote-selected {
    position: absolute;

    left: 20px;
    top: 18px;

    z-index: 5;

    padding: 7px 10px;

    color: #111;

    background: var(--orange);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
}


.map-vote-winner-label {
    position: absolute;

    left: 20px;
    top: 18px;

    z-index: 5;

    padding: 7px 10px;

    color: #07100a;

    background: var(--green);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
}


/* ============================================================
   READY TO CONNECT
   ============================================================ */

.selected-map-display {
    margin-top: 20px;
}


.selected-map-display span {
    display: block;

    margin-bottom: 3px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .18em;
}


.selected-map-display strong {
    color: var(--orange);

    font: 900 28px "Barlow Condensed";
}


@media (max-width: 650px) {

    .vote-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .match-player {
        min-height: 60px;
    }

}


/* ============================================================
   OWNER DEVELOPMENT CONSOLE
   ============================================================ */

.dev-panel {
    padding-top: 55px;
    padding-bottom: 55px;
}

.dev-panel .section-heading {
    margin-bottom: 24px;
}

.dev-console {
    padding: 22px;

    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    background:
        rgba(255,106,0,.035);

    border:
        1px solid
        rgba(255,106,0,.18);
}

.dev-danger {
    border-color:
        rgba(220,80,80,.45);

    background:
        rgba(220,80,80,.08);

    color:
        #e68c8c;
}

.dev-danger:hover {
    background:
        rgba(220,80,80,.15);
}

.dev-help {
    margin-top: 15px;

    color: var(--muted);

    font-size: 11px;
    letter-spacing: .08em;
}

.dev-note {
    flex-basis: 100%;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .06em;
}


.btn {
    color: var(--text);
}

.btn-primary {
    color: #111;
}

.btn-secondary {
    color: var(--text) !important;
}

.btn-secondary:hover {
    color: var(--text) !important;
}


/* ============================================================
   READY CHECK + CAPTAIN VETO
   ============================================================ */

.btn-secondary {
    color: var(--text) !important;
}

.ready-overlay {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: grid;
    place-items: center;

    padding: 25px;

    background:
        rgba(4,6,8,.92);

    backdrop-filter:
        blur(15px);
}

.ready-box {
    width: min(520px, 100%);

    padding: 45px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #15191d,
            #0a0c0e
        );

    border:
        1px solid
        rgba(255,106,0,.42);

    box-shadow:
        0 0 80px
        rgba(255,106,0,.12);
}

.ready-label {
    color: var(--orange);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .22em;
}

.ready-box h2 {
    margin:
        7px 0 10px;

    font:
        900 60px
        "Barlow Condensed";
}

.ready-box p {
    color: var(--muted);
}

.ready-time {
    margin: 25px 0 5px;

    color: white;

    font:
        900 70px
        "Barlow Condensed";
}

.ready-count {
    margin-bottom: 25px;

    color: var(--orange);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}

.ready-accept {
    width: 100%;
    min-height: 65px;
    font-size: 22px;
}

.ready-beacon {
    height: 22px;

    display: flex;
    align-items: end;
    justify-content: center;
    gap: 6px;

    margin-bottom: 22px;
}

.ready-beacon span {
    width: 5px;
    height: 10px;

    background: var(--orange);

    animation:
        beacon 650ms
        infinite alternate;
}

.ready-beacon span:nth-child(2) {
    height: 20px;
    animation-delay: 140ms;
}

.ready-beacon span:nth-child(3) {
    height: 14px;
    animation-delay: 280ms;
}

@keyframes beacon {
    from {
        opacity: .25;
    }

    to {
        opacity: 1;
        box-shadow:
            0 0 12px
            var(--orange);
    }
}


.match-lobby {
    width:
        min(
            1400px,
            calc(100% - 48px)
        );
}

.match-topline {
    display: flex;
    justify-content: space-between;
    align-items: end;

    gap: 30px;

    margin-bottom: 30px;
}

.match-topline > div > span {
    color: var(--orange);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
}

.match-topline h2 {
    margin: 3px 0 0;

    font:
        900 clamp(
            45px,
            6vw,
            75px
        )/1
        "Barlow Condensed";
}

.match-code {
    text-align: right;
}

.match-code span {
    display: block;

    color: var(--muted);

    font-size: 8px;
    letter-spacing: .15em;
}

.match-code strong {
    color: var(--orange);
    font-family: monospace;
}


.match-roster {
    margin-top: 18px;
}

.match-player {
    min-height: 57px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-top:
        1px solid
        var(--line);
}

.match-player img,
.match-player-avatar {
    width: 36px;
    height: 36px;

    object-fit: cover;

    background: #262b30;
}

.match-player-info {
    min-width: 0;
    flex: 1;
}

.match-player-name {
    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 12px;
    font-weight: 700;
}

.captain-badge {
    padding: 3px 5px;

    background: var(--orange);
    color: #111;

    font-size: 7px;
    font-weight: 900;
}

.match-player-elo {
    color: var(--muted);

    font-size: 9px;
    margin-top: 3px;
}


.veto-panel {
    margin-top: 50px;

    padding: 30px;

    border:
        1px solid
        rgba(255,106,0,.24);

    background:
        rgba(12,15,18,.92);
}

.veto-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 25px;

    margin-bottom: 25px;
}

.veto-heading span {
    color: var(--orange);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.veto-heading h3 {
    margin: 4px 0;

    font:
        900 37px
        "Barlow Condensed";
}

.veto-heading p {
    margin: 0;

    color: var(--muted);
}

.veto-timer {
    min-width: 100px;

    text-align: right;

    color: var(--orange);

    font:
        900 42px
        "Barlow Condensed";
}


.veto-grid {
    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );

    gap: 10px;
}

.veto-card {
    aspect-ratio: 16 / 9;

    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.10);

    background: #111;

    cursor: default;

    transition:
        transform .15s,
        border .15s;
}

.veto-card img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        brightness(.60)
        saturate(.75);
}

.veto-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(3,4,5,.94),
            transparent 70%
        );
}

.veto-name {
    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 10px;

    z-index: 3;

    font:
        900 18px
        "Barlow Condensed";
}

.veto-card.clickable {
    cursor: pointer;
}

.veto-card.clickable:hover {
    transform:
        translateY(-3px);

    border-color:
        var(--orange);
}

.veto-card.selected {
    border:
        2px solid
        var(--orange);

    box-shadow:
        0 0 20px
        rgba(255,106,0,.18);
}

.veto-card.banned img {
    filter:
        grayscale(1)
        brightness(.22);
}

.veto-card.banned::before {
    content: "";

    position: absolute;

    left: -20%;
    top: 48%;

    z-index: 5;

    width: 140%;
    height: 3px;

    background: #c44747;

    transform:
        rotate(-17deg);
}

.veto-card.winner {
    border:
        2px solid
        var(--green);

    box-shadow:
        0 0 24px
        rgba(100,223,145,.16);
}

.veto-banned-by {
    position: absolute;

    top: 8px;
    left: 8px;

    z-index: 6;

    padding: 5px 7px;

    background:
        rgba(135,30,30,.92);

    font-size: 7px;
    font-weight: 900;
    letter-spacing: .09em;
}

.veto-winner-label {
    position: absolute;

    top: 8px;
    left: 8px;

    z-index: 6;

    padding: 5px 7px;

    background: var(--green);
    color: #071009;

    font-size: 7px;
    font-weight: 900;
}


.veto-actions {
    min-height: 70px;

    display: flex;
    align-items: center;

    gap: 15px;

    margin-top: 20px;
}

.veto-actions > span {
    margin-right: auto;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.veto-log {
    padding-top: 15px;

    border-top:
        1px solid
        var(--line);

    color: var(--muted);

    font-size: 11px;
}

.veto-log-entry {
    padding: 6px 0;
}

.veto-log-entry strong {
    color: var(--orange);
}


.dev-console {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dev-danger {
    border-color:
        rgba(220,60,60,.40);

    color: #e98b8b;
}


@media (max-width: 1000px) {

    .veto-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 650px) {

    .ready-box {
        padding: 30px 20px;
    }

    .ready-box h2 {
        font-size: 45px;
    }

    .veto-panel {
        padding: 18px;
    }

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

    .veto-heading {
        align-items: flex-start;
    }

    .veto-timer {
        font-size: 30px;
    }

}


/* ============================================================
   MATCH READY / JOIN SERVER
   ============================================================ */

.match-connect {
    margin-top: 28px;

    padding: 30px;

    display: grid;

    grid-template-columns:
        1fr auto;

    align-items: center;

    gap: 20px;

    border:
        1px solid
        rgba(100,223,145,.35);

    background:
        linear-gradient(
            135deg,
            rgba(100,223,145,.07),
            rgba(255,106,0,.035)
        );

    box-shadow:
        0 0 40px
        rgba(100,223,145,.05);
}


.match-connect-status span {
    color: var(--green);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}


.match-connect-status h3 {
    margin: 3px 0;

    color: white;

    font:
        900 42px
        "Barlow Condensed";
}


.match-connect-status p {
    margin: 4px 0;

    color: var(--muted);
}


.match-connect-button {
    min-width: 210px;
    min-height: 62px;

    font-size: 20px;
}


.match-connect code {
    grid-column: 1 / -1;

    padding-top: 14px;

    border-top:
        1px solid var(--line);

    color: var(--orange);

    font-size: 11px;
}


@media (max-width: 700px) {

    .match-connect {
        grid-template-columns: 1fr;
    }

    .match-connect-button {
        width: 100%;
    }

}


/* ============================================================
   SERVER CAPACITY / NEXT MATCH QUEUE
   ============================================================ */

.server-queue-notice {
    margin-top: 24px;

    padding: 17px 19px;

    border:
        1px solid
        rgba(255,106,0,.35);

    background:
        rgba(255,106,0,.07);

    text-align: left;
}

.server-queue-notice strong {
    display: block;

    margin-bottom: 6px;

    color: var(--orange);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
}

.server-queue-notice span {
    color: #a8afb6;

    font-size: 12px;
    line-height: 1.5;
}

/* ============================================================
   MATCH TYPE TABS
   ============================================================ */
.mode-tabs {
    display: inline-flex;
    gap: 8px;
    margin: 0 0 28px;
    padding: 6px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
}

.mode-tab {
    min-width: 120px;
    padding: 13px 22px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font: 900 18px "Barlow Condensed", sans-serif;
    letter-spacing: .1em;
    cursor: pointer;
    transition: .18s ease;
}

.mode-tab:hover {
    color: white;
    border-color: rgba(255,255,255,.12);
}

.mode-tab.active {
    color: #111;
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 28px rgba(255,106,0,.18);
}

@media (max-width: 560px) {
    .mode-tabs { display: flex; width: 100%; }
    .mode-tab { flex: 1; min-width: 0; }
}

/* ============================================================
   COMPACT APP LAYOUT — SEP 2026
   ============================================================ */

.hero {
    min-height: auto;
    padding: 54px max(28px, 8vw) 58px;
}

.hero-copy {
    margin-top: 22px;
    line-height: 1.55;
}

.hero-actions {
    margin-top: 26px;
}

.server-strip {
    margin-top: 28px;
}

.section {
    padding: 62px 0;
}

.section-heading {
    margin-bottom: 28px;
}

.mode-tabs {
    margin-bottom: 18px;
}

.player-card {
    min-height: 126px;
    padding: 22px 26px;
}

.queue-main {
    min-height: 350px;
    padding: 38px;
}

.queue-roster {
    padding: 28px;
}

.queue-number strong {
    font-size: 94px;
}

.map-grid {
    gap: 12px;
}

.map-card {
    min-height: 250px;
}

.steps article {
    min-height: 195px;
    padding: 27px;
}

.steps h3 {
    margin-top: 10px;
}

@media (max-width: 800px) {
    .hero {
        padding-top: 38px;
        padding-bottom: 42px;
    }

    .section {
        padding: 44px 0;
    }

    .queue-main {
        min-height: 310px;
        padding: 28px;
    }

    .map-card {
        min-height: 210px;
    }
}
