@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=JetBrains+Mono:wght@400;700&family=Outfit:wght@300;400;700&display=swap');

:root {
    /* Industrial Realism Palette (Default) */
    --bg-main: #e0e5ec;
    --bg-panel: #f0f2f5;
    --bg-recessed: #d1d9e6;
    --text-main: #2d3436;
    --text-muted: #4a5568;
    --accent-primary: #ff4757; /* Safety Orange / Braun Red */
    --accent-secondary: #ff6b81;
    --border-color: #babecc;
    --border-light: #ffffff;
    --border-dark: #a3b1c6;
    
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Neumorphic Shadows (Top-Left Lighting) */
    --shadow-card: 8px 8px 16px #babecc, -8px -8px 16px #ffffff;
    --shadow-floating: 12px 12px 24px #babecc, -12px -12px 24px #ffffff, inset 1px 1px 0 rgba(255,255,255,0.5);
    --shadow-btn: 4px 4px 8px #babecc, -4px -4px 8px #ffffff;
    --shadow-pressed: inset 4px 4px 8px #babecc, inset -4px -4px 8px #ffffff;
    --shadow-recessed: inset 4px 4px 8px #babecc, inset -4px -4px 8px #ffffff;
    --shadow-sharp: 4px 4px 8px rgba(0,0,0,0.15), -1px -1px 1px rgba(255,255,255,0.8);
    --shadow-glow: 0 0 10px 2px rgba(255, 71, 87, 0.4);
    
    /* Utility */
    --glass-blur: none; /* Removed for solid materials */
    --player-bg: #d1d9e6;
}

/* Optional Dark Panel Mode (For Hacker vibe) - 1980s Retro Mainframe */
[data-theme="hacker"] {
    --bg-main: #111411;
    --bg-panel: #1a1e1a;
    --bg-recessed: #0a0c0a;
    --text-main: #00ff41; /* Phosphor Green */
    --text-muted: #1e8736;
    --accent-primary: #00ff41;
    --accent-secondary: #008f11;
    --border-color: #1a241a;
    --border-light: #2c422c;
    --border-dark: #050805;
    
    --shadow-card: 8px 8px 16px #080a08, -8px -8px 16px #1a1e1a;
    --shadow-floating: 12px 12px 24px #080a08, -12px -12px 24px #1a1e1a, inset 1px 1px 0 rgba(0,255,65,0.2);
    --shadow-btn: 4px 4px 8px #080a08, -4px -4px 8px #1a1e1a;
    --shadow-pressed: inset 4px 4px 8px #050805, inset -4px -4px 8px #1a1e1a;
    --shadow-recessed: inset 4px 4px 8px #080a08, inset -4px -4px 8px #1a1e1a;
    --shadow-glow: 0 0 15px 2px rgba(0, 255, 65, 0.4);
    --player-bg: #0a0c0a;
}

/* Singularity Reactor Vibe - Deep Space Obsidian with Cyan/Magenta glows */
[data-theme="cyberpunk"] {
    --bg-main: #0c0d12;
    --bg-panel: #14151c;
    --bg-recessed: #06070a;
    --text-main: #f0f4ff;
    --text-muted: #95a5c6; /* Boosted readability */
    --accent-primary: #00f3ff; /* Reactor Cyan */
    --accent-secondary: #ff00ff;
    --border-color: #1a1d29;
    --border-light: #2e344e;
    --border-dark: #050508;
    
    --shadow-card: 8px 8px 16px #06070a, -8px -8px 16px #12141c;
    --shadow-floating: 12px 12px 24px #06070a, -12px -12px 24px #14151c, inset 1px 1px 0 rgba(0, 243, 255, 0.3);
    --shadow-btn: 4px 4px 8px #06070a, -4px -4px 8px #12141c;
    --shadow-pressed: inset 4px 4px 8px #050508, inset -4px -4px 8px #14151c;
    --shadow-recessed: inset 4px 4px 8px #06070a, inset -4px -4px 8px #14151c;
    --shadow-glow: 0 0 20px 4px rgba(0, 243, 255, 0.6);
    --player-bg: #06070a;
}

/* Light Industrial (Minimal) - Braun / Teenage Engineering */
[data-theme="nature"] {
    --bg-main: #e0e5ec;
    --bg-panel: #f0f2f5;
    --bg-recessed: #d1d9e6;
    --text-main: #2d3436;
    --text-muted: #4a5568;
    --accent-primary: #ff4757; /* Safety Orange */
    --accent-secondary: #ff6b81;
    --border-color: #babecc;
    --border-light: #ffffff;
    --border-dark: #a3b1c6;
    
    --shadow-card: 8px 8px 16px #babecc, -8px -8px 16px #ffffff;
    --shadow-floating: 12px 12px 24px #babecc, -12px -12px 24px #ffffff, inset 1px 1px 0 rgba(255,255,255,0.5);
    --shadow-btn: 4px 4px 8px #babecc, -4px -4px 8px #ffffff;
    --shadow-pressed: inset 4px 4px 8px #babecc, inset -4px -4px 8px #ffffff;
    --shadow-recessed: inset 4px 4px 8px #babecc, inset -4px -4px 8px #ffffff;
    --shadow-glow: 0 0 10px 2px rgba(255, 71, 87, 0.4);
    --player-bg: #d1d9e6;
}

* { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
    position: relative;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

a, button, .mobile-item-btn, .mobile-menu-btn {
    touch-action: manipulation;
}

/* Hide scrollbar for Chrome, Safari, Opera */
::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* ── NAVBAR ── */
.navbar, header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: var(--bg-main);
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
    transition: all 0.4s ease;
    gap: 12px;
    flex-wrap: nowrap;
    min-width: 0;
}

.logo {
    font-weight: 800;
    font-size: clamp(16px, 3.5vw, 24px);
    letter-spacing: 2px;
    color: var(--text-main);
    text-shadow: 1px 1px 0px var(--border-light);
    flex-shrink: 0;
    white-space: nowrap;
}

.logo span {
    color: var(--text-muted);
    font-weight: 600;
    font-size: clamp(12px, 2.5vw, 16px);
    margin-left: 8px;
    letter-spacing: 1px;
}

/* ── THEME SWITCHER (Mini in Navbar) ── */
.theme-switcher-mini {
    display: flex;
    gap: clamp(4px, 1vw, 10px);
    flex-shrink: 1;
    min-width: 0;
}
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.theme-btn:hover, .theme-btn.active {
    background: var(--accent-primary);
    color: var(--bg-main);
    box-shadow: var(--glow-shadow);
}

.nav-links {
    display: flex;
    gap: clamp(8px, 2vw, 20px);
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.nav-btn {
    background: var(--accent-primary);
    border: none;
    color: var(--border-light);
    padding: 10px 24px !important;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-btn);
}
.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-floating);
}
.nav-btn:active {
    transform: translateY(2px);
    box-shadow: var(--shadow-pressed);
}

/* ── LANDING PAGE LAYOUT ── */
.landing-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

/* ── HERO SECTION ── */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
    min-height: 70vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: var(--bg-recessed);
    color: var(--accent-primary);
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-recessed);
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-content h1 {
    font-size: clamp(28px, 4.5vw, 66px);
    line-height: 1.1;
    margin: 0 0 24px 0;
    letter-spacing: -1.5px;
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--accent-primary);
    text-shadow: 1px 1px 0px var(--border-light), 0 0 10px rgba(255, 71, 87, 0.4);
    display: block;
    white-space: nowrap;
}

.hero-content p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.cta-primary, .cta-secondary {
    padding: 16px 36px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.cta-primary {
    background: var(--accent-primary);
    color: var(--border-light);
    border: none;
    box-shadow: var(--shadow-floating);
}

.cta-primary:hover {
    filter: brightness(1.1);
}

.cta-primary:active {
    transform: translateY(2px);
    box-shadow: var(--shadow-pressed);
}

.cta-secondary {
    background: var(--bg-main);
    color: var(--text-main);
    border: none;
    box-shadow: var(--shadow-card);
}

.cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-floating);
}
.cta-secondary:active {
    transform: translateY(2px);
    box-shadow: var(--shadow-pressed);
}

.hero-player-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── VIBE SELECTOR (SHOWCASE TABS) ── */
.vibe-selector {
    display: flex;
    gap: 10px;
    background: var(--bg-panel);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 5px;
    backdrop-filter: var(--glass-blur);
}

.vibe-tab {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.vibe-tab:hover {
    color: var(--text-main);
    background: rgba(128, 128, 128, 0.1);
}

.vibe-tab.active {
    color: var(--bg-main);
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
    font-weight: bold;
}

/* ── PREMIUM FX PANEL ── */
.fx-panel-premium {
    background: var(--bg-main);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: var(--shadow-card);
    position: relative;
}


.fx-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 6px;
    flex-wrap: nowrap !important;
}

.fx-title {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: clamp(9px, 2.2vw, 12px);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selectable-badge {
    display: none;
    font-family: var(--font-mono);
    font-size: clamp(8.5px, 2vw, 10px);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.fx-scatter, .fx-scatter canvas, .fx-scatter pre {
    touch-action: none !important;
}

/* ── FEATURES SECTION ── */
.features-section {
    background: var(--bg-panel);
    padding: 100px 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-section h2 {
    font-size: 42px;
    margin-bottom: 60px;
    color: var(--accent-primary);
    text-shadow: var(--glow-shadow);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-main);
    border: none;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    position: relative;
}

/* Bolted Corners */
.feature-card::before, .feature-card::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 2px, transparent 3px);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3), 1px 1px 1px rgba(255,255,255,0.7);
}
.feature-card::before { top: 12px; left: 12px; }
.feature-card::after { bottom: 12px; right: 12px; }

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-floating);
}

.feature-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── PRICING SECTION ── */
.pricing-section {
    padding: 100px 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── MASCOT SHOWCASE SECTION ── */
.mascot-showcase {
    padding: 70px 40px 110px 40px;
    text-align: center;
    max-width: 1200px;
    margin: 50px auto 120px auto;
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: var(--bg-panel);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mascot-showcase {
        padding: 45px 20px 80px 20px;
        margin: 30px auto 80px auto;
    }
}

.mascot-showcase h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.mascot-showcase p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.mascot-grid-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.mascot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    width: 100%;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .mascot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mascot-toolbar {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.mascot-btn {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 12px 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    transition: all 200ms ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-btn);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.mascot-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-floating), var(--shadow-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.mascot-btn:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-pressed);
}

/* LED Indicator Dot */
.mascot-btn::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s;
    flex-shrink: 0;
}

.mascot-btn:hover::before {
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
}

/* Special Button Accent Variations */
.mascot-btn.btn-slime:hover::before {
    background: #00ff66;
    box-shadow: 0 0 10px #00ff66;
}
.mascot-btn.btn-slime:hover {
    border-color: #00ff66;
    color: #00ff66;
}

.mascot-btn.btn-bomb:hover::before {
    background: #ff4757;
    box-shadow: 0 0 10px #ff4757;
}
.mascot-btn.btn-bomb:hover {
    border-color: #ff4757;
    color: #ff4757;
}

.mascot-btn.btn-turret:hover::before {
    background: #eccc68;
    box-shadow: 0 0 10px #eccc68;
}
.mascot-btn.btn-turret:hover {
    border-color: #eccc68;
    color: #eccc68;
}

.mascot-btn.btn-blackhole:hover::before {
    background: #70a1ff;
    box-shadow: 0 0 10px #70a1ff;
}
.mascot-btn.btn-blackhole:hover {
    border-color: #70a1ff;
    color: #70a1ff;
}

.mascot-btn.btn-clear {
    width: auto;
    padding: 12px 28px;
    border-color: rgba(255, 71, 87, 0.35);
}
.mascot-btn.btn-clear::before {
    background: #ff4757;
}
.mascot-btn.btn-clear:hover {
    background: rgba(255, 71, 87, 0.12);
    border-color: #ff4757;
    color: #ff4757;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.35);
}

.mascot-btn.btn-mute-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: var(--border-light);
    background: var(--bg-main);
    box-shadow: var(--shadow-btn);
    cursor: pointer;
    flex-shrink: 0;
}
.mascot-btn.btn-mute-icon::before {
    display: none;
}
.mascot-btn.btn-mute-icon.is-muted {
    border-color: rgba(255, 71, 87, 0.6) !important;
    background: rgba(255, 71, 87, 0.12) !important;
}

.pricing-section h2 {
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 800;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    align-items: center;
}

@media (max-width: 1024px) {
    .pricing-grid {
        gap: 36px;
    }
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        max-width: 480px;
        margin: 0 auto;
    }

    .price-card.premium {
        transform: scale(1) !important;
        margin: 10px 0;
    }

    .price-card.premium:hover {
        transform: translateY(-5px) !important;
    }
}

.price-card {
    background: var(--bg-main);
    border: none;
    padding: 48px 26px 40px 26px;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* Bolted Corners & Hanging Hole */
.price-card::before, .price-card::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 2px, transparent 3px);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3), 1px 1px 1px rgba(255,255,255,0.7);
}
.price-card::before { top: 16px; left: 16px; }
.price-card::after { top: 16px; right: 16px; }

/* The Hanging Hole at top center */
.price-card .hole {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-main); /* Cut through */
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2), inset -1px -1px 2px rgba(255,255,255,0.8);
    z-index: 5;
}

.price-card.premium .hole {
    display: none;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-floating);
}

.price-card.premium {
    background: var(--bg-panel);
    border: none;
    box-shadow: var(--shadow-floating), 0 0 15px rgba(255, 71, 87, 0.1);
    transform: scale(1.05);
    z-index: 2;
}

.price-card.premium:hover {
    transform: scale(1.05) translateY(-5px);
}

.price-card .tag {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: var(--border-light);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sharp);
    white-space: nowrap;
    z-index: 10;
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.price-card .price {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--text-main);
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    text-align: left;
    flex-grow: 1;
}

.price-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.price-card ul li::before {
    content: '→';
    color: var(--accent-primary);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px;
}

.buy-btn {
    width: 100%;
    padding: 18px;
    background: var(--bg-recessed);
    border: none;
    color: var(--text-main);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-card);
    text-transform: uppercase;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-floating);
}
.buy-btn:active {
    transform: translateY(2px);
    box-shadow: var(--shadow-pressed);
}

.price-card.premium .buy-btn {
    background: var(--accent-primary);
    color: var(--border-light);
    box-shadow: var(--shadow-floating);
}

.price-card.premium .buy-btn:hover {
    filter: brightness(1.1);
}
.price-card.premium .buy-btn:active {
    box-shadow: var(--shadow-pressed);
}

/* ── FX PANEL (Mini Layout) ── */
.fx-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 10px;
    width: 100%;
}
.fx-btn {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.fx-btn:hover, .fx-btn.active {
    background: var(--accent-primary);
    color: var(--bg-main);
    box-shadow: var(--shadow-glow);
}

/* ── FX VISUAL CLASSES (SVG Character & Text Displacement) ── */

/* BRAILLE PIXEL MODE (High Density Matrix Terminal) */
.widget-player.fx-braille .ascii-canvas,
.widget-player.fx-braille .ascii-player {
    filter: contrast(200%) brightness(130%) drop-shadow(0 0 12px rgba(0, 255, 170, 0.9));
    color: #00ffaa !important;
    background: #02120b !important;
    border: 1px solid #00ffaa !important;
    box-shadow: 0 0 35px rgba(0, 255, 170, 0.4), inset 0 0 25px rgba(0, 255, 170, 0.25);
}

/* TEXT SCATTER MODE (Interactive Character Repulsion) */
.widget-player.fx-scatter .ascii-canvas,
.widget-player.fx-scatter .ascii-player {
    cursor: pointer !important;
}

/* PLASMA (SVG Organic Wave) */
.widget-player.fx-plasma .ascii-canvas,
.widget-player.fx-plasma .ascii-player {
    filter: url(#plasma-filter);
}

/* SHRED (Real ASCII Frame Site Spill) */
.widget-player.shred-wiped {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.95);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
.widget-player.fx-lens {
    overflow: hidden !important;
    border-radius: 20px !important;
    transform: perspective(600px) rotateX(5deg);
    transform-origin: center center;
    animation: crt-bulge-pulse 4s ease-in-out infinite alternate;
}

.widget-player.fx-lens .ascii-canvas,
.widget-player.fx-lens .ascii-player {
    filter: url(#lens-filter) contrast(1.15);
    border-radius: 24px;
    box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 243, 255, 0.3);
}

@keyframes crt-bulge-pulse {
    0% { transform: perspective(600px) rotateX(5deg) scale(1); }
    100% { transform: perspective(550px) rotateX(7deg) scale(1.03); }
}



/* ── WIDGET SIDEBAR ── */
.blog-sidebar {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--glow-shadow);
    height: fit-content;
}

.widget-title {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* ── PLAYER STYLES (Widget Sized) ── */
.widget-player {
    position: relative;
    background: var(--player-bg);
    border-radius: 4px;
    width: 100%;
    aspect-ratio: 16 / 9; /* Automatically scales height based on width */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.ascii-player {
    font-family: 'Courier New', Courier, var(--font-mono);
    white-space: pre;
    overflow: hidden;
    font-size: 8px;
    line-height: 8px;
    font-weight: 400; /* Reduced from bold to prevent optical bloat on bright colors */
    letter-spacing: 0px; /* Base spacing (overridden in JS for Katakana) */
    color: transparent; /* Handled in JS for Pixel mode, overridden below */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: auto;
    display: none;
    user-select: text;
    margin: 0;
}

.ascii-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: none;
}

.play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    cursor: pointer;
}
.play-overlay.hidden { display: none; }

.play-btn {
    width: 60px; height: 60px;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px;
    box-shadow: var(--glow-shadow);
}
.play-btn::after {
    content: ''; display: block;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--accent-primary);
    margin-left: 5px;
}
.play-label {
    color: var(--text-main);
    font-family: var(--font-mono);
    letter-spacing: 2px;
}

.status {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-primary);
    margin-top: 15px;
}

/* ── ANIMATIONS ── */
@keyframes pause-tremble {
    0%, 100% { transform: translate(0, 0); }
    15%  { transform: translate(-1px, 1px); }
    35%  { transform: translate(1px, -1px); }
    55%  { transform: translate(-1px, -1px); }
    75%  { transform: translate(1px, 1px); }
}

.widget-player.paused, .bg-player.paused {
    filter: saturate(0.35) brightness(0.65) contrast(1.15);
    cursor: pointer;
    animation: pause-tremble 0.12s steps(3) infinite;
}
.widget-player.paused .ascii-player, .bg-player.paused .ascii-player { pointer-events: none; }

/* ── ASCILINE MASCOTS ── */
#overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none; /* Clicks pass through to page */
    background: transparent;
    overflow: hidden;
}

.ascii-mascot-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 27px;
    background: transparent;
    pointer-events: auto; /* mascot box is interactive */
    touch-action: none !important; /* Prevent mobile drag gestures from canceling touchmove */
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
    z-index: 99999;
    cursor: grab !important;
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* Hidden while JSON animation is loading */
.ascii-mascot-wrapper.mascot-loading {
    opacity: 0;
    pointer-events: none;
}

.ascii-mascot-wrapper:active {
    cursor: grabbing !important;
}

.mascot-drag-hint {
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-bottom: 10px;
    transform: translateX(-50%) translateY(0);
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 11px;
    font-weight: bold;
    color: var(--accent-primary, #00f3ff);
    background: rgba(5, 5, 5, 0.92);
    border: 1px solid var(--accent-primary, #00f3ff);
    border-radius: 6px;
    padding: 4px 10px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 100000;
    box-shadow: 0 0 14px rgba(0, 243, 255, 0.4);
}

.ascii-mascot-wrapper.show-hint .mascot-drag-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

.ascii-mascot-pre {
    font-family: 'Courier New', monospace;
    white-space: pre;
    font-size: 10px;
    line-height: 9px;
    font-weight: bold;
    color: var(--accent-color);
    background: transparent;
    margin: 0;
    padding: 0;
    pointer-events: auto;
    text-shadow: 0 0 3px var(--accent-color);
    user-select: text;
}

.ascii-mascot-pre::selection {
    background: rgba(0, 243, 255, 0.3);
    color: #fff;
}

.colored-mascot-pre {
    line-height: 8px !important;
    font-size: 8px !important;
    letter-spacing: 0px !important;
    text-shadow: none !important;
    font-weight: normal !important;
    user-select: none !important;
}

.colored-mascot-pre span {
    user-select: text !important;
}

/* ── ASCII AQUARIUM STYLING ── */
.aquarium-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                margin 0.6s ease;
    pointer-events: none;
}

.aquarium-wrapper.visible {
    opacity: 1;
    max-height: 450px;
    margin-top: 60px;
    margin-bottom: 60px;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.asciline-water {
    width: 100%;
    height: 320px;
    margin: 0 auto;
    background: rgba(10, 25, 49, 0.95);
    border: 2px solid #00d2d3;
    border-radius: 12px;
    box-shadow: inset 0 0 35px rgba(0, 210, 211, 0.25), 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ascii-aquarium-render {
    width: 100% !important;
    height: 100% !important;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px !important;
    line-height: 11px !important;
    letter-spacing: 0px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    display: block;
    text-align: left;
}

/* ── CEILING SHAKE / HEADBUTT ANIMATION ── */
@keyframes headbutt-shake {
    0% { transform: translateY(0); }
    20% { transform: translateY(-5px); }
    40% { transform: translateY(3px); }
    60% { transform: translateY(-1.5px); }
    80% { transform: translateY(0.5px); }
    100% { transform: translateY(0); }
}

.headbutt-shake {
    animation: headbutt-shake 0.35s ease-out;
    display: inline-block; /* Required for transform translation on spans */
}

/* ── SPIDER WEB ── */
.spider-web-line {
    position: absolute;
    bottom: 100%; /* Anchor to the top of the spider wrapper */
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    line-height: 9px;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 3px var(--accent-color);
    pointer-events: none;
    text-align: center;
    white-space: pre;
    /* Height will be updated dynamically via JS */
}

/* ── FIREWORKS ── */
.ascii-firework-container {
    position: absolute;
    pointer-events: none; /* Let container pass clicks */
    z-index: 9998;
}

.firework-launch-trail {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    pointer-events: auto;
    user-select: text;
    text-shadow: 0 0 5px currentColor;
    transform: translate(-50%, -100%);
}

.firework-particle {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    pointer-events: auto; /* Particles themselves are selectable */
    user-select: text;
    text-shadow: 0 0 5px currentColor;
    transform-origin: center;
}

.firework-particle::selection, .firework-launch-trail::selection, .firework-launch-trail span::selection {
    background: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* ── DO NOT PRESS BUTTON ── */
.do-not-press-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff003c;
    color: #fff;
    border: 2px solid #ff003c;
    padding: 15px 30px;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.6);
    z-index: 10000;
    transition: all 0.3s ease;
    animation: pulse-danger 2s infinite;
}

.do-not-press-btn:hover {
    background: #cc0030;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.9);
}

@keyframes pulse-danger {
    0% { box-shadow: 0 0 10px rgba(255, 0, 60, 0.4); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 60, 0.8); }
    100% { box-shadow: 0 0 10px rgba(255, 0, 60, 0.4); }
}

/* ── APOCALYPSE SHAKE ── */
@keyframes apocalypse-shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
.apocalypse-active {
    animation: apocalypse-shake 0.5s infinite;
    overflow: hidden !important;
    max-width: 100vw !important;
}

/* ── MOCK CHECKOUT MODAL ── */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.checkout-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.checkout-modal {
    background: #ffffff;
    width: 90%;
    max-width: 650px;
    min-height: 500px;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.checkout-overlay.active .checkout-modal {
    transform: translateY(0);
}

.checkout-header {
    background: #f7f9fa;
    padding: 25px 30px;
    border-bottom: 1px solid #e6e8eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 600;
}

.checkout-close {
    cursor: pointer;
    color: #666;
    font-size: 24px;
    line-height: 1;
}

.checkout-body {
    padding: 50px 40px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkout-body p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.paddle-mock-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    width: 100%;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.paddle-mock-btn:hover { background: #333; }

/* ── EXPLOSION SHATTERED STATE (Hide Shells) ── */
[data-shattered="true"] {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
[data-shattered="true"]::before, [data-shattered="true"]::after {
    display: none !important;
}

/* ── COMPREHENSIVE RESPONSIVE & MOBILE ENGINE ── */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 40px auto;
        padding: 0 24px;
        min-height: auto;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-content p {
        max-width: 100%;
    }

    .cta-group {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .vibe-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    #secondary-player {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .navbar, header {
        position: sticky !important;
        top: 0 !important;
    }

    .vibe-selector {
        flex-direction: column;
        gap: 6px;
    }

    .vibe-tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-primary, .cta-secondary {
        width: 100%;
        text-align: center;
    }

    .features-section {
        padding: 60px 20px;
    }

    .features-section h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .feature-card {
        padding: 24px;
    }

    .do-not-press-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .aquarium-wrapper.visible {
        max-height: 300px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .asciline-water {
        height: 220px !important;
    }

    /* Dynamically scale down mascot ASCII art pre on mobile so dolphin fits inside tank */
    .ascii-mascot-pre {
        font-size: clamp(5px, 1.6vw, 9px) !important;
        line-height: clamp(4.5px, 1.5vw, 8px) !important;
    }

    .fx-panel-premium {
        padding: 14px;
    }

    #charset-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
        padding: 8px 10px !important;
    }

    #charset-select {
        width: 100%;
        font-size: 13px !important;
        padding: 8px 10px !important;
        border-radius: 6px;
        min-height: 38px;
    }

    .fx-buttons {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .fx-btn {
        padding: 8px 4px !important;
        font-size: 10px !important;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .mascot-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .mascot-btn {
        min-height: 44px;
        font-size: 11px !important;
        padding: 10px 6px !important;
    }
}

@media (max-width: 480px) {
    .navbar, header {
        padding: 10px 12px !important;
        gap: 6px !important;
    }

    .logo span {
        display: none !important;
    }

    .fx-panel-header {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 4px !important;
    }
}

@media (max-width: 420px) {
    .fx-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .badge {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* ── Mascot Shake Animations ── */
@keyframes pokeball-wiggle {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-20deg); }
    40% { transform: rotate(20deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pokeball-flash {
    0% { filter: brightness(1) drop-shadow(0 0 0px transparent); }
    15% { filter: brightness(2.5) sepia(1) hue-rotate(30deg) saturate(5) drop-shadow(0 0 25px yellow); }
    50% { filter: brightness(1.8) sepia(0.8) hue-rotate(20deg) saturate(3) drop-shadow(0 0 15px yellow); }
    100% { filter: brightness(1) drop-shadow(0 0 0px transparent); }
}

/* ══════════════════════════════════════════════════════════════
   EXCALIBUR SECTION
══════════════════════════════════════════════════════════════ */
.excalibur-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 60px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(185, 195, 212, 0.35) 15%, rgba(185, 195, 212, 0.35) 85%, transparent 100%);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
    border-top: 1px solid rgba(180, 150, 40, 0.25);
    border-bottom: 1px solid rgba(180, 150, 40, 0.25);
}

[data-theme="hacker"] .excalibur-section,
[data-theme="cyberpunk"] .excalibur-section {
    background: linear-gradient(180deg, rgba(13,17,23,0) 0%, rgba(18,22,33,0.85) 15%, rgba(18,22,33,0.85) 85%, rgba(13,17,23,0) 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.excalibur-divider {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    white-space: pre;
    color: var(--text-muted);
    font-size: 14px;
    opacity: 0.6;
    user-select: none;
}

[data-theme="hacker"] .excalibur-divider,
[data-theme="cyberpunk"] .excalibur-divider {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    white-space: pre;
    color: var(--text-muted);
    font-size: 14px;
    opacity: 0.6;
    user-select: none;
}

.excalibur-divider-top {
    margin-bottom: 20px;
}

.excalibur-divider-bottom {
    margin-top: 40px;
}

.excalibur-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    user-select: none;
    margin-top: 10px;
}

/* Ambient mystical glow behind the scene */
.excalibur-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, rgba(255,71,87,0.05) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: excalibur-pulse 3s ease-in-out infinite;
}

@keyframes excalibur-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.excalibur-hint {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 2px;
    color: #ffd700;
    background: rgba(10, 8, 20, 0.95);
    border: 1px solid rgba(229, 204, 115, 0.3);
    border-radius: 6px;
    padding: 8px 16px;
    display: inline-block;
    margin-top: 4px;
    margin-bottom: 85px;
    opacity: 0.9;
    animation: excalibur-hint-fade 2s ease-in-out infinite alternate;
    text-align: center;
    transition: all 0.4s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Conquered state — pill with dark bg so it's readable on any bg */
.excalibur-hint.conquered {
    display: inline-block;
    background: rgba(10, 8, 20, 0.82);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 100px;
    padding: 6px 20px;
    font-size: 12px;
    letter-spacing: 3px;
    /* Static shadow for mobile performance */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    opacity: 1;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
    margin-top: 4px;
    margin-bottom: 95px;
}

@media (max-width: 768px) {
    .excalibur-hint.conquered {
        margin-bottom: 20px;
    }
}

@keyframes excalibur-hint-fade {
    from { opacity: 0.3; }
    to { opacity: 0.8; }
}

.excalibur-hint.hidden {
    display: none;
}

/* The sword wrapper — draggable */
.sword-wrapper {
    position: relative;
    z-index: 10;
    cursor: grab;
    margin-top: -10px;
    margin-bottom: -2px;
    transform: translateX(0);
    transition: transform 0.05s, filter 0.2s;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.sword-wrapper:hover {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.sword-wrapper:active {
    cursor: grabbing;
}

.ascii-sword {
    font-family: var(--font-mono);
    font-size: 8px;
    line-height: 8px;
    margin: 0;
    text-align: left;
    white-space: pre;
}

.ascii-sword.colored-mascot-pre {
    font-size: 8px !important;
    line-height: 8px !important;
    letter-spacing: 0px !important;
    text-shadow: none !important;
    font-weight: normal !important;
    color: inherit !important;
}

.sword-wrapper.pulling .ascii-sword:not(.colored-mascot-pre) {
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.9), 0 0 24px rgba(255, 215, 0, 0.4);
}

.excalibur-container * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* The stone */
.ascii-stone {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.2;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
    white-space: pre;
    position: relative;
    z-index: 20;
    pointer-events: none;
    transform: translate(30px, -105px);
    user-select: none;
    -webkit-user-select: none;
}

.ascii-stone.broken {
    color: var(--accent-primary);
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.4);
    animation: stone-crack 0.4s ease-out;
}

@keyframes stone-crack {
    0% { transform: translate(30px, -105px); }
    20% { transform: translate(26px, -105px) rotate(-1deg); }
    40% { transform: translate(34px, -105px) rotate(1deg); }
    60% { transform: translate(28px, -105px); }
    80% { transform: translate(32px, -105px); }
    100% { transform: translate(30px, -105px); }
}

@media (max-width: 768px) {
    .ascii-stone {
        transform: translate(0px, -105px);
    }
    @keyframes stone-crack {
        0% { transform: translate(0px, -105px); }
        20% { transform: translate(-4px, -105px) rotate(-1deg); }
        40% { transform: translate(4px, -105px) rotate(1deg); }
        60% { transform: translate(-2px, -105px); }
        80% { transform: translate(2px, -105px); }
        100% { transform: translate(0px, -105px); }
    }
}

/* Screen shake on pull */
@keyframes excalibur-shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-4px, -2px) rotate(-0.5deg); }
    20% { transform: translate(4px, 2px) rotate(0.5deg); }
    30% { transform: translate(-4px, 2px) rotate(-0.5deg); }
    40% { transform: translate(4px, -2px) rotate(0.5deg); }
    50% { transform: translate(-2px, -4px) rotate(0deg); }
    60% { transform: translate(2px, 4px) rotate(0deg); }
    70% { transform: translate(-2px, 0) rotate(0deg); }
}

body.excalibur-shaking {
    animation: excalibur-shake 0.5s ease-in-out;
}

/* ── Conquest glow (text animation — reused by hint too) ── */
@keyframes conquest-glow {
    from { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4); }
    to   { text-shadow: 0 0 30px rgba(255, 215, 0, 1),   0 0 60px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 150, 0, 0.3); }
}

/* ── Inline celebration block (inside excalibur-container) ── */
.excalibur-inline-celebration {
    position: relative;
    margin: 240px auto 0 auto;
    width: 90%;
    max-width: 580px;
    padding: 24px 32px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(16px);
    text-align: center;
    overflow: hidden;
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.6);
    animation: conquest-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .excalibur-inline-celebration {
        margin: 20px auto 0 auto;
        padding: 20px 16px;
    }
}

@keyframes conquest-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.exc-conquest-text {
    font-family: var(--font-mono);
    white-space: nowrap;
    font-size: clamp(15px, 2.5vw, 22px);
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 3px;
    margin-bottom: 8px;
    /* Static shadow for mobile performance */
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
}

/* Desktop glow animation removed per user request */

.exc-conquest-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 215, 0, 0.8);
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 6px;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px dashed rgba(255, 215, 0, 0.3);
    transition: all 0.25s ease;
}

.exc-conquest-sub:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.7);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

/* Star rain */
.exc-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.exc-star {
    position: absolute;
    top: -10%;
    color: #ffd700;
    opacity: 0;
    animation: star-fall linear infinite;
}

@keyframes star-fall {
    0%   { opacity: 0;   transform: translateY(0)   rotate(0deg);   }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { opacity: 0;   transform: translateY(120px) rotate(360deg); }
}

/* ── FOOTER STYLING ── */
.asciline-footer {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 30px auto;
    padding: 0 24px;
    font-family: var(--font-mono);
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════
   SPONSOR BALL PIT
══════════════════════════════════════════════════════ */
.sponsor-pit-section {
    padding: 80px 0 0 0;
    text-align: center;
    position: relative;
}

.sponsor-pit-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--accent-primary);
    opacity: 0.7;
    margin-bottom: 10px;
}

.sponsor-pit-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.sponsor-pit-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 22px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-cta-btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 26px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 105, 180, 0.85);
    color: #fff;
    background: linear-gradient(135deg, rgba(255,105,180,0.85) 0%, rgba(255,50,120,0.9) 100%);
    box-shadow: 0 0 18px rgba(255,80,150,0.4), 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    margin-bottom: 32px;
}
.sponsor-cta-btn:hover {
    background: linear-gradient(135deg, rgba(255,130,200,0.95) 0%, rgba(255,60,140,1) 100%);
    border-color: #ff69b4;
    color: #fff;
    box-shadow: 0 0 28px rgba(255,80,150,0.65), 0 4px 14px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* Pit container wrapper with ASCII-ish walls */
.sponsor-pit-walls {
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 860px;
    margin: 0 auto;
}

.sponsor-pit-wall {
    width: 6px;
    background: linear-gradient(to bottom, transparent, rgba(110,130,240,0.4) 20%, rgba(110,130,240,0.4) 80%, transparent);
    border-radius: 3px;
    flex-shrink: 0;
}

/* The actual physics container */
.sponsor-pit {
    flex: 1;
    position: relative;
    height: 300px;
    background: linear-gradient(to bottom, rgba(110,130,240,0.03), rgba(110,130,240,0.06));
    border-left: 1px solid rgba(110,130,240,0.15);
    border-right: 1px solid rgba(110,130,240,0.15);
    border-bottom: 2px solid rgba(110,130,240,0.35);
    overflow: hidden;
}

@media (max-width: 768px) {
    .sponsor-pit {
        height: 220px;
    }
}

.sponsor-pit-floor-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-muted);
    opacity: 0.35;
    margin-top: 6px;
    margin-bottom: 60px;
}

/* ── Sponsor Balls ── */
.sponsor-ball {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #6e82f0;
    background-color: rgba(13, 17, 30, 0.9);
    background-size: cover;
    background-position: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: filter 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    will-change: transform;
}

.sponsor-ball:active,
.sponsor-ball.is-dragging {
    cursor: grabbing !important;
    transform: scale(1.08);
    z-index: 100;
}

.sponsor-ball:hover {
    filter: brightness(1.25) drop-shadow(0 0 10px currentColor);
    z-index: 10;
}

.sponsor-ball--befirst {
    background: radial-gradient(circle at 40% 35%, rgba(255,215,0,0.18), rgba(13,17,30,0.95));
    border-color: #ffd700 !important;
    animation: sponsor-befirst-pulse 2.4s ease-in-out infinite;
}

@keyframes sponsor-befirst-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.3), inset 0 0 8px rgba(0,0,0,0.4); }
    50%       { box-shadow: 0 0 24px rgba(255,215,0,0.7), inset 0 0 8px rgba(0,0,0,0.4); }
}

.sponsor-ball__label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: #ffd700;
    text-align: center;
    line-height: 1.3;
    pointer-events: none;
    user-select: none;
}

.sponsor-ball__tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 8, 20, 0.92);
    border: 1px solid rgba(110,130,240,0.4);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 20;
}

.sponsor-ball__tooltip.visible {
    opacity: 1;
}

.footer-divider {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    white-space: pre;
    color: var(--text-muted);
    font-size: 13px;
    opacity: 0.4;
    user-select: none;
    margin-bottom: 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 14px 0;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(120,120,140,0.85);
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-brand-title {
    font-weight: 700;
    letter-spacing: 1px;
    color: #6e82f0;
}

.footer-dot {
    opacity: 0.4;
}

.footer-copy {
    opacity: 0.8;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: rgba(110,130,240,0.9);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(110,130,240,0.35);
    background: rgba(110,130,240,0.07);
    white-space: nowrap;
    min-width: 72px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
}

.footer-link:hover {
    color: #fff;
    background: rgba(110,130,240,0.25);
    border-color: rgba(110,130,240,0.7);
    text-decoration: none;
}

.audio-toggle-sync {
    cursor: pointer;
}

.audio-toggle-sync.is-muted {
    border-color: rgba(255, 71, 87, 0.5) !important;
    color: rgba(255, 71, 87, 0.85) !important;
    background: rgba(255, 71, 87, 0.08) !important;
}

.audio-toggle-sync.is-muted:hover {
    border-color: rgba(255, 71, 87, 0.9) !important;
    color: #ff4757 !important;
    background: rgba(255, 71, 87, 0.18) !important;
}

@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        flex-wrap: wrap;
    }
    .footer-left {
        justify-content: center;
        white-space: normal;
    }
    .footer-right {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
}

/* ── EXCALIBUR SHRINE DIVIDERS (gold) ── */
.excalibur-section .excalibur-divider,
.excalibur-shrine-divider {
    color: #c9aa54 !important;
    opacity: 0.75 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}
