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

body {
    background: #f8fafc;
    font-family: 'Segoe UI', system-ui, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.game-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 15px;
    align-items: center;
}

.progress-container {
    width: 200px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 10px auto;
}

#progress-bar-fill {
    height: 100%;
    background: #22c55e;
    width: 10%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.work-area {
    flex: 1;
    width: 100%;
    max-width: 500px;
    background: white;
    border: 6px solid #f1f5f9;
    border-radius: 24px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

#instruction {
    position: absolute;
    top: 20px;
    background: #0284c7;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

#laundry-item {
    width: 280px;
    height: 320px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Specific Fold Classes */
.folded-narrow { transform: scaleX(0.4); }
.folded-short { transform: scaleY(0.3); }
.folded-square { transform: scale(0.4); }

#game-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    text-align: center;
    z-index: 100;
    width: 85%;
    max-width: 350px;
}

.tip-box {
    background: #f0f9ff;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #0369a1;
}

.hidden { display: none; }

button {
    width: 100%;
    padding: 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}