        :root {
            --bg-main: #0F172A;
            --bg-card: #1E293B;
            --text-main: #F8FAFC;
            --text-secondary: #94A3B8;
            --primary: #3B82F6;
            --primary-hover: #2563EB;
            --danger: #EF4444;
            --border: #334155;
            --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        }

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

        body {
            font-family: var(--font-main);
            background-color: var(--bg-main);
            color: var(--text-main);
            height: 100vh;
            height: 100dvh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* Header */
        header {
            height: 64px;
            background-color: var(--bg-card);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            flex-shrink: 0;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
            z-index: 10;
        }

        header .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        header .logo h1 {
            font-size: 24px;
            font-weight: 700;
            margin: 0;
            color: var(--text-main);
        }

        header .links {
            display: flex;
            align-items: center;
        }

        .sound-toggle-header {
            color: var(--text-secondary);
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 400;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .sound-toggle-header:hover {
            color: var(--text-main);
            background-color: rgba(255,255,255,0.05);
        }

        #notificationToggle {
            display: flex;
        }

        /* Main Container */
        .container {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        /* Sidebar */
        aside {
            width: 200px;
            background-color: var(--bg-card);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            padding: 16px 12px;
            flex-shrink: 0;
            z-index: 5;
        }

        .nav-item {
            height: 52px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            margin-bottom: 8px;
            cursor: pointer;
            color: var(--text-secondary);
            transition: all 0.2s;
            font-weight: 600;
            gap: 12px;
        }

        .nav-icon {
            font-size: 20px;
        }

        .nav-text {
            font-size: 14px;
        }

        .nav-item:hover {
            background-color: rgba(255,255,255,0.05);
            color: var(--text-main);
        }

        .nav-item.active {
            background-color: var(--primary);
            color: #fff;
        }

        .nav-item.external-link {
            text-decoration: none;
        }

        /* Content Area */
        main {
            flex: 1;
            padding: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            position: relative;
            overflow-y: auto;
            overflow-x: hidden;
            scrollbar-width: thin;
            scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
        }
        
        main::-webkit-scrollbar {
            width: 6px;
        }
        main::-webkit-scrollbar-track {
            background: transparent;
        }
        main::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.2);
            border-radius: 8px;
        }
        main::-webkit-scrollbar-thumb:hover {
            background: rgba(148, 163, 184, 0.4);
        }

        .view {
            display: none;
            width: 100%;
            max-width: 600px;
            min-height: 100%;
            flex-shrink: 0;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .view.active {
            display: flex;
        }

        /* Button Styles */
        button {
            border: none;
            outline: none;
            cursor: pointer;
            border-radius: 12px;
            font-family: var(--font-main);
            font-weight: 600;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-primary {
            background-color: var(--primary);
            color: #fff;
            padding: 12px 32px;
            font-size: 16px;
            box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
        }

        .btn-primary:hover {
            background-color: var(--primary-hover);
        }
        
        .btn-primary:active {
            transform: scale(0.98);
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--text-main);
            border: 1px solid var(--border);
            padding: 12px 32px;
            font-size: 16px;
        }

        .btn-secondary:hover:not(:disabled) {
            background-color: rgba(255,255,255,0.05);
        }
        
        .btn-secondary:active:not(:disabled) {
            transform: scale(0.98);
        }

        .btn-secondary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            color: var(--text-secondary);
        }

        /* Alarm View */
        .alarm-display {
            position: relative;
            width: 420px;
            height: 420px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 30px;
        }

        .progress-ring {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .progress-ring circle {
            fill: transparent;
            stroke-width: 8;
            stroke-linecap: round;
        }

        .progress-ring-bg {
            stroke: var(--border);
            transition: stroke 0.3s ease;
        }

        .progress-ring-bar {
            stroke: var(--primary);
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
            stroke-dasharray: 1244.07 1244.07;
            stroke-dashoffset: var(--progress-offset, 0);
            transition: stroke-dashoffset 0.9s linear, stroke 0.3s ease;
        }

        .time-inputs {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            max-width: 320px;
            font-size: 56px;
            font-weight: 700;
            font-family: var(--font-mono);
            line-height: 1;
            font-variant-numeric: tabular-nums;
            z-index: 1;
            transition: opacity 0.3s ease, color 0.3s ease;
        }

        .time-col {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .time-col input {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border);
            border-radius: 12px;
            color: var(--text-main);
            font-size: 56px;
            font-weight: 700;
            font-family: var(--font-mono);
            width: 82px;
            min-width: 82px;
            line-height: 1;
            padding: 8px 0;
            text-align: center;
            outline: none;
            cursor: text;
            transition: all 0.2s ease;
            appearance: textfield;
            -moz-appearance: textfield;
            font-variant-numeric: tabular-nums;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .time-col input:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--text-secondary);
        }

        .time-col input:focus {
            background: rgba(0, 0, 0, 0.2);
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
        }

        .time-col input:disabled {
            background: transparent;
            border-color: transparent;
            box-shadow: none;
            color: var(--text-main);
            -webkit-text-fill-color: var(--text-main);
            opacity: 1;
            cursor: default;
        }

        .time-col input::-webkit-outer-spin-button,
        .time-col input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .time-colon {
            padding-bottom: 8px;
            color: var(--text-secondary);
        }

        .presets {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
            margin-bottom: 24px;
            max-width: 520px;
        }

        .preset-btn {
            background: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            min-width: 74px;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 14px;
            white-space: nowrap;
        }

        .preset-btn:hover {
            color: var(--text-main);
            border-color: var(--text-secondary);
        }

        .preset-btn.active {
            color: var(--text-main);
            background: rgba(59, 130, 246, 0.16);
            border-color: rgba(59, 130, 246, 0.45);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.16);
        }

        .controls {
            display: flex;
            gap: 20px;
        }

        .subtle-note {
            margin-top: 14px;
            font-size: 13px;
            color: var(--text-secondary);
            text-align: center;
        }

        /* Pomodoro View */
        .pomodoro-panel {
            width: 100%;
            max-width: 560px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .pomodoro-settings {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 20px;
        }

        .pomodoro-presets {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-bottom: 18px;
        }

        .pomodoro-preset-btn {
            min-width: 110px;
            padding: 9px 12px;
            background: rgba(255,255,255,0.03);
            color: var(--text-secondary);
            border: 1px solid var(--border);
            border-radius: 10px;
            font-size: 13px;
            white-space: nowrap;
        }

        .pomodoro-preset-btn:hover {
            color: var(--text-main);
            border-color: var(--text-secondary);
        }

        .pomodoro-preset-btn.active {
            color: var(--text-main);
            background: rgba(59, 130, 246, 0.16);
            border-color: rgba(59, 130, 246, 0.45);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.16);
        }

        .setting-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 12px;
        }

        .setting-card label {
            display: block;
            margin-bottom: 8px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .setting-card input {
            width: 100%;
            background: transparent;
            border: none;
            outline: none;
            color: var(--text-main);
            font-size: 28px;
            font-weight: 700;
            font-family: var(--font-mono);
            appearance: textfield;
        }

        .setting-card input::-webkit-outer-spin-button,
        .setting-card input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .pomodoro-status {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 8px 14px;
            margin-bottom: 18px;
            background: rgba(255,255,255,0.04);
            border: 1px solid var(--border);
            border-radius: 999px;
            color: var(--text-secondary);
            font-size: 13px;
        }

        .pomodoro-status strong {
            color: var(--text-main);
            font-size: 14px;
        }

        .pomodoro-display {
            position: relative;
            width: 340px;
            height: 340px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 24px;
        }

        .pomodoro-center {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .pomodoro-phase {
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-secondary);
        }

        .pomodoro-phase.phase-work {
            color: #60A5FA;
        }

        .pomodoro-phase.phase-break {
            color: #34D399;
        }

        .pomodoro-phase.phase-long-break {
            color: #A78BFA;
        }

        .pomodoro-time {
            font-size: 72px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: 2px;
            font-family: var(--font-mono);
            font-variant-numeric: tabular-nums;
            color: var(--text-main);
        }

        .pomodoro-meta {
            font-size: 13px;
            color: var(--text-secondary);
        }

        /* Stopwatch View */
        .stopwatch-display {
            font-size: 72px;
            font-weight: 700;
            font-family: var(--font-mono);
            margin-bottom: 30px;
            letter-spacing: 2px;
            font-variant-numeric: tabular-nums;
            color: var(--text-main);
            transform: translateZ(0); /* 防止数字跳动导致重绘 */
        }

        .precision-switch {
            display: inline-flex;
            gap: 8px;
            padding: 6px;
            margin-bottom: 20px;
            background: rgba(255,255,255,0.04);
            border: 1px solid var(--border);
            border-radius: 12px;
        }

        .precision-btn {
            min-width: 84px;
            padding: 8px 12px;
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid transparent;
            border-radius: 10px;
            font-size: 13px;
        }

        .precision-btn:hover {
            color: var(--text-main);
            background: rgba(255,255,255,0.05);
        }

        .precision-btn.active {
            color: var(--text-main);
            background: rgba(59, 130, 246, 0.18);
            border-color: rgba(59, 130, 246, 0.45);
        }

        .laps-container {
            width: 100%;
            max-width: 460px;
            max-height: 220px;
            overflow-y: auto;
            margin-top: 30px;
            background: var(--bg-card);
            border-radius: 12px;
            padding: 8px;
            border: 1px solid var(--border);
            display: none;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            scrollbar-width: thin;
            scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
        }

        .laps-container::-webkit-scrollbar {
            width: 6px;
        }

        .laps-container::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 8px;
        }

        .laps-container::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.2);
            border-radius: 8px;
        }

        .laps-container::-webkit-scrollbar-thumb:hover {
            background: rgba(148, 163, 184, 0.4);
        }

        .laps-container.has-laps {
            display: block;
        }

        .lap-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 4px 8px 8px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 4px;
        }
        
        .clear-laps-btn {
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 4px 8px;
            font-size: 12px;
            cursor: pointer;
        }
        
        .clear-laps-btn:hover {
            color: var(--text-main);
            border-color: var(--text-secondary);
        }

        .lap-item {
            display: flex;
            align-items: center;
            padding: 10px 12px;
            border-bottom: 1px solid var(--border);
            font-family: var(--font-mono);
            font-size: 15px;
        }
        
        .lap-item:last-child {
            border-bottom: none;
        }

        .lap-index { width: 70px; color: var(--text-secondary); }
        .lap-duration { flex: 1; text-align: center; color: var(--text-secondary); }
        .lap-total { flex: 1; text-align: right; font-weight: 600; color: var(--text-main); }
        .lap-del { 
            background: transparent; 
            color: var(--text-secondary); 
            border: none; 
            font-size: 20px; 
            padding-left: 16px; 
            cursor: pointer; 
            line-height: 1;
        }
        .lap-del:hover { color: var(--danger); }

        /* 文章内容区域 */
        .content-section {
            width: 100%;
            max-width: 800px;
            margin: 40px auto 0;
            padding: 40px 20px;
            color: var(--text-secondary);
            line-height: 1.8;
            border-top: 1px dashed var(--border);
        }
        
        .content-section h2, .content-section h3 {
            color: #CBD5E1;
            margin-bottom: 16px;
            margin-top: 32px;
            font-weight: 600;
        }
        
        .content-section h2 {
            font-size: 22px;
            margin-top: 0;
        }
        
        .content-section h3 {
            font-size: 18px;
        }
        
        .content-section p {
            margin-bottom: 16px;
        }
        
        .content-section ul {
            margin-left: 20px;
            margin-bottom: 16px;
        }
        
        .content-section li {
            margin-bottom: 8px;
        }

        .content-section table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 24px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border);
        }

        .content-section table th, .content-section table td {
            border-bottom: 1px solid var(--border);
            padding: 14px 16px;
            text-align: left;
            font-size: 14px;
        }
        
        .content-section table tr:last-child td {
            border-bottom: none;
        }
        
        .content-section table th {
            background-color: rgba(0, 0, 0, 0.2);
            font-weight: 600;
            color: #CBD5E1;
            border-bottom-width: 2px;
        }
        
        .content-section table tbody tr {
            transition: background-color 0.2s;
        }
        
        .content-section table tbody tr:hover {
            background-color: rgba(255, 255, 255, 0.04);
        }
        
        .content-section table td:first-child {
            color: var(--text-main);
            font-weight: 500;
            white-space: nowrap;
        }

        /* FAQ Section */
        .faq-section {
            margin-top: 40px;
        }

        .faq-item {
            margin-bottom: 24px;
        }

        .faq-item h3 {
            margin-top: 0;
            margin-bottom: 12px;
            font-size: 16px;
            color: #CBD5E1;
        }

        .faq-item p {
            margin-bottom: 0;
            color: var(--text-secondary);
        }

        /* Footer */
        footer {
            text-align: center;
            padding: 12px;
            font-size: 12px;
            color: var(--text-secondary);
            flex-shrink: 0;
            background: var(--bg-main);
        }
        
        footer a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.2s;
        }
        
        footer a:hover {
            color: var(--text-main);
        }

        /* Animations */
        @keyframes slight-shake {
            0% { transform: translate(0.5px, 0.5px) rotate(0deg); }
            25% { transform: translate(-0.5px, -0.5px) rotate(-0.5deg); }
            50% { transform: translate(-0.5px, 0.5px) rotate(0.5deg); }
            75% { transform: translate(0.5px, -0.5px) rotate(0deg); }
            100% { transform: translate(0.5px, 0.5px) rotate(0deg); }
        }

        @keyframes pulse {
            0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
            50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; }
            100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
        }

        @keyframes fullscreen-breathe {
            0% {
                background-size: 100% 100%, 100% 100%;
                opacity: 0.88;
            }
            50% {
                background-size: 108% 108%, 114% 114%;
                opacity: 1;
            }
            100% {
                background-size: 100% 100%, 100% 100%;
                opacity: 0.88;
            }
        }

        .danger-pulse .progress-ring-bar {
            stroke: var(--danger);
        }
        
        .danger-pulse .progress-ring-bg {
            stroke: rgba(239, 68, 68, 0.2);
        }
        
        .danger-pulse .time-inputs {
            color: var(--danger);
        }
        
        .danger-pulse .time-col input {
            color: var(--danger);
            -webkit-text-fill-color: var(--danger);
        }

        .time-up-msg {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 64px;
            font-weight: 700;
            color: var(--danger);
            display: none;
            z-index: 10;
            text-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
            white-space: nowrap;
        }

        .fullscreen-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            padding: 8px;
            border-radius: 8px;
            font-size: 16px;
        }
        
        .fullscreen-btn:hover {
            color: var(--text-main);
            background-color: rgba(255,255,255,0.05);
        }

        .keyboard-hints {
            position: absolute;
            bottom: 20px;
            right: 20px;
            font-size: 12px;
            color: var(--text-secondary);
            text-align: right;
            line-height: 1.6;
            background: var(--bg-card);
            padding: 8px 12px;
            border-radius: 8px;
            border: 1px solid var(--border);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }
            
            main {
                padding: 20px 16px;
            }
            
            .content-section {
                width: 100%;
                padding: 24px 0;
                margin-top: 40px;
            }
            
            .content-section h2 {
                font-size: 18px;
                margin-top: 24px;
            }
            
            .content-section h3 {
                font-size: 16px;
                margin-top: 20px;
            }
            
            .content-section p,
            .content-section li {
                font-size: 14px;
                line-height: 1.6;
            }
            
            .content-section table {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
                -webkit-overflow-scrolling: touch;
            }
            
            .content-section table th, 
            .content-section table td {
                padding: 12px;
                font-size: 13px;
            }
            aside {
                order: 2;
                width: 100%;
                flex-direction: row;
                height: calc(64px + env(safe-area-inset-bottom));
                padding: 0;
                padding-bottom: env(safe-area-inset-bottom);
                border-right: none;
                border-top: 1px solid var(--border);
                align-items: center;
                justify-content: space-around;
                background-color: var(--bg-card);
                z-index: 20;
            }
            .nav-item {
                flex-direction: column;
                justify-content: center;
                margin-bottom: 0;
                margin-right: 0;
                height: 100%;
                width: 33.33%;
                border-radius: 0;
                padding: 0;
                gap: 4px;
            }
            .nav-item:hover {
                background-color: transparent;
            }
            .nav-item.active {
                background-color: transparent;
                color: var(--primary);
            }
            .nav-icon {
                font-size: 22px;
            }
            .nav-text {
                font-size: 11px;
                font-weight: 500;
            }
            .keyboard-hints {
                display: none;
            }
            .fullscreen-btn {
                display: none;
            }
            #notificationToggle {
                display: none;
            }
            footer {
                display: none; /* Hide footer on mobile for full App experience */
            }
            .alarm-display {
                width: 360px;
                height: 360px;
            }
            .pomodoro-settings {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .pomodoro-preset-btn {
                min-width: 100px;
            }
            .pomodoro-display {
                width: 300px;
                height: 300px;
            }
        }

        @media (max-width: 480px) {
            .time-inputs {
                font-size: 32px;
                max-width: 200px;
            }
            .time-col input {
                font-size: 32px;
                width: 50px;
                min-width: 50px;
                padding: 6px 0;
            }
            .alarm-display {
                width: 260px;
                height: 260px;
                margin-bottom: 20px;
            }
            .presets {
                margin-bottom: 12px;
            }
            main {
                padding: 10px 16px;
            }
            .controls {
                gap: 12px;
            }
            .btn-primary, .btn-secondary {
                padding: 10px 24px;
                font-size: 15px;
            }
            .pomodoro-display {
                width: 250px;
                height: 250px;
            }
            .pomodoro-time {
                font-size: 54px;
            }
            .pomodoro-settings {
                gap: 10px;
                margin-bottom: 16px;
            }
            .pomodoro-presets {
                gap: 8px;
            }
            .pomodoro-preset-btn {
                min-width: 96px;
                padding: 8px 10px;
                font-size: 12px;
            }
            .setting-card {
                padding: 10px;
            }
            .setting-card input {
                font-size: 24px;
            }
            .stopwatch-display {
                font-size: 48px;
                margin-bottom: 20px;
            }
            .precision-btn {
                min-width: 74px;
                padding: 7px 10px;
                font-size: 12px;
            }
            .presets {
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
                max-width: 300px;
                margin-bottom: 16px;
            }
            .preset-btn {
                min-width: 64px;
                padding: 8px 10px;
                font-size: 13px;
            }
        }
        
        /* Fullscreen styles */
        :fullscreen {
            background-color: var(--bg-main);
        }
        :fullscreen header, 
        :fullscreen aside, 
        :fullscreen footer, 
        :fullscreen .controls, 
        :fullscreen .presets, 
        :fullscreen .fullscreen-btn, 
        :fullscreen .keyboard-hints, 
        :fullscreen .laps-container,
        :fullscreen .content-section {
            display: none !important;
        }
        :fullscreen main {
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background:
                radial-gradient(circle at center, rgba(59, 130, 246, 0.14) 0%, rgba(15, 23, 42, 0) 42%),
                radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, rgba(15, 23, 42, 0) 62%);
        }
        :fullscreen .alarm-display {
            width: min(78vmin, calc(100vw - 80px), calc(100vh - 80px));
            height: min(78vmin, calc(100vw - 80px), calc(100vh - 80px));
            margin-bottom: 0;
        }
        :fullscreen .progress-ring {
            width: 100%;
            height: 100%;
        }
        :fullscreen .time-inputs {
            max-width: 72vmin;
            gap: 1.8vmin;
            font-size: clamp(48px, 8.5vmin, 110px);
        }
        :fullscreen .time-col input {
            width: clamp(62px, 12vmin, 132px);
            min-width: clamp(62px, 12vmin, 132px);
            font-size: clamp(48px, 8.5vmin, 110px);
            padding: 0;
            background: transparent;
            border: 1px solid transparent;
            box-shadow: none;
        }
        :fullscreen .time-colon {
            padding-bottom: 0;
            font-size: clamp(48px, 8.5vmin, 110px);
        }
        :fullscreen .time-up-msg {
            font-size: clamp(56px, 10vmin, 140px);
        }
        :fullscreen .danger-pulse ~ .time-up-msg,
        :fullscreen .danger-pulse .time-up-msg {
            text-shadow: 0 8px 32px rgba(239, 68, 68, 0.58);
        }

        @media (prefers-reduced-motion: reduce) {
            .danger-pulse .time-inputs,
            .time-up-msg {
                animation: none;
            }

            :fullscreen main {
                animation: none;
            }
        }
