/* ================================================================
   ASTRONAUT CRASH GAME — Global Styles
   Theme: Deep Space | Purple #7b2ff7 | Orange #ff6b35 | Cyan #00d4ff
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Inter:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;600;700&family=Noto+Nastaliq+Urdu:wght@400;700&family=Noto+Sans+Bengali:wght@400;600;700&display=swap');

:root {
    --space: #0a0a1a;
    --space2: #0d0d24;
    --space3: #12122e;
    --purple: #7b2ff7;
    --purple2: #5a1fcc;
    --purple3: #9b4fff;
    --orange: #ff6b35;
    --orange2: #e05520;
    --cyan: #00d4ff;
    --cyan2: #00a8d4;
    --green: #00ff88;
    --green2: #00cc6a;
    --gold: #ffd700;
    --white: #ffffff;
    --text: #d0d0e8;
    --text-dim: #8888aa;
    --border: rgba(123, 47, 247, 0.3);

    --grad-main: linear-gradient(135deg, #7b2ff7 0%, #ff6b35 100%);
    --grad-space: linear-gradient(180deg, #12122e 0%, #0a0a1a 100%);
    --grad-purple: linear-gradient(135deg, #5a1fcc 0%, #7b2ff7 100%);
    --grad-orange: linear-gradient(135deg, #ff6b35 0%, #ffd700 100%);
    --glow-purple: 0 0 20px rgba(123, 47, 247, 0.5), 0 0 40px rgba(123, 47, 247, 0.2);
    --glow-orange: 0 0 20px rgba(255, 107, 53, 0.5), 0 0 40px rgba(255, 107, 53, 0.2);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.2);
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 255, 136, 0.2);

    --radius: 12px;
    --radius-lg: 20px;
    --tr: 0.25s ease;
    --font-main: 'Inter', system-ui, sans-serif;
    --font-title: 'Orbitron', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--space);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

body.lang-ur {
    font-family: 'Noto Nastaliq Urdu', 'Inter', sans-serif;
    direction: rtl;
}

body.lang-hi {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

body.lang-bn {
    font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
}

/* Stars bg */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(255, 255, 255, 0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 60%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 40% 30%, rgba(0, 212, 255, 0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 75%, rgba(255, 255, 255, 0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 20%, rgba(123, 47, 247, 0.9) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 80% 55%, rgba(255, 255, 255, 0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 85%, rgba(0, 255, 136, 0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 90%, rgba(255, 215, 0, 0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 10%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 45%, rgba(0, 212, 255, 0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

body>* {
    position: relative;
    z-index: 1;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color var(--tr);
}

a:hover {
    color: var(--purple3);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: 1rem;
    background: var(--purple);
    color: var(--white);
    padding: .5rem 1rem;
    border-radius: var(--radius);
    font-size: .875rem;
}

.skip-link:focus {
    top: 1rem;
    z-index: 9999;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grad-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--glow-purple);
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-sub {
    font-size: .65rem;
    color: var(--text-dim);
    font-family: var(--font-main);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.main-nav a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
    transition: color var(--tr);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--purple3);
}

.lang-switcher {
    display: flex;
    gap: .4rem;
}

.lang-switcher a {
    font-size: .75rem;
    padding: .2rem .55rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
    transition: all var(--tr);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    border-color: var(--purple);
    color: var(--purple3);
    background: rgba(123, 47, 247, 0.1);
}

.nav-cta {
    background: var(--grad-main);
    color: var(--white) !important;
    padding: .5rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: .875rem;
    box-shadow: var(--glow-orange);
    transition: box-shadow var(--tr), transform var(--tr) !important;
    text-shadow: none;
}

.nav-cta:hover {
    box-shadow: var(--glow-purple);
    transform: translateY(-1px);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--tr);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(123, 47, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: var(--green);
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .9rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    }
}

.hero h1 {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero h1 .accent {
    color: var(--orange);
}

.hero h1 .accent2 {
    color: var(--purple3);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--grad-main);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 2rem;
    border-radius: 30px;
    box-shadow: var(--glow-orange);
    transition: transform var(--tr), box-shadow var(--tr);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
    color: var(--white);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--cyan);
    font-weight: 600;
    font-size: 1rem;
    padding: .85rem 2rem;
    border-radius: 30px;
    border: 1.5px solid var(--cyan);
    transition: all var(--tr);
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--glow-cyan);
    color: var(--cyan);
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold);
}

.hero-stat span {
    font-size: .75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ================================================================
   DEMO GAME SECTION
   ================================================================ */
.demo-section {
    padding: 4rem 0;
    background: var(--space2);
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: .5rem;
}

.section-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: .95rem;
    margin-bottom: 2.5rem;
}

.game-demo-wrap {
    background: #07071a;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glow-purple);
    max-width: 800px;
    margin: 0 auto;
}

.game-demo-header {
    background: var(--space3);
    padding: .75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.demo-label {
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.4);
    color: var(--orange);
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.demo-balance {
    font-family: var(--font-title);
    color: var(--gold);
    font-size: .9rem;
    font-weight: 700;
}

/* CRASH GAME CANVAS AREA */
#crash-canvas-wrap {
    position: relative;
    width: 100%;
    height: 340px;
    background: radial-gradient(ellipse at bottom left, #0d0825 0%, #070718 60%);
    overflow: hidden;
}

#crash-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.crash-multiplier {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: var(--glow-green);
    pointer-events: none;
    transition: color .2s;
}

.crash-multiplier.danger {
    color: var(--orange);
    text-shadow: var(--glow-orange);
}

.crash-multiplier.crashed {
    color: #ff3366;
    text-shadow: 0 0 30px #ff3366;
}

.crash-status {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: .8rem;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.5);
    padding: .25rem .75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.game-controls {
    background: var(--space3);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    border-top: 1px solid var(--border);
}

.ctrl-group label {
    display: block;
    font-size: .75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .4rem;
}

.ctrl-input {
    width: 100%;
    background: var(--space);
    border: 1px solid var(--border);
    color: var(--white);
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    padding: .6rem 1rem;
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--tr);
}

.ctrl-input:focus {
    border-color: var(--purple);
}

.ctrl-btn {
    font-family: var(--font-title);
    font-size: .9rem;
    font-weight: 700;
    padding: .7rem 1.75rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--tr);
    white-space: nowrap;
}

.ctrl-btn.bet {
    background: var(--grad-main);
    color: var(--white);
    box-shadow: var(--glow-orange);
}

.ctrl-btn.bet:hover {
    transform: translateY(-1px);
}

.ctrl-btn.bet:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.ctrl-btn.cashout {
    background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
    color: #000;
    box-shadow: var(--glow-green);
    display: none;
}

.ctrl-btn.cashout.visible {
    display: block;
}

.ctrl-btn.cashout:hover {
    transform: translateY(-1px);
}

.history-bar {
    background: var(--space);
    padding: .6rem 1.25rem;
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid var(--border);
}

.history-label {
    font-size: .7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    flex-shrink: 0;
}

.history-pill {
    font-family: var(--font-title);
    font-size: .75rem;
    font-weight: 700;
    padding: .15rem .55rem;
    border-radius: 4px;
}

.history-pill.low {
    background: rgba(255, 107, 53, 0.15);
    color: var(--orange);
}

.history-pill.mid {
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan);
}

.history-pill.high {
    background: rgba(0, 255, 136, 0.15);
    color: var(--green);
}

/* ================================================================
   FEATURES / CARDS
   ================================================================ */
.features-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feat-card {
    background: var(--space2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
    position: relative;
    overflow: hidden;
}

.feat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-main);
    opacity: 0;
    transition: opacity var(--tr);
}

.feat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(123, 47, 247, 0.5);
    box-shadow: var(--glow-purple);
}

.feat-card:hover::before {
    opacity: 1;
}

.feat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 8px rgba(123, 47, 247, 0.5));
}

.feat-card h3 {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .5rem;
}

.feat-card p {
    font-size: .9rem;
    color: var(--text-dim);
}

/* ================================================================
   STATS / DATA SECTION
   ================================================================ */
.data-section {
    padding: 4rem 0;
    background: var(--space2);
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

/* TABLES */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

caption {
    font-size: .78rem;
    color: var(--text-dim);
    text-align: left;
    padding: .5rem .75rem;
    background: var(--space3);
}

thead {
    background: var(--space3);
}

th {
    text-align: left;
    padding: .75rem 1rem;
    font-family: var(--font-title);
    font-size: .75rem;
    font-weight: 700;
    color: var(--purple3);
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    padding: .7rem 1rem;
    border-bottom: 1px solid rgba(123, 47, 247, 0.1);
    color: var(--text);
}

tr:last-child td {
    border-bottom: none;
}

tr.hl td {
    background: rgba(123, 47, 247, 0.06);
}

tr:hover td {
    background: rgba(123, 47, 247, 0.08);
}

/* CHART BARS */
.chart-wrap {
    background: var(--space3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.chart-title {
    font-family: var(--font-title);
    font-size: .85rem;
    font-weight: 700;
    color: var(--purple3);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1.25rem;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .85rem;
}

.bar-label {
    min-width: 110px;
    font-size: .83rem;
    color: var(--text);
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 12px;
    background: rgba(123, 47, 247, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1.2s ease;
}

.bar-fill.purple {
    background: var(--grad-purple);
}

.bar-fill.orange {
    background: var(--grad-orange);
}

.bar-fill.cyan {
    background: linear-gradient(90deg, var(--cyan2), var(--cyan));
}

.bar-fill.green {
    background: linear-gradient(90deg, var(--green2), var(--green));
}

.bar-val {
    font-family: var(--font-title);
    font-size: .83rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 55px;
    text-align: right;
    flex-shrink: 0;
}

/* Donut chart (CSS only) */
.donut-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.donut-svg {
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(123, 47, 247, 0.4));
}

.donut-legend {
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .7rem;
    font-size: .85rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-item strong {
    color: var(--white);
}

.legend-item span {
    color: var(--text-dim);
    font-size: .78rem;
}

/* ================================================================
   SEO ARTICLE CONTENT
   ================================================================ */
.seo-section {
    padding: 4rem 0;
}

.seo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.seo-article h2 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--white);
    margin: 2rem 0 .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

.seo-article h2:first-child {
    margin-top: 0;
}

.seo-article h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--purple3);
    margin: 1.5rem 0 .5rem;
}

.seo-article p {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.seo-article ul,
.seo-article ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.seo-article li {
    margin-bottom: .4rem;
}

.text-link {
    color: var(--cyan);
    text-decoration: underline;
    text-decoration-color: rgba(0, 212, 255, 0.4);
}

.text-link:hover {
    color: var(--purple3);
}

/* Sidebar */
.seo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-card {
    background: var(--space2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.side-card h4 {
    font-family: var(--font-title);
    font-size: .85rem;
    color: var(--purple3);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1rem;
}

.side-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(123, 47, 247, 0.1);
    font-size: .875rem;
}

.side-stat:last-child {
    border-bottom: none;
}

.side-stat span {
    color: var(--text-dim);
}

.side-stat strong {
    color: var(--gold);
    font-family: var(--font-title);
}

/* ================================================================
   FAQ
   ================================================================ */
.faq-section {
    padding: 4rem 0;
    background: var(--space2);
}

.faq-list {
    max-width: 780px;
    margin: 2.5rem auto 0;
}

.faq-item {
    background: var(--space3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: .85rem;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1.1rem 1.5rem;
    color: var(--white);
    font-size: .95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    transition: color var(--tr);
}

.faq-q:hover {
    color: var(--purple3);
}

.faq-q::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--purple3);
    flex-shrink: 0;
    transition: transform var(--tr);
}

.faq-item.open .faq-q::after {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding: 0 1.5rem;
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.7;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding-bottom: 1.25rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: var(--space3);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: .875rem;
    color: var(--text-dim);
    margin-top: .75rem;
    max-width: 260px;
}

.footer-col h5 {
    font-family: var(--font-title);
    font-size: .78rem;
    color: var(--purple3);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 1rem;
}

.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-col nav a {
    font-size: .875rem;
    color: var(--text-dim);
}

.footer-col nav a:hover {
    color: var(--purple3);
}

.footer-cta h5 {
    font-family: var(--font-title);
    font-size: .78rem;
    color: var(--purple3);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: .75rem;
}

.footer-cta p {
    font-size: .85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .8rem;
    color: var(--text-dim);
}

.footer-langs {
    display: flex;
    gap: .5rem;
}

.footer-langs a {
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: .15rem .5rem;
    border-radius: 4px;
    font-size: .75rem;
}

.footer-langs a:hover {
    color: var(--purple3);
    border-color: var(--purple);
}

/* ================================================================
   RESPONSIBLE WARNING
   ================================================================ */
.resp-bar {
    background: rgba(255, 107, 53, 0.08);
    border-top: 1px solid rgba(255, 107, 53, 0.25);
    padding: .75rem 0;
    text-align: center;
    font-size: .8rem;
    color: var(--text-dim);
}

.resp-bar a {
    color: var(--orange);
}

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--text-dim);
    padding: .75rem 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-dim);
}

.breadcrumb a:hover {
    color: var(--purple3);
}

.breadcrumb span {
    color: var(--purple3);
}

/* ================================================================
   ROCKET ANIMATION (hero right side)
   ================================================================ */
.rocket-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.rocket-svg {
    animation: rocket-fly 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.7));
}

@keyframes rocket-fly {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(123, 47, 247, 0.3);
    animation: spin 8s linear infinite;
}

.orbit-ring-1 {
    width: 200px;
    height: 200px;
    animation-duration: 8s;
}

.orbit-ring-2 {
    width: 280px;
    height: 280px;
    animation-duration: 12s;
    animation-direction: reverse;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-dot-1 {
    background: var(--green);
    box-shadow: var(--glow-green);
}

.orbit-dot-2 {
    background: var(--cyan);
    box-shadow: var(--glow-cyan);
}

.multiplier-float {
    position: absolute;
    font-family: var(--font-title);
    font-weight: 900;
    color: var(--green);
    text-shadow: var(--glow-green);
    animation: float-up 4s ease-in-out infinite;
    pointer-events: none;
}

.mf-1 {
    top: 20%;
    left: 5%;
    font-size: 1.2rem;
    animation-delay: 0s;
}

.mf-2 {
    top: 60%;
    left: 0%;
    font-size: .9rem;
    animation-delay: 1.3s;
    color: var(--cyan);
    text-shadow: var(--glow-cyan);
}

.mf-3 {
    top: 15%;
    right: 5%;
    font-size: 1.5rem;
    animation-delay: 0.7s;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

.mf-4 {
    top: 55%;
    right: 0%;
    font-size: 1rem;
    animation-delay: 2s;
}

.mf-5 {
    bottom: 15%;
    left: 20%;
    font-size: .8rem;
    animation-delay: 1.8s;
    color: var(--orange);
    text-shadow: var(--glow-orange);
}

@keyframes float-up {

    0%,
    100% {
        transform: translateY(0);
        opacity: .8;
    }

    50% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .rocket-wrap {
        min-height: 220px;
    }

    .data-grid {
        grid-template-columns: 1fr;
    }

    .seo-grid {
        grid-template-columns: 1fr;
    }

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

    .game-controls {
        grid-template-columns: 1fr 1fr;
    }
}

/* ================================================================
   MOBILE NAV OVERLAY
   ================================================================ */
@media (max-width: 860px) {
    .main-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(7, 7, 20, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        padding: 5rem 2rem 3rem;
        z-index: 200;
        overflow-y: auto;
        /* Hidden by default */
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                    opacity 0.35s ease;
    }

    .main-nav.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Page links in mobile nav */
    .main-nav > a {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--text);
        padding: 1rem 0;
        border-bottom: 1px solid rgba(123, 47, 247, 0.2);
        width: 100%;
        transition: color var(--tr), padding-left var(--tr);
        text-decoration: none;
    }

    .main-nav > a:first-of-type {
        border-top: 1px solid rgba(123, 47, 247, 0.2);
    }

    .main-nav > a:hover,
    .main-nav > a[aria-current="page"] {
        color: var(--purple3);
        padding-left: .75rem;
    }

    /* Lang switcher in mobile nav */
    .lang-switcher {
        margin-top: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
        width: 100%;
    }

    .lang-switcher a {
        font-size: .9rem;
        padding: .35rem .8rem;
    }

    /* CTA button in mobile nav */
    .nav-cta {
        margin-top: 2rem;
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
        border-radius: var(--radius) !important;
    }

    .burger {
        display: flex;
        position: relative;
        z-index: 300;
    }

    /* Burger → X animation */
    .burger[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .burger[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .burger[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

    .game-controls {
        grid-template-columns: 1fr;
    }

    .donut-wrap {
        flex-direction: column;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .rocket-wrap {
        display: none;
    }
}

/* ================================================================
   FOOTER LEGAL
   ================================================================ */
.footer-legal {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0 1rem;
    margin-top: 1.5rem;
}

.footer-legal nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}

.footer-legal nav a {
    font-size: .8rem;
    color: var(--text-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal nav a:hover {
    color: var(--cyan);
}

/* ================================================================
   FOCUS VISIBLE — Accessibility
   ================================================================ */
:focus-visible {
    outline: 2px solid var(--purple3);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
    .site-header,
    .burger,
    .demo-section,
    .hero-btns,
    .nav-cta,
    .resp-bar,
    .site-footer .btn-primary {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    a {
        color: #000;
    }
}

/* ================================================================
   REDUCE MOTION — Accessibility
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ================================================================
   HIGH CONTRAST MODE
   ================================================================ */
@media (forced-colors: active) {
    .btn-primary,
    .btn-secondary,
    .nav-cta {
        border: 2px solid ButtonText;
    }
}