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

        body {
            background-color: #F9F5EB;
            color: #1A3C34;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .brand-badge {
            position: fixed;
            top: 1rem;
            right: 1.5rem;
            width: 330px;
            height: auto;
            opacity: 0.8;
            z-index: 10;
        }

        .back-link {
            position: fixed;
            top: 1.5rem;
            left: 1.5rem;
            font-family: 'Baloo 2', cursive;
            font-size: 1.1rem;
            font-weight: 700;
            color: #1A3C34;
            text-decoration: none;
            opacity: 0.6;
            transition: opacity 0.2s ease;
            z-index: 10;
        }

        .back-link:hover {
            opacity: 1;
        }

        .timer-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2rem;
            animation: fadeIn 0.6s ease forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .topic-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .topic-wrapper:empty {
            display: none;
        }

        .topic-label {
            font-family: 'Inter', sans-serif;
            font-size: 0.8rem;
            font-weight: 500;
            color: #999;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.25rem;
        }

        .topic-heading {
            font-family: 'DM Serif Display', serif;
            font-size: 2rem;
            color: #1A3C34;
            text-align: center;
            max-width: 500px;
            line-height: 1.3;
        }

        /* --- Ring --- */
        .ring-wrapper {
            position: relative;
            width: 500px;
            height: 500px;
        }

        .ring-svg {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }

        .ring-track {
            fill: none;
            stroke: #E8E0D0;
            stroke-width: 10;
        }

        .ring-progress {
            fill: none;
            stroke: #B89EE8;
            stroke-width: 10;
            stroke-linecap: round;
            stroke-dasharray: 722.57;
            stroke-dashoffset: 0;
            transition: stroke-dashoffset 0.3s linear, stroke 0.3s ease;
        }

        .ring-progress.finished {
            stroke: #E85D5D;
            animation: pulseRing 1s ease-in-out infinite;
        }

        @keyframes pulseRing {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        /* --- Time Display --- */
        .time-display {
            position: absolute;
            top: 42%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-family: 'DM Serif Display', serif;
            font-size: 6.5rem;
            color: #1A3C34;
            display: flex;
            align-items: baseline;
            user-select: none;
            transition: top 0.3s ease;
        }

        .ring-wrapper.running .time-display {
            top: 50%;
        }

        .time-display.finished {
            color: #E85D5D;
            animation: pulseText 1s ease-in-out infinite;
        }

        @keyframes pulseText {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        .time-digit {
            outline: none;
            border-radius: 4px;
            padding: 0 2px;
            min-width: 1ch;
            caret-color: #B89EE8;
        }

        .time-digit.editable:focus {
            background: rgba(184, 158, 232, 0.15);
        }

        .time-colon {
            pointer-events: none;
        }

        /* --- Increment Buttons --- */
        .increment-row {
            position: absolute;
            top: 58%;
            left: 50%;
            transform: translate(-50%, 0);
            display: flex;
            gap: 1rem;
            transition: opacity 0.3s ease;
        }

        .ring-wrapper.running .increment-row {
            opacity: 0;
            pointer-events: none;
        }

        .increment-btn {
            font-family: 'Baloo 2', cursive;
            font-size: 1.15rem;
            font-weight: 700;
            color: #1A3C34;
            background: transparent;
            border: 2px solid #1A3C34;
            border-radius: 50px;
            padding: 0.6rem 1.8rem;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
        }

        .increment-btn:hover:not(:disabled) {
            background: #1A3C34;
            color: #F9F5EB;
        }

        .increment-btn:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }

        /* --- Control Buttons --- */
        .controls-row {
            display: flex;
            gap: 1.25rem;
            align-items: center;
        }

        .play-btn {
            width: 76px;
            height: 76px;
            border-radius: 50%;
            border: none;
            background: linear-gradient(135deg, #D4C0F9, #B89EE8);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(184, 158, 232, 0.4);
            transition: transform 0.1s ease, box-shadow 0.1s ease;
        }

        .play-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(184, 158, 232, 0.5);
        }

        .play-btn:active {
            transform: scale(0.95);
        }

        .play-btn svg {
            width: 34px;
            height: 34px;
            fill: #F9F5EB;
        }

        .reset-btn {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            border: 2px solid #1A3C34;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, transform 0.1s ease;
        }

        .reset-btn:hover {
            background: #1A3C34;
        }

        .reset-btn:hover svg {
            fill: #F9F5EB;
        }

        .reset-btn:active {
            transform: scale(0.95);
        }

        .reset-btn svg {
            width: 24px;
            height: 24px;
            fill: #1A3C34;
            transition: fill 0.2s ease;
        }

        /* --- Responsive --- */
        @media (max-width: 1024px) and (orientation: portrait) {
            .brand-badge { width: 180px; top: 0.5rem; right: 0.5rem; }
            body { justify-content: flex-start; padding-top: 5rem; }
        }

        @media (max-width: 768px) {
            .brand-badge { width: 180px; top: 0.5rem; right: 0.5rem; }
            .ring-wrapper { width: 425px; height: 425px; }
            .time-display { font-size: 4rem; }
            body { justify-content: flex-start; padding-top: 5rem; }
        }

        @media (max-width: 480px) {
            .brand-badge { width: 120px; top: 0.5rem; right: 0.5rem; }
            .ring-wrapper { width: 350px; height: 350px; }
            .time-display { font-size: 3.5rem; }
            .play-btn { width: 56px; height: 56px; }
            .play-btn svg { width: 24px; height: 24px; }
            .reset-btn { width: 42px; height: 42px; }
            .reset-btn svg { width: 18px; height: 18px; }
            .increment-btn { font-size: 0.9rem; padding: 0.4rem 1.1rem; }
            .back-link { top: 1rem; left: 1rem; font-size: 1rem; }
            .topic-heading { font-size: 1.4rem; max-width: 300px; }
            .topic-label { font-size: 0.7rem; }
        }
