.slide-body {
    background-color: #F8C8DC;
    min-height: 100vh;
}

.slide-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.slide-title {
    text-align: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    margin: 8px 0 4px;
}

.slide-instructions {
    text-align: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin: 0 0 20px;
}

.slide-scoreboard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-label {
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.score-value {
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.slide-btn {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 11px 26px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #fce7ef 100%);
    color: #2b1a22;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(43, 26, 34, 0.18), inset 0 0 0 2px #2b1a22;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.slide-btn:hover {
    background: linear-gradient(135deg, #2b1a22 0%, #5a3b4a 100%);
    color: #fce7ef;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 26, 34, 0.28), inset 0 0 0 2px #2b1a22;
}

.slide-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(43, 26, 34, 0.2), inset 0 0 0 2px #2b1a22;
}

.slide-btn.primary {
    background: linear-gradient(135deg, #2b1a22 0%, #5a3b4a 100%);
    color: #fce7ef;
    font-size: 20px;
    padding: 13px 34px;
    box-shadow: 0 4px 14px rgba(43, 26, 34, 0.32), inset 0 0 0 2px #2b1a22;
}

.slide-btn.primary:hover {
    background: linear-gradient(135deg, #5a3b4a 0%, #7a5465 100%);
    color: white;
}

.slide-board-wrap {
    position: relative;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    max-width: 560px;
    background-color: #2b1a22;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 6px 20px rgba(43, 26, 34, 0.35), inset 0 0 0 2px #5a3b4a;
}

.slide-board {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a0f15;
}

.slide-tile {
    position: absolute;
    width: 20%;
    height: 20%;
    background-repeat: no-repeat;
    background-size: 500% 500%;
    cursor: pointer;
    transition: left 0.18s ease, top 0.18s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.slide-tile.movable:hover {
    filter: brightness(1.12);
}

.slide-tile.locked {
    cursor: default;
}

.slide-board.solved .slide-tile {
    box-shadow: none;
    cursor: default;
}

.slide-preview {
    position: absolute;
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none;
    box-shadow: 0 0 0 2px #5a3b4a;
}

.slide-subject {
    text-align: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
    margin: 14px 0 0;
    min-height: 1.3em;
}

.win-banner {
    margin-top: 28px;
    text-align: center;
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.win-text {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    color: #2b1a22;
    margin: 0 0 8px;
}

.win-detail {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #5a3b4a;
    margin: 0 0 6px;
}

.win-record {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-style: italic;
    color: #5a8c55;
    margin: 8px 0 18px;
}

.win-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

@media (max-width: 600px) {
    .slide-title { font-size: 30px; }
    .slide-instructions { font-size: 15px; }
    .score-value { font-size: 22px; }
    .slide-btn { font-size: 16px; padding: 9px 20px; }
    .slide-btn.primary { font-size: 18px; padding: 11px 26px; }
}
