:root {
    --bg: #090706;
    --bg-2: #120e09;
    --panel: rgba(20, 15, 10, 0.84);
    --panel-strong: rgba(28, 20, 13, 0.94);
    --ink: #fff5df;
    --muted: #d8c19d;
    --soft: #9f8a65;
    --gold: #e1b867;
    --gold-2: #f2d58a;
    --ember: #d87528;
    --moss: #788a69;
    --teal: #6faaa0;
    --danger: #c94a43;
    --ok: #58b46b;
    --line: rgba(230, 184, 103, 0.2);
    --line-strong: rgba(241, 210, 136, 0.42);
    --shadow: rgba(0, 0, 0, 0.46);
    --header-h: 86px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(115deg, rgba(216, 117, 40, 0.09), transparent 34%),
        linear-gradient(245deg, rgba(111, 170, 160, 0.08), transparent 38%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 96px),
        var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 226, 156, 0.03), transparent 28%, rgba(0, 0, 0, 0.5));
    z-index: -1;
}

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

button {
    font: inherit;
}

img,
video {
    max-width: 100%;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(216, 117, 40, 0.12), transparent 38%),
        linear-gradient(235deg, rgba(111, 170, 160, 0.1), transparent 42%),
        #090706;
    transition: opacity .55s ease, visibility .55s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-mark {
    position: relative;
    width: min(230px, 70vw);
    min-height: 118px;
    display: grid;
    place-items: center;
}

.loader-mark::before,
.loader-mark::after,
.loader-mark span {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(242, 213, 138, 0.28);
    transform: rotate(-8deg);
}

.loader-mark::before {
    animation: loader-ring 1.8s ease-in-out infinite;
}

.loader-mark::after {
    inset: 12px 18px;
    border-color: rgba(111, 170, 160, 0.24);
    animation: loader-ring 2.4s ease-in-out infinite reverse;
}

.loader-mark span {
    inset: 24px 34px;
    border-color: rgba(216, 117, 40, 0.34);
    animation: loader-ring 2.05s ease-in-out infinite;
}

.loader-mark img {
    position: relative;
    z-index: 1;
    width: min(190px, 58vw);
    max-height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.72));
    animation: loader-logo 1.55s ease-in-out infinite;
}

.site-loader p {
    margin: 0;
    color: var(--gold-2);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    height: var(--header-h);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 12px clamp(18px, 4vw, 64px);
    background: linear-gradient(180deg, rgba(8, 5, 3, 0.93), rgba(8, 5, 3, 0.58));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 148px;
}

.brand img {
    width: 194px;
    max-height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.6));
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.main-nav a {
    color: var(--muted);
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav .nav-cta {
    color: var(--gold-2);
    border-color: var(--line);
    background: rgba(227, 179, 92, 0.08);
}

.main-nav .nav-cta {
    color: #211307;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    border-color: rgba(255, 234, 164, 0.62);
    box-shadow: 0 12px 28px rgba(216, 117, 40, 0.18);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--gold-2);
    background: rgba(16, 11, 7, 0.82);
    font-size: 22px;
    cursor: pointer;
}

.social-rail {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 28;
    display: grid;
    gap: 10px;
}

.social-rail a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    color: #fff;
    background: rgba(15, 10, 6, 0.86);
    border: 1px solid var(--line);
    line-height: 0;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
    transition: transform .2s ease, background .2s ease, color .2s ease, filter .2s ease, box-shadow .2s ease;
}

.social-rail a:hover {
    transform: translateX(3px) scale(1.05);
    filter: brightness(1.08);
}

.social-rail svg {
    width: 23px;
    height: 23px;
    display: block;
    flex: 0 0 auto;
    transform-box: fill-box;
    transform-origin: center;
}

.social-rail svg path:not([fill]) {
    fill: currentColor;
}

.social-rail a.social-discord {
    color: #fff;
    background: #5865f2;
    border-color: rgba(88, 101, 242, 0.72);
    box-shadow: 0 14px 28px rgba(88, 101, 242, 0.24);
}

.social-rail a.social-discord svg {
    width: 25px;
    height: 25px;
}

.social-rail a.social-kick {
    color: #061005;
    background: #53fc18;
    border-color: rgba(83, 252, 24, 0.72);
    box-shadow: 0 14px 28px rgba(83, 252, 24, 0.18);
}

.social-rail a.social-youtube {
    color: #fff;
    background: #ff0000;
    border-color: rgba(255, 0, 0, 0.7);
    box-shadow: 0 14px 28px rgba(255, 0, 0, 0.2);
}

.social-rail a.social-youtube svg {
    width: 28px;
    height: 28px;
}

.social-rail a.social-tiktok {
    color: #fff;
    background: #050505;
    border-color: rgba(37, 244, 238, 0.75);
    box-shadow: 0 14px 28px rgba(37, 244, 238, 0.14), inset -2px 0 0 rgba(254, 44, 85, 0.8), inset 2px 0 0 rgba(37, 244, 238, 0.8);
}

.social-rail a.social-twitch {
    color: #fff;
    background: #9146ff;
    border-color: rgba(145, 70, 255, 0.72);
    box-shadow: 0 14px 28px rgba(145, 70, 255, 0.22);
}

.social-rail a.social-instagram {
    color: #fff;
    background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 78%, #515bd4);
    border-color: rgba(221, 42, 123, 0.68);
    box-shadow: 0 14px 28px rgba(221, 42, 123, 0.2);
}

.social-rail a.social-facebook {
    color: #fff;
    background: #1877f2;
    border-color: rgba(24, 119, 242, 0.72);
    box-shadow: 0 14px 28px rgba(24, 119, 242, 0.22);
}

.social-rail a.social-x {
    color: #fff;
    background: #111;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.hero {
    position: relative;
    min-height: 84vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-h) + 34px) clamp(18px, 5vw, 86px) 54px;
    border-bottom: 1px solid var(--line);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 26%;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .58;
    filter: contrast(1.06) saturate(.95) brightness(.74);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 5, 3, 0.92), rgba(7, 5, 3, 0.54) 48%, rgba(7, 5, 3, 0.82)),
        linear-gradient(180deg, rgba(7, 5, 3, 0.62), transparent 42%, rgba(7, 5, 3, 0.9));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(28px, 6vw, 78px);
    align-items: end;
}

.hero-logo {
    width: min(var(--hero-logo-width, 240px), 88vw);
    margin-bottom: 6px;
    transform: translate(var(--hero-logo-x, 0), var(--hero-logo-y, 0));
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.65));
}

.hero h1 {
    margin: 0;
    max-width: 820px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 3.8vw, 58px);
    line-height: 1.02;
    letter-spacing: 0;
    text-shadow: 0 18px 36px rgba(0, 0, 0, 0.74);
}

.hero p {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.65;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.hero-badges span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--gold-2);
    background: rgba(16, 11, 7, 0.68);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn.primary {
    color: #211307;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    border-color: rgba(255, 235, 160, 0.65);
    box-shadow: 0 18px 36px rgba(216, 117, 40, 0.22);
}

.btn.secondary {
    background: linear-gradient(180deg, rgba(216, 117, 40, 0.28), rgba(108, 55, 24, 0.45));
    border-color: rgba(216, 117, 40, 0.48);
}

.btn.ghost {
    background: rgba(14, 10, 7, 0.64);
}

.hero-panel {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(27, 20, 13, 0.88), rgba(10, 7, 5, 0.88));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 245, 220, 0.08);
    padding: 18px;
}

.server-status {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 10px;
    align-items: center;
    padding: 13px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: rgba(7, 5, 4, 0.56);
}

.server-status strong {
    color: var(--gold-2);
    font-size: 18px;
}

.server-status small {
    grid-column: 2;
    color: var(--gold-2);
    font-size: 13px;
    font-weight: 900;
}

.pulse {
    grid-row: 1 / span 2;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--moss);
    box-shadow: 0 0 0 5px rgba(120, 138, 105, 0.14);
}

.status-online .pulse {
    background: var(--ok);
    box-shadow: 0 0 0 5px rgba(88, 180, 107, 0.14);
}

.status-open_beta .pulse {
    background: var(--ok);
    box-shadow: 0 0 0 5px rgba(88, 180, 107, 0.14), 0 0 24px rgba(88, 180, 107, 0.32);
}

.status-offline .pulse {
    background: var(--danger);
    box-shadow: 0 0 0 5px rgba(201, 74, 67, 0.14);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-top: 13px;
}

.countdown div {
    min-height: 92px;
    display: grid;
    place-items: center;
    align-content: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 245, 220, 0.045);
}

.countdown strong {
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1;
    color: var(--gold-2);
    font-family: Georgia, "Times New Roman", serif;
}

.countdown span {
    margin-top: 7px;
    color: var(--soft);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.countdown.is-complete {
    display: none;
}

.launch-live[hidden] {
    display: none;
}

.launch-live {
    position: relative;
    display: grid;
    gap: 13px;
    justify-items: start;
    margin-top: 13px;
    padding: 20px;
    border: 1px solid rgba(88, 180, 107, 0.45);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(88, 180, 107, 0.14), rgba(241, 213, 138, 0.11)),
        rgba(7, 5, 4, 0.62);
    overflow: hidden;
    animation: launch-card-in .55s ease both;
}

.launch-live::before {
    content: "";
    position: absolute;
    inset: -40% -18%;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 245, 220, 0.2), transparent 65%);
    transform: translateX(-80%);
    animation: launch-sheen 2.6s ease-in-out infinite;
}

.launch-live > * {
    position: relative;
    z-index: 1;
}

.launch-live span {
    color: var(--teal);
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.launch-live strong {
    color: var(--gold-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4.5vw, 48px);
    line-height: 1;
    text-shadow: 0 0 22px rgba(88, 180, 107, 0.24);
    animation: launch-title-pulse 1.7s ease-in-out infinite;
}

.launch-live .btn {
    min-width: 150px;
}

.discord-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 14px;
    margin-top: 13px;
    padding: 16px;
    border: 1px solid rgba(111, 170, 160, 0.34);
    border-radius: 7px;
    background:
        linear-gradient(135deg, rgba(88, 101, 242, 0.14), rgba(111, 170, 160, 0.1)),
        rgba(9, 7, 5, 0.62);
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.discord-card:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 101, 242, 0.62);
    background:
        linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(227, 184, 103, 0.1)),
        rgba(9, 7, 5, 0.72);
}

.discord-card-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    justify-self: center;
    align-self: center;
    border-radius: 12px;
    color: #fff;
    background: #5865f2;
    box-shadow: 0 14px 28px rgba(88, 101, 242, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.discord-card-icon svg {
    width: 48px;
    height: 48px;
    display: block;
    fill: currentColor;
}

.discord-card-copy {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 0;
}

.discord-card-copy small {
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
}

.discord-card-copy strong {
    font-size: 18px;
    line-height: 1.25;
}

.preface-section {
    padding-bottom: clamp(26px, 5vw, 54px);
}

.preface-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(22px, 4vw, 36px);
    background: linear-gradient(135deg, rgba(227, 184, 103, 0.1), rgba(111, 170, 160, 0.07) 55%, rgba(18, 13, 9, 0.92));
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
}

.preface-panel .section-head {
    margin-bottom: 12px;
}

.preface-panel p {
    max-width: 900px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.section {
    width: min(1180px, calc(100% - 38px));
    margin: 0 auto;
    padding: clamp(56px, 8vw, 92px) 0;
}

.section-head {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

.section-head.left {
    margin-inline: 0;
    text-align: left;
}

.section-head.split {
    max-width: none;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
    align-items: end;
}

.section h2 {
    margin: 0;
    color: var(--gold-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: 0;
}

.section-head p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.text-link {
    color: var(--gold-2);
    font-weight: 900;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 5px;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.class-card,
.news-card,
.partner-badge,
.discord-widget,
.legal-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(24, 17, 11, 0.88), rgba(12, 9, 6, 0.86));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.class-card {
    min-height: 236px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.class-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(227, 184, 103, 0.13), transparent 52%, rgba(111, 170, 160, 0.1));
    opacity: .85;
}

.class-card > * {
    position: relative;
    z-index: 1;
}

.class-portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(241, 213, 138, 0.13), rgba(8, 5, 3, 0.9)),
        radial-gradient(circle at 50% 18%, rgba(227, 184, 103, 0.16), transparent 42%);
}

.class-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.class-portrait span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1f1308;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    font-size: 28px;
    font-weight: 1000;
}

.class-card h3 {
    margin: 16px 0 8px;
    font-size: 25px;
    text-align: center;
}

.class-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.news-card {
    overflow: hidden;
}

.news-card img,
.news-fallback {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-fallback {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(216, 117, 40, 0.16), rgba(111, 170, 160, 0.08)),
        #110c08;
}

.news-fallback img {
    width: 70%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
}

.news-card div:last-child {
    padding: 18px;
}

.news-card time {
    color: var(--soft);
    font-size: 12px;
    font-weight: 900;
}

.news-card h3 {
    margin: 10px 0 8px;
    font-size: 20px;
}

.news-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.badge-section {
    border-block: 1px solid var(--line);
}

.guild-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.guild-badge {
    width: 154px;
    text-align: center;
}

.round-badge {
    width: 118px;
    height: 118px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(241, 213, 138, 0.13), rgba(15, 10, 7, 0.9));
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.round-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.round-badge span {
    color: var(--gold-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 900;
}

.guild-badge strong {
    color: var(--muted);
    font-size: 14px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.partner-badge {
    min-height: 170px;
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 18px;
    overflow: hidden;
}

.partner-badge img,
.partner-initial {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    color: #1f1308;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 900;
}

.platform-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #0b0705;
    background: var(--gold-2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.platform-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.platform-twitch { color: #fff; background: #9146ff; }
.platform-youtube { color: #fff; background: #ff0000; }
.platform-tiktok { color: #25f4ee; background: #080808; border-color: rgba(37, 244, 238, 0.45); }
.platform-kick { color: #0b1208; background: #53fc18; }
.platform-discord { color: #fff; background: #5865f2; }

.platform-youtube svg {
    width: 30px;
    height: 30px;
}

.partner-badge strong {
    font-size: 17px;
}

.partner-badge small {
    color: var(--soft);
    font-weight: 800;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(18, 13, 9, 0.82);
    overflow: hidden;
}

.faq-list summary {
    cursor: pointer;
    padding: 17px 18px;
    color: var(--gold-2);
    font-weight: 900;
}

.faq-list p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--muted);
    line-height: 1.65;
}

.discord-widget {
    padding: 22px;
    min-height: 360px;
}

.discord-widget iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 6px;
}

.discord-widget img {
    width: 230px;
    margin: 0 auto 16px;
}

.discord-widget h3 {
    margin: 0 0 10px;
    color: var(--gold-2);
    font-size: 24px;
}

.discord-widget p {
    color: var(--muted);
    line-height: 1.65;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(18px, 5vw, 72px);
    color: var(--soft);
    border-top: 1px solid var(--line);
    background: rgba(5, 3, 2, 0.78);
    font-size: 14px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer a:hover {
    color: var(--gold-2);
}

.popup-modal[hidden],
.info-modal[hidden] {
    display: none;
}

.popup-modal,
.info-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
}

.popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.popup-dialog {
    position: relative;
    width: min(620px, 100%);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #0d0906;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.popup-dialog img {
    width: 100%;
}

.info-dialog {
    position: relative;
    width: min(560px, 100%);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: clamp(22px, 5vw, 34px);
    background:
        linear-gradient(135deg, rgba(227, 184, 103, 0.11), rgba(111, 170, 160, 0.08)),
        #100b07;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

.info-dialog h2 {
    margin: 0 0 12px;
    color: var(--gold-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 6vw, 46px);
}

.info-dialog p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.72;
}

.legal-info-dialog {
    width: min(860px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    scrollbar-color: rgba(227, 184, 103, 0.55) rgba(8, 5, 3, 0.5);
}

.legal-info-dialog h2 {
    padding-right: 96px;
    font-size: clamp(30px, 5vw, 48px);
}

.legal-info-dialog .legal-content {
    color: var(--muted);
    line-height: 1.78;
    padding-right: 6px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    min-width: 82px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--gold-2);
    background: rgba(8, 5, 3, 0.82);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
}

.popup-close span {
    font-size: 22px;
    line-height: 1;
}

.popup-close strong {
    font-size: 12px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.legal-body {
    padding-top: var(--header-h);
}

.legal-nav {
    justify-content: flex-end;
}

.legal-page {
    width: min(920px, calc(100% - 36px));
    margin: 0 auto;
    padding: 58px 0 90px;
}

.legal-panel {
    padding: clamp(22px, 5vw, 44px);
}

.legal-panel h1 {
    margin: 0 0 20px;
    color: var(--gold-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 6vw, 58px);
}

.legal-content {
    color: var(--muted);
    line-height: 1.8;
    white-space: normal;
}

@media (max-width: 1060px) {
    .hero-inner,
    .two-col {
        grid-template-columns: 1fr;
        width: min(860px, 100%);
    }

    .hero-panel {
        max-width: 560px;
    }

    .class-grid,
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 780px) {
    :root {
        --header-h: 74px;
    }

    .site-header {
        padding-inline: 14px;
    }

    .brand img {
        width: 156px;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: rgba(10, 7, 5, 0.96);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
    }

    .social-rail {
        left: auto;
        right: 10px;
        top: 118px;
        transform: none;
        gap: 7px;
    }

    .social-rail a {
        width: 36px;
        height: 36px;
        font-size: 10px;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + 20px);
        padding-bottom: 34px;
        padding-inline: 18px;
    }

    .hero-logo {
        width: min(250px, 78vw);
        margin-inline: auto;
        transform: translate(calc(var(--hero-logo-x, 0) * .45), calc(var(--hero-logo-y, 0) * .45));
    }

    .hero h1 {
        font-size: clamp(30px, 8.6vw, 38px);
        line-height: 1.06;
    }

    .hero p {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-badges {
        margin-top: 18px;
    }

    .hero-badges span {
        min-height: 34px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 20px;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .hero-actions .ghost {
        grid-column: 1 / -1;
    }

    .hero-panel {
        padding: 10px;
    }

    .server-status {
        padding: 10px;
    }

    .countdown {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .countdown div {
        min-height: 56px;
    }

    .countdown strong {
        font-size: 22px;
    }

    .countdown span {
        font-size: 9px;
    }

    .discord-card {
        display: none;
    }

    .section-head.split,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .class-grid,
    .news-grid,
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .discord-widget {
        min-height: auto;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.class-card,
.news-card,
.guild-badge,
.partner-badge {
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.class-card:hover,
.news-card:hover,
.guild-badge:hover,
.partner-badge:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.36);
}

@keyframes launch-card-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes launch-title-pulse {
    0%,
    100% {
        filter: brightness(1);
        transform: translateY(0);
    }
    50% {
        filter: brightness(1.18);
        transform: translateY(-1px);
    }
}

@keyframes launch-sheen {
    0% {
        transform: translateX(-85%);
    }
    52%,
    100% {
        transform: translateX(85%);
    }
}

@keyframes loader-logo {
    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.72)) brightness(1);
    }
    50% {
        transform: translateY(-4px) scale(1.025);
        filter: drop-shadow(0 26px 42px rgba(225, 184, 103, 0.22)) brightness(1.16);
    }
}

@keyframes loader-ring {
    0%,
    100% {
        transform: rotate(-8deg) scale(.96);
        opacity: .45;
    }
    50% {
        transform: rotate(8deg) scale(1.04);
        opacity: .95;
    }
}

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