/* 开枪赛模式配色 - 基于score_BP_abyss_global */
:root {    --font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'SimHei', sans-serif;
}

body {
    font-family: var(--font-family);
    font-weight: 700;
    margin: 0;
    padding: 20px;
    background-color: #1f2937;
    color: white;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.bp-area {
    background-color: rgba(31, 41, 55, 0.75);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: none;
}

.player-names {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: transparent;/* rgba(31, 41, 55, 0.75);*/
    border-radius: 12px;
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);*/
    border: none;
}

.player-name-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-name-input {
    padding: 8px 12px;
    border: 0px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border-radius: 6px;
    font-size: 24px;
    font-family: var(--font-family);
    font-weight: 700;
}

.player1-confirmed {
    background-color: transparent;
    color: rgba(255, 215, 0, 0.95);
    font-family: var(--font-family);
    font-weight: 700;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 24px;
    width: auto;
   /* text-shadow: 0 0 8px rgba(255, 215, 0, 0.4), 0 0 16px rgba(255, 215, 0, 0.2);*/
    box-shadow: none;
}

.player2-confirmed {
    background-color: transparent;
    color: rgba(255, 215, 0, 0.95);
    font-family: var(--font-family);
    font-weight: 700;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 24px;
    width: auto;
    /*text-shadow: 0 0 8px rgba(255, 215, 0, 0.4), 0 0 16px rgba(255, 215, 0, 0.2);*/
    box-shadow: none;
}

.confirm-btn {
    padding: 8px 16px;
    background-color: rgba(55, 65, 81, 0.8);
    color: white;
    border: 1px solid #4b5563;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-btn:hover {
    background-color: rgba(75, 85, 99, 0.9);
}

/* 确认ban位按钮样式 */
.confirm-ban-btn {
    padding: 8px 16px;
    background-color: rgba(55, 65, 81, 0.8);
    color: white;
    border: 1px solid #4b5563;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-ban-btn:hover:not(:disabled) {
    background-color: rgba(75, 85, 99, 0.9);
}

.confirm-ban-btn:disabled,
.confirm-ban-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.player-pool-btn {
    font-family: var(--font-family);
    padding: 8px 16px;
    background-color: rgba(75, 85, 99, 0.5);
    color: #9ca3af;
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    transform: scale(0.9);
}

.player-pool-btn.active {
    font-family: var(--font-family);
    padding: 12px 24px;
    background-color: rgba(255, 215, 0, 0.25);
    color: rgba(255, 215, 0, 0.95);
    border: 2px solid rgba(255, 215, 0, 0.6);
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: scale(1);
}

.player-pool-btn:hover:not(.active) {
    font-family: var(--font-family);
    background-color: rgba(255, 215, 0, 0.15);
    color: rgba(255, 215, 0, 0.8);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px) scale(0.95);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}

.player-pool-btn:focus {
    outline: none;
}

.player-pool-btn.active:focus {
    outline: none;
}

.swap-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.swap-btn {
    padding: 6px 12px;
    background-color: rgba(55, 65, 81, 0.8);
    color: white;
    border: 1px solid #4b5563;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    font-family: var(--font-family);
    font-weight: 700;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    white-space: nowrap;
}

.swap-btn:disabled {
    background-color: rgba(55, 65, 81, 0.3);
    color: #9ca3af;
    cursor: not-allowed;
}

.swap-btn:hover:not(:disabled) {
    background-color: rgba(75, 85, 99, 0.9);
}

/* 组队/单人模式切换按钮 - 开枪赛模式深灰色风格 */
.team-mode-btn {
    padding: 5px 10px;
    background-color: #1f2937;
    color: #d1d5db;
    border: 1px solid #374151;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-mode-btn:hover {
    background-color: #374151;
    border-color: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#player2-name {
    text-align: right;
}

/* 控制按钮样式 */
#generate-pool,
.generate-pool-btn,
.generate-pool-btn-small {
    background-color: rgba(55, 65, 81, 0.8);
    color: #d1d5db;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    vertical-align: middle;
}

/* 确保按钮内的Font Awesome图标垂直居中 */
#generate-pool .fas,
.generate-pool-btn .fas,
.generate-pool-btn-small .fas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-2px);
}

#generate-pool:hover,
.generate-pool-btn:hover,
.generate-pool-btn-small:hover {
    background-color: rgba(75, 85, 99, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

#generate-pool.reset,
.generate-pool-btn.reset,
.generate-pool-btn-small.reset {
    background-color: rgba(220, 38, 38, 0.7);
}

#generate-pool.reset:hover,
.generate-pool-btn.reset:hover,
.generate-pool-btn-small.reset:hover {
    background-color: rgba(220, 38, 38, 0.9);
}

/* 初始状态的大按钮 */
.generate-pool-btn {
    font-size: 16px;
    padding: 12px 24px;
}

/* 小按钮的特殊样式 */
.generate-pool-btn-small {
    margin-left: 10px;
}

.ban-area {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.pick-area {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 30px;
}

.pick-left,
.pick-right,
.pick-column {
    display: none;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
}

.pick-center {
    width: 100%;
    padding: 0;
    margin: 0;
}

.ban-title,
.pick-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: rgba(255, 215, 0, 0.95);
}

.pick-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
}

.game-label {
    width: 120px;
    text-align: center;
    font-weight: bold;
    color: rgba(255, 215, 0, 0.95);
    font-size: 14px;
    background-color: rgba(31, 41, 55, 0.9);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    padding: 8px;
    margin-right: 15px;
    z-index: 10;
    position: relative;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.slots-container {
    display: flex;
    gap: 5px;
}

.ban-slots {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.ban-slot-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    justify-content: flex-start;
}

#player2-ban-group {
    flex-direction: row;
    justify-content: flex-end;
}

/* slot样式 */
.slot {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(75, 85, 99, 0.8) !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: rgba(31, 41, 55, 0.6);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    position: relative;
}

.slot:hover {
    border-color: rgba(255, 215, 0, 0.5) !important;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 215, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.slot.pick-drag-over {
    background-color: rgba(0, 128, 0, 0.1);
}

.ban-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 30%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0 0 6px 6px;
}

.slot-highlight {
    animation: slotBlink 1s ease-in-out infinite !important;
    border-color: rgba(255, 215, 0, 0.9) !important;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

@keyframes slotBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.slot.empty::after {
    content: attr(data-index);
    position: absolute;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
    pointer-events: none;
}

/* 槽位中的角色卡片 */
.slot .character-card {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

.slot .character-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    margin: 0;
    padding: 0;
}

.slot .character-card .character-name {
    display: none;
}

/* 槽位中的单独图片 */
.slot > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.ban-area .character-name {
    display: none;
}

.pick-slot-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pick-slot-row {
    display: flex;
    gap: 10px;
}

/* 禁用 pick 位 slot 的 hover 特效 */
.pick-area .slot:hover {
    border-color: rgba(75, 85, 99, 0.8) !important;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* 角色池容器样式 */
.character-pool {
    background-color: transparent;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    box-shadow: none;
    border: none;
}

/* 单独定义嵌套的选择器 */
.character-pool-container {
    display: block;
}

.character-pool.visible {
    display: block;
}

.character-pool-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* 初始状态下隐藏角色池标题和按钮 */
.character-pool-header.hidden {
    display: none;
}

.character-pool-title {
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
}

/* 角色网格样式 */
.character-grid {
    display: grid;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    gap: 6px;
    width: min(95%, 1200px);
    max-width: 95%;
    margin: 0 auto;
    justify-content: center;
}

/* 角色卡片基础样式 */
.character-card {
    width: 72px;
    height: 72px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-color: rgba(55, 65, 81, 0.8);
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.2s;
}

/* 角色卡片图片样式 */
.character-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    margin: 0;
}

/* 角色卡片激活放大效果 */
.character-card.active,
#character-pool .character-card:hover,
#player1-character-pool .character-card:hover,
#player2-character-pool .character-card:hover {
    transform: scale(1.25) !important;
    z-index: 100 !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.character-card.dragging {
    opacity: 0.5;
}

/* 元素背景色样式 - 渐变效果 */
.character-card[data-character-element="火"] {
    background: linear-gradient(135deg, #ffffff 0%, #d47070 100%);
}

.character-card[data-character-element="水"] {
    background: linear-gradient(135deg, #ffffff 0%, #1477be 100%);
}

.character-card[data-character-element="风"] {
    background: linear-gradient(135deg, #ffffff 0%, #40b0a8 100%);
}

.character-card[data-character-element="雷"] {
    background: linear-gradient(135deg, #ffffff 0%, #a888c8 100%);
}

.character-card[data-character-element="草"] {
    background: linear-gradient(135deg, #ffffff 0%, #50a050 100%);
}

.character-card[data-character-element="冰"] {
    background: linear-gradient(135deg, #ffffff 0%, #AEE7F0 100%);
}

.character-card[data-character-element="岩"] {
    background: linear-gradient(135deg, #ffffff 0%, #d8b870 100%);
}

.character-card[data-character-element="无"] {
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
}

/* 星级边框样式 */
.character-card[data-character-rarity="3"] {
    border: 2px solid #CD7F32;
}

.character-card[data-character-rarity="4"] {
    border: 2px solid #C0C0C0;
}

.character-card[data-character-rarity="5"] {
    border: 2px solid #FFD700;
}

.timer-display,
.compact-timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease,
        box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.timer-display {
    width: 150px;
    height: 45px;
    background-color: rgba(31, 41, 55, 0.95);
    border-radius: 12px;
    font-size: 32px;
    letter-spacing: 2px;
    color: #ffd700;
    margin-bottom: 8px;
}

/* 计时器状态样式 - 由JS控制切换 */
.timer-display.timer-normal {
    background-color: rgba(31, 41, 55, 0.95);
    color: #ffd700;
}

.compact-timer-display.timer-normal {
    background-color: rgba(31, 41, 55, 0.9);
    color: #eab308;
}

.timer-display.timer-warning,
.compact-timer-display.timer-warning {
    background-color: rgba(31, 41, 55, 0.95);
    color: #ff4444;
}

.timer-display.timer-ended,
.compact-timer-display.timer-ended {
    background-color: #ff4444;
    color: white;
}

.timer-display.timer-paused {
    opacity: 0.7;
    font-style: italic;
}

/* 闪烁动画 */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.blink {
    animation: blink 1s infinite;
}

.timer-display:hover {
    background-color: rgba(55, 65, 81, 0.95);
    border-color: #6b7280;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.timer-options {
    display: flex;
    gap: 10px;
    padding: 6px 12px;
    margin-bottom: 0;
}

.timer-option {
    padding: 8px 15px;
    background-color: #1f2937cc;
    color: #9ca3af;
    border: 1px solid #4b5563;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.timer-option:hover {
    background-color: rgba(55, 65, 81, 0.9);
    color: white;
    border-color: #6b7280;
    transform: translateY(-1px);
}

.timer-option.active {
    background-color: rgba(55, 65, 81, 0.9);
    border-color: #6b7280;
    color: white;
}

/* 计时器容器样式 */
.timer-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background-color: rgba(55, 65, 81, 0.8);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 初始状态提示样式 */
.initial-state {
    text-align: center;
    padding: 40px 20px;
    color: #d1d5db;
    background-color: rgba(31, 41, 55, 0.75);
    border-radius: 12px;
    border: 0px dashed rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.initial-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #9ca3af;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 16px;
    width: 300px;
    text-align: center;
    color: #f8fafc;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.modal-btn {
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    color: #f8fafc;
    font-weight: 500;
    transition: all 0.3s;
}

.modal-btn.reset-current {
    background-color: rgba(55, 65, 81, 0.8);
}

.modal-btn.reset-current:hover {
    background-color: rgba(75, 85, 99, 0.9);
}

.modal-btn.new-pool {
    background-color: rgba(55, 65, 81, 0.8);
}

.modal-btn.new-pool:hover {
    background-color: rgba(75, 85, 99, 0.9);
}

.modal-btn.cancel {
    background-color: rgba(55, 65, 81, 0.8);
    color: #9ca3af;
}

.modal-btn.cancel:hover {
    background-color: rgba(75, 85, 99, 0.9);
    color: white;
}

/* 信息区域样式 */
.pool-info {
    margin-top: 20px;
    padding: 12px;
    background-color: rgba(31, 41, 55, 0.75);
    border-radius: 8px;
    border: 0px solid #4b5563;
    font-size: 18px; font-weight: 400;
}

.pool-info-item {
    text-align: center;
    font-size: 18px; font-weight: 400;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: #9ca3af;
    font-size: 18px;
}

.info-value {
    color: white;
    min-width: 120px;
    text-align: right;
    font-size: 18px;
}

/* 版权信息样式 */
.copyright {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    font-size: 12px;
    color: #9ca3af;
    opacity: 0.8;
    background-color: rgba(31, 41, 55, 0.75);
    border-radius: 12px;
    border: none;
}

/* 角色池统计信息栏样式 */
.role-pool-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0;
    gap: 15px;
}

.role-pool-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

#pick-area-container {
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.pick-area.global-pick-area {
    display: none;
    width: 100%;
    margin-top: 20px;
}

.pool-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.pick-stats-bar {
    margin-bottom: 15px;
    padding: 12px;
    background-color: rgba(31, 41, 55, 0.75);
    border-radius: 8px;
    border: 0px solid #4b5563;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.pick-stats-title {
    color: #ffd700;
    font-weight: bold;
}

.pick-stats-bar .stats-label {
    font-weight: bold;
    color: #9ca3af;
}

.pick-stats-bar .element-stats {
    min-width: 200px;
    margin-right: 10px;
}

.pick-stats-bar .rarity-stats {
    margin-left: 10px;
}

/* 骰子结果通知样式 */
.fixed.top-4.right-4 {
    text-align: center;
    color: #d1d5db;
    opacity: 0.8;
    background-color: rgba(31, 41, 55, 0.9);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #4b5563;
}

.fixed.top-4.right-4 .font-medium {
    font-size: 12px;
    color: #d1d5db;
    text-align: center;
    opacity: 0.8;
}

/* 移除ban位中角色卡片的所有边框和阴影 */
.ban-area .character-card {
    border: none;
    box-shadow: none;
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
}

/* BAN 位中的角色图片不保留角色卡圆角 */
.ban-area .character-card img {
    border-radius: 0;
}

/* 自定义下拉菜单样式 */
.custom-combobox {
    position: relative;
    display: inline-block;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: none;
}

.dropdown-content {
    padding: 5px 0;
}

.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: white;
}

.dropdown-item:hover {
    background-color: rgba(75, 85, 99, 0.5);
}

/* 骰子动画样式 */
.dice-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.dice {
    width: 120px;
    height: 120px;
    background-color: rgba(31, 41, 55, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: bold;
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    border: 3px solid rgba(209, 213, 219, 0.6);
    color: white;
    transition: all 0.1s ease;
    position: relative;
}

.fas.fa-dice::before {
    content: "🎲";
}

/* 生成按钮容器样式 */
.initial-state .generate-btn-container {
    margin-top: 20px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 模式选择下拉框样式 */
select {
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid #4b5563;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

select option {
    background-color: #1f2937;
    color: white;
}

select:focus {
    box-shadow: 0 0 0 2px rgba(75, 85, 99, 0.7);
}

/* BP操作按钮区域样式 */
.bp-actions {
    text-align: center;
    margin-bottom: 20px;
    background-color: rgba(31, 41, 55, 0.75);
    border-radius: 12px;
    padding: 15px;
    border: none;
}

/* 复制阵容按钮样式 */
.copy-team-btn {
    padding: 8px 12px;
    background-color: rgba(75, 85, 99, 0.8);
    color: rgba(255, 215, 0, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.copy-team-btn:hover {
    background-color: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.7);
    color: rgba(255, 215, 0, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.copy-team-btn:active {
    background-color: rgba(255, 215, 0, 0.4);
    transform: translateY(0);
}

.copy-team-btn.is-feedback,
.clear-team-btn.is-feedback {
    background-color: rgba(255, 215, 0, 0.32);
    border-color: rgba(255, 215, 0, 0.8);
    color: rgba(255, 215, 0, 1);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.35);
}

/* 清空本局按钮样式（与复制按钮相同） */
.clear-team-btn {
    padding: 8px 12px;
    background-color: rgba(75, 85, 99, 0.8);
    color: rgba(255, 215, 0, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.clear-team-btn:hover:not(:disabled) {
    background-color: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.7);
    color: rgba(255, 215, 0, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.clear-team-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.clear-team-btn:active {
    background-color: rgba(255, 215, 0, 0.4);
    transform: translateY(0);
}

/* 隐藏页面滚动条，但保持滚动功能 */
*::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 隐藏BAN区按钮样式 - 无边框，与深色底色一致 */
.hide-ban-btn {
    padding: 6px 10px;
    background-color: transparent;
    color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hide-ban-btn:hover {
    color: #eab308;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* 紧凑计时器显示样式 */
.compact-timer-display {
    min-width: 80px;
    height: 36px;
    background-color: rgba(31, 41, 55, 0.9);
    border-radius: 8px;
    font-size: 20px;
    letter-spacing: 1px;
    color: #eab308;
    padding: 0 10px;
    margin-bottom: 0;
}

.compact-timer-display.timer-paused {
    opacity: 0.6;
}

.compact-timer-display.is-pool-switching {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* 模式切换按钮样式 - 与眼睛按钮风格一致 */
.mode-switch-container {
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mode-switch {
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-switch:hover {
    color: #eab308;
    background-color: rgba(0, 0, 0, 0.2);
}

.mode-switch:focus {
    outline: none;
}

/* 选人特效按钮样式 - 与眼睛按钮风格一致 */
.character-effect-btn {
    padding: 4px;
    background-color: transparent;
    color: #d1d5db;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
}

.character-effect-btn:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.character-effect-btn.active {
    color: #eab308;
    background-color: rgba(0, 0, 0, 0.3);
}

/* 音效按钮样式 */
.sound-effect-btn {
    padding: 4px;
    background-color: transparent;
    color: #60a5fa;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    margin-left: 4px;
}

.sound-effect-btn:hover {
    background-color: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

.sound-effect-btn.active {
    color: #f87171;
    background-color: rgba(248, 113, 113, 0.15);
}

/* Home按钮样式 */
.home-btn {
    padding: 4px;
    background-color: transparent;
    color: #94a3b8;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
}

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

/* 导入弹窗样式 */
.import-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.import-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.import-modal-content {
    position: relative;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 0px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.import-modal-header h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.import-modal-header h3 i {
    color: #eab308;
}

.import-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.2s;
}

.import-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.import-modal-body {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.drop-zone {
    width: 100%;
    height: 180px;
    border: 2px dashed #475569;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #eab308;
    background: rgba(234, 179, 8, 0.1);
    transform: scale(1.02);
}

.drop-zone.dragover {
    border-style: solid;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.3);
}

.drop-zone i {
    font-size: 3rem;
    color: #64748b;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.drop-zone:hover i,
.drop-zone.dragover i {
    color: #eab308;
}

.drop-zone p {
    margin: 0;
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 500;
}

.drop-zone .drop-zone-hint {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 0.875rem;
}

.import-file-btn {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    border: none;
    color: #0f172a;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.4);
}

.import-file-btn:hover {
    background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.5);
}

.import-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.import-warning {
    margin: 0;
    color: #fbbf24;
    font-size: 0.875rem;
    text-align: center;
}

.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-dialog-container {
    position: relative;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 30px 32px;
    min-width: 320px;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    text-align: center;
    animation: customDialogFadeIn 0.3s ease-out;
}

.custom-dialog-message {
    color: #f8fafc;
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.custom-dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-dialog-btn {
    padding: 10px 24px;
    border-radius: 8px;
    background-color: #1f2937cc;
    color: #9ca3af;
    border: 0px solid #4b5563;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-dialog-btn:hover {
    background-color: rgba(55, 65, 81, 0.9);
    color: white;
    border-color: #6b7280;
    transform: translateY(-1px);
}

.custom-dialog-btn-cancel {
    padding: 10px 24px;
    border-radius: 8px;
    background-color: #1f2937cc;
    color: #9ca3af;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-dialog-btn-cancel:hover {
    background-color: rgba(55, 65, 81, 0.9);
    color: white;
    transform: translateY(-1px);
}

@keyframes customDialogFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes customDialogFadeOut {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to { opacity: 0; transform: scale(0.95) translateY(20px); }
}

/* 功能样式补齐：从旧浅色样式迁移，避免主样式化后丢失提示与特效运行依赖 */
.difficulty-hint {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.2);
    transition: opacity 0.5s;
}

.hint-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 250px;
    transition: transform 0.5s;
}

.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

.fade-out .hint-content {
    transform: scale(0.8);
}

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

@keyframes zoomIn {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}

@keyframes zoomOut {
    from { transform: scale(1); }
    to { transform: scale(0.8); opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeToGrayscale {
    from { filter: none; }
    to { filter: grayscale(100%); }
}

@keyframes zoomOutGrayscale {
    from { transform: scale(1); filter: grayscale(100%); }
    to { transform: scale(0.8); filter: grayscale(100%); opacity: 0; }
}

@keyframes bgBlur {
    from { filter: blur(0); }
    to { filter: blur(8px); }
}

@keyframes avatarZoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cryo-particle,
.pyro-particle,
.hydro-particle,
.anemo-particle,
.electro-particle,
.dendro-particle,
.geo-particle {
    position: fixed;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.7;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatDown {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes fireShake {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        filter: brightness(1) hue-rotate(0deg) drop-shadow(0 0 10px rgba(255, 100, 0, 0.8));
    }
    20% {
        transform: translateX(-5px) translateY(-10px) rotate(-5deg) scale(1.1);
        filter: brightness(1.3) hue-rotate(10deg) drop-shadow(0 0 20px rgba(255, 150, 0, 0.9));
    }
    40% {
        transform: translateX(5px) translateY(-5px) rotate(3deg) scale(0.9);
        filter: brightness(1.1) hue-rotate(-5deg) drop-shadow(0 0 15px rgba(255, 80, 0, 0.7));
    }
    60% {
        transform: translateX(-3px) translateY(-15px) rotate(-2deg) scale(1.15);
        filter: brightness(1.4) hue-rotate(15deg) drop-shadow(0 0 25px rgba(255, 200, 0, 1));
    }
    80% {
        transform: translateX(3px) translateY(-8px) rotate(4deg) scale(0.95);
        filter: brightness(1.2) hue-rotate(-10deg) drop-shadow(0 0 18px rgba(255, 120, 0, 0.8));
    }
    100% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        filter: brightness(1) hue-rotate(0deg) drop-shadow(0 0 10px rgba(255, 100, 0, 0.8));
    }
}

@keyframes dandelionFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 0.9;
        transform: translateY(-40px) translateX(calc(var(--drift-amount, 20px) * var(--drift-direction, 1) * 0.5)) rotate(calc(var(--rotation-speed, 200deg) * 0.2));
    }
    40% {
        transform: translateY(-80px) translateX(calc(var(--drift-amount, 20px) * var(--drift-direction, 1) * 1)) rotate(calc(var(--rotation-speed, 200deg) * 0.4));
    }
    60% {
        opacity: 0.8;
        transform: translateY(-120px) translateX(calc(var(--drift-amount, 20px) * var(--drift-direction, 1) * 0.8)) rotate(calc(var(--rotation-speed, 200deg) * 0.6));
    }
    80% {
        opacity: 0.4;
        transform: translateY(-160px) translateX(calc(var(--drift-amount, 20px) * var(--drift-direction, 1) * 0.3)) rotate(calc(var(--rotation-speed, 200deg) * 0.8));
    }
    100% {
        transform: translateY(-200px) translateX(calc(var(--drift-amount, 20px) * var(--drift-direction, 1) * 0.1)) rotate(var(--rotation-speed, 200deg));
        opacity: 0;
    }
}

@keyframes electroBlink {
    0%, 100% { opacity: 0; filter: brightness(1); }
    10% {
        opacity: 1;
        filter: brightness(1.5) sepia(1) saturate(5) hue-rotate(-10deg);
    }
    15% {
        opacity: 0.9;
        filter: brightness(1.2) saturate(2);
    }
    50% { opacity: 0.8; filter: brightness(1); }
    60% {
        opacity: 1;
        filter: brightness(1.5) sepia(1) saturate(5) hue-rotate(-10deg);
    }
    65% {
        opacity: 0.8;
        filter: brightness(1.5);
    }
}

@keyframes geoFall {
    0% {
        transform: translate(var(--start-x, -100px), var(--start-y, -200px)) rotate(0deg) scale(0.5);
        opacity: 0;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(0.7);
    }
    20% {
        opacity: 0.8;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) brightness(0.95);
    }
    50% {
        transform: translate(0, 0) rotate(calc(var(--rotation, 180deg) * 0.5)) scale(1.15);
        opacity: 1;
        filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8)) drop-shadow(0 8px 12px rgba(139, 90, 43, 0.7)) brightness(1.3);
    }
    60% {
        transform: translate(var(--bounce-x, 30px), var(--bounce-y, -40px)) rotate(calc(var(--rotation, 180deg) * 0.8)) scale(0.85);
        opacity: 0.9;
        filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.6)) drop-shadow(0 5px 8px rgba(139, 90, 43, 0.5)) brightness(1.1);
    }
    75% {
        transform: translate(var(--small-bounce-x, 40px), var(--small-bounce-y, -50px)) rotate(calc(var(--rotation, 180deg) * 1.2)) scale(0.55);
        opacity: 0.6;
        filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4)) brightness(0.9);
    }
    100% {
        transform: translate(calc(var(--small-bounce-x, 40px) * 1.2), calc(var(--small-bounce-y, -50px) * 1.5)) rotate(var(--rotation, 360deg)) scale(0.3);
        opacity: 0;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) brightness(0.6);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.3) rotate(0deg);
        opacity: 0.6;
        filter: blur(4px);
    }
    50% {
        filter: blur(2px);
    }
    100% {
        transform: scale(2.5) rotate(180deg);
        opacity: 0;
        filter: blur(8px);
    }
}

@keyframes dendroGrow {
    0% {
        transform: scale(var(--start-scale, 0.05)) rotate(var(--final-rotation));
        opacity: 0;
        filter: drop-shadow(0 0 2px rgba(102, 255, 102, 0.3));
    }
    30% {
        opacity: 0.7;
        filter: drop-shadow(0 0 6px rgba(102, 255, 102, 0.5));
    }
    70% {
        filter: drop-shadow(0 0 12px rgba(102, 255, 102, 0.8));
    }
    100% {
        transform: scale(var(--final-scale, 1)) rotate(var(--final-rotation));
        opacity: 0.95;
        filter: drop-shadow(0 0 8px rgba(102, 255, 102, 0.6));
    }
}

.effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
}

.fire-particle,
.wind-particle,
.geo-particle,
.water-particle,
.dendro-particle,
.electro-particle {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 50;
}

.fire-particle {
    opacity: 0.7;
}

.wind-particle {
    opacity: 0.8;
}

.geo-particle {
    opacity: 0.85;
}

.water-particle {
    opacity: 0.6;
}

.dendro-particle {
    opacity: 0.9;
}

.electro-particle {
    opacity: 0.75;
}

/* Page-specific observer and replay state; shared replay controls live in bp-replay.css. */
body.online-observer-mode .pool-info {
    justify-content: center;
    text-align: center;
}

body.online-observer-mode .pool-info-item {
    justify-content: center;
    width: 100%;
    text-align: center;
}

body.bp-replay-mode .character-grid,
body.bp-replay-mode .generate-pool-btn,
body.bp-replay-mode .export-pool-btn,
body.bp-replay-mode .import-pool-btn,
body.bp-replay-mode .slot,
body.bp-replay-mode .confirm-btn,
body.bp-replay-mode .swap-btn,
body.bp-replay-mode .team-mode-btn,
body.bp-replay-mode .view-toggle,
body.bp-replay-mode .peak-mode-btn {
    pointer-events: none;
}

body.bp-replay-mode .character-pool-container,
body.bp-replay-mode .character-pool-header {
    opacity: 0.85;
}

.pool-loading-state {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    text-align: center;
    transform: translate(-50%, -50%);
}

.pool-loading-spinner {
    display: block;
    margin-bottom: 16px;
}

.pool-loading-message {
    color: #9ca3af;
}
