* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    overscroll-behavior: none;
    background-image: linear-gradient(to bottom right, #a1c4fd, #c2e9fb);
    cursor: url('https://cdn.jsdelivr.net/gh/fipingfs/cdn@main/kuromi_cursor.png'), auto;
}

.container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 92%;
    width: 550px;
    margin: 0 auto;
}

.header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.header h1 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.score-container {
    background-color: #3498db;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    transition: all 0.3s;
}

.score-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(52, 152, 219, 0.4);
}

#score {
    margin-left: 8px;
    font-size: 22px;
    color: #ffff00;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.lives-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2ecc71;
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
    flex: 1;
    transition: all 0.3s;
}

.lives-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(46, 204, 113, 0.4);
}

#lives {
    display: flex;
    margin-left: 10px;
}

.heart {
    color: #e74c3c;
    font-size: 24px;
    margin: 0 3px;
    text-shadow: 0 0 5px rgba(0,0,0,0.2);
    animation: heart-beat 1.5s infinite;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.2); }
}

.heart.lost {
    color: #7f8c8d;
    opacity: 0.5;
    animation: none;
}

.restart-btn, .refresh-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.restart-btn {
    flex: 1;
    background-color: #9b59b6;
    box-shadow: 0 3px 10px rgba(155, 89, 182, 0.3);
}

.restart-btn:hover, .refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.restart-btn:hover {
    background-color: #8e44ad;
}

.refresh-btn:hover {
    background-color: #2980b9;
}

.restart-btn:active, .refresh-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.restart-btn i, .refresh-btn i {
    margin-right: 8px;
}

.game-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.board-container {
    width: 100%;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 3px;
    background-color: #333;
    padding: 8px;
    border-radius: 8px;
    aspect-ratio: 1/1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    touch-action: none;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.cell {
    background-color: #f5f5f5;
    border-radius: 4px;
    aspect-ratio: 1/1;
    transition: all 0.15s ease-out;
    border: 1px solid #ddd;
    min-height: 25px;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.05);
    position: relative;
}

.cell.filled {
    cursor: default;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    transform: scale(0.95);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cell.valid-drop {
    background-color: rgba(212, 183, 255, 0.25) !important;
    border: 2px solid #b36ee0 !important;
    transform: scale(0.95);
    transition: all 0.15s ease-out;
    box-shadow: 0 0 15px rgba(179, 110, 224, 0.6) !important;
}

.cell.invalid-drop {
    background-color: rgba(255, 126, 126, 0.3) !important;
    border: 2px solid #ff4b4b !important;
    transform: scale(0.95);
    transition: all 0.15s ease-out;
    box-shadow: 0 0 15px rgba(255, 75, 75, 0.5) !important;
}

.cell.filled.valid-drop,
.cell.filled.invalid-drop {
    background-color: inherit !important;
    border: none !important;
    box-shadow: none !important;
    animation: none !important;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 5px rgba(46, 204, 113, 0.5); }
    50% { box-shadow: 0 0 15px rgba(46, 204, 113, 0.8); }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 5px rgba(231, 76, 60, 0.5); }
    50% { box-shadow: 0 0 15px rgba(231, 76, 60, 0.8); }
}

.selection-area {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.selection-area h3 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.blocks-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    min-height: 100px;
    padding: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.block {
    cursor: url('./kuroumiLogo.png'), pointer;
    transition: transform 0.1s ease, opacity 0.2s ease;
    position: relative;
    z-index: 1;
    touch-action: none;
    -webkit-user-drag: element;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 0 0 2px rgba(255, 255, 255, 0.3);
    margin: 10px;
    display: inline-block;
}

.block:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 
                inset 0 0 0 2px rgba(255, 255, 255, 0.5),
                0 0 15px rgba(159, 224, 255, 0.5);
    z-index: 2;
}

.block:active {
    cursor: grabbing;
    transform: scale(1.1);
    z-index: 3;
}

.block.dragging {
    cursor: url('./kuroumiLogo.png'), grabbing;
    opacity: 0.8;
    transform: scale(1.05);
    z-index: 1000;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 
                0 0 20px rgba(159, 224, 255, 0.6);
}

.block-cell {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    position: absolute;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.refresh-btn {
    display: block;
    margin: 0 auto;
    width: 100%;
    margin-top: 10px;
}

/* 游戏结束弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fade-in 0.3s;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slide-up 0.5s;
}

@keyframes slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 28px;
}

.modal-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

#final-score {
    font-weight: bold;
    font-size: 24px;
    color: #3498db;
}

/* 底部开发者信息 */
.footer {
    margin-top: 20px;
    text-align: center;
    padding: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.dedication {
    font-size: 16px;
    color: #e74c3c;
    margin-bottom: 8px;
    font-weight: bold;
    animation: heartbeat 1.5s infinite;
}

.contact {
    font-size: 14px;
    color: #7f8c8d;
}

.dedication-modal {
    color: #e74c3c;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: bold;
    animation: heartbeat 1.5s infinite;
}

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

/* 游戏信息提示 - 删除旧样式 */
.game-message {
    display: none;
}

/* 改进消息容器样式 */
.message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: 320px;
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    border-left: 5px solid #3498db;
    animation: message-appear 0.3s ease-out;
}

@keyframes message-appear {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.message-container.success {
    border-left-color: #2ecc71;
}

.message-container.warning {
    border-left-color: #f39c12;
}

.message-container.error {
    border-left-color: #e74c3c;
}

.message-container.info {
    border-left-color: #3498db;
}

/* 确认和取消按钮样式 */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.confirm-btn, .cancel-btn {
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    user-select: none;
}

.confirm-btn {
    background-color: #2ecc71;
    color: white;
}

.confirm-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cancel-btn {
    background-color: #e74c3c;
    color: white;
}

.cancel-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.confirm-btn:active, .cancel-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 游戏结束按钮样式 */
.play-again-btn {
    background-color: #9b59b6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(155, 89, 182, 0.3);
}

.play-again-btn:hover {
    background-color: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.play-again-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 移动端优化 */
@media (max-width: 600px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .header h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .game-info {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .level-container {
        margin-top: 8px;
        padding: 8px;
    }
    
    .level-info {
        margin-bottom: 4px;
    }
    
    #level-text {
        font-size: 16px;
    }
    
    .game-container {
        gap: 12px;
    }
    
    .board {
        gap: 2px;
        padding: 5px;
    }
    
    .board-container {
        padding: 5px;
    }
    
    .cell {
        min-width: 28px;
        min-height: 28px;
    }
    
    .block-cell {
        width: 22px;
        height: 22px;
    }
    
    .selection-area {
        padding: 10px;
    }
    
    .selection-area h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .blocks-container {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .refresh-btn, .restart-btn {
        font-size: 14px;
        padding: 8px;
    }
    
    .score-container, .lives-container {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    #score {
        font-size: 16px;
    }
    
    .heart {
        font-size: 18px;
    }
    
    .footer {
        margin-top: 15px;
    }
    
    .dedication {
        font-size: 14px;
    }
    
    .contact {
        font-size: 14px;
    }
    
    .modal-content {
        padding: 18px;
        width: 85%;
    }
    
    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .modal-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    #final-score {
        font-size: 18px;
    }
    
    .play-again-btn {
        font-size: 14px;
        padding: 10px 16px;
        margin-top: 15px;
    }
    
    /* 移动端触摸优化 */
    .board {
        touch-action: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    .block {
        margin: 5px;
        transform: scale(1);
        transition: transform 0.2s;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    }
    
    .block:active {
        transform: scale(1.1);
    }
    
    /* 确保拖拽幽灵元素优先级最高 */
    #drag-ghost {
        position: fixed !important;
        z-index: 9999 !important;
    }
}

/* 拖拽幽灵元素样式 */
#drag-ghost {
    pointer-events: none;
    opacity: 0.85;
    z-index: 9999;
    filter: drop-shadow(0 5px 15px rgba(193, 139, 244, 0.7));
    position: fixed !important;
    transition: none !important;
    transform: scale(1.05);
}

/* 确保触摸区域足够大，提高移动端体验 */
@media (max-width: 768px) {
    .cell {
        min-width: 30px;
        min-height: 30px;
    }
    
    .block-cell {
        min-width: 30px;
        min-height: 30px;
    }
}

/* 预览动画效果 */
@keyframes kuromi-valid-glow {
    0% { box-shadow: 0 0 8px rgba(179, 110, 224, 0.5); }
    50% { box-shadow: 0 0 15px rgba(179, 110, 224, 0.8), 0 0 20px rgba(212, 183, 255, 0.7); }
    100% { box-shadow: 0 0 8px rgba(179, 110, 224, 0.5); }
}

@keyframes kuromi-invalid-glow {
    0% { box-shadow: 0 0 8px rgba(255, 110, 213, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 110, 213, 0.8), 0 0 20px rgba(255, 183, 233, 0.7); }
    100% { box-shadow: 0 0 8px rgba(255, 110, 213, 0.5); }
}

.cell.valid-drop {
    animation: kuromi-valid-glow 1.5s infinite;
}

.cell.invalid-drop {
    animation: kuromi-invalid-glow 1.5s infinite;
}

/* 改进填充方块的显示效果 */
.cell.filled {
    transform: scale(0.95);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* 得分动画 */
.points-animation {
    position: absolute;
    font-weight: bold;
    font-size: 24px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 100;
    pointer-events: none;
    user-select: none;
}

@keyframes points-float {
    0% { opacity: 0; transform: translateY(0); }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-100px); }
}

/* 设置可点击元素的光标样式 */
button, .btn, .play-again-btn, .restart-btn, .refresh-btn, .confirm-btn, .cancel-btn {
    cursor: url('./kuroumiLogo.png'), pointer !important;
}

/* 等级和进度条样式 */
.level-container {
    margin-top: 10px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.level-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-weight: bold;
}

#level-text {
    color: #9b59b6;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #3498db, #9b59b6);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* 最高分容器样式 */
.high-score-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 20px;
    font-weight: bold;
    background-color: #ffecf1;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#high-score {
    color: #ff6b95;
    font-size: 1.1em;
    font-weight: bold;
}

/* 等级说明弹窗样式 */
.level-guide-modal .modal-content {
    max-width: 450px;
    padding: 25px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.level-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    text-align: left;
}

.level-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 12px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.level-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.level-name {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.level-score {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.level-description {
    font-style: italic;
    color: #555;
    font-size: 0.95em;
}

/* 自动清除动画效果 */
@keyframes blockClear {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}

.cell.clearing {
    animation: blockClear 0.5s forwards;
}

/* 游戏结束弹窗调整 */
#final-high-score {
    color: #ff6b95;
    font-weight: bold;
}

/* 优化移动端样式，添加适配 */
@media (max-width: 768px) {
    .high-score-container {
        margin-right: 10px;
        padding: 3px 8px;
    }
    
    .level-guide-modal .modal-content {
        max-width: 90%;
        padding: 15px;
    }
    
    .level-list {
        gap: 10px;
    }
    
    .level-item {
        padding: 10px;
    }
}

/* 闪烁效果 */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.blink {
    animation: blink 1s ease-in-out infinite;
}

/* 可点击提示样式 */
.clickable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable:hover {
    transform: scale(1.05);
}

/* 等级文本可点击样式 */
#level-text, .level-info {
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

#level-text:hover, .level-info:hover {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* 游戏结束消息样式优化 */
#game-over-message {
    font-style: italic;
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 8px;
    border-left: 3px solid #ff6b95;
}

/* 关于最高分的特殊文本效果 */
.new-high-score {
    color: #ff4081;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 64, 129, 0.3);
    animation: pulse 1.5s infinite;
}

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

/* 等级说明按钮样式 */
.info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #777;
}

.info-btn:hover {
    background-color: #e6e6e6;
    color: #444;
    transform: scale(1.05);
}

.info-btn i {
    font-size: 16px;
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.refresh-btn, .mode-btn, .save-btn, .load-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #555;
    width: 100%;
}

.refresh-btn:hover, .mode-btn:hover, .save-btn:hover, .load-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.refresh-btn i, .mode-btn i, .save-btn i, .load-btn i {
    margin-right: 5px;
}

.game-mode-container, .save-load-container {
    display: flex;
    gap: 8px;
    width: 100%;
}

.mode-active {
    background-color: #e6f7ff;
    border-color: #91d5ff;
    color: #1890ff;
}

/* 存档提示框样式 */
.save-dialog {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    max-width: 350px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.save-dialog input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.save-dialog .dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.save-dialog button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.save-dialog .save-confirm {
    background-color: #1890ff;
    color: white;
}

.save-dialog .save-cancel {
    background-color: #f0f0f0;
    color: #333;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

.drag-ghost {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.8;
    transform-origin: center center;
    display: none;
}

.cell.filled.invalid-drop {
    background-color: inherit !important;
    border: 2px dashed #ff4b4b !important;
    box-shadow: 0 0 15px rgba(255, 75, 75, 0.7) !important;
    animation: pulse-invalid 1s infinite !important;
}

@keyframes pulse-invalid {
    0% { box-shadow: 0 0 5px rgba(255, 75, 75, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 75, 75, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 75, 75, 0.5); }
} 