: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: 64px;
    padding: 0 2rem;
    background: rgba(14, 11, 10, 0.97);
    backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(255, 126, 36, 0.06), 0 4px 24px rgba(0, 0, 0, 0.4);
}

.rq-main {
    flex: 1;
    padding: 2.5rem 1.5rem 2rem;
}

.rq-content {
    max-width: 1100px;
    margin: 0 auto;
}

.rq-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 2rem;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 8, 7, 0.6);
}

.rq-footer-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.rq-footer-copy {
    color: rgba(255, 228, 209, 0.45);
    font-weight: 500;
}

.rq-footer-tagline {
    color: rgba(255, 228, 209, 0.28);
}

.rq-footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rq-footer-legal-link {
    color: rgba(255, 228, 209, 0.35);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.15s ease;
}

.rq-footer-legal-link:hover {
    color: rgba(255, 228, 209, 0.7);
}

.rq-legal-content {
    line-height: 1.7;
    color: var(--rq-text-muted);
}

.rq-legal-content h4 {
    color: var(--rq-text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.rq-legal-content h4:first-child {
    margin-top: 0;
}

.rq-legal-content ul {
    padding-left: 1.2rem;
}

.rq-legal-content a {
    color: var(--rq-accent-strong);
    text-decoration: none;
}

.rq-legal-content a:hover {
    text-decoration: underline;
}

.rq-footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.rq-footer-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 7px;
    border: 1px solid rgba(88, 101, 242, 0.3);
    background: rgba(88, 101, 242, 0.08);
    color: rgba(255, 228, 209, 0.65);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.rq-footer-discord:hover {
    border-color: rgba(88, 101, 242, 0.6);
    background: rgba(88, 101, 242, 0.16);
    color: #fff;
}

.rq-footer-discord:hover .rq-discord-icon {
    transform: scale(1.1);
}

.rq-discord-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: transform 0.15s ease;
}

.rq-footer-tiktok {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 228, 209, 0.65);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.rq-footer-tiktok:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.rq-footer-tiktok:hover .rq-tiktok-icon {
    transform: scale(1.1);
}

.rq-tiktok-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: transform 0.15s ease;
}

/* Branding / Nav */

.rq-logo {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    color: inherit;
    text-decoration: none;
}

.rq-logo-mark {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.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: 0;
}

.rq-header-left .rq-logo {
    padding-right: 2rem;
    margin-right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.rq-header-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: flex-end;
    margin-left: auto;
    flex-shrink: 0;
}

.rq-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    height: 100%;
}

.rq-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    color: rgba(255, 228, 209, 0.55);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.15s ease, background 0.15s ease;
}

.rq-nav-link:hover {
    color: rgba(255, 228, 209, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.rq-nav-link.active {
    color: #fff3eb;
    background: rgba(255, 126, 36, 0.12);
}

.rq-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: #ff7e24;
}

.rq-nav-link-admin {
    border: 1px solid rgba(255, 96, 96, 0.3);
    background:
        radial-gradient(circle at top, rgba(255, 206, 138, 0.14), transparent 58%),
        linear-gradient(180deg, rgba(74, 11, 19, 0.86), rgba(37, 7, 13, 0.78));
    color: #fff1ed;
}

.rq-nav-link-admin.active {
    background:
        radial-gradient(circle at top, rgba(255, 221, 164, 0.2), transparent 54%),
        linear-gradient(135deg, rgba(203, 31, 49, 0.96), rgba(120, 9, 22, 0.98));
    box-shadow: inset 0 0 0 1px rgba(255, 168, 168, 0.24), 0 10px 24px rgba(105, 10, 22, 0.28);
    color: #fff7f5;
}

.rq-nav-admin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 228, 189, 0.78), transparent 28%),
        linear-gradient(135deg, #ff5b45 0%, #d0162d 56%, #7a0717 100%);
    color: #fff8f8;
    font-size: 0.66rem;
    font-weight: 900;
    border: 1px solid rgba(255, 231, 210, 0.18);
    box-shadow: 0 8px 16px rgba(109, 8, 20, 0.34);
}

/* Buttons */

.rq-btn {
    border-radius: 7px;
    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-user-logout {
    background: none;
    border: none;
    padding: 0 0.2rem;
    font-size: 0.6rem;
    color: rgba(255, 228, 209, 0.2);
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease;
    margin-left: 0.1rem;
}

.rq-user-logout:hover {
    color: rgba(255, 100, 80, 0.8);
}

.rq-btn-lg {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
}

.rq-btn-block {
    justify-content: center;
    width: 100%;
}

.rq-player-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.rq-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.6rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.rq-rank-admin {
    background: rgba(160, 25, 35, 0.28);
    border-color: rgba(220, 50, 60, 0.6);
    color: #ff8f8f;
}

.rq-rank-moderator {
    background: rgba(30, 110, 165, 0.28);
    border-color: rgba(60, 160, 220, 0.6);
    color: #80ccff;
}

.rq-rank-vip {
    background: rgba(180, 135, 0, 0.26);
    border-color: rgba(220, 175, 30, 0.6);
    color: #ffd55a;
}

.rq-rank-premium {
    background: rgba(195, 100, 10, 0.28);
    border-color: rgba(240, 140, 40, 0.6);
    color: #ffb060;
}

.rq-rank-badge-icon {
    font-size: 0.55rem;
    line-height: 1;
    opacity: 0.85;
}

.rq-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.2rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    font-size: 0.58rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.rq-status-badge-banned {
    color: #fff4ef;
    background:
        radial-gradient(circle at 24% 20%, rgba(255, 220, 198, 0.3), transparent 28%),
        linear-gradient(135deg, rgba(164, 36, 28, 0.95), rgba(95, 12, 24, 0.96));
    border-color: rgba(255, 171, 146, 0.34);
    box-shadow: 0 8px 18px rgba(95, 12, 24, 0.2);
}

/* 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.5rem;
    padding: 0.3rem 0.4rem 0.3rem 0.4rem;
    border-radius: 7px;
    background: rgba(21, 18, 17, 0.92);
    border: 1px solid rgba(82, 70, 65, 0.6);
    height: 36px;
    border-left: 3px solid rgba(82, 70, 65, 0.6);
}

.rq-user-badge-admin   { border-left-color: #c0392b; }
.rq-user-badge-mod     { border-left-color: #2e86ab; }
.rq-user-badge-vip     { border-left-color: #d4a017; }
.rq-user-badge-premium { border-left-color: #e07b1a; }

.rq-social-nav-button {
    min-height: 36px;
    padding: 0.35rem 0.85rem;
    background: rgba(21, 18, 17, 0.92);
    border-color: rgba(82, 70, 65, 0.84);
    border-radius: 7px;
    color: var(--rq-text);
}

.rq-social-nav-button:hover:not(:disabled),
.rq-social-nav-button-open {
    background: rgba(36, 30, 28, 0.98);
    border-color: rgba(255, 126, 36, 0.26);
}

.rq-social-nav-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.rq-social-nav-icon {
    font-size: 1rem;
    line-height: 1;
}


.rq-social-nav-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a00, #ff3c00);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.rq-user-info {
    display: flex;
    flex-direction: column;
}

.rq-user-name {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rq-user-id {
    font-size: 0.7rem;
    color: var(--rq-text-muted);
}

.rq-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.rq-user-badge .rq-avatar {
    width: 30px;
    height: 30px;
    border-radius: 5px;
}

.rq-leaderboard-player .rq-avatar {
    width: 38px;
    height: 38px;
    border-radius: 6px;
}

.rq-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border: 1px solid rgba(255, 147, 67, 0.2);
}

.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);
}

.rq-rank-display {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
    min-width: 0;
}

.rq-rank-display-icon {
    flex-shrink: 0;
    height: 1.55rem;
    object-fit: contain;
    width: 2.9rem;
}

.rq-rank-display-meta {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
}

.rq-rank-display-name {
    color: #fff2e5;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.1;
}

.rq-rank-display-elo {
    color: var(--rq-text-muted);
    font-size: 0.74rem;
    line-height: 1.1;
}

.rq-rank-display-compact {
    gap: 0.45rem;
}

.rq-rank-display-compact .rq-rank-display-icon {
    height: 1.45rem;
    width: 2.6rem;
}

.rq-rank-display-compact .rq-rank-display-name {
    font-size: 0.8rem;
}

.rq-rank-display-compact .rq-rank-display-elo {
    font-size: 0.7rem;
}

.rq-rank-display-large .rq-rank-display-icon {
    height: 1.8rem;
    width: 3.3rem;
}

.rq-rank-display-icon-only {
    justify-content: center;
}

.rq-rank-display-icon-only .rq-rank-display-icon {
    height: 1.7rem;
    width: 3.1rem;
}

.rq-rank-display-icon-only.rq-rank-display-large .rq-rank-display-icon {
    height: 2rem;
    width: 3.7rem;
}

/* 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: 820px;
}

.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 tbody tr:last-child td {
    border-bottom: none;
}

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

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

.rq-leaderboard-player-copy {
    min-width: 0;
}

.rq-leaderboard-player-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.rq-leaderboard-player-name-group {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 auto;
    flex-wrap: wrap;
    min-width: 0;
}

.rq-leaderboard-player-label {
    font-weight: 700;
    color: #fff5ea;
    min-width: 0;
}

.rq-leaderboard-rank {
    font-weight: 700;
    color: #ffd2ab;
    white-space: nowrap;
    padding-right: 0.3rem !important;
}

.rq-leaderboard-table td:nth-child(2) {
    padding-left: 0.3rem !important;
}

.rq-leaderboard-elo {
    color: #fff3e7;
    font-weight: 800;
    min-width: 90px;
}

.rq-leaderboard-stat-head,
.rq-leaderboard-stat-cell {
    text-align: center;
}

.rq-leaderboard-rank-header {
    width: 120px;
}

.rq-leaderboard-rank-display {
    display: flex;
    justify-content: center;
    width: 100%;
}

.rq-leaderboard-rank-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.rq-leaderboard-rank-icon {
    padding-inline: 0.75rem !important;
}

.rq-leaderboard-rank-icon .rq-rank-display {
    justify-content: center;
}

.rq-leaderboard-current-rank {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

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

.rq-leaderboard-row-active-last td:first-child {
    border-bottom-left-radius: 18px;
}

.rq-leaderboard-row-active-last td:last-child {
    border-bottom-right-radius: 18px;
}

.rq-leaderboard-row-banned {
    background: linear-gradient(90deg, rgba(122, 22, 26, 0.18), rgba(122, 22, 26, 0.04));
}

.rq-leaderboard-row-1 {
    background:
        linear-gradient(90deg, rgba(255, 224, 133, 0.12), transparent 16%),
        radial-gradient(circle at 88% 50%, rgba(255, 220, 106, 0.14), transparent 30%),
        linear-gradient(90deg, rgba(147, 106, 18, 0.42), rgba(147, 106, 18, 0.2) 42%, rgba(147, 106, 18, 0.05));
    box-shadow:
        inset 4px 0 0 rgba(255, 214, 92, 0.76),
        inset 0 1px 0 rgba(255, 231, 163, 0.12),
        inset 0 -1px 0 rgba(120, 84, 15, 0.3);
}

.rq-leaderboard-row-1 td {
    border-bottom-color: rgba(201, 154, 46, 0.34);
}

.rq-leaderboard-row-1 .rq-leaderboard-rank {
    color: #ffe08a;
    text-shadow: 0 0 16px rgba(255, 219, 112, 0.2);
}

.rq-leaderboard-row-1 .rq-leaderboard-elo {
    color: #fff1c0;
}

.rq-leaderboard-row-1 .rq-avatar {
    box-shadow:
        0 0 0 2px rgba(255, 214, 92, 0.42),
        0 10px 18px rgba(116, 82, 12, 0.26);
}

.rq-leaderboard-row-2 {
    background:
        linear-gradient(90deg, rgba(229, 237, 246, 0.08), transparent 16%),
        radial-gradient(circle at 88% 50%, rgba(213, 226, 238, 0.12), transparent 28%),
        linear-gradient(90deg, rgba(104, 118, 134, 0.4), rgba(104, 118, 134, 0.18) 42%, rgba(104, 118, 134, 0.05));
    box-shadow:
        inset 4px 0 0 rgba(216, 224, 232, 0.72),
        inset 0 1px 0 rgba(236, 242, 248, 0.1),
        inset 0 -1px 0 rgba(72, 84, 98, 0.28);
}

.rq-leaderboard-row-2 td {
    border-bottom-color: rgba(137, 149, 163, 0.34);
}

.rq-leaderboard-row-2 .rq-leaderboard-rank {
    color: #edf3f8;
    text-shadow: 0 0 14px rgba(233, 240, 246, 0.14);
}

.rq-leaderboard-row-2 .rq-leaderboard-elo {
    color: #f4f8fb;
}

.rq-leaderboard-row-2 .rq-avatar {
    box-shadow:
        0 0 0 2px rgba(216, 224, 232, 0.34),
        0 10px 18px rgba(60, 71, 84, 0.22);
}

.rq-leaderboard-row-3 {
    background:
        linear-gradient(90deg, rgba(222, 170, 129, 0.09), transparent 16%),
        radial-gradient(circle at 88% 50%, rgba(208, 146, 110, 0.12), transparent 28%),
        linear-gradient(90deg, rgba(128, 73, 39, 0.42), rgba(128, 73, 39, 0.18) 42%, rgba(128, 73, 39, 0.05));
    box-shadow:
        inset 4px 0 0 rgba(210, 143, 101, 0.74),
        inset 0 1px 0 rgba(236, 191, 156, 0.08),
        inset 0 -1px 0 rgba(90, 49, 24, 0.3);
}

.rq-leaderboard-row-3 td {
    border-bottom-color: rgba(159, 100, 65, 0.34);
}

.rq-leaderboard-row-3 .rq-leaderboard-rank {
    color: #efb289;
    text-shadow: 0 0 14px rgba(231, 171, 132, 0.14);
}

.rq-leaderboard-row-3 .rq-leaderboard-elo {
    color: #ffd8bc;
}

.rq-leaderboard-row-3 .rq-avatar {
    box-shadow:
        0 0 0 2px rgba(210, 143, 101, 0.34),
        0 10px 18px rgba(82, 43, 20, 0.22);
}

.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: grid;
    align-items: flex-start;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(56px, auto));
    justify-content: center;
    justify-items: center;
    text-align: center;
}

.rq-leaderboard-current-stat {
    display: grid;
    gap: 0.3rem;
    justify-items: center;
    min-width: 48px;
}

.rq-leaderboard-current-rank-stat {
    min-width: 78px;
}

.rq-leaderboard-current-stat-value {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 2rem;
}

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

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

/* Matches */

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

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

.rq-matches-layout {
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.rq-matches-list-card,
.rq-matches-detail-card {
    overflow: hidden;
}

.rq-matches-list {
    display: grid;
}

.rq-matches-item {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(76, 64, 59, 0.45);
    background: transparent;
    color: inherit;
    padding: 1rem;
    text-align: left;
    transition: background 120ms ease-out, box-shadow 120ms ease-out;
}

.rq-matches-item:hover {
    background: rgba(255, 106, 0, 0.06);
}

.rq-matches-item-active {
    background: linear-gradient(90deg, rgba(255, 106, 0, 0.14), rgba(255, 106, 0, 0.03));
    box-shadow: inset 3px 0 0 rgba(255, 122, 0, 0.95);
}

.rq-matches-item-top,
.rq-matches-item-meta,
.rq-matches-item-stats,
.rq-matches-team-header,
.rq-matches-player,
.rq-matches-player-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.rq-matches-item-meta,
.rq-matches-item-stats {
    color: var(--rq-text-muted);
    font-size: 0.82rem;
}

.rq-matches-item-meta,
.rq-matches-item-stats {
    margin-top: 0.5rem;
}

.rq-matches-item-result,
.rq-matches-detail-result {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rq-matches-result-win {
    background: rgba(70, 176, 108, 0.16);
    color: #b9f4cb;
}

.rq-matches-result-loss {
    background: rgba(255, 91, 63, 0.16);
    color: #ffd0c7;
}

.rq-matches-result-cancelled {
    background: rgba(193, 182, 173, 0.16);
    color: #e5d8cf;
}

.rq-matches-result-neutral {
    background: rgba(255, 179, 71, 0.14);
    color: #ffd7aa;
}

.rq-matches-item-mode {
    margin-top: 0.45rem;
    font-weight: 700;
}

.rq-matches-item-score,
.rq-matches-detail-score {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.rq-matches-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.rq-matches-teams {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.6rem;
}

.rq-matches-team-card {
    padding: 0.9rem;
}

.rq-matches-team-header {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rq-matches-player {
    padding: 0.7rem 0;
    border-top: 1px solid rgba(76, 64, 59, 0.38);
}

.rq-matches-team-header + .rq-matches-player {
    border-top: 0;
    padding-top: 0;
}

.rq-matches-player-current {
    background: linear-gradient(90deg, rgba(255, 106, 0, 0.08), transparent);
    border-radius: 0.7rem;
    padding-inline: 0.6rem;
}

.rq-matches-player-side {
    min-width: 74px;
    text-align: right;
}

.rq-matches-avatar {
    align-items: center;
    background: rgba(255, 122, 0, 0.12);
    border: 1px solid rgba(255, 147, 67, 0.22);
    border-radius: 999px;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    width: 42px;
}

.rq-matches-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.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-matches-header,
    .rq-matches-layout,
    .rq-matches-teams {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

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

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

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

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

    .rq-matches-detail-header,
    .rq-matches-player {
        flex-direction: column;
        align-items: flex-start;
    }

    .rq-matches-player-side {
        min-width: 0;
        text-align: left;
    }

    .rq-leaderboard-current-stats {
        justify-content: center;
        text-align: center;
    }

    .rq-leaderboard-elo {
        min-width: 80px;
    }

    .rq-leaderboard-rank-header {
        width: 104px;
    }
}
