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

body {
    font-family: 'Microsoft YaHei', 'Hanyi', 'Comic Sans MS', cursive, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    background: #FFF5E6;
}

#game-container {
    width: 100%;
    height: 100vh;
    position: relative;
    background: linear-gradient(180deg, #FFE4EC 0%, #E8F4F8 50%, #E8FFF0 100%);
}

#game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, #FFD4E5 5%, transparent 5.5%),
        radial-gradient(circle at 90% 80%, #D4F0FF 5%, transparent 5.5%),
        radial-gradient(circle at 50% 10%, #E8FFE5 4%, transparent 4.5%),
        radial-gradient(circle at 80% 30%, #FFF4D4 4%, transparent 4.5%);
    pointer-events: none;
    opacity: 0.8;
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.screen.active {
    display: flex;
}

/* 开始界面 */
.game-title {
    font-size: 52px;
    color: #FF6B9D;
    margin-bottom: 15px;
    text-shadow: 
        3px 3px 0 #FFF,
        -1px -1px 0 #FF6B9D,
        1px -1px 0 #FF6B9D,
        -1px 1px 0 #FF6B9D;
    animation: bounce 1.5s ease-in-out infinite;
    font-weight: 800;
    letter-spacing: 2px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}

.game-subtitle {
    font-size: 17px;
    color: #5D4E7A;
    margin-bottom: 35px;
    padding: 16px 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,245,250,0.9) 100%);
    border-radius: 20px;
    box-shadow: 
        0 4px 15px rgba(255,133,162,0.15),
        inset 0 1px 0 rgba(255,255,255,1);
    font-weight: 600;
    max-width: 400px;
    text-align: center;
    line-height: 1.7;
    border: 2px solid rgba(255,182,193,0.3);
    position: relative;
}

.game-subtitle::before,
.game-subtitle::after {
    content: '✨';
    position: absolute;
    font-size: 16px;
    opacity: 0.8;
}

.game-subtitle::before {
    top: 8px;
    left: 12px;
}

.game-subtitle::after {
    bottom: 8px;
    right: 12px;
}

/* 按钮样式 - 可爱卡通风格 */
.btn-primary, .btn-secondary, .btn-small {
    font-size: 22px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #FF85A2 0%, #FF6B9D 50%, #FF4D8D 100%);
    color: white;
    padding: 18px 50px;
    box-shadow: 
        0 6px 0 #D94A7B,
        0 8px 20px rgba(255,107,157,0.4);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 10px;
    width: 30px;
    height: 15px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 9px 0 #D94A7B,
        0 12px 25px rgba(255,107,157,0.5);
}

.btn-primary:active {
    transform: translateY(3px);
    box-shadow: 
        0 3px 0 #D94A7B,
        0 5px 10px rgba(255,107,157,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #85E3FF 0%, #6BCCFF 50%, #4DB8FF 100%);
    color: white;
    padding: 15px 40px;
    box-shadow: 
        0 5px 0 #3A9BD9,
        0 6px 15px rgba(107,204,255,0.4);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
    margin-top: 25px;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 0 #3A9BD9,
        0 10px 20px rgba(107,204,255,0.5);
}

.btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 
        0 3px 0 #3A9BD9,
        0 4px 8px rgba(107,204,255,0.4);
}

.btn-small {
    padding: 10px 20px;
    font-size: 15px;
    background: linear-gradient(135deg, #B4F8C8 0%, #7ED6A5 100%);
    color: #2D8A4E;
    border-radius: 20px;
    box-shadow: 
        0 4px 0 #5BA878,
        0 5px 12px rgba(126,214,165,0.4);
    font-weight: 600;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0 #5BA878,
        0 8px 15px rgba(126,214,165,0.5);
}

.btn-small:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #5BA878,
        0 3px 6px rgba(126,214,165,0.4);
}

/* 提示按钮样式 */
.btn-hint {
    padding: 10px 18px;
    font-size: 14px;
    background: linear-gradient(135deg, #FFE4A0 0%, #FFD700 100%);
    color: #8B4513;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 700;
    box-shadow: 
        0 4px 0 #D4A700,
        0 5px 12px rgba(255,215,0,0.4);
}

.btn-hint:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0 #D4A700,
        0 8px 15px rgba(255,215,0,0.5);
}

.btn-hint:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #D4A700,
        0 3px 6px rgba(255,215,0,0.4);
}

/* 难度选择器 */
.difficulty-selector {
    margin: 25px 0;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.difficulty-title {
    font-size: 20px;
    color: #7B68EE;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.difficulty-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.difficulty-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    font-size: 16px;
}

.difficulty-btn.easy {
    background: linear-gradient(135deg, #B4F8C8 0%, #7ED6A5 100%);
    color: #2D8A4E;
    box-shadow: 
        0 4px 0 #5BA878,
        0 5px 12px rgba(126,214,165,0.4);
}

.difficulty-btn.medium {
    background: linear-gradient(135deg, #FFE4A0 0%, #FFD700 100%);
    color: #8B4513;
    box-shadow: 
        0 4px 0 #D4A700,
        0 5px 12px rgba(255,215,0,0.4);
}

.difficulty-btn.hard {
    background: linear-gradient(135deg, #FF85A2 0%, #FF6B9D 100%);
    color: white;
    box-shadow: 
        0 4px 0 #D94A7B,
        0 5px 12px rgba(255,107,157,0.4);
}

.difficulty-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 0 rgba(0,0,0,0.2),
        0 8px 15px rgba(0,0,0,0.15);
}

.difficulty-btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 rgba(0,0,0,0.2),
        0 3px 6px rgba(0,0,0,0.15);
}

.difficulty-btn.active {
    transform: scale(1.15);
    box-shadow: 
        0 0 0 4px rgba(255,255,255,0.8),
        0 0 25px rgba(255,255,255,0.6),
        0 8px 0 rgba(0,0,0,0.2),
        0 12px 25px rgba(0,0,0,0.25);
    animation: active-pulse 1.5s ease-in-out infinite;
}

@keyframes active-pulse {
    0%, 100% {
        box-shadow: 
            0 0 0 4px rgba(255,255,255,0.8),
            0 0 25px rgba(255,255,255,0.6),
            0 8px 0 rgba(0,0,0,0.2),
            0 12px 25px rgba(0,0,0,0.25);
    }
    50% {
        box-shadow: 
            0 0 0 6px rgba(255,255,255,1),
            0 0 35px rgba(255,255,255,0.8),
            0 8px 0 rgba(0,0,0,0.2),
            0 12px 30px rgba(0,0,0,0.3);
    }
}

/* 提示动画 */
.tile.hint {
    animation: hint-pulse 0.8s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255,215,0,0.8);
    z-index: 10;
    border: 3px solid #FFD700 !important;
    position: relative;
}

.tile.hint::before {
    content: '★';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255,215,0,1);
    animation: star-bounce 0.4s ease-in-out infinite;
    z-index: 15;
}

@keyframes star-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes hint-pulse {
    0%, 100% {
        transform: scale(1.15) rotate(-3deg);
        box-shadow: 0 0 25px rgba(255,215,0,1), 0 0 50px rgba(255,140,0,0.8);
        border-color: #FFD700;
        filter: brightness(1.3);
    }
    25% {
        transform: scale(1.2) rotate(3deg);
        box-shadow: 0 0 35px rgba(255,215,0,1), 0 0 60px rgba(255,140,0,0.9);
        border-color: #FFA500;
        filter: brightness(1.4);
    }
    50% {
        transform: scale(1.25) rotate(-3deg);
        box-shadow: 0 0 45px rgba(255,215,0,1), 0 0 70px rgba(255,140,0,1);
        border-color: #FF8C00;
        filter: brightness(1.5);
    }
    75% {
        transform: scale(1.2) rotate(3deg);
        box-shadow: 0 0 35px rgba(255,215,0,1), 0 0 60px rgba(255,140,0,0.9);
        border-color: #FFA500;
        filter: brightness(1.4);
    }
}

/* 选择界面 */
.screen-title {
    font-size: 36px;
    color: #7B68EE;
    text-shadow: 
        2px 2px 0 #FFF,
        4px 4px 0 rgba(123,104,238,0.2);
    margin-bottom: 30px;
    font-weight: 700;
}

.selection-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 25px;
    background: rgba(255,255,255,0.7);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 450px;
    box-shadow: 
        0 8px 32px rgba(123,104,238,0.15),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border: 3px solid rgba(255,255,255,0.8);
}

.selection-item {
    padding: 16px 24px;
    background: linear-gradient(135deg, #FFF 0%, #F8F0FF 100%);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    font-size: 17px;
    color: #5D4E7A;
    border: 2px solid #E8DFF5;
    font-weight: 500;
}

.selection-item:hover {
    transform: scale(1.03) translateX(5px);
    border-color: #FF85A2;
    box-shadow: 0 6px 20px rgba(255,133,162,0.3);
    background: linear-gradient(135deg, #FFF5F8 0%, #FFF 100%);
}

/* 游戏界面 */
#game-screen {
    justify-content: flex-start;
    padding: 15px;
    width: 100vw;
    height: 100vh;
    margin: 0;
    box-sizing: border-box;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.75);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(123,104,238,0.1);
    margin-bottom: 15px;
}

/* 连击显示 */
.combo-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.combo-display.active {
    display: flex;
    animation: combo-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes combo-pop {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
        opacity: 1;
    }
}

.combo-text {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 15px rgba(255,215,0,0.8));
    animation: combo-text-glow 1s ease-in-out infinite;
}

@keyframes combo-text-glow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255,215,0,0.8));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255,215,0,1));
    }
}

.combo-count {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(255,215,0,1));
    animation: combo-number-glow 0.8s ease-in-out infinite;
    margin-top: -5px;
}

@keyframes combo-number-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255,215,0,1));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255,215,0,1));
        transform: scale(1.15);
    }
}

.score-info {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B9D;
    background: #FFF0F5;
    padding: 8px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(255,107,157,0.2);
}

.timer-info {
    font-size: 20px;
    font-weight: 700;
    color: #FF8C42;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE4C4 100%);
    padding: 8px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(255,140,66,0.2);
    border: 2px solid #FFD4A3;
}

.timer-info.warning {
    animation: timerWarning 0.8s ease-in-out infinite;
    color: #FF4444;
    background: linear-gradient(135deg, #FFE7E7 0%, #FFD4D4 100%);
    border-color: #FF9999;
}

.timer-info.danger {
    animation: timerDanger 0.4s ease-in-out infinite;
    color: #FFF;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4444 100%);
    border-color: #FF2222;
}

@keyframes timerWarning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes timerDanger {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(255,68,68,0.3); }
    50% { transform: scale(1.08); box-shadow: 0 4px 15px rgba(255,68,68,0.5); }
}

.game-board-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
    background: rgba(255,255,255,0.6);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 6px 20px rgba(123,104,238,0.12);
}

#game-board {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    max-width: 420px;
    aspect-ratio: 6 / 8;
}

/* 数字方块 - 糖果风格 */
.tile {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 800;
    color: white;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    user-select: none;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
    box-shadow: 
        0 4px 0 rgba(0,0,0,0.15),
        0 6px 10px rgba(0,0,0,0.1);
    position: relative;
}

.tile::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 8px;
    width: 40%;
    height: 25%;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
    border-radius: 50%;
}

.tile:hover {
    transform: scale(1.08) translateY(-3px);
    z-index: 10;
    box-shadow: 
        0 7px 0 rgba(0,0,0,0.15),
        0 10px 20px rgba(0,0,0,0.15);
}

.tile.selected {
    box-shadow: 
        0 0 0 4px #FFD700,
        0 0 25px rgba(255,215,0,0.7),
        0 6px 0 rgba(0,0,0,0.15);
    transform: scale(1.12);
    z-index: 20;
    animation: pulse 0.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px #FFD700, 0 0 25px rgba(255,215,0,0.7), 0 6px 0 rgba(0,0,0,0.15); }
    50% { box-shadow: 0 0 0 6px #FFE44D, 0 0 35px rgba(255,215,0,0.8), 0 6px 0 rgba(0,0,0,0.15); }
}

.tile.matched {
    animation: matchAnimation 0.5s ease-out forwards;
}

.tile.falling {
    animation: fallAnimation 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes matchAnimation {
    0% { transform: scale(1); opacity: 1; }
    40% { transform: scale(1.25); opacity: 0.9; }
    100% { transform: scale(0) rotate(15deg); opacity: 0; }
}

@keyframes fallAnimation {
    0% { transform: translateY(-60px); opacity: 0; }
    60% { transform: translateY(5px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

/* 单词/规则列表 */
.word-list-container {
    width: 100%;
    border-radius: 18px;
    min-height: auto;
    overflow: visible;
    background: rgba(255,255,255,0.65);
    padding: 15px;
    box-shadow: 0 4px 15px rgba(123,104,238,0.1);
}

#target-words {
    width: 100%;
}

#target-words > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.word-tag {
    padding: 10px 18px;
    background: linear-gradient(135deg, #E8C3FF 0%, #D4A8FF 50%, #C490FF 100%);
    color: #5D3A8A;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 
        0 3px 0 #9B6BC7,
        0 4px 10px rgba(180,130,220,0.3);
}

.word-tag.completed {
    background: linear-gradient(135deg, #B4F8C8 0%, #7ED6A5 100%);
    color: #2D8A4E;
    text-decoration: none;
    box-shadow: 
        0 3px 0 #5BA878,
        0 4px 10px rgba(126,214,165,0.3);
}

/* 游戏结束界面 */
.game-stats {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    justify-content: center;
    width: 100%;
    max-width: 90%;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.85);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(123,104,238,0.15);
    border: 3px solid rgba(255,255,255,0.9);
    flex: 1;
    min-width: 140px;
    max-width: 250px;
}

/* 难度标签 */
.difficulty-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 12px 30px;
    background: rgba(255,255,255,0.85);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(123,104,238,0.15);
    border: 3px solid rgba(255,255,255,0.9);
    max-width: 90%;
    width: fit-content;
}

.difficulty-label {
    font-size: 16px;
    color: #7B68EE;
    font-weight: 600;
}

.difficulty-value {
    font-size: 20px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.difficulty-value.easy {
    background: linear-gradient(135deg, #B4F8C8 0%, #7ED6A5 100%);
    color: #2D8A4E;
    box-shadow: 0 3px 0 #5BA878, 0 4px 10px rgba(126,214,165,0.3);
}

.difficulty-value.medium {
    background: linear-gradient(135deg, #FFE4A0 0%, #FFD700 100%);
    color: #8B4513;
    box-shadow: 0 3px 0 #D4A700, 0 4px 10px rgba(255,215,0,0.3);
}

.difficulty-value.hard {
    background: linear-gradient(135deg, #FF85A2 0%, #FF6B9D 100%);
    color: white;
    box-shadow: 0 3px 0 #D94A7B, 0 4px 10px rgba(255,107,157,0.3);
}

.stat-label {
    font-size: clamp(14px, 3vw, 18px);
    color: #7B68EE;
    margin-bottom: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.stat-value {
    font-size: clamp(24px, 8vw, 48px);
    color: #FF6B9D;
    text-shadow: 
        3px 3px 0 #FFF,
        5px 5px 0 rgba(255,107,157,0.3);
    font-weight: 800;
    animation: scorePop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
}

#final-time-value {
    color: #FF8C42;
    text-shadow: 
        3px 3px 0 #FFF,
        5px 5px 0 rgba(255,140,66,0.3);
}

@keyframes scorePop {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}



/* 装饰性元素 */
.screen::before,
.screen::after {
    content: '✦';
    position: absolute;
    font-size: 30px;
    color: #FFE4A0;
    animation: twinkle 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255,228,160,0.5);
}

.screen::before {
    top: 30px;
    left: 30px;
}

.screen::after {
    bottom: 30px;
    right: 30px;
    animation-delay: 1s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE4EC 100%);
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.2),
        0 0 0 5px rgba(255,255,255,0.5);
    border: 3px solid #FFD4E5;
    max-width: 90%;
    width: 350px;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    color: #FF6B9D;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.modal-content p {
    color: #5D4E7A;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .game-title {
        font-size: 38px;
    }
        
    .tile {
        font-size: 22px;
        border-radius: 12px;
    }
    
    .selection-list {
        width: 95%;
        padding: 18px;
    }
        
    .screen-title {
        font-size: 28px;
    }
        
    .game-header {
        padding: 10px;
    }
    
    .score-info {
        font-size: 16px;
    }
}
