.timer-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(240, 158, 11, 0.15);
    color: #f6bb55;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.hero-note h2 {
    color: #F09E0B;
}

.timer-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) minmax(320px, 0.9fr);
    gap: 2rem;
    align-items: stretch;
}

.timer-stage,
.timer-controls {
    background: linear-gradient(180deg, rgba(44, 63, 74, 0.96) 0%, rgba(26, 37, 47, 0.98) 100%);
    border: 1px solid #475569;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.timer-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    position: relative;
}

.timer-stage-toolbar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.fullscreen-button {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(240, 158, 11, 0.45);
    border-radius: 999px;
    background: rgba(240, 158, 11, 0.08);
    color: #f8d08a;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.fullscreen-button:hover {
    background: rgba(240, 158, 11, 0.16);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(240, 158, 11, 0.14);
}

.timer-stage:fullscreen {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    padding: 2rem;
    display: grid;
    align-content: start;
    justify-items: center;
    overflow-y: auto;
    background:
        radial-gradient(circle at top, rgba(240, 158, 11, 0.12), rgba(26, 37, 47, 0.92) 28%, rgba(15, 23, 42, 0.98) 100%),
        #111827;
}

.timer-stage:fullscreen .timer-clock {
    width: min(78vh, 760px);
}

.timer-stage:fullscreen .time-display {
    font-size: clamp(5rem, 14vw, 9rem);
}

.timer-stage:fullscreen .timer-stats,
.timer-stage:fullscreen .timer-feedback,
.timer-stage:fullscreen .timer-stage-toolbar {
    width: min(78vh, 760px);
}

.fullscreen-toolbar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.fullscreen-toolbar.hidden {
    display: none;
}

.timer-stage:fullscreen .fullscreen-toolbar {
    display: flex;
    width: min(78vh, 760px);
}

.timer-stage:fullscreen .fullscreen-toolbar .btn-primary,
.timer-stage:fullscreen .fullscreen-toolbar .btn-secondary,
.timer-stage:fullscreen .fullscreen-toolbar .btn-ghost {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
}

.timer-clock {
    --progress: 1;
    width: min(100%, 500px);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 1.55rem;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 56%),
        conic-gradient(#F09E0B calc(var(--progress) * 1turn), rgba(255, 255, 255, 0.08) 0);
    box-shadow:
        0 0 0 12px rgba(240, 158, 11, 0.08),
        0 30px 45px rgba(0, 0, 0, 0.28),
        inset 0 0 24px rgba(240, 158, 11, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timer-clock.is-running {
    transform: scale(1.01);
}

.timer-clock.is-finished {
    animation: timer-alert 0.9s ease-in-out infinite alternate;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 52%),
        conic-gradient(#ef476f 1turn, rgba(239, 71, 111, 0.18) 0);
    box-shadow:
        0 0 0 12px rgba(239, 71, 111, 0.12),
        0 0 32px rgba(239, 71, 111, 0.38),
        0 30px 45px rgba(0, 0, 0, 0.28);
}

.timer-clock-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(240, 158, 11, 0.12), rgba(44, 63, 74, 0.3) 30%, rgba(26, 37, 47, 0.98) 72%),
        #1a252f;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timer-label {
    color: #cbd5e1;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.time-display {
    margin: 0;
    color: #ffffff;
    font-size: clamp(3.4rem, 10vw, 5.8rem);
    line-height: 1;
    font-weight: 700;
    font-family: 'Bebas Nueva', 'Poppins', sans-serif;
    letter-spacing: 0.06em;
}

.timer-status {
    color: #F09E0B;
    font-weight: 600;
    font-size: 1rem;
}

.timer-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.stat-label {
    display: block;
    margin-bottom: 0.3rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.stat-card strong {
    color: #ffffff;
    font-size: 1.15rem;
}

.timer-feedback {
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(240, 158, 11, 0.35);
    background: rgba(240, 158, 11, 0.08);
    color: #f8d08a;
    text-align: center;
    font-weight: 500;
}

.timer-feedback.is-finished {
    border-color: rgba(239, 71, 111, 0.45);
    background: rgba(239, 71, 111, 0.12);
    color: #ffd5df;
}

.timer-controls h2 {
    margin-bottom: 1.5rem;
    color: #F09E0B;
}

.timer-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #e2e8f0;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: #1a252f;
    color: #ffffff;
    border: 1px solid #475569;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #F09E0B;
    box-shadow: 0 0 0 3px rgba(240, 158, 11, 0.12);
}

.form-hint {
    color: #94a3b8;
    font-size: 0.95rem;
}

.sound-options {
    display: grid;
    gap: 0.85rem;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border: 1px solid #475569;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.36);
    color: #e2e8f0;
    font-weight: 500;
}

.toggle-option input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #F09E0B;
}

.button-group {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.button-group button {
    flex: 1 1 180px;
    padding: 0.95rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.button-group button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: #F09E0B;
    color: #1a252f;
}

.btn-primary:hover:not(:disabled) {
    background: #e89f0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(240, 158, 11, 0.24);
}

.btn-secondary {
    background: #475569;
    color: #ffffff;
}

.btn-secondary:hover:not(:disabled) {
    background: #5c6c81;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(71, 85, 105, 0.24);
}

.btn-ghost {
    background: transparent;
    color: #f8d08a;
    border: 1px solid rgba(240, 158, 11, 0.45);
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(240, 158, 11, 0.08);
    transform: translateY(-2px);
}

@keyframes timer-alert {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.03);
    }
}

@media (max-width: 920px) {
    .timer-hero,
    .timer-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .timer-stage,
    .timer-controls {
        padding: 1.4rem;
    }

    .form-row,
    .timer-stats {
        grid-template-columns: 1fr;
    }

    .button-group button {
        flex-basis: 100%;
    }
}