.app-shell {
    width: min(100%, 34rem);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(1rem, 4vh, 2rem) 1rem;
    display: grid;
    align-items: center;
}

.timer-stage {
    width: 100%;
    min-height: min(45rem, calc(100svh - 2rem));
    padding: clamp(1.25rem, 5vw, 2rem);
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    gap: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.74);
    border-radius: 8px;
    background: rgba(255, 248, 242, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.eyebrow {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
}

h1 {
    color: var(--text);
    font-size: clamp(3.25rem, 18vw, 6rem);
    line-height: 0.92;
    text-align: center;
    letter-spacing: 0;
}

.readout {
    align-self: center;
    display: grid;
    justify-items: center;
    gap: 0.35rem;
}

.status-text {
    min-height: 1.5rem;
    color: var(--muted);
    font-size: 1.25rem;
    font-weight: 800;
}

.time-text {
    min-width: 4ch;
    color: var(--ink-on-bright);
    font-size: clamp(7.5rem, 35vw, 13rem);
    font-weight: 950;
    line-height: 0.86;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.loop-text {
    min-height: 1.5rem;
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 750;
}

.start-button {
    width: 100%;
    min-height: 8.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, var(--pink), var(--coral) 52%, #ffb000);
    box-shadow: 0 16px 0 #b73563, 0 24px 38px rgba(183, 53, 99, 0.28);
    font-size: clamp(2.4rem, 12vw, 4.4rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    touch-action: manipulation;
    transition: transform 130ms ease, box-shadow 130ms ease, filter 130ms ease;
}

.start-button:active {
    transform: translateY(10px);
    box-shadow: 0 6px 0 #b73563, 0 14px 24px rgba(183, 53, 99, 0.24);
}

.start-button.is-running {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, var(--mint), var(--blue));
    box-shadow: 0 16px 0 #1665a8, 0 24px 38px rgba(22, 101, 168, 0.25);
}

.start-button.is-running:active {
    box-shadow: 0 6px 0 #1665a8, 0 14px 24px rgba(22, 101, 168, 0.22);
}

.sound-toggle {
    min-height: 5.25rem;
    padding: 0.8rem 0.9rem 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 2px solid rgba(32, 19, 53, 0.1);
    border-radius: 8px;
    background: var(--surface-strong);
}

.toggle-copy {
    display: grid;
    gap: 0.2rem;
}

.toggle-title {
    font-size: 1.25rem;
    font-weight: 900;
}

.toggle-state {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 750;
}

.switch {
    position: relative;
    flex: 0 0 auto;
    width: 5.5rem;
    height: 3.25rem;
}

.switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d9d1e3;
    transition: background 150ms ease;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(32, 19, 53, 0.22);
    transition: transform 150ms ease;
}

.switch input:checked + .switch-track {
    background: var(--mint);
}

.switch input:checked + .switch-track::after {
    transform: translateX(2.25rem);
}

@media (min-width: 42rem) {
    .timer-stage {
        min-height: 42rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}
