* {
    box-sizing: border-box;
}

body.public-page {
    margin: 0;
    min-height: 100vh;
    color: #e9f8ff;
    background: radial-gradient(circle at top, #143650 0%, #071a2d 40%, #030b15 100%);
    background-size: cover;
    background-position: center;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.wheel-wrapper {
    backdrop-filter: blur(2px);
}

.glass-card {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(5, 23, 38, 0.9), rgba(4, 10, 24, 0.94));
    border: 1px solid rgba(78, 232, 255, 0.34);
    border-radius: 28px;
    box-shadow: 0 26px 75px rgba(0, 0, 0, 0.62), inset 0 0 40px rgba(0, 224, 255, 0.09);
}

.brand-logo {
    max-height: 96px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(72, 233, 255, 0.45));
}

.brand-title {
    letter-spacing: 6px;
    font-weight: 800;
}

#codeInput {
    border: 1px solid rgba(96, 227, 255, 0.5);
    font-weight: 700;
    background-color: rgba(9, 26, 43, 0.92);
    color: #eafaff;
}

#codeInput::placeholder {
    color: rgba(196, 233, 255, 0.75);
}

#codeInput:focus {
    border-color: rgba(102, 246, 255, 0.9);
    box-shadow: 0 0 0 0.2rem rgba(0, 208, 255, 0.2), 0 0 18px rgba(56, 229, 255, 0.35);
}

.btn-neon {
    color: #041015;
    background: linear-gradient(135deg, #35ebff, #16bbff);
    border: none;
    box-shadow: 0 8px 22px rgba(0, 216, 255, 0.34);
}

.btn-neon:hover,
.btn-neon:focus {
    color: #041015;
    background: linear-gradient(135deg, #65f4ff, #21c7ff);
}

.btn-neon:disabled {
    opacity: 0.8;
}

.wheel-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wheel-stage {
    position: relative;
    display: block;
    margin-inline: auto;
    max-width: min(92vw, 560px);
}

.wheel-stage::before {
    content: "";
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(89, 232, 255, 0.16) 0%, rgba(7, 22, 40, 0) 60%);
    filter: blur(16px);
    z-index: 0;
}

#wheelCanvas {
    width: min(92vw, 560px);
    height: min(92vw, 560px);
    position: relative;
    z-index: 2;
    border-radius: 50%;
    border: 8px solid rgba(206, 251, 255, 0.95);
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.55), 0 0 50px rgba(30, 204, 255, 0.3);
    background: #fff;
}

.wheel-pointer {
    position: absolute;
    left: 50%;
    top: -12px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 19px solid transparent;
    border-right: 19px solid transparent;
    border-top: 40px solid #52efff;
    filter: drop-shadow(0 3px 10px rgba(0, 220, 255, 0.7));
    z-index: 5;
}

.result-message {
    font-size: 1.15rem;
    font-weight: 700;
    min-height: 48px;
}

.result-message.success {
    color: #64f5ff;
    text-shadow: 0 0 12px rgba(30, 207, 255, 0.5);
}

.result-message.error {
    color: #ff7a9f;
}

.quick-actions {
    margin-top: -24px;
    position: relative;
    z-index: 4;
}

.action-box {
    max-width: 560px;
    margin: 0 auto;
    border: 1px solid rgba(86, 235, 255, 0.45);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(5, 23, 38, 0.88), rgba(4, 10, 24, 0.95));
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45), 0 0 24px rgba(29, 185, 255, 0.15);
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.action-btn {
    min-width: 180px;
    font-weight: 700;
}

.win-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 10, 26, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    padding: 18px;
}

.win-modal.show {
    display: flex;
}

.win-modal-dialog {
    width: min(520px, 100%);
    text-align: center;
    background: linear-gradient(160deg, rgba(5, 26, 45, 0.96), rgba(4, 12, 28, 0.98));
    border: 1px solid rgba(83, 234, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 24px rgba(31, 202, 255, 0.24);
    padding: 34px 26px;
}

.win-modal-dialog h3 {
    color: #76f5ff;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-shadow: 0 0 14px rgba(62, 239, 255, 0.45);
}

.win-modal-dialog p {
    color: #d6f8ff;
    font-size: 1.05rem;
    font-weight: 600;
}

@media (max-width: 576px) {
    .quick-actions {
        margin-top: -12px;
    }

    .action-box {
        padding: 16px;
    }

    .action-btn {
        width: 100%;
    }

    .glass-card {
        border-radius: 18px;
    }

    .brand-title {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }
}
