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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', system-ui, sans-serif;
    background: #0a0a0f;
    color: #e8e8e8;
    min-height: 100vh;
    padding: 16px;
    -webkit-tap-highlight-color: transparent;
}

#app {
    max-width: 400px;
    margin: 0 auto;
}

/* Combo section */
#combo-section {
    text-align: center;
    padding: 20px 0 16px;
}

#combo-number {
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35, #ffa726, #ff6b35);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    transition: transform 0.2s;
}

#combo-number.fire {
    animation: pulse 1.5s ease-in-out infinite;
}

#combo-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Habit rows */
.habit-row {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 6px;
    background: #141420;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    -webkit-user-select: none;
    user-select: none;
}

.habit-row:active {
    transform: scale(0.97);
}

.habit-row.done {
    border-color: rgba(255, 107, 53, 0.2);
    background: #18182a;
}

.habit-icon {
    font-size: 20px;
    width: 28px;
    flex-shrink: 0;
}

.habit-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.habit-streak {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b35;
    min-width: 36px;
    text-align: right;
    margin-right: 10px;
}

.habit-streak.zero {
    color: #333;
}

.habit-check {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 2px solid #2a2a3a;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.habit-row.done .habit-check {
    background: #ff6b35;
    border-color: #ff6b35;
}

.habit-check svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.15s;
}

.habit-row.done .habit-check svg {
    opacity: 1;
}

/* Workout special row */
.workout-meta {
    font-size: 12px;
    color: #555;
    margin-left: 4px;
}

.workout-meta .count {
    color: #ff6b35;
    font-weight: 600;
}

/* Pop animation on check */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.habit-row.just-checked {
    animation: pop 0.25s ease;
}

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

/* Combo glow for 7+ */
#combo-section.on-fire #combo-number {
    text-shadow: 0 0 40px rgba(255, 107, 53, 0.3);
}
