:root {
    --rr-bg: #040611;
    --rr-surface: #0b1020;
    --rr-surface-soft: #11182c;
    --rr-border: rgba(151, 174, 255, 0.16);

    --rr-text: #f7f8ff;
    --rr-muted: #9aa8c7;

    --rr-blue: #27b9ff;
    --rr-purple: #9d4dff;
    --rr-cyan: #20e0db;

    --rr-header-height: 76px;
    --rr-nav-height: 76px;
    --rr-max-width: 760px;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100%;
    margin: 0;
    color: var(--rr-text);
    background:
        radial-gradient(circle at 15% 0%, rgba(39, 185, 255, 0.12), transparent 34%),
        radial-gradient(circle at 90% 15%, rgba(157, 77, 255, 0.14), transparent 38%),
        var(--rr-bg);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

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

.rr-background {
    min-height: 100dvh;
}

.rr-app-shell {
    position: relative;
    width: 100%;
    max-width: var(--rr-max-width);
    min-height: 100dvh;
    margin: 0 auto;
    background:
        linear-gradient(180deg, rgba(10, 14, 30, 0.98), rgba(4, 6, 17, 0.98));
    border-inline: 1px solid rgba(255, 255, 255, 0.04);
}

.rr-header {
    position: sticky;
    z-index: 50;
    top: 0;
    min-height: var(--rr-header-height);
    padding:
        max(14px, env(safe-area-inset-top))
        18px
        12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(7, 10, 23, 0.88);
    border-bottom: 1px solid var(--rr-border);
    backdrop-filter: blur(20px);
}

.rr-brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.rr-brand-name {
    display: inline-block;
    padding-right: 6px;

    font-size: 23px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -1.2px;

    background: linear-gradient(90deg, var(--rr-blue), var(--rr-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rr-brand-section {
    margin-top: 5px;
    color: var(--rr-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 4px;
}

.rr-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rr-user-info {
    display: none;
    text-align: right;
}

.rr-user-name,
.rr-user-label {
    display: block;
}

.rr-user-name {
    max-width: 180px;
    overflow: hidden;
    color: var(--rr-text);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rr-user-label {
    margin-top: 3px;
    color: var(--rr-muted);
    font-size: 10px;
}

.rr-avatar,
.rr-profile-avatar {
    object-fit: cover;
    border: 2px solid rgba(39, 185, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(39, 185, 255, 0.16);
}

.rr-avatar {
    width: 42px;
    height: 42px;
}

.rr-avatar-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--rr-blue), var(--rr-purple));
    color: white;
    font-weight: 900;
}

.rr-login-link {
    padding: 10px 14px;
    border: 1px solid var(--rr-border);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
}

.rr-content {
    min-height: calc(100dvh - var(--rr-header-height));
    padding: 22px 16px calc(var(--rr-nav-height) + 32px);
}

.rr-page {
    width: 100%;
}

.rr-welcome,
.rr-page-heading {
    margin-bottom: 28px;
}

.rr-eyebrow,
.rr-section-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--rr-cyan);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.rr-welcome h1,
.rr-page-heading h1 {
    margin: 0;
    font-size: clamp(26px, 8vw, 44px);
    line-height: 1.02;
    letter-spacing: -1.7px;
}

.rr-welcome p,
.rr-page-heading p {
    margin: 13px 0 0;
    color: var(--rr-muted);
    font-size: 15px;
    line-height: 1.55;
}

.rr-section {
    margin-top: 26px;
}

.rr-section-heading {
    margin-bottom: 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.rr-section-heading h2 {
    margin: 0;
    font-size: 24px;
}

.rr-section-heading > a {
    color: var(--rr-blue);
    font-size: 13px;
    font-weight: 800;
}

.rr-feature-card,
.rr-placeholder-card,
.rr-profile-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rr-border);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(17, 24, 44, 0.98), rgba(7, 10, 24, 0.98));
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.34);
}

.rr-feature-card {
    min-height: 270px;
    padding: 25px;
    display: flex;
    align-items: end;
    isolation: isolate;
}

.rr-feature-glow {
    position: absolute;
    z-index: -1;
    inset: -35%;
    background:
        radial-gradient(circle at 22% 25%, rgba(39, 185, 255, 0.45), transparent 28%),
        radial-gradient(circle at 78% 65%, rgba(157, 77, 255, 0.46), transparent 32%);
    filter: blur(22px);
}

.rr-feature-content {
    max-width: 460px;
}

.rr-feature-label {
    color: var(--rr-cyan);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.rr-feature-card h3 {
    margin: 9px 0 9px;
    font-size: clamp(29px, 8vw, 45px);
    line-height: 1;
    letter-spacing: -1.6px;
}

.rr-feature-card p {
    margin: 0;
    color: #c6cde0;
    font-size: 14px;
    line-height: 1.5;
}

.rr-feature-action {
    display: inline-flex;
    margin-top: 22px;
    padding: 13px 18px;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--rr-blue), var(--rr-cyan));
    color: #04101c;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.rr-placeholder-card {
    padding: 30px 24px;
    text-align: center;
}

.rr-placeholder-icon {
    display: block;
    margin-bottom: 14px;
    font-size: 46px;
}

.rr-placeholder-card h2 {
    margin: 0;
    font-size: 24px;
}

.rr-placeholder-card p {
    max-width: 480px;
    margin: 12px auto 0;
    color: var(--rr-muted);
    line-height: 1.55;
}

.rr-profile-card {
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.rr-profile-avatar {
    width: 78px;
    height: 78px;
    flex: 0 0 auto;
}

.rr-profile-card h2 {
    margin: 0;
    font-size: 24px;
}

.rr-profile-card p {
    margin: 7px 0 0;
    color: var(--rr-muted);
}

.rr-bottom-nav {
    position: fixed;
    z-index: 60;
    bottom: 0;
    left: 50%;
    width: min(100%, var(--rr-max-width));
    min-height: var(--rr-nav-height);
    padding:
        8px
        10px
        max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    transform: translateX(-50%);
    background: rgba(7, 10, 23, 0.94);
    border-top: 1px solid var(--rr-border);
    backdrop-filter: blur(24px);
}

.rr-nav-item {
    position: relative;
    min-width: 0;
    padding: 7px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 15px;
    color: #8290b2;
}

.rr-nav-item.is-active {
    color: var(--rr-blue);
    background: rgba(39, 185, 255, 0.08);
}

.rr-nav-item.is-active::before {
    position: absolute;
    top: 1px;
    width: 25px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--rr-blue), var(--rr-purple));
    content: "";
}

.rr-nav-icon {
    font-size: 20px;
    line-height: 1;
}

.rr-nav-label {
    overflow: hidden;
    max-width: 100%;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rr-language {
    position: relative;
}

.rr-language-button {
    min-width: 46px;
    height: 40px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--rr-border);
    border-radius: 12px;
    color: var(--rr-text);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.rr-language-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    padding: 8px;
    display: none;
    border: 1px solid var(--rr-border);
    border-radius: 16px;
    background: rgba(9, 13, 29, 0.98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(22px);
}

.rr-language.is-open .rr-language-menu {
    display: grid;
    gap: 4px;
}

.rr-language-menu a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--rr-muted);
    font-size: 13px;
    font-weight: 700;
}

.rr-language-menu a:hover,
.rr-language-menu a.is-active {
    color: var(--rr-text);
    background: rgba(39, 185, 255, 0.1);
}

/* TOURNAMENT HUB */

body.rr-hub-open {
    overflow: hidden;
}

.rr-hub-trigger {
    width: 46px;
    height: 46px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.rr-hub-trigger:focus-visible {
    outline: 2px solid var(--rr-blue);
    outline-offset: 4px;
}

.rr-hub {
    position: fixed;
    z-index: 200;
    inset: 0;
    pointer-events: none;
    visibility: hidden;
}

.rr-hub.is-open {
    pointer-events: auto;
    visibility: visible;
}

.rr-hub-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(1, 3, 10, 0);
    backdrop-filter: blur(0);
    transition:
        background 240ms ease,
        backdrop-filter 240ms ease;
    cursor: default;
}

.rr-hub.is-open .rr-hub-backdrop {
    background: rgba(1, 3, 10, 0.68);
    backdrop-filter: blur(10px);
}

.rr-hub-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(92dvh, 850px);
    padding:
        12px
        16px
        max(20px, env(safe-area-inset-bottom));
    overflow-y: auto;
    color: var(--rr-text);
    background:
        radial-gradient(circle at 20% 0%, rgba(39, 185, 255, 0.11), transparent 30%),
        radial-gradient(circle at 90% 8%, rgba(157, 77, 255, 0.14), transparent 34%),
        #080c1a;
    border: 1px solid var(--rr-border);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -30px 90px rgba(0, 0, 0, 0.5);
    transform: translateY(105%);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rr-hub.is-open .rr-hub-panel {
    transform: translateY(0);
}

.rr-hub-handle {
    width: 44px;
    height: 5px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
}

.rr-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.rr-hub-profile {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.rr-hub-avatar {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 2px solid rgba(39, 185, 255, 0.52);
    border-radius: 50%;
    box-shadow: 0 0 32px rgba(39, 185, 255, 0.16);
}

.rr-hub-identity {
    min-width: 0;
}

.rr-hub-identity h2 {
    overflow: hidden;
    margin: 0;
    font-size: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rr-hub-identity span {
    display: block;
    margin-top: 5px;
    color: var(--rr-muted);
    font-size: 12px;
}

.rr-hub-close {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid var(--rr-border);
    border-radius: 50%;
    color: var(--rr-text);
    background: rgba(255, 255, 255, 0.04);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.rr-hub-summary {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rr-hub-summary-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--rr-border);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(18, 27, 52, 0.94), rgba(8, 12, 27, 0.96));
}

.rr-hub-summary-label {
    display: block;
    margin-bottom: 6px;
    color: var(--rr-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.rr-hub-summary-card strong {
    display: block;
    overflow: hidden;
    color: var(--rr-text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rr-hub-menu,
.rr-hub-settings {
    margin-top: 18px;
    padding: 7px;
    display: grid;
    gap: 3px;
    border: 1px solid var(--rr-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
}

.rr-hub-item {
    width: 100%;
    min-height: 62px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 15px;
    color: var(--rr-text);
    background: transparent;
    text-align: left;
}

.rr-hub-item:hover {
    background: rgba(39, 185, 255, 0.07);
}

.rr-hub-button {
    font: inherit;
    cursor: pointer;
}

.rr-hub-item-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(39, 185, 255, 0.08);
    font-size: 19px;
}

.rr-hub-item-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.rr-hub-item-copy strong,
.rr-hub-item-copy small {
    display: block;
}

.rr-hub-item-copy strong {
    font-size: 14px;
}

.rr-hub-item-copy small {
    overflow: hidden;
    margin-top: 4px;
    color: var(--rr-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rr-hub-item-arrow {
    flex: 0 0 auto;
    color: var(--rr-muted);
    font-size: 22px;
}

.rr-hub-community .rr-hub-item-icon {
    background: rgba(157, 77, 255, 0.1);
}

.rr-hub-setting {
    padding: 10px 12px 14px;
}

.rr-hub-setting-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.rr-hub-setting-title > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(32, 224, 219, 0.08);
}

.rr-hub-setting-title strong,
.rr-hub-setting-title small {
    display: block;
}

.rr-hub-setting-title strong {
    font-size: 14px;
}

.rr-hub-setting-title small {
    margin-top: 3px;
    color: var(--rr-muted);
    font-size: 10px;
}

.rr-hub-languages {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.rr-hub-languages a {
    padding: 8px 11px;
    border: 1px solid var(--rr-border);
    border-radius: 10px;
    color: var(--rr-muted);
    font-size: 11px;
    font-weight: 800;
}

.rr-hub-languages a.is-active {
    color: #04101c;
    background: linear-gradient(90deg, var(--rr-blue), var(--rr-cyan));
    border-color: transparent;
}

.rr-hub-logout {
    min-height: 52px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255, 99, 120, 0.22);
    border-radius: 16px;
    color: #ff8a9c;
    background: rgba(255, 73, 105, 0.055);
    font-size: 13px;
    font-weight: 900;
}

/* HUB LEVELS */

.rr-hub-view {
    display: none;
    animation: rrHubViewIn 220ms ease;
}

.rr-hub-view.is-active {
    display: block;
}

@keyframes rrHubViewIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rr-settings-header {
    min-height: 68px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
}

.rr-settings-header > div {
    min-width: 0;
}

.rr-settings-header h2 {
    margin: 2px 0 0;
    font-size: 23px;
}

.rr-settings-kicker {
    display: block;
    color: var(--rr-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.rr-settings-back {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--rr-border);
    border-radius: 50%;
    color: var(--rr-text);
    background: rgba(255, 255, 255, 0.04);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.rr-settings-section,
.rr-settings-list {
    margin-top: 18px;
    padding: 8px;
    border: 1px solid var(--rr-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
}

.rr-settings-section {
    padding: 15px;
}

.rr-settings-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rr-settings-title > div {
    min-width: 0;
}

.rr-settings-title strong,
.rr-settings-title small {
    display: block;
}

.rr-settings-title strong {
    font-size: 14px;
}

.rr-settings-title small {
    margin-top: 4px;
    color: var(--rr-muted);
    font-size: 10px;
}

.rr-setting-switch {
    position: relative;
    width: 44px;
    height: 25px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 180ms ease;
}

.rr-setting-switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.32);
    transition: transform 180ms ease;
}

.rr-setting-switch.is-active {
    background: linear-gradient(90deg, var(--rr-blue), var(--rr-cyan));
}

.rr-setting-switch.is-active span {
    transform: translateX(19px);
}

/* WELCOME SCREEN */

.rr-content-welcome {
    min-height: 100dvh;
    padding:
        max(30px, env(safe-area-inset-top))
        20px
        max(30px, env(safe-area-inset-bottom));

    display: grid;
    place-items: center;
}

.rr-welcome-screen {
    width: 100%;
    max-width: 540px;
    padding: 28px 36px 30px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            rgba(7, 10, 25, 0.46),
            rgba(7, 9, 22, 0.56)
        );

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.42),
        0 0 42px rgba(39, 185, 255, 0.07);
}

.rr-welcome-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.rr-welcome-copy h1 {
    margin: 0;
    font-size: clamp(42px, 11vw, 72px);
    line-height: 0.98;
    letter-spacing: -2.5px;
}

.rr-welcome-copy p {
    max-width: 440px;
    margin: 18px auto 0;
    color: var(--rr-muted);
    font-size: 15px;
    line-height: 1.6;
}

.rr-welcome-actions {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}

.rr-welcome-primary,
.rr-welcome-secondary {
    min-height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 900;
}

.rr-welcome-primary {
    color: #04101c;
    background: linear-gradient(90deg, var(--rr-blue), var(--rr-cyan));
    box-shadow:
        0 0 30px rgba(33,197,255,.35);
}

.rr-welcome-secondary {
    border: 1px solid var(--rr-border);
    color: var(--rr-text);
    background: rgba(255, 255, 255, 0.035);
}

.rr-welcome-language {
    margin-top: 24px;
    padding: 16px;

    border: 1px solid rgba(151, 174, 255, 0.12);
    border-radius: 18px;

    background: rgba(3, 6, 18, 0.24);
    box-shadow: none;
}

.rr-welcome-language > span {
    display: block;
    margin-bottom: 12px;
    color: var(--rr-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

@keyframes rrGlow {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(39, 185, 255, 0.25));
    }

    50% {
        transform: scale(1.025);
        filter: drop-shadow(0 0 18px rgba(157, 77, 255, 0.38));
    }
}

.rr-login-logo {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;

    animation: rrGlow 5s ease-in-out infinite;
    transform-origin: center;
}

.rr-welcome-top {
    display: block;
    margin-bottom: 10px;

    color: #31e8ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.28em;
}

.rr-welcome-title {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin: 0 0 12px;
    line-height: 0.96;
}

.rr-title-logo {
    font-size: clamp(42px, 7vw, 56px);
    font-weight: 800;
    letter-spacing: -2px;

    background: linear-gradient(90deg, #26c8ff, #9f66ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rr-title-games {
    margin-top: 5px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 43px);
    font-weight: 750;
    letter-spacing: -1px;
}

.rr-eyebrow {
    margin-top: 8px;
    margin-bottom: 10px;

    color: #2de7ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.rr-welcome-copy p {
    max-width: 420px;
    margin: 0 auto;

    color: #c5c9dd;
    font-size: 15px;
    line-height: 1.5;
}

/* FULLSCREEN GUEST BACKGROUND */

body.rr-guest {
    min-height: 100dvh;
    background:
        linear-gradient(rgba(3, 5, 16, 0.38), rgba(3, 5, 16, 0.55)),
        url("/assets/images/login-bg.jpg") center center / cover no-repeat fixed;
}

body.rr-guest .rr-background {
    min-height: 100dvh;
    background: transparent;
}

body.rr-guest .rr-app-shell {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.rr-guest .rr-content-welcome {
    min-height: 100dvh;
    background: transparent;
}

/* HOME DASHBOARD */

.rr-dashboard {
    display: grid;
    gap: 30px;
}

.rr-dashboard-hero {
    position: relative;
    min-height: 205px;
    padding: 28px;
    overflow: hidden;

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

    border: 1px solid rgba(105,157,255,.20);
    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(11,24,55,.96),
            rgba(24,11,52,.94)
        );

    box-shadow:
        0 28px 80px rgba(0,0,0,.34),
        0 0 60px rgba(39,185,255,.07);

    isolation: isolate;
}

.rr-dashboard-hero-glow {
    position: absolute;
    z-index: -1;
    inset: -40%;
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(39, 185, 255, 0.48),
            transparent 27%
        ),
        radial-gradient(
            circle at 78% 72%,
            rgba(157, 77, 255, 0.5),
            transparent 31%
        );
    filter: blur(28px);
}

.rr-dashboard-kicker,
.rr-dashboard-section-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--rr-cyan);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.rr-dashboard-hero h1 {
    max-width: 640px;
    margin: 0;
    font-size: clamp(18px, 5vw, 28px);
    line-height: 1.08;
    letter-spacing: -1px;
    font-weight: 800;
}

.rr-dashboard-hero p {
    margin: 13px 0 0;
    color: #c2cbdf;
    font-size: 15px;
    font-weight: 700;
}

.rr-dashboard-hero-action {
    width: fit-content;
    margin-top: 28px;
    padding: 13px 37px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    border-radius: 14px;
    color: #03101b;
    background: linear-gradient(
        90deg,
        var(--rr-blue),
        var(--rr-cyan)
    );
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.rr-dashboard-hero-action strong {
    font-size: 18px;
}

.rr-dashboard-section {
    min-width: 0;
}

.rr-dashboard-section-header {
    margin-bottom: 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.rr-dashboard-section-header h2 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -0.7px;
}

.rr-dashboard-section-header > a {
    color: var(--rr-blue);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.rr-live-grid {
    display: grid;
    gap: 13px;
}

.rr-live-card {
    position: relative;
    min-height: 220px;
    padding: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--rr-border);
    border-radius: 22px;
    background: rgba(11, 16, 34, 0.94);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.rr-live-card::before {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
    content: "";
}

.rr-live-card-daily::before {
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(39, 185, 255, 0.52),
            transparent 38%
        );
}

.rr-live-card-guess::before {
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(157, 77, 255, 0.56),
            transparent 38%
        );
}

.rr-live-card-code::before {
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(32, 224, 219, 0.42),
            transparent 38%
        );
}

.rr-live-card-top,
.rr-live-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rr-status {
    padding: 6px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #cbd5eb;
    background: rgba(255, 255, 255, 0.045);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.rr-status-live {
    color: #8fffd0;
    border-color: rgba(73, 255, 180, 0.21);
    background: rgba(73, 255, 180, 0.07);
}

.rr-status-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5cffb2;
    box-shadow: 0 0 12px rgba(92, 255, 178, 0.72);
}

.rr-status-registration {
    color: #d4b8ff;
}

.rr-status-open {
    color: #8df6ff;
}

.rr-live-icon {
    font-size: 27px;
}

.rr-live-card-body {
    position: relative;
    z-index: 1;
    margin-top: 27px;
}

.rr-live-label {
    color: var(--rr-muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.rr-live-card h3 {
    margin: 7px 0 8px;
    font-size: 26px;
    letter-spacing: -1px;
}

.rr-live-card p {
    max-width: 280px;
    margin: 0;
    color: var(--rr-muted);
    font-size: 12px;
    line-height: 1.45;
}

.rr-live-card-footer {
    margin-top: 18px;
    color: var(--rr-blue);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.rr-live-card-footer strong {
    font-size: 18px;
}

.rr-wallet-dashboard {
    position: relative;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(105, 157, 255, 0.18);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(16, 25, 49, 0.97),
            rgba(7, 11, 27, 0.97)
        );
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.rr-wallet-dashboard::after {
    position: absolute;
    width: 240px;
    height: 240px;
    top: -140px;
    right: -100px;
    border-radius: 50%;
    background: rgba(39, 185, 255, 0.12);
    filter: blur(24px);
    content: "";
}

.rr-wallet-dashboard-main,
.rr-wallet-dashboard-actions {
    position: relative;
    z-index: 1;
}

.rr-wallet-dashboard-label,
.rr-wallet-dashboard-note {
    display: block;
}

.rr-wallet-dashboard-label {
    color: var(--rr-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.rr-wallet-dashboard-balance {
    display: block;
    margin-top: 8px;
    font-size: clamp(24px, 8vw, 36px);
    letter-spacing: -2px;
}

.rr-wallet-dashboard-note {
    margin-top: 7px;
    color: var(--rr-muted);
    font-size: 11px;
}

.rr-wallet-dashboard-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rr-wallet-action {
    min-height: 50px;
    padding: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--rr-border);
    border-radius: 14px;
    color: var(--rr-text);
    background: rgba(255, 255, 255, 0.035);
    font-size: 16px;
}

.rr-wallet-action span {
    font-size: 18px;
}

.rr-wallet-action-primary {
    color: #03101b;
    border-color: transparent;
    background: linear-gradient(
        90deg,
        var(--rr-blue),
        var(--rr-cyan)
    );
}

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

.rr-stat-card {
    min-width: 0;
    min-height: 130px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--rr-border);
    border-radius: 19px;
    background:
        linear-gradient(
            145deg,
            rgba(15, 22, 43, 0.96),
            rgba(7, 11, 27, 0.96)
        );
}

.rr-stat-icon {
    font-size: 23px;
}

.rr-stat-card small {
    margin-top: 14px;
    color: var(--rr-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.rr-stat-card strong {
    margin-top: 4px;
    font-size: 24px;
}

.rr-dashboard-double {
    display: grid;
    gap: 12px;
}

.rr-dashboard-mini-card {
    min-height: 140px;
    padding: 19px;
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--rr-border);
    border-radius: 21px;
    background:
        linear-gradient(
            145deg,
            rgba(15, 22, 43, 0.96),
            rgba(7, 11, 27, 0.96)
        );
}

.rr-dashboard-mini-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(39, 185, 255, 0.08);
    font-size: 22px;
}

.rr-dashboard-mini-card span {
    color: var(--rr-cyan);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.rr-dashboard-mini-card h3 {
    margin: 4px 0 5px;
    font-size: 17px;
}

.rr-dashboard-mini-card p {
    margin: 0;
    color: var(--rr-muted);
    font-size: 11px;
    line-height: 1.45;
}

.rr-dashboard-mini-card > strong {
    color: var(--rr-muted);
    font-size: 18px;
}

.rr-news-card {
    grid-template-columns: 45px minmax(0, 1fr);
}

@media (min-width: 620px) {
    .rr-live-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rr-live-card {
        min-height: 245px;
    }

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

@media (min-width: 760px) {
    .rr-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .rr-hub-view {
        animation: none;
    }
}

@media (min-width: 760px) {
    .rr-hub-panel {
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;        
        top: 0;
        bottom: 0;
        left: auto;
        width: min(430px, 92vw);
        max-height: none;
        padding:
            max(24px, env(safe-area-inset-top))
            22px
            24px;
        border-top: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 28px 0 0 28px;
        transform: translateX(105%);
    }

    .rr-hub.is-open .rr-hub-panel {
        transform: translateX(0);
    }

    .rr-hub-handle {
        display: none;
    }

    .rr-hub-panel {
        scrollbar-width: thin;
        scrollbar-color: rgba(39, 185, 255, 0.35) transparent;
    }

    .rr-hub-panel::-webkit-scrollbar {
        width: 7px;
    }

    .rr-hub-panel::-webkit-scrollbar-track {
    background: transparent;
    }

    .rr-hub-panel::-webkit-scrollbar-thumb {
    background: rgba(39, 185, 255, 0.28);
    border-radius: 999px;
    }

    .rr-hub-panel::-webkit-scrollbar-thumb:hover {
        background: rgba(39, 185, 255, 0.48);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rr-hub-panel,
    .rr-hub-backdrop {
        transition: none;
    }
}

@media (min-width: 560px) {
    .rr-user-info {
        display: block;
    }

    .rr-content {
        padding-inline: 26px;
    }
}

@media (min-width: 900px) {
    :root {
        --rr-max-width: 820px;
    }

    .rr-app-shell {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.025),
            0 30px 100px rgba(0, 0, 0, 0.48);
    }

    .rr-content {
        padding: 34px 34px calc(var(--rr-nav-height) + 40px);
    }

    .rr-bottom-nav {
        width: min(calc(100% - 40px), 700px);
        bottom: 18px;
        border: 1px solid var(--rr-border);
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rr-login-logo {
        animation: none;
    }
}

/* =========================================================
   EMBEDDED WALLET TAB
   ========================================================= */

.rr-content-wallet {
    width: 100%;
    height: calc(
        100dvh
        - var(--rr-header-height)
        - var(--rr-nav-height)
    );
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
}

.rr-wallet-tab {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #202833;
}

.rr-wallet-tab-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #202833;
}

/* =========================================================
   HOME ARENA CARD
   ========================================================= */

.rr-arena-dashboard-card {
    position: relative;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;

    padding: 34px;
    border-radius: 26px;

    color: #fff;
    text-decoration: none;

    border: 1px solid rgba(67, 210, 255, .30);

    background:
        linear-gradient(
            110deg,
            rgba(4, 13, 35, .96),
            rgba(20, 13, 59, .94) 58%,
            rgba(58, 20, 91, .88)
        );

    box-shadow:
        0 24px 70px rgba(0, 0, 0, .34),
        inset 0 0 35px rgba(0, 216, 255, .05);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.rr-arena-dashboard-card:hover {
    transform: translateY(-3px);
    border-color: rgba(67, 210, 255, .62);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, .46),
        0 0 30px rgba(39, 213, 255, .12),
        inset 0 0 40px rgba(154, 55, 255, .08);
}

.rr-arena-dashboard-glow {
    position: absolute;
    width: 390px;
    height: 390px;
    right: -110px;
    top: -160px;
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(165, 52, 255, .33),
            rgba(25, 211, 255, .12) 42%,
            transparent 72%
        );

    pointer-events: none;
}

.rr-arena-dashboard-card::after {
    content: "🏆";
    position: absolute;
    right: 54px;
    top: 38px;

    font-size: 48px;
    line-height: 1;

    filter:
        drop-shadow(0 0 18px rgba(255, 199, 50, .42))
        drop-shadow(0 0 40px rgba(64, 204, 255, .20));

    opacity: .92;
}

.rr-arena-dashboard-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding-right: 140px;
}

.rr-arena-dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 20px;
    padding: 8px 13px;

    border: 1px solid rgba(72, 219, 255, .28);
    border-radius: 999px;

    background: rgba(4, 18, 41, .52);

    color: #51e3ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.rr-arena-dashboard-content h3 {
    margin: 0 0 12px;

    color: #fff;
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1;
    font-weight: 800;
    font-style: normal;
    letter-spacing: -.035em;
}

.rr-arena-dashboard-content p {
    max-width: 570px;
    margin: 0;

    color: rgba(208, 219, 248, .82);
    font-size: 16px;
    line-height: 1.55;
}

.rr-arena-dashboard-modes {
    position: relative;
    z-index: 2;

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

    margin-top: 24px;
}

.rr-arena-dashboard-modes span {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 13px;
    border-radius: 12px;

    background: rgba(5, 12, 31, .64);
    border: 1px solid rgba(255, 255, 255, .10);

    color: rgba(239, 244, 255, .88);
    font-size: 13px;
    font-weight: 800;
}

.rr-arena-dashboard-action {
    position: relative;
    z-index: 2;

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

    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .10);

    color: #35d9ff;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rr-arena-dashboard-action strong {
    font-size: 27px;
    line-height: 1;
    transition: transform .18s ease;
}

.rr-arena-dashboard-card:hover .rr-arena-dashboard-action strong {
    transform: translateX(6px);
}

@media (max-width: 640px) {
    .rr-arena-dashboard-card {
        min-height: 330px;
        padding: 25px 22px;
        border-radius: 22px;
    }

    .rr-arena-dashboard-card::after {
        right: 22px;
        top: 26px;
        font-size: 58px;
    }

    .rr-arena-dashboard-content {
        padding-right: 55px;
    }

    .rr-arena-dashboard-content h3 {
        font-size: 32px;
    }

    .rr-arena-dashboard-content p {
        font-size: 14px;
    }

    .rr-arena-dashboard-modes {
        flex-direction: column;
        align-items: flex-start;
    }

    .rr-arena-dashboard-modes span {
        width: 100%;
    }
}

/* =========================================================
   HUB WALLET
   ========================================================= */

.rr-hub-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    margin-top: 26px;
    padding: 20px 22px;

    border: 1px solid rgba(69, 208, 255, .20);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(9, 21, 48, .96),
            rgba(18, 15, 48, .94)
        );

    box-shadow:
        inset 0 0 24px rgba(49, 202, 255, .035);
}

.rr-hub-wallet-balance {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rr-hub-wallet-balance span {
    color: rgba(205, 216, 244, .66);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.rr-hub-wallet-balance strong {
    color: #fff;
    font-size: 23px;
    line-height: 1;
    font-weight: 950;
    white-space: nowrap;
}

.rr-hub-wallet-topup {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 0 18px;

    border: 0;
    border-radius: 13px;

    color: #06131e;
    background:
        linear-gradient(
            135deg,
            #28baff,
            #27e0d0
        );

    box-shadow:
        0 10px 28px rgba(39, 209, 231, .20);

    font: inherit;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform .15s ease,
        filter .15s ease,
        box-shadow .15s ease;
}

.rr-hub-wallet-topup:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);

    box-shadow:
        0 13px 32px rgba(39, 209, 231, .28);
}

.rr-hub-wallet-topup:active {
    transform: translateY(1px);
}

.rr-hub-wallet-topup span {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 420px) {
    .rr-hub-wallet {
        padding: 17px;
        gap: 14px;
    }

    .rr-hub-wallet-balance strong {
        font-size: 19px;
    }

    .rr-hub-wallet-topup {
        min-height: 42px;
        padding: 0 13px;
        font-size: 11px;
    }
}

/* =========================================================
   OPTIONAL PAGE TITLE IN APP HEADER
   ========================================================= */

.rr-header {
    position: relative;
}

.rr-header-page-title {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: calc(100% - 360px);
    transform: translate(-50%, -50%);

    overflow: hidden;
    color: #fff;
    font-size: clamp(18px, 2vw, 27px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -.02em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .rr-header-page-title {
        max-width: calc(100% - 190px);
        font-size: 17px;
    }
}

@media (max-width: 430px) {
    .rr-header-page-title {
        max-width: calc(100% - 160px);
        font-size: 15px;
    }
}

/* =========================================================
   PAGE TITLE IN APP HEADER
   ========================================================= */

.rr-header {
    position: relative;
}

.rr-header-page-title {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;

    max-width: calc(100% - 360px);
    transform: translate(-50%, -50%);

    overflow: hidden;
    color: #fff;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -.02em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.rr-header--with-title .rr-brand {
    transform: scale(.88);
    transform-origin: left center;
}

@media (max-width: 700px) {
    .rr-header--with-title .rr-brand {
        transform: scale(.76);
    }

    .rr-header-page-title {
        max-width: calc(100% - 250px);
        font-size: 18px;
    }
}

@media (max-width: 430px) {
    .rr-header--with-title .rr-brand {
        transform: scale(.70);
    }

    .rr-header-page-title {
        max-width: calc(100% - 210px);
        font-size: 16px;
    }
}

.rr-content.rr-content-wallet {
    padding: 0 !important;
}