html, body {
    min-height: 100%;
}

body {
    color: #fff;
    background:
        radial-gradient(circle at 11% 18%, rgba(255, 236, 154, .38) 0 0.7rem, transparent .75rem),
        radial-gradient(circle at 88% 27%, rgba(255, 236, 154, .34) 0 0.9rem, transparent .95rem),
        linear-gradient(145deg, #f31f17 0%, #fb4a18 38%, #ff8c21 100%);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background:
        radial-gradient(circle at 50% 54%, rgba(255, 221, 111, .58), transparent 28%),
        radial-gradient(circle at 18% 66%, rgba(255, 211, 83, .38), transparent 10%),
        radial-gradient(circle at 82% 70%, rgba(255, 211, 83, .36), transparent 10%);
}

body::after {
    background:
        linear-gradient(125deg, transparent 0 16%, rgba(255,255,255,.08) 16% 24%, transparent 24% 100%),
        linear-gradient(154deg, transparent 0 58%, rgba(255,255,255,.08) 58% 64%, transparent 64% 100%);
}

.header {
    padding: 24px 16px 10px;
}

.header h1 {
    color: #fff8d7;
    font-size: clamp(2.5rem, 9vw, 4.8rem);
    line-height: 1.03;
    font-weight: 950;
    letter-spacing: 0;
    text-shadow:
        0 5px 0 rgba(141, 25, 0, .28),
        0 12px 26px rgba(139, 12, 0, .34);
    margin: 2px auto 14px;
    font-size: 0;
}

.header h1::before {
    content: "幸运大转盘\A转到就是赚到";
    white-space: pre-line;
    display: block;
    font-size: clamp(2.5rem, 9vw, 4.8rem);
}

.header p {
    display: inline-block;
    min-width: min(86vw, 520px);
    color: #f0441f;
    background: linear-gradient(180deg, #fff8dc, #ffd68d);
    border: 2px solid rgba(255,255,255,.56);
    border-radius: 999px;
    padding: 11px 20px;
    font-size: clamp(1rem, 3.3vw, 1.32rem);
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(160, 41, 0, .22), inset 0 -2px 0 rgba(223, 99, 0, .14);
    font-size: 0;
}

.header p::before {
    content: "年货节充值赢抽奖机会";
    font-size: clamp(1rem, 3.3vw, 1.32rem);
}

.user-bar {
    position: relative;
    z-index: 3;
    margin-top: 16px;
}

.user-bar a,
.user-bar span {
    border-radius: 999px;
    border: 1px solid rgba(255, 238, 175, .58);
    background: rgba(126, 23, 0, .24);
    color: #fff9df;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.user-bar a:hover {
    background: #fff4c9;
    color: #d93618;
}

.main-container {
    max-width: 560px;
    padding: 10px 20px 26px;
}

.wheel-wrapper {
    max-width: min(88vw, 460px);
    margin-bottom: 18px;
    filter: drop-shadow(0 24px 24px rgba(123, 24, 0, .28));
}

.wheel-wrapper::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -52px;
    width: 78%;
    height: 86px;
    transform: translateX(-50%) perspective(110px) rotateX(16deg);
    background: linear-gradient(180deg, #fff3b2, #ffd36b);
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
    border: 5px solid rgba(255, 240, 154, .85);
    z-index: 0;
    box-shadow: 0 14px 18px rgba(126, 24, 0, .24);
}

.wheel-wrapper::after {
    content: "充值100即可参与抽奖";
    position: absolute;
    left: 50%;
    bottom: -35px;
    transform: translateX(-50%);
    width: 68%;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff8d6;
    background: linear-gradient(180deg, #ffb548, #e76613);
    font-weight: 950;
    font-size: clamp(.92rem, 3vw, 1.2rem);
    box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 8px 12px rgba(111, 21, 0, .25);
    z-index: 11;
}

.pointer {
    top: 42%;
    border-left: 34px solid transparent;
    border-right: 34px solid transparent;
    border-bottom: 82px solid #ffc34c;
    border-top: 0;
    filter: drop-shadow(0 7px 8px rgba(135, 26, 0, .35));
    z-index: 14;
}

.pointer::after {
    content: "";
    position: absolute;
    left: -23px;
    top: 12px;
    border-left: 23px solid transparent;
    border-right: 23px solid transparent;
    border-bottom: 56px solid #ffe07a;
}

.wheel-outer {
    border: 12px solid #ffefb2;
    box-shadow:
        0 0 0 7px #df3d20,
        0 0 0 13px #ffc45a,
        0 0 36px rgba(118, 23, 0, .32),
        inset 0 0 30px rgba(155, 34, 0, .2);
}

.wheel-canvas {
    background: #fff7e8;
    border: 10px solid #d93519;
}

.wheel-svg path {
    stroke: #f25a39;
    stroke-width: 2.3;
}

.wheel-svg path:nth-of-type(odd) {
    fill: #fff4e6;
}

.wheel-svg path:nth-of-type(even) {
    fill: #ffe1d3;
}

.wheel-svg text {
    fill: #d7331a;
    font-weight: 900;
    text-shadow: none;
    font-size: 13px;
}

.bulb {
    width: 13px;
    height: 13px;
    background: #fff7c5;
    box-shadow: 0 0 0 2px #ffd45e, 0 0 9px rgba(255,245,188,.95);
}

.bulb:nth-child(even) {
    background: #ffd45e;
}

.wheel-center {
    width: 94px;
    height: 94px;
    background: radial-gradient(circle at 34% 28%, #ff8a55, #e5301e 58%, #b91512);
    border: 7px solid #ffe17a;
    color: #fff;
    font-size: 1.6rem;
    letter-spacing: 0;
    box-shadow: 0 5px 0 #a31512, 0 10px 22px rgba(91, 16, 0, .36);
}

.input-area {
    margin-top: 68px;
    background: rgba(126, 23, 0, .22);
    border: 1px solid rgba(255, 231, 159, .38);
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(116, 22, 0, .18), inset 0 1px 0 rgba(255,255,255,.14);
}

.input-area label {
    color: #fff8d7;
    font-size: 1rem;
}

.input-row input {
    background: rgba(255,255,255,.92);
    color: #8c260d;
    border-color: #ffe6a7;
    border-radius: 999px;
    letter-spacing: 0;
}

.input-row input::placeholder {
    color: #be7954;
}

.btn-spin {
    border-radius: 999px;
    background: linear-gradient(180deg, #fff0a8, #ffba3f);
    color: #da3217;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 8px 14px rgba(111, 21, 0, .22);
}

.error-msg {
    background: rgba(111, 13, 0, .35);
    border-color: rgba(255, 226, 151, .45);
    color: #fff7cf;
}

.footer {
    color: rgba(255,255,255,.72);
}

.modal {
    border-radius: 18px;
    border: 4px solid #ffe08a;
}

@media (max-width: 480px) {
    .header { padding-top: 18px; }
    .header h1 { font-size: 2.55rem; }
    .header p { min-width: 0; width: 86vw; padding: 9px 14px; }
    .main-container { padding-left: 14px; padding-right: 14px; }
    .wheel-wrapper { max-width: 88vw; }
    .wheel-center { width: 76px; height: 76px; font-size: 1.22rem; border-width: 5px; }
    .wheel-wrapper::after { width: 74%; font-size: .95rem; }
}
