:root {
    color-scheme: dark;
    --ink: #080a0c;
    --ink-soft: #0f1317;
    --panel: rgba(15, 18, 21, 0.92);
    --panel-solid: #12161a;
    --panel-raised: #1a1f24;
    --line: rgba(201, 155, 73, 0.28);
    --line-strong: rgba(224, 177, 87, 0.68);
    --gold: #d0a24d;
    --gold-bright: #f2ce82;
    --gold-deep: #8d6429;
    --ivory: #f0e4c8;
    --muted: #a7a394;
    --muted-2: #74766f;
    --blood: #7b2026;
    --blood-bright: #bd4d4d;
    --blue: #416b78;
    --green: #52806a;
    --warning: #c88d32;
    --danger: #b54545;
    --success: #4f8b69;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 24px;
    --content: 1180px;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 15%, rgba(123, 32, 38, 0.18), transparent 32%),
        radial-gradient(circle at 85% 60%, rgba(65, 107, 120, 0.12), transparent 34%),
        linear-gradient(135deg, #0a0c0e 0%, #11161a 45%, #08090b 100%);
    content: "";
}

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

a {
    color: var(--gold-bright);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: #fff1c4;
}

button,
input,
textarea,
select {
    font: inherit;
}

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

button {
    color: inherit;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

::selection {
    background: var(--gold);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--gold-bright);
    color: var(--ink);
    font-weight: 800;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: none;
}

.world-backdrop {
    position: fixed;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(0.76) contrast(1.08);
}

.world-shade {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(5, 6, 7, 0.5) 0%, rgba(8, 10, 12, 0.86) 70%, #080a0c 100%),
        radial-gradient(circle at center 12%, transparent 0, rgba(5, 7, 9, 0.22) 48%, rgba(5, 7, 9, 0.7) 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 78px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 10, 12, 0.86);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px) saturate(1.2);
}

.nav-shell {
    display: flex;
    width: min(var(--content), calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: block;
    width: 150px;
    height: 54px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 5px;
}

.brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.08);
}

.main-menu {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.main-menu a,
.main-menu button {
    display: inline-flex;
    min-height: 42px;
    padding: 0 11px;
    border: 0;
    border-radius: 7px;
    align-items: center;
    background: transparent;
    color: #d8d2c2;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.main-menu a:hover,
.main-menu button:hover,
.main-menu a[aria-current="page"] {
    background: rgba(208, 162, 77, 0.1);
    color: var(--gold-bright);
}

.main-menu .nav-cta {
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(208, 162, 77, 0.16), rgba(141, 100, 41, 0.06));
    color: var(--gold-bright);
}

.nav-divider {
    width: 1px;
    height: 26px;
    margin: 0 4px;
    background: var(--line);
}

.nav-logout {
    display: inline-flex;
    margin: 0;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    margin: 4px 0;
    background: var(--gold-bright);
}

.nav-toggle b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.flash-stack {
    position: fixed;
    top: 94px;
    right: 20px;
    z-index: 1200;
    display: grid;
    width: min(430px, calc(100% - 40px));
    gap: 10px;
}

.alert {
    display: flex;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    align-items: flex-start;
    gap: 12px;
    background: rgba(18, 22, 26, 0.98);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    color: #ded9cb;
}

.alert p {
    flex: 1;
    margin: 0;
}

.alert strong {
    display: block;
    margin-bottom: 4px;
    color: #fff0c2;
}

.alert ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.alert button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.alert-mark {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px currentColor;
}

.alert-success {
    border-color: rgba(79, 139, 105, 0.5);
}

.alert-success .alert-mark {
    background: var(--success);
}

.alert-error {
    border-color: rgba(181, 69, 69, 0.58);
}

.alert-error .alert-mark {
    background: var(--danger);
}

.alert-warning {
    border-color: rgba(200, 141, 50, 0.58);
}

.alert-warning .alert-mark {
    background: var(--warning);
}

main {
    min-height: calc(100vh - 78px);
}

.content-shell {
    width: min(var(--content), calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0 96px;
}

.content-shell.narrow {
    width: min(760px, calc(100% - 40px));
}

.content-shell.wide {
    width: min(1380px, calc(100% - 40px));
}

.page-heading {
    max-width: 860px;
    margin: 0 0 44px;
}

.page-heading h1 {
    margin-bottom: 18px;
    color: #f4e8cb;
    font-size: clamp(2.5rem, 7vw, 5.4rem);
    text-wrap: balance;
}

.page-lead {
    max-width: 720px;
    color: #c6c0b0;
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--gold-bright);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.panel {
    position: relative;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 36%),
        var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel::before {
    position: absolute;
    top: 0;
    left: 22px;
    width: 110px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    content: "";
}

.panel + .panel {
    margin-top: 22px;
}

.panel h2 {
    margin-bottom: 12px;
    color: #f2e5c6;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.panel h3 {
    color: #ead9b3;
}

.panel p:last-child {
    margin-bottom: 0;
}

.centered {
    text-align: center;
}

.button,
button.button {
    display: inline-flex;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(180deg, #d7aa55, #9e7131);
    box-shadow: 0 8px 20px rgba(112, 75, 24, 0.24), inset 0 1px rgba(255, 255, 255, 0.24);
    color: #160f07;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.button:hover {
    color: #160f07;
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    color: var(--gold-bright);
}

.button-secondary:hover {
    color: #fff0bd;
}

.button-danger {
    border-color: rgba(181, 69, 69, 0.72);
    background: linear-gradient(180deg, #a33d43, #702128);
    color: #fff4e1;
}

.button-danger:hover {
    color: #fff;
}

.button-small {
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.8rem;
}

.button[disabled],
button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button-row.centered {
    justify-content: center;
}

.ornament {
    display: flex;
    margin: 28px 0;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--gold);
}

.ornament::before,
.ornament::after {
    width: min(160px, 28vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong));
    content: "";
}

.ornament::after {
    background: linear-gradient(90deg, var(--line-strong), transparent);
}

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

.form-field {
    display: grid;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label,
.field-label {
    color: #dfd5be;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.form-field input,
.form-field textarea,
.form-field select,
.search-field {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(208, 162, 77, 0.32);
    border-radius: var(--radius-sm);
    outline: none;
    background: rgba(5, 7, 9, 0.74);
    color: #f0e7d5;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.search-field:focus {
    border-color: var(--gold);
    background: rgba(9, 12, 14, 0.95);
    box-shadow: 0 0 0 3px rgba(208, 162, 77, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #686b67;
}

.field-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.79rem;
}

.field-note.danger {
    color: #e58d8d;
}

.form-actions {
    display: flex;
    margin-top: 22px;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.form-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    min-width: 40px;
    height: 36px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--gold-bright);
    font-size: 0.72rem;
    font-weight: 800;
    transform: translateY(-50%);
    cursor: pointer;
}

.auth-shell {
    display: grid;
    width: min(1060px, calc(100% - 40px));
    min-height: 650px;
    margin: 0 auto;
    padding: 64px 0 90px;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    align-items: stretch;
}

.auth-story {
    position: relative;
    display: flex;
    padding: clamp(34px, 6vw, 70px);
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(180deg, transparent 12%, rgba(7, 9, 11, 0.88) 92%),
        radial-gradient(circle at 70% 20%, rgba(123, 32, 38, 0.48), transparent 45%),
        rgba(13, 16, 18, 0.88);
    overflow: hidden;
}

.auth-story::before {
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(208, 162, 77, 0.18);
    border-radius: calc(var(--radius-lg) - 8px) 0 0 calc(var(--radius-lg) - 8px);
    pointer-events: none;
    content: "";
}

.auth-story > * {
    position: relative;
    z-index: 1;
}

.auth-story h1 {
    margin-bottom: 18px;
    color: #f1e2bf;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.auth-story p:not(.eyebrow) {
    max-width: 450px;
    color: #bcb6a8;
}

.auth-panel {
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid var(--line);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    background: rgba(14, 17, 20, 0.97);
    box-shadow: var(--shadow);
}

.auth-panel h2 {
    margin-bottom: 10px;
    color: #f1e3c5;
    font-size: clamp(2rem, 4vw, 3rem);
}

.auth-panel > p {
    color: var(--muted);
}

.auth-links {
    display: grid;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    gap: 8px;
    font-size: 0.88rem;
}

.g-recaptcha {
    min-height: 78px;
    margin-top: 18px;
}

.home-hero {
    position: relative;
    display: grid;
    width: min(var(--content), calc(100% - 40px));
    min-height: calc(100vh - 78px);
    margin: 0 auto;
    padding: 80px 0 96px;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.62fr);
    align-items: center;
    gap: clamp(40px, 8vw, 110px);
}

.home-hero-copy {
    max-width: 760px;
}

.home-hero h1 {
    margin-bottom: 24px;
    color: #f2e4c3;
    font-size: clamp(3.5rem, 8.5vw, 7.7rem);
    letter-spacing: -0.045em;
    line-height: 0.9;
    text-wrap: balance;
}

.home-hero h1 span {
    display: block;
    color: var(--gold-bright);
    font-style: italic;
    font-weight: 400;
}

.hero-lead {
    max-width: 680px;
    color: #d0c9b8;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

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

.hero-seal {
    position: relative;
    width: min(370px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
    border: 1px solid rgba(208, 162, 77, 0.34);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(208, 162, 77, 0.16) 0 3%, transparent 3.5% 28%, rgba(208, 162, 77, 0.16) 28.5% 29%, transparent 29.5%),
        conic-gradient(from 45deg, transparent, rgba(123, 32, 38, 0.38), transparent 24%, rgba(65, 107, 120, 0.24), transparent 55%, rgba(208, 162, 77, 0.18), transparent);
    box-shadow: inset 0 0 70px rgba(208, 162, 77, 0.08), 0 0 80px rgba(0, 0, 0, 0.38);
}

.hero-seal::before,
.hero-seal::after {
    position: absolute;
    inset: 11%;
    border: 1px solid rgba(208, 162, 77, 0.32);
    border-radius: 50%;
    content: "";
}

.hero-seal::after {
    inset: 23%;
    border-radius: 18%;
    transform: rotate(45deg);
}

.hero-seal-content {
    position: absolute;
    inset: 28%;
    display: grid;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    place-items: center;
    background: rgba(10, 12, 14, 0.74);
    text-align: center;
}

.hero-seal-content strong {
    display: block;
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 0.9;
}

.hero-seal-content span {
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.17em;
}

.stat-band {
    border-block: 1px solid var(--line);
    background: rgba(8, 10, 12, 0.82);
    backdrop-filter: blur(12px);
}

.stat-grid {
    display: grid;
    width: min(var(--content), calc(100% - 40px));
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 28px 24px;
    border-left: 1px solid var(--line);
}

.stat-item:last-child {
    border-right: 1px solid var(--line);
}

.stat-item strong {
    display: block;
    color: #f2e2bd;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 500;
}

.stat-item span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-section {
    width: min(var(--content), calc(100% - 40px));
    margin: 0 auto;
    padding: 110px 0;
}

.section-heading {
    display: grid;
    margin-bottom: 44px;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
    align-items: end;
    gap: 40px;
}

.section-heading h2 {
    margin-bottom: 0;
    color: #f1e3c5;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.section-heading p:last-child {
    margin-bottom: 4px;
    color: var(--muted);
}

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

.path-card {
    position: relative;
    min-height: 310px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
        rgba(13, 16, 19, 0.9);
    overflow: hidden;
}

.path-card::after {
    position: absolute;
    right: -35px;
    bottom: -45px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(208, 162, 77, 0.16);
    border-radius: 50%;
    content: "";
}

.path-index {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-bottom: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    place-items: center;
    color: var(--gold-bright);
    font-family: var(--serif);
}

.path-card h3 {
    margin-bottom: 12px;
    color: #ead9b5;
    font-size: 1.75rem;
}

.path-card p {
    color: var(--muted);
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 16px;
}

.news-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 16, 19, 0.92);
}

.news-card.featured {
    min-height: 430px;
}

.news-type,
.badge {
    display: inline-flex;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid rgba(208, 162, 77, 0.36);
    border-radius: 999px;
    align-items: center;
    color: var(--gold-bright);
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 22px 0 12px;
    color: #f1e3c5;
    font-size: clamp(1.7rem, 4vw, 3rem);
}

.news-card p {
    color: #b7b2a6;
}

.news-meta {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted-2);
    font-size: 0.75rem;
}

.news-actions {
    display: flex;
    margin-top: 24px;
    align-items: center;
    gap: 10px;
}

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

.news-list-item {
    display: block;
    padding: 20px;
    border: 1px solid rgba(208, 162, 77, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(13, 16, 19, 0.82);
    text-decoration: none;
}

.news-list-item:hover {
    border-color: var(--line-strong);
    background: rgba(22, 26, 30, 0.94);
}

.news-list-item h3 {
    margin-bottom: 8px;
    color: #ded2b8;
    font-family: var(--sans);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0;
}

.news-list-item span {
    color: var(--muted-2);
    font-size: 0.73rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: #d6d1c4;
    font-size: 0.88rem;
}

.data-table th {
    padding: 13px 15px;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(208, 162, 77, 0.08);
    color: var(--gold-bright);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 15px;
    border-bottom: 1px solid rgba(208, 162, 77, 0.12);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: rgba(208, 162, 77, 0.045);
}

.rank {
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: 1.1rem;
}

.empire-mark {
    display: inline-flex;
    min-width: 76px;
    padding: 4px 8px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.empire-1 {
    background: rgba(198, 161, 53, 0.14);
    color: #e5c46b;
}

.empire-2 {
    background: rgba(181, 69, 69, 0.14);
    color: #e48888;
}

.empire-3 {
    background: rgba(65, 107, 120, 0.2);
    color: #8bc2d0;
}

.tabs {
    display: flex;
    margin-bottom: 24px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 4px;
    background: rgba(8, 10, 12, 0.68);
}

.tab-button {
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 0.79rem;
    font-weight: 800;
    cursor: pointer;
}

.tab-button:hover,
.tab-button.is-active {
    background: rgba(208, 162, 77, 0.13);
    color: var(--gold-bright);
}

.tab-panel[hidden] {
    display: none;
}

.wiki-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 22px;
}

.wiki-sidebar {
    align-self: start;
}

.wiki-sidebar h2 {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-list {
    display: grid;
    margin-top: 18px;
    gap: 5px;
}

.category-list a {
    padding: 9px 11px;
    border-radius: 7px;
    color: #bbb7ac;
    font-size: 0.83rem;
    text-decoration: none;
}

.category-list a:hover,
.category-list a.is-active {
    background: rgba(208, 162, 77, 0.1);
    color: var(--gold-bright);
}

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

.wiki-card {
    display: block;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(14, 17, 20, 0.9);
    text-decoration: none;
}

.wiki-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.wiki-card h2 {
    margin: 14px 0 8px;
    color: #e8dbc0;
    font-size: 1.35rem;
}

.wiki-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.83rem;
}

.wiki-article {
    color: #d7d1c2;
}

.wiki-article h2,
.wiki-article h3,
.wiki-article h4 {
    margin-top: 1.8em;
    color: #f0dfbb;
}

.wiki-article img {
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.wiki-article table {
    width: 100%;
    border-collapse: collapse;
}

.wiki-article th,
.wiki-article td {
    padding: 10px;
    border: 1px solid var(--line);
}

.wiki-article pre,
.wiki-article code {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: #07090a;
    color: #e5d6b8;
}

.wiki-article code {
    padding: 2px 5px;
}

.wiki-article pre {
    padding: 16px;
    overflow-x: auto;
}

.account-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
}

.account-nav {
    position: sticky;
    top: 102px;
    display: grid;
    align-self: start;
    gap: 5px;
}

.account-nav a {
    display: flex;
    min-height: 43px;
    padding: 0 12px;
    border-radius: 7px;
    align-items: center;
    color: #bdb8ab;
    font-size: 0.83rem;
    font-weight: 800;
    text-decoration: none;
}

.account-nav a:hover,
.account-nav a.is-active {
    background: rgba(208, 162, 77, 0.11);
    color: var(--gold-bright);
}

.account-summary {
    display: grid;
    margin-bottom: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.summary-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(14, 17, 20, 0.88);
}

.summary-card strong {
    display: block;
    color: #eddfc1;
    font-family: var(--serif);
    font-size: 1.65rem;
}

.summary-card span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.security-status {
    display: flex;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(8, 10, 12, 0.45);
}

.security-status strong {
    display: block;
    color: #eadabd;
}

.security-status p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.83rem;
}

.download-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: 20px;
}

.download-main {
    min-height: 100%;
}

.download-size {
    display: inline-flex;
    margin: 10px 0 22px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.spec-list {
    display: grid;
    margin: 0;
    gap: 0;
}

.spec-list div {
    display: grid;
    padding: 13px 0;
    border-bottom: 1px solid rgba(208, 162, 77, 0.12);
    grid-template-columns: 110px 1fr;
    gap: 12px;
}

.spec-list dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spec-list dd {
    margin: 0;
    color: #d9d3c5;
}

.requirements-panel {
    padding: clamp(22px, 3vw, 32px);
}

.requirement-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.requirement-card {
    padding: 20px;
    border: 1px solid rgba(208, 162, 77, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(7, 9, 11, 0.42);
}

.requirement-card.is-recommended {
    border-color: rgba(224, 177, 87, 0.52);
    background:
        linear-gradient(145deg, rgba(208, 162, 77, 0.08), transparent 42%),
        rgba(7, 9, 11, 0.56);
}

.requirement-card-head {
    min-height: 78px;
    margin-bottom: 4px;
}

.requirement-card-head h3 {
    margin-bottom: 9px;
    font-size: 1.3rem;
}

.preset-pill,
.coming-badge {
    display: inline-flex;
    padding: 5px 8px;
    border: 1px solid rgba(208, 162, 77, 0.3);
    border-radius: 999px;
    align-items: center;
    color: var(--gold-bright);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.requirement-card .spec-list div {
    padding: 10px 0;
    grid-template-columns: 74px 1fr;
    gap: 9px;
}

.requirement-card .spec-list dd {
    font-size: 0.84rem;
    line-height: 1.45;
}

.requirement-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.download-mobile {
    margin-top: 22px;
}

.mobile-platform-grid {
    display: grid;
    margin-top: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mobile-platform-card {
    display: grid;
    min-height: 122px;
    padding: 18px;
    border: 1px solid rgba(208, 162, 77, 0.18);
    border-radius: var(--radius-sm);
    align-items: center;
    grid-template-columns: 66px 1fr auto;
    gap: 16px;
    background: rgba(7, 9, 11, 0.4);
}

.platform-mark {
    display: grid;
    width: 62px;
    height: 62px;
    border: 1px solid var(--line);
    border-radius: 16px;
    place-items: center;
    background: rgba(255, 255, 255, 0.035);
    color: #f2e5c6;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
}

.platform-mark-android {
    font-family: var(--sans);
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.mobile-platform-card h3 {
    margin: 0 0 5px;
    font-size: 1.15rem;
}

.mobile-platform-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.coming-badge {
    border-color: rgba(82, 128, 106, 0.42);
    color: #9cc8ad;
    white-space: nowrap;
}

.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1400;
    display: none;
    width: min(480px, calc(100% - 40px));
    padding: 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(12, 15, 18, 0.98);
    box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner p {
    color: #c9c4b8;
    font-size: 0.86rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(6, 8, 9, 0.96);
}

.footer-grid {
    display: grid;
    width: min(var(--content), calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 48px;
    grid-template-columns: 1.7fr repeat(3, 0.7fr);
    gap: 44px;
}

.footer-brand img {
    width: 190px;
    height: 74px;
    border-radius: 5px;
    object-fit: cover;
}

.footer-brand p {
    max-width: 410px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-grid h2 {
    margin-bottom: 16px;
    color: var(--gold-bright);
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-grid a,
.footer-grid span {
    display: block;
    margin: 7px 0;
    color: #9f9d95;
    font-size: 0.82rem;
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--gold-bright);
}

.footer-bottom {
    display: flex;
    width: min(var(--content), calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(208, 162, 77, 0.12);
    justify-content: space-between;
    gap: 20px;
    color: var(--muted-2);
    font-size: 0.72rem;
}

.empty-state {
    padding: 46px 24px;
    border: 1px dashed rgba(208, 162, 77, 0.3);
    border-radius: var(--radius-sm);
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    display: block;
    margin-bottom: 8px;
    color: #dfd4bc;
    font-family: var(--serif);
    font-size: 1.35rem;
}

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

.stack {
    display: grid;
    gap: 20px;
}

.muted {
    color: var(--muted);
}

.mono {
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 0.86em;
}

.danger-text {
    color: #e58a8a;
}

.success-text {
    color: #82bb98;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .world-backdrop {
        display: none;
    }
}

@media (max-width: 1040px) {
    .nav-toggle {
        display: block;
    }

    .main-menu {
        position: absolute;
        top: 77px;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 77px);
        padding: 16px 20px 24px;
        border-bottom: 1px solid var(--line);
        align-items: stretch;
        flex-direction: column;
        overflow-y: auto;
        background: rgba(8, 10, 12, 0.98);
    }

    .main-menu.is-open {
        display: flex;
    }

    .main-menu a,
    .main-menu button,
    .nav-logout {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-divider {
        width: 100%;
        height: 1px;
        margin: 8px 0;
    }

    .home-hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-seal {
        width: 300px;
    }

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

    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 26px;
    }
}

@media (max-width: 820px) {
    .content-shell,
    .home-section {
        padding-top: 60px;
        padding-bottom: 70px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-story {
        min-height: 360px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .auth-story::before {
        border-radius: calc(var(--radius-lg) - 8px) calc(var(--radius-lg) - 8px) 0 0;
    }

    .auth-panel {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

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

    .stat-item:nth-child(2) {
        border-right: 1px solid var(--line);
    }

    .stat-item:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .requirement-cards {
        grid-template-columns: 1fr 1fr;
    }

    .wiki-shell,
    .account-layout {
        grid-template-columns: 1fr;
    }

    .wiki-sidebar,
    .account-nav {
        position: static;
    }

    .account-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .nav-shell,
    .content-shell,
    .content-shell.narrow,
    .content-shell.wide,
    .home-hero,
    .home-section,
    .stat-grid,
    .footer-grid,
    .footer-bottom,
    .auth-shell {
        width: min(100% - 24px, var(--content));
    }

    .brand {
        width: 128px;
        height: 46px;
    }

    .home-hero {
        padding-top: 54px;
        padding-bottom: 72px;
    }

    .home-hero h1 {
        font-size: clamp(3rem, 17vw, 5rem);
    }

    .hero-seal {
        width: 235px;
    }

    .stat-grid,
    .path-grid,
    .form-grid,
    .split,
    .wiki-grid,
    .account-summary,
    .requirement-cards,
    .mobile-platform-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mobile-platform-card {
        grid-template-columns: 56px 1fr;
    }

    .platform-mark {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }

    .coming-badge {
        grid-column: 2;
        justify-self: start;
    }

    .stat-item,
    .stat-item:nth-child(2),
    .stat-item:last-child {
        padding: 20px;
        border-top: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }

    .stat-item:first-child {
        border-top: 0;
    }

    .page-heading h1 {
        font-size: clamp(2.4rem, 14vw, 4rem);
    }

    .panel,
    .auth-panel,
    .auth-story {
        padding: 24px 18px;
    }

    .auth-story {
        min-height: 320px;
    }

    .button,
    button.button {
        width: 100%;
    }

    .button-row,
    .hero-actions,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-nav {
        grid-template-columns: 1fr;
    }

    .security-status {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-brand,
    .footer-grid > div {
        grid-column: 1;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* Visual revision: clearer surfaces, smaller type and a visible game backdrop. */
:root {
    color-scheme: dark;
    --ink: #171a1b;
    --ink-soft: #202425;
    --panel: rgba(30, 34, 34, 0.9);
    --panel-solid: #252929;
    --panel-raised: #2d3232;
    --ivory: #f1eadb;
    --muted: #c2bcae;
    --muted-2: #92958f;
    --line: rgba(218, 174, 91, 0.25);
    --shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
}

body {
    background: #171a1b;
    font-size: 15.5px;
    line-height: 1.58;
}

body::before {
    background:
        radial-gradient(circle at 16% 12%, rgba(132, 70, 49, 0.22), transparent 34%),
        radial-gradient(circle at 84% 58%, rgba(73, 108, 113, 0.2), transparent 38%),
        linear-gradient(135deg, #242727 0%, #1b2021 52%, #25221f 100%);
}

.world-backdrop {
    opacity: 0.88;
    filter: saturate(0.92) contrast(1.02) brightness(1.02);
}

.world-shade {
    background:
        linear-gradient(90deg, rgba(15, 17, 17, 0.8) 0%, rgba(15, 17, 17, 0.52) 43%, rgba(15, 17, 17, 0.1) 76%, rgba(15, 17, 17, 0.18) 100%),
        linear-gradient(180deg, rgba(17, 19, 19, 0.08) 55%, rgba(23, 26, 27, 0.9) 100%);
}

.site-header {
    height: 68px;
    background: rgba(18, 21, 21, 0.9);
    backdrop-filter: blur(14px) saturate(1.12);
}

.brand {
    width: 160px;
    height: 58px;
    overflow: visible;
}

.brand img {
    display: block;
    object-fit: contain;
    object-position: center;
}

.main-menu a,
.main-menu button {
    min-height: 38px;
    font-size: 0.78rem;
}

.panel,
.path-card,
.news-card,
.news-list-item,
.download-card,
.wiki-sidebar,
.account-nav {
    background-color: rgba(35, 39, 39, 0.88);
    backdrop-filter: blur(10px);
}

.page-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.page-heading h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.page-lead {
    max-width: 720px;
    font-size: clamp(0.98rem, 1.5vw, 1.12rem);
}

.panel h2,
.auth-panel h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

.content-shell {
    padding-top: 54px;
    padding-bottom: 76px;
}

.language-switcher {
    position: relative;
    flex: 0 0 auto;
}

.language-switcher summary {
    display: flex;
    width: 64px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--gold-bright);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    list-style: none;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

.language-switcher[open] summary {
    border-color: var(--line-strong);
    background: rgba(208, 162, 77, 0.1);
}

.language-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 1200;
    display: grid;
    width: 190px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(24, 27, 27, 0.98);
    box-shadow: var(--shadow);
}

.language-menu a {
    display: flex;
    min-height: 36px;
    padding: 7px 9px;
    border-radius: 6px;
    align-items: center;
    gap: 10px;
    color: #ddd6c8;
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
}

.language-flag {
    display: inline-flex;
    width: 22px;
    height: 15px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 2px;
    background: #202424;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.language-flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

.language-menu a .language-flag {
    width: 24px;
    height: 16px;
}

.language-menu a .language-code {
    width: 28px;
    color: var(--gold-bright);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.language-menu a .language-name {
    min-width: 0;
}

.language-menu a:hover,
.language-menu a.is-active {
    background: rgba(208, 162, 77, 0.1);
    color: #fff1cd;
}

.home-hero {
    width: min(1360px, calc(100% - 48px));
    min-height: min(680px, calc(100svh - 68px));
    padding: 58px 0 72px;
    grid-template-columns: minmax(420px, 520px) minmax(0, 720px);
    justify-content: center;
    gap: clamp(34px, 3.5vw, 54px);
}

.home-hero-copy {
    width: 100%;
    max-width: 520px;
    padding: clamp(25px, 2.7vw, 34px);
    border: 1px solid rgba(222, 184, 105, 0.28);
    border-radius: 16px;
    background: rgba(28, 31, 31, 0.78);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
}

.home-hero h1 {
    max-width: 480px;
    margin-bottom: 16px;
    font-size: clamp(2.35rem, 3.5vw, 3.35rem);
    line-height: 1.02;
}

.hero-lead {
    max-width: 610px;
    color: #e2dbce;
    font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.hero-actions {
    margin-top: 23px;
}

.hero-facts {
    display: flex;
    margin: 23px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(222, 184, 105, 0.2);
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
}

.hero-facts li {
    position: relative;
    padding-left: 14px;
    color: #cfc8bb;
    font-size: 0.78rem;
    font-weight: 650;
}

.hero-facts li::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    content: "";
}

.stat-band {
    background: rgba(27, 31, 31, 0.94);
    backdrop-filter: blur(14px);
}

.stat-item strong {
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

.home-section {
    padding-top: 68px;
    padding-bottom: 74px;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.path-card {
    min-height: 250px;
}

.path-card h3,
.news-card h3,
.news-list-item h3 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.home-start {
    display: flex;
    padding: clamp(25px, 4vw, 40px);
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.home-start > div:first-child {
    max-width: 690px;
}

.home-start h2 {
    margin-bottom: 12px;
}

.live-broadcast {
    position: relative;
    width: 100%;
    max-width: 720px;
    min-width: 0;
    align-self: center;
    overflow: hidden;
    border: 1px solid rgba(222, 184, 105, 0.28);
    border-radius: 14px;
    background: #151818;
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.34);
    isolation: isolate;
}

.live-broadcast-header,
.live-broadcast-footer {
    position: relative;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(22, 25, 25, 0.98);
}

.live-broadcast-header {
    min-height: 56px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    gap: 16px;
}

.live-channel,
.live-signal,
.live-signal > span {
    display: flex;
    align-items: center;
}

.live-channel {
    min-width: 0;
    gap: 10px;
}

.live-channel-copy {
    min-width: 0;
}

.live-channel-copy strong,
.live-channel-copy small {
    display: block;
}

.live-channel-copy strong {
    overflow: hidden;
    color: #f1e5ce;
    font-size: 0.78rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-channel-copy small {
    margin-top: 2px;
    color: #989d99;
    font-size: 0.64rem;
}

.live-signal {
    flex: 0 0 auto;
    gap: 7px;
}

.live-signal > span {
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    gap: 6px;
    background: #111414;
    color: #aeb4af;
    font-size: 0.59rem;
    font-weight: 750;
    letter-spacing: 0.045em;
}

.live-signal i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0a24d;
}

.live-signal b {
    min-width: 12px;
    color: #d5dad6;
    font: inherit;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.live-signal em {
    color: #aeb4af;
    font: inherit;
    font-style: normal;
    letter-spacing: 0;
    white-space: nowrap;
}

.live-signal > span:last-child {
    border-color: rgba(224, 76, 69, 0.22);
    background: rgba(224, 76, 69, 0.08);
    color: #eee6d8;
}

.live-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0e1111;
}

.live-stage::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, transparent 62%, rgba(8, 10, 10, 0.7) 100%),
        radial-gradient(circle at center, transparent 54%, rgba(8, 10, 10, 0.11) 100%);
    pointer-events: none;
    content: "";
}

.live-stage video,
.live-stage iframe,
.live-stage canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #101313;
}

.live-stage video {
    object-fit: cover;
    transition: opacity 320ms ease;
}

.live-stage canvas {
    z-index: 1;
    display: block;
    opacity: 0;
    transition: opacity 320ms ease;
}

.live-stage-3d.is-ready canvas {
    opacity: 1;
}

.live-stage-3d.is-ready video {
    opacity: 0;
    pointer-events: none;
}

.live-stage-3d.is-switching canvas {
    opacity: 0.16;
}

.live-stage-3d.is-fallback canvas {
    display: none;
}

.live-stage-3d.is-fallback video {
    opacity: 1;
}

.live3d-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    padding: 24px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(18, 21, 21, 0.42);
    color: #efe3ca;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.live-stage-3d.is-ready .live3d-loading {
    opacity: 0;
    visibility: hidden;
}

.live-stage-3d.is-fallback .live3d-loading {
    inset: auto 16px 48px;
    padding: 8px 10px;
    justify-content: flex-start;
    border-radius: 8px;
    background: rgba(15, 17, 17, 0.78);
}

.live3d-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(231, 197, 126, 0.25);
    border-top-color: #e7c57e;
    border-radius: 50%;
    animation: live3d-spin 850ms linear infinite;
}

.live-stage-3d.is-fallback .live3d-spinner {
    display: none;
}

.live-toolbar {
    position: absolute;
    z-index: 4;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.live-status {
    display: inline-flex;
    min-height: 29px;
    padding: 5px 9px;
    border: 1px solid rgba(230, 190, 104, 0.38);
    border-radius: 6px;
    align-items: center;
    gap: 7px;
    background: #27261f;
    color: #f3e3be;
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.live-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d8a74c;
    box-shadow: 0 0 0 4px rgba(216, 167, 76, 0.12);
}

.live-status b {
    font: inherit;
}

.live-status.is-live i {
    background: #e04c45;
    box-shadow: 0 0 0 4px rgba(224, 76, 69, 0.15);
    animation: live-pulse 1.8s ease-out infinite;
}

.live-stage-3d.has-live-data .live-status i {
    background: #e04c45;
    box-shadow: 0 0 0 4px rgba(224, 76, 69, 0.15);
    animation: live-pulse 1.8s ease-out infinite;
}

.live-stage-3d.has-live-data .live-status {
    border-color: rgba(224, 76, 69, 0.46);
    background: rgba(65, 25, 23, 0.72);
    color: #fff0e5;
}

.live-stage-3d.has-live-data .live-signal i {
    background: #e04c45;
}

.live-player-button {
    display: inline-flex;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(14, 16, 16, 0.78);
    color: #eee7da;
    font: inherit;
    font-size: 0.65rem;
    font-weight: 750;
    cursor: pointer;
    backdrop-filter: blur(7px);
}

.live-player-button:hover,
.live-player-button:focus-visible {
    border-color: rgba(230, 190, 104, 0.65);
    background: rgba(34, 31, 24, 0.92);
}

.live-fullscreen {
    width: 34px;
    padding: 5px;
    font-size: 0.92rem;
}

.live-edge {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    height: 2px;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.live-stage-3d.has-live-data .live-edge {
    background: #d94843;
    box-shadow: 0 -1px 8px rgba(217, 72, 67, 0.25);
}

.live-edge i {
    position: absolute;
    top: 50%;
    right: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    color: rgba(255, 255, 255, 0.35);
    transform: translate(0, -50%);
}

.live-stage-3d.has-live-data .live-edge i {
    color: #ec5a53;
    box-shadow: 0 0 0 3px rgba(236, 90, 83, 0.16);
}

.live-stage figcaption {
    position: absolute;
    right: 152px;
    bottom: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    min-width: 0;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    color: rgba(245, 233, 208, 0.8);
    font-size: 0.65rem;
    font-weight: 650;
    line-height: 1.45;
}

.live-stage figcaption > span,
.live-stage figcaption strong,
.live-stage figcaption small {
    display: block;
}

.live-stage figcaption > span {
    min-width: 0;
}

.live-stage figcaption strong {
    margin-bottom: 2px;
    overflow: hidden;
    color: #f5e2b8;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-stage figcaption small {
    overflow: hidden;
    color: rgba(232, 226, 215, 0.68);
    font-size: 0.59rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-stage figcaption time {
    flex: 0 0 auto;
    color: rgba(232, 226, 215, 0.72);
    font-size: 0.61rem;
    font-variant-numeric: tabular-nums;
}

.live-broadcast-footer {
    min-height: 38px;
    padding: 7px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 16px;
    color: #979d98;
    font-size: 0.62rem;
}

.live-broadcast-footer b {
    flex: 0 0 auto;
    color: #c8ab70;
    font-size: 0.58rem;
    letter-spacing: 0.055em;
}

.live-broadcast:fullscreen,
.live-broadcast.is-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100vh;
    border: 0;
    border-radius: 0;
    background: #080a0a;
}

.live-broadcast:fullscreen .live-stage,
.live-broadcast.is-fullscreen .live-stage {
    height: calc(100vh - 94px);
    aspect-ratio: auto;
}

@keyframes live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 76, 69, 0.4);
    }
    75%,
    100% {
        box-shadow: 0 0 0 8px rgba(224, 76, 69, 0);
    }
}

@keyframes live3d-spin {
    to {
        transform: rotate(360deg);
    }
}

.class-section {
    width: min(1320px, calc(100% - 40px));
}

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

.class-card {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(222, 184, 105, 0.24);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 22%, rgba(209, 166, 83, 0.2), transparent 42%),
        linear-gradient(165deg, #313636, #202424);
}

.class-sura {
    background:
        radial-gradient(circle at 50% 22%, rgba(153, 54, 49, 0.24), transparent 42%),
        linear-gradient(165deg, #363331, #202424);
}

.class-ninja {
    background:
        radial-gradient(circle at 50% 22%, rgba(122, 45, 48, 0.26), transparent 42%),
        linear-gradient(165deg, #332d2e, #202424);
}

.class-shaman {
    background:
        radial-gradient(circle at 50% 22%, rgba(59, 112, 131, 0.26), transparent 42%),
        linear-gradient(165deg, #2a3437, #202424);
}

.class-art {
    position: absolute;
    inset: 0 0 96px;
    display: grid;
    align-items: end;
    overflow: hidden;
}

.class-art::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 38%;
    background: linear-gradient(transparent, #252929);
    content: "";
}

.class-art img {
    width: 100%;
    height: 112%;
    object-fit: contain;
    object-position: center bottom;
    transition: transform 260ms ease;
}

.class-card:hover .class-art img {
    transform: scale(1.035) translateY(-4px);
}

.class-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 19px 20px;
}

.class-copy h3 {
    margin-bottom: 5px;
    color: #f0e3c8;
    font-size: 1.35rem;
}

.class-copy p {
    margin-bottom: 0;
    color: #bcb6aa;
    font-size: 0.8rem;
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .home-hero {
        width: min(760px, calc(100% - 40px));
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-hero-copy {
        max-width: 620px;
    }

    .live-broadcast {
        max-width: 760px;
    }
}

@media (max-width: 1040px) {
    .main-menu {
        top: 67px;
        background: rgba(24, 27, 27, 0.99);
    }

    .language-switcher-nav {
        width: 100%;
    }

    .language-switcher-nav summary {
        width: 100%;
        justify-content: start;
        padding-left: 12px;
    }

    .language-switcher-nav .language-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

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

@media (max-width: 820px) {
    .home-hero {
        min-height: 680px;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .home-start {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .home-hero {
        min-height: 620px;
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .home-hero-copy {
        padding: 24px 20px;
        background: rgba(24, 27, 27, 0.82);
    }

    .home-hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.25rem);
    }

    .live-broadcast-header {
        min-height: 58px;
        padding: 9px 10px;
    }

    .live-signal > span:last-child,
    .live-broadcast-footer b {
        display: none;
    }

    .live-stage figcaption {
        right: 112px;
    }

    .live-player-button {
        width: 34px;
        padding: 5px;
        font-size: 0;
    }

    .live-player-button span {
        font-size: 0.88rem;
    }

    .live-stage figcaption small {
        display: none;
    }

    .section-heading h2,
    .page-heading h1 {
        font-size: clamp(1.9rem, 9vw, 2.7rem);
    }

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

    .class-card {
        min-height: 400px;
    }
}
