﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f3ee;
    color: #252525;
}

.app {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 24px 18px 50px;
}

.hero {
    padding: 18px 4px 24px;
}

.brand {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.mode {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: 1.5px;
    opacity: .6;
}

h1 {
    font-size: 30px;
    line-height: 1.08;
    margin: 20px 0 12px;
}

h2 {
    margin-top: 0;
}

.meta {
    font-size: 14px;
    opacity: .72;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.hint {
    font-size: 14px;
    opacity: .65;
}

.ingredient {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.35;
}

.ingredient:last-child {
    border-bottom: 0;
}

.ingredient input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

button {
    border: 0;
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.primary {
    background: #202020;
    color: white;
}

#start-button {
    width: 100%;
}

.hidden {
    display: none !important;
}

.progress-wrap {
    margin-bottom: 18px;
}

#step-counter {
    font-size: 13px;
    margin-bottom: 8px;
}

.progress-track {
    height: 7px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    background: #202020;
    width: 0;
    transition: width .25s ease;
}

.step-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    opacity: .55;
}

.step-text {
    font-size: 23px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.timer-panel {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.timer-heading {
    font-weight: 700;
}

.timer-display {
    font-size: 52px;
    font-weight: 800;
    margin: 12px 0;
    font-variant-numeric: tabular-nums;
}

.timer-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.timer-note {
    font-size: 12px;
    opacity: .6;
}

.finish-card {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.finish-symbol {
    font-size: 60px;
}

.finish-card .primary {
    margin-top: 12px;
}

/* =========================================================
   IPL-P03B R2 — AUDIO GUIDANCE
   ========================================================= */

.listen-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    background: #f4f4f4;
    color: #202020;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.listen-button:hover {
    background: #e9e9e9;
}

.listen-button.is-speaking {
    background: #202020;
    color: white;
    border-color: #202020;
}

.listen-button:focus-visible {
    outline: 3px solid #202020;
    outline-offset: 2px;
}
