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

    --color-page: #ffffff;
    --color-ink: #1f2f64;
    --color-ink-soft: #6d77a0;
    --color-header-bg: rgba(255, 255, 255, 0.96);
    --color-header-line: #27398a;
    --color-blue: #1a3271;
    --color-blue-strong: #2527a8;
    --color-blue-mid: #3242a5;
    --color-blue-soft: #34458f;
    --color-blue-pill: rgba(255, 255, 255, 0.08);
    --color-blue-line: rgba(255, 255, 255, 0.1);
    --color-white: #ffffff;
    --color-green: #39cc59;
    --color-red: #ff5050;
    --color-red-strong: #ff5c5c;
    --color-banner: linear-gradient(90deg, #252198 0%, #2d2bb8 100%);
    --color-banner-pane: #252198;
    --color-banner-overlay: linear-gradient(90deg, rgba(37, 33, 152, 1) 0%, rgba(37, 33, 152, 0.94) 28%, rgba(37, 33, 152, 0.1) 54%, rgba(37, 33, 152, 0) 68%);
    --color-banner-accent: #ff5c5c;
    --color-black: #000000;

    --shadow-header: 0 0.2rem 0 rgba(39, 57, 138, 1);
    --shadow-banner: 0 1rem 2rem rgba(36, 33, 112, 0.18);
    --shadow-card: 0 0.25rem 0.8rem rgba(25, 41, 71, 0.08);

    --radius-xs: clamp(0.2rem, 0.18rem + 0.08vw, 0.3rem);
    --radius-sm: clamp(0.45rem, 0.4rem + 0.12vw, 0.55rem);
    --radius-md: clamp(0.8rem, 0.75rem + 0.22vw, 1rem);
    --radius-pill: 999px;

    --wrap-width: min(100% - clamp(1rem, 0.4rem + 2.6vw, 2.5rem), 110rem);
    --header-logo-width: clamp(7.5rem, 6.6rem + 2vw, 9rem);
    --header-height: clamp(3.25rem, 3.1rem + 0.45vw, 3.65rem);
    --hero-height: clamp(15rem, 13rem + 6vw, 18rem);
    --card-ratio: 300 / 191;
    --icon-size: clamp(0.95rem, 0.9rem + 0.12vw, 1.05rem);

    --space-3xs: clamp(0.22rem, 0.2rem + 0.05vw, 0.28rem);
    --space-2xs: clamp(0.35rem, 0.32rem + 0.08vw, 0.42rem);
    --space-xs: clamp(0.55rem, 0.5rem + 0.12vw, 0.65rem);
    --space-sm: clamp(0.8rem, 0.72rem + 0.2vw, 0.95rem);
    --space-md: clamp(1rem, 0.92rem + 0.25vw, 1.2rem);
    --space-lg: clamp(1.4rem, 1.2rem + 0.5vw, 1.8rem);
    --space-xl: clamp(2rem, 1.7rem + 0.8vw, 2.6rem);
    --space-2xl: clamp(2.8rem, 2.3rem + 1.2vw, 3.8rem);

    --text-2xs: clamp(0.66rem, 0.64rem + 0.06vw, 0.74rem);
    --text-xs: clamp(0.76rem, 0.74rem + 0.08vw, 0.84rem);
    --text-sm: clamp(0.9rem, 0.87rem + 0.1vw, 0.98rem);
    --text-md: clamp(1rem, 0.96rem + 0.14vw, 1.08rem);
    --text-lg: clamp(1.2rem, 1.06rem + 0.42vw, 1.5rem);
    --text-xl: clamp(2rem, 1.56rem + 1.2vw, 2.9rem);

    --line-main: 1.45;
    --line-tight: 1.08;
}

/* Base */
@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-VariableFont_wdth,wght.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

html {
    color-scheme: light;
}

body {
    margin: 0;
    min-width: 20rem;
    font-family: var(--font-main);
    color: var(--color-ink);
    background: var(--color-page);
}

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

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

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

svg {
    display: block;
}

h1,
h2,
h3,
p,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

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

.is-menu-open {
    overflow: hidden;
}

/* Header */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--color-header-bg);
    box-shadow: var(--shadow-header);
    backdrop-filter: blur(0.8rem);
}

.topbar-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: var(--header-height);
    gap: var(--space-sm);
}

.topbar-side {
    min-width: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.header-nav a {
    color: var(--color-ink);
    font-size: var(--text-xs);
    font-weight: 700;
    white-space: nowrap;
}

.brand-link {
    width: var(--header-logo-width);
    justify-self: center;
}

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

.topbar-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-xs);
}

.chip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(2rem, 1.92rem + 0.22vw, 2.2rem);
    padding-inline: clamp(1rem, 0.92rem + 0.28vw, 1.35rem);
    border-radius: var(--radius-pill);
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.chip-link.green {
    background: var(--color-green);
}

.chip-link.red {
    background: var(--color-red);
}

.tools-note {
    color: #737373;
    font-size: var(--text-2xs);
    font-weight: 500;
}

.social-inline {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.social-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.35rem, 1.3rem + 0.14vw, 1.48rem);
    height: clamp(1.35rem, 1.3rem + 0.14vw, 1.48rem);
    color: #55585f;
}

.social-inline-link svg {
    width: var(--icon-size);
    height: var(--icon-size);
    fill: currentColor;
}

.menu-switch {
    display: none;
    align-items: center;
    justify-content: center;
    width: clamp(2.1rem, 2rem + 0.2vw, 2.3rem);
    height: clamp(2.1rem, 2rem + 0.2vw, 2.3rem);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-ink);
    cursor: pointer;
}

.menu-mark {
    width: var(--icon-size);
    height: var(--icon-size);
    fill: currentColor;
}

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

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

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

.menu-drawer {
    padding-bottom: var(--space-sm);
}

.menu-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    padding: var(--space-sm);
    background: var(--color-white);
    border-top: 1px solid rgba(25, 41, 71, 0.08);
}

.menu-column a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    min-height: clamp(2.75rem, 2.66rem + 0.22vw, 2.9rem);
    color: var(--color-ink);
    font-size: var(--text-sm);
    font-weight: 700;
}

.menu-column a svg {
    width: var(--icon-size);
    height: var(--icon-size);
    stroke: currentColor;
    fill: none;
}

.drawer-link {
    margin-top: var(--space-xs);
}

/* Hero */
.promo {
    padding-top: var(--space-sm);
}

.promo-banner {
    display: grid;
    grid-template-columns: minmax(0, 26%) minmax(0, 74%);
    min-height: var(--hero-height);
    overflow: hidden;
    background: var(--color-banner);
    box-shadow: var(--shadow-banner);
}

.promo-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--color-banner-pane);
    color: var(--color-white);
}

.promo-copy h1,
.promo-copy .promo-title {
    max-width: 9ch;
    font-size: var(--text-xl);
    font-weight: 900;
    line-height: var(--line-tight);
}

.banner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 15rem);
    min-height: clamp(2.6rem, 2.45rem + 0.35vw, 2.95rem);
    border-radius: var(--radius-pill);
    background: var(--color-banner-accent);
    color: var(--color-white);
    font-size: var(--text-md);
    font-weight: 800;
    text-transform: uppercase;
}

.promo-art {
    position: relative;
    min-width: 0;
}

.promo-art figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

.promo-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-banner-overlay);
}

.promo-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slots */
.games {
    padding-block: var(--space-lg) var(--space-xl);
}

.games .wrap {
    max-width: 75rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg) var(--space-md);
}

.game-card {
    display: grid;
    gap: var(--space-xs);
    justify-items: center;
    color: var(--color-ink);
}

.game-cover {
    position: relative;
    width: 100%;
    aspect-ratio: var(--card-ratio);
    overflow: hidden;
    border-radius: var(--radius-xs);
    box-shadow: var(--shadow-card);
}

.game-cover figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

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

.game-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: clamp(1.35rem, 1.28rem + 0.16vw, 1.5rem);
    padding-inline: var(--space-xs);
    background: #ff8a22;
    color: var(--color-white);
    font-size: var(--text-2xs);
    font-weight: 700;
}

.game-card p {
    font-size: clamp(0.95rem, 0.9rem + 0.12vw, 1.05rem);
    font-weight: 400;
    text-align: center;
}

/* Footer */
.site-end {
    background: var(--color-blue);
    color: var(--color-white);
}

.footer-shell {
    display: grid;
    gap: 0;
}

.pay-row,
.ticker-row,
.social-row,
.store-row,
.footer-links,
.provider-row,
.footer-bottom {
    border-top: 1px solid var(--color-blue-line);
}

.pay-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding-block: var(--space-md);
}

.pay-row img {
    height: clamp(1.35rem, 1.3rem + 0.16vw, 1.5rem);
    width: auto;
    object-fit: contain;
}

.ticker-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    padding-block: var(--space-sm);
}

.ticker-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    min-height: clamp(2rem, 1.92rem + 0.22vw, 2.2rem);
    padding-inline: var(--space-sm);
    border-radius: var(--radius-pill);
    background: var(--color-blue-pill);
}

.ticker-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.2rem, 1.15rem + 0.12vw, 1.3rem);
    height: clamp(1.2rem, 1.15rem + 0.12vw, 1.3rem);
    border-radius: 50%;
    color: var(--color-white);
    font-size: var(--text-2xs);
    font-weight: 800;
}

.ticker-mark.btc {
    background: #f7931a;
}

.ticker-mark.eth {
    background: #627eea;
}

.ticker-mark.bnb {
    background: #f3ba2f;
}

.ticker-mark.ltc {
    background: #345d9d;
}

.ticker-mark.trx {
    background: #ef4444;
}

.ticker-mark.doge {
    background: #c2a633;
}

.ticker-copy {
    display: grid;
    line-height: 1;
}

.ticker-copy strong {
    font-size: var(--text-2xs);
    font-weight: 700;
}

.ticker-copy small {
    font-size: var(--text-sm);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.social-row {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding-block: var(--space-lg);
}

.social-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(2rem, 1.92rem + 0.22vw, 2.2rem);
    height: clamp(2rem, 1.92rem + 0.22vw, 2.2rem);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    color: var(--color-white);
}

.social-badge svg {
    width: var(--icon-size);
    height: var(--icon-size);
    fill: currentColor;
}

.store-row {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding-block: var(--space-lg);
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: clamp(2.65rem, 2.55rem + 0.24vw, 2.85rem);
    padding-inline: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    background: var(--color-black);
    color: var(--color-white);
}

.store-icon svg {
    width: clamp(1.2rem, 1.16rem + 0.1vw, 1.3rem);
    height: clamp(1.2rem, 1.16rem + 0.1vw, 1.3rem);
    fill: currentColor;
}

.store-text {
    display: grid;
    gap: var(--space-3xs);
    line-height: 1;
}

.store-text span {
    font-size: var(--text-2xs);
    text-transform: uppercase;
}

.store-text strong {
    font-size: var(--text-sm);
    font-weight: 700;
}

.footer-links {
    display: grid;
    gap: var(--space-md);
    padding-block: var(--space-lg);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 12rem));
    gap: var(--space-xl);
    justify-content: start;
}

.link-list {
    display: grid;
    gap: var(--space-xs);
}

.link-list a {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
}

.locale-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    width: fit-content;
    color: var(--color-white);
    font-size: var(--text-md);
}

.flag-box {
    width: clamp(1.2rem, 1.16rem + 0.1vw, 1.3rem);
    height: clamp(0.9rem, 0.86rem + 0.1vw, 1rem);
    border-radius: 0.15rem;
    background: linear-gradient(90deg, #2d8c4c 0 33.33%, #f7f7f7 33.33% 66.66%, #b8393b 66.66% 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.locale-link svg,
.more-link svg {
    width: var(--icon-size);
    height: var(--icon-size);
    fill: currentColor;
}

.provider-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-md) var(--space-lg);
    padding-block: var(--space-lg);
}

.provider-row img {
    height: clamp(1rem, 0.96rem + 0.08vw, 1.08rem);
    width: auto;
    object-fit: contain;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    min-height: clamp(2rem, 1.92rem + 0.22vw, 2.2rem);
    padding-inline: var(--space-sm);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: 500;
}

.footer-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: var(--space-md);
    padding-block: var(--space-lg);
}

.mail-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-white);
    font-size: var(--text-sm);
}

.mail-link svg {
    width: var(--icon-size);
    height: var(--icon-size);
    fill: currentColor;
}

.footer-copy {
    display: grid;
    justify-items: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--text-sm);
    text-align: center;
}

.footer-brands {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
}

.footer-brands img {
    height: clamp(1.8rem, 1.72rem + 0.2vw, 2rem);
    width: auto;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.8rem, 1.72rem + 0.2vw, 2rem);
    height: clamp(1.8rem, 1.72rem + 0.2vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: 700;
}

/* Media */
@media (max-width: 72rem) {
    .promo-banner {
        grid-template-columns: minmax(0, 34%) minmax(0, 66%);
    }

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

    .footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 56rem) {
    .topbar-row {
        grid-template-columns: auto 1fr auto;
    }

    .topbar-side,
    .tools-note,
    .social-inline {
        display: none;
    }

    .brand-link {
        justify-self: start;
    }

    .topbar-tools {
        gap: var(--space-2xs);
    }

    .chip-link {
        min-height: clamp(1.8rem, 1.72rem + 0.2vw, 1.95rem);
        padding-inline: clamp(0.72rem, 0.68rem + 0.16vw, 0.86rem);
        font-size: var(--text-2xs);
    }

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

    .promo-banner {
        position: relative;
        display: block;
        min-height: clamp(21rem, 18rem + 8vw, 24rem);
    }

    .promo-copy {
        width: min(100%, 18rem);
        min-height: inherit;
        justify-content: flex-start;
        padding-top: var(--space-xl);
        padding-bottom: clamp(7rem, 6rem + 3vw, 9rem);
        background: transparent;
    }

    .promo-art {
        position: absolute;
        inset: 0;
    }

    .promo-art img {
        object-position: 72% 100%;
    }

    .store-row {
        flex-direction: column;
        align-items: center;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .footer-links {
        justify-items: start;
    }
}

@media (max-width: 36rem) {
    .ticker-row,
    .pay-row,
    .provider-row {
        justify-content: flex-start;
    }
}


/* Page content */
:root {
    --pages-max-width: min(100% - clamp(1rem, 0.4rem + 2.6vw, 2.5rem), 72rem);
    --pages-surface: linear-gradient(180deg, rgba(241, 246, 255, 0.96) 0%, rgba(234, 241, 255, 0.96) 100%);
    --pages-surface-strong: linear-gradient(180deg, rgba(26, 50, 113, 0.98) 0%, rgba(37, 59, 126, 0.98) 100%);
    --pages-surface-soft: rgba(50, 66, 165, 0.06);
    --pages-border: rgba(39, 57, 138, 0.14);
    --pages-border-strong: rgba(39, 57, 138, 0.24);
    --pages-text: rgba(31, 47, 100, 0.92);
    --pages-text-soft: rgba(31, 47, 100, 0.74);
    --pages-text-on-dark: rgba(255, 255, 255, 0.9);
    --pages-title: #1a3271;
    --pages-accent: #2527a8;
    --pages-accent-strong: #ff5050;
    --pages-success: #39cc59;
    --pages-shadow: 0 1.2rem 2.5rem rgba(25, 41, 71, 0.1);
}

body {
    background:
        radial-gradient(circle at top left, rgba(37, 39, 168, 0.08), transparent 30%),
        linear-gradient(180deg, #f6f9ff 0%, #ffffff 18%, #f2f6ff 100%);
}

.page-content {
    width: var(--pages-max-width);
    margin: 0 auto;
    padding: clamp(1.4rem, 2.4vw, 2.2rem) 0 clamp(3.2rem, 6vw, 5rem);
}

.page-content section {
    margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
}

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

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

.page-content h1 {
    font-size: clamp(2rem, 1.75rem + 1vw, 3rem);
    line-height: 1.05;
}

.page-content h2 {
    font-size: clamp(1.45rem, 1.25rem + 0.8vw, 2.1rem);
    line-height: 1.18;
}

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

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

.page-content p {
    margin: 0 0 0.95rem;
}

.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(37, 39, 168, 0.24);
    text-underline-offset: 0.18em;
}

.page-content a:hover,
.page-content a:focus-visible {
    text-decoration-color: rgba(37, 39, 168, 0.6);
}

.page-content code {
    padding: 0.08rem 0.35rem;
    border-radius: 0.35rem;
    background: rgba(37, 39, 168, 0.08);
    color: var(--pages-title);
}

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

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

.page-hero-copy {
    padding: clamp(1.25rem, 2vw, 1.8rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 242, 255, 0.98)),
        var(--pages-surface);
}

.page-hero-copy h2 {
    margin-bottom: 0.9rem;
    color: var(--pages-accent);
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.2rem);
    line-height: 1.45;
}

.page-hero-copy .page-description {
    color: var(--pages-text-soft);
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.12rem);
}

.page-author-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.85rem 0 0;
    color: var(--pages-text-soft);
    font-size: 0.98rem;
    line-height: 1.45;
    flex-wrap: wrap;
}

.page-author-meta img {
    width: min(4.375rem, 50px);
    height: min(4.375rem, 50px);
    border-radius: 999px;
    object-fit: cover;
    flex: 0 0 auto;
}

.page-author-meta p {
    margin: 0;
}

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

.page-author-meta a {
    color: var(--pages-title);
    font-weight: 700;
    text-decoration: none;
}

.page-author-meta a:hover,
.page-author-meta a:focus-visible {
    color: var(--pages-accent);
    text-decoration: underline;
}

.article-toc-spoiler {
    margin-top: 1.2rem;
    border-color: var(--pages-border-strong);
    background:
        linear-gradient(180deg, rgba(37, 52, 117, 0.98) 0%, rgba(43, 60, 129, 0.98) 100%);
    padding: 0;
    overflow: hidden;
}

.article-toc-spoiler p.spoiler-toggle {
    color: #ffffff;
    font-weight: 800;
    position: relative;
    z-index: 1;
    min-height: 3.3rem;
    padding: 1rem 1.15rem;
}

.article-toc-spoiler p.spoiler-toggle::after {
    color: #ffffff;
}

.article-toc-spoiler .spoiler-content {
    padding: 0;
    background: transparent;
}

.article-toc {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.8rem 1rem 0.95rem;
    border: 1px solid rgba(39, 57, 138, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.article-toc-spoiler .article-toc ol,
.article-toc-spoiler .article-toc li,
.article-toc-spoiler .article-toc a {
    color: var(--pages-title);
}

.article-toc-spoiler .article-toc ol {
    margin: 0;
}

.article-toc-spoiler .article-toc a {
    text-decoration-color: rgba(26, 50, 113, 0.22);
}

.article-toc-spoiler .article-toc a:hover,
.article-toc-spoiler .article-toc a:focus-visible {
    color: var(--pages-accent);
    text-decoration-color: rgba(37, 39, 168, 0.45);
}

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

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

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

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

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

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

.page-content ul li::before {
    content: "";
    position: absolute;
    top: 0.78em;
    left: 0;
    width: 0.48rem;
    height: 0.48rem;
    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.55rem;
    padding-left: 0.15rem;
}

.page-content ul ul,
.page-content ul ol,
.page-content ol ul,
.page-content ol ol {
    margin-top: 0.75rem;
    margin-bottom: 0.3rem;
}

.article-card,
.article-highlight {
    margin: 1.1rem 0 1.35rem;
    padding: 1rem 1.1rem;
    background: rgba(50, 66, 165, 0.04);
}

.article-highlight {
    background: linear-gradient(135deg, rgba(255, 80, 80, 0.08), rgba(37, 39, 168, 0.06));
    border-color: rgba(255, 80, 80, 0.14);
}

.article-media,
.article-media-split {
    margin: 1.15rem 0 1.4rem;
}

.article-media {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    text-align: center;
}

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

.article-media.align-start {
    text-align: left;
}

.article-media.align-start img {
    margin: 0;
}

.author-hero-photo {
    max-width: min(12.5rem, 200px);
    margin: 0.2rem 1.2rem 0.8rem 0;
    float: left;
    clear: left;
}

.author-hero-photo img {
    width: 100%;
    max-width: min(12.5rem, 200px);
    border-radius: 999px;
    box-shadow: 0 0.55rem 1.2rem rgba(25, 41, 71, 0.14);
}

.author-inline::after {
    content: "";
    display: block;
    clear: both;
}

.article-side-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
    gap: clamp(18px, 2.4vw, 28px);
    align-items: start;
}

.article-side-layout > * {
    min-width: 0;
}

.article-side-layout > .article-media,
.article-side-layout > .article-highlight,
.article-side-layout > .article-table-wrap,
.article-side-layout > .article-card {
    margin: 0 auto;
}

.article-side-copy > *:last-child {
    margin-bottom: 0;
}

.article-side-sticky {
    position: sticky;
    top: 88px;
}

.article-media figcaption {
    margin-top: 0.7rem;
    color: var(--pages-text-soft);
    font-size: 0.92rem;
}

.article-media-loose {
    margin-top: 1.8rem;
    margin-bottom: 3rem;
}

figure.article-table-wrap {
    display: block;
    width: 100%;
    margin: 1.15rem 0 1.4rem;
    overflow-x: auto;
    background: #fff;
    -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.85rem 0.95rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(39, 57, 138, 0.09);
}

figure.article-table-wrap th {
    color: var(--pages-title);
    font-weight: 800;
    white-space: nowrap;
    background: rgba(37, 39, 168, 0.06);
}

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

figure.article-table-wrap tbody tr:hover td {
    background: rgba(50, 66, 165, 0.025);
}

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

.spoiler {
    background: var(--pages-surface-strong);
    border-color: rgba(37, 39, 168, 0.08);
    overflow: hidden;
}

p.spoiler-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.95rem 1.05rem;
    color: var(--pages-text-on-dark);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

p.spoiler-toggle::after {
    content: "+";
    flex: 0 0 auto;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
}

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

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

.spoiler-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.05rem;
    background: rgba(255, 255, 255, 0.98);
    transition: max-height 220ms ease, padding 220ms ease;
}

.spoiler-content p,
.spoiler-content li {
    color: var(--pages-text);
}

.page-content > script,
.page-content > h1:first-child {
    display: none;
}

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

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

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

    .article-side-layout {
        grid-template-columns: 1fr;
    }

    .article-side-sticky {
        position: static;
    }

}

@media (max-width: 420px) {
    .topbar-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.3rem;
        min-height: 3rem;
    }

    .brand-link {
        width: clamp(5.8rem, 23vw, 6.6rem);
    }

    .topbar-tools {
        gap: 0.25rem;
        min-width: 0;
    }

    .chip-link {
        min-height: 1.7rem;
        padding-inline: 0.5rem;
        font-size: 0.62rem;
        letter-spacing: 0;
    }

    .menu-switch {
        width: 1.95rem;
        height: 1.95rem;
        flex: 0 0 auto;
    }
}

@media (max-width: 360px) {
    .brand-link {
        width: 5.4rem;
    }

    .chip-link {
        padding-inline: 0.42rem;
        font-size: 0.56rem;
    }
}
