#imprecatio-app-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-main, #1a252f);
    color: var(--text-light, #ffffff);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    user-select: none;
}

#imprecatio-app-wrapper .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    background: #34495e;
    color: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.4);
    transition: background 0.2s;
}

#imprecatio-app-wrapper .action-btn:hover {
    background: #2980b9;
    color: white;
}

.radial-slice {
    cursor: pointer;
    transition: filter 0.1s;
}
.radial-slice:active {
    filter: brightness(1.2);
}

.counter-display {
    position: absolute;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    pointer-events: none;
}

.counter-label {
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.icon-feedback {
    /* Dimensione fluida per evitare accavallamenti */
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 0;
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}
.icon-feedback.pop {
    transform: scale(1.5);
}

.counter-number {
    /* Dimensione fluida per non sforare */
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1;
    margin: -5px 0;
    color: #ffffff;
}

.counter-total {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.flying-anim {
    position: absolute;
    top: 50%;
    left: -200px;
    transform: translateY(-50%);
    height: 100px;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}
.fly-active {
    animation: flyAcross 2s linear forwards;
}

@keyframes flyAcross {
    0% { left: -200px; opacity: 1; }
    100% { left: 100vw; opacity: 1; }
}

/* --- Mappa Inferi --- */
.map-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
    filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.9));
}
.map-pin.is-me {
    font-size: 2.5rem;
    z-index: 15;
    filter: drop-shadow(0px 0px 10px rgba(241, 196, 15, 0.8));
}
.map-pin:hover {
    transform: translate(-50%, -100%) scale(1.4);
    z-index: 20;
}
.map-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    font-size: 0.9rem;
    font-family: monospace;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.map-pin:hover .map-tooltip {
    visibility: visible;
    opacity: 1;
}

/* --- Fix Mobile --- */
@media (max-width: 480px) {
    .imp-hide-mobile {
        display: none !important;
    }
    .counter-label { 
        font-size: 0.85rem; 
        padding: 2px 8px; 
    }
}