/* ============================================================
   wheel.css — Octalysis Wheel HUD
   ============================================================ */

/* ── Contenedor del wheel ────────────────────────────────── */
#octalysis-wheel-hud {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    transition: opacity .4s ease;
}

#octalysis-wheel-hud.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── Label ───────────────────────────────────────────────── */
#wheel-label {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ── SVG wheel ───────────────────────────────────────────── */
#wheel-svg {
    filter: drop-shadow(0 4px 18px rgba(0,0,0,.6));
}

/* Segmentos inactivos */
.wheel-segment {
    transition: fill .5s ease, opacity .5s ease;
    opacity: 0.25;
    cursor: default;
}

/* Segmentos activos */
.wheel-segment.active {
    opacity: 1;
    animation: wheel-glow .4s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes wheel-glow {
    from { opacity: 0; transform-origin: center; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}

/* Borde del octágono */
.wheel-outline {
    fill: none;
    stroke: rgba(255,255,255,.08);
    stroke-width: 1;
}

/* Emojis en cada segmento */
.wheel-emoji {
    font-size: 14px;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    transition: opacity .4s;
}

.wheel-emoji.inactive {
    opacity: 0.3;
    filter: grayscale(1);
}

/* Contador central */
#wheel-count {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    fill: #fff;
    text-anchor: middle;
    dominant-baseline: central;
}

#wheel-count-sub {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 8px;
    fill: rgba(255,255,255,.4);
    text-anchor: middle;
    dominant-baseline: central;
}

/* ── Tooltip al hover sobre un segmento ─────────────────── */
#wheel-tooltip {
    position: fixed;
    background: rgba(0,0,0,.88);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    pointer-events: none;
    z-index: 41;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .15s;
    transform: translateX(-50%);
}

#wheel-tooltip.visible { opacity: 1; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 520px) {
    #octalysis-wheel-hud { bottom: 12px; }
    #wheel-svg           { width: 100px; height: 100px; }
}
