:root {
    --rq-bg: #13100f;
    --rq-bg-alt: #211b19;
    --rq-surface: rgba(24, 20, 19, 0.84);
    --rq-surface-soft: rgba(35, 29, 27, 0.92);
    --rq-accent: #ff6a00;
    --rq-accent-soft: rgba(255, 106, 0, 0.14);
    --rq-accent-strong: #ffb347;
    --rq-border: rgba(193, 182, 173, 0.2);
    --rq-text: #f4eeea;
    --rq-text-muted: #b4a79d;
    --rq-danger: #ff5b3f;
}


body {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 123, 0, 0.18), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(255, 179, 71, 0.12), transparent 22%),
        radial-gradient(circle at 52% 100%, rgba(255, 79, 0, 0.08), transparent 32%),
        linear-gradient(180deg, #1b1513 0%, #090909 100%);
    color: var(--rq-text);
}

.rq-page {
    animation: rq-fade-in 180ms ease-out;
}

.text-muted {
    color: var(--rq-text-muted) !important;
}

/* Layout */

.rq-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rq-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 78px;
    padding: 0 1.5rem;
    background: rgba(16, 13, 12, 0.96);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--rq-border);
}

.rq-main {
    flex: 1;
    padding: 2.5rem 1.5rem 2rem;
}

.rq-content {
    max-width: 1100px;
    margin: 0 auto;
}

.rq-footer {
    padding: 0.75rem 1.5rem 1.5rem;
    font-size: 0.8rem;
    border-top: 1px solid rgba(76, 64, 59, 0.65);
}

/* Branding / Nav */

.rq-logo {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    color: inherit;
    text-decoration: none;
}

.rq-logo-mark {
    width: 58px;
    height: 58px;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.34));
}

.rq-logo-text {
    display: flex;
    flex-direction: column;
}

.rq-logo-title {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.rq-logo-sub {
    font-size: 0.75rem;
    color: var(--rq-text-muted);
}

.rq-header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.rq-nav {
    display: flex;
    gap: 1rem;
}

.rq-nav-link {
    position: relative;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    color: var(--rq-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

    .rq-nav-link.active {
        background: var(--rq-accent-soft);
        color: #fff3eb;
        box-shadow: inset 0 0 0 1px rgba(255, 126, 36, 0.22);
    }

/* Buttons */

.rq-btn {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    background: transparent;
    color: var(--rq-text);
    transition: all 120ms ease-out;
}

.rq-btn-icon {
    width: 18px;
    height: 18px;
}

.rq-btn-primary {
    background: linear-gradient(135deg, #ff7a00, #ff3c00);
    border: none;
    color: white;
    box-shadow: 0 12px 26px rgba(115, 31, 0, 0.42);
}

    .rq-btn-primary:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

.rq-btn-secondary {
    background: var(--rq-surface-soft);
    border-color: var(--rq-border);
    color: #f8efe8;
}

.rq-btn-outline {
    border-color: var(--rq-border);
    background: rgba(27, 22, 21, 0.75);
}

    .rq-btn-outline:hover {
        border-color: rgba(255, 126, 36, 0.4);
        background: rgba(39, 31, 29, 0.92);
    }

.rq-btn-ghost {
    border: none;
    background: transparent;
    color: var(--rq-text-muted);
}

    .rq-btn-ghost:hover {
        color: var(--rq-accent-strong);
    }

.rq-btn-xs {
    padding: 0.1rem 0.45rem;
    font-size: 0.75rem;
}

.rq-btn-lg {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
}

.rq-btn-block {
    justify-content: center;
    width: 100%;
}

/* Hero */

.rq-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: center;
    min-height: 70vh;
}

.rq-hero-main h1 {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.rq-hero-main p {
    color: var(--rq-text-muted);
    max-width: 32rem;
    font-size: 1.02rem;
    line-height: 1.6;
}

.rq-hero-btn {
    margin-top: 1.25rem;
}

.rq-hero-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--rq-text-muted);
}

.rq-hero-panel {
    display: flex;
    justify-content: flex-end;
}

.rq-env-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 116, 0, 0.12);
    border: 1px solid rgba(255, 138, 47, 0.3);
    color: #ffd2ab;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.rq-panel-card {
    width: 100%;
    max-width: 320px;
    border-radius: 1.4rem;
    padding: 1.4rem 1.3rem;
    background:
        linear-gradient(180deg, rgba(35, 29, 27, 0.96), rgba(16, 13, 12, 0.98)),
        radial-gradient(circle at top left, rgba(255, 123, 0, 0.14), transparent 52%);
    border: 1px solid rgba(193, 182, 173, 0.22);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.rq-panel-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.rq-panel-sub {
    font-size: 0.8rem;
    color: var(--rq-text-muted);
    margin-bottom: 1rem;
}

.rq-panel-value {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.rq-panel-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--rq-text-muted);
}

/* Cards / Queue */

.rq-page-header {
    margin-bottom: 1.5rem;
}

.rq-card {
    border-radius: 1rem;
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.rq-card-soft {
    background: var(--rq-surface-soft);
}

.rq-card-success {
    border-color: rgba(255, 124, 0, 0.44);
    box-shadow: 0 0 0 1px rgba(255, 124, 0, 0.16);
}

.rq-card-warning {
    border-color: rgba(255, 171, 84, 0.38);
    background: rgba(255, 153, 51, 0.06);
}

.rq-card-compact {
    padding: 0.9rem 1rem;
}

.rq-card-title {
    padding: 0.9rem 1rem 0.3rem;
    font-weight: 600;
}

.rq-card-body {
    padding: 0 1rem 1rem;
}

.rq-card-header {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(76, 64, 59, 0.6);
}

/* Queue layout */

.rq-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.7fr);
    gap: 1.3rem;
}

.rq-grid-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rq-grid-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Misc */

.rq-progress {
    height: 26px;
    border-radius: 999px;
    background: rgba(17, 14, 13, 0.92);
    overflow: hidden;
    border: 1px solid rgba(78, 67, 63, 0.7);
}

.rq-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff7a00, #ff4800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.rq-pill {
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    font-size: 0.8rem;
}

.rq-pill-secondary {
    background: rgba(193, 182, 173, 0.12);
    color: #dacfc6;
}

.rq-pill-danger {
    background: rgba(255, 91, 63, 0.18);
    color: #ffd0c7;
}

.rq-badge {
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    background: rgba(255, 137, 53, 0.16);
    color: #ffd7b3;
}

.rq-btn-tile {
    position: relative;
    width: 100%;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.35rem;
    border-radius: 0.8rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(78, 67, 63, 0.74);
    background: rgba(22, 18, 17, 0.94);
    color: var(--rq-text);
    text-align: left;
}

.rq-btn-tile-active {
    border-color: rgba(255, 122, 0, 0.72);
    box-shadow: 0 0 0 1px rgba(255, 122, 0, 0.24);
}

/* Player box */

.rq-player-box {
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.16), rgba(24, 20, 19, 0.98));
    border: 1px solid rgba(255, 122, 0, 0.26);
}

.rq-player-name {
    font-weight: 600;
}

.rq-player-id {
    font-size: 0.8rem;
    color: var(--rq-text-muted);
}

/* User badge */

.rq-user-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(21, 18, 17, 0.92);
    border: 1px solid rgba(82, 70, 65, 0.84);
}

.rq-user-info {
    display: flex;
    flex-direction: column;
}

.rq-user-name {
    font-size: 0.85rem;
}

.rq-user-id {
    font-size: 0.7rem;
    color: var(--rq-text-muted);
}

.rq-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 147, 67, 0.38);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.08);
}

.rq-avatar-lg {
    width: 56px;
    height: 56px;
}

.rq-user-inline {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.rq-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffbf7a;
    margin-bottom: 0.2rem;
}

.rq-hero-auth-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
}

.rq-list {
    list-style: none;
    padding: 0.3rem 0 0;
    margin: 0;
}

    .rq-list li {
        display: flex;
        justify-content: space-between;
        font-size: 0.85rem;
        padding: 0.35rem 0;
        color: var(--rq-text-muted);
    }

.rq-tag {
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    background: rgba(19, 16, 15, 0.94);
    border: 1px solid rgba(82, 70, 65, 0.75);
    font-size: 0.75rem;
}

/* Small helpers */

.rq-connect-box {
    background: #0f0c0b;
    color: #f2ebe5;
    border-radius: 0.75rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(82, 70, 65, 0.75);
    text-align: center;
    margin-bottom: 1rem;
}

.rq-mini-card {
    background: rgba(17, 14, 13, 0.96);
    border-radius: 0.7rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(68, 58, 54, 0.88);
}

/* Leaderboard */

.rq-leaderboard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 1.2rem;
    align-items: stretch;
}

.rq-leaderboard-summary {
    max-width: none;
    justify-self: end;
}

.rq-leaderboard-table-wrap {
    overflow-x: auto;
}

.rq-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.rq-leaderboard-table th,
.rq-leaderboard-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(76, 64, 59, 0.45);
    vertical-align: middle;
}

.rq-leaderboard-table th {
    color: var(--rq-text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rq-leaderboard-player {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.rq-leaderboard-rank {
    font-weight: 700;
    color: #ffd2ab;
    white-space: nowrap;
}

.rq-leaderboard-elo {
    font-weight: 800;
    color: #fff3e7;
}

.rq-leaderboard-row-active {
    background: linear-gradient(90deg, rgba(255, 106, 0, 0.12), rgba(255, 106, 0, 0.03));
}

.rq-leaderboard-me {
    margin-top: 1rem;
}

.rq-leaderboard-current {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.rq-leaderboard-current-main {
    min-width: 0;
}

.rq-leaderboard-current-stats {
    display: flex;
    gap: 1rem;
    text-align: right;
}

.rq-leaderboard-current-stats div {
    display: flex;
    flex-direction: column;
}

.rq-leaderboard-current-stats strong {
    font-size: 1.2rem;
    color: #fff0e0;
}

.rq-leaderboard-current-stats span {
    font-size: 0.75rem;
    color: var(--rq-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rq-emoji-lg {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #ffbf7a;
}

@keyframes rq-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .rq-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
    }

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

    .rq-leaderboard-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .rq-leaderboard-summary {
        justify-self: stretch;
    }

    .rq-header {
        padding-inline: 1rem;
    }

    .rq-logo-mark {
        width: 50px;
        height: 50px;
    }

    .rq-hero-auth-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .rq-leaderboard-current {
        grid-template-columns: minmax(0, 1fr);
    }

    .rq-leaderboard-current-stats {
        text-align: left;
    }
}
