:root {
    --color-bg-primary: #0B0B0D;
    --color-accent-gold: #D4AF37;
    --color-accent-emerald: #2ECC71;
    --color-text-primary: #F9FAFB;
    --color-text-muted: #A7A9AC;
    --color-card-overlay: rgba(15, 15, 20, 0.85);
    --container-width: 1200px;
    --gutter: 24px;
    --radius-lg: 16px;
    --transition-base: all 0.3s ease-out;
    --font-heading: "Playfair Display", serif;
    --font-body: "Inter", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    transition: var(--transition-base);
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-primary);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent-emerald);
    outline-offset: 4px;
}

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

.container {
    width: min(100% - (var(--gutter) * 2), var(--container-width));
    margin: 0 auto;
}

.section {
    position: relative;
    padding: 80px 0;
    isolation: isolate;
}

.section h1,
.section h2,
.section h3 {
    font-family: var(--font-heading);
    color: var(--color-accent-gold);
    margin: 0 0 16px;
}

.section h1 {
    font-size: clamp(2.75rem, 2rem + 2vw, 3.75rem);
    line-height: 1.05;
}

.section h2 {
    font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem);
    line-height: 1.1;
}

.section h3 {
    font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem);
    line-height: 1.2;
}

.section p {
    margin: 0 0 16px;
    color: var(--color-text-primary);
}

.section__heading {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.section__text {
    font-size: 1.05rem;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.btn::after {
    content: "";
    position: absolute;
    inset: -30%;
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(0.8);
}

.btn:hover::after {
    opacity: 1;
    transform: scale(1);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 11, 13, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
    z-index: 1200;
    padding: 24px;
}

.modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    max-width: 520px;
    width: 100%;
    background: rgba(15, 15, 20, 0.92);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
    padding: 40px;
    text-align: center;
}

.modal-card h2 {
    margin-bottom: 16px;
    font-size: 1.8rem;
}

.modal-card p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-banner {
    position: fixed;
    inset: auto 24px 24px 24px;
    max-width: 480px;
    background: rgba(15, 15, 20, 0.95);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    padding: 24px 28px;
    display: grid;
    gap: 16px;
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
    z-index: 1100;
}

.cookie-banner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cookie-banner__content p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-banner__actions .btn {
    flex: 1 1 auto;
}

.play-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, rgba(14, 30, 60, 0.85), rgba(11, 11, 13, 0.96) 60%);
    color: var(--color-text-primary);
}

.play-shell__header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.play-shell__header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.play-shell__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.play-shell__brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.play-shell__controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.play-shell__main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px 0 56px;
}

.play-shell__main .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.play-shell__frame {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: min(62.5%, calc(720 / 1280 * 100%));
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.play-shell__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

.play-shell__copy {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.play-shell__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.play-shell__controls .btn {
    flex: 1 1 160px;
}

.btn-primary {
    background-color: var(--color-accent-gold);
    color: var(--color-bg-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent-emerald);
    color: var(--color-bg-primary);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
}

.btn-secondary:hover {
    background-color: var(--color-accent-gold);
    color: var(--color-bg-primary);
}

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

.btn-ghost:hover {
    border-color: var(--color-accent-emerald);
    color: var(--color-accent-emerald);
}

.btn.glow {
    box-shadow: 0 0 32px rgba(212, 175, 55, 0.3), 0 16px 40px rgba(0, 0, 0, 0.45);
}

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

.grid--two > * {
    grid-column: span 12;
}

.grid--three > * {
    grid-column: span 12;
}

@media (min-width: 768px) {
    .grid--two > *:first-child {
        grid-column: span 5;
    }

    .grid--two > *:nth-child(2) {
        grid-column: span 7;
    }

    .grid--three > * {
        grid-column: span 6;
    }
}

@media (min-width: 1024px) {
    .grid--three > * {
        grid-column: span 4;
    }
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.88) 0%, rgba(11, 11, 13, 0) 100%);
    z-index: 1000;
    transition-property: background-color, transform;
}

.site-header.scrolled {
    background: rgba(11, 11, 13, 0.95);
    backdrop-filter: blur(12px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.brand__name {
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav {
    display: none;
}

.site-nav__list {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list a {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.site-nav__list a:hover {
    color: var(--color-accent-gold);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition-property: transform, opacity;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 11, 13, 0.98);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    padding: 24px;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav a {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-text-primary);
    font-weight: 500;
}

@media (min-width: 992px) {
    .site-nav {
        display: block;
    }

    .menu-toggle,
    .mobile-nav {
        display: none;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(11, 11, 13, 0.4), rgba(11, 11, 13, 0.85)), url('photos/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
    transform: scale(1.1);
    will-change: transform;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.2), transparent 50%), radial-gradient(circle at 80% 80%, rgba(46, 204, 113, 0.15), transparent 45%);
    mix-blend-mode: screen;
    opacity: 0.6;
    filter: blur(12px);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.4) 0%, rgba(11, 11, 13, 0.9) 100%);
    z-index: -1;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero__copy {
    max-width: 640px;
    text-align: center;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.hero__actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.section--about {
    background: linear-gradient(180deg, rgba(14, 30, 60, 0.2) 0%, rgba(11, 11, 13, 0.85) 100%);
}

.game-card {
    background: var(--color-card-overlay);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.game-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(212, 175, 55, 0.4);
}

.game-card__media {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: rgba(255, 255, 255, 0.02);
}

@supports not (aspect-ratio: 1 / 1) {
    .game-card__media {
        height: 220px;
    }
}

@supports not (aspect-ratio: 1 / 1) {
    @media (max-width: 767px) {
        .game-card__media {
            height: 200px;
        }
    }
}

.game-card__media img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    transform: scale(1);
    transition: var(--transition-base);
}

.game-card:hover .game-card__media img {
    transform: scale(1.05);
}

.game-card__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section--responsible {
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.95) 0%, rgba(11, 11, 13, 0.7) 100%);
}

.responsible-banner {
    background-color: rgba(15, 15, 20, 0.92);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(46, 204, 113, 0.25);
    box-shadow: 0 0 40px rgba(46, 204, 113, 0.15);
    padding: 48px;
    display: grid;
    gap: 32px;
    align-items: center;
}

.responsible-banner::after {
    content: "";
    display: block;
    height: 2px;
    width: 160px;
    background-color: var(--color-accent-emerald);
    border-radius: 999px;
}

.responsible-banner > *:last-child {
    justify-self: start;
}

.page-hero {
    padding-top: 160px;
    padding-bottom: 110px;
    text-align: center;
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.92) 0%, rgba(11, 11, 13, 0.75) 100%);
}

.page-hero__content {
    max-width: 720px;
    margin: 0 auto;
}

.page-hero__subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin: 0 auto;
}

.section--page {
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.85) 0%, rgba(11, 11, 13, 0.6) 100%);
}

.content-stack {
    display: grid;
    gap: 32px;
}

.content-panel {
    background-color: rgba(15, 15, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
    display: grid;
    gap: 18px;
}

.content-panel h2 {
    margin-bottom: 8px;
}

.content-panel p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.content-panel ul,
.content-panel ol {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 10px;
    color: var(--color-text-muted);
}

.content-panel li {
    line-height: 1.6;
}

.content-panel a {
    color: var(--color-accent-emerald);
}

.content-panel a:hover {
    color: var(--color-accent-gold);
}

.content-panel hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 16px 0;
}

.site-footer {
    background-color: var(--color-bg-primary);
    padding: 64px 0 32px;
    color: var(--color-text-muted);
}

.footer__top {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter);
    row-gap: 40px;
    margin-bottom: 48px;
}

.footer__brand,
.footer__nav,
.footer__cta {
    grid-column: span 12;
}

.footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.footer__nav a:hover {
    color: var(--color-accent-gold);
}

.footer__responsible {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 24px;
    justify-items: center;
    text-align: center;
}

.footer__responsible-text {
    max-width: 720px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer__responsible-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 0 20px 0;
}

.footer__responsible-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: auto;
    border-radius: 0;
    border: none;
    background-color: transparent;
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.1;
}

.footer__responsible-logo img {
    max-height: 36px;
    filter: brightness(0) invert(1);
    transition: var(--transition-base);
}

.footer__responsible-logo span {
    display: block;
}

.footer__responsible-logo:hover,
.footer__responsible-logo:focus-visible {
    color: var(--color-accent-emerald);
}

.footer__responsible-logo:hover img,
.footer__responsible-logo:focus-visible img {
    filter: brightness(0) invert(53%) sepia(62%) saturate(527%) hue-rotate(93deg) brightness(92%) contrast(94%);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    font-size: 0.85rem;
    text-align: center;
}

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

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

@media (min-width: 768px) {
    .hero__actions {
        flex-wrap: nowrap;
    }

    .responsible-banner {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .responsible-banner > *:first-child {
        grid-column: span 8;
    }

    .responsible-banner > *:last-child {
        grid-column: span 4;
        justify-self: end;
    }

    .footer__brand {
        grid-column: span 5;
    }

    .footer__nav {
        grid-column: span 3;
    }

    .footer__cta {
        grid-column: span 4;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 48px 0;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 96px;
        text-align: center;
    }

    .hero__copy {
        margin: 0 auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .btn {
        width: 100%;
    }

    .responsible-banner {
        padding: 32px;
    }

    .responsible-banner > *:last-child {
        justify-self: center;
    }

    .page-hero {
        padding-top: 140px;
        padding-bottom: 72px;
    }

    .content-panel {
        padding: 24px;
    }

    .game-card__media {
        aspect-ratio: 16 / 9;
    }

    .play-shell__controls {
        width: 100%;
    }

    .play-shell__controls .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .play-shell__header .container {
        flex-direction: column;
        align-items: stretch;
    }

    .play-shell__brand {
        justify-content: center;
    }

    .play-shell__controls {
        flex-direction: column;
        align-items: stretch;
    }
}

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