.lottery-page {
    --lottery-gold: #d4af37;
    --lottery-gold-dark: #b8962e;
}

.lottery-mode-tab {
    min-height: 44px;
}

.lottery-mode-tab[aria-selected="true"] {
    background: linear-gradient(135deg, #d4af37, #b8962e);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(184, 150, 46, 0.7);
}

.lottery-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.25rem 0.35rem 0.25rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 0.8125rem;
    color: #0f172a;
    max-width: 100%;
}

.lottery-chip.is-used {
    opacity: 0.45;
    text-decoration: line-through;
}

.lottery-chip-remove {
    min-width: 44px;
    min-height: 44px;
    border-radius: 999px;
    color: #94a3b8;
}

.lottery-chip-remove:hover {
    color: #e11d48;
    background: #fff1f2;
}

.lottery-wheel-stage {
    position: relative;
    width: min(100%, 26rem);
    margin-inline: auto;
    aspect-ratio: 1;
}

.lottery-wheel-canvas {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.18));
}

.lottery-wheel-pointer {
    position: absolute;
    top: -0.35rem;
    left: 50%;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 28px solid #0f172a;
    transform: translateX(-50%);
    filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.25));
}

.lottery-wheel-pointer::after {
    content: "";
    position: absolute;
    top: -28px;
    left: -7px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d4af37, #b8962e);
    box-shadow: 0 0 0 3px #0f172a;
}

.lottery-wheel-hub {
    position: absolute;
    inset: 38%;
    z-index: 2;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, #fff 0, #f8fafc 45%, #e2e8f0 100%);
    border: 6px solid #0f172a;
    box-shadow: inset 0 0 0 4px #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8962e;
    pointer-events: none;
}

.lottery-spin-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.lottery-winner-card {
    animation: lottery-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lottery-pop {
    0% { transform: scale(0.86); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.lottery-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.lottery-confetti i {
    position: absolute;
    top: -12px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    animation: lottery-fall 1.6s ease-in forwards;
}

@keyframes lottery-fall {
    to { transform: translateY(120vh) rotate(540deg); opacity: 0; }
}

.lottery-group-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.25);
}

.lottery-group-card h3 {
    letter-spacing: -0.02em;
}

@media (max-width: 1023px) {
    .lottery-wheel-stage {
        width: min(100%, 20rem);
    }
}

.lottery-fs-brand {
    display: none;
}

.lottery-fs-brand img {
    height: 3.5rem;
    width: auto;
    max-width: min(18rem, 70vw);
    object-fit: contain;
}

.lottery-stage {
    position: relative;
}

.lottery-stage:fullscreen,
.lottery-stage:-webkit-full-screen,
.lottery-stage.is-css-fs {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f8fafc;
    padding: 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.lottery-stage.is-css-fs {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.lottery-stage:fullscreen .lottery-fs-brand,
.lottery-stage:-webkit-full-screen .lottery-fs-brand,
.lottery-stage.is-css-fs .lottery-fs-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0 0.15rem;
}

.lottery-stage:fullscreen .lottery-fs-brand img,
.lottery-stage:-webkit-full-screen .lottery-fs-brand img,
.lottery-stage.is-css-fs .lottery-fs-brand img {
    height: 4.25rem;
}

.lottery-stage:fullscreen .lottery-wheel-stage,
.lottery-stage:-webkit-full-screen .lottery-wheel-stage,
.lottery-stage.is-css-fs .lottery-wheel-stage {
    width: min(72vmin, 36rem);
}

.lottery-stage:fullscreen .lottery-groups-result,
.lottery-stage:-webkit-full-screen .lottery-groups-result,
.lottery-stage.is-css-fs .lottery-groups-result {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.lottery-stage:fullscreen .lottery-winner-overlay,
.lottery-stage:-webkit-full-screen .lottery-winner-overlay,
.lottery-stage.is-css-fs .lottery-winner-overlay {
    position: absolute;
}
