:root {
    --black: #070604;
    --charcoal: #14110e;
    --charcoal-2: #201a15;
    --gold: #d8ad54;
    --gold-soft: #f1d184;
    --gold-deep: #8f6726;
    --burgundy: #6f1020;
    --burgundy-bright: #a32636;
    --wine: #3c0c15;
    --ivory: #f8edd2;
    --muted: #b8aa8e;
    --emerald: #1f6b4f;
    --line: rgba(216, 173, 84, 0.24);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ivory);
    background:
        linear-gradient(135deg, rgba(111, 16, 32, 0.16), transparent 34%),
        linear-gradient(100deg, transparent 0%, rgba(216, 173, 84, 0.1) 48%, transparent 78%),
        linear-gradient(180deg, #050403 0%, #100d0a 42%, #070604 100%);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.65;
    letter-spacing: 0;
}

a {
    color: var(--gold-soft);
    text-decoration: none;
}

a:hover {
    color: #fff7dd;
}

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

.site-shell {
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.container.narrow {
    width: min(880px, calc(100% - 32px));
}

.vip-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 6, 4, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 28px));
    min-height: 92px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 210px 1fr auto;
    align-items: center;
    gap: 18px;
}

.brand,
.footer-logo {
    display: inline-flex;
    width: 210px;
    height: 90px;
    align-items: center;
}

.brand img,
.footer-logo img {
    width: 210px;
    height: 90px;
    object-fit: contain;
}

.vip-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.vip-nav a {
    min-height: 42px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.vip-nav a:hover,
.vip-nav a.is-active {
    color: var(--ivory);
    border-color: rgba(216, 173, 84, 0.36);
    background: linear-gradient(180deg, rgba(216, 173, 84, 0.14), rgba(111, 16, 32, 0.08));
}

.header-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    min-height: 44px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-login {
    color: var(--gold-soft);
    border: 1px solid rgba(241, 209, 132, 0.72);
    background: rgba(8, 7, 5, 0.72);
    box-shadow: 0 0 18px rgba(216, 173, 84, 0.16), inset 0 0 18px rgba(216, 173, 84, 0.06);
}

.btn-register {
    color: #fff6d8;
    border: 1px solid rgba(241, 209, 132, 0.52);
    background: linear-gradient(110deg, var(--burgundy) 0%, var(--burgundy-bright) 38%, var(--gold) 100%);
    box-shadow: 0 0 28px rgba(163, 38, 54, 0.32), 0 0 30px rgba(216, 173, 84, 0.24);
    animation: pulseGlow 1.9s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 22px rgba(163, 38, 54, 0.28), 0 0 24px rgba(216, 173, 84, 0.22);
    }
    50% {
        box-shadow: 0 0 42px rgba(163, 38, 54, 0.44), 0 0 46px rgba(241, 209, 132, 0.36);
    }
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--gold-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(20, 17, 14, 0.86);
    font-size: 1.15rem;
}

.home-hero,
.page-hero {
    position: relative;
    padding: 92px 0 72px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(115deg, rgba(7, 6, 4, 0.32), rgba(7, 6, 4, 0.86)),
        repeating-linear-gradient(90deg, rgba(216, 173, 84, 0.05) 0 1px, transparent 1px 88px),
        linear-gradient(135deg, rgba(111, 16, 32, 0.3), rgba(32, 26, 21, 0.9));
}

.home-hero {
    min-height: calc(100vh - 92px);
    display: flex;
    align-items: center;
}

.home-hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(7, 6, 4, 0.92));
    pointer-events: none;
}

.cinema-vignette,
.hero-aura {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 50%, rgba(0, 0, 0, 0.58)),
        linear-gradient(124deg, transparent 42%, rgba(216, 173, 84, 0.16) 62%, transparent 88%);
    pointer-events: none;
}

.home-hero-inner,
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 56px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold-soft);
    font-family: "Cinzel", serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: #fff4d1;
    font-family: "Cinzel", serif;
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    max-width: 850px;
    font-size: clamp(2.65rem, 7vw, 6.8rem);
}

.category-hero h1,
.news-hero h1 {
    font-size: clamp(2.35rem, 5vw, 5.15rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 3rem);
}

h3 {
    font-size: 1.16rem;
}

.hero-lead {
    max-width: 720px;
    margin: 22px 0 28px;
    color: #eadbbd;
    font-size: 1.08rem;
}

.royal-seal,
.hero-sigil {
    min-height: 360px;
    display: grid;
    place-items: center;
    position: relative;
    border: 1px solid rgba(216, 173, 84, 0.4);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(216, 173, 84, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(20, 17, 14, 0.9), rgba(60, 12, 21, 0.48));
    box-shadow: var(--shadow), inset 0 0 70px rgba(216, 173, 84, 0.08);
    overflow: hidden;
}

.royal-seal::before,
.hero-sigil::before {
    content: "";
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border: 1px solid rgba(216, 173, 84, 0.34);
    transform: rotate(45deg);
}

.royal-seal i,
.hero-sigil i {
    font-size: clamp(5rem, 12vw, 9rem);
    background: linear-gradient(135deg, var(--gold-soft), var(--gold), var(--burgundy-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(216, 173, 84, 0.35));
    animation: iconFlow 3.2s ease-in-out infinite;
}

.royal-seal span,
.hero-sigil span {
    position: absolute;
    bottom: 26px;
    color: var(--muted);
    font-family: "Cinzel", serif;
    font-weight: 800;
    text-transform: uppercase;
}

@keyframes iconFlow {
    0%, 100% {
        filter: drop-shadow(0 0 16px rgba(216, 173, 84, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(163, 38, 54, 0.44));
    }
}

.value-band,
.game-section,
.editorial-section,
.magazine-section {
    padding: 70px 0;
}

.value-band {
    background: linear-gradient(180deg, rgba(20, 17, 14, 0.94), rgba(7, 6, 4, 0.9));
}

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

.value-item,
.game-card,
.news-card,
.lounge-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(32, 26, 21, 0.9), rgba(12, 10, 8, 0.94)),
        linear-gradient(135deg, rgba(216, 173, 84, 0.1), transparent);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.value-item {
    min-height: 230px;
    padding: 24px;
}

.value-item i,
.game-card > i,
.news-icon i,
.mini-link-list i {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold), var(--burgundy-bright), var(--emerald));
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: faGradient 4s ease-in-out infinite;
}

@keyframes faGradient {
    0%, 100% {
        background-position: 0% 45%;
    }
    50% {
        background-position: 100% 55%;
    }
}

.value-item i {
    font-size: 2rem;
    margin-bottom: 18px;
}

.value-item h2 {
    margin-bottom: 10px;
    font-size: 1.12rem;
}

.value-item p,
.game-card p,
.news-card p,
.lounge-panel p,
.footer-brand p,
.footer-legal p {
    margin: 0;
    color: var(--muted);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 28px;
}

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

.game-card {
    min-height: 290px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.game-card > i {
    font-size: 2.65rem;
}

.game-card span,
.news-card a {
    margin-top: auto;
    color: var(--gold-soft);
    font-weight: 800;
}

.editorial-section {
    background:
        linear-gradient(90deg, rgba(60, 12, 21, 0.18), transparent 44%),
        linear-gradient(180deg, rgba(7, 6, 4, 0.94), rgba(20, 17, 14, 0.9));
}

.editorial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.longform {
    max-width: 780px;
}

.longform h2 {
    margin-bottom: 20px;
}

.longform p,
.article-body p {
    color: #dfcfad;
    font-size: 1.03rem;
}

.lounge-panel {
    position: sticky;
    top: 118px;
    padding: 24px;
}

.lounge-panel h2 {
    margin-bottom: 18px;
    font-size: 1.35rem;
}

.mini-link-list {
    display: grid;
    gap: 12px;
}

.mini-link-list a {
    min-height: 54px;
    padding: 12px;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 12px;
    color: var(--ivory);
    border: 1px solid rgba(216, 173, 84, 0.18);
    border-radius: 6px;
    background: rgba(7, 6, 4, 0.42);
}

.shortcode-line,
.textlink-zone {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.shortcode-line a,
.textlink-zone a {
    margin-right: 10px;
}

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

.news-card {
    min-height: 340px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 6, 4, 0.52);
}

.news-icon i {
    font-size: 1.6rem;
}

.news-card time {
    color: var(--gold-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.article-hero {
    padding: 80px 0 46px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(60, 12, 21, 0.52), rgba(7, 6, 4, 0.94)),
        repeating-linear-gradient(90deg, rgba(216, 173, 84, 0.05) 0 1px, transparent 1px 80px);
}

.article-hero h1 {
    font-size: clamp(2rem, 5vw, 4.6rem);
}

.article-hero p {
    margin: 22px 0 0;
    color: #e8d8b8;
    font-size: 1.08rem;
}

.article-body {
    width: min(880px, calc(100% - 32px));
    padding: 54px 0 80px;
}

.article-body h2 {
    margin: 34px 0 14px;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.article-body h3 {
    margin: 22px 0 8px;
    color: var(--gold-soft);
    font-family: "Inter", Arial, sans-serif;
}

.vip-footer {
    border-top: 1px solid var(--line);
    background: #080705;
}

.footer-inner {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.2fr;
    gap: 32px;
}

.footer-map h2,
.footer-legal h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: var(--muted);
}

.copyright {
    padding: 18px 16px;
    color: #9c8d72;
    text-align: center;
    border-top: 1px solid rgba(216, 173, 84, 0.14);
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    max-width: min(360px, calc(100vw - 36px));
    padding: 14px 16px;
    color: var(--ivory);
    border: 1px solid rgba(241, 209, 132, 0.46);
    border-radius: 8px;
    background: rgba(20, 17, 14, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.reveal {
    opacity: 0;
    transform: translateY(12px);
}

.reveal.is-ready {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

@media (max-width: 1120px) {
    .header-inner {
        grid-template-columns: 210px auto auto;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .vip-nav {
        position: absolute;
        top: 92px;
        left: 14px;
        right: 14px;
        display: none;
        padding: 12px;
        justify-content: start;
        flex-wrap: wrap;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(9, 7, 5, 0.98);
        box-shadow: var(--shadow);
    }

    .vip-nav.is-open {
        display: flex;
    }

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

@media (max-width: 900px) {
    .header-inner {
        min-height: 82px;
        grid-template-columns: 170px auto;
    }

    .brand,
    .brand img,
    .footer-logo,
    .footer-logo img {
        width: 170px;
        height: 72px;
    }

    .vip-nav {
        top: 82px;
    }

    .header-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
        padding-bottom: 12px;
    }

    .header-actions .btn {
        flex: 1;
    }

    .home-hero {
        min-height: auto;
    }

    .home-hero-inner,
    .hero-grid,
    .editorial-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .royal-seal,
    .hero-sigil {
        min-height: 250px;
    }

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

    .lounge-panel {
        position: static;
    }
}

@media (max-width: 620px) {
    .container,
    .container.narrow,
    .article-body {
        width: min(100% - 24px, 1160px);
    }

    .home-hero,
    .page-hero {
        padding: 54px 0 48px;
    }

    .value-band,
    .game-section,
    .editorial-section,
    .magazine-section {
        padding: 46px 0;
    }

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

    .btn {
        width: 100%;
    }

    .value-grid,
    .game-grid,
    .magazine-grid,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .value-item,
    .game-card,
    .news-card {
        min-height: auto;
    }

    h1 {
        font-size: clamp(2.35rem, 16vw, 4.4rem);
    }

    .category-hero h1,
    .news-hero h1 {
        font-size: clamp(2.05rem, 12vw, 3.4rem);
    }
}
