:root {
    --bg: #080b14;
    --bg-2: #101624;
    --panel: rgba(18, 25, 39, 0.78);
    --panel-solid: #121927;
    --line: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --muted: #aeb8c8;
    --gold: #f5c45b;
    --gold-2: #ffe2a3;
    --cyan: #41d8ff;
    --green: #34d399;
    --red: #ff6868;
    --radius: 8px;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(245, 196, 91, 0.15), transparent 28%),
        radial-gradient(circle at 88% 26%, rgba(65, 216, 255, 0.12), transparent 26%),
        linear-gradient(180deg, #080b14 0%, #0d121e 48%, #080b14 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

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

.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--cyan));
}

.topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 76px;
    padding: 12px clamp(18px, 5vw, 62px);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 11, 20, 0.78);
    backdrop-filter: blur(18px);
}

.brand {
    width: 176px;
    text-decoration: none;
}

.brand img {
    width: 100%;
    height: auto;
}

.nav {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 2.6vw, 34px);
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.nav a,
.top-link,
.btn,
.footer a {
    text-decoration: none;
}

.nav a {
    position: relative;
    transition: color 0.2s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    border-radius: 99px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
    transform: scaleX(1);
}

.top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(245, 196, 91, 0.45);
    border-radius: var(--radius);
    background: rgba(245, 196, 91, 0.1);
    color: var(--gold-2);
    font-weight: 900;
}

.menu-toggle {
    display: none;
    justify-self: end;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    padding: 126px clamp(18px, 6vw, 86px) 64px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 11, 20, 0.94), rgba(8, 11, 20, 0.68) 56%, rgba(8, 11, 20, 0.42)),
        linear-gradient(0deg, var(--bg), transparent 42%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    transform: scale(1.04);
}

.hero-content,
.hero-panel {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 850px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(58px, 9vw, 132px);
    line-height: 0.86;
    letter-spacing: 0;
}

.lead {
    max-width: 720px;
    margin: 24px 0 0;
    color: #dbe3f0;
    font-size: clamp(18px, 2vw, 24px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #161009;
    box-shadow: 0 16px 40px rgba(245, 196, 91, 0.24);
}

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

.hero-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 720px);
    margin-top: 48px;
}

.hero-panel div,
.value-grid article,
.game-card,
.role-grid article,
.partner-card,
.gallery-shell {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.hero-panel div {
    padding: 18px;
}

.hero-panel strong {
    display: block;
    color: var(--gold);
    font-size: 36px;
    line-height: 1;
}

.hero-panel span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.section {
    padding: clamp(74px, 9vw, 122px) clamp(18px, 6vw, 86px);
}

.section-head {
    max-width: 850px;
    margin-bottom: 34px;
}

.section-head.centered {
    margin-inline: auto;
    text-align: center;
}

.section-head h2,
.partner-card h2 {
    margin: 0;
    font-size: clamp(34px, 5.2vw, 64px);
    line-height: 0.98;
    letter-spacing: 0;
}

.section-head p,
.partner-card p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 17px;
}

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

.value-grid article,
.role-grid article {
    padding: 24px;
}

.value-grid span,
.role-grid span {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.value-grid h3,
.role-grid h3,
.game-card h3 {
    margin: 10px 0 8px;
    font-size: 23px;
    line-height: 1.12;
}

.value-grid p,
.role-grid p,
.game-card p,
.game-card li {
    color: var(--muted);
}

.games {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

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

.game-card {
    position: relative;
    padding: clamp(24px, 4vw, 42px);
    overflow: hidden;
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 3px solid var(--gold);
    opacity: 0.8;
    pointer-events: none;
}

.game-card.accent::before {
    border-color: var(--cyan);
}

.game-kicker {
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.game-card.accent .game-kicker {
    color: var(--cyan);
}

.game-card ul {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.game-card li {
    position: relative;
    padding-left: 24px;
}

.game-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 196, 91, 0.13);
}

.game-card.accent li::before {
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(65, 216, 255, 0.13);
}

.gallery-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
    grid-template-areas:
        "copy view"
        "dots dots";
    gap: 22px;
    padding: clamp(16px, 3vw, 28px);
    overflow: hidden;
}

.gallery-copy {
    grid-area: copy;
    align-self: center;
}

.gallery-copy p {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-copy h3 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
}

.gallery-copy span {
    color: var(--muted);
}

.gallery-view {
    grid-area: view;
    position: relative;
    display: grid;
    place-items: center;
    min-height: 620px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.gallery-view img {
    max-height: 760px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(8, 11, 20, 0.72);
    color: var(--text);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-arrow:hover {
    background: rgba(245, 196, 91, 0.24);
    transform: translateY(-50%) scale(1.05);
}

.gallery-arrow.prev {
    left: 16px;
}

.gallery-arrow.next {
    right: 16px;
}

.gallery-dots {
    grid-area: dots;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gallery-dots button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.gallery-dots button.active {
    border-color: var(--gold);
    background: rgba(245, 196, 91, 0.16);
    color: var(--gold-2);
}

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

.partners {
    padding-top: 40px;
}

.partner-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    align-items: center;
    gap: 28px;
    padding: clamp(26px, 5vw, 54px);
}

.partner-points {
    display: grid;
    gap: 12px;
}

.partner-points span {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    color: #dce5f2;
    font-weight: 700;
}

.partner-card .btn {
    justify-self: start;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 34px clamp(18px, 6vw, 86px);
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
    color: var(--muted);
}

.footer img {
    width: 190px;
}

.footer p {
    max-width: 540px;
    margin: 0;
}

.footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer a {
    color: var(--text);
    font-weight: 800;
}

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

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

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

    .menu-toggle {
        display: block !important;
    }

    .nav,
    .top-link {
        display: none;
    }

    .topbar.open .nav {
        display: grid;
        grid-column: 1 / -1;
        justify-content: stretch;
        gap: 0;
        padding-top: 10px;
    }

    .topbar.open .nav a {
        padding: 13px 0;
        border-top: 1px solid var(--line);
    }

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

    .gallery-shell,
    .partner-card,
    .game-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "view"
            "dots";
    }

    .gallery-view {
        min-height: 520px;
    }

    .gallery-view img {
        max-height: 680px;
    }
}

@media (max-width: 720px) {
    .topbar {
        min-height: 66px;
        padding: 10px 16px;
    }

    .brand {
        width: 142px;
    }

    .menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1002;
        position: absolute;
        top: 12px;
        left: 166px;
        border-color: rgba(245, 196, 91, 0.48);
        background: rgba(245, 196, 91, 0.08);
    }

    .hero {
        min-height: 86vh;
        padding: 94px 18px 34px;
    }

    h1 {
        font-size: clamp(50px, 18vw, 76px);
    }

    .lead,
    .section-head p,
    .partner-card p {
        font-size: 15px;
    }

    .hero-actions {
        display: grid;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-panel,
    .value-grid,
    .role-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        gap: 10px;
        margin-top: 28px;
    }

    .hero-panel div {
        padding: 14px 16px;
    }

    .section {
        padding: 58px 18px;
    }

    .section-head.centered {
        text-align: left;
    }

    .gallery-shell {
        padding: 14px;
    }

    .gallery-view {
        min-height: 0;
        padding: 0 0 58px;
    }

    .gallery-view img {
        max-height: none;
        width: 100%;
    }

    .gallery-arrow {
        top: auto;
        bottom: 8px;
        transform: none;
    }

    .gallery-arrow:hover {
        transform: scale(1.04);
    }

    .gallery-arrow.prev {
        left: calc(50% - 54px);
    }

    .gallery-arrow.next {
        right: calc(50% - 54px);
    }

    .gallery-dots {
        justify-content: flex-start;
    }

    .gallery-dots button {
        min-height: 34px;
        font-size: 12px;
    }

    .partner-card .btn {
        width: 100%;
    }

    .footer {
        display: grid;
    }
}

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