* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
    color: #e8fff8;
    background: #02050a;
    overflow: hidden;
}

#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* 主容器 */
.app-wrapper {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    padding: 12px 10px 16px;
    display: flex;
    flex-direction: column;
}

/* 头部 */
.app-header {
    text-align: center;
    margin-bottom: 10px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b1ffe0;
    text-shadow: 0 0 12px rgba(0,255,180,0.5);
}

.subtitle {
    font-size: 12px;
    color: #7de9c3;
    opacity: .85;
}

/* 主区域滚动 */
.app-main {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
}

/* 转盘区域 */
.wheel-section {
    display: flex;
    justify-content: center;
    margin: 30px 0 4px;
}

.wheel-container {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto;
}

.wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image:
        conic-gradient(
            from 0deg,
            #0f3f2f 0deg 45deg,
            #168a5d 45deg 90deg,
            #1d4d36 90deg 135deg,
            #1fa06c 135deg 180deg,
            #0f3f2f 180deg 225deg,
            #168a5d 225deg 270deg,
            #1d4d36 270deg 315deg,
            #1fa06c 315deg 360deg
        );
    border: 5px solid rgba(201,255,229,0.7);
    box-shadow:
        0 0 25px rgba(0,255,180,0.4),
        inset 0 0 18px rgba(0,0,0,0.7);
    transition: transform 4s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: visible;
}

.glow-ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px solid rgba(0,255,180,.2);
    box-shadow: 0 0 40px rgba(0,255,180,.4);
    pointer-events: none;
}

/* 奖品文字 */
.wheel-slices {
    list-style: none;
    position: absolute;
    inset: 0;
}

.wheel-slices li {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50%;                 /* 从圆心到外圈 */
    transform-origin: 0% 0%;    /* 以圆心为旋转点 */
    color: #e8fff8;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: flex-end;  /* 文字靠近外圈 */
    padding-right: 10px;
}

/* 中心按钮 */
.wheel-center {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #faffff, #d1fff0, #0d3a2b);
    border: 3px solid #c5fbe7;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 30px rgba(0,255,200,0.5),
        inset 0 0 12px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-center button {
    border: none;
    outline: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #11c97a, #0b8d56);
    color: #f5fffb;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,255,160,0.6);
    transition: transform .1s ease, box-shadow .1s ease, filter .1s ease;
}

.wheel-center button:active {
    transform: scale(.95);
    box-shadow: 0 0 3px rgba(0,255,160,0.4);
    filter: brightness(.95);
}

/* 右侧指针，从外指向内 */
.wheel-container::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -21px;                   /* 在右侧 */
    transform: translateY(-50%);    /* 垂直居中 */
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 22px solid #f3ffe9;  /* 三角形指向左边（也就是指向圆心） */
    filter: drop-shadow(0 0 6px rgba(0,0,0,.7));
    z-index: 5;
}

/* 控制区域 */
.control-section {
    margin: 30px 4px 6px;
    padding: 10px 10px 12px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(5,35,26,0.9), rgba(6,52,37,0.9));
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
}

.input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.input-row input {
    flex: 1;
    border-radius: 10px;
    border: 1px solid rgba(147, 255, 215, 0.7);
    background: rgba(1,15,11,0.9);
    color: #e8fff8;
    padding: 8px 10px;
    font-size: 13px;
}

.input-row input::placeholder {
    color: rgba(180,255,230,.5);
}

.input-row button {
    flex-shrink: 0;
    padding: 0 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #1af797, #0ca56b);
    color: #023121;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,255,180,0.5);
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #b7ffde;
}

#status-tip {
    color: #ffd27f;
}

/* 中奖记录区域 */
.records-section {
    margin: 8px 4px 0;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(3,25,18,0.85), rgba(5,42,30,0.95));
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
}

.records-title {
    font-size: 13px;
    color: #c8ffe8;
    margin-bottom: 6px;
}

.records-box {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(132,255,210,0.4);
    background: radial-gradient(circle at top, rgba(10,80,60,.4), rgba(0,10,6,.9));
}

#records-list {
    list-style: none;
    padding: 6px 10px;
    position: relative;
}

#records-list li {
    font-size: 12px;
    padding: 3px 0;
    color: #d5fff0;
    display: flex;
    justify-content: space-between;
    opacity: .9;
}

/* 垂直滚动（scroll.js 里会加 class） */
.records-scroll {
    animation: records-scroll 10s linear infinite;
}

@keyframes records-scroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

/* 手机适配 */
@media (max-width: 360px) {
    .wheel-container {
        width: 230px;
        height: 230px;
    }
    .wheel-center {
        width: 95px;
        height: 95px;
    }
    .wheel-center button {
        font-size: 13px;
        padding: 8px 12px;
    }
}
/* ====== 标题样式 ====== */
.wheel-title {
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    margin: 15px 0 5px;
    color: #b1ffe0;
    text-shadow: 0 0 12px rgba(0,255,180,0.5);
    z-index: 10;
    position: relative;
}
