/* ================================================ */
/* ROOT VARIABLES — Blue Pistolo Theme               */
/* ================================================ */
:root {
    --primary: #b5e630;
    --primary-dark: #92c420;
    --primary-glow: rgba(181, 230, 48, 0.18);
    --page-bg: #1a2468;
    --section-bg: #1e2b73;
    --section-alt: #162060;
    --section-dark: #131b52;
    --header-bg: #1a237e;
    --surface: #1e2b73;
    --surface2: #243282;
    --border: rgba(255,255,255,0.1);
    --border-accent: rgba(181,230,48,0.25);
    --light: #ffffff;
    --text: #e0e8ff;
    --text-muted: #9aacdb;
    --accent: #c8f04a;
    --brand-line: 3px;
    --max-w: 960px;
}

/* ================================================ */
/* RESET & BASE                                      */
/* ================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--page-bg);
    color: var(--text);
    line-height: 1.6;
    border-top: var(--brand-line) solid var(--primary);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ================================================ */
/* HEADER                                            */
/* ================================================ */
.header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 64px;
}

.logo {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.main-nav { display: none; }

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-btn {
    display: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
}

.header-btn--login {
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
}
.header-btn--login:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.header-btn--register {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a1628;
    border: none;
}
.header-btn--register:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: translateY(-1px);
}

.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-btn span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: 0.3s;
}
.burger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: var(--header-bg);
    border-top: 1px solid rgba(255,255,255,0.08);
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.mobile-menu.open { height: 320px; padding: 10px 20px; }
.mobile-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--primary); }

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        gap: 0;
        margin-left: 24px;
    }
    .main-nav a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 0 16px;
        height: 64px;
        display: flex;
        align-items: center;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        border-right: 1px solid rgba(255,255,255,0.08);
        transition: color 0.2s, background 0.2s;
    }
    .main-nav a:first-child { border-left: 1px solid rgba(255,255,255,0.08); }
    .main-nav a:hover { background: rgba(255,255,255,0.06); color: var(--primary); }
    .header-btn { display: inline-flex; align-items: center; }
    .burger-btn { display: none; }
    .header-mobile-title { display: none; }
}

.header-mobile-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(181,230,48,0.1);
    border: 1px solid rgba(181,230,48,0.25);
    border-radius: 7px;
    padding: 5px 11px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.header-mobile-title strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: none;
}
@media (min-width: 1024px) { .header-mobile-title { display: none; } }

/* ================================================ */
/* PAGE WRAPPER                                      */
/* ================================================ */
.page-wrapper { background: var(--page-bg); }

/* ================================================ */
/* BUTTONS                                           */
/* ================================================ */
.btn-main {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a1628;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(181,230,48,0.3);
    white-space: nowrap;
}
.btn-main:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(181,230,48,0.4);
}

/* ================================================ */
/* SECTION TITLE                                     */
/* ================================================ */
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    padding: 28px var(--section-h-pad, 20px) 0;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* ================================================ */
/* SECTION TEXT (shared prose block)                 */
/* ================================================ */
.section-text {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}
.section-text p {
    margin-bottom: 14px;
    line-height: 1.75;
    color: var(--text);
    text-align: justify;
    font-size: 0.96rem;
}

/* ================================================ */
/* SECTION CTA                                       */
/* ================================================ */
.section-cta {
    text-align: center;
    padding: 28px 20px 36px;
}

/* ================================================ */
/* 1. MAIN SECTION                                   */
/* ================================================ */
.main-section {
    background: var(--section-bg);
    padding-bottom: 0;
}

.main-section__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    padding: 32px 20px 20px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.main-section__banner-link {
    display: block;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    border-radius: 12px;
    overflow: hidden;
}
.main-section__banner-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(255,255,255,0.08);
}

.main-section__intro {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 20px 0;
    text-align: center;
}
.main-section__intro p {
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--text-muted);
}

/* ================================================ */
/* 2. BEST GAMES (shared for games + payments)       */
/* ================================================ */
.best-games {
    background: var(--section-alt);
    padding: 0 0 28px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.best-games__nav {
    list-style: none;
    display: flex;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    overflow-x: auto;
    scrollbar-width: none;
}
.best-games__nav::-webkit-scrollbar { display: none; }

.best-games__nav li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 22px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
}
.best-games__nav li a svg { opacity: 0.5; transition: opacity 0.2s; }
.best-games__nav li a:hover { color: rgba(255,255,255,0.85); }
.best-games__nav li a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.best-games__nav li a.active svg { opacity: 1; }

.best-games__body {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px 20px 0;
}

.tab { display: none; }
.tab.active { display: block; }

.best-games__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

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

.best-games__item {
    display: flex;
    flex-direction: column;
    background: var(--surface2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
}
.best-games__item:hover {
    border-color: rgba(181,230,48,0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.best-games__item-img {
    width: 100%;
    aspect-ratio: 263/156;
    background: var(--section-dark);
    overflow: hidden;
    position: relative;
}
.best-games__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.best-games__item:hover .best-games__item-img img { transform: scale(1.04); }

.best-games__item span {
    display: block;
    padding: 8px 10px 3px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.best-games__item small {
    display: block;
    padding: 0 10px 10px;
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================================ */
/* 3. INFO TABLE SECTION                             */
/* ================================================ */
.content-table-section {
    background: var(--section-bg);
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.content-table-section__head {
    padding-top: 28px;
}

.info-table {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    border-collapse: collapse;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.info-table td {
    padding: 13px 20px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text);
    vertical-align: middle;
}
.info-table tr:last-child td { border-bottom: none; }
.info-table td:first-child {
    font-weight: 700;
    color: var(--text-muted);
    width: 38%;
    background: rgba(0,0,0,0.15);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}
.info-table td:last-child { background: rgba(0,0,0,0.05); }
.info-table tr:hover td { background: rgba(255,255,255,0.04); }
.info-table tr:hover td:first-child { background: rgba(0,0,0,0.2); }

.content-table-section .section-text {
    padding-top: 20px;
}

/* ================================================ */
/* 4–6. CONTENT SECTIONS (rejestracja, bonusy, kod) */
/* ================================================ */
.content-section {
    background: var(--section-alt);
    padding-bottom: 0;
    border-bottom: 1px solid var(--border);
}

.content-section .section-title { padding-top: 28px; }

.section-image {
    max-width: var(--max-w);
    margin: 16px auto 20px;
    padding: 0 20px;
    border-radius: 12px;
    overflow: hidden;
}
.section-image a { display: block; border-radius: 12px; overflow: hidden; }
.section-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform 0.3s;
}
.section-image a:hover img { transform: scale(1.01); }

.content-h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 22px 0 10px;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 16px;
}
.content-list li {
    position: relative;
    padding: 9px 0 9px 24px;
    color: var(--text);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.94rem;
}
.content-list li:last-child { border-bottom: none; }
.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.8;
}

ol.content-list {
    counter-reset: cnt;
}
ol.content-list li {
    counter-increment: cnt;
    padding-left: 36px;
}
ol.content-list li::before {
    content: counter(cnt);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    top: 10px;
    transform: none;
}

/* ================================================ */
/* 8. PAYMENTS TABLE                                 */
/* ================================================ */
.table-wrapper {
    max-width: var(--max-w);
    margin: 16px auto 0;
    padding: 0 20px;
    overflow-x: auto;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}
.payments-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.88rem;
    color: var(--text);
    vertical-align: middle;
}
.payments-table tr:first-child td {
    background: rgba(0,0,0,0.2);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}
.payments-table tr:last-child td { border-bottom: none; }
.payments-table tr:hover td { background: rgba(255,255,255,0.04); }
.payments-table tr:first-child:hover td { background: rgba(0,0,0,0.2); }

/* ================================================ */
/* 10. DOWNLOAD SECTION                              */
/* ================================================ */
.download-section {
    background: var(--section-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
}

.download-section__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 28px 20px 20px;
}

.download-section__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--surface2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 24px 28px;
}

.download-section__left img {
    border-radius: 12px;
    max-width: 220px;
}

.download-section__right { flex: 1; }

.download-section__name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.download-section__stats {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.download-section__stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.download-section__stats span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}
.download-section__stats small {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.download-section__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e1e4e9;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.download-btn svg { width: 135px; height: 40px; }
.download-btn:hover { border-color: var(--primary); background: #1a2540; }

.download-section__text {
    max-width: var(--max-w);
    margin: 24px auto 0;
    padding: 0 20px;
}

@media (max-width: 640px) {
    .download-section__inner { flex-direction: column; padding: 20px; }
    .download-section__left { display: none; }
}

/* ================================================ */
/* 11. FAQ                                           */
/* ================================================ */
.faq-section {
    background: var(--section-alt);
    padding: 0 0 28px;
    border-bottom: 1px solid var(--border);
}
.faq-section .section-title { padding-top: 28px; }

.faq-item {
    max-width: var(--max-w);
    margin: 0 auto 8px;
    padding: 0 20px;
}

.faq-item__btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--light);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
    gap: 12px;
}
.faq-item__btn:hover { border-color: rgba(181,230,48,0.3); background: rgba(255,255,255,0.05); }
.faq-item.open .faq-item__btn {
    border-color: var(--primary);
    color: var(--primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-chevron {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-item__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--surface);
    border: 1px solid rgba(181,230,48,0.2);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.faq-item.open .faq-item__body { max-height: 400px; }

.faq-item__body p {
    padding: 16px 20px;
    font-size: 0.93rem;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

.updated-block {
    max-width: var(--max-w);
    margin: 20px auto 0;
    padding: 0 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
}

/* ================================================ */
/* FOOTER                                            */
/* ================================================ */
.footer {
    background: var(--section-dark);
    border-top: 1px solid var(--border);
}

.footer__main { padding: 36px 0 0; }

.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px 32px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 700px) { .footer__inner { flex-direction: column; gap: 24px; } }

.footer__info { flex-shrink: 0; }

.footer__logo-link img {
    max-height: 56px;
    width: auto;
    filter: brightness(1.1);
    margin-bottom: 16px;
}

.footer__regulators {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.footer__regulators img {
    height: 32px;
    width: auto;
    opacity: 0.45;
    filter: grayscale(1);
    transition: opacity 0.2s, filter 0.2s;
}
.footer__regulators img:hover { opacity: 0.8; filter: grayscale(0); }

.footer__age-badge {
    background: rgba(181,230,48,0.12);
    border: 1px solid rgba(181,230,48,0.25);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.footer__links-wrap {
    display: flex;
    gap: 40px;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav__list a {
    color: var(--text-muted);
    font-size: 0.87rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav__list a:hover { color: var(--primary); }

.footer__bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 16px 20px;
}
.footer__copyright {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

/* ================================================ */
/* SCROLL TO TOP                                     */
/* ================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--surface2);
    border: 1px solid rgba(181,230,48,0.4);
    border-radius: 8px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    z-index: 999;
}
.scroll-to-top:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.scroll-to-top.show { display: flex; }
.scroll-to-top svg { fill: var(--primary); transition: fill 0.25s; }
.scroll-to-top:hover svg { fill: #0a1628; }

/* ================================================ */
/* FLOATING TOC                                      */
/* ================================================ */
.ftoc {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.ftoc__btn {
    background: rgba(181,230,48,0.5);
    color: #0a1628;
    width: 26px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 11px;
    user-select: none;
    transition: background .2s;
    flex-shrink: 0;
}
.ftoc__btn:hover { background: rgba(181,230,48,0.85); }
.ftoc__panel {
    background: var(--section-dark);
    border: 1px solid var(--border);
    border-left: none;
    width: 0;
    overflow: hidden;
    transition: width .3s ease;
    order: -1;
}
#toc-toggle:checked ~ .ftoc .ftoc__panel { width: 240px; }
#toc-toggle:checked ~ .ftoc .ftoc__btn { background: rgba(181,230,48,0.9); }
.ftoc__title {
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 14px 7px;
    margin: 0;
    white-space: nowrap;
}
.ftoc__list { list-style: none; padding: 0 0 14px; margin: 0; max-height: 70vh; overflow-y: auto; }
.ftoc__list li a {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: .80rem;
    padding: 5px 14px;
    border-left: 2px solid transparent;
    white-space: normal;
    line-height: 1.4;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ftoc__list li a:hover { color: var(--primary); border-left-color: var(--primary); background: rgba(181,230,48,.07); }

@media (max-width: 768px) {
    #toc-toggle:checked ~ .ftoc .ftoc__panel { width: 200px; }
    .main-section__title { font-size: 1.2rem; }
    .section-title { font-size: 1.15rem; }
    .download-btn svg { width: 110px; height: 34px; }
}