/* ═══════════════════════════════════════════════
   SWEEPSTAKECASINO.WORLD — Neon Cosmos Design
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ─── TOKENS ─── */
:root {
    --black: #050510;
    --void: #080818;
    --deep: #0d0d2b;
    --panel: rgba(13, 13, 43, .7);
    --glass: rgba(255, 255, 255, .04);
    --glass-b: rgba(255, 255, 255, .08);
    --purple: #7c3aed;
    --purple-l: #a855f7;
    --cyan: #06b6d4;
    --cyan-l: #22d3ee;
    --gold: #f59e0b;
    --gold-l: #fbbf24;
    --coral: #f43f5e;
    --green: #10b981;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, .5);
    --faint: rgba(255, 255, 255, .08);
    --border: rgba(255, 255, 255, .08);
    --border-p: rgba(124, 58, 237, .3);
    --border-c: rgba(6, 182, 212, .3);
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-w: 1200px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-p: 0 0 40px rgba(124, 58, 237, .25);
    --shadow-c: 0 0 40px rgba(6, 182, 212, .2);
    --shadow-g: 0 0 40px rgba(245, 158, 11, .2);
    --glow-p: 0 0 20px rgba(168, 85, 247, .4);
    --glow-c: 0 0 20px rgba(34, 211, 238, .4);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 3px;
}

/* ─── SKIP LINK ─── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--purple);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 0 0 8px 0;
    text-decoration: none;
    font-size: .85rem;
    z-index: 9999;
    transition: top .2s;
}

.skip-link:focus {
    top: 0;
}

/* ─── HEADER ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 16, .85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .95rem;
    background: linear-gradient(135deg, var(--purple-l), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.logo-sub {
    font-size: .62rem;
    color: var(--muted);
    font-family: var(--font-body);
    letter-spacing: .5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 500;
    padding: .4rem .85rem;
    border-radius: 50px;
    transition: color .2s, background .2s;
}

.main-nav a:hover {
    color: var(--white);
    background: var(--glass-b);
}

.main-nav a.active {
    color: var(--purple-l);
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .82rem;
    padding: .55rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    min-height: 40px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    opacity: 0;
    transition: opacity .3s;
}

.btn-play:hover::before {
    opacity: 1;
}

.btn-play:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-p);
    color: #fff;
}

.btn-play span,
.btn-play {
    position: relative;
    z-index: 1;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    align-items: center;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mob-nav {
    display: none;
    flex-direction: column;
    background: rgba(5, 5, 16, .98);
    border-top: 1px solid var(--border);
    padding: .75rem 1.5rem 1rem;
    gap: .1rem;
}

.mob-nav.open {
    display: flex;
}

.mob-nav a {
    display: block;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: .88rem;
    padding: .65rem .5rem;
    border-bottom: 1px solid var(--border);
}

.mob-nav a:last-child {
    border: none;
}

.mob-tracker {
    padding: .5rem 0;
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d0022 0%, #050510 40%, #001a2e 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .2) 0%, transparent 70%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -50px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, .15) 0%, transparent 70%);
}

.hero-img {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .35;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 6rem 2rem;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid var(--border-p);
    background: rgba(124, 58, 237, .1);
    color: var(--purple-l);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: .3rem .85rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-h1 {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    max-width: 720px;
}

.hero-h1 .grad {
    background: linear-gradient(135deg, var(--purple-l) 0%, var(--cyan) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    color: var(--muted);
    font-size: 1rem;
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2.5rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1.5px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .8);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .88rem;
    padding: .6rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    transition: border-color .2s, color .2s;
    min-height: 40px;
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Country flags strip */
.flag-strip {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.flag-pill {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .3rem .85rem;
    font-size: .75rem;
    color: rgba(255, 255, 255, .6);
    font-family: var(--font-body);
}

.flag-pill .fi {
    font-size: 1rem;
}

/* ─── STATS STRIP ─── */
.stats-strip {
    background: linear-gradient(90deg, rgba(124, 58, 237, .12) 0%, rgba(6, 182, 212, .08) 50%, rgba(245, 158, 11, .1) 100%);
    border-top: 1px solid var(--border-p);
    border-bottom: 1px solid var(--border-c);
    padding: 1.5rem 0;
}

.stats-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item {}

.stat-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.7rem;
    background: linear-gradient(135deg, var(--purple-l), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: .2rem;
}

.stat-label {
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* ─── SECTIONS ─── */
.sec {
    padding: 5rem 0;
    position: relative;
}

.sec-dark {
    background: var(--black);
}

.sec-deep {
    background: var(--void);
}

.sec-panel {
    background: var(--deep);
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.sec-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--purple-l);
    margin-bottom: .6rem;
}

.sec-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.14;
    letter-spacing: -.5px;
    margin-bottom: .75rem;
}

.sec-title .c {
    color: var(--cyan);
}

.sec-title .p {
    color: var(--purple-l);
}

.sec-desc {
    color: var(--muted);
    font-size: .95rem;
    max-width: 560px;
    line-height: 1.75;
}

.sec-head {
    margin-bottom: 2.5rem;
}

.sec-head.center {
    text-align: center;
}

.sec-head.center .sec-desc {
    margin: 0 auto;
}

/* ─── GLASS CARDS ─── */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color .3s, box-shadow .3s, transform .3s;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple-l), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    border-color: var(--border-p);
    box-shadow: var(--shadow-p);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.card-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: .4rem;
}

.card-desc {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ─── COUNTRY SECTIONS ─── */
.country-block {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.country-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.country-block.au::after {
    background: linear-gradient(180deg, #00008B, #FFD700);
}

.country-block.us::after {
    background: linear-gradient(180deg, #B22234, #3C3B6E);
}

.country-block.de::after {
    background: linear-gradient(180deg, #000, #DD0000, #FFCE00);
}

.country-block.ca::after {
    background: linear-gradient(180deg, #FF0000, #fff);
}

.country-block.gb::after {
    background: linear-gradient(180deg, #012169, #C8102E);
}

.country-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.country-flag {
    font-size: 2rem;
}

.country-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.15rem;
}

.country-badge {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: .2rem .6rem;
    border-radius: 4px;
    border: 1px solid var(--border-p);
    color: var(--purple-l);
    background: rgba(124, 58, 237, .1);
}

/* ─── TABLES ─── */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .83rem;
}

caption {
    font-family: var(--font-head);
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cyan);
    text-align: left;
    padding: .6rem 1rem .4rem;
}

thead th {
    background: rgba(124, 58, 237, .12);
    text-align: left;
    padding: .75rem 1rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .4);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    transition: background .15s;
}

tbody tr:hover {
    background: rgba(124, 58, 237, .06);
}

tbody td {
    padding: .8rem 1rem;
    color: rgba(255, 255, 255, .7);
    vertical-align: middle;
}

tbody td:first-child {
    color: var(--white);
    font-weight: 600;
}

.td-green {
    color: var(--green) !important;
    font-weight: 600;
}

.td-cyan {
    color: var(--cyan) !important;
    font-weight: 600;
}

.td-amber {
    color: var(--gold) !important;
    font-weight: 600;
}

.td-red {
    color: var(--coral) !important;
}

/* ─── CHART BARS ─── */
.hbar-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.hbar-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: .25rem;
    font-size: .78rem;
}

.hbar-name {
    color: rgba(255, 255, 255, .65);
}

.hbar-val {
    color: var(--cyan);
    font-weight: 700;
    font-family: var(--font-head);
}

.hbar-track {
    height: 7px;
    background: rgba(255, 255, 255, .05);
    border-radius: 4px;
    overflow: hidden;
}

.hbar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1.2s ease;
}

.hbar-fill.purple {
    background: linear-gradient(90deg, var(--purple), var(--purple-l));
}

.hbar-fill.cyan {
    background: linear-gradient(90deg, var(--cyan), var(--cyan-l));
}

.hbar-fill.gold {
    background: linear-gradient(90deg, var(--gold), var(--gold-l));
}

.hbar-fill.coral {
    background: linear-gradient(90deg, #be123c, var(--coral));
}

.hbar-fill.green {
    background: linear-gradient(90deg, #059669, var(--green));
}

/* ─── GRIDS ─── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

/* ─── NEON LINE DIVIDER ─── */
.neon-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
    width: 100%;
    margin: 3rem 0;
    opacity: .4;
}

/* ─── ACCORDION ─── */
.accord-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.accord-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.accord-q {
    width: 100%;
    background: var(--glass);
    border: none;
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    text-align: left;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .2s;
}

.accord-q:hover {
    background: var(--glass-b);
}

.accord-icon {
    color: var(--purple-l);
    font-weight: 400;
    font-size: 1.2rem;
    transition: transform .2s;
    flex-shrink: 0;
}

.accord-q[aria-expanded="true"] .accord-icon {
    transform: rotate(45deg);
}

.accord-a {
    background: rgba(124, 58, 237, .05);
    display: none;
    padding: 1rem 1.25rem;
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.75;
    border-top: 1px solid var(--border);
}

.accord-a.open {
    display: block;
}

/* ─── AUTHOR BOX ─── */
.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--glass);
    border: 1px solid var(--border-p);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2.5rem;
}

.author-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--purple);
    flex-shrink: 0;
}

.author-name {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--white);
    font-size: .95rem;
}

.author-role {
    font-size: .75rem;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.author-bio {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ─── PROSE ─── */
.prose {
    max-width: 820px;
}

.prose h2 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    margin: 2rem 0 .75rem;
}

.prose p {
    font-size: .9rem;
    color: rgba(255, 255, 255, .68);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.prose a {
    color: var(--cyan);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--purple-l);
}

/* ─── CTA SECTION ─── */
.cta-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, .15) 0%, rgba(6, 182, 212, .1) 100%);
    border: 1px solid var(--border-p);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.cta-lead {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: .95rem;
}

/* ─── FOOTER ─── */
.site-footer {
    background: var(--void);
    border-top: 1px solid var(--border);
    padding: 3rem 0 0;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand p {
    font-size: .82rem;
    color: var(--muted);
    margin: .75rem 0 1rem;
    line-height: 1.6;
}

.footer-col h5 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .35);
    margin-bottom: .75rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.footer-col li a {
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    font-size: .82rem;
    transition: color .2s;
}

.footer-col li a:hover {
    color: var(--cyan);
}

.footer-hr {
    border: none;
    border-top: 1px solid var(--border);
}

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
}

.footer-copy {
    font-size: .75rem;
    color: rgba(255, 255, 255, .3);
}

.footer-disc {
    font-size: .72rem;
    color: rgba(255, 255, 255, .25);
    max-width: 500px;
    text-align: right;
}

.age-warn {
    color: var(--coral);
    font-weight: 700;
}

/* ─── FADE IN ─── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s, transform .7s;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── ANIMATION .animated ─── */
.animated .hbar-fill {
    width: var(--w, 0);
}

/* ─── PAGE HEADER (tech pages) ─── */
.page-header {
    background: linear-gradient(135deg, var(--deep) 0%, var(--void) 100%);
    border-bottom: 1px solid var(--border);
    padding: 4rem 2rem 3rem;
}

.page-header .container {}

.page-h1 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: .5rem;
}

.page-lead {
    color: var(--muted);
    font-size: .95rem;
}

.breadcrumb {
    font-size: .75rem;
    color: var(--muted);
    margin-bottom: .75rem;
}

.breadcrumb a {
    color: var(--cyan);
    text-decoration: none;
}

/* ─── SIDECAR LAYOUT ─── */
.sidecar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
}

.sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sb {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.sb-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .35);
    margin-bottom: .75rem;
}

.sb ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.sb li a {
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    transition: color .2s;
}

.sb li a:hover {
    color: var(--cyan);
}

.sb-cta {
    background: linear-gradient(135deg, rgba(124, 58, 237, .18), rgba(6, 182, 212, .12));
    border: 1px solid var(--border-p);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.sb-cta p {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ─── LANG SWITCHER ─── */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: var(--glass);
    border: 1px solid var(--border);
    color: rgba(255, 255, 255, .75);
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    padding: .38rem .75rem;
    border-radius: 50px;
    cursor: pointer;
    min-height: 36px;
    white-space: nowrap;
    transition: border-color .2s, background .2s;
}

.lang-btn:hover {
    border-color: var(--border-p);
    background: var(--glass-b);
}

.lang-btn .arrow {
    font-size: .6rem;
    opacity: .6;
    transition: transform .2s;
}

.lang-btn[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(13, 13, 43, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-p);
    border-radius: var(--radius);
    padding: .4rem;
    min-width: 180px;
    z-index: 200;
    box-shadow: var(--shadow-p);
}

.lang-dropdown.open {
    display: block;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    font-size: .82rem;
    font-family: var(--font-body);
    padding: .55rem .75rem;
    border-radius: 8px;
    transition: background .15s, color .15s;
}

.lang-dropdown a:hover {
    background: rgba(124, 58, 237, .15);
    color: var(--white);
}

.lang-dropdown a.current {
    background: rgba(124, 58, 237, .2);
    color: var(--purple-l);
    font-weight: 600;
}

@media (max-width: 520px) {
    .lang-dropdown {
        right: auto;
        left: 0;
    }

    /* Hide only the text label, keep flag + arrow visible */
    .lang-btn #lang-label {
        display: none;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1040px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .sidecar {
        grid-template-columns: 1fr;
    }

    .grid-5 {
        grid-template-columns: 1fr 1fr;
    }

    .stats-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .stats-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .cta-section {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 520px) {
    .header-wrap {
        padding: 0 1rem;
        gap: .5rem;
    }

    .logo-name {
        font-size: .8rem;
    }

    .logo-sub {
        display: none;
    }

    .header-wrap>div>.btn-play {
        font-size: .7rem;
        padding: .45rem .8rem;
        min-height: 36px;
    }

    .stats-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-disc {
        text-align: center;
    }

    .author-box {
        flex-direction: column;
    }

    .hero-content {
        padding: 4rem 1.25rem;
    }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}