@scope ([data-iw4m-plugin="Credify"]) to ([data-iw4m-host]) {
/* Credify Wheel — a colour-sliced money wheel (slices sized by odds) that spins to the result. Layout/chrome
   come from the host via PluginPageShell; these are the game-specific bits. */

.wh-felt {
    background: radial-gradient(130% 110% at 50% -10%, #15233a 0%, #101a2c 45%, #070b14 100%);
}

.wh-muted { color: var(--color-subtle, #a1a1aa); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.wh-chip-stat {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.7rem; border-radius: 0.6rem;
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700; font-size: 0.85rem;
}
.wh-panel { border-radius: 1rem; padding: 1.25rem; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.08); }

/* ── wheel ───────────────────────────────────────────────────────────── */
.wh-stage { display: flex; justify-content: center; }
.wh-wheel {
    position: relative;
    width: min(20rem, 80vw); aspect-ratio: 1;
}
.wh-rotor {
    position: absolute; inset: 0; border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 0 40px rgba(0, 0, 0, 0.45);
    will-change: transform;
}
/* pointer at 12 o'clock */
.wh-pointer {
    position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; z-index: 3;
    border-left: 11px solid transparent; border-right: 11px solid transparent;
    border-top: 18px solid #fcd34d;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}
.wh-hub {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 38%; aspect-ratio: 1; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; z-index: 2;
    background: radial-gradient(circle at 50% 35%, #2a3753, #131c2e);
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.wh-hub-val { font-size: clamp(1.4rem, 7vw, 2.1rem); font-weight: 900; color: #fcd34d; font-variant-numeric: tabular-nums; }

/* ── spin button ─────────────────────────────────────────────────────── */
.wh-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.8rem; border-radius: 0.8rem; font-weight: 800; font-size: 1.05rem; color: #fff;
    transition: filter 0.15s ease, transform 0.05s ease;
}
.wh-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wh-btn-spin { background: linear-gradient(180deg, #6366f1, #4338ca); box-shadow: 0 8px 20px rgba(67, 56, 202, 0.4); }
.wh-btn-spin:hover:not(:disabled) { filter: brightness(1.1); }
.wh-btn-spin:active:not(:disabled) { transform: translateY(1px); }

/* ── paytable / legend ───────────────────────────────────────────────── */
.wh-paytable {
    max-width: 26rem; margin-inline: auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3rem 0.8rem;
    border-radius: 0.8rem; padding: 0.6rem 0.9rem;
    background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.07);
}
.wh-paytable-row { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.wh-swatch { width: 0.85rem; height: 0.85rem; border-radius: 0.25rem; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3); }
.wh-pt-mult { font-weight: 800; color: #fcd34d; font-variant-numeric: tabular-nums; }
.wh-pt-chance { margin-left: auto; color: #a1a1aa; font-size: 0.78rem; font-variant-numeric: tabular-nums; }

}
