:root {
    --bg-dark: #0c0a08;
    --bg-panel: rgba(22, 17, 12, 0.94);
    --bg-card: rgba(28, 22, 16, 0.88);
    --bg-card-hover: rgba(38, 30, 22, 0.94);
    --border: rgba(196, 154, 82, 0.22);
    --text: #efe6d4;
    --text-muted: #b3a894;
    --gold: #c49a52;
    --gold-light: #e4c88a;
    --purple: #8a6a3a;
    --purple-dark: #5c4524;
    --accent: #c49a52;
    --emerald: #6b8f5a;
    --cyan: #c9b27a;
    --danger: #c45a4a;
    --success: #6aa35a;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    --radius: 6px;
    --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-fog,
    .hero-rays,
    .hero-dust span,
    .play-layer {
        animation: none !important;
    }
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 9, 0.15) 0%, rgba(8, 11, 9, 0.88) 50%, #080b09 100%);
    z-index: -2;
}

body.page-home::before {
    display: none;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(196, 154, 82, 0.08), transparent 32%),
        radial-gradient(circle at 82% 88%, rgba(0, 0, 0, 0.35), transparent 42%);
    pointer-events: none;
    z-index: -1;
}

.particles {
    display: none;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 11, 8, 0.96);
    border-bottom: 1px solid rgba(196, 154, 82, 0.28);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.site-header .container {
    width: min(1320px, calc(100% - 2.5rem));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.logo-shield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--gold);
}

.logo-shield svg {
    width: 100%;
    height: 100%;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
}

.logo-accent {
    color: var(--gold);
}

.header-menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex: 1;
    min-width: 0;
}

.header-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.header-nav-link svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.header-nav-link:hover,
.header-nav-link.is-active {
    color: var(--gold);
}

.header-nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--gold);
    border-radius: 999px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-shrink: 0;
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.header-icon-btn svg {
    width: 20px;
    height: 20px;
}

.header-icon-btn:hover {
    color: #fff;
}

.header-discord-btn svg {
    width: 22px;
    height: auto;
}

.header-discord-btn:hover {
    color: #fff;
}

.header-login,
.header-logout {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.header-login:hover,
.header-logout:hover,
.header-login.is-active {
    color: var(--gold);
}

.lang-switcher {
    position: relative;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-end: 0;
    min-width: 160px;
    padding: 0.35rem;
    border-radius: 12px;
    background: rgba(11, 16, 13, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    z-index: 200;
}

.lang-switcher.open .lang-menu {
    display: grid;
    gap: 0.15rem;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.lang-option:hover,
.lang-option.is-active {
    background: rgba(212, 168, 83, 0.12);
    color: var(--text);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-user:hover {
    color: #fff;
}

.nav-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-user-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.nav-user-name {
    font-size: 0.88rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.2rem;
    border-radius: 4px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
    filter: brightness(1.06);
}

.btn-primary {
    background: #c49a52;
    border-color: #a67c2e;
    color: #1a1205;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
    color: var(--text);
}

.btn-discord {
    background: #5865f2;
    border-color: #4752c4;
    color: #fff;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.25);
}

.btn-discord:hover {
    background: #4752c4;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-lg {
    padding: 0.95rem 1.6rem;
}

.btn-block {
    width: 100%;
}

.flash {
    padding: 0.9rem 0;
    text-align: center;
    font-weight: 600;
}

.flash-success {
    background: rgba(81, 207, 102, 0.15);
    color: var(--success);
}

.flash-error {
    background: rgba(255, 107, 107, 0.15);
    color: var(--danger);
}

.page-home .site-header {
    background: linear-gradient(180deg, rgba(8, 6, 4, 0.72) 0%, rgba(8, 6, 4, 0.18) 100%);
    border-bottom-color: transparent;
    box-shadow: none;
}

.hero {
    position: relative;
    padding: 6.5rem 0 5rem;
    overflow: hidden;
}

.hero-cinematic {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: 7.5rem 0 4.5rem;
}

.hero-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: -4%;
    background-size: cover;
    background-position: center 20%;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s ease;
    animation: heroKen 28s ease-in-out infinite;
}

.hero-slide.is-active {
    opacity: 1;
}

@keyframes heroKen {
    0% { transform: scale(1.05) translate3d(0, 0, 0); }
    50% { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
    100% { transform: scale(1.05) translate3d(0, 0, 0); }
}

.hero-fog {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 80%, rgba(196, 154, 82, 0.16), transparent 42%),
        radial-gradient(ellipse at 20% 30%, rgba(90, 140, 180, 0.08), transparent 38%);
    animation: heroFog 16s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroFog {
    from { opacity: 0.45; transform: translate3d(-2%, 0, 0); }
    to { opacity: 0.9; transform: translate3d(2%, -1%, 0); }
}

.hero-rays {
    position: absolute;
    inset: -20%;
    background: repeating-linear-gradient(
        115deg,
        transparent 0,
        transparent 46px,
        rgba(228, 200, 138, 0.035) 47px,
        transparent 90px
    );
    animation: heroRays 22s linear infinite;
    pointer-events: none;
}

@keyframes heroRays {
    from { transform: translate3d(-4%, 0, 0); }
    to { transform: translate3d(4%, 0, 0); }
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 6, 4, 0.88) 0%, rgba(8, 6, 4, 0.42) 46%, rgba(8, 6, 4, 0.12) 100%),
        linear-gradient(180deg, rgba(8, 6, 4, 0.28) 0%, transparent 28%, rgba(8, 6, 4, 0.92) 100%);
    pointer-events: none;
}

html[dir="rtl"] .hero-vignette {
    background:
        linear-gradient(270deg, rgba(8, 6, 4, 0.88) 0%, rgba(8, 6, 4, 0.42) 46%, rgba(8, 6, 4, 0.12) 100%),
        linear-gradient(180deg, rgba(8, 6, 4, 0.28) 0%, transparent 28%, rgba(8, 6, 4, 0.92) 100%);
}

.hero-dust {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-dust span {
    position: absolute;
    bottom: -8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(228, 200, 138, 0.55);
    animation: heroDust linear infinite;
}

@keyframes heroDust {
    0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
    12% { opacity: 0.8; }
    100% { transform: translate3d(40px, -110vh, 0) scale(1); opacity: 0; }
}

.hero-play {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin-inline-start: 0;
}

.hero-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.hero-genres span {
    padding: 0.22rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f3ead8;
    background: rgba(0, 0, 0, 0.28);
}

.hero-play-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin: 1.6rem 0 1.4rem;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    padding: 0.95rem 2.4rem;
    border-radius: 4px;
    background: linear-gradient(180deg, #f0c56a 0%, #c49a52 55%, #9a7428 100%);
    color: #1a140a;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(196, 154, 82, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-play:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 32px rgba(196, 154, 82, 0.48);
}

.btn-play-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 0.9rem 1.6rem;
    border-radius: 4px;
    border: 1px solid rgba(228, 200, 138, 0.45);
    color: var(--gold-light);
    text-decoration: none;
    letter-spacing: 0.06em;
    background: rgba(12, 10, 8, 0.35);
}

.btn-play-ghost:hover {
    background: rgba(196, 154, 82, 0.12);
}

.countdown-cinematic {
    margin-top: 0.4rem;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    z-index: -1;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 8, 0.78) 0%, rgba(12, 10, 8, 0.38) 48%, rgba(12, 10, 8, 0.12) 100%),
        linear-gradient(180deg, rgba(12, 10, 8, 0.22) 0%, transparent 34%, #0c0a08 100%);
}

.hero-chapter {
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.stat-card-gold {
    border-color: rgba(212, 168, 83, 0.45);
    background: rgba(212, 168, 83, 0.08);
}

.stat-card-gold .stat-value {
    font-size: 1.6rem;
}

.hero-panel-image {
    height: 120px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.section-tag {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: 3px;
    background: rgba(196, 154, 82, 0.10);
    border: 1px solid rgba(196, 154, 82, 0.32);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-head p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0.5rem auto 0;
}

.section-head code {
    color: var(--cyan);
    font-size: 0.85em;
}

.section-rates {
    padding-top: 2rem;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.rate-card {
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.rate-card:hover {
    transform: translateY(-3px);
}

.rate-card-featured {
    border-color: rgba(196, 154, 82, 0.55);
    background: linear-gradient(180deg, rgba(196, 154, 82, 0.14), rgba(22, 17, 12, 0.92));
}

.rate-card-featured .rate-value {
    color: var(--gold-light);
    font-size: 2rem;
}

.rate-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.rate-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.highlights-box {
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.highlights-box h3 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.highlights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.65rem 1.5rem;
    list-style: none;
}

.highlights-list li {
    position: relative;
    padding-inline-start: 1.25rem;
    color: var(--text-muted);
}

.highlights-list li::before {
    content: '✦';
    position: absolute;
    inset-inline-start: 0;
    color: var(--gold);
}

.game-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.game-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.game-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.classes-wrap h4 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--gold-light);
}

.classes-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.class-tag {
    padding: 0.32rem 0.7rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.game-showcase {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.game-showcase img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.showcase-badge {
    position: absolute;
    bottom: 1rem;
    inset-inline-start: 1rem;
    padding: 0.45rem 0.85rem;
    border-radius: 3px;
    background: rgba(12, 10, 8, 0.86);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.85rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 0;
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.06);
}

.gallery-item figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(180deg, transparent 30%, rgba(8, 11, 9, 0.92) 100%);
}

.gallery-item h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.gallery-item p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

.features-grid-visual {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card-visual {
    position: relative;
    min-height: 260px;
    padding: 0;
    overflow: hidden;
}

.feature-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
}

.feature-card-visual:hover .feature-bg {
    transform: scale(1.05);
}

.feature-overlay {
    position: relative;
    height: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent 20%, rgba(8, 11, 9, 0.95) 85%);
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.stage-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.25s;
}

.stage-card:hover {
    transform: translateY(-4px);
}

.stage-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.stage-image .stage-num {
    position: absolute;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #a67c2e);
    color: #1a1205;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.stage-body {
    padding: 1rem 1.15rem;
}

.stage-body h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.stage-body p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.raids-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.raid-image {
    height: 200px;
}

.cta-banner {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 9, 0.82);
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-auth::before,
body.page-auth::before {
    display: block;
    background:
        linear-gradient(180deg, rgba(12, 10, 8, 0.42) 0%, rgba(12, 10, 8, 0.92) 100%),
        url('../img/auth-bg.jpg') center/cover no-repeat;
}

body.page-account::before {
    display: block;
    background:
        linear-gradient(180deg, rgba(12, 10, 8, 0.55) 0%, rgba(12, 10, 8, 0.94) 100%),
        url('../img/auth-bg.jpg') center/cover no-repeat;
}

body.page-download::before,
body.page-ranking::before {
    display: block;
    background:
        linear-gradient(180deg, rgba(12, 10, 8, 0.5) 0%, rgba(12, 10, 8, 0.93) 100%),
        url('../img/page-bg.jpg') center/cover no-repeat;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.32rem 0.8rem;
    border-radius: 3px;
    background: rgba(196, 154, 82, 0.12);
    border: 1px solid rgba(196, 154, 82, 0.38);
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4.6vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #f3ead6;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-cinematic h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    margin-bottom: 0.65rem;
}

.hero-cinematic .hero-desc {
    color: #ddd4c2;
    font-size: 1.12rem;
    max-width: 540px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.stat-card {
    min-width: 110px;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--gold-light);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-panel {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.countdown-label {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.server-online {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgba(81, 207, 102, 0.08);
    border: 1px solid rgba(81, 207, 102, 0.3);
    color: var(--success);
    font-weight: 600;
}

.server-online[hidden] {
    display: none;
}

.online-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(81, 207, 102, 0.55);
    animation: online-pulse 1.8s ease-out infinite;
    flex-shrink: 0;
}

@keyframes online-pulse {
    0% { box-shadow: 0 0 0 0 rgba(81, 207, 102, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(81, 207, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(81, 207, 102, 0); }
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.countdown div {
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.countdown span {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold-light);
}

.countdown small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.server-box h3 {
    font-family: var(--font-display);
    margin-bottom: 0.75rem;
}

.server-box ul {
    list-style: none;
}

.server-box li {
    padding: 0.35rem 0;
    color: var(--text-muted);
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
}

.section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.features-grid,
.raids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.feature-card,
.raid-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s, background 0.25s;
}

.feature-card:hover,
.raid-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.feature-card {
    padding: 1.5rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(212, 168, 83, 0.14);
    border: 1px solid rgba(212, 168, 83, 0.3);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card h3,
.raid-body h3 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.feature-card p,
.raid-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stages-list {
    display: grid;
    gap: 0.85rem;
    max-width: 760px;
    margin: 0 auto;
}

.stage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.stage-num {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #a67c2e);
    color: #1a1205;
    font-weight: 700;
}

.stage-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.raid-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.raid-body {
    padding: 1.25rem;
}

.cta-banner {
    padding: 3rem 0 5rem;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cta-inner h2 {
    font-family: var(--font-display);
    margin-bottom: 0.35rem;
}

.cta-inner p {
    color: var(--text-muted);
}

.auth-section,
.download-section {
    padding: 4rem 0 5rem;
}

.auth-card,
.download-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.download-banner {
    height: 160px;
    margin-bottom: 0;
    background-size: cover;
    background-position: center;
}

.download-card {
    padding: 0 0 2rem;
}

.download-card .download-hero,
.download-card .download-meta,
.download-card .download-actions,
.download-card .download-steps,
.download-card .config-box {
    padding-inline: 2rem;
}

.download-card .download-hero {
    padding-top: 1.5rem;
}

.download-card .config-box {
    padding-bottom: 0;
    margin-top: 0;
    margin-inline: 2rem;
}

.auth-card-wide,
.download-card {
    max-width: 720px;
}

.auth-card h1,
.download-card h1 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: rgba(212, 168, 83, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.12);
}

.form-error {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 107, 107, 0.12);
    color: var(--danger);
    margin-bottom: 1rem;
}

.auth-footer-link {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--text-muted);
}

.auth-footer-link a {
    color: var(--gold-light);
}

.account-info {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.form-section-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.download-hero {
    margin-bottom: 1.5rem;
}

.download-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    padding: 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    text-align: center;
}

.meta-item span {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.download-steps ol {
    padding-inline-start: 1.2rem;
    color: var(--text-muted);
}

.download-steps li + li {
    margin-top: 0.5rem;
}

.config-box {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
}

.config-box pre {
    overflow-x: auto;
    margin-top: 0.75rem;
    color: var(--cyan);
    direction: ltr;
    text-align: left;
}

.site-footer {
    padding: 2.5rem 0 1.25rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(160px, 0.7fr);
    gap: 2rem 2.5rem;
    align-items: start;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.footer-brand-name {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.footer-brand-desc {
    margin: 0;
    max-width: 36rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-nav-col h4,
.footer-status-col h4 {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 700;
}

.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-nav-list a {
    color: #949ba2;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.15s ease;
}

.footer-nav-list a:hover {
    color: var(--text);
}

.footer-status-line {
    margin: 0 0 0.35rem;
    color: #949ba2;
    font-size: 0.92rem;
}

.footer-bottom {
    padding-top: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-inner {
    text-align: center;
    color: var(--text-muted);
}

.footer-meta {
    margin-top: 0.35rem;
    font-size: 0.9rem;
}

.footer-discord {
    margin-top: 0.5rem;
}

.footer-discord-link {
    color: #b9bbff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-discord-link:hover {
    color: #fff;
}

[dir="rtl"] .auth-footer-link,
[dir="rtl"] .footer-bottom {
    direction: rtl;
}

.legal-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.legal-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
}

.legal-header h1 {
    margin-bottom: 0.75rem;
}

.legal-intro {
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-block + .legal-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.legal-block h2 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: var(--gold-light);
}

.legal-block p {
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 0.75rem;
}

.legal-list {
    margin: 0.5rem 0 0;
    padding-inline-start: 1.25rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.legal-list li + li {
    margin-top: 0.35rem;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .header-inner {
        position: relative;
    }

    .hero-grid,
    .cta-inner,
    .game-split {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .highlights-list {
        grid-template-columns: 1fr;
        text-align: start;
    }

    .classes-tags {
        justify-content: center;
    }

    .hero-cinematic {
        align-items: flex-end;
        padding-bottom: 3rem;
    }

    .hero-play {
        text-align: start;
    }

    .hero-desc,
    .hero-actions,
    .hero-stats,
    .hero-play-actions {
        justify-content: flex-start;
    }

    .hero-desc {
        margin-inline: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .header-menu {
        position: absolute;
        top: 64px;
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 1.25rem 1.25rem;
        background: rgba(9, 13, 11, 0.98);
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .header-menu.open {
        display: flex;
    }

    .header-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .header-nav-link {
        padding: 0.85rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header-nav-link.is-active::after {
        display: none;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        padding-top: 1rem;
        gap: 0.85rem 1rem;
    }

    .nav-user {
        width: auto;
    }

    .nav-user-name {
        max-width: none;
    }

    .lang-switcher {
        width: 100%;
    }

    .lang-menu {
        position: static;
        display: none;
        margin-top: 0.5rem;
        width: 100%;
    }

    .lang-switcher.open .lang-menu {
        display: grid;
    }

    .download-meta {
        grid-template-columns: 1fr;
    }
}

/* Admin shop panel */
.page-admin-shop .admin-shop-section {
    padding: 2rem 0 4rem;
}

.admin-shop-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-shop-head h1 {
    font-family: var(--font-display);
    margin: 0.35rem 0;
}

.admin-note {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid var(--gold);
    background: rgba(212, 168, 83, 0.08);
}

.admin-add-card,
.admin-filter-card,
.admin-table-wrap,
.admin-help-card,
.admin-login-card {
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.admin-item-form,
.admin-filter-form,
.admin-row-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
}

.admin-item-form label,
.admin-filter-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 120px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-item-form input,
.admin-filter-form input,
.admin-filter-form select,
.admin-row-form input {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
}

.admin-count {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table th {
    text-align: start;
    color: var(--gold-light);
    font-weight: 600;
}

.cat-cell {
    min-width: 160px;
}

.cat-meta {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.cat-meta span {
    font-size: 0.75rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.admin-row-form input {
    width: 72px;
}

.admin-row-form .field-item {
    width: 96px;
}

.empty-cell {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem !important;
}

.btn-sm {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
}

.btn-danger {
    background: rgba(255, 107, 107, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.35);
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.28);
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin: 1rem 0 1.5rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}

.page-link.is-active {
    background: var(--gold);
    border-color: transparent;
    color: #1a1205;
    font-weight: 700;
}

.page-gap {
    color: var(--text-muted);
    padding: 0 0.25rem;
}

.admin-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.admin-help-grid ul {
    list-style: none;
    margin-top: 0.5rem;
}

.admin-help-grid li {
    padding: 0.2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.inline-form {
    display: inline;
}

.gm-pay-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.gm-pay-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.25);
    font-weight: 700;
}

.gm-pay-icon,
.gm-price-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
}

.gm-price-icon {
    width: 16px;
    height: 16px;
}

.gm-pay-tab.gm-pay-diamond.is-active {
    background: #3d8fd4;
    border-color: #7ec8ff;
    color: #041018;
}

.gm-pay-tab.gm-pay-ruby.is-active {
    background: #c43b4a;
    border-color: #ff8a96;
    color: #1a0508;
}

.gm-pay-tab.gm-pay-phirius.is-active {
    background: #d4a853;
    border-color: #ffe08a;
    color: #1a1205;
}

.gm-mall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.4rem;
}

.gm-mall-group {
    grid-column: 1 / -1;
    padding: 0.55rem 0.2rem;
    color: var(--gold-light);
    font-weight: 700;
    border-bottom: 1px solid rgba(212, 168, 83, 0.25);
}

.gm-mall-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
}

.gm-mall-top {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.gm-mall-icon-wrap {
    position: relative;
    flex: 0 0 auto;
}

.gm-mall-count {
    position: absolute;
    right: -4px;
    bottom: -4px;
    min-width: 1.4rem;
    padding: 0.05rem 0.28rem;
    border-radius: 999px;
    background: #1a1205;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
}

.gm-mall-info strong {
    display: block;
    line-height: 1.3;
    color: #f3d9a0;
}

.gm-mall-info small {
    display: block;
    color: var(--text-muted);
    margin: 0.15rem 0 0.35rem;
}

.gm-mall-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.gm-mall-price.is-diamond {
    color: #7ec8ff;
}

.gm-mall-price.is-ruby {
    color: #ff8a96;
}

.gm-mall-price.is-phirius {
    color: #f3d9a0;
}

.gm-mall-price em {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-inline-start: 0.35rem;
    font-style: normal;
    font-size: 0.78rem;
    color: #ff8a96;
    font-weight: 600;
}

.gm-mall-edit {
    align-items: center;
}

.gm-mall-delete {
    align-self: flex-start;
}

.gm-shop-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.gm-shop-tab {
    padding: 0.55rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.2);
}

.gm-shop-tab.is-active {
    background: var(--gold);
    border-color: transparent;
    color: #1a1205;
    font-weight: 700;
}

.gm-shop-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: -0.35rem 0 1.1rem;
}

.gm-shop-sub {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
}

.gm-shop-sub.is-active {
    background: rgba(212, 168, 83, 0.22);
    border-color: rgba(212, 168, 83, 0.55);
    color: var(--gold-light);
    font-weight: 600;
}

.gm-group-row td {
    background: rgba(212, 168, 83, 0.12);
    color: var(--gold-light);
    font-weight: 700;
    padding: 0.7rem 0.6rem !important;
}

.gm-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.gm-catalog-card {
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}

.gm-catalog-card.is-in-mall {
    border-color: rgba(212, 168, 83, 0.45);
}

.gm-catalog-top {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.gm-catalog-top strong {
    display: block;
    line-height: 1.3;
}

.gm-catalog-top small {
    display: block;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.gm-item-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    flex: 0 0 auto;
}

.admin-table .gm-item-icon {
    width: 40px;
    height: 40px;
}

.gm-in-mall {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(212, 168, 83, 0.18);
    color: var(--gold-light);
}

.gm-catalog-add,
.admin-row-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: end;
}

.gm-catalog-add label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.gm-catalog-add input,
.gm-catalog-add select,
.admin-row-form select {
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
}

.gm-catalog-add input[type="number"] {
    width: 72px;
}

.gm-catalog-add select,
.admin-row-form select {
    min-width: 150px;
    max-width: 220px;
}

.header-nav-link[href="admin-shop.php"] {
    color: var(--gold-light);
}

.ranking-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.ranking-header {
    margin-bottom: 1.5rem;
}

.ranking-header h1 {
    margin-bottom: 0.35rem;
}

.ranking-header p {
    color: var(--text-muted);
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.ranking-sidebar h2,
.ranking-main-head h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--gold-light);
}

.ranking-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ranking-nav-link {
    display: block;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--text);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.18);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ranking-nav-link:hover {
    border-color: var(--border);
    background: rgba(212, 168, 83, 0.08);
}

.ranking-nav-link.is-active {
    border-color: var(--gold);
    background: rgba(212, 168, 83, 0.14);
    color: var(--gold-light);
    font-weight: 600;
}

.ranking-main-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ranking-top-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ranking-table-wrap {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.ranking-table th,
.ranking-table td {
    padding: 0.7rem 0.55rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.ranking-table th {
    text-align: start;
    color: var(--gold-light);
    font-weight: 600;
}

.ranking-rank,
.ranking-prev,
.ranking-value {
    width: 4.5rem;
    text-align: center;
    white-space: nowrap;
}

.ranking-name {
    font-weight: 600;
}

.ranking-guild {
    color: var(--text-muted);
}

.ranking-value {
    color: var(--gold-light);
    font-weight: 600;
}

.ranking-empty {
    color: var(--text-muted);
    padding: 1rem 0;
}

@media (max-width: 860px) {
    .ranking-layout {
        grid-template-columns: 1fr;
    }

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

.account-section {
    padding: 2.5rem 0 4.5rem;
}

.account-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.account-side,
.account-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.account-side {
    padding: 1.25rem 1rem;
}

.account-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.account-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: #c49a52;
    color: #1a1205;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.account-user strong {
    display: block;
    font-size: 1rem;
}

.account-user small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.account-nav {
    display: grid;
    gap: 0.35rem;
}

.account-nav-btn {
    width: 100%;
    text-align: start;
    padding: 0.7rem 0.8rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.account-nav-btn:hover,
.account-nav-btn.is-active {
    color: var(--text);
    background: rgba(196, 154, 82, 0.10);
    border-color: var(--border);
}

.account-side-links {
    display: grid;
    gap: 0.45rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.account-side-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.account-side-links a:hover {
    color: var(--gold-light);
}

.account-main {
    min-height: 420px;
    padding: 1.6rem 1.7rem 2rem;
}

.account-panel {
    display: none;
}

.account-panel.is-active {
    display: block;
}

.account-panel-head {
    margin-bottom: 1.4rem;
}

.account-panel-head h1 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    margin-bottom: 0.4rem;
}

.account-panel-head p,
.account-subhead {
    color: var(--text-muted);
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.6rem;
}

.account-stat {
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.18);
}

.account-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.account-stat strong {
    font-size: 1.05rem;
}

.account-badge {
    color: var(--text-muted);
}

.account-badge.is-on {
    color: var(--success);
}

.account-subhead {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.account-receipts {
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.account-receipts li {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.18);
}

.account-receipts li span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.account-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.account-action {
    display: block;
    text-align: start;
    padding: 1rem 1.05rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.account-action:hover {
    border-color: rgba(196, 154, 82, 0.5);
    background: rgba(196, 154, 82, 0.08);
}

.account-action strong {
    display: block;
    margin-bottom: 0.25rem;
}

.account-action span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.account-form {
    max-width: 420px;
}

.account-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

@media (max-width: 860px) {
    .account-shell,
    .account-stats,
    .account-actions-grid {
        grid-template-columns: 1fr;
    }

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

    .account-nav-btn {
        text-align: center;
        font-size: 0.82rem;
        padding: 0.55rem 0.4rem;
    }
}

/* Gameforge-style play landing (own art, own layout) */
body.page-play {
    background: #07070a;
}

body.page-play::before {
    display: none;
}

body.page-play .bg-overlay {
    display: none;
}

body.page-play .site-header {
    position: fixed;
    width: 100%;
    background: linear-gradient(180deg, rgba(7, 7, 10, 0.78) 0%, rgba(7, 7, 10, 0) 100%);
    border-bottom: 0;
    box-shadow: none;
}

body.page-play .site-footer {
    background: #0b0b10;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.play-stage {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 7rem 0 4rem;
}

.play-world {
    position: absolute;
    inset: 0;
}

.play-layer {
    position: absolute;
    background-repeat: no-repeat;
    background-size: cover;
}

.play-layer-world {
    inset: -6%;
    background-position: center 30%;
    animation: playPan 36s ease-in-out infinite alternate;
    filter: saturate(1.05) contrast(1.05);
}

.play-layer-city {
    inset: auto -8% 0 28%;
    height: 78%;
    background-position: right bottom;
    opacity: 0.42;
    mix-blend-mode: lighten;
    animation: playDrift 22s ease-in-out infinite alternate;
}

.play-layer-cast {
    inset: 6% -4% 0 38%;
    background-position: right bottom;
    background-size: contain;
    animation: playFloat 7.5s ease-in-out infinite;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

html[dir="rtl"] .play-layer-cast,
html[dir="rtl"] .play-layer-city {
    inset: 6% 38% 0 -4%;
    background-position: left bottom;
}

@keyframes playPan {
    from { transform: scale(1.08) translate3d(0, 0, 0); }
    to { transform: scale(1.18) translate3d(-3%, -2%, 0); }
}

@keyframes playDrift {
    from { transform: translate3d(0, 2%, 0); }
    to { transform: translate3d(-4%, -1%, 0); }
}

@keyframes playFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-1.5%, -2.2%, 0) scale(1.03); }
}

.play-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 72% 58%, rgba(255, 196, 92, 0.18), transparent 36%),
        radial-gradient(ellipse at 20% 80%, rgba(80, 140, 220, 0.12), transparent 40%);
    pointer-events: none;
    animation: heroFog 14s ease-in-out infinite alternate;
}

.play-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 7, 10, 0.92) 0%, rgba(7, 7, 10, 0.55) 42%, rgba(7, 7, 10, 0.12) 100%),
        linear-gradient(180deg, rgba(7, 7, 10, 0.2) 0%, transparent 30%, rgba(7, 7, 10, 0.88) 100%);
    pointer-events: none;
}

html[dir="rtl"] .play-shade {
    background:
        linear-gradient(270deg, rgba(7, 7, 10, 0.92) 0%, rgba(7, 7, 10, 0.55) 42%, rgba(7, 7, 10, 0.12) 100%),
        linear-gradient(180deg, rgba(7, 7, 10, 0.2) 0%, transparent 30%, rgba(7, 7, 10, 0.88) 100%);
}

.play-copy {
    position: relative;
    z-index: 2;
    width: min(640px, calc(100% - 2.5rem));
    margin-inline-start: max(1.25rem, calc((100vw - 1320px) / 2));
}

.play-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.play-genres span {
    padding: 0.2rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
}

.play-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 0.95;
    color: #fff;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
    margin-bottom: 1rem;
}

.play-lead {
    max-width: 34rem;
    color: #e8e2d6;
    font-size: 1.12rem;
    margin-bottom: 1.6rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.play-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.btn-play-wide {
    margin-top: 1.25rem;
    min-width: 220px;
}

.page-play .countdown-label,
.page-play .server-online {
    justify-content: flex-start;
    text-align: start;
    max-width: 28rem;
}

.page-play .countdown-cinematic {
    max-width: 28rem;
}

.play-desc {
    padding: 4.5rem 0;
    background: #101018;
}

.play-desc-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 1.75rem;
    color: #fff;
}

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

.play-pillar {
    background: #171722;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.play-pillar-art {
    height: 150px;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
}

.play-pillar:hover .play-pillar-art {
    transform: scale(1.08);
}

.play-pillar h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    padding: 1rem 1rem 0.4rem;
    color: #fff;
}

.play-pillar p {
    padding: 0 1rem 1.2rem;
    color: #b7b3c7;
    font-size: 0.92rem;
}

.play-info {
    padding: 4rem 0 5rem;
    background:
        linear-gradient(180deg, rgba(7, 7, 10, 0.82), rgba(7, 7, 10, 0.94)),
        url('../img/page-bg.jpg') center/cover no-repeat;
}

.play-info-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
}

.play-info h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
    color: #fff;
}

.play-spec {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
}

.play-spec li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #b7b3c7;
}

.play-spec strong {
    color: #fff;
}

.play-rates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.play-rate {
    padding: 0.7rem 0.4rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.play-rate b {
    display: block;
    color: var(--gold-light);
    font-size: 1.1rem;
}

.play-rate small {
    color: #9a96a8;
    font-size: 0.72rem;
}

.play-rate.is-hot {
    border-color: rgba(196, 154, 82, 0.45);
}

.play-req {
    display: grid;
    gap: 1rem;
}

.play-req h3 {
    color: var(--gold-light);
    margin-bottom: 0.35rem;
}

.play-req p {
    color: #b7b3c7;
}

@media (max-width: 980px) {
    .play-pillars,
    .play-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .play-layer-cast {
        opacity: 0.55;
        inset: 18% -10% 0 20%;
    }

    .play-copy {
        margin-inline: 1.25rem;
    }
}

@media (max-width: 700px) {
    .play-pillars,
    .play-info-grid {
        grid-template-columns: 1fr;
    }

    .play-stage {
        align-items: flex-end;
    }
}

/* Gameforge-like description stack — isolated, does not change header/login */
.rom-desc {
    background: #0c2d58;
    padding: 4.25rem 0 5rem;
    position: relative;
    z-index: 1;
}

.rom-desc-inner {
    width: min(1080px, calc(100% - 2.4rem));
    margin: 0 auto;
}

.rom-desc-kicker {
    margin: 0 0 1.6rem;
    color: #e8eef6;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rom-desc-block {
    margin: 0;
}

.rom-desc-block h3 {
    margin: 0 0 0.85rem;
    color: #e8eef6;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rom-desc-block p {
    max-width: 46rem;
    margin: 0 0 1.7rem;
    color: #d5deea;
    font-size: 1.05rem;
    line-height: 1.75;
}

.rom-desc-media {
    width: 100%;
    aspect-ratio: 16 / 7;
    margin: 0 0 1.85rem;
    overflow: hidden;
    background: #081c38;
}

.rom-desc-media-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: romDescKen 24s ease-in-out infinite alternate;
}

@keyframes romDescKen {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-1.4%, -1%, 0); }
}

@media (max-width: 700px) {
    .rom-desc {
        padding: 3rem 0 3.5rem;
    }

    .rom-desc-media {
        aspect-ratio: 16 / 9;
        margin-bottom: 1.4rem;
    }
}
