/* ==========================================================================
   [SYS.AIR] ATMOSPHERIC TERMINAL HIGH-CONTRAST STYLESHEET - $AIR PROTOCOL
   ========================================================================== */

:root {
    /* High-Contrast Monochromatic & Cyberpunk Palette */
    --bg-black: #050508;
    --bg-darker: #020204;
    --bg-card: rgba(12, 12, 18, 0.95);
    --bg-card-hover: rgba(22, 22, 32, 0.98);
    
    /* Ultra-Bright High-Contrast Typography */
    --text-pure: #ffffff;
    --text-bright: #f8fafc;
    --text-dim: #f1f5f9;
    --text-muted: #cbd5e1;
    --text-code: #38bdf8;
    
    /* Vibrant Phosphor Accents */
    --accent-cyan: #38bdf8;
    --accent-green: #4ade80;
    --accent-gold: #facc15;
    --accent-red: #f87171;
    
    /* High-Contrast Crisp Borders & Tactical Glows */
    --border-terminal: rgba(255, 255, 255, 0.35);
    --border-bright: rgba(255, 255, 255, 0.75);
    --border-active: #ffffff;
    --border-glow: 0 0 25px rgba(255, 255, 255, 0.3);
    --shadow-terminal: 0 25px 60px rgba(0, 0, 0, 0.95);
    
    /* Typography */
    --font-mono: 'Space Mono', 'JetBrains Mono', 'Courier New', monospace;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Animation Easing */
    --ease-tactical: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
    color: var(--text-pure);
    overflow-x: hidden;
}

body {
    background-color: var(--bg-black);
    color: var(--text-pure);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Top Scroll Position Progress Bar (Bezier Animation) --- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    width: 0%;
    background: #ffffff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 1), 0 0 28px rgba(255, 255, 255, 0.85);
    z-index: 99999;
    pointer-events: none;
    transition: width 0.12s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Subtle Section Dividers --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 3;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.divider-node {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.15em;
    padding: 3px 12px;
    background: rgba(14, 14, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

/* --- Atmospheric Canvas Fog Layer (Global) --- */
#fogCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* --- CRT Monitor & Scanline Screen Overlay (Global Vintage Monitor Effect) --- */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    pointer-events: none;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.22) 50%),
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.55) 100%);
    background-size: 100% 3px, 100% 100%;
    opacity: 0.85;
}

/* --- Layout Containers --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.mono-tag {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 700;
}

.highlight-mono {
    font-family: var(--font-mono);
    color: var(--text-pure);
    font-weight: 700;
}

/* --- Navigation Bar --- */
nav.terminal-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1240px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px) saturate(200%);
    z-index: 1000;
    border-radius: 14px;
    border: 1.5px solid var(--border-terminal);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

nav.terminal-nav:hover {
    border-color: var(--border-active);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.15);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-pure);
}

.brand-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--border-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.brand-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px; /* reduced gap since we use padding now */
    list-style: none;
    position: relative;
}

.nav-active-box {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
    z-index: 0;
    opacity: 0; /* hides initially until position is calculated */
    transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: #e4e4e7;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Sleek SFX Tooltip --- */
.sfx-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sfx-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s ease;
}

.sfx-btn:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.sfx-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(10, 10, 16, 0.98);
    backdrop-filter: blur(16px);
    border: 1.5px solid var(--border-bright);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 255, 255, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease-spring);
    z-index: 2000;
}

.sfx-wrapper:hover .sfx-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(74, 222, 128, 0.12);
    border: 1.5px solid rgba(74, 222, 128, 0.5);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-green);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.25);
    transition: all 0.3s ease;
}

.status-pill.cooling {
    background: rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.6);
    color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse-green 2s infinite ease-in-out;
}

.status-pill.cooling .status-dot {
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid var(--border-terminal);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* --- Hero Section & Continuous Pixel Clouds Layer --- */
section.hero-section {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

/* Dedicated Continuous Pixel Cloud Canvas in Hero */
.hero-cloud-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(14, 14, 22, 0.9);
    border: 1.5px solid var(--border-terminal);
    border-radius: 100px;
    margin-bottom: 28px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.hero-pill-badge .sys-tag {
    color: var(--accent-cyan);
    font-weight: 800;
}

/* Clean, Rock-Solid, High-Contrast Hero Title */
.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(3.2rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    cursor: default;
    user-select: none;
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.5), 0 0 80px rgba(56, 189, 248, 0.2);
}

.hero-subtext {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--text-dim);
    max-width: 660px;
    margin: 0 auto 40px auto;
    line-height: 1.65;
    font-weight: 500;
}

.hero-subtext strong {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* --- Terminal Drop Input Box --- */
.terminal-input-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    background: rgba(10, 10, 16, 0.95);
    border: 2px solid var(--border-bright);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    transition: all 0.3s var(--ease-tactical);
}

.terminal-input-container:focus-within {
    border-color: #ffffff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 255, 255, 0.3);
}

.terminal-header-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 700;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.input-action-row {
    display: flex;
    gap: 10px;
    padding: 10px 8px;
    align-items: center;
}

.wallet-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 18px;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.wallet-input-field:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
}

.wallet-input-field::placeholder {
    color: #64748b;
    font-family: var(--font-mono);
    font-weight: 600;
}

.btn-drop {
    background: #ffffff;
    color: #050508;
    border: none;
    outline: none;
    padding: 16px 30px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s var(--ease-tactical);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.btn-drop:hover {
    background: #f8fafc;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
}

.btn-drop:disabled {
    background: #27272a;
    color: #71717a;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Cooldown Indicator --- */
.cooldown-strip {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cooldown-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: cooldown-pulse 2s infinite ease-in-out;
}

@keyframes cooldown-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* --- Section Headings --- */
section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
    display: block;
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 660px;
    margin: 14px auto 0 auto;
    font-weight: 500;
}

/* --- Single Streamlined Transmission Log / Manifesto Card --- */
.manifesto-card {
    background: rgba(12, 12, 18, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    padding: 38px 44px;
    max-width: 880px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    position: relative;
}

.manifesto-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
}

.manifesto-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.manifesto-session-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 8px;
    letter-spacing: 0.05em;
}

.manifesto-status-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    letter-spacing: 0.08em;
}

.manifesto-single-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.manifesto-text-p {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-dim);
    font-weight: 400;
}

.manifesto-final-p {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 18px;
    margin-top: 4px;
}

/* Monochromatic High-Contrast Text Glitch (NO colors, strictly bounded inside text box) */
.glitch-text {
    position: relative;
    display: inline-block;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
    vertical-align: bottom;
    padding: 0 1px;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
}

.glitch-text::before {
    left: 1px;
    text-shadow: -1px 0 0 #ffffff;
    clip-path: inset(0 0 100% 0);
    animation: mono-glitch-top 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -1px;
    text-shadow: 1px 0 0 #999999;
    clip-path: inset(0 0 100% 0);
    animation: mono-glitch-bottom 2.4s infinite linear alternate-reverse;
}

@keyframes mono-glitch-top {
    0%, 82%, 100% { clip-path: inset(100% 0 0 0); opacity: 0; }
    84% { clip-path: inset(10% 0 65% 0); opacity: 1; text-shadow: -1px 0 0 #ffffff; }
    86% { clip-path: inset(45% 0 15% 0); opacity: 1; text-shadow: 1px 0 0 #cccccc; }
    88% { clip-path: inset(80% 0 5% 0); opacity: 0; }
}

@keyframes mono-glitch-bottom {
    0%, 78%, 100% { clip-path: inset(100% 0 0 0); opacity: 0; }
    80% { clip-path: inset(35% 0 35% 0); opacity: 1; text-shadow: 1px 0 0 #ffffff; }
    82% { clip-path: inset(15% 0 75% 0); opacity: 1; text-shadow: -1px 0 0 #aaaaaa; }
    84% { clip-path: inset(70% 0 10% 0); opacity: 0; }
}

/* --- High-Contrast Terminal Cards Grid --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    width: 100%;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.terminal-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-terminal);
    border-radius: 18px;
    padding: 34px 28px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.35s var(--ease-tactical);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

/* Subtle Interactive Glow */
.terminal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle 350px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.03), transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.terminal-card:hover::before {
    opacity: 1;
}
.terminal-card > * {
    position: relative;
    z-index: 1;
}

.terminal-card:hover {
    border-color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 255, 255, 0.15);
}

/* Lenis and Smooth Reveal */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-header-mono {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    color: #e4e4e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
}

.card-icon-frame {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid var(--border-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.terminal-card h3 {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: #ffffff;
}

.terminal-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 500;
}

/* --- Upgraded Telemetry & Stretched Live Stream Section --- */
.telemetry-dashboard {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.telemetry-left-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
}

.telemetry-left-col .stat-metric-box,
.telemetry-left-col .contract-ca-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-metric-box {
    background: rgba(14, 14, 22, 0.95);
    border: 1.5px solid var(--border-terminal);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
}

.primary-metric-box {
    border-color: var(--border-bright);
    background: linear-gradient(135deg, rgba(20, 20, 32, 0.98) 0%, rgba(10, 10, 16, 0.98) 100%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 255, 255, 0.08);
}

.metric-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.status-badge-live {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-green);
    padding: 2px 8px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 20px;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 800;
    color: #e4e4e7;
    text-transform: uppercase;
}

.metric-value-huge {
    font-family: var(--font-mono);
    font-size: 2.6rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    margin: 6px 0 12px 0;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
    margin-top: 4px;
}

.metric-delta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: 6px;
}

.metric-progress-wrap {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.metric-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    border-radius: 10px;
    box-shadow: 0 0 15px var(--accent-cyan);
    transition: width 0.6s ease;
}

.metric-sub-detail {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    color: #cbd5e1;
}

.curve-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 0 16px 0;
}

.curve-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #facc15);
    border-radius: 6px;
    box-shadow: 0 0 10px #facc15;
    transition: width 0.5s ease;
}

.vitals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 14px;
}

.vital-item {
    display: flex;
    flex-direction: column;
}

.vital-name {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
}

.vital-val {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 2px;
}

.contract-ca-box {
    padding: 20px 22px;
}

.contract-copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
}

.contract-address-text {
    font-family: var(--font-mono);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-copy-ca {
    padding: 8px 18px;
    font-size: 0.8rem;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-copy-ca:active {
    transform: scale(0.92);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Stretched Flush Live Drop Terminal (Matches Left Column Height) */
.feed-terminal-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feed-terminal {
    background: #020205;
    border: 2px solid var(--border-bright);
    border-radius: 18px;
    padding: 24px;
    font-family: var(--font-mono);
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 14px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
}

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

.pulse-radar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 12px var(--accent-green);
    animation: pulse-green 1.5s infinite ease-in-out;
}

.feed-header-status {
    color: var(--accent-green);
    font-size: 0.78rem;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: hidden;
    padding-right: 6px;
}

/* Sleek Cyberpunk Custom Scrollbar */
.feed-list::-webkit-scrollbar {
    width: 5px;
}

.feed-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.feed-list::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.6);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.feed-list::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
}

.feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.feed-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateX(3px);
}

@keyframes popInDrop {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    50% {
        transform: translateY(2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feed-wallet {
    color: #ffffff;
}

.feed-amount {
    color: var(--accent-green);
    font-weight: 800;
}

.feed-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
}

.feed-link:hover {
    text-decoration: underline;
}

.feed-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 40px 20px;
    color: #94a3b8;
    gap: 12px;
}

.terminal-prompt-line {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #94a3b8;
}

.terminal-scan-line {
    width: 60px;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
    animation: scan-pulse 2s infinite ease-in-out;
    margin-top: 10px;
}

@keyframes scan-pulse {
    0%, 100% { transform: scaleX(0.5); opacity: 0.3; }
    50% { transform: scaleX(1.8); opacity: 1; }
}

/* --- Simplified Balloon Gamble Section --- */
.game-container {
    background: rgba(10, 10, 16, 0.98);
    border: 2px solid var(--border-bright);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 30px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* --- Gamble Dedicated Wallet Input Strip --- */
.gamble-wallet-strip {
    background: rgba(14, 14, 22, 0.95);
    border: 1.5px solid var(--border-terminal);
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
}

.gamble-wallet-strip:focus-within {
    border-color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.15);
}

.gamble-wallet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.gamble-wallet-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gamble-wallet-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 16px;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.gamble-wallet-field:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.gamble-wallet-field::placeholder {
    color: #64748b;
}

/* --- ENTER Wallet Button (replaces old badge) --- */
.btn-enter-wallet {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 900;
    padding: 12px 28px;
    border-radius: 10px;
    background: #facc15;
    color: #000000;
    border: none;
    cursor: pointer;
    letter-spacing: 0.1em;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.35);
}

.btn-enter-wallet:hover {
    background: #fef08a;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.65);
    transform: translateY(-1px);
}

.btn-enter-wallet.locked {
    background: #27272a;
    color: #71717a;
    cursor: default;
    box-shadow: none;
    pointer-events: none;
}

.gamble-wallet-field.locked {
    background: rgba(255, 255, 255, 0.03);
    color: #71717a;
    border-color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    opacity: 0.5;
}

/* --- Lockable Game Area & Black Blur Overlay --- */
.game-lockable-area {
    position: relative;
    min-height: 200px;
}

.game-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 2, 6, 0.92);
    backdrop-filter: blur(12px) saturate(50%);
    -webkit-backdrop-filter: blur(12px) saturate(50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    pointer-events: all;
    opacity: 0;
    transition: opacity 0.4s ease;
    visibility: hidden;
}

.game-lock-overlay.active {
    opacity: 1;
    visibility: visible;
}

.game-lock-message {
    text-align: center;
    font-family: var(--font-mono);
}

.lock-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    filter: grayscale(1) brightness(0.6);
    animation: lock-pulse 2s ease-in-out infinite;
}

@keyframes lock-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.08); }
}

.lock-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.12em;
    line-height: 1.6;
    max-width: 400px;
}

.game-ladder {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding: 24px 10px 10px 10px; /* added top padding for crown, and side padding to prevent clipping */
}

.ladder-step {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border-terminal);
    border-radius: 12px;
    padding: 12px 6px;
    text-align: center;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    position: relative; /* for absolute crown */
    overflow: hidden; /* for sweep animation */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ladder-step.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(12, 12, 18, 0.98) 100%);
    border-color: #ffffff;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.45);
    transform: scale(1.06);
    z-index: 10;
    cursor: pointer;
    animation: ladder-glitch 3s infinite linear alternate-reverse;
}

@keyframes ladder-glitch {
    0% { box-shadow: 0 0 24px rgba(255, 255, 255, 0.45); transform: scale(1.06) skewX(0deg); }
    38% { box-shadow: 0 0 24px rgba(255, 255, 255, 0.45); transform: scale(1.06) skewX(0deg); }
    40% { box-shadow: 3px 0 0 rgba(0, 255, 255, 0.8), -3px 0 0 rgba(255, 0, 255, 0.8); transform: scale(1.06) translate(1px, -1px) skewX(2deg); }
    42% { box-shadow: 0 0 24px rgba(255, 255, 255, 0.45); transform: scale(1.06) skewX(0deg); }
    78% { box-shadow: 0 0 24px rgba(255, 255, 255, 0.45); transform: scale(1.06) skewX(0deg); }
    80% { box-shadow: -3px 0 0 rgba(0, 255, 255, 0.8), 3px 0 0 rgba(255, 0, 255, 0.8); transform: scale(1.06) translate(-1px, 1px) skewX(-2deg); }
    82% { box-shadow: 0 0 24px rgba(255, 255, 255, 0.45); transform: scale(1.06) skewX(0deg); }
    100% { box-shadow: 0 0 24px rgba(255, 255, 255, 0.45); transform: scale(1.06) skewX(0deg); }
}

.ladder-step.active .ladder-tag {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* Laser sweep shine layer on Current Step */
.ladder-step.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    transition: left 0.6s ease;
}

.ladder-step.active:hover {
    transform: scale(1.10) translateY(-4px);
    border-color: #ffffff;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 255, 255, 0.4);
    animation: none;
}

.ladder-step.active:hover::before {
    left: 170%;
    transition: left 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ladder-step.passed {
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.16) 0%, rgba(20, 18, 10, 0.95) 100%);
    border-color: #facc15;
    color: #facc15;
    box-shadow: inset 0 0 12px rgba(250, 204, 21, 0.1);
}
.ladder-step.passed .ladder-lvl, .ladder-step.passed .ladder-mult, .ladder-step.passed .ladder-tag {
    color: #facc15;
}

.ladder-step.future {
    opacity: 0.4;
    filter: grayscale(1);
}

.ladder-step.jackpot-step {
    border-color: rgba(250, 204, 21, 0.6);
}

.ladder-step.jackpot-step.active {
    border-color: #facc15;
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.6);
}

/* Crown Styling */
.crown-icon {
    position: absolute;
    top: -22px;
    left: 50%;
    margin-left: -12px;
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.8));
    animation: crown-wiggle 3.6s infinite ease-in-out;
    transform-origin: bottom center;
    z-index: 20;
}

@keyframes crown-wiggle {
    0%, 70%, 100% { transform: rotate(0deg) translateY(0); }
    75% { transform: rotate(-7deg) translateY(-2px); }
    80% { transform: rotate(6deg) translateY(-1px); }
    85% { transform: rotate(-4deg) translateY(-1px); }
    90% { transform: rotate(3deg) translateY(0); }
    95% { transform: rotate(0deg) translateY(0); }
}

.ladder-lvl {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e4e4e7;
    margin-bottom: 2px;
}

.ladder-mult {
    font-size: 0.92rem;
    font-weight: 900;
    color: #ffffff;
}

.ladder-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-top: 2px;
}

.balloons-arena {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.balloon-chamber {
    background: rgba(255, 255, 255, 0.03);
    border: 2.5px dashed var(--border-bright);
    border-radius: 24px;
    padding: 46px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-tactical);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    touch-action: manipulation;
}

.balloon-chamber:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 255, 255, 0.2);
}

.balloon-rig {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.balloon-visual {
    width: 124px;
    height: 150px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #cbd5e1 45%, #18181b 100%);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95), inset 0 0 25px rgba(255, 255, 255, 0.8);
    position: relative;
    transition: transform 0.35s var(--ease-spring);
    display: flex;
    align-items: center;
    justify-content: center;
}

.balloon-specular-light {
    position: absolute;
    top: 18px;
    left: 24px;
    width: 28px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 75%);
    transform: rotate(-35deg);
    pointer-events: none;
    animation: specular-breathe 2.8s infinite ease-in-out;
}

@keyframes specular-breathe {
    0%, 100% { opacity: 0.75; transform: rotate(-35deg) scale(1); filter: blur(0px); }
    50% { opacity: 1; transform: rotate(-35deg) scale(1.18); filter: blur(0.5px); }
}

.balloon-knot {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 9px;
    background: #cbd5e1;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.balloon-string {
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    transform-origin: top center;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.balloon-visual.gold-balloon {
    background: radial-gradient(circle at 35% 30%, #fef08a 0%, #eab308 55%, #78350f 100%);
    box-shadow: 0 0 50px rgba(234, 179, 8, 0.95), inset 0 0 30px rgba(254, 240, 138, 0.9);
    animation: gold-shine 1s infinite alternate;
}

.balloon-visual.gold-balloon .balloon-knot {
    background: #eab308;
}

.balloon-visual.gold-balloon .balloon-string path {
    stroke: #fde047;
}

@keyframes gold-shine {
    from { transform: scale(1); filter: brightness(1); }
    to { transform: scale(1.1); filter: brightness(1.3); }
}

.balloon-visual.popped {
    animation: pop-dissolve 0.5s forwards;
}

@keyframes pop-dissolve {
    0% { transform: scale(1.3); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.4; filter: blur(6px); }
    100% { transform: scale(0); opacity: 0; }
}

.chamber-label {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.chamber-sub {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 5;
}

.winnings-display {
    font-family: var(--font-mono);
}

.winnings-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #e4e4e7;
}

.winnings-amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-green);
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.mono-tag-status {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-top: 6px;
}

.game-buttons {
    display: flex;
    gap: 14px;
    position: relative;
    z-index: 5;
}

.btn-terminal {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1.5px solid var(--border-bright);
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-terminal:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-primary-gamble {
    background: #facc15;
    color: #000000;
    border: none;
    font-weight: 900;
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.4);
    position: relative;
    z-index: 10;
}

.btn-primary-gamble:hover {
    background: #fef08a;
    box-shadow: 0 0 35px rgba(250, 204, 21, 0.7);
}

.btn-cashout {
    background: var(--accent-green);
    color: #000000;
    border: none;
    font-weight: 900;
}

.btn-cashout:hover {
    background: #86efac;
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.6);
}

.btn-cashout:disabled {
    background: #27272a;
    color: #71717a;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-primary-gamble:disabled {
    background: #3f3f46;
    color: #a1a1aa;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

/* --- Claim Button Circular Spinner --- */
.claim-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: claim-spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes claim-spin {
    to { transform: rotate(360deg); }
}

.btn-drop .claim-spinner {
    margin-right: 0;
}

/* --- Dexscreener Chart Section --- */
.chart-section {
    padding: 90px 0 110px 0;
}

.chart-terminal-card {
    background: #020205;
    border: 2px solid var(--border-bright);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 30px rgba(255, 255, 255, 0.08);
}

.chart-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
}

.chart-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
}

.btn-chart-direct {
    padding: 6px 14px;
    font-size: 0.76rem;
    text-decoration: none;
    border-radius: 8px;
}

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

.btn-chart-mode {
    padding: 6px 14px;
    font-size: 0.76rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-chart-mode:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.chart-iframe-container {
    width: 100%;
    height: 560px;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0d12;
    position: relative;
}

.dexscreener-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.chart-fallback-box {
    width: 100%;
    height: 100%;
    position: relative;
    background: #06060c;
}

.air-candle-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-canvas-overlay-info {
    position: absolute;
    top: 16px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
    pointer-events: none;
}

.chart-symbol-tag {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chart-price-tag {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.chart-change-tag {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
}

/* --- Toast Notification --- */
.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(14, 14, 22, 0.98);
    backdrop-filter: blur(24px);
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 14px;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(255, 255, 255, 0.25);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-spring);
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-msg.error {
    border-color: var(--accent-red);
}

/* --- Footer --- */
footer.terminal-footer {
    border-top: 1.5px solid var(--border-terminal);
    padding: 70px 0 45px 0;
    background: #020204;
    font-family: var(--font-mono);
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 45px;
    margin-bottom: 45px;
}

.footer-links a {
    color: #e4e4e7;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-brand-title {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 700;
}

.footer-lead {
    color: #e4e4e7;
    max-width: 440px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col-tag {
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-bio-meta {
    color: #e4e4e7;
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-status-badge {
    color: var(--accent-green);
}

.bonding-pct-tag {
    font-size: 0.8rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    padding-top: 26px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* --- High-Fidelity Mobile Responsive Breakpoints --- */

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .telemetry-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .feed-terminal {
        min-height: 420px;
        max-height: 480px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Medium Tablets & Large Phones (<= 900px) */
@media (max-width: 900px) {
    nav.terminal-nav .nav-menu {
        display: none;
    }
    .terminal-nav {
        padding: 14px 20px;
    }
    .grid-3, .balloons-arena {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .input-action-row {
        flex-direction: column;
        gap: 12px;
    }
    .btn-drop {
        width: 100%;
        justify-content: center;
    }
    .game-controls {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .game-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    .btn-terminal {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Standard Mobile Phones (<= 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .hero-section {
        padding: 120px 0 60px 0;
        min-height: auto;
    }
    .hero-title {
        font-size: clamp(2.4rem, 9vw, 3.6rem);
        margin: 12px 0 16px 0;
    }
    .hero-subtext {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }
    .terminal-input-container {
        padding: 18px 14px;
        border-radius: 16px;
    }
    .terminal-header-strip {
        font-size: 0.72rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-bottom: 12px;
        margin-bottom: 14px;
    }
    .wallet-input-field {
        font-size: 0.85rem;
        padding: 14px 16px;
    }
    .btn-drop {
        font-size: 0.88rem;
        padding: 16px 20px;
    }
    
    /* Section Headers */
    .section-head {
        margin-bottom: 32px;
    }
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
    .section-desc {
        font-size: 0.92rem;
    }

    /* Manifesto Story Card */
    .manifesto-card {
        padding: 24px 20px;
        border-radius: 18px;
    }
    .manifesto-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    .manifesto-text-p {
        font-size: 1.02rem;
        line-height: 1.65;
    }

    /* Telemetry Mobile */
    .telemetry-dashboard {
        gap: 16px;
    }
    .stat-metric-box {
        padding: 18px 16px;
    }
    .metric-value-huge {
        font-size: 2.2rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .vitals-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .contract-ca-box {
        padding: 16px;
    }
    .contract-copy-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .contract-address-text {
        font-size: 0.78rem;
        text-align: center;
    }
    .btn-copy-ca {
        width: 100%;
        text-align: center;
    }
    .feed-terminal {
        padding: 18px 14px;
        min-height: 360px;
        max-height: 440px;
    }
    .feed-item {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    /* Balloon Gamble Mobile */
    .game-container {
        padding: 22px 14px;
        border-radius: 18px;
    }
    .game-ladder {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 8px;
        padding-bottom: 12px;
        margin-bottom: 24px;
    }
    .ladder-step {
        min-width: 105px;
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 10px 6px;
    }
    .balloon-chamber {
        padding: 32px 16px;
    }
    .balloon-visual {
        width: 110px;
        height: 135px;
    }
    .chamber-label {
        font-size: 1.05rem;
    }
    .winnings-amount {
        font-size: 1.6rem;
    }

    /* Chart Section */
    .chart-section {
        padding: 60px 0 80px 0;
    }
    .chart-terminal-card {
        padding: 10px;
        border-radius: 16px;
    }
    .chart-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .chart-iframe-container {
        height: 420px;
    }

    /* Footer Mobile */
    footer.terminal-footer {
        padding: 50px 0 35px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Very Small Mobile Phones (<= 480px) */
@media (max-width: 480px) {
    .terminal-nav {
        padding: 10px 12px;
    }
    .brand-icon-box {
        width: 32px;
        height: 32px;
    }
    .brand-text {
        font-size: 1.05rem;
    }
    .brand-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    .nav-actions {
        gap: 6px;
    }
    .status-pill {
        padding: 4px 8px;
        font-size: 0.68rem;
    }
    .btn-icon {
        width: 34px;
        height: 34px;
    }
    .section-divider {
        padding: 0 8px;
    }
    .divider-node {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    .toast-msg {
        width: 90%;
        padding: 12px 18px;
        font-size: 0.82rem;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   HIGH-REWARD CASHOUT WIN OVERLAY MODAL & PARTICLES
   ========================================================================== */
.win-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 4, 8, 0.92);
    backdrop-filter: blur(18px) saturate(180%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

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

.win-confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10001;
}

.custom-template-card {
    background: rgba(12, 12, 18, 0.97);
    border: 2px solid #ffffff;
    padding: 16px;
    max-width: 380px;
    width: 90%;
    position: relative;
    z-index: 10002;
    transform: scale(0.75) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.win-modal-overlay.active .custom-template-card {
    transform: scale(1) translateY(0);
}

.win-template-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.win-template-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.win-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.win-amount-display {
    font-family: var(--font-mono);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 0, 0, 0.6);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.win-meta-row {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.win-meta-dot {
    opacity: 0.5;
}

.win-actions-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    z-index: 3;
}

.btn-win-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 900;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.btn-x {
    background: #000000;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    gap: 10px;
}

.btn-x .x-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-x:hover {
    background: #111111;
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.btn-x:hover .x-icon {
    transform: scale(1.3);
}

.btn-collect {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.btn-collect:hover {
    background: #e4e4e7;
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.4);
}
