html,
body {
    height: 100%;
}

body {
    /* Deep Stage Style: Dark radial gradient for depth and spotlight effect */
    background: radial-gradient(ellipse at center, #7a0e15 0%, #300000 100%);
    margin: 0;
    font-family: Helvetica, sans-serif;
    overflow: hidden;
}

/* Hide page scrollbar to avoid bleed-through overlays */
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

a {
    color: #ffffff;
}

.none {
    display: none;
}

/* 页面顶部主题显示 */
.theme-header {
    position: fixed;
    top: 2.5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
}

.theme-title {
    font-size: 5vh;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.4);
    letter-spacing: 4px;
}

.theme-company {
    font-size: 3.2vh;
    font-weight: 600;
    color: rgba(255, 231, 194, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 3px;
}

#container {
    z-index: 3;
    position: relative;
    margin: 0;
    width: 100%;
    height: 100%;
    /* 关键：确保3D变换正确传递，让球体背面的卡片能够显示 */
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* 确保渲染器创建的div也支持3D */
#container>div {
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}


/* 中奖展示时，背景卡片降低透明度 */
.element.dim {
    opacity: 0.25;
    transition: opacity 0.3s ease-out;
}


#menu {
    z-index: 4;
    margin-left: 0;
}

.canvas-box {
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
}

#info {
    position: absolute;
    width: 100%;
    color: #ffffff;
    padding: 5px;
    font-family: Monospace;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    z-index: 1;
}

#menu {
    position: absolute;
    bottom: 3vh;
    width: 100%;
    text-align: center;
}

.floating-btns {
    position: fixed;
    right: 4vh;
    bottom: 3vh;
    z-index: 100;
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
}

/* 左下角浮动按钮区域 */
.floating-btns-left {
    position: fixed;
    left: 4vh;
    bottom: 3vh;
    z-index: 100;
    display: flex;
    gap: 8px;
}

/* 带文字的浮动按钮 */
.floating-btn--text {
    width: auto;
    height: auto;
    padding: 8px 14px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #ffe7c2;
}

.floating-btn--text svg {
    width: 18px;
    height: 18px;
}

.floating-btn--text span {
    white-space: nowrap;
}

.floating-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    background: rgba(80, 20, 25, 0.85);
    border: 1px solid rgba(255, 196, 120, 0.4);
    box-shadow: 0 0 12px rgba(255, 191, 48, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    margin: 0;
}

.floating-btn:hover {
    background: rgba(100, 30, 35, 0.9);
    border-color: rgba(255, 214, 120, 0.8);
    box-shadow: 0 0 18px rgba(255, 191, 48, 0.5);
    transform: scale(1.05);
}

.floating-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/*
 * 卡片样式
 * 注意：width/height 由 JS 动态设置（来源：lottery-config.js 的 LOTTERY_LAYOUT.card）
 */
/* 卡片基础样式 - font-size 由 JS 统一设置 (LU.applyCardStyle) */
.element {
    padding: 0.6vh 0.8vh;
    /* font-size 由 JS 动态设置，确保与卡片尺寸同步缩放 */
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    cursor: default;
    transition: background-color 0.3s ease-in;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 75, 75, 0.55) 0%, rgba(255, 43, 43, 0.5) 50%, rgba(200, 20, 20, 0.45) 100%);
    box-sizing: border-box;
}

.element:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.element .name {
    font-size: 2.2em;
    font-weight: bold;
    color: #fff6e5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.element .details {
    font-size: 1.05em;
    color: #ffe0ad;
    text-shadow: 0 1px 3px rgba(60, 10, 0, 0.5);
    margin-top: 0.3vh;
}

/* 4字段卡片样式 */
.element .field {
    white-space: nowrap;
    overflow: hidden;
    /* text-overflow: ellipsis; Removed to avoid truncation */
    max-width: 100%;
    line-height: 1.2;
}

.element .field-name {
    font-weight: bold;
    color: #fff6e5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    /* 支持动态缩放：根据名字长度调整字号 */
    --name-scale: 1;
}

.element .field-id,
.element .field-dept,
.element .field-phone {
    color: #ffe0ad;
    text-shadow: 0 1px 3px rgba(60, 10, 0, 0.5);
}

/* 根据字段数量自适应字体大小 - 应用动态缩放 */
.element.fields-4 .field-name {
    font-size: calc(1.4em * var(--name-scale, 1));
}

.element.fields-4 .field-id,
.element.fields-4 .field-dept,
.element.fields-4 .field-phone {
    font-size: 0.75em;
}

.element.fields-4 .field {
    line-height: 1.1;
}

.element.fields-3 .field-name {
    font-size: calc(1.6em * var(--name-scale, 1));
}

.element.fields-3 .field-id,
.element.fields-3 .field-dept,
.element.fields-3 .field-phone {
    font-size: 0.85em;
}

.element.fields-2 .field-name {
    font-size: calc(1.8em * var(--name-scale, 1));
}

.element.fields-2 .field-id,
.element.fields-2 .field-dept,
.element.fields-2 .field-phone {
    font-size: 0.95em;
}

.element.fields-1 .field-name {
    font-size: calc(2em * var(--name-scale, 1));
}

/* 中奖卡片4字段样式 - 字体缩放由 JS 统一控制 */
.element.prize .field {
    color: #8b2a00 !important;
    text-shadow: 0 0 8px rgba(255, 237, 189, 0.7) !important;
}

.element.prize .field-name {
    font-size: calc(1.5em * var(--name-scale, 1)) !important;
}

.element.prize.fields-3 .field-name {
    font-size: calc(1.8em * var(--name-scale, 1)) !important;
}

.element.prize.fields-2 .field-name {
    font-size: calc(2em * var(--name-scale, 1)) !important;
}

/* Simplified card mode for 50+ winners (name only) */
.element.simplified {
    padding: 0.3vh 0.5vh;
    justify-content: center;
    min-height: auto;
}

.element.simplified .name-only {
    font-size: calc(1.2em * var(--name-scale, 1));
    font-weight: bold;
    color: #fff6e5;
    text-shadow: 0 0 8px rgba(255, 180, 50, 0.8);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
}

/* 简化模式中奖卡片 - 深色文字 */
.element.simplified.prize .name-only {
    color: #8b2a00;
    text-shadow: 0 0 6px rgba(255, 237, 189, 0.7);
}

/* Enhancements for cards with only name */
.element.name-only-mode {
    justify-content: center;
    /* Center vertically */
}

.element.name-only-mode .name.only-name {
    font-size: calc(2.2em * var(--name-scale, 1));
    margin: 0;
    line-height: normal;
    white-space: nowrap;
}



button {
    /* Optimization: Golden Style for CTA Pop */
    color: #5e0d0d;
    background: linear-gradient(180deg, #ffeebb 0%, #ffc400 100%);
    border: 1px solid #ffde8a;
    padding: 1.6vh 4vh;
    margin: 0 4.6vh;
    font-size: 2vh;
    font-weight: 800;
    cursor: pointer;
    border-radius: 50px;
    /* Pillow shape */
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

button:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(180deg, #fff4d1 0%, #ffdb4d 100%);
    box-shadow: 0 6px 20px rgba(255, 160, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: #fff;
}

button:active {
    transform: translateY(1px);
    filter: brightness(0.95);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4);
}

/*
 * 中奖卡片样式（金色）
 */
.element.prize {
    transition: background-color 0.5s ease-in;
    background: linear-gradient(180deg, #ffe176 0%, #ffc93c 55%, #ff9a00 100%) !important;
    box-shadow: 0 0 18px rgba(255, 191, 48, 0.95) !important;
    border: 2px solid #ffd65a !important;
    z-index: 10 !important;
}

.element.prize .name,
.element.prize .details {
    color: #8b2a00 !important;
    text-shadow: 0 0 8px rgba(255, 237, 189, 0.7) !important;
}

.element.prize .name {
    font-size: calc(2.2em * var(--winner-name-scale, 1) * var(--name-scale, 1)) !important;
}

.element.prize .details {
    font-size: calc(1.05em * var(--winner-name-scale, 1)) !important;
}

.element.prize .name-only {
    font-size: calc(1.4em * var(--winner-name-scale, 1) * var(--name-scale, 1)) !important;
}

.element.prize .name.only-name {
    font-size: calc(2.2em * var(--winner-name-scale, 1) * var(--name-scale, 1)) !important;
}

.dan-mu {
    visibility: hidden;
    position: fixed;
    z-index: -1;
    font-size: 12px;
    top: 1vh;
    left: 0;
    padding: 0 1.2vh;
    height: 2.2vh;
    line-height: 2.2vh;
    border-radius: 1vh;
    box-sizing: border-box;
    background-color: rgba(0, 127, 127, 0.37);
    box-shadow: 0 0 4px rgba(0, 255, 255, 0.5);
    border: 1px solid rgba(127, 255, 255, 0.25);
    color: rgba(127, 255, 255, 0.75);
}

.dan-mu.active {
    visibility: visible;
}

.prize-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.prize-item {
    padding: 10px;
    margin: 8px 0;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: center;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(60, 18, 26, 0.78), rgba(18, 6, 12, 0.85));
    border: 1px solid rgba(255, 196, 120, 0.28);
    color: #ffe7c2;
    width: 100%;
    min-height: 82px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prize-item .prize-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.06);
    text-shadow: none;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prize-text {
    flex: 1;
}

.prize-title {
    margin: 0 0 6px;
    font-size: 14px;
    color: #ffe7c2;
}

.prize-count {
    padding: 2px 0;
    position: relative;
}

.prize-count .progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px;
    overflow: hidden;
    border-radius: 999px;
}

.progress .progress-bar {
    border-radius: 999px;
    position: relative;
    -webkit-animation: animate-positive 2s;
    animation: animate-positive 2s;
    background: linear-gradient(90deg, #ffcf6b, #ff7a3c);
    height: 100%;
    transition: width 0.6s ease;
}

.progress-bar.active {
    animation: reverse progress-bar-stripes 0.4s linear infinite,
        animate-positive 2s;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent);
    background-size: 8px 8px;
}

@-webkit-keyframes animate-positive {
    0% {
        width: 0;
    }
}

@keyframes animate-positive {
    0% {
        width: 0;
    }
}

@-webkit-keyframes progress-bar-stripes {
    from {
        background-position: 8px 0;
    }

    to {
        background-position: 0 0;
    }
}

@keyframes progress-bar-stripes {
    from {
        background-position: 8px 0;
    }

    to {
        background-position: 0 0;
    }
}

.prize-count-left {
    position: absolute;
    color: #fff;
    right: 9px;
    font-size: 1.8vh;
    line-height: 1.6vh;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.shine {
    box-shadow: 0 0 15px 0 rgba(0, 255, 255, 0.5);
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    -webkit-transform-origin: left center;
    transform-origin: left center;
    position: relative;
    overflow: hidden;
}

.done {
    position: relative;
}

.done:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}


.shine span {
    position: absolute;
    display: block
}

.shine span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffb423);
    -webkit-animation: animate1 1s linear infinite;
    animation: animate1 1s linear infinite
}

@-webkit-keyframes animate1 {
    0% {
        left: -100%
    }

    50%,
    100% {
        left: 100%
    }
}

@keyframes animate1 {
    0% {
        left: -100%
    }

    50%,
    100% {
        left: 100%
    }
}

.shine span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #ffb423);
    -webkit-animation: animate2 1s linear infinite;
    animation: animate2 1s linear infinite;
    -webkit-animation-delay: .25s;
    animation-delay: .25s
}

@-webkit-keyframes animate2 {
    0% {
        top: -100%
    }

    50%,
    100% {
        top: 100%
    }
}

@keyframes animate2 {
    0% {
        top: -100%
    }

    50%,
    100% {
        top: 100%
    }
}

.shine span:nth-child(3) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #ffb423);
    -webkit-animation: animate3 1s linear infinite;
    animation: animate3 1s linear infinite;
    -webkit-animation-delay: .50s;
    animation-delay: .50s
}

@-webkit-keyframes animate3 {
    0% {
        right: -100%
    }

    50%,
    100% {
        right: 100%
    }
}

@keyframes animate3 {
    0% {
        right: -100%
    }

    50%,
    100% {
        right: 100%
    }
}

.shine span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #ffb423);
    -webkit-animation: animate4 1s linear infinite;
    animation: animate4 1s linear infinite;
    -webkit-animation-delay: .75s;
    animation-delay: .75s
}

@-webkit-keyframes animate4 {
    0% {
        bottom: -100%
    }

    50%,
    100% {
        bottom: 100%
    }
}

@keyframes animate4 {
    0% {
        bottom: -100%
    }

    50%,
    100% {
        bottom: 100%
    }
}




.prize-mess {
    display: none !important;
}

/* 奖品列表侧栏样式 */
#prizeBar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    width: 260px;
    max-height: 72vh;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(160, 20, 30, 0.45);
    border: 1px solid rgba(255, 214, 120, 0.4);
    border-radius: 0 16px 16px 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25), 0 0 18px rgba(255, 180, 80, 0.15);
    backdrop-filter: blur(10px);
}

#prizeBar::-webkit-scrollbar {
    width: 6px;
}

#prizeBar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 214, 120, 0.9), rgba(255, 120, 80, 0.8));
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

#prizeBar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.prize-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.prize-item {
    padding: 4px 8px;
    margin: 8px 0;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 8px;
    align-items: center;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 214, 120, 0.3);
    color: #ffe7c2;
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.prize-item:not(.shine) span {
    display: none;
}

.prize-item .prize-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.06);
    text-shadow: none;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prize-title {
    margin: 0 0 2px;
    font-size: 14px;
    color: #ffe7c2;
    line-height: 1.2;
}

.prize-count {
    padding: 0;
    position: relative;
}

.prize-count .progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px;
    overflow: hidden;
    border-radius: 999px;
}

.progress .progress-bar {
    border-radius: 999px;
    position: relative;
    -webkit-animation: animate-positive 2s;
    animation: animate-positive 2s;
    background: linear-gradient(90deg, #ffcf6b, #ff7a3c);
    height: 100%;
    transition: width 0.6s ease;
}

.prize-count-left {
    position: absolute;
    color: #ffe7c2;
    right: 0;
    font-size: 12px;
    line-height: 1;
    top: -16px;
}

.prize-item.shine {
    box-shadow: 0 10px 24px rgba(255, 180, 80, 0.45);
    transform: translateX(4px);
}

.prize-item.done {
    opacity: 0.6;
    box-shadow: none;
}

/* 奖项点击和重抽按钮 */
.prize-item {
    cursor: pointer;
}

.prize-item:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
}

.prize-redo-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.25);
    border: 1px solid rgba(255, 193, 7, 0.6);
    color: #ffc107;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.prize-item:hover .prize-redo-btn {
    opacity: 1;
}

.prize-redo-btn:hover {
    background: rgba(255, 193, 7, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

/* 悬浮添加奖项按钮 */
.prize-add-btn-float {
    position: fixed;
    left: 130px;
    bottom: calc(50% - 36vh - 20px);
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.5);
    border: 2px solid rgba(76, 175, 80, 0.8);
    color: #4caf50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 999;
    padding: 0;
    margin: 0;
    pointer-events: auto;
}

.prize-add-btn-float:hover {
    background: rgba(76, 175, 80, 0.7);
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.5);
}

body.prize-hidden .prize-add-btn-float {
    display: none;
}

.prize-toggle {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 20px;
    height: 44px;
    border-radius: 0 4px 4px 0;
    border: 1px solid rgba(255, 196, 120, 0.45);
    background: rgba(0, 0, 0, 0.3);
    color: #ffe7c2;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, opacity 0.15s ease;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.prize-toggle:hover {
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 196, 120, 0.7);
}

.prize-toggle:active {
    transform: translateY(-50%);
}

.prize-hidden #prizeBar {
    display: none;
}

.prize-hidden #prizeToggle {
    opacity: 0.6;
    left: 0;
}

.prize-shine {
    font-size: 5vh;
    font-weight: bold;
    color: #db5c58;
    vertical-align: middle;
    padding: 0 6px;
}

.qipao-container {
    display: none !important;
}

.qipao {
    width: 100%;
    padding: 1.8vh 1.4vh;
    line-height: 1.414;
    margin: 4px 0;
    box-sizing: border-box;
    font-size: 14px;
    background-color: rgba(127, 255, 255, 0.25);
    color: rgba(127, 255, 255, 0.75);
}

.music {
    position: fixed;
    top: 3vh;
    right: 4vh;
    z-index: 5;
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
}

.music-item {
    display: block !important;
    opacity: 0;
}

.music-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 196, 120, 0.4);
    box-shadow: 0 0 22px rgba(255, 191, 48, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.music-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 214, 120, 0.8);
    box-shadow: 0 0 28px rgba(255, 191, 48, 0.6);
    transform: scale(1.05);
}

.rotate-active {
    -webkit-animation: rotate 4s linear infinite;
    animation: rotate 4s linear infinite;
}

@-webkit-keyframes rotate {
    from {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    from {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.margin-l-40 {
    margin-left: 40px;
}

.fixed-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.fixed-btn {
    margin: 20px 0 0;
    width: 200px;
    text-align: center;
    display: block;
}

#lotteryBar {
    position: fixed;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Ensure lotteryBar respects the .none class for hiding */
#lotteryBar.none {
    display: none !important;
}

#reLottery {
    display: none;
}

#lottery {
    -webkit-animation: breath 1.6s linear infinite;
    animation: breath 1.6s linear infinite;
    margin: 0;
}

@-webkit-keyframes breath {
    0% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
        opacity: 0.8;
    }

    50% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
        opacity: 0.8;
    }
}

@keyframes breath {
    0% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
        opacity: 0.8;
    }

    50% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
        opacity: 0.8;
    }
}

/* Settings modal */
.hidden {
    display: none !important;
}

.settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(30, 8, 12, 0.95);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    z-index: 9999;
}





.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.settings-close {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 196, 120, 0.4);
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    box-shadow: 0 0 22px rgba(255, 191, 48, 0.4);
}

.settings-form label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    color: #9bd6ff;
}

.settings-form input,
.settings-panel input,
.settings-panel textarea {
    height: 44px;
    line-height: 1.4;
    font-size: 15px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.settings-panel {
    background: rgba(160, 20, 30, 0.3);
    border: 1px solid rgba(255, 214, 120, 0.3);
    border-radius: 14px;
    padding: 14px;
    backdrop-filter: blur(10px);
}

.settings-form input {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 214, 120, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.settings-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 214, 120, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 16px;
    outline: none;
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    resize: vertical;
    min-height: 140px;
    transition: all 0.3s ease;
}

.settings-form input:focus,
.settings-panel input:focus,
.settings-panel textarea:focus {
    border-color: #ffcf6b;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 8px rgba(255, 207, 107, 0.2);
}

.settings-prize-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    max-height: 55vh;
    overflow: auto;
    padding-right: 6px;
}

.settings-prize-list::-webkit-scrollbar {
    width: 6px;
}

.settings-prize-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 214, 120, 0.9), rgba(255, 120, 80, 0.8));
    border-radius: 4px;
}

.settings-prize-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.settings-prize-item {
    border: 1px solid rgba(255, 214, 120, 0.3);
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 18px rgba(255, 180, 80, 0.1);
}

.settings-prize-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 10px;
    align-items: center;
}

.settings-prize-row input[type="text"],
.settings-prize-row input[type="number"] {
    flex: 1;
    min-width: 120px;
    height: 44px;
}

.settings-prize-actions {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.settings-prize-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 214, 120, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.hint {
    margin-bottom: 10px;
    color: #9bd6ff;
    font-size: 12px;
}

.settings-prize-actions input[type="file"] {
    color: #9bd6ff;
    height: 40px;
}

.settings-prize-actions .fixed-btn {
    height: 44px;
    line-height: 1.2;
}

.settings-prize-item input::placeholder,
.settings-prize-item textarea::placeholder {
    color: rgba(155, 214, 255, 0.8);
}

.settings-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.settings-actions .primary {
    background: #2bc4ff;
    border-color: #2bc4ff;
    color: #001019;
}

.settings-actions .primary:hover {
    background: #1fa5d9;
    border-color: #1fa5d9;
}

.settings-actions .grow {
    flex: 1;
}

/* 用户管理新版样式 */
.users-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.users-import,
.users-form-card,
.users-table-card,
.users-actions {
    background: rgba(160, 20, 30, 0.3);
    border: 1px solid rgba(255, 214, 120, 0.3);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    color: #f7efe5;
    backdrop-filter: blur(10px);
}

.users-import__title,
.users-form__title,
.users-table__title {
    font-weight: 700;
    margin-bottom: 10px;
}

.users-import__body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.users-upload-drop {
    flex: 1;
    min-height: 140px;
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.users-upload-drop:hover {
    border-color: rgba(255, 214, 90, 0.9);
    background: rgba(255, 214, 90, 0.05);
}

.users-upload-drop.dragging {
    border-color: rgba(88, 166, 255, 0.9);
    background: rgba(88, 166, 255, 0.08);
}

.users-upload-icon {
    font-size: 28px;
}

.users-upload-text {
    font-size: 14px;
    color: #c9d2e3;
    line-height: 1.5;
}

.users-form {
    display: grid;
    gap: 10px;
}

.users-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #c9d2e3;
}

.users-form input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 196, 120, 0.18);
    border-radius: 8px;
    padding: 10px;
    color: #f7efe5;
    outline: none;
}

.users-form input:focus {
    border-color: #ffd65a;
    box-shadow: 0 0 0 2px rgba(255, 214, 90, 0.18);
}

.users-table__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.users-table__wrapper {
    max-height: 340px;
    overflow: auto;
    border: 1px solid rgba(255, 196, 120, 0.18);
    border-radius: 8px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.users-table thead {
    background: rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
}

.users-table tbody tr:hover {
    background: rgba(255, 120, 80, 0.1);
}

.users-actions {
    display: flex;
    gap: 12px;
}

.fixed-btn.success {
    background: linear-gradient(180deg, #8af095 0%, #25b14a 80%);
    color: #0b2c12;
    border-color: #25b14a;
}

.fixed-btn.danger {
    background: linear-gradient(180deg, #ff8888 0%, #e43737 80%);
    color: #fff8f0;
    border-color: #e43737;
}

.users-action-btn {
    background: none;
    border: none;
    color: #58a6ff;
    cursor: pointer;
    padding: 2px 6px;
    margin-right: 8px;
    font-size: 12px;
}

.users-action-btn:hover {
    text-decoration: underline;
}

.users-action-btn.delete {
    color: #ff7a6f;
}

.users-action-btn.delete:hover {
    text-decoration: underline;
}

.users-table__header input {
    flex: 0 0 220px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 196, 120, 0.18);
    border-radius: 8px;
    padding: 10px;
    color: #f7efe5;
    outline: none;
}

.users-table__header input:focus {
    border-color: #ffcf6b;
    box-shadow: 0 0 0 2px rgba(255, 207, 107, 0.2);
}

/* ===================== 新版设置页面 ===================== */
.settings-shell {
    display: flex;
    flex-direction: column;
    width: min(1260px, 96vw);
    max-height: 78vh;
    background: rgba(60, 15, 20, 0.98);
    border: 1px solid rgba(255, 214, 120, 0.4);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 18px 22px;
    color: #f9f3ea;
}

.settings-shell__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.settings-shell__title {
    font-size: 20px;
    font-weight: 800;
    color: #ffe7c2;
}

.settings-shell__subtitle {
    font-size: 13px;
    color: rgba(255, 231, 194, 0.7);
    margin-top: 4px;
}

.settings-close-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 196, 120, 0.4);
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    box-shadow: 0 0 22px rgba(255, 191, 48, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.settings-shell__tabs {
    display: flex;
    gap: 12px;
    margin: 0 auto 12px;
    justify-content: center;
}

.settings-tab {
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 196, 120, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: #ffe7c2;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.settings-tab:hover {
    background: rgba(255, 214, 120, 0.15);
    border-color: #ffcf6b;
    color: #ffe7c2;
}

.settings-tab.active {
    background: linear-gradient(180deg, #ffcf6b 0%, #ff7a3c 100%);
    color: #5a2500;
    box-shadow: 0 0 18px rgba(255, 180, 80, 0.4);
    border-color: transparent;
}

.settings-tab.active:hover {
    color: #5a2500;
}

.settings-shell__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.settings-section {
    display: none;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 10px 10px 10px;
    contain: content;
    will-change: scroll-position;
}

.settings-section:not(.hidden) {
    display: flex;
}

.settings-section::-webkit-scrollbar {
    width: 6px;
}

.settings-section::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 214, 120, 0.9), rgba(255, 120, 80, 0.8));
    border-radius: 6px;
}

.settings-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.settings-card {
    background: rgba(80, 20, 25, 0.9);
    border: 1px solid rgba(255, 214, 120, 0.3);
    border-radius: 16px;
    padding: 16px;
    height: auto;
    width: 100%;
    max-width: 1320px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.settings-card__title {
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffe7c2;
}

.settings-card__subtitle {
    font-size: 13px;
    color: rgba(255, 231, 194, 0.7);
    margin-bottom: 10px;
}

.settings-card__hint {
    font-size: 12px;
    color: rgba(255, 231, 194, 0.7);
    margin-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.form-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.form-grid.basic-settings-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: center;
    max-width: 800px;
}

@media (max-width: 768px) {
    .form-grid.basic-settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #ffe7c2;
}

.form-field.compact input {
    height: 42px;
}

.form-field span {
    font-size: 16px;
    color: #ffe7c2;
    font-weight: 500;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="password"],
.form-field input:not([type]),
.form-field input[type="search"] {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 214, 120, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -webkit-text-fill-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-shell input[type="text"],
.settings-shell input[type="number"],
.settings-shell input[type="password"],
.settings-shell input:not([type]),
.settings-shell input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 214, 120, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 16px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -webkit-text-fill-color: #fff;
}

.form-field input:focus {
    border-color: #ffcf6b;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 8px rgba(255, 207, 107, 0.2);
    outline: none;
}

.form-field.form-field-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

/* Toggle Switch Style */
.form-field input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 50px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 214, 120, 0.3);
    position: relative;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.form-field input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: #ffe7c2;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.form-field input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #ffcf6b 0%, #ff7a3c 100%);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(255, 122, 60, 0.4);
}

.form-field input[type="checkbox"]:checked::after {
    transform: translateX(22px);
    background: #fff;
}

.form-field input[type="checkbox"]:hover {
    border-color: #ffcf6b;
}

.settings-card__footer {
    margin-top: 14px;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.btn-accent,
.btn-outline,
.btn-ghost,
.btn-danger {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.btn-accent {
    background: linear-gradient(135deg, #ffcf6b 0%, #ff7a3c 100%);
    color: #5a2500;
    box-shadow: 0 4px 15px rgba(255, 122, 60, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #ffe7c2;
    border: 1px solid rgba(255, 214, 120, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 231, 194, 0.8);
    border: 1px solid transparent;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #d63031 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 60, 0.6);
    filter: brightness(1.1);
}

.btn-outline:hover {
    background: rgba(255, 214, 120, 0.15);
    border-color: #ffcf6b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 207, 107, 0.2);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffe7c2;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 48, 49, 0.6);
    filter: brightness(1.1);
}

.btn-accent:active,
.btn-outline:active,
.btn-ghost:active,
.btn-danger:active {
    transform: translateY(0);
    filter: brightness(0.95);
    box-shadow: none;
}

.settings-shell__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    justify-content: center;
}

.settings-shell__footer .grow {
    flex: 1;
}

.prize-list-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prize-card {
    background: rgba(100, 25, 30, 0.8);
    border: 1px solid rgba(255, 214, 120, 0.3);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.prize-card__head input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 196, 120, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #f9f3ea;
    outline: none;
}

.prize-card__head {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
}

.prize-card__head input:first-child {
    flex: 1;
}

.prize-card__head input:last-child {
    flex: 1.5;
}

.prize-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    grid-column: 1 / 2;
}

.prize-card__upload {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
    grid-column: 2 / 3;
}

.prize-card__preview-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.prize-card__preview {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    border: 1px solid rgba(255, 214, 120, 0.35);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.prize-card__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 2 / 3;
}

.prize-card__upload-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: flex-start;
}

.btn-danger.small {
    padding: 10px 14px;
    font-size: 14px;
}

.prize-card .btn-outline,
.prize-card .btn-danger {
    min-width: 110px;
}

.prize-card__actions .ghost {
    background: rgba(255, 255, 255, 0.05);
}

.upload-drop {
    border: 1.5px dashed rgba(255, 196, 120, 0.28);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-drop:hover,
.upload-drop.dragging {
    border-color: rgba(255, 214, 120, 0.9);
    background: rgba(255, 214, 120, 0.06);
}

.upload-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.upload-text {
    color: rgba(255, 231, 194, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.upload-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 导入标签页切换 */
.import-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.import-tab {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 4px;
    color: rgba(255, 231, 194, 0.6);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.import-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 231, 194, 0.9);
}

.import-tab.active {
    background: rgba(255, 214, 120, 0.2);
    color: #ffd878;
}

.import-tab-content {
    display: none;
}

.import-tab-content.active {
    display: block;
}

/* 粘贴导入区域 */
.paste-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.paste-hint {
    color: rgba(255, 231, 194, 0.7);
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(255, 214, 120, 0.08);
    border-radius: 6px;
    border-left: 3px solid rgba(255, 214, 120, 0.5);
}

#userPasteInput {
    width: 100%;
    min-height: 180px;
    padding: 12px;
    border: 1.5px solid rgba(255, 196, 120, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 231, 194, 0.9);
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', monospace;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

#userPasteInput::placeholder {
    color: rgba(255, 231, 194, 0.35);
}

#userPasteInput:focus {
    outline: none;
    border-color: rgba(255, 214, 120, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.paste-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

/* 导入预览弹窗 */
.import-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

.import-preview-modal.hidden {
    display: none;
}

.import-preview-shell {
    background: linear-gradient(145deg, #3a1a1a 0%, #2a1010 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 196, 120, 0.15);
}

.import-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 196, 120, 0.1);
}

.import-preview-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffd878;
}

.import-preview-close {
    background: none;
    border: none;
    color: rgba(255, 231, 194, 0.6);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.import-preview-close:hover {
    color: #ff6b6b;
}

.import-preview-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.import-preview-summary {
    padding: 12px 16px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 8px;
    color: #a5d6a7;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.import-preview-summary::before {
    content: "✓";
    font-weight: bold;
}

.import-preview-summary.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #ffe082;
}

.import-preview-summary.warning::before {
    content: "⚠";
}

.import-preview-columns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.import-preview-columns .col-tag {
    padding: 4px 10px;
    background: rgba(255, 214, 120, 0.12);
    border-radius: 4px;
    font-size: 12px;
    color: rgba(255, 231, 194, 0.8);
}

.import-preview-columns .col-tag strong {
    color: #ffd878;
}

.import-preview-table-wrap {
    max-height: 280px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 196, 120, 0.1);
}

.import-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.import-preview-table th,
.import-preview-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 196, 120, 0.08);
}

.import-preview-table th {
    background: rgba(255, 214, 120, 0.1);
    color: #ffd878;
    font-weight: 500;
    position: sticky;
    top: 0;
}

.import-preview-table td {
    color: rgba(255, 231, 194, 0.85);
}

.import-preview-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.import-preview-note {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 231, 194, 0.4);
    text-align: right;
}

.import-preview-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 196, 120, 0.1);
}

.users-grid-new {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    grid-template-areas:
        "import table"
        "form table";
    gap: 12px;
    align-items: start;
    height: 100%;
}

.users-grid-new>* {
    width: 100%;
}

.users-import-new {
    grid-area: import;
}

.users-form-new {
    grid-area: form;
}

.users-table-card {
    grid-area: table;
    max-height: 100%;
    max-width: 760px;
}

.users-table__wrapper {
    max-height: 320px;
    overflow: auto;
    contain: strict;
    will-change: scroll-position;
}

.users-table__wrapper::-webkit-scrollbar {
    width: 6px;
}

.users-table__wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 214, 120, 0.9), rgba(255, 120, 80, 0.8));
    border-radius: 4px;
}

.users-table__header input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 196, 120, 0.18);
}

.users-table__title {
    color: #ffe7c2;
    font-weight: 700;
}

.users-table {
    color: #ffe7c2;
}

.users-table th {
    color: rgba(255, 231, 194, 0.75);
}

/* Perf: reduce heavy effects in user list scrolling area */
.users-table-card {
    box-shadow: none;
    backdrop-filter: none;
}

.users-table__wrapper {
    contain: content;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 8px;
}

/* Result Prize Bar Overlay */
/* Result Prize Bar Overlay - Top Center with Floating Animation */
.result-prize-bar {
    position: fixed;
    top: 3vh;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: row;
    /* Horizontal: image left, text right */
    align-items: center;
    gap: 25px;
    pointer-events: none;

    /* Transparent - Blends into page */
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;

    /* Floating animation */
    animation: float-gentle 3s ease-in-out infinite;
    transition: opacity 0.6s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), bottom 0.6s ease-out;
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.result-prize-bar.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-80px) scale(0.8);
    /* Float up and shrink */
    pointer-events: none;
}

.result-prize-img-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid rgba(255, 214, 120, 0.8);
    box-shadow:
        0 0 40px rgba(255, 100, 50, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.4s ease;
}

.result-prize-img-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.result-prize-img-wrap::after {
    display: none;
}

.result-prize-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-prize-info {
    display: flex;
    flex-direction: column;
    /* Title above name */
    justify-content: center;
    align-items: center;
    /* Center align both texts */
}

.result-prize-title {
    font-size: 32px;
    font-weight: 900;
    color: #ffcf6b;
    /* Gold color */
    letter-spacing: 2px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    text-shadow:
        0 3px 8px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 207, 107, 0.4);
    background: none;
    -webkit-text-fill-color: initial;
    filter: none;
    animation: glow-pulse-gold 2s ease-in-out infinite;
}

@keyframes glow-pulse-gold {

    0%,
    100% {
        text-shadow:
            0 3px 8px rgba(0, 0, 0, 0.6),
            0 0 20px rgba(255, 207, 107, 0.4);
    }

    50% {
        text-shadow:
            0 3px 8px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(255, 207, 107, 0.6);
    }
}

.result-prize-title::after {
    display: none;
}

.result-prize-name {
    font-size: 36px;
    font-weight: 700;
    color: #FFD700;
    /* Brighter gold for prize name */
    line-height: 1.2;
    text-align: center;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(255, 215, 0, 0.4);
    max-width: 500px;
    word-wrap: break-word;
}

/* 设置面板打开时暂停背景动画 */
body.settings-open #lottery {
    animation: none;
}

body.settings-open .shine span {
    animation-play-state: paused;
}

body.settings-open .music-box.rotate-active {
    animation-play-state: paused;
}

/* 分页控件样式 */
.users-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
    padding: 8px 0;
}

.pagination-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 214, 120, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffe7c2;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 214, 120, 0.15);
    border-color: #ffcf6b;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    color: rgba(255, 231, 194, 0.8);
    font-size: 13px;
}

/* ========== 高级设置样式 ========== */
.preset-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.preset-select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 214, 120, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #ffe7c2;
    font-size: 14px;
    min-width: 150px;
}

.preset-select option {
    background: #2a1215;
    color: #ffe7c2;
}

.preset-search {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 214, 120, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

.preset-search:focus {
    border-color: #ffcf6b;
    outline: none;
}

.preset-search-results {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.preset-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.preset-search-item:hover {
    background: rgba(255, 214, 120, 0.15);
}

.preset-search-item .name {
    color: #ffe7c2;
    font-weight: 600;
}

.preset-search-item .info {
    color: rgba(255, 231, 194, 0.6);
    font-size: 12px;
}

.preset-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.preset-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
}

.preset-group__title {
    color: #ffcf6b;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.preset-group__items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preset-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 207, 107, 0.2);
    color: #ffe7c2;
    font-size: 13px;
}

.preset-tag .remove {
    cursor: pointer;
    color: #ff7a6f;
    font-weight: bold;
}

.preset-tag .remove:hover {
    color: #ff5a4f;
}

/* 奖项部门规则 */
.dept-rules-controls {
    margin-bottom: 16px;
}

.dept-rules-config {
    margin-top: 12px;
}

.dept-rules-mode {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dept-rules-mode-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 140px;
}

.dept-rules-mode-item:hover {
    background: rgba(255, 214, 120, 0.1);
}

.dept-rules-mode-item:has(input:checked) {
    background: rgba(255, 207, 107, 0.15);
    border-color: #ffcf6b;
}

.dept-rules-mode-item input {
    accent-color: #ffcf6b;
    margin-bottom: 6px;
}

.dept-rules-mode-item span {
    color: #ffe7c2;
    font-weight: 600;
    font-size: 14px;
}

.dept-rules-mode-item small {
    color: rgba(255, 231, 194, 0.6);
    font-size: 12px;
    margin-top: 2px;
}

.dept-rules-dept-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px 0;
}

.dept-rules-dept-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.dept-rules-dept-item:hover {
    background: rgba(255, 214, 120, 0.08);
}

.dept-rules-dept-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dept-rules-dept-item input[type="checkbox"] {
    accent-color: #ffcf6b;
    width: 18px;
    height: 18px;
}

.dept-rules-dept-item__name {
    flex: 1;
    color: #ffe7c2;
    font-size: 14px;
}

.dept-rules-dept-item__count {
    color: rgba(255, 231, 194, 0.6);
    font-size: 12px;
    min-width: 50px;
}

.dept-rules-dept-item__quota {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dept-rules-dept-item__quota input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 207, 107, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffe7c2;
    font-size: 13px;
    text-align: center;
}

.dept-rules-dept-item__quota input:focus {
    outline: none;
    border-color: #ffcf6b;
}

.dept-rules-dept-item__quota span {
    color: #a89070;
    font-size: 12px;
}

.dept-rules-quota-info {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 207, 107, 0.1);
    color: #ffe7c2;
    font-size: 13px;
}

.dept-rules-quota-info strong {
    color: #ffcf6b;
    font-weight: 700;
}

.dept-rules-quota-info.warning {
    background: rgba(255, 100, 100, 0.15);
}

.dept-rules-quota-info.warning strong {
    color: #ff7a6f;
}

/* ========== 卡片显示字段设置 ========== */
.card-fields-config {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.card-field-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 196, 120, 0.15);
    cursor: pointer;
    transition: all 0.2s;
}

.card-field-item:hover {
    background: rgba(255, 214, 120, 0.1);
}

.card-field-item:has(input:checked) {
    background: rgba(255, 207, 107, 0.15);
    border-color: #ffcf6b;
}

.card-field-item:has(input:disabled) {
    opacity: 0.7;
    cursor: not-allowed;
}

.card-field-item input[type="checkbox"] {
    accent-color: #ffcf6b;
    width: 16px;
    height: 16px;
}

.card-field-item span {
    color: #ffe7c2;
    font-size: 14px;
}

.card-fields-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 207, 107, 0.08);
}

.card-fields-preview .preview-label {
    color: rgba(255, 231, 194, 0.6);
    font-size: 13px;
}

.card-fields-preview .preview-text {
    color: #ffcf6b;
    font-weight: 600;
    font-size: 14px;
}

/* ========== 背景设置上传区域 ========== */
.bg-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.bg-preview {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 214, 120, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.bg-preview:not([src]),
.bg-preview[src=""] {
    display: none;
}

.bg-upload-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========== 抽奖控制面板 ========== */
.lottery-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lottery-panel__main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.lottery-panel__btn {
    margin: 0 !important;
    background: linear-gradient(180deg, rgba(255, 220, 150, 0.25) 0%, rgba(255, 180, 80, 0.2) 100%);
    border: 1px solid rgba(255, 207, 107, 0.5);
    color: #ffe7c2;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    letter-spacing: 1px;
}

.lottery-panel__btn:hover {
    background: linear-gradient(180deg, rgba(255, 220, 150, 0.35) 0%, rgba(255, 180, 80, 0.3) 100%);
    border-color: rgba(255, 207, 107, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 180, 0, 0.25);
}

.lottery-panel__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 奖项信息显示 */
.prize-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(30, 5, 8, 0.85);
    border: 1px solid rgba(255, 207, 107, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prize-info:hover {
    background: rgba(255, 207, 107, 0.15);
}

.prize-info.hidden {
    display: none;
}

.prize-info__name {
    color: #ffd700;
    font-weight: 700;
    font-size: 14px;
}

.prize-info__progress {
    color: rgba(255, 231, 194, 0.7);
    font-size: 12px;
    background: rgba(255, 207, 107, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 左右小按钮（重抽、加奖） */
.side-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    border: 1px solid;
}

.side-btn.hidden {
    display: none;
}

.side-btn--left {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

.side-btn--left:hover {
    background: rgba(255, 193, 7, 0.35);
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(255, 193, 7, 0.4);
}

.side-btn--right {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

.side-btn--right:hover {
    background: rgba(76, 175, 80, 0.35);
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.4);
}

/* 临时加奖弹出框 */
.add-prize-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 12px;
    background: rgba(30, 5, 8, 0.98);
    border: 1px solid rgba(255, 207, 107, 0.5);
    border-radius: 12px;
    padding: 14px;
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

.add-prize-popup.hidden {
    display: none;
}

.add-prize-popup__title {
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.add-prize-popup__form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.add-prize-num-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.ctrl-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ctrl-label span {
    font-size: 12px;
    color: rgba(255, 231, 194, 0.7);
}

.ctrl-input--small {
    width: 100%;
    text-align: center;
}

.add-prize-img-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.add-prize-img-preview {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 207, 107, 0.3);
    display: none;
}

.add-prize-img-preview[src]:not([src=""]) {
    display: block;
}

.ctrl-btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 207, 107, 0.4);
    color: #ffcf6b;
}

.ctrl-btn--outline:hover {
    background: rgba(255, 207, 107, 0.15);
}

.add-prize-popup__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* 奖项选择器 */
.prize-selector {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 12px;
    background: rgba(30, 5, 8, 0.95);
    border: 1px solid rgba(255, 207, 107, 0.3);
    border-radius: 12px;
    padding: 14px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.prize-selector.hidden {
    display: none;
}

.prize-selector__title {
    color: rgba(255, 207, 107, 0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 奖项列表 */
.ctrl-prize-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ctrl-prize-item {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 207, 107, 0.2);
    color: #ffe7c2;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    box-shadow: none;
    font-weight: 500;
}

.ctrl-prize-item:hover {
    background: rgba(255, 207, 107, 0.2);
    border-color: rgba(255, 207, 107, 0.4);
}

.ctrl-prize-item.active {
    background: linear-gradient(180deg, #ffd700 0%, #ffb800 100%);
    color: #5e0d0d;
    border-color: #ffd700;
    font-weight: 700;
}

.ctrl-prize-item.completed {
    opacity: 0.5;
    text-decoration: line-through;
}

/* 操作按钮 */
.ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    margin: 0;
    box-shadow: none;
}

.ctrl-btn:hover {
    transform: translateY(-1px);
}

.ctrl-btn--ghost {
    background: transparent;
    border-color: rgba(255, 207, 107, 0.3);
    color: #ffe7c2;
}

.ctrl-btn--ghost:hover {
    background: rgba(255, 207, 107, 0.1);
}

.ctrl-btn--accent {
    background: linear-gradient(180deg, #ffd700 0%, #ffb800 100%);
    border-color: #ffd700;
    color: #5e0d0d;
}

.ctrl-btn--accent:hover {
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.ctrl-input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 207, 107, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #ffe7c2;
    font-size: 13px;
    flex: 1;
}

.ctrl-input:focus {
    outline: none;
    border-color: #ffcf6b;
}

.ctrl-input--small {
    width: 60px;
    flex: none;
}

/* 翻页控制面板 */
#pagingControls {
    position: fixed;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5vh;
    padding: 1vh 2vh;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(255, 207, 107, 0.3);
    z-index: 1000;
}

#pagingControls button {
    width: 4vh;
    height: 4vh;
    border-radius: 50%;
    border: 1px solid rgba(255, 207, 107, 0.5);
    background: rgba(255, 207, 107, 0.15);
    color: #ffd700;
    font-size: 1.8vh;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#pagingControls button:hover {
    background: rgba(255, 207, 107, 0.3);
    transform: scale(1.1);
}

#pageInfo {
    color: #ffe7c2;
    font-size: 2vh;
    font-weight: bold;
    min-width: 8vh;
    text-align: center;
}/* 确认重置弹窗样式 */
.confirm-reset-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.confirm-reset-shell {
    background: linear-gradient(135deg, rgba(40, 10, 15, 0.95), rgba(20, 5, 8, 0.98));
    border: 1px solid rgba(255, 214, 120, 0.3);
    border-radius: 16px;
    padding: 30px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 180, 80, 0.1);
    text-align: center;
    transform: scale(0.9);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.confirm-reset-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffc400;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.confirm-reset-content {
    font-size: 16px;
    color: #ffe7c2;
    line-height: 1.6;
    margin-bottom: 25px;
}

.confirm-reset-warning {
    margin-top: 15px;
    font-size: 14px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.confirm-reset-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.confirm-reset-actions .btn-accent {
    min-width: 120px;
}

.confirm-reset-actions .btn-ghost {
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}