* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* 星空背景动画 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.game-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.game-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.music-control {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.music-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.music-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.music-icon {
    font-size: 1.5em;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.game-title {
    font-size: 2.5em;
    color: #00ffff;
    margin-bottom: 10px;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { 
        text-shadow: 
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 30px #00ffff;
    }
    to { 
        text-shadow: 
            0 0 20px #00ffff,
            0 0 30px #00ffff,
            0 0 40px #00ffff,
            0 0 50px #00ffff;
    }
}

.game-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.score-time-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 255, 0.2));
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 
        0 4px 15px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.current-word {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.3), rgba(0, 200, 255, 0.3));
    border: 2px solid rgba(0, 255, 255, 0.6);
    color: #ffffff;
    font-size: 1.5em;
    padding: 15px 40px;
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 300px;
    max-width: 500px;
    width: auto;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.current-word::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

/* 神秘词语马赛克效果 - 居中优化版 */
.current-word.mosaic {
    background: 
        linear-gradient(135deg, 
            rgba(15, 15, 35, 0.95) 0%,
            rgba(25, 25, 55, 0.95) 25%,
            rgba(35, 15, 55, 0.95) 50%,
            rgba(25, 25, 55, 0.95) 75%,
            rgba(15, 15, 35, 0.95) 100%
        );
    border: 2px solid rgba(138, 43, 226, 0.8);
    color: transparent;
    text-shadow: none;
    position: relative;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    animation: 
        mysticalPulse 4s ease-in-out infinite,
        borderShift 6s linear infinite,
        floatEffect 3s ease-in-out infinite;
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.4),
        0 0 60px rgba(75, 0, 130, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    min-width: 350px;
    max-width: 600px;
    padding: 18px 50px;
    text-align: center;
    white-space: nowrap;
}

.current-word.mosaic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(75, 0, 130, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(147, 0, 211, 0.2) 0%, transparent 70%),
        repeating-linear-gradient(
            45deg,
            rgba(138, 43, 226, 0.1) 0px,
            rgba(138, 43, 226, 0.1) 3px,
            transparent 3px,
            transparent 12px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(75, 0, 130, 0.08) 0px,
            rgba(75, 0, 130, 0.08) 2px,
            transparent 2px,
            transparent 10px
        );
    animation: 
        magicPattern 4s linear infinite,
        sparkleShift 3s ease-in-out infinite;
    z-index: 1;
}

.current-word.mosaic::after {
    content: '✨ 神秘词语 ✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(
        45deg,
        #ff6b6b,
        #4ecdc4,
        #45b7d1,
        #96ceb4,
        #ffeaa7,
        #dda0dd,
        #ff6b6b
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1em;
    font-weight: bold;
    z-index: 3;
    animation: 
        rainbowText 3s ease-in-out infinite,
        textFloat 2s ease-in-out infinite alternate,
        textGlow 4s ease-in-out infinite;
    letter-spacing: 2px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(138, 43, 226, 0.3);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    white-space: nowrap;
}

/* 动画效果 */
@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

@keyframes mysticalPulse {
    0%, 100% {
        background-size: 100% 100%;
        filter: brightness(1) saturate(1);
    }
    50% {
        background-size: 110% 110%;
        filter: brightness(1.1) saturate(1.2);
    }
}

@keyframes borderShift {
    0% { border-color: rgba(138, 43, 226, 0.8); }
    25% { border-color: rgba(75, 0, 130, 0.8); }
    50% { border-color: rgba(147, 0, 211, 0.8); }
    75% { border-color: rgba(123, 104, 238, 0.8); }
    100% { border-color: rgba(138, 43, 226, 0.8); }
}

@keyframes floatEffect {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes magicPattern {
    0% { 
        background-position: 0% 0%, 100% 100%, 50% 50%, 0px 0px, 0px 0px;
        opacity: 0.8;
    }
    25% {
        background-position: 25% 25%, 75% 75%, 25% 75%, 6px 6px, 5px 5px;
        opacity: 1;
    }
    50% { 
        background-position: 50% 50%, 50% 50%, 75% 25%, 12px 12px, 10px 10px;
        opacity: 0.9;
    }
    75% {
        background-position: 75% 75%, 25% 25%, 25% 75%, 18px 18px, 15px 15px;
        opacity: 1;
    }
    100% { 
        background-position: 100% 100%, 0% 0%, 50% 50%, 24px 24px, 20px 20px;
        opacity: 0.8;
    }
}

@keyframes sparkleShift {
    0%, 100% { filter: brightness(1) contrast(1); }
    50% { filter: brightness(1.2) contrast(1.1); }
}

@keyframes rainbowText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes textFloat {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.5)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.2));
    }
}

.drawing-area {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.canvas-container-enhanced {
    flex: 1;
    min-width: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 25px;
}

#drawingCanvas {
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 10px;
    cursor: crosshair;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: block;
    margin: 0 auto;
}

/* 遮挡格子样式 - 只遮挡画布 */
.canvas-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 504px;
    height: 404px;
    display: none;
    pointer-events: none;
    border-radius: 10px;
    overflow: hidden;
    z-index: 10;
}

.canvas-overlay.active {
    display: block;
    pointer-events: all;
}

.overlay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
}

.overlay-cell {
    background: rgba(8, 8, 18, 0.98);
    border: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 0 1px rgba(0, 255, 255, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    font-size: 0.9em;
}

.overlay-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        rgba(3, 3, 8, 0.95),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 40px 40px, 20px 20px;
    animation: starField 10s linear infinite;
    z-index: 1;
}

.overlay-cell:hover {
    transform: none;
    box-shadow: 
        inset 0 0 2px rgba(0, 255, 255, 0.5),
        inset 0 0 15px rgba(0, 0, 0, 0.7),
        0 0 10px rgba(0, 255, 255, 0.3);
    background: rgba(15, 15, 25, 0.98);
}

.overlay-cell:hover::before {
    background: 
        rgba(8, 8, 15, 0.98),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 40px 40px, 20px 20px;
}

.overlay-cell .cell-content {
    position: relative;
    z-index: 2;
    color: #00ffff;
    font-weight: bold;
    text-shadow: 
        0 0 5px rgba(0, 255, 255, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    padding: 10px;
    text-align: center;
}

.overlay-cell.revealing {
    animation: revealDisappear 0.8s ease-out forwards;
}

.overlay-cell.flipping {
    animation: flipOut 0.6s ease-in forwards;
}

.overlay-cell.revealed {
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
}

/* 添加细微的分割线效果 */
.overlay-cell:nth-child(1),
.overlay-cell:nth-child(2) {
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.overlay-cell:nth-child(4),
.overlay-cell:nth-child(5) {
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.overlay-cell:nth-child(1),
.overlay-cell:nth-child(4),
.overlay-cell:nth-child(7) {
    border-right: 1px solid rgba(0, 255, 255, 0.1);
}

.overlay-cell:nth-child(2),
.overlay-cell:nth-child(5),
.overlay-cell:nth-child(8) {
    border-right: 1px solid rgba(0, 255, 255, 0.1);
}

.overlay-cell::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px, 40px 40px, 20px 20px;
    animation: starField 10s linear infinite;
}

.overlay-cell:hover {
    transform: scale(1.05);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(36, 36, 56, 0.9), rgba(32, 43, 72, 0.9));
}

.overlay-cell.revealing {
    animation: revealDisappear 0.8s ease-out forwards;
}

.overlay-cell.flipping {
    animation: flipOut 0.6s ease-in forwards;
}

.overlay-cell.revealed {
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes starField {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, -30px); }
}

@keyframes cosmicFlash {
    0%, 100% { 
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    }
    50% { 
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 200, 255, 0.3));
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    }
}

@keyframes cosmicFlip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

@keyframes cosmicDisappear {
    0% {
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 200, 255, 0.3));
        opacity: 1;
        transform: scale(1);
    }
    30% {
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 200, 255, 0.3));
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    }
    70% {
        background: rgba(0, 255, 255, 0.1);
        opacity: 0.3;
        transform: scale(1.05);
    }
    100% {
        background: transparent;
        opacity: 0;
        transform: scale(1);
        border: 1px solid rgba(0, 255, 255, 0.1);
    }
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.color-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(0, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.color-item:hover {
    transform: scale(1.1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(0, 255, 255, 0.3);
}

.color-item.active {
    border-color: #00ffff;
    transform: scale(1.2);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 10px rgba(0, 255, 255, 0.2);
}

.brush-size {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brush-size label {
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.brush-size input {
    width: 100%;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
}

.control-btn {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 255, 0.2));
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #00ffff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.6);
}

.clear-btn {
    background: linear-gradient(45deg, rgba(255, 100, 100, 0.2), rgba(255, 50, 50, 0.2));
    border-color: rgba(255, 100, 100, 0.4);
    color: #ff6464;
}

.clear-btn:hover {
    box-shadow: 
        0 6px 20px rgba(255, 100, 100, 0.2),
        0 0 20px rgba(255, 100, 100, 0.3);
}

.guess-area {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

#guessInput {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 1.1em;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(5px);
}

#guessInput:focus {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

#guessInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    background: linear-gradient(45deg, rgba(0, 255, 200, 0.2), rgba(0, 200, 150, 0.2));
    border-color: rgba(0, 255, 200, 0.4);
    color: #00ffc8;
}

.message-area {
    min-height: 60px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #00ffff;
    backdrop-filter: blur(10px);
}

.message {
    padding: 8px 0;
    font-weight: bold;
}

.message.success {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.message.error {
    color: #ff6464;
    text-shadow: 0 0 5px rgba(255, 100, 100, 0.5);
}

.message.hint {
    color: #ffaa00;
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.5);
}

.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.start-btn {
    background: linear-gradient(45deg, rgba(0, 255, 100, 0.2), rgba(0, 200, 80, 0.2));
    border-color: rgba(0, 255, 100, 0.4);
    color: #00ff64;
}

.new-word-btn {
    background: linear-gradient(45deg, rgba(255, 170, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-color: rgba(255, 170, 0, 0.4);
    color: #ffaa00;
}

.hint-btn {
    background: linear-gradient(45deg, rgba(200, 100, 255, 0.2), rgba(180, 80, 255, 0.2));
    border-color: rgba(200, 100, 255, 0.4);
    color: #c864ff;
}

.reveal-btn {
    background: linear-gradient(45deg, rgba(100, 100, 100, 0.2), rgba(80, 80, 80, 0.2));
    border: 1px solid rgba(150, 150, 150, 0.4);
    color: #aaaaaa;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.reveal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(150, 150, 150, 0.2);
}

.reveal-progress {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.progress-text {
    font-weight: bold;
    margin-bottom: 10px;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #00ffff, #00ccff);
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .drawing-area {
        flex-direction: column;
    }
    
    .canvas-container {
        min-width: auto;
    }
    
    #drawingCanvas {
        width: 100%;
        height: 300px;
    }
    
    .canvas-overlay {
        width: 100%;
        height: 300px;
    }
    
    .game-info {
        justify-content: center;
    }
    
    .current-word {
        font-size: 1.2em;
    }

    .toolbar-title {
        font-size: 1em;
    }
    
    .control-btn {
        padding: 10px 12px;
        font-size: 0.8em;
    }
    
    .btn-icon {
        font-size: 1em;
    }

    .music-control {
        right: 10px;
    }
    
    .music-btn {
        width: 40px;
        height: 40px;
    }
    
    .music-icon {
        font-size: 1.2em;
    }
}

/* 增强的绘画区域布局 */
.drawing-area-enhanced {
    display: flex;
    gap: 50px;
    margin-bottom: 20px;
    align-items: flex-start;
    justify-content: center;
    min-height: 500px;
    padding: 0 30px;
}

/* 左侧工具栏 */
.left-toolbar {
    width: 220px;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-right: 20px;
}

/* 工具栏分区 */
.toolbar-section {
    margin-bottom: 25px;
}

.toolbar-section:last-child {
    margin-bottom: 0;
}

/* 画笔工具按钮 */
.brush-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.tool-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateX(3px);
}

.tool-btn.active {
    background: rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* 增强的颜色调色板 */
.color-palette-enhanced {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.color-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.color-item {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(0, 255, 255, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.color-item:hover {
    transform: scale(1.15);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(0, 255, 255, 0.3);
}

.color-item.active {
    border-color: #00ffff;
    transform: scale(1.2);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 10px rgba(0, 255, 255, 0.2);
}

/* 自定义颜色选择器 */
.custom-color {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.custom-color label {
    color: #00ffff;
    font-size: 0.9em;
    font-weight: bold;
}

.custom-color input[type="color"] {
    width: 40px;
    height: 30px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}

/* 右侧工具栏 */
.right-toolbar {
    width: 220px;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-left: 20px;
}

/* 工具栏标题样式 */
.toolbar-title {
    color: #00ffff;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 8px;
}

/* 操作工具按钮组 */
.action-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 增强的控制按钮样式 */
.control-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 200, 255, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.control-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 255, 0.2));
    border-color: rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
}

/* 按钮图标样式 */
.btn-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

.btn-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 游戏控制区域 */
.game-controls-enhanced {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 遮挡按钮特殊样式 */
.reveal-btn {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 140, 0, 0.1));
    border-color: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

.reveal-btn:hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-color: rgba(255, 165, 0, 0.6);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

/* 提示按钮特殊样式 */
.hint-btn {
    background: linear-gradient(135deg, rgba(255, 255, 0, 0.1), rgba(255, 215, 0, 0.1));
    border-color: rgba(255, 255, 0, 0.3);
    color: #ffff00;
}

.hint-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 0, 0.2), rgba(255, 215, 0, 0.2));
    border-color: rgba(255, 255, 0, 0.6);
    box-shadow: 0 5px 15px rgba(255, 255, 0, 0.3);
}

/* 绘画统计区域 */
.drawing-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
}

.stat-label {
    color: #00ccff;
    font-size: 0.9em;
    font-weight: 500;
}

.stat-value {
    color: #00ffff;
    font-weight: bold;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* 响应式设计增强 */
@media (max-width: 1200px) {
    .drawing-area-enhanced {
        flex-direction: column;
        align-items: center;
    }
    
    .left-toolbar {
        width: 100%;
        max-width: 500px;
    }
    
    .brush-tools {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .right-toolbar {
        width: 100%;
        max-width: 500px;
        margin-top: 20px;
    }
    
    .action-tools {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .control-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .drawing-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 120px;
    }
}