.r-discord-page .login {
    color: var(--r-action-strong);
}

.r-discord-page .r-hex-glints {
    --r-hex-glint-cycle: 48s;
}

.r-discord-page .r-hex-glint:nth-child(1) {
    top: 12rem;
    left: calc(50% - 38rem);
    animation-delay: 2.4s;
}

.r-discord-page .r-hex-glint:nth-child(2) {
    top: 20rem;
    left: calc(50% + 27rem);
    animation-delay: 10.4s;
}

.r-discord-page .r-hex-glint:nth-child(3) {
    top: 34rem;
    left: calc(50% - 15rem);
    animation-delay: 18.4s;
}

.r-discord-page .r-hex-glint:nth-child(4) {
    top: 42rem;
    left: calc(50% + 41rem);
    animation-delay: 26.4s;
}

.r-discord-page .r-hex-glint:nth-child(5) {
    top: 50rem;
    left: calc(50% - 48rem);
    animation-delay: 34.4s;
}

.r-discord-page .r-hex-glint:nth-child(6) {
    top: 58rem;
    left: calc(50% + 3rem);
    animation-delay: 42.4s;
}

.r-discord-stage {
    position: relative;
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1.04fr) minmax(28rem, 0.82fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 7rem);
    padding-block: clamp(1rem, 2.2vh, 2.25rem);
}

.r-discord-stage::before,
.r-discord-stage::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--r-line) 10%, var(--r-line) 90%, transparent);
    opacity: 0.42;
}

.r-discord-stage::before {
    top: 0;
}

.r-discord-stage::after {
    bottom: 0;
}

.r-discord-briefing {
    display: grid;
    max-width: 62rem;
    gap: clamp(0.9rem, 1.8vh, 1.5rem);
}

.r-discord-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: var(--r-action);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(0.7rem, 0.63rem + 0.17vw, 0.86rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.r-discord-eyebrow::before {
    width: clamp(2.6rem, 5vw, 5rem);
    height: 1px;
    content: "";
    background: var(--r-action);
}

.r-discord-briefing > h1 {
    max-width: 12ch;
    margin: 0;
    color: var(--r-text-strong);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(2.8rem, 4.6vw, 6.4rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.r-discord-lead {
    max-width: 66ch;
    margin: 0;
    color: var(--r-text);
    font-size: clamp(1rem, 0.9rem + 0.32vw, 1.3rem);
    line-height: 1.52;
}

.r-discord-lead strong {
    color: var(--r-action-strong);
    font-weight: 600;
}

.r-discord-arrival {
    display: grid;
    gap: clamp(0.7rem, 1.25vh, 1rem);
    padding-top: clamp(0.8rem, 1.4vh, 1.15rem);
    border-top: 1px solid rgba(54, 93, 121, 0.58);
}

.r-discord-section-heading {
    display: grid;
    gap: 0.12rem;
}

.r-discord-section-heading h2,
.r-discord-rules h2,
.r-discord-connection-heading h2 {
    margin: 0;
    color: var(--r-text-strong);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-weight: 400;
}

.r-discord-section-heading h2 {
    font-size: clamp(1.2rem, 1rem + 0.5vw, 1.75rem);
}

.r-discord-channel-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(54, 93, 121, 0.42);
    border-bottom: 1px solid rgba(54, 93, 121, 0.42);
    list-style: none;
}

.r-discord-channel-list li {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
    min-height: 3.2rem;
    padding: 0.55rem 0.8rem;
}

.r-discord-channel-list li + li {
    border-left: 1px solid rgba(54, 93, 121, 0.42);
}

.r-discord-channel-number {
    color: var(--r-action);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.r-discord-channel-icon {
    color: inherit;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    font-size: 1rem;
    line-height: 1;
}

.r-discord-channel-list strong {
    color: var(--r-text-strong);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(0.86rem, 0.8rem + 0.2vw, 1.04rem);
    font-weight: 500;
}

.r-discord-arrival > p {
    max-width: 68ch;
    margin: 0;
    color: var(--r-text-muted);
    font-size: clamp(0.9rem, 0.84rem + 0.18vw, 1.05rem);
    line-height: 1.52;
}

.r-discord-arrival > p strong {
    color: var(--r-text);
}

.r-discord-mod {
    color: var(--r-curiosity-soft) !important;
}

.r-discord-rules {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(0.8rem, 1.6vw, 1.25rem);
    padding: clamp(0.75rem, 1.25vw, 1rem);
    border: 1px solid rgba(255, 106, 26, 0.38);
    background: linear-gradient(100deg, rgba(255, 106, 26, 0.1), rgba(8, 26, 46, 0.35) 72%, transparent);
}

.r-discord-rules > .r-panel-signal,
.r-discord-connection > .r-panel-signal {
    top: 0;
    right: 0;
    left: 0;
}

.r-discord-rules-mark {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border: 1px solid rgba(229, 29, 69, 0.72);
    border-radius: 50%;
    color: var(--r-brand-x);
    font-family: "Permanent Marker", "Segoe UI", sans-serif;
    font-size: 1.45rem;
}

.r-discord-rules h2 {
    margin-top: 0.08rem;
    font-size: clamp(1rem, 0.9rem + 0.3vw, 1.35rem);
}

.r-discord-rules p {
    margin: 0.22rem 0 0;
    color: var(--r-text-muted);
    font-size: clamp(0.86rem, 0.81rem + 0.17vw, 1rem);
    line-height: 1.45;
}

.r-discord-rule-wink {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-inline-start: 0.12em;
    object-fit: contain;
    vertical-align: -0.16em;
}

.r-discord-connection {
    position: relative;
    width: min(100%, 35rem);
    justify-self: end;
    padding: clamp(1rem, 1.6vw, 1.45rem);
    border: 1px solid var(--r-line);
    background:
        linear-gradient(145deg, rgba(13, 41, 69, 0.86), rgba(8, 26, 46, 0.7)),
        var(--r-panel);
    box-shadow: var(--r-shadow);
}

.r-discord-connection-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.r-discord-connection-heading > div {
    display: grid;
    gap: 0.15rem;
}

.r-discord-connection-heading h2 {
    font-size: clamp(1.35rem, 1.1rem + 0.65vw, 2rem);
}

.r-discord-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--r-text-muted);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.r-discord-status > span {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--r-special);
    box-shadow: 0 0 0.65rem rgba(183, 135, 179, 0.56);
}

.r-discord-connection-intro {
    margin: 0.7rem 0 0.8rem;
    color: var(--r-text-muted);
    font-size: clamp(0.88rem, 0.82rem + 0.18vw, 1.02rem);
}

.r-discord-widget-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(93, 134, 165, 0.72);
    border-radius: var(--r-radius-small);
    background: #1e1f22;
    box-shadow: inset 0 0 0 1px rgba(1, 8, 16, 0.62);
}

.r-discord-widget-shell::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1.4rem;
    height: 1.4rem;
    content: "";
    pointer-events: none;
    background: linear-gradient(135deg, transparent 49%, var(--r-line-strong) 50%, var(--r-line-strong) 53%, var(--r-panel) 54%);
}

.r-discord-widget {
    display: block;
    width: 100%;
    height: 31.25rem;
    border: 0;
    background: #1e1f22;
    color-scheme: dark;
}

.r-discord-widget-note {
    margin: 0.72rem 0 0;
    color: var(--r-text-muted);
    font-size: clamp(0.78rem, 0.73rem + 0.13vw, 0.9rem);
    line-height: 1.4;
}

.r-discord-widget-note strong {
    color: var(--r-text);
}

.r-discord-widget-note kbd {
    padding: 0.05rem 0.28rem;
    border: 1px solid var(--r-line);
    border-bottom-color: var(--r-line-strong);
    border-radius: 0.18rem;
    background: rgba(4, 16, 30, 0.72);
    color: var(--r-action-strong);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: 0.72em;
}

@media (min-width: 1181px) and (max-height: 980px) {
    .r-discord-stage {
        gap: clamp(1.5rem, 3vw, 3.5rem);
        padding-block: 0.7rem;
    }

    .r-discord-briefing {
        gap: 0.75rem;
    }

    .r-discord-briefing > h1 {
        font-size: clamp(2.7rem, 3.8vw, 4.8rem);
    }

    .r-discord-widget {
        height: 31.25rem;
    }

}

@media (max-width: 1080px) {
    .r-discord-stage {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        padding-block: 2.4rem;
    }

    .r-discord-briefing,
    .r-discord-connection {
        width: 100%;
        max-width: none;
    }

    .r-discord-connection {
        justify-self: stretch;
    }
}

@media (max-width: 560px) {
    .r-discord-briefing > h1 {
        font-size: clamp(2.25rem, 11vw, 3.25rem);
    }

    .r-discord-channel-list {
        grid-template-columns: 1fr;
    }

    .r-discord-channel-list li + li {
        border-top: 1px solid rgba(54, 93, 121, 0.42);
        border-left: 0;
    }

    .r-discord-rules {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .r-discord-connection {
        padding: 0.82rem;
    }

    .r-discord-connection-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .r-discord-widget {
        height: 31.25rem;
    }
}
