/* DRAKION V0.4.1AP51 — Wheel of Fortune Premium Skin
   Scope: solo usercp/wheeloffortune.
   No toca lógica, premios, SQL ni AJAX.
*/

body.drakion-ap51-wheel {
    --ap51-gold: #d99b38;
    --ap51-gold2: #ffd98a;
    --ap51-blue: #061833;
    --ap51-blue2: #0c2a55;
    --ap51-dark: #070b12;
    --ap51-panel: rgba(9, 15, 25, .86);
    --ap51-border: rgba(217, 155, 56, .55);
}

body.drakion-ap51-wheel .account-wide,
body.drakion-ap51-wheel .container_3.account-wide {
    overflow: visible !important;
}

body.drakion-ap51-wheel .fortune-msg-holder {
    max-width: 980px;
    margin: 0 auto 14px auto;
}

.drakion-ap51-wheel-wrap {
    max-width: 1040px;
    margin: 0 auto 34px auto;
    padding: 24px 24px 26px;
    background:
        radial-gradient(circle at 50% 25%, rgba(24, 72, 138, .33), transparent 42%),
        radial-gradient(circle at 50% 70%, rgba(217, 155, 56, .13), transparent 48%),
        linear-gradient(180deg, rgba(6, 10, 17, .93), rgba(14, 20, 32, .88));
    border: 1px solid rgba(217, 155, 56, .42);
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(255, 216, 138, .08) inset,
        0 18px 50px rgba(0,0,0,.45),
        0 0 42px rgba(196, 111, 32, .16);
    position: relative;
    overflow: hidden;
}

.drakion-ap51-wheel-wrap:before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        linear-gradient(110deg, transparent 0%, rgba(255, 207, 120, .08) 40%, transparent 58%),
        radial-gradient(circle at 10% 15%, rgba(255, 157, 56, .18), transparent 16%),
        radial-gradient(circle at 88% 80%, rgba(255, 157, 56, .13), transparent 20%);
    pointer-events: none;
}

.drakion-ap51-wheel-hero,
.drakion-ap51-wheel-bottom {
    position: relative;
    z-index: 2;
}

.drakion-ap51-wheel-hero {
    text-align: center;
    margin-bottom: 18px;
}

.drakion-ap51-wheel-kicker {
    display: inline-block;
    color: var(--ap51-gold2);
    letter-spacing: 9px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(255, 188, 75, .45);
    border-bottom: 1px solid rgba(217, 155, 56, .45);
    padding: 0 18px 8px;
}

.drakion-ap51-wheel-title {
    margin: 7px 0 2px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 6vw, 70px);
    line-height: .96;
    font-weight: 700;
    letter-spacing: 5px;
    color: #f7d48a;
    text-transform: uppercase;
    text-shadow:
        0 2px 0 #6f3b11,
        0 0 10px rgba(255, 201, 91, .45),
        0 0 32px rgba(11, 73, 168, .35);
}

.drakion-ap51-wheel-subtitle {
    color: rgba(245, 227, 184, .82);
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

body.drakion-ap51-wheel .skills-wheel {
    width: min(680px, 88vw) !important;
    height: min(680px, 88vw) !important;
    margin: 24px auto 20px !important;
    overflow: visible !important;
    position: relative !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at center, #05070b 0 16%, #0a1932 17% 31%, #0e2b55 32% 47%, #071426 48% 63%, #05070b 64% 100%) !important;
    box-shadow:
        0 0 0 5px #5f3510,
        0 0 0 10px #e7ac48,
        0 0 0 13px #6b3b11,
        0 0 34px rgba(255, 184, 65, .45),
        0 22px 58px rgba(0,0,0,.62) !important;
}

body.drakion-ap51-wheel .skills-wheel:before {
    content: "";
    width: 0 !important;
    height: 0 !important;
    border-left: 18px solid transparent !important;
    border-right: 18px solid transparent !important;
    border-top: 0 !important;
    border-bottom: 38px solid #ffd27b !important;
    position: absolute !important;
    top: -19px !important;
    left: 50% !important;
    margin-left: -18px !important;
    z-index: 50 !important;
    filter: drop-shadow(0 0 10px rgba(255, 198, 85, .75));
}

body.drakion-ap51-wheel .skills-wheel:after {
    content: "";
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 216, 138, .45);
    box-shadow:
        0 0 0 1px rgba(91, 48, 14, .7) inset,
        0 0 30px rgba(255, 178, 64, .23);
    pointer-events: none;
}

body.drakion-ap51-wheel .wheel {
    border: 16px solid transparent !important;
    background:
        radial-gradient(circle at center, transparent 0 22%, rgba(248, 232, 190, .92) 23% 48%, rgba(4, 20, 45, .96) 49% 100%) !important;
    box-shadow:
        0 0 0 2px rgba(255, 221, 147, .8) inset,
        0 0 0 15px rgba(101, 55, 17, .9) inset,
        0 0 0 21px rgba(255, 198, 86, .7) inset !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

body.drakion-ap51-wheel .wheel li {
    color: #ffe9ae !important;
    text-shadow: 0 2px 4px rgba(0,0,0,.8);
}

body.drakion-ap51-wheel .wheel li:nth-child(odd) {
    filter: brightness(1.08);
}

body.drakion-ap51-wheel .wheel a {
    top: 46px !important;
    left: 0 !important;
    color: #ffe9ae !important;
    text-transform: uppercase;
    font-weight: 700;
}

body.drakion-ap51-wheel .wheel a img {
    width: 58px !important;
    height: 58px !important;
    object-fit: contain !important;
    padding: 6px;
    background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,230,170,.45) 62%, rgba(0,0,0,.15));
    border: 1px solid rgba(255, 216, 138, .62);
    border-radius: 14px;
    box-shadow:
        0 8px 14px rgba(0,0,0,.45),
        0 0 18px rgba(54, 153, 255, .18);
}

body.drakion-ap51-wheel .itembg {
    border-top-color: rgba(6, 31, 68, .86) !important;
    filter: drop-shadow(0 0 1px rgba(255, 218, 130, .45));
}

body.drakion-ap51-wheel .wheel li:nth-child(even) .itembg {
    border-top-color: rgba(245, 231, 196, .86) !important;
}

body.drakion-ap51-wheel .skills-wheel .btn,
body.drakion-ap51-wheel #spin {
    width: 148px !important;
    height: 148px !important;
    line-height: 136px !important;
    margin: -74px 0 0 -74px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 5px solid #dca145 !important;
    background:
        radial-gradient(circle at 50% 35%, #1d2430, #090c13 58%, #000 100%) !important;
    color: #f8d88b !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-shadow:
        0 2px 0 #4c2a0b,
        0 0 14px rgba(255, 204, 102, .5) !important;
    box-shadow:
        0 0 0 5px rgba(7, 25, 55, .95),
        0 0 0 9px rgba(217, 155, 56, .7),
        0 0 26px rgba(255, 185, 70, .36),
        inset 0 -10px 18px rgba(0,0,0,.65) !important;
    z-index: 60 !important;
}

body.drakion-ap51-wheel #spin:hover {
    color: #fff2bc !important;
    box-shadow:
        0 0 0 5px rgba(7, 25, 55, .95),
        0 0 0 9px rgba(255, 210, 115, .85),
        0 0 42px rgba(255, 185, 70, .55),
        inset 0 -10px 18px rgba(0,0,0,.65) !important;
}

body.drakion-ap51-wheel #spin.spinDisabled {
    opacity: .72;
    filter: grayscale(.15);
}

.drakion-ap51-wheel-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 920px;
    margin: 20px auto 0;
}

.drakion-ap51-wheel-feature {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(3, 8, 16, .62);
    border: 1px solid rgba(217, 155, 56, .34);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 236, 184, .05);
}

.drakion-ap51-wheel-feature-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffcf76;
    border: 1px solid rgba(217, 155, 56, .5);
    background: rgba(255, 188, 69, .09);
    font-size: 20px;
}

.drakion-ap51-wheel-feature strong {
    display: block;
    color: #f3c16d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.drakion-ap51-wheel-feature span {
    display: block;
    color: rgba(245, 232, 203, .76);
    font-size: 12px;
    margin-top: 2px;
}

/* Mensajes y texto superior */
body.drakion-ap51-wheel .desc-row,
body.drakion-ap51-wheel .desc-row p {
    color: rgba(245, 232, 203, .86);
}

body.drakion-ap51-wheel .desc-row {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 900px) {
    body.drakion-ap51-wheel .skills-wheel {
        width: min(560px, 90vw) !important;
        height: min(560px, 90vw) !important;
    }

    body.drakion-ap51-wheel .wheel a {
        top: 36px !important;
    }

    body.drakion-ap51-wheel .wheel a img {
        width: 48px !important;
        height: 48px !important;
    }

    body.drakion-ap51-wheel .skills-wheel .btn,
    body.drakion-ap51-wheel #spin {
        width: 120px !important;
        height: 120px !important;
        line-height: 108px !important;
        margin: -60px 0 0 -60px !important;
        font-size: 24px !important;
    }

    .drakion-ap51-wheel-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    body.drakion-ap51-wheel .wheel a img {
        width: 38px !important;
        height: 38px !important;
    }

    .drakion-ap51-wheel-title {
        font-size: 34px;
        letter-spacing: 3px;
    }

    .drakion-ap51-wheel-kicker,
    .drakion-ap51-wheel-subtitle {
        letter-spacing: 3px;
    }
}
