/* ====== KÁRTYA / DOBOZ ====== */

.pt-lw-wrapper {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 18px;
    background: radial-gradient(circle at top, #a64bff, #1a0328 60%, #05000a 100%);
    box-shadow: 0 0 35px rgba(99, 3, 162, 0.7);
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pt-lw-inner {
    text-align: center;
}

.pt-lw-title {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.pt-lw-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

/* ====== FORM ====== */

.pt-lw-form {
    margin-bottom: 18px;
}

.pt-lw-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 999px;
    border: none;
    outline: none;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.pt-lw-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 11px 12px;
    background: linear-gradient(90deg, #ff00ff, #6303a2);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

.pt-lw-btn:hover:not(.pt-lw-btn-disabled) {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(255, 0, 255, 0.9);
}

.pt-lw-btn-disabled {
    opacity: 0.6;
    cursor: default;
}

/* ====== KERÉK ====== */

.pt-lw-wheel-container {
    position: relative;
    margin: 15px auto 8px;
    width: 200px;
    height: 200px;
}

.pt-lw-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fff;
    position: relative;
    margin: 0 auto;
    background: conic-gradient(
        #ff66ff 0deg 60deg,
        #6303a2 60deg 120deg,
        #ffcc00 120deg 180deg,
        #ff3366 180deg 240deg,
        #00c8ff 240deg 300deg,
        #9b59ff 300deg 360deg
    );
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.6);
    transition: transform 3s cubic-bezier(0.12, 0.85, 0.26, 0.99);
}

.pt-lw-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #ffe6ff 40%, #ff00ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #6303a2;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.pt-lw-indicator {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    color: #ffeb3b;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

/* ====== EREDMÉNY ====== */

.pt-lw-result {
    margin-top: 8px;
    font-size: 0.95rem;
}

.pt-lw-result strong {
    color: #ffeb3b;
}

/* ====== POPUP OVERLAY ====== */

#pt-lw-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;          /* alapból rejtve, JS mutatja */
    align-items: center;
    justify-content: center;
}

#pt-lw-popup-overlay.pt-lw-active {
    display: flex;
}

#pt-lw-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

#pt-lw-popup-box {
    position: relative;
    max-width: 480px;
    width: 90%;
    z-index: 1;
    animation: pt-lw-popup-in 0.25s ease-out;
}

#pt-lw-popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #6303a2;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

/* ANIMÁCIÓ */

@keyframes pt-lw-popup-in {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Nyeremény (WIN) */
.pt-lw-win {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #00ffb7 !important;
    text-shadow: 0 0 12px #00d195;
    margin-top: 12px;
    display: block;
}

/* Nem nyert (LOSE) */
.pt-lw-lose {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ff4e4e !important;
    text-shadow: 0 0 10px #ff0000;
    margin-top: 12px;
    display: block;
}
/* ====== TOOLTIP – Lucky Wheel grafikon ====== */

.pt-chart-col {
    position: relative;
}

.pt-lw-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.15s ease-out;
    z-index: 9999;
}

/* kis nyíl alul */
.pt-lw-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0,0,0,0.85) transparent transparent transparent;
}

.pt-chart-col:hover .pt-lw-tooltip {
    opacity: 1;
    visibility: visible;
}
/* ====== NYEREMÉNY LISTA (Mit nyerhetsz?) ====== */

.pt-lw-prize-info {
    margin-top: 15px;
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 15px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.pt-lw-prize-info strong {
    color: #ffb8ff;
}