:root {
    color-scheme: dark;
    --ink: #08090c;
    --ink-soft: #0d0f14;
    --panel: #12151b;
    --panel-high: #171b22;
    --red: #f02e3c;
    --red-light: #ff6a74;
    --red-dark: #8f141e;
    --text: #f5f2e9;
    --muted: #989da7;
    --line: rgba(255, 255, 255, 0.09);
    --shell: min(1180px, calc(100% - 3rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6.5rem;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(240, 46, 60, 0.14), transparent 28rem),
        var(--ink);
    color: var(--text);
    font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
    line-height: 1.5;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(115deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        linear-gradient(25deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 88px 88px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

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

button {
    font: inherit;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: 0.7rem;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: border-color 180ms ease, background 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(8, 9, 12, 0.84);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    width: var(--shell);
    min-height: 86px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    color: var(--text);
    text-decoration: none;
}

.brand-symbol {
    display: grid;
    width: 2.55rem;
    height: 3rem;
    place-items: center;
    color: var(--red);
    font-family: "UnifrakturCook", "Times New Roman", serif;
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1;
    text-shadow:
        -1px 0 #6d080f,
        0 1px #6d080f,
        1px 0 #ff6570,
        0 0 18px rgba(240, 46, 60, 0.4);
}

.brand-copy {
    display: grid;
    line-height: 1.04;
}

.brand-copy strong {
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.08rem;
    letter-spacing: 0.035em;
}

.brand-copy small {
    margin-top: 0.28rem;
    color: var(--red);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.primary-navigation {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 0.4rem;
}

.primary-navigation > a,
.primary-navigation > .nav-link {
    position: relative;
    padding: 0.68rem 0.85rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 160ms ease;
}

.primary-navigation > a::after,
.primary-navigation > .nav-link::after {
    position: absolute;
    right: 0.85rem;
    bottom: 0.35rem;
    left: 0.85rem;
    height: 1px;
    background: var(--red);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.primary-navigation > a:hover,
.primary-navigation > a:focus-visible,
.primary-navigation > .nav-link:hover,
.primary-navigation > .nav-link:focus-visible {
    color: var(--text);
}

.primary-navigation > a:hover::after,
.primary-navigation > a:focus-visible::after,
.primary-navigation > .nav-link:hover::after,
.primary-navigation > .nav-link:focus-visible::after {
    transform: scaleX(1);
}

.account-actions,
.mobile-account-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.mobile-account-actions {
    display: none;
}

.text-action,
.primary-action,
.secondary-action {
    display: inline-flex;
    min-height: 3.25rem;
    padding: 0.78rem 1.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.text-action {
    border: 1px solid rgba(240, 46, 60, 0.28);
    background: rgba(240, 46, 60, 0.055);
    color: var(--text);
}

.text-action svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--red-light);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.primary-action {
    border: 1px solid rgba(255, 106, 116, 0.62);
    background: linear-gradient(120deg, #a71823, #ef3543);
    color: #fff;
    box-shadow: 0 13px 34px rgba(174, 25, 36, 0.24);
}

.primary-action.compact,
.text-action {
    min-height: 2.75rem;
    padding: 0.62rem 1rem;
    font-size: 0.82rem;
}

.secondary-action {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    color: #d7d4cd;
}

.text-action:hover,
.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-2px);
}

.text-action:hover,
.secondary-action:hover {
    border-color: rgba(240, 46, 60, 0.46);
    background: rgba(240, 46, 60, 0.1);
}

.primary-action:hover {
    background: linear-gradient(120deg, #bd1d2a, #ff4d5a);
    box-shadow: 0 17px 42px rgba(240, 46, 60, 0.3);
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    place-content: center;
    gap: 0.36rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.nav-toggle span {
    width: 1.05rem;
    height: 1px;
    background: var(--text);
    transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
    --hero-x: 75%;
    --hero-y: 30%;
    position: relative;
    display: grid;
    min-height: 100vh;
    padding: 8.5rem 0 4rem;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(550px circle at var(--hero-x) var(--hero-y), rgba(240, 46, 60, 0.115), transparent 68%);
    content: "";
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 9%;
    right: -10rem;
    width: 48rem;
    height: 48rem;
    border: 1px solid rgba(240, 46, 60, 0.06);
    border-radius: 50%;
    box-shadow:
        0 0 0 7rem rgba(240, 46, 60, 0.018),
        0 0 0 14rem rgba(240, 46, 60, 0.01);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    width: var(--shell);
    grid-template-columns: minmax(0, 1.07fr) minmax(360px, 0.93fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}

.eyebrow {
    display: flex;
    margin: 0 0 1.35rem;
    align-items: center;
    gap: 0.7rem;
    color: var(--red-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.eyebrow > span {
    width: 2.2rem;
    height: 1px;
    background: currentColor;
}

h1,
h2,
h3 {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Marcellus", Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.045em;
}

h1 {
    max-width: 760px;
    margin-bottom: 1.7rem;
    font-size: clamp(3.4rem, 7vw, 6.9rem);
    line-height: 0.92;
}

h1 em,
h2 em {
    color: var(--red-light);
    font-style: normal;
}

.hero-description {
    max-width: 620px;
    margin: 0;
    color: #a9adb6;
    font-size: clamp(1rem, 1.45vw, 1.13rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    margin-top: 2.25rem;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-signals {
    display: flex;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #7d828d;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-signals span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-signals i {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(240, 46, 60, 0.08);
}

.hero-art {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    width: min(100%, 470px);
    margin-left: auto;
    place-items: center;
    perspective: 900px;
    transition: transform 240ms ease-out;
}

.crest {
    position: relative;
    z-index: 3;
    display: grid;
    width: 15rem;
    height: 18rem;
    place-items: center;
    border: 1px solid rgba(255, 106, 116, 0.32);
    background:
        linear-gradient(145deg, rgba(240, 46, 60, 0.17), rgba(240, 46, 60, 0.025)),
        #0b0d11;
    box-shadow:
        inset 0 0 65px rgba(240, 46, 60, 0.12),
        0 35px 90px rgba(0, 0, 0, 0.48);
    clip-path: polygon(50% 0, 94% 16%, 86% 77%, 50% 100%, 14% 77%, 6% 16%);
}

.crest::before {
    position: absolute;
    inset: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.055);
    content: "";
    clip-path: inherit;
}

.crest span {
    color: var(--red);
    font-family: "UnifrakturCook", "Times New Roman", serif;
    font-size: 10rem;
    line-height: 1;
    text-shadow:
        3px 4px 0 #5b070e,
        0 0 38px rgba(240, 46, 60, 0.44);
}

.art-ring {
    position: absolute;
    border: 1px solid rgba(240, 46, 60, 0.14);
    border-radius: 50%;
}

.ring-one {
    inset: 5%;
}

.ring-two {
    inset: 16%;
    border-color: rgba(255, 255, 255, 0.07);
}

.art-slash {
    position: absolute;
    z-index: 1;
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 106, 116, 0.5), transparent);
    transform: rotate(-55deg);
}

.slash-one {
    translate: -2.8rem 0;
}

.slash-two {
    translate: 2.8rem 0;
}

.hero-art > p {
    position: absolute;
    right: 2.2rem;
    bottom: 3.2rem;
    z-index: 4;
    margin: 0;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.48em;
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #696e78;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.scroll-cue span {
    position: relative;
    width: 1.7rem;
    height: 2.7rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.scroll-cue span::after {
    position: absolute;
    top: 0.55rem;
    left: 50%;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: var(--red);
    content: "";
    transform: translateX(-50%);
    animation: scroll-dot 1.8s ease-in-out infinite;
}

.community-section {
    width: var(--shell);
    padding: clamp(6rem, 10vw, 10rem) 0;
    margin: 0 auto;
}

.section-heading {
    display: grid;
    max-width: 790px;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
    column-gap: 3rem;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
}

.section-heading h2,
.recruitment-cta h2 {
    margin-bottom: 0;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.96;
}

.section-heading > p:last-child {
    align-self: end;
    margin: 0 0 0.3rem;
    color: var(--muted);
    line-height: 1.7;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.social-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 315px;
    padding: 2rem;
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 42%),
        rgba(15, 18, 23, 0.82);
    color: var(--text);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.social-card::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 0%, var(--social-glow, rgba(240, 46, 60, 0.12)), transparent 45%);
    content: "";
    opacity: 0.75;
    pointer-events: none;
}

.social-card::after {
    position: absolute;
    right: -3.5rem;
    bottom: -5rem;
    width: 13rem;
    height: 13rem;
    border: 1px solid var(--social-line, rgba(240, 46, 60, 0.1));
    border-radius: 50%;
    content: "";
}

.social-card:hover,
.social-card:focus-visible {
    border-color: var(--social-border, rgba(240, 46, 60, 0.34));
    background:
        linear-gradient(145deg, var(--social-hover, rgba(240, 46, 60, 0.065)), transparent 46%),
        rgba(17, 20, 26, 0.94);
    transform: translateY(-3px);
}

.social-card-discord {
    --social-glow: rgba(88, 101, 242, 0.2);
    --social-line: rgba(110, 122, 255, 0.16);
    --social-border: rgba(110, 122, 255, 0.48);
    --social-hover: rgba(88, 101, 242, 0.12);
}

.social-card-instagram {
    --social-glow: rgba(225, 48, 108, 0.2);
    --social-line: rgba(247, 93, 128, 0.16);
    --social-border: rgba(247, 93, 128, 0.48);
    --social-hover: rgba(225, 48, 108, 0.12);
}

.social-card-youtube {
    --social-glow: rgba(255, 0, 0, 0.18);
    --social-line: rgba(255, 74, 74, 0.16);
    --social-border: rgba(255, 74, 74, 0.48);
    --social-hover: rgba(255, 0, 0, 0.1);
}

.social-icon {
    position: relative;
    z-index: 2;
    display: grid;
    width: 3.65rem;
    height: 3.65rem;
    margin-bottom: 2.3rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.045);
}

.social-icon svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.6;
}

.social-card-discord .social-icon { color: #8d98ff; }
.social-card-instagram .social-icon { color: #ff718f; }
.social-card-youtube .social-icon { color: #ff5555; }
.social-card-discord .social-icon svg,
.social-card-youtube .social-icon svg { stroke: none; }
.social-card-instagram .fill-dot { fill: currentColor; stroke: none; }
.social-card-youtube .play-mark { fill: var(--ink); }

.social-copy {
    position: relative;
    z-index: 2;
    display: grid;
}

.social-copy small {
    margin-bottom: 0.55rem;
    color: var(--red-light);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.social-copy strong {
    margin-bottom: 0.8rem;
    font-family: "Marcellus", Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 400;
}

.social-copy > span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.72;
}

.social-status {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    margin-top: auto;
    padding-top: 1.65rem;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: #c6c2ba;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.social-status b {
    color: var(--red-light);
    font-size: 1rem;
}

.social-feedback {
    min-height: 1.5rem;
    margin: 1.1rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

.recruitment-cta {
    display: grid;
    width: var(--shell);
    margin: 0 auto clamp(5rem, 9vw, 8rem);
    padding: clamp(2.2rem, 6vw, 4.5rem);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
    align-items: end;
    gap: 3rem;
    border: 1px solid rgba(240, 46, 60, 0.22);
    border-radius: 1.6rem;
    background:
        radial-gradient(circle at 5% 10%, rgba(240, 46, 60, 0.16), transparent 26rem),
        linear-gradient(145deg, #151015, #0d1015 62%);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.cta-copy {
    display: grid;
    justify-items: start;
    gap: 1.6rem;
}

.cta-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.site-footer {
    display: grid;
    width: var(--shell);
    min-height: 130px;
    margin: 0 auto;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid var(--line);
    color: #6f747e;
    font-size: 0.75rem;
}

.site-footer p {
    margin: 0;
    text-align: center;
}

.footer-rules {
    justify-self: end;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.footer-rules:hover,
.footer-rules:focus-visible {
    color: var(--text);
}

.footer-brand .brand-symbol {
    width: 1.9rem;
    font-size: 2.05rem;
}

.footer-brand .brand-copy strong {
    font-size: 0.92rem;
}

.footer-brand .brand-copy small {
    font-size: 0.5rem;
}

body.modal-open {
    overflow: hidden;
}

.rules-dialog {
    width: min(920px, calc(100% - 2rem));
    max-height: min(86vh, 900px);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(240, 46, 60, 0.26);
    border-radius: 1.5rem;
    background: #0d1015;
    color: var(--text);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72);
}

.rules-dialog::backdrop {
    background: rgba(3, 4, 6, 0.78);
    backdrop-filter: blur(10px);
}

.rules-dialog[open] {
    animation: dialog-in 220ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

.rules-dialog-shell {
    max-height: min(86vh, 900px);
    overflow-y: auto;
    scrollbar-color: rgba(240, 46, 60, 0.55) transparent;
}

.rules-dialog-header {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    padding: 2rem 2.2rem 1.75rem;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 12% 0%, rgba(240, 46, 60, 0.16), transparent 22rem),
        rgba(13, 16, 21, 0.96);
    backdrop-filter: blur(16px);
}

.rules-dialog-header .eyebrow {
    margin-bottom: 0.9rem;
}

.rules-dialog-header h2 {
    margin-bottom: 0.7rem;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
}

.rules-dialog-header > div > p:last-child {
    max-width: 590px;
    margin: 0;
    color: var(--muted);
}

.dialog-close {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 auto;
    padding: 0 0 0.15rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dialog-close:hover,
.dialog-close:focus-visible {
    border-color: rgba(240, 46, 60, 0.45);
    background: rgba(240, 46, 60, 0.1);
    transform: rotate(4deg);
}

.rules-dialog-list {
    display: grid;
    padding: 0 2.2rem;
}

.rules-dialog-list article {
    display: grid;
    padding: 1.45rem 0;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 1rem;
    border-bottom: 1px solid var(--line);
}

.rules-dialog-list article > span {
    padding-top: 0.2rem;
    color: var(--red);
    font-family: "Marcellus", Georgia, serif;
    font-size: 0.78rem;
}

.rules-dialog-list h3 {
    margin-bottom: 0.4rem;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
}

.rules-dialog-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.rules-dialog-footer {
    display: flex;
    padding: 1.5rem 2.2rem 2rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.rules-dialog-footer p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.js-enhanced [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms ease var(--reveal-delay, 0ms), transform 620ms cubic-bezier(0.2, 0.72, 0.24, 1) var(--reveal-delay, 0ms);
}

.js-enhanced [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes scroll-dot {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, 0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, 1rem);
    }
}

@media (max-width: 940px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
        gap: 2.5rem;
    }

    .crest {
        width: 12rem;
        height: 15rem;
    }

    .crest span {
        font-size: 8rem;
    }

    .section-heading,
    .recruitment-cta {
        grid-template-columns: 1fr;
    }

    .section-heading > p:last-child {
        max-width: 620px;
        margin-top: 1.4rem;
    }
}

@media (max-width: 820px) {
    :root {
        --shell: min(100% - 1.4rem, 1180px);
    }

    body.nav-open {
        overflow: hidden;
    }

    .header-inner {
        min-height: 76px;
    }

    .nav-toggle {
        display: grid;
        margin-left: auto;
    }

    .account-actions {
        display: none;
    }

    .primary-navigation {
        position: fixed;
        top: 76px;
        right: 0.7rem;
        left: 0.7rem;
        display: grid;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 1.1rem;
        background: rgba(12, 14, 18, 0.97);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.54);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .primary-navigation.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .primary-navigation > a,
    .primary-navigation > .nav-link {
        width: 100%;
        padding: 0.9rem 0.8rem;
        text-align: left;
    }

    .mobile-account-actions {
        display: flex;
        padding-top: 0.9rem;
        border-top: 1px solid var(--line);
    }

    .hero {
        min-height: auto;
        padding: 9rem 0 6rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 700px;
    }

    .hero-art {
        width: min(82vw, 420px);
        margin: 1rem auto 0;
    }

    .scroll-cue {
        display: none;
    }

    .community-section {
        padding: 6rem 0;
    }

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

    .social-card {
        min-height: 280px;
    }

    .site-footer {
        padding: 2rem 0;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-rules {
        justify-self: center;
    }

    .rules-dialog {
        width: min(94vw, 920px);
        max-height: 90vh;
    }

    .rules-dialog-shell {
        max-height: 90vh;
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .primary-action,
    .hero-actions .secondary-action {
        width: 100%;
    }

    .hero-signals {
        gap: 1rem;
        font-size: 0.68rem;
    }

    .hero-art {
        width: min(92vw, 360px);
    }

    .crest {
        width: 10.5rem;
        height: 13rem;
    }

    .crest span {
        font-size: 7rem;
    }

    .social-card {
        min-height: 270px;
        padding: 1.5rem;
    }

    .social-icon {
        margin-bottom: 1.8rem;
    }

    .recruitment-cta {
        padding: 2rem 1.4rem;
        gap: 2rem;
    }

    .cta-copy .primary-action {
        width: 100%;
    }

    .rules-dialog-header {
        padding: 1.4rem 1.25rem;
    }

    .rules-dialog-header > div > p:last-child {
        display: none;
    }

    .rules-dialog-list {
        padding: 0 1.25rem;
    }

    .rules-dialog-list article {
        grid-template-columns: 2.2rem minmax(0, 1fr);
        gap: 0.7rem;
    }

    .rules-dialog-footer {
        padding: 1.25rem;
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .rules-dialog-footer .primary-action {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
