/* Variables */
:root {
    --font-main: "Exo 2", sans-serif;

    --color-page: #0a1118;
    --color-surface: #151d24;
    --color-surface-soft: #1f2a33;
    --color-line: rgba(255, 255, 255, 0.14);
    --color-text: #ffffff;
    --color-text-soft: rgba(255, 255, 255, 0.76);
    --color-accent-green: #00ffc2;
    --color-accent-green-deep: #00cfa0;
    --color-accent-pink: #ff004d;
    --color-accent-pink-deep: #cd003f;
    --color-overlay: rgba(6, 10, 14, 0.68);
    --color-overlay-strong: rgba(6, 10, 14, 0.88);

    --radius-soft: clamp(0.45rem, 0.4rem + 0.2vw, 0.65rem);
    --radius-mid: clamp(0.7rem, 0.62rem + 0.22vw, 0.95rem);
    --radius-pill: 999px;

    --shadow-head: 0 0.45rem 1.4rem rgba(0, 0, 0, 0.3);
    --shadow-card: 0 0.7rem 1.7rem rgba(0, 0, 0, 0.26);
    --shadow-btn: 0 0.45rem 1rem rgba(0, 0, 0, 0.25);

    --frame-width: min(100% - clamp(1rem, 0.72rem + 1.2vw, 2rem), 76rem);
    --header-height: clamp(3.6rem, 3.3rem + 0.9vw, 4.2rem);
    --logo-width: clamp(7.8rem, 7.2rem + 1.9vw, 10.1rem);
    --nav-gap: clamp(0.55rem, 0.47rem + 0.2vw, 0.75rem);
    --section-gap: clamp(2rem, 1.55rem + 1.2vw, 3.1rem);
    --slot-gap: clamp(0.85rem, 0.73rem + 0.35vw, 1.2rem);
    --game-width: clamp(10.5rem, 16vw, 14.75rem);
    --tile-ratio: 350 / 233;
    --menu-panel-top: clamp(4.2rem, 3.9rem + 0.9vw, 4.85rem);

    --space-2xs: clamp(0.25rem, 0.22rem + 0.08vw, 0.33rem);
    --space-xs: clamp(0.45rem, 0.4rem + 0.12vw, 0.58rem);
    --space-sm: clamp(0.68rem, 0.62rem + 0.18vw, 0.82rem);
    --space-md: clamp(0.95rem, 0.84rem + 0.3vw, 1.2rem);
    --space-lg: clamp(1.35rem, 1.2rem + 0.45vw, 1.7rem);
    --space-xl: clamp(1.85rem, 1.6rem + 0.8vw, 2.5rem);

    --text-xs: clamp(0.72rem, 0.69rem + 0.08vw, 0.8rem);
    --text-sm: clamp(0.83rem, 0.8rem + 0.1vw, 0.92rem);
    --text-md: clamp(0.96rem, 0.92rem + 0.12vw, 1.06rem);
    --text-lg: clamp(1.15rem, 1.02rem + 0.35vw, 1.42rem);
    --text-xl: clamp(1.75rem, 1.4rem + 1vw, 2.6rem);
}

/* Base */
@font-face {
    font-family: "Exo 2";
    src: url("../fonts/Exo2-Medium.18e7de3.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Exo 2";
    src: url("../fonts/Exo2-Bold.5a12eb2.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Exo 2";
    src: url("../fonts/Exo2-Black.163af69.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

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

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-width: 20rem;
    color: var(--color-text);
    font-family: var(--font-main);
    background:
        radial-gradient(circle at 8% -6%, rgba(0, 255, 194, 0.12), transparent 42%),
        radial-gradient(circle at 90% 12%, rgba(255, 0, 77, 0.16), transparent 38%),
        var(--color-page);
}

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

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

button {
    font: inherit;
    color: inherit;
}

svg {
    display: block;
}

p {
    margin: 0;
}

.frame {
    width: var(--frame-width);
    margin-inline: auto;
}

body.mobile-open {
    overflow: hidden;
}

/* Header */
.topline {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(15, 23, 31, 0.94);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-head);
    backdrop-filter: blur(0.7rem);
}

.topline-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: var(--header-height);
}

.brandmark {
    width: var(--logo-width);
    flex: 0 0 auto;
}

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

.menu-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--nav-gap);
    flex: 1 1 auto;
}

.menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(2.3rem, 2.15rem + 0.35vw, 2.55rem);
    padding-inline: clamp(0.8rem, 0.7rem + 0.28vw, 1.05rem);
    border: 1px solid transparent;
    border-radius: var(--radius-soft);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text);
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.menu-item:hover,
.menu-item:focus-visible {
    color: var(--color-accent-green);
    border-color: var(--color-line);
    background: rgba(255, 255, 255, 0.03);
}

.menu-item-home {
    width: clamp(2.3rem, 2.15rem + 0.35vw, 2.55rem);
    padding-inline: 0;
}

.menu-item-home svg {
    width: clamp(1.05rem, 0.98rem + 0.2vw, 1.2rem);
    height: clamp(1.05rem, 0.98rem + 0.2vw, 1.2rem);
    fill: currentColor;
}

.topline-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    gap: var(--space-xs);
    flex: 0 0 auto;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(2.3rem, 2.15rem + 0.35vw, 2.55rem);
    padding-inline: clamp(1rem, 0.9rem + 0.35vw, 1.3rem);
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    box-shadow: var(--shadow-btn);
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: transform 180ms ease, filter 180ms ease;
}

.link-btn:hover,
.link-btn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.link-btn-clear {
    border-color: rgba(0, 255, 194, 0.35);
    background: rgba(0, 255, 194, 0.08);
    color: var(--color-accent-green);
}

.link-btn-solid {
    background: linear-gradient(180deg, var(--color-accent-pink) 0%, var(--color-accent-pink-deep) 100%);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: clamp(2.2rem, 2.1rem + 0.2vw, 2.35rem);
    height: clamp(2.2rem, 2.1rem + 0.2vw, 2.35rem);
    border: 1px solid var(--color-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.menu-icon {
    width: clamp(1.05rem, 0.98rem + 0.2vw, 1.2rem);
    height: clamp(1.05rem, 0.98rem + 0.2vw, 1.2rem);
    fill: currentColor;
}

.menu-icon-close {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-close {
    display: block;
}

/* Hero */
.hero-band {
    position: relative;
    isolation: isolate;
    overflow: clip;
    min-height: clamp(19rem, 17rem + 6vw, 23rem);
    display: flex;
    align-items: stretch;
}

.hero-band::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: clamp(0.52rem, 0.42rem + 0.28vw, 0.98rem);
    transform: translateX(-50%);
    background: url("../images/banner-after-element.svg") center bottom / 100% 100% no-repeat;
    z-index: 3;
    pointer-events: none;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-backdrop > figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

.hero-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(92deg, var(--color-overlay-strong) 0%, var(--color-overlay) 38%, rgba(6, 10, 14, 0) 72%),
        linear-gradient(180deg, rgba(6, 10, 14, 0.42) 0%, rgba(6, 10, 14, 0.66) 100%);
    z-index: 1;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-grid {
    width: var(--frame-width);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding-block: var(--section-gap);
}

.hero-copy {
    width: min(100%, 36rem);
    display: grid;
    gap: var(--space-lg);
}

.hero-eyebrow {
    color: var(--color-accent-green);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.hero-line {
    font-size: var(--text-xl);
    font-weight: 900;
    line-height: 1.1;
    text-wrap: balance;
}

.hero-link {
    width: fit-content;
}

/* Slots */
.slots-zone {
    padding-block: var(--section-gap);
}

.table-zone {
    padding-top: 0;
}

.slots-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.slots-label {
    font-size: var(--text-lg);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.slots-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(2.1rem, 2rem + 0.25vw, 2.35rem);
    padding-inline: clamp(0.9rem, 0.82rem + 0.25vw, 1.1rem);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 255, 194, 0.4);
    background: rgba(0, 255, 194, 0.07);
    color: var(--color-accent-green);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--slot-gap);
}

.slot-tile {
    position: relative;
    aspect-ratio: var(--tile-ratio);
    border-radius: var(--radius-mid);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 200ms ease;
}

.slot-tile > figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

.slot-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 14, 20, 0.25) 0%, rgba(8, 14, 20, 0.82) 100%);
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}

.slot-tile:hover,
.slot-tile:focus-visible {
    transform: translateY(-2px);
}

.slot-tile:hover::before,
.slot-tile:focus-visible::before {
    opacity: 1;
}

.slot-tile img {
    width: 100%;
    height: 100%;
    aspect-ratio: var(--tile-ratio);
    object-fit: cover;
}

.tile-action {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    top: 50%;
    min-height: clamp(2.15rem, 2.05rem + 0.28vw, 2.4rem);
    padding-inline: clamp(0.95rem, 0.82rem + 0.3vw, 1.2rem);
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, var(--color-accent-green) 0%, var(--color-accent-green-deep) 100%);
    color: #04110d;
    font-size: var(--text-sm);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transform: translate(-50%, -34%);
    opacity: 0;
    transition: opacity 200ms ease, transform 200ms ease;
    pointer-events: none;
}

.slot-tile:hover .tile-action,
.slot-tile:focus-visible .tile-action {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Footer */
.site-end {
    padding-block: var(--section-gap);
    background: linear-gradient(180deg, rgba(12, 18, 24, 0.82) 0%, rgba(10, 14, 19, 0.98) 100%);
    border-top: 1px solid var(--color-line);
}

.foot-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-xl);
}

.foot-links a {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pay-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-mid);
    background: var(--color-surface-soft);
}

.pay-row img {
    width: auto;
    height: clamp(1.35rem, 1.27rem + 0.2vw, 1.55rem);
    object-fit: contain;
}

.foot-note {
    margin-top: var(--space-xl);
    text-align: center;
    color: var(--color-text-soft);
    font-size: var(--text-sm);
}

/* Mobile Menu */
.mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: grid;
    align-items: start;
    padding-top: var(--menu-panel-top);
    background: rgba(6, 10, 14, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.mobile-menu-panel.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-box {
    width: var(--frame-width);
    margin-inline: auto;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-mid);
    background: linear-gradient(180deg, #18222b 0%, #121a22 100%);
    box-shadow: var(--shadow-card);
}

.mobile-nav {
    display: grid;
    gap: var(--space-xs);
    padding: var(--space-md);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: clamp(2.65rem, 2.55rem + 0.25vw, 2.9rem);
    padding-inline: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.02);
    font-size: var(--text-md);
    font-weight: 700;
}

.mobile-nav-link svg {
    width: clamp(1rem, 0.94rem + 0.16vw, 1.15rem);
    height: clamp(1rem, 0.94rem + 0.16vw, 1.15rem);
    fill: currentColor;
}

.mobile-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(2.65rem, 2.55rem + 0.25vw, 2.9rem);
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, var(--color-accent-green) 0%, var(--color-accent-green-deep) 100%);
    color: #001c15;
    font-size: var(--text-sm);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Media */
@media (max-width: 62rem) {
    .menu-main {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .cards-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        padding-bottom: var(--space-2xs);
    }

    .cards-row::-webkit-scrollbar {
        height: 0.42rem;
    }

    .cards-row::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.24);
        border-radius: var(--radius-pill);
    }

    .slot-tile {
        flex: 0 0 var(--game-width);
        scroll-snap-align: start;
    }
}

@media (max-width: 52rem) {
    .topline-actions .link-btn-clear {
        display: none;
    }
}

@media (max-width: 36rem) {
    .foot-links {
        flex-direction: column;
    }
}

/* Merged pages.css */

:root {
    --pages-max-width: min(100% - clamp(1rem, 0.35rem + 2.4vw, 2.4rem), 74rem);
    --pages-surface: rgba(17, 25, 34, 0.86);
    --pages-surface-strong: rgba(11, 17, 24, 0.94);
    --pages-surface-soft: rgba(0, 255, 194, 0.08);
    --pages-border: rgba(0, 255, 194, 0.22);
    --pages-border-soft: rgba(255, 255, 255, 0.14);
    --pages-text: rgba(255, 255, 255, 0.9);
    --pages-text-soft: rgba(255, 255, 255, 0.72);
    --pages-title: #ffffff;
    --pages-accent: var(--color-accent-green, #00ffc2);
    --pages-accent-strong: var(--color-accent-pink, #ff004d);
    --pages-shadow: 0 1.1rem 2.4rem rgba(0, 0, 0, 0.34);
}

.page-content {
    width: var(--pages-max-width);
    margin: 0 auto;
    padding: clamp(1.2rem, 2.3vw, 2rem) 0 clamp(3rem, 6vw, 4.8rem);
}

.page-content > section {
    margin-bottom: clamp(1.25rem, 2.4vw, 2.15rem);
}

.page-content > section:last-of-type {
    margin-bottom: 0;
}

.page-content > section::after {
    content: "";
    display: block;
    clear: both;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    margin: 0 0 0.72rem;
    color: var(--pages-title);
    letter-spacing: -0.02em;
}

.page-content h1 {
    font-size: clamp(2rem, 1.65rem + 1.25vw, 2.95rem);
    line-height: 1.06;
}

.page-content h2 {
    font-size: clamp(1.42rem, 1.2rem + 0.92vw, 2.05rem);
    line-height: 1.18;
}

.page-content h3 {
    font-size: clamp(1.05rem, 0.96rem + 0.45vw, 1.4rem);
    line-height: 1.3;
}

.page-content p,
.page-content li,
.page-content td,
.page-content th {
    margin: 0 0 0.9rem;
    color: var(--pages-text);
    font-size: clamp(0.98rem, 0.94rem + 0.15vw, 1.05rem);
    line-height: 1.72;
}

.page-content p:last-child,
.page-content li p:last-child,
.page-content td p:last-child,
.page-content th p:last-child {
    margin-bottom: 0;
}

.page-content strong {
    color: var(--pages-title);
}

.page-content a {
    color: var(--pages-accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 255, 194, 0.42);
    text-underline-offset: 0.18em;
}

.page-content a:hover,
.page-content a:focus-visible {
    text-decoration-color: rgba(0, 255, 194, 0.85);
}

.page-content ul,
.page-content ol {
    margin: 0 0 1.02rem;
}

.page-content ul {
    list-style: none;
    padding-left: 0;
}

.page-content ul li {
    position: relative;
    margin-bottom: 0.55rem;
    padding-left: 1.3rem;
}

.page-content ul li::before {
    content: "";
    position: absolute;
    top: 0.78em;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pages-accent), var(--pages-accent-strong));
    transform: translateY(-50%);
}

.page-content ol {
    padding-left: 1.35rem;
}

.page-content ol li {
    margin-bottom: 0.5rem;
}

.page-content .page-meta-title,
.page-content .page-meta-description {
    margin-bottom: 0.5rem;
    color: var(--pages-text-soft);
    font-size: clamp(0.8rem, 0.76rem + 0.14vw, 0.9rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-content .page-meta-description {
    max-width: 62rem;
}

.page-hero {
    margin-bottom: clamp(1.4rem, 2.8vw, 2.3rem);
}

.page-hero-copy,
.article-card,
.article-highlight,
.article-media,
.spoiler,
figure.article-table-wrap,
.article-toc {
    border: 1px solid var(--pages-border);
    border-radius: 1.15rem;
    box-shadow: var(--pages-shadow);
}

.page-hero-copy {
    padding: clamp(1rem, 2vw, 1.6rem);
    background:
        radial-gradient(circle at 0% 0%, rgba(0, 255, 194, 0.09), transparent 42%),
        linear-gradient(145deg, rgba(27, 37, 50, 0.98), rgba(17, 25, 35, 0.97));
}

.page-hero-copy .article-toc {
    margin-top: 1rem;
}

.article-card,
.article-highlight {
    margin: 1rem 0 1.2rem;
    padding: 0.95rem 1rem;
}

.article-card {
    background: rgba(0, 255, 194, 0.05);
}

.article-highlight {
    background: linear-gradient(120deg, rgba(0, 255, 194, 0.12), rgba(255, 0, 77, 0.08));
}

.article-highlight p {
    margin: 0;
}

.article-toc {
    margin: 0;
    padding: 0.85rem 1rem;
    background: rgba(8, 14, 20, 0.86);
}

.article-toc summary {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    list-style: none;
    cursor: pointer;
    color: var(--pages-title);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-toc summary::-webkit-details-marker {
    display: none;
}

.article-toc summary::after {
    content: "+";
    color: var(--pages-accent);
    font-size: 1.15rem;
    line-height: 1;
}

.article-toc[open] summary::after {
    content: "−";
}

.article-toc nav {
    margin-top: 0.75rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--pages-border-soft);
}

.article-toc ol {
    margin: 0;
    padding-left: 1.2rem;
}

.article-toc li {
    margin-bottom: 0.4rem;
}

.article-toc li:last-child {
    margin-bottom: 0;
}

.article-toc a {
    margin: 8px 0;
    display: block;
    color: var(--pages-text);
    text-decoration-color: rgba(0, 255, 194, 0.25);
}

figure.article-table-wrap {
    width: 100%;
    margin: 1.05rem 0 1.25rem;
    overflow-x: auto;
    background: rgba(10, 16, 23, 0.88);
    -webkit-overflow-scrolling: touch;
}

figure.article-table-wrap table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
}

figure.article-table-wrap th,
figure.article-table-wrap td {
    padding: 0.8rem 0.9rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

figure.article-table-wrap th {
    background: rgba(0, 255, 194, 0.1);
    color: var(--pages-title);
    white-space: nowrap;
    font-weight: 800;
}

figure.article-table-wrap tbody tr:last-child td {
    border-bottom: 0;
}

figure.article-table-wrap tbody tr:hover td {
    background: rgba(0, 255, 194, 0.04);
}

.article-media {
    margin: 1rem auto 1.25rem;
    padding: 0.45rem;
    background: rgba(8, 14, 20, 0.9);
    max-width: 100%;
    clear: both;
}

.article-media img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 0.8rem;
    margin: 0 auto;
}

.article-media.aside {
    float: right;
    width: min(36%, 320px);
    min-width: 220px;
    margin: 0.2rem 0 1rem 1.05rem;
    clear: none;
}

.article-media.aside img {
    width: auto;
}

.faq-group {
    display: grid;
    gap: 0.7rem;
}

.spoiler {
    overflow: hidden;
    background: var(--pages-surface-strong);
}

p.spoiler-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin: 0;
    padding: 0.92rem 1.02rem;
    color: var(--pages-title);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

p.spoiler-toggle::after {
    content: "+";
    color: var(--pages-accent);
    font-size: 1.25rem;
    line-height: 1;
}

.spoiler.active p.spoiler-toggle::after {
    content: "−";
}

p.spoiler-toggle:focus-visible {
    outline: 2px solid rgba(0, 255, 194, 0.75);
    outline-offset: -2px;
}

p.spoiler-content,
.spoiler-content {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    padding: 0 1.02rem;
    color: var(--pages-text);
    background: rgba(255, 255, 255, 0.98);
    transition: max-height 220ms ease, padding 220ms ease;
}

.spoiler.active p.spoiler-content,
.spoiler.active .spoiler-content {
    padding: 0 1.02rem 0.95rem;
}

.spoiler.active p.spoiler-content,
.spoiler.active .spoiler-content,
.spoiler.active p.spoiler-content p,
.spoiler.active .spoiler-content p {
    color: #1b2430;
}

.spoiler-content > *:last-child {
    margin-bottom: 0;
}

body.page-minimal .page-content {
    width: min(100% - clamp(1rem, 0.5rem + 2.2vw, 2rem), 64rem);
    padding-top: clamp(1rem, 1rem + 0.3vw, 1.35rem);
}

body.page-minimal .page-content > section {
    margin-bottom: clamp(0.85rem, 1.8vw, 1.2rem);
}

body.page-minimal .page-content .page-hero,
body.page-minimal .page-content .page-hero-copy,
body.page-minimal .page-content .article-card,
body.page-minimal .page-content .article-highlight,
body.page-minimal .page-content .article-media,
body.page-minimal .page-content .spoiler,
body.page-minimal .page-content .article-toc,
body.page-minimal .page-content figure.article-table-wrap {
    border-radius: 0.75rem;
    box-shadow: none;
}

body.page-minimal .page-content .page-hero-copy,
body.page-minimal .page-content .article-card,
body.page-minimal .page-content .article-highlight,
body.page-minimal .page-content .article-media,
body.page-minimal .page-content .article-toc,
body.page-minimal .page-content figure.article-table-wrap,
body.page-minimal .page-content .spoiler {
    background: rgba(8, 14, 20, 0.68);
}

body.page-minimal .page-content .article-highlight {
    background: rgba(0, 255, 194, 0.08);
}

@media (max-width: 920px) {
    .page-content {
        width: min(100% - 1rem, 100%);
        padding-top: 1rem;
    }

    .page-hero-copy,
    .article-card,
    .article-highlight,
    .article-media,
    .article-toc,
    figure.article-table-wrap,
    .spoiler {
        border-radius: 0.95rem;
    }

    .article-media {
        float: none;
        width: auto;
        min-width: 0;
        margin: 0.9rem 0 1rem;
    }

    .article-media.aside {
        float: none;
        width: auto;
        min-width: 0;
        margin: 0.9rem 0 1rem;
    }

    figure.article-table-wrap table {
        min-width: 29.5rem;
    }

    body.page-minimal .page-content {
        width: min(100% - 1rem, 100%);
    }
}
