/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #0a1628;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 100, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 100, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.game-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ==================== 顶部信息栏 ==================== */
.top-bar {
    height: 60px;
    background: linear-gradient(180deg, rgba(20, 40, 80, 0.95) 0%, rgba(10, 22, 40, 0.95) 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 100;
}

.game-title {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    letter-spacing: 3px;
}

.top-info {
    display: flex;
    gap: 30px;
}

.info-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 150, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    color: #ffd700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-badge span {
    color: #fff;
    font-weight: bold;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
}

.status-dot.connected {
    background: #44ff44;
    box-shadow: 0 0 10px #44ff44;
}

.status-dot.disconnected {
    background: #ff4444;
    box-shadow: 0 0 10px #ff4444;
}

/* ==================== 游戏主区域 ==================== */
.game-main {
    flex: 1;
    position: relative;
    background: radial-gradient(ellipse at center, #1a4d2e 0%, #0f3320 40%, #0a1f15 100%);
    overflow: hidden;
    padding: 60px 100px;
    padding-bottom: 120px; /* 为控制面板预留空间 */
}

.table-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    height: 65%;
    border: 3px solid rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    box-shadow: 
        inset 0 0 80px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 0, 0, 0.5);
}

.table-decoration::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 215, 0, 0.08);
    border-radius: 50%;
}

/* ==================== 奖池区域 ==================== */
.pot-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.pot-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 5px;
}

.pot-value {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}
