/* ============================================
   S E N Z A N O M E — CSS V10 (HIGH FASHION BRUTALISM)
   Powered by Aposa
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100dvh;
    background-color: #121214;
    color: #ffffff;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* --- MAP --- */
#map {
    position: absolute;
    top: 0; bottom: 0;
    width: 100%;
    z-index: 1;
    transition: filter 1s ease-in-out;
    will-change: filter;
}
.leaflet-container {
    background-color: #0f0f0f !important;
}

/* --- NOISE OVERLAY --- */
.noise-overlay {
    position: fixed;
    top: -50%; left: -50%;
    width: 200vw; height: 200dvh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
    animation: noise-anim 0.15s infinite steps(1);
}

@keyframes noise-anim {
    0%   { transform: translate(0,0); }
    25%  { transform: translate(-4%,3%); }
    50%  { transform: translate(5%,-3%); }
    75%  { transform: translate(-3%,5%); }
    100% { transform: translate(4%,-4%); }
}

/* --- DROP ECHO GLITCH -> HIGH FASHION SPLASH --- */
#echo-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100dvh;
    background: #050505;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out;
}

#echo-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: flex !important; /* Keep flex during fade out, let opacity hide it */
}

#echo-text {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.2px;
    color: #ffffff;
}

/* --- FULLSCREEN OVERLAYS --- */
.fullscreen-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #0a0a0a;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.oracle-content {
    text-align: center;
    padding: 32px 28px;
    width: 100%;
    max-width: 440px;
}

.supra-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #888888;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.logo-giant {
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -0.2px;
    margin-bottom: 18px;
    line-height: 1;
}

.oracle-question {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 28px;
    color: #666666;
    text-transform: uppercase;
}

/* --- POLL GRID --- */
.poll-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.poll-btn {
    background-color: rgba(25, 25, 30, 0.6);
    backdrop-filter: blur(15px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 24px;
    text-transform: uppercase;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.poll-btn .poll-venue { font-size: 14px; }
.poll-btn .poll-sub { font-size: 9px; color: #555; letter-spacing: 2px; }

.poll-btn:active, .poll-btn.selected {
    background-color: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
}
.poll-btn.selected .poll-sub { color: #888888; }

.poll-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.heat-badge {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border: none;
    padding: 4px 10px;
    border-radius: 24px;
    flex-shrink: 0;
}

.event-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 12px;
}

.oracle-warning {
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 9px;
    color: #1e1e1e;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* --- MAP CONTAINER --- */
#map-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* --- UI LAYER --- */
#ui-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.floating-ui-container {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 100;
}

.identity-pill {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 10px 16px;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: auto;
}

.logo {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.callsign-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ff8e53;
}

.phase-badge {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hype-phase { background: #333333; color: #aaaaaa; border: 1px solid #555555; }
.live-phase { background: rgba(255, 51, 0, 0.2); color: #ff5e3a; border: 1px solid #ff5e3a; animation: pulse-border 2s infinite; }
.recap-phase { background: #ffffff; color: #0a0a0a; border: 1px solid #ffffff; }

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 0, 0.4); }
    70% { box-shadow: 0 0 0 4px rgba(255, 51, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 0, 0); }
}

.nav-pill {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 4px;
    border-radius: 24px;
    display: flex;
    gap: 2px;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: auto;
}

.pill-btn {
    background: transparent;
    color: #888888;
    border: none;
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 32px;
    text-transform: uppercase;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-btn.active {
    background: #ffffff;
    color: #0a0a0a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* --- BRUTALIST BUTTONS --- */
.brutalist-mini-button {
    background-color: transparent;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 8px;
    text-transform: uppercase;
    transition: opacity 0.2s;
}
.brutalist-mini-button:active { opacity: 0.5; }

/* --- CONSENT BANNER (GDPR) --- */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0a0a0a;
    border-top: 2px solid #ff5e3a;
    padding: 20px 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.consent-banner p {
    font-size: 12px;
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    line-height: 1.5;
    color: #888;
    letter-spacing: 0.5px;
}
.consent-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.consent-link {
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 11px;
    color: #666;
    text-decoration: underline;
}
.consent-link:active {
    color: #fff;
}
.consent-btn {
    background: #ff5e3a;
    color: #0a0a0a;
    border: none;
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 16px;
    text-transform: uppercase;
}
.consent-btn:active {
    background: #fff;
}

/* --- SCAN ZONE & CENTRAL BUTTON (FAB) --- */
.scan-zone {
    position: fixed;
    bottom: 90px; /* Above ticker and bottom sheet when collapsed */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.scan-btn {
    background-color: #ffffff;
    color: #0a0a0a;
    border: none;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.2px;
    padding: 18px 40px;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.scan-btn:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.scan-btn:disabled {
    opacity: 0.5;
    transform: scale(0.98);
    box-shadow: none;
}

/* Radar Ping Expansion wave */
.radar-ping {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ff5e3a;
    background: transparent;
    transform: scale(1);
    opacity: 0;
    pointer-events: none;
}
.active-pulse {
    animation: radar-expand 1.0s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
@keyframes radar-expand {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(6.0);
        opacity: 0;
    }
}

/* --- SURVIVAL SPOTS PIN (Brutalist spiky [+] and [▪]) --- */
.survival-pin {
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 13px;
    font-weight: 900;
    color: #00ff00;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.8), 0 0 1px #fff;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.drink-pin {
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 13px;
    font-weight: 900;
    color: #ffaa00;
    text-shadow: 0 0 6px rgba(255, 170, 0, 0.8), 0 0 1px #fff;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* --- TERMINAL TICKER (Ancorato stabilmente a fondo schermo) --- */
#ticker-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 14px 0;
    pointer-events: none;
    z-index: 10000;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse-slow {
    0% { opacity: 1; transform: scale(1); filter: brightness(1); }
    50% { opacity: 0.8; transform: scale(0.95); filter: brightness(0.8); }
    100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}

@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 0.99;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.2;
    }
}

#ticker-track {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}

.tick-item {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    flex-shrink: 0;
    text-transform: uppercase;
}
.tick-item:first-child { color: #888888; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- BOTTOM SHEET --- */
/* --- BOTTOM SHEET (APOSA V2 PEAKING DRAWER) --- */
.bottom-sheet {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    height: 60vh; /* Takes up 60% of screen when fully open */
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 500;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(calc(60vh - 80px)); /* Default state: Collapsed (Peeking 80px) */
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: auto;
}

.bottom-sheet.open {
    transform: translateY(0);
}

.sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    margin: 8px auto 4px;
    flex-shrink: 0;
    cursor: grab;
}

/* --- PEEK AREA (Always visible: 80px) --- */
.sheet-peek-area {
    height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    flex-shrink: 0;
}

/* Scrolling Live Marquee */
#marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 2px 0 6px;
    pointer-events: none;
}

#marquee-track {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-item {
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ff5e3a;
    text-shadow: 0 0 4px rgba(255, 51, 0, 0.4);
    text-transform: uppercase;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 1-Tap Inline Posting Form */
.inline-echo-form {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: center;
}

#inline-echo-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

#inline-echo-input:focus {
    border-color: #ff5e3a;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(255, 51, 0, 0.1);
}

#inline-echo-submit {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

#inline-echo-submit:active {
    transform: scale(0.96);
    background: #eeeeee;
}

/* --- EXPANDED AREA --- */
.sheet-expanded-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer-nav {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 10, 0.2);
    flex-shrink: 0;
}

.drawer-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    color: #666666;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.drawer-tab-btn.active {
    color: #ffffff;
    border-bottom-color: #ff5e3a;
}

#drawer-panels {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #121214;
}

.drawer-panel {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
}

.drawer-panel.active {
    display: flex;
}

.stasera-header span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
}

#events-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.stasera-empty {
    text-align: center;
    padding: 60px 30px;
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 11px;
    color: #333;
    letter-spacing: 2px;
    line-height: 2;
}

/* Event card (Glassmorphism & Micro-interactions) */
.event-card {
    background: rgba(25, 25, 30, 0.5) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}
.event-card:active { 
    transform: scale(0.97); 
    background: rgba(40, 40, 45, 0.8) !important;
}

/* Simulated ripple effect */
.event-card::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.4s ease-out;
}
.event-card:active::after {
    width: 300px; height: 300px;
    opacity: 1;
    transition: 0s;
}

.event-card-body {
    padding: 20px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.event-left { flex: 1; }

.event-num {
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 9px;
    color: #2a2a2a;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.event-venue {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.2px;
    line-height: 1;
    margin-bottom: 6px;
}

.event-caption {
    font-size: 11px;
    color: #555;
    letter-spacing: 0.5px;
    font-weight: normal;
}

.event-date {
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 10px;
    color: #fff;
    letter-spacing: 1px;
    text-align: right;
    flex-shrink: 0;
    padding-top: 4px;
    border-left: 1px solid #1a1a1a;
    padding-left: 14px;
    margin-left: 4px;
}

/* --- TOP WEEKLY --- */
.top-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
    border-bottom: 1px solid #111;
}

.top-rank {
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 11px;
    color: #222;
    letter-spacing: 2px;
    flex-shrink: 0;
    width: 24px;
}

.top-info { flex: 1; }

.top-zone {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
}

.top-bar-wrap {
    width: 100%;
    height: 2px;
    background: #111;
}

.top-bar-fill {
    height: 100%;
    background: #fff;
    transition: width 0.6s ease;
}

.top-signals {
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
    text-align: right;
}

.top-unit {
    font-size: 8px;
    color: #333;
    letter-spacing: 1px;
}

/* --- SPINNER --- */
.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.08);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.section-title {
    background: #0a0a0a;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 10px;
    font-weight: 900;
    color: #ff5e3a;
    letter-spacing: 3px;
    border-bottom: 1px solid #1a1a1a;
    border-top: 1px solid #1a1a1a;
    text-transform: uppercase;
    margin-top: 0;
}

/* --- GAMIFICATION & BEREAL STYLING --- */
.rank-badge {
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ff5e3a;
    border: 1px solid #ff5e3a;
    background: #0a0a0a;
    padding: 3px 6px;
    cursor: pointer;
    pointer-events: auto;
    text-transform: uppercase;
}
.rank-badge:active {
    background: #ff5e3a;
    color: #0a0a0a;
}

.stats-panel-body {
    background: #0d0d0d;
    border: 1px solid #222;
    padding: 24px;
    margin: 20px 0;
    text-align: left;
    width: 280px;
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
}
.stats-panel-body p {
    font-size: 13px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.flash-countdown {
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 60px;
    font-weight: 900;
    color: #ff5e3a;
    text-shadow: 0 0 20px rgba(255, 51, 0, 0.8), 0 0 2px #fff;
    margin: 20px 0 5px;
}

.flash-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 280px;
}

.flash-opt-btn {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 18px;
    cursor: pointer;
    border-radius: 24px;
    text-transform: uppercase;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.flash-opt-btn:active {
    transform: scale(0.96);
    background: #eeeeee;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- SOCIAL LAYER (VIBE CHECK & ECHOES) --- */
.vibe-check-container {
    padding: 20px 24px;
    border-bottom: 1px solid #111;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brutalist-tag {
    background: #ffffff;
    color: #0a0a0a;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.2px;
    display: inline-block;
    text-transform: uppercase;
    width: fit-content;
}

.vibe-bar-wrapper {
    width: 100%;
    height: 32px;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.vibe-bar-fill {
    height: 100%;
    background: #ffffff;
    position: absolute;
    left: 0; top: 0;
}

.vibe-bar-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: 'Inter', sans-serif; font-feature-settings: 'tnum';
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ff5e3a;
    mix-blend-mode: difference;
    z-index: 2;
    pointer-events: none;
}

/* Map Echoes */
.map-echo {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 5;
    transition: opacity 1s ease;
}

/* Echo modal */
#echo-modal .oracle-content {
    max-width: 90%;
}

#echo-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #ffffff;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    padding: 10px 0;
    outline: none;
    text-transform: uppercase;
    margin-bottom: 24px;
}

#echo-input::placeholder {
    color: #333333;
}

.echo-fab {
    position: fixed;
    bottom: 160px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    color: #0a0a0a;
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 100;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    pointer-events: auto;
}

.echo-fab:active {
    transform: scale(0.9);
}

/* --- VIBE CHECK ECHO PINS --- */
.echo-marker {
    background: transparent;
    border: none;
}
.echo-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.echo-bubble {
    background: rgba(25, 25, 30, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 24px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.echo-user {
    font-size: 9px;
    font-weight: 700;
    color: #ff8e53;
    margin-bottom: 2px;
}
.echo-msg {
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    text-align: center;
}
.echo-time {
    font-size: 8px;
    color: #888;
    margin-top: 4px;
}
.echo-dot {
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    margin-top: 5px;
    box-shadow: 0 0 10px #ff6b6b;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* --- SKELETON LOADERS & BREATHE ANIMATION --- */
@keyframes breathe {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(255, 94, 58, 0.4); }
    50% { opacity: 0.6; text-shadow: 0 0 2px rgba(255, 94, 58, 0.1); }
}

.skeleton-card {
    background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 24px;
    height: 90px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.skeleton-pill {
    background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 32px;
    height: 50px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* --- REFRESH BUTTON (MOBILE ONLY) --- */
.btn-refresh-map {
    display: none;
    position: absolute;
    bottom: 24px;
    right: 16px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    text-align: center;
    line-height: 48px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}
.btn-refresh-map:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .btn-refresh-map {
        display: block;
    }
}
