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

body {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333333;
    overflow: hidden;
}

.container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.timer-display {
    width: 300px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    color: #ff6b6b;
    text-align: center;
    font-family: 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timer-display.warning {
    background: #fff5f5;
    border-color: #ff6b6b;
    color: #ff0000;
    text-shadow: none;
    animation: timerWarningPulse 1s ease-in-out infinite;
}

@keyframes timerWarningPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5);
    }
}

.alphabet-display {
    width: 300px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    color: #666666;
    text-align: center;
    letter-spacing: 2px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
    box-sizing: border-box;
    margin-bottom: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alphabet-letter {
    display: inline-block;
    width: 14px;
    text-align: center;
    margin: 0 3px;
    color: #999999;
    transition: all 0.3s ease;
}

.alphabet-letter.active {
    color: #2ecc71;
    font-weight: 700;
    transform: scale(1.2);
}

.game-board {
    position: relative;
    width: 300px;
    height: 420px;
    background-color: #ffffff;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 2px;
    padding: 8px;
}

.cell {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    transition: all 0.1s;
}

.cell.empty {
    background-color: #f9f9f9;
}

.cell.letter {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.cell.letter.invalid {
    background: #e0e0e0;
    font-weight: bold;
    color: #999999;
    box-shadow: 0 2px 8px rgba(224, 224, 224, 0.5);
}

.cell.letter.valid {
    background: #2ecc71;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
}

.explosion {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #f39c12;
    text-shadow: none;
    animation: explode 0.8s ease-out forwards;
    pointer-events: none;
    z-index: 20;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5) translateY(-80px);
        opacity: 0;
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stats-box, .next-box, .controls-box, .legend-box {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.box-label {
    font-size: 11px;
    color: #f39c12;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-value {
    font-size: 16px;
    color: #2980b9;
    margin-bottom: 20px;
    text-shadow: none;
    font-weight: 600;
}

.next-preview {
    position: relative;
    width: 100px;
    height: 100px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 8px;
}

.preview-block {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.controls-box, .legend-box {
    font-size: 12px;
    line-height: 1.8;
    color: #666666;
}

.legend-box {
    padding: 15px;
}

.legend-item {
    margin-bottom: 10px;
    color: #555555;
}

/* ========== ENHANCED MODAL STYLES ========== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.4s ease forwards;
}

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

/* Modal content wrapper with animation */
.modal > *:not(.leaderboard) {
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-title {
    font-size: 48px;
    color: #2980b9;
    text-shadow: 0 2px 20px rgba(41, 128, 185, 0.3);
    margin-bottom: 20px;
    font-weight: 700;
    animation: titleFloat 3s ease-in-out infinite;
}

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

/* Win modal special effects */
.modal.win .modal-title {
    color: #27ae60;
    text-shadow: 0 2px 20px rgba(39, 174, 96, 0.4);
    animation: winTitleBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    winTitleGlow 2s ease-in-out infinite;
}

@keyframes winTitleBounce {
    0% {
        transform: scale(0) rotate(-15deg);
    }
    60% {
        transform: scale(1.15) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes winTitleGlow {
    0%, 100% {
        text-shadow: 0 2px 20px rgba(39, 174, 96, 0.4);
    }
    50% {
        text-shadow: 0 4px 40px rgba(39, 174, 96, 0.7);
    }
}

/* Game Over modal special effects */
.modal.game-over .modal-title {
    color: #e74c3c;
    text-shadow: 0 2px 20px rgba(231, 76, 60, 0.4);
    animation: gameOverShake 0.6s ease,
    gameOverPulse 2s ease-in-out infinite 0.6s;
}

@keyframes gameOverShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-15px) rotate(-2deg); }
    20%, 40%, 60%, 80% { transform: translateX(15px) rotate(2deg); }
}

@keyframes gameOverPulse {
    0%, 100% {
        text-shadow: 0 2px 20px rgba(231, 76, 60, 0.4);
    }
    50% {
        text-shadow: 0 4px 40px rgba(231, 76, 60, 0.7);
    }
}

/* Start modal special effects */
.modal.start-modal .modal-title {
    animation: startTitlePulse 2s ease-in-out infinite;
}

@keyframes startTitlePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 2px 20px rgba(41, 128, 185, 0.3);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 4px 30px rgba(41, 128, 185, 0.5);
    }
}

.modal-text {
    font-size: 16px;
    color: #666666;
    margin-bottom: 0px;
    line-height: 1.8;
    animation: textFadeIn 0.6s ease 0.2s both;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Leaderboard styling */
.leaderboard {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    animation: leaderboardSlideIn 0.6s ease 0.3s both;
}

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

.leaderboard-title {
    font-size: 14px;
    color: #f39c12;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.leaderboard-entries {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.leaderboard-entry {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: entrySlideIn 0.4s ease both;
}

.leaderboard-entry:nth-child(1) { animation-delay: 0.4s; }
.leaderboard-entry:nth-child(2) { animation-delay: 0.5s; }
.leaderboard-entry:nth-child(3) { animation-delay: 0.6s; }
.leaderboard-entry:nth-child(4) { animation-delay: 0.7s; }

@keyframes entrySlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.leaderboard-entry.highlight {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    animation: entrySlideIn 0.4s ease 0.6s both,
    highlightPulse 2s ease-in-out infinite 1s;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
        transform: translateX(0);
    }
    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
        transform: translateX(0) scale(1.02);
    }
}

.leaderboard-separator {
    text-align: center;
    color: #999999;
    font-size: 16px;
    padding: 8px 0;
    letter-spacing: 4px;
}

.entry-rank {
    font-size: 16px;
    font-weight: 700;
    color: #f39c12;
    min-width: 40px;
}

.entry-name {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    flex: 1;
    text-align: left;
    margin: 0 16px;
}

.leaderboard-entry.highlight .entry-name {
    color: #2980b9;
}

.user-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

@keyframes badgePop {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.entry-score {
    font-size: 15px;
    font-weight: 700;
    color: #2980b9;
    min-width: 80px;
    text-align: right;
}

/* Button styling with animation */
button {
    padding: 14px 32px;
    font-size: 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 8px;
    animation: buttonFadeIn 0.6s ease 0.4s both;
    position: relative;
    overflow: hidden;
}

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

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, #2980b9, #1f618d);
}

button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.start-modal .modal-title {
    font-size: 52px;
    margin-bottom: 20px;
}

.start-modal .modal-text {
    font-size: 14px;
    line-height: 1.8;
}

.helpAlphabet {
    margin-bottom: 20px;
    font-size: 24px;
    letter-spacing: 4px;
    color: #2980b9;
    background-color: white;
    animation: textFadeIn 0.6s ease 0.3s both;
}

.startAlphabet {
    font-size: 18px;
    letter-spacing: 2px;
    color: #2980b9;
}

@media (max-width: 1024px) {
    .container {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .game-board {
        width: 250px;
        height: 350px;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(7, 1fr);
    }

    .cell {
        font-size: 18px;
    }

    .sidebar {
        gap: 15px;
        max-width: 300px;
    }

    .stats-box, .next-box, .controls-box, .legend-box {
        padding: 15px;
    }

    .box-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 14px;
    }

    .preview-block {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    /* Hide sidebar on mobile */
    .sidebar {
        display: none !important;
    }

    .help-button {
        position: fixed;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 150;
        padding: 10px 15px;
        font-size: 11px;
        width: auto;
        max-width: 90vw;
    }

    .help-modal {
        z-index: 300;
        font-size: 12px;
    }

    .help-modal .modal-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .help-modal .modal-text {
        font-size: 12px;
        max-width: 90vw;
        padding: 0 10px;
    }

    .help-modal .word-item {
        display: inline-block;
        margin: 5px 8px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .help-modal button {
        padding: 10px 18px;
        font-size: 13px;
    }

    .container {
        gap: 0;
        flex-direction: column;
        align-items: center;
        width: 100vw;
        height: 100vh;
        padding: 0 5px;
        box-sizing: border-box;
    }

    .game-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .timer-display {
        width: 280px;
        margin-top: 10px;
    }

    .alphabet-display {
        width: 280px;
    }

    .game-board {
        width: 280px;
        height: 392px;
        border: 2px solid #e0e0e0;
        padding: 5px;
        box-sizing: border-box;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(7, 1fr);
        gap: 2px;
        margin: 0 auto;
    }

    .cell {
        font-size: 20px;
    }

    .stats-box, .next-box, .controls-box, .legend-box, .words-display {
        padding: 12px;
        font-size: 11px;
    }

    .box-label {
        font-size: 9px;
        margin-bottom: 10px;
    }

    .stat-value {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .next-preview {
        width: 80px;
        height: 80px;
    }

    .preview-block {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .controls-box, .legend-box {
        font-size: 10px;
        line-height: 1.6;
    }

    .word-item {
        margin-bottom: 8px;
        padding: 5px;
        font-size: 10px;
    }

    button {
        padding: 12px 24px;
        font-size: 13px;
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    }

    .modal-title {
        font-size: 36px;
    }

    .start-modal .modal-title {
        font-size: 40px;
    }

    .modal-text {
        font-size: 13px;
    }

    .leaderboard {
        padding: 20px;
      padding-bottom: 0;
        max-width: 90%;
    }

    .leaderboard-entry {
        padding: 12px 14px;
    }

    .combo-display {
        font-size: 10px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        display: none !important;
    }

    .modal-title {
        font-size: 28px;
    }

    .start-modal .modal-title {
        font-size: 32px;
    }

    .modal-text {
        font-size: 12px;
    }

    button {
        padding: 10px 20px;
        font-size: 12px;
    }

    .leaderboard {
        padding: 16px;
    }

    .leaderboard-entry {
        padding: 10px 12px;
    }

    .entry-rank {
        font-size: 14px;
    }

    .entry-name {
        font-size: 12px;
    }

    .entry-score {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .game-board {
        width: 90vw;
        max-width: 250px;
        height: 350px;
    }

    .cell {
        font-size: 16px;
    }

    .modal-title {
        font-size: 24px;
    }

    .start-modal .modal-title {
        font-size: 28px;
    }

    .modal-text {
        font-size: 11px;
    }
}

.words-display {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    font-size: 11px;
    color: #333333;
    max-width: 150px;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.words-display .box-label {
    margin-bottom: 10px;
}

.word-item {
    margin-bottom: 8px;
    padding: 6px;
    background: #f0f4f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #555555;
}

.help-button {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 11px;
    color: #2980b9;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.help-button:hover {
    background: #f0f4f8;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    border-color: #2980b9;
    transform: translateX(-50%) translateY(-2px);
}

.help-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    z-index: 200;
    text-align: center;
    padding: 20px;
    overflow-y: auto;
}

.help-modal.show {
    display: flex;
    animation: modalFadeIn 0.4s ease forwards;
}

.help-modal .modal-title {
    font-size: 32px;
    color: #2980b9;
    text-shadow: 0 2px 20px rgba(41, 128, 185, 0.3);
    margin-bottom: 20px;
    font-weight: 700;
}

.help-modal .modal-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    max-width: 500px;
}

.help-modal .word-item {
    display: inline-block;
    margin: 6px 10px;
    padding: 8px 12px;
    background: #f0f4f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
    color: #333333;
}

.help-modal button {
    margin-top: 0px;
}

.help-content {
    display: none;
}

.help-content.show {
    display: block;
}

.controls-box {
    display: none;
}

.controls-box.show {
    display: block;
}

.cell.speed-drop-glow {
    animation: speedDropGlow 0.3s ease-out;
}
@media (max-width: 768px) {
    .sidebar {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }

    .stats-box,
    .next-box {
        display: block;
        width: 45%;
        min-width: 130px;
    }
}

.score-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 22px 26px;
    width: 260px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    animation: fadeInCard 0.5s ease-out;
}

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

.score-title {
    font-size: 18px;
    font-weight: 700;
    color: #2980b9;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.score-icon {
    font-size: 18px;
}

.score-value {
    font-size: 16px;
    font-weight: 700;
    color: #27ae60;
    text-shadow: 0 1px 3px rgba(39,174,96,0.2);
}

.divider {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
}

@keyframes speedDropGlow {
    0% {
        box-shadow: 0 0 12px rgba(46, 204, 113, 0.4);
    }
    100% {
        box-shadow: 0 0 2px rgba(46, 204, 113, 0.1);
    }
}

.falling-letter {
    position: absolute;
    z-index: 50;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    opacity: 0.3;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
    pointer-events: none;
}

@keyframes fastDrop {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 0.3;
    }
}

.auto-drop-pulse {
    animation: autoDropPulse 0.4s ease-out;
}

.cell.auto-drop-falling {
    animation: autoDropFalling 0.15s ease-in;
}

@keyframes autoDropFalling {
    0% {
        box-shadow: 0 0 12px rgba(255, 107, 113, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 107, 113, 0.3);
        transform: scale(1);
    }
}

.cell.pulse-click {
    animation: pulseClick 0.4s ease-out;
}

@keyframes pulseClick {
    0% {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(52, 152, 219, 0.6), inset 0 0 10px rgba(52, 152, 219, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    }
}

.cell.move-left {
    animation: moveLeft 0.2s ease-out;
}

@keyframes moveLeft {
    0% {
        transform: translateX(15px);
        filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.4));
    }
    100% {
        transform: translateX(0);
        filter: drop-shadow(0 0 2px rgba(52, 152, 219, 0.2));
    }
}

.cell.move-right {
    animation: moveRight 0.2s ease-out;
}

@keyframes moveRight {
    0% {
        transform: translateX(-15px);
        filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.4));
    }
    100% {
        transform: translateX(0);
        filter: drop-shadow(0 0 2px rgba(52, 152, 219, 0.2));
    }
}

.cell.move-down {
    animation: moveDown 0.2s linear;
}

@keyframes moveDown {
    0% {
        transform: translateY(4px);
        filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.4));
    }
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 2px rgba(52, 152, 219, 0.2));
    }
}