*:where( :not(html,
        iframe,
        canvas,
        img,
        svg,
        video,
        audio,
        #theatrejs-studio-root):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}

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

:root {
    font-family: sans-serif;
    --color-white: #f9f9f9;
    --color-primary: #ffc900;
    --color-secondary: #8f2dff;
    --dark: #0b0b0b;
    --less-dark: #616161;
    --divider: #9a9aa5;
    --card-bg: #e5e5ef;
    --bg-img: url("/img/iframe-bg.jpg");
    --shadow-light: #111e2d2d;
    --overlay: #000000b7;
}

body {
    color: var(--dark);
    background-color: var(--color-white);
    line-height: 1.65rem;
}

img {
    max-inline-size: 100%;
    max-block-size: 100%;
}

ul,
ol,
menu {
    list-style: none;
}

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

table {
    border-collapse: collapse;
}

a,
button {
    cursor: revert;
}

h1 {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    text-wrap: balance;
}

h2 {
    font-weight: 700;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 24px;
    line-height: 1;

    @media (max-width: 650px) {
        margin-bottom: 16px;
    }
}

h3 {
    font-weight: 700;
    font-size: clamp(1.125rem, 5vw, 1.5rem);
    margin-bottom: 16px;
    line-height: 1;

    @media (max-width: 650px) {
        margin-bottom: 8px;
    }
}

p {
    margin-bottom: 12px;
}

.p-fine {
    width: 100%;
    font-size: 12px;
    text-align: center;
    text-wrap: pretty;
    margin: 0;
    line-height: 1.5;
    opacity: .7;
}

strong {
    font-weight: 700;
}

/* Button base — shared by both <a> and <button> pill buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 50px;
    padding: 12px 24px;
    font-weight: 700;
    text-wrap: nowrap;
    background-color: var(--color-primary);
    color: var(--dark);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0px 8px 8px var(--shadow-light);
    transition: transform 0.15s ease;
}

/* Secondary modifier — only the differences from the base */
.btn--secondary {
    color: var(--color-white);
    background-color: var(--color-secondary);
}

@media (min-width: 650px) {
    .btn:hover {
        transform: translateY(-2px);
    }
}

.section-break {
    height: 120px;
    width: 100%;

    @media (max-width: 650px) {
        height: 80px;
    }
}

.margin-block-large {
    height: 80px;
    width: 100%;

    @media (max-width: 650px) {
        height: 40px;
    }
}

.margin-block-small {
    height: 40px;
    width: 100%;

    @media (max-width: 650px) {
        height: 24px;
    }
}

.margin-block-article {
    height: 24px;
    width: 100%;

    @media (max-width: 650px) {
        height: 16px;
    }
}


.section {
    margin: auto;
    display: block;
    max-width: 1200px;
    padding-inline: clamp(8px, 4.5vw, 75px);
}

body.nav-open {
    overflow: hidden;
}

.header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;

    @media (max-width: 650px) {
        height: 80px;
    }
}

.header-layout__logo {
    width: auto;
    height: 57px;

    @media (max-width: 650px) {
        height: 50px;
    }
}

.header-layout__site-nav {
    display: flex;
    align-items: center;
    gap: 24px;

    >.thumbnail-wrap {
        display: none;
        max-width: 200px;
        height: auto;
        flex-direction: column;
        gap: 8px;
        align-self: center;
        margin-top: 24px;
    }

    @media (max-width: 650px) {
        position: fixed;
        z-index: 100;
        top: 0;
        left: 0;
        right: 0;
        height: 100dvh;
        display: none;
        flex-direction: column;
        justify-content: center;
        gap: 16px;
        padding: 16px;
        background-image: url(/img/menu-bg.webp);
        background-position: center;
        background-size: cover;

        ul {
            flex-direction: column;
            color: var(--color-white);
            text-align: center;
        }

        &.is-open {
            display: flex;
        }

        .thumbnail-wrap {
            display: flex;
        }

        img {
            border-radius: 8px;
            width: 100%;
            height: 100%;
            object-fit: cover;
            box-shadow: 0px 8px 16px #050f2b33;
        }

        button {
            box-shadow: 0px 8px 16px #050f2b33;
        }
    }
}

.thumbnail-wrap::after {
    content: "PLAY REAL";
    width: 100%;
    text-align: center;
    color: var(--color-white);
    font-size: 20px;
    font-weight: 700;
}

.site-nav__nav-list {
    display: flex;
    gap: 24px;

    li {
        display: inline;
    }
}

.burger {
    display: none;
    width: 46px;
    min-width: 0px;
    height: 46px;
    position: relative;
    z-index: 150;
    border: 0;
    cursor: pointer;
    border-radius: 7px;
    background-color: var(--color-primary);
    box-shadow: 0px 8px 8px var(--shadow-light);

    & span,
    &::before,
    &::after {
        content: "";
        position: absolute;
        left: 11px;
        right: 11px;
        height: 2px;
        border-radius: 2px;
        background: var(--dark);
        transition: transform 0.2s, top 0.2s, opacity 0.2s;
    }

    & span {
        top: 22px;
    }

    &::before {
        top: 15px;
    }

    &::after {
        top: 29px;
    }

    &.is-open {
        & span {
            opacity: 0;
        }

        &::before {
            top: 22px;
            transform: rotate(45deg);
        }

        &::after {
            top: 22px;
            transform: rotate(-45deg);
        }
    }
}

@media (max-width: 650px) {
    .burger {
        display: inline-flex;
    }
}

.hero-2column {
    display: flex;
    gap: 24px;

    & img {
        box-shadow: 0px 8px 8px var(--shadow-light);
    }

    >div {
        width: 50%;
        height: auto;
        flex-shrink: 1;
        align-content: center;
    }

    p {
        margin-block: 40px;
        text-wrap: pretty;
    }
}

.hero-btn-wrap {
    display: flex;
    width: 100%;
    gap: 16px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    object-fit: cover;
}

@media (max-width: 650px) {
    .hero-2column {
        flex-direction: column;
        gap: 40px;

        & div {
            width: auto;
        }

        & p {
            margin-block: 24px;
        }
    }
}

.game-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
}

.game-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.game-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center;
}

.game-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.play-button {
    position: relative;
    z-index: 1;
}

.game-stage.is-playing .game-overlay {
    display: none;
}

@media (max-width: 600px) {
    .game-stage {
        aspect-ratio: 9 / 16;
        max-width: 100%;
    }
}

.ul-default {
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 16px;
    margin-bottom: 12px;
}

.ol-default {
    list-style-type: upper-alpha;
    list-style-position: inside;
    padding-left: 16px;
    margin-bottom: 12px;
}

.btn-break {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80px;
}


.details {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 48px;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0px 8px 8px var(--shadow-light);

    .details__title {
        margin: 0 0 28px;
        color: var(--dark);
        font-size: 1.9rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        text-transform: uppercase;
    }

    .details__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 64px;
    }

    .details__list {
        margin: 0;
    }

    .details__row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 16px;
        padding: 16px 0;
        border-bottom: 1px solid var(--divider);

        dt {
            color: var(--less-dark);
            font-size: 1rem;
        }

        dd {
            margin: 0;
            color: var(--dark);
            font-weight: 700;
            font-size: 1rem;
        }
    }

    @media (max-width: 700px) {
        padding: 28px 22px;

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

.article-figure {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    & img {
        max-width: 900px;
        width: 100%;
        height: auto;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0px 8px 8px var(--shadow-light);
    }

    & figcaption {
        font-size: 12px;
    }
}

.booster-list {
    display: flex;
    flex-direction: column;
    gap: 24px;

    >li {
        background: linear-gradient(to right, #FFDC4B, transparent);
        border: 2px #dfb300 solid;
        border-radius: 20px;
        padding: 24px;
        display: flex;
        align-items: center;
        gap: 24px;
        box-shadow: 0px 8px 8px var(--shadow-light);
    }

    >img {
        max-width: 150px;
        height: auto;
    }
}

@media (max-width: 500px) {
    .booster-list li {
        flex-direction: column;

        img {
            width: 120px;
            height: 120px;
        }
    }
}

.author-wrap {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 24px;

    & p {
        font-size: 12px;
        line-height: 1.5;
        opacity: .7;
    }
}

.author-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 128px;
    height: 128px;
    border-radius: 100px;
    overflow: hidden;
    flex-shrink: 0;

    & img {
        width: 128px;
        height: 128px;
        aspect-ratio: 1;
        object-fit: cover;
    }
}

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

@media (max-width: 900px) {
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.thumbnail-grid-item {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    padding: 0;
    box-shadow: 0px 8px 8px var(--shadow-light);
}

.thumbnail-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.thumbnail-grid-item:hover img,
.thumbnail-grid-item:focus-visible img {
    transform: scale(1.05);
}

.thumbnail-grid-item:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 3px;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.25s;
    z-index: 1000;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}

.lb-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--dark);
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.lb-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.lb-btn:active {
    transform: scale(0.92);
}

.lb-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lb-btn svg {
    width: 24px;
    height: 24px;
}

.lb-close {
    top: 20px;
    right: 20px;
}

.lb-prev {
    left: clamp(12px, 3vw, 32px);
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: clamp(12px, 3vw, 32px);
    top: 50%;
    transform: translateY(-50%);
}

.lb-prev:active,
.lb-next:active {
    transform: translateY(-50%) scale(0.92);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;

    > .values-grid__item {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 32px;
        border-radius: 16px;
        overflow: hidden;
        background-image: url(/img/values-card-bg.webp);
        background-position: center;
        background-size: cover;
        text-align: center;
        color: var(--color-white);
        box-shadow: 0px 8px 8px var(--shadow-light);
    }

    h3 {
        margin-bottom: 0;
        flex-grow: 1;
        font-size: clamp(1.5rem, 5vw, 2rem);
        text-wrap: pretty;
    }

    p{
        margin-bottom: 0;
        text-wrap: pretty;
    }
}

@media (max-width: 720px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__2column {
    display: flex;
    gap: 24px;

    >div {
        display: flex;
        flex-direction: column;
        width: 50%;
        align-items: center;
        justify-content: center;
    }

    div p {
        font-size: 12px;
        text-align: center;
        line-height: 1.5;
        opacity: .7;
    }

    @media (max-width: 700px) {
        flex-direction: column;

        >div {
            width: 100%;
        }
    }
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}