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

:root {
    --font-main: "Roboto Flex", "Segoe UI", sans-serif;

    --color-bg-page: #f8f8f8;
    --color-bg-header: #ffffff;
    --color-bg-footer: #14181f;
    --color-bg-footer-bottom: #0e1117;
    --color-text-main: #1a1f2a;
    --color-text-light: #f3f4f5;
    --color-text-muted: #c9ced8;
    --color-border: rgba(26, 31, 42, 0.14);
    --color-accent: #35b3db;
    --color-accent-soft: #e7f5fe;

    --shadow-soft: 0 clamp(0.25rem, 0.14rem + 0.45vw, 0.5rem) clamp(1rem, 0.83rem + 0.73vw, 1.5rem) rgba(14, 17, 23, 0.09);
    --radius-m: clamp(0.625rem, 0.53rem + 0.4vw, 0.875rem);
    --container-max: min(100% - clamp(2rem, 1.44rem + 2.35vw, 3.75rem), 76rem);

    --space-2xs: clamp(0.25rem, 0.19rem + 0.24vw, 0.375rem);
    --space-xs: clamp(0.5rem, 0.44rem + 0.24vw, 0.625rem);
    --space-s: clamp(0.75rem, 0.66rem + 0.37vw, 1rem);
    --space-m: clamp(1rem, 0.91rem + 0.37vw, 1.25rem);
    --space-l: clamp(1.25rem, 1.06rem + 0.79vw, 1.75rem);
    --space-xl: clamp(1.5rem, 1.22rem + 1.18vw, 2.25rem);
    --space-2xl: clamp(2rem, 1.63rem + 1.55vw, 3rem);

    --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
    --text-s: clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);
    --text-m: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
    --text-l: clamp(1.1rem, 1.03rem + 0.3vw, 1.25rem);

    --logo-header-height: clamp(2rem, 1.77rem + 0.95vw, 2.65rem);
    --logo-footer-height: clamp(2.3rem, 2rem + 1.25vw, 3.2rem);
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-main);
    background: linear-gradient(180deg, var(--color-bg-page) 0%, #eef2f7 100%);
    color: var(--color-text-main);
    text-rendering: geometricPrecision;
}

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

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

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

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

/* Header */
.sparcity-site-header {
    position: relative;
    background-color: var(--color-bg-header);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: clamp(4rem, 3.43rem + 2.38vw, 5.5rem);
    padding-block: var(--space-s);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xs);
    border-radius: var(--radius-m);
    transition: background-color 0.2s ease;
}

.brand-logo {
    height: 60px;
    width: auto;
}

/* Footer */
.sparcity-site-footer {
    margin-top: clamp(2.5rem, 2.03rem + 1.97vw, 3.75rem);
    background-color: var(--color-bg-footer);
    color: var(--color-text-light);
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-l);
    padding-block: var(--space-xl);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs);
    border-radius: var(--radius-m);
    background-color: var(--color-bg-header);
    border: 1px solid rgba(26, 31, 42, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.footer-brand figure {
    margin: 0;
}

.footer-logo {
    height: var(--logo-footer-height);
    width: auto;
}

.footer-nav {
    display: block;
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-xs) var(--space-l);
    list-style: none;
    margin: 0;
    padding: 0;
}

.link-list a {
    font-size: var(--text-s);
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.link-list a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(243, 244, 245, 0.18);
    background-color: var(--color-bg-footer-bottom);
}

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    padding-block: var(--space-m);
}

.footer-warning,
.footer-copy {
    margin: 0;
    font-size: var(--text-xs);
    line-height: 1.55;
}

.footer-warning {
    color: var(--color-text-muted);
    max-width: 68ch;
}

.footer-copy {
    color: var(--color-text-light);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@media (max-width: 56rem) {
    .footer-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .link-list {
        justify-content: flex-start;
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 36rem) {
    .link-list {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Merged pages.css */
:root {
    --pages-max-width: min(1120px, calc(100% - 36px));
    --pages-text: #1f2937;
    --pages-text-soft: #4b5563;
    --pages-title: #0f172a;
    --pages-surface: #ffffff;
    --pages-surface-soft: #f8fbff;
    --pages-border: rgba(15, 23, 42, 0.12);
    --pages-border-strong: rgba(53, 179, 219, 0.34);
    --pages-accent: #35b3db;
    --pages-accent-strong: #0ea5c6;
    --pages-shadow: 0 16px 34px rgba(14, 17, 23, 0.08);
}

.page-content {
    width: var(--pages-max-width);
    margin: 0 auto;
    padding: clamp(24px, 3.8vw, 44px) 0 clamp(56px, 8vw, 88px);
}

.page-content > section {
    margin-bottom: clamp(24px, 3.1vw, 38px);
}

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

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

.page-content h1 {
    font-size: clamp(32px, 2.9vw, 46px);
    line-height: 1.08;
}

.page-content h2 {
    font-size: clamp(25px, 2vw, 34px);
    line-height: 1.18;
}

.page-content h3 {
    font-size: clamp(19px, 1.44vw, 24px);
    line-height: 1.3;
}

.page-content p,
.page-content li,
.page-content td,
.page-content th {
    margin: 0 0 14px;
    color: var(--pages-text);
    font-size: clamp(16px, 1vw, 17px);
    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-strong);
    text-decoration: underline;
    text-decoration-color: rgba(14, 165, 198, 0.35);
    text-underline-offset: 0.2em;
}

.page-content a:hover,
.page-content a:focus-visible {
    text-decoration-color: rgba(14, 165, 198, 0.8);
}

.page-content ul,
.page-content ol {
    margin: 0 0 18px;
}

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

.page-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

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

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

.page-content ol li {
    margin-bottom: 8px;
}

.page-hero {
    margin-bottom: clamp(10px, 1.5vw, 18px);
}

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

.page-hero-copy {
    padding: clamp(18px, 2.6vw, 28px);
    background:
        radial-gradient(circle at top right, rgba(53, 179, 219, 0.14), transparent 45%),
        linear-gradient(180deg, #ffffff, #f9fcff);
}

.article-highlight {
    margin: 16px 0 20px;
    padding: 14px 16px;
    background: linear-gradient(130deg, rgba(53, 179, 219, 0.1), rgba(53, 179, 219, 0.03));
}

.article-highlight p {
    margin: 0;
}

.page-content .article-toc {
    margin: 18px 0 0;
    padding: 0;
    overflow: hidden;
    background: var(--pages-surface-soft);
}

.page-content .article-toc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    color: var(--pages-title);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

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

.page-content .article-toc > summary::after {
    content: "+";
    color: var(--pages-accent-strong);
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.page-content .article-toc[open] > summary::after {
    transform: rotate(45deg);
}

.page-content .article-toc > nav {
    padding: 0 16px 16px;
    border-top: 1px solid var(--pages-border);
}

.page-content .article-toc a {
    margin: 6px 0;
    display: block;
    color: var(--pages-text-soft);
    text-decoration: none;
}

.page-content .article-toc a:hover,
.page-content .article-toc a:focus-visible {
    color: var(--pages-accent-strong);
    text-decoration: underline;
}

figure.article-table-wrap {
    width: 100%;
    margin: 14px 0 18px;
    overflow-x: auto;
    background: var(--pages-surface);
    -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: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--pages-border);
}

figure.article-table-wrap th {
    color: var(--pages-title);
    background: rgba(53, 179, 219, 0.12);
    font-weight: 700;
}

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

.article-side-layout {
    display: grid;
    gap: clamp(16px, 2.4vw, 26px);
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    align-items: start;
}

.article-side-copy {
    min-width: 0;
}

.article-media {
    margin: 14px auto 18px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
}

.article-media img {
    width: auto;
    max-width: min(100%, 840px);
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
}

.article-side-sticky {
    margin: 0;
    position: sticky;
    top: 14px;
}

.article-side-sticky img {
    max-width: min(100%, 320px);
}

.article-cta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 198, 0.5);
    background: linear-gradient(90deg, #35b3db, #2f9fca);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(53, 179, 219, 0.32);
    animation: cta-breath 1.8s ease-in-out infinite;
    text-shadow: 0 1px 2px rgba(7, 19, 28, 0.35);
}

.page-content a.article-cta,
.page-content a.article-cta:hover,
.page-content a.article-cta:focus-visible {
    color: #ffffff;
    text-decoration: none;
}

.live-games-section {
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid var(--pages-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(53, 179, 219, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(242, 248, 255, 0.95));
    box-shadow: var(--pages-shadow);
}

.live-games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 18px);
}

.live-game-card {
    padding: clamp(12px, 1.8vw, 16px);
    border: 1px solid rgba(53, 179, 219, 0.26);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f4f9ff);
}

.live-game-card h3 {
    margin-bottom: 8px;
}

.live-game-card p {
    margin-bottom: 10px;
}

.live-game-card ul {
    margin-bottom: 0;
}

.article-media-wide img {
    max-width: min(100%, 920px);
}

@keyframes cta-breath {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(53, 179, 219, 0.32);
    }

    50% {
        transform: scale(1.045);
        box-shadow: 0 12px 28px rgba(53, 179, 219, 0.45);
    }
}

.faq-group {
    margin-top: 10px;
}

.spoiler {
    margin-bottom: 10px;
    overflow: hidden;
    background: #ffffff;
}

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

.spoiler-toggle {
    margin: 0;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    color: var(--pages-title);
    font-weight: 700;
    position: relative;
}

.spoiler-toggle::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pages-accent-strong);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.spoiler.active .spoiler-toggle::after {
    transform: translateY(-50%) rotate(45deg);
}

.spoiler-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    border-top: 1px solid var(--pages-border);
}

.spoiler-content p {
    margin: 0;
    padding: 12px 16px 14px;
}

@media (max-width: 900px) {
    .live-games-grid {
        grid-template-columns: 1fr;
    }

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

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

    .article-side-sticky img,
    .article-media img {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .page-content {
        width: min(100% - 20px, 1120px);
    }

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

    .spoiler-toggle {
        padding-right: 40px;
    }
}

