/* ============================================
   Schiebepuzzle (Sliding Puzzle) Styles
   ============================================ */

:root {
    --schiebe-cell-size: 90px;
    --schiebe-gap: 4px;
    --schiebe-radius: 8px;
}

/* Background */
.schiebe-bg {
    background: #0d1f2d;
    background-image:
        radial-gradient(ellipse at 40% 30%, rgba(33, 150, 243, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
}

/* Board container */
.schiebe-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Grid */
.schiebe-grid {
    display: grid;
    gap: var(--schiebe-gap);
    background: rgba(0, 0, 0, 0.3);
    padding: var(--schiebe-gap);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* Cell base */
.schiebe-cell {
    width: var(--schiebe-cell-size);
    height: var(--schiebe-cell-size);
    border-radius: var(--schiebe-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

/* Numbered tile */
.schiebe-tile {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    cursor: pointer;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.schiebe-tile:hover {
    background: linear-gradient(135deg, #42a5f5, #2196F3);
    transform: scale(1.03);
    box-shadow:
        0 3px 10px rgba(33, 150, 243, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.schiebe-tile:active {
    transform: scale(0.97);
}

/* Tile number */
.schiebe-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

/* Empty cell */
.schiebe-empty {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Correct position highlight */
.schiebe-correct {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 8px rgba(76, 175, 80, 0.15);
}

.schiebe-correct:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    box-shadow:
        0 3px 10px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Win overlay */
.schiebe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(3px);
    cursor: pointer;
}

.schiebe-overlay-card {
    background: #132a3a;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 32px 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    max-width: 360px;
}

.schiebe-overlay-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 12px;
}

.schiebe-overlay-stats {
    font-size: 1rem;
    color: #b0c4d0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.schiebe-overlay-stats strong {
    color: #d4af37;
}

/* Responsive */
@media (max-width: 500px) {
    :root {
        --schiebe-cell-size: 70px;
    }

    .schiebe-num {
        font-size: 1.3rem;
    }
}

@media (max-width: 380px) {
    :root {
        --schiebe-cell-size: 58px;
    }

    .schiebe-num {
        font-size: 1.1rem;
    }
}
