* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #e53935;
    font-family: "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}
.container {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px 15px;
    position: relative;
}
.header {
    text-align: center;
    color: #fff;
    margin-bottom: 15px;
}
.header h1 {
    font-size: 26px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}
.header .sub-title {
    font-size: 14px;
    background: rgba(0,0,0,0.15);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 20px;
}
.wheel-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 20px auto;
}
.wheel-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffca28;
    border: 8px solid #ffca28;
    box-shadow: 0 0 20px rgba(0,0,0,0.3), inset 0 0 30px rgba(255,202,40,0.3);
    position: relative;
    overflow: hidden;
}
.wheel-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
}
.prize-sector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.prize-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 35px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-align: center;
}
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #ffca28;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #c62828;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10;
    border: 4px solid #fff;
}
.wheel-center:active {
    transform: translate(-50%, -50%) scale(0.95);
}
.pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
    z-index: 20;
}
.pointer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ffca28;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.pointer::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #ffca28;
    border-radius: 50%;
    border: 3px solid #fff;
}
.btn-lottery {
    display: block;
    width: 260px;
    height: 50px;
    margin: 25px auto;
    background: #ffca28;
    border: none;
    border-radius: 25px;
    font-size: 20px;
    font-weight: bold;
    color: #c62828;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.btn-lottery:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
}
.rules-box {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    color: #fff;
}
.rules-box h3 {
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
}
.rules-box p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 5px;
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: #fff;
    border-radius: 15px;
    padding: 30px 25px;
    width: 320px;
    text-align: center;
    animation: modalPop 0.3s ease;
}
@keyframes modalPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.modal-content h3 {
    color: #e53935;
    font-size: 22px;
    margin-bottom: 15px;
}
.modal-content input {
    width: 100%;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px;
    margin-bottom: 15px;
    outline: none;
}
.modal-content input:focus {
    border-color: #e53935;
}
.modal-content button {
    width: 100%;
    height: 45px;
    background: #e53935;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.result-modal .prize-icon {
    font-size: 60px;
    margin-bottom: 10px;
}
.result-modal h3 {
    color: #e53935;
    font-size: 24px;
    margin-bottom: 10px;
}
.result-modal p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}
.result-modal button {
    width: 100%;
    height: 45px;
    background: #e53935;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.light-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px #fff;
}
.light-dot.on {
    background: #ffeb3b;
    box-shadow: 0 0 10px #ffeb3b;
}