@import url("https://fonts.googleapis.com/css2?family=ZCOOL+QingKe+HuangYou&display=swap");

body.online-timer {
    color-scheme: light;
    --bg-0: #f8f1e7;
    --bg-1: #efe1d0;
    --bg-2: #e4d2bd;
    --ink: #2f271f;
    --muted: rgba(47, 39, 31, 0.62);
    --accent: #f2773b;
    --accent-2: #2f8f7b;
    --accent-3: #f2c14e;
    --ring-glow: rgba(47, 143, 123, 0.35);
    --ring-warm: rgba(242, 119, 59, 0.22);
    --surface: rgba(255, 255, 255, 0.76);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --stroke: rgba(47, 39, 31, 0.14);
    --shadow: 0 28px 70px rgba(60, 40, 20, 0.18);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 18%, rgba(242, 119, 59, 0.18), transparent 46%),
        radial-gradient(circle at 82% 12%, rgba(47, 143, 123, 0.18), transparent 48%),
        radial-gradient(circle at 65% 78%, rgba(242, 193, 78, 0.24), transparent 52%),
        linear-gradient(155deg, var(--bg-0), var(--bg-1) 52%, var(--bg-2));
    position: relative;
    overflow-x: hidden;
}

body.online-timer,
body.online-timer * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.online-timer::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(47, 39, 31, 0.1) 1px, transparent 1px),
        radial-gradient(rgba(47, 39, 31, 0.06) 1px, transparent 1px);
    background-size: 56px 56px, 24px 24px;
    background-position: 0 0, 12px 12px;
    pointer-events: none;
    opacity: 0.4;
    z-index: 0;
}

body.online-timer::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    right: -120px;
    top: 60px;
    background: radial-gradient(circle, rgba(47, 143, 123, 0.25), transparent 70%);
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

body.online-timer.timer-finished .progress-ring {
    box-shadow: 0 0 0 8px rgba(242, 119, 59, 0.2), 0 25px 60px rgba(60, 40, 20, 0.2);
    transform: scale(1.02);
}

.online-timer a {
    color: inherit;
    text-decoration: none;
}

.online-timer .page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 96px;
    position: relative;
    z-index: 1;
}

.online-timer .hero {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.online-timer .hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.online-timer .back-link {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.online-timer .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.online-timer .badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.online-timer .badge-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--stroke);
}

.online-timer .badge-ink {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #2e2012;
}

.online-timer .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
}

.online-timer .hero-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
}

.online-timer h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin: 12px 0 16px;
}

.online-timer .hero-main p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.7;
}

.online-timer .hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.online-timer .hero-cta {
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.online-timer .hero-cta-hint {
    font-size: 0.9rem;
    color: var(--muted);
}

.online-timer .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.online-timer .tag {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
}

.online-timer .hero-side {
    display: grid;
    gap: 18px;
}

.online-timer .hero-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.online-timer .hero-card h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.online-timer .stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.online-timer .stat {
    background: var(--surface-strong);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--stroke);
}

.online-timer .stat-label {
    font-size: 0.76rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.online-timer .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 6px;
}

.online-timer .hero-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--muted);
}

.online-timer .hero-card ul.hero-note {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-left: 0;
    color: var(--muted);
}

.online-timer .hero-card ul.hero-note li {
    position: relative;
    padding-left: 14px;
}

.online-timer .hero-card ul.hero-note li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-2);
}

.online-timer .timer-lab {
    margin: 0;
}

.online-timer .timer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 26px;
    align-items: start;
}

.online-timer .display-panel,
.online-timer .setup-panel {
    display: grid;
    gap: 20px;
}

.online-timer .display-panel {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.online-timer .display-panel.shake {
    animation: shake 0.35s ease;
}

.online-timer .display-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.online-timer .mode-toggle {
    display: inline-flex;
    background: rgba(47, 39, 31, 0.06);
    border-radius: 999px;
    padding: 6px;
    border: 1px solid var(--stroke);
}

.online-timer .mode-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
}

.online-timer .mode-btn.active {
    background: var(--ink);
    color: #fff;
}

.online-timer .status-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(47, 39, 31, 0.08);
    color: var(--muted);
}

.online-timer .status-pill.is-running {
    background: rgba(47, 143, 123, 0.18);
    color: #1f5f4f;
}

.online-timer .status-pill.is-paused {
    background: rgba(242, 119, 59, 0.15);
    color: #a34d23;
}

.online-timer .progress-ring {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 1;
    margin: 14px auto 8px;
    border-radius: 50%;
    background:
        conic-gradient(var(--accent) var(--progress), rgba(47, 39, 31, 0.08) 0deg),
        repeating-conic-gradient(from 0deg, rgba(47, 39, 31, 0.1) 0deg 2deg, transparent 2deg 14deg);
    box-shadow: inset 0 0 0 1px rgba(47, 39, 31, 0.08), var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.online-timer .progress-ring::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    background: var(--surface-strong);
    box-shadow: inset 0 0 20px rgba(47, 39, 31, 0.08);
}

.online-timer .progress-ring::after {
    content: "";
    position: absolute;
    inset: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(47, 39, 31, 0.1);
}

.online-timer .progress-ring.is-running {
    animation: ring-pulse 2.8s ease-in-out infinite;
}

.online-timer .ring-center {
    position: absolute;
    inset: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(47, 39, 31, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    padding: 12px;
}

.online-timer .ring-label {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.online-timer .time-display {
    font-family: "ZCOOL QingKe HuangYou", "LXGW WenKai", sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    letter-spacing: 0.08em;
    margin: 10px 0 6px;
}

.online-timer .time-sub {
    font-size: 0.9rem;
    color: var(--muted);
}

.online-timer .control-row,
.online-timer .quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.online-timer button {
    font-family: inherit;
}

.online-timer .primary-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #2e2012;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.online-timer .ghost-btn {
    border: 1px solid var(--stroke);
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--ink);
    cursor: pointer;
    font-weight: 600;
}

.online-timer .chip-btn {
    border: 1px dashed rgba(47, 39, 31, 0.3);
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
}

.online-timer .chip-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.online-timer .panel-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.online-timer .panel-stack {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
}

.online-timer .panel-stack .panel-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 24px;
}

.online-timer .panel-stack .panel-card + .panel-card {
    border-top: 1px solid rgba(47, 39, 31, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.75));
}

.online-timer .panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.online-timer .panel-kicker {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.online-timer .panel-card h2 {
    font-size: 1.35rem;
    margin-top: 8px;
}

.online-timer .panel-chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(47, 143, 123, 0.16);
    color: #1f5f4f;
    font-size: 0.8rem;
    font-weight: 700;
}

.online-timer .panel-chip--warm {
    background: rgba(242, 193, 78, 0.28);
    color: #8a5b12;
}

.online-timer .input-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.online-timer .input-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

.online-timer .input-grid input {
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    padding: 12px 10px;
    font-size: 1rem;
    background: var(--surface-strong);
    color: var(--ink);
}

.online-timer .input-grid.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.online-timer .preset-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.online-timer .preset-btn {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(47, 39, 31, 0.2);
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    font-weight: 600;
    cursor: pointer;
}

.online-timer .panel-hint {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.online-timer .panel-card--status .stat-grid {
    gap: 12px;
}

.online-timer .panel-card--status .stat {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    border: 1px solid rgba(47, 39, 31, 0.12);
    box-shadow: none;
    padding: 12px 14px;
}

.online-timer .panel-card--status .stat-label {
    letter-spacing: 0.08em;
}

.online-timer .panel-card--status .stat-value {
    font-size: 1.05rem;
}

.online-timer .panel-card--status .status-message {
    margin-top: 12px;
    background: rgba(47, 39, 31, 0.06);
    border: 1px dashed rgba(47, 39, 31, 0.12);
}

.online-timer .panel-card--guide {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.56));
}

.online-timer .panel-card--guide::after {
    content: "节奏";
    position: absolute;
    right: -12px;
    bottom: 14px;
    font-size: 3.2rem;
    letter-spacing: 0.2em;
    color: rgba(47, 39, 31, 0.08);
    font-weight: 700;
    pointer-events: none;
}

.online-timer .guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.online-timer .guide-item {
    border-radius: 16px;
    border: 1px solid rgba(47, 39, 31, 0.12);
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 14px;
    display: grid;
    gap: 6px;
    min-height: 92px;
}

.online-timer .guide-number {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.online-timer .guide-item h3 {
    font-size: 1rem;
}

.online-timer .guide-item p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

.online-timer .guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.online-timer .guide-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px dashed rgba(47, 39, 31, 0.2);
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.online-timer .sound-dock {
    margin-top: 8px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(47, 39, 31, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    display: grid;
    gap: 12px;
}

.online-timer .sound-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.online-timer .sound-title {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.online-timer .sound-options {
    display: grid;
    gap: 8px;
}

.online-timer .sound-stage {
    position: relative;
    padding: 14px 16px 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.55));
    border: 1px solid rgba(47, 39, 31, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    display: grid;
    gap: 12px;
    overflow: hidden;
}

.online-timer .sound-stage::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -50px;
    top: -60px;
    background: radial-gradient(circle, rgba(47, 143, 123, 0.18), transparent 70%);
    opacity: 0.8;
    pointer-events: none;
}

.online-timer .sound-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(242, 193, 78, 0.22), transparent 45%),
        radial-gradient(circle at 85% 82%, rgba(242, 119, 59, 0.16), transparent 45%);
    opacity: 0.55;
    pointer-events: none;
}

.online-timer .sound-stage > * {
    position: relative;
    z-index: 1;
}

.online-timer .sound-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.online-timer .sound-option-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
}

.online-timer .sound-option {
    border: 1px solid rgba(47, 39, 31, 0.18);
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 14px 12px 44px;
    border-radius: 14px;
    text-align: left;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.online-timer .sound-option::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(47, 39, 31, 0.2);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
    transform: translateY(-50%);
}

.online-timer .sound-option::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(47, 39, 31, 0.45);
    transform: translateY(-50%);
}

.online-timer .sound-option[data-ring="30s"]::before {
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.65),
        0 0 0 4px rgba(47, 39, 31, 0.08);
}

.online-timer .sound-option[data-ring="60s"]::before {
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.65),
        0 0 0 4px rgba(47, 39, 31, 0.08),
        0 0 0 6px rgba(47, 39, 31, 0.06);
}

.online-timer .sound-option.active {
    border-color: rgba(31, 95, 79, 0.4);
    background: linear-gradient(135deg, rgba(47, 143, 123, 0.2), rgba(255, 255, 255, 0.7));
    color: #1f5f4f;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(47, 143, 123, 0.18);
    transform: translateY(-1px);
}

.online-timer .sound-option.active::before {
    border-color: rgba(47, 143, 123, 0.55);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.65),
        0 0 0 4px rgba(47, 143, 123, 0.12),
        0 0 12px var(--ring-glow);
}

.online-timer .sound-option.active::after {
    background: #1f5f4f;
}

.online-timer .sound-option:hover {
    transform: translateY(-1px);
}

.online-timer .sound-option:focus-visible {
    outline: 2px solid rgba(47, 143, 123, 0.5);
    outline-offset: 2px;
}

.online-timer .toggle-btn {
    border: 1px solid var(--stroke);
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface-strong);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.online-timer .toggle-indicator {
    width: 36px;
    height: 18px;
    border-radius: 999px;
    background: rgba(47, 39, 31, 0.2);
    position: relative;
}

.online-timer .toggle-indicator::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.online-timer .toggle-btn.active .toggle-indicator {
    background: rgba(47, 143, 123, 0.4);
}

.online-timer .toggle-btn.active .toggle-indicator::after {
    transform: translateX(18px);
    background: #1f5f4f;
}

.online-timer .toggle-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.online-timer .stop-ring-btn {
    justify-self: start;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-color: rgba(242, 119, 59, 0.4);
    background: rgba(242, 119, 59, 0.14);
    color: #a34d23;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.online-timer .stop-ring-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.online-timer .stop-ring-btn.is-active:not(:disabled) {
    box-shadow: 0 12px 20px rgba(242, 119, 59, 0.18);
}

.online-timer .sound-wave {
    position: absolute;
    left: 18px;
    bottom: -16px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px dashed rgba(47, 39, 31, 0.18);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.online-timer .sound-wave::before,
.online-timer .sound-wave::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    border: 1px solid rgba(47, 39, 31, 0.18);
    opacity: 0.5;
}

.online-timer .sound-wave::after {
    inset: 36px;
    opacity: 0.45;
}

.online-timer.ringing .sound-wave {
    animation: ring-wave 1.6s ease-out infinite;
}

.online-timer.ringing .sound-wave::before {
    animation: ring-wave 1.6s ease-out infinite 0.2s;
}

.online-timer.ringing .sound-wave::after {
    animation: ring-wave 1.6s ease-out infinite 0.4s;
}

.online-timer.ringing .stop-ring-btn {
    animation: stop-pulse 1.4s ease-in-out infinite;
}

.online-timer .status-message {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--ink);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(47, 39, 31, 0.08);
}

.online-timer .tips,
.online-timer .faq {
    margin-top: 40px;
    display: grid;
    gap: 18px;
}

.online-timer .tip-card,
.online-timer .faq-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.online-timer .tip-card h3,
.online-timer .faq-item h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.online-timer .faq {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.online-timer .hidden {
    display: none !important;
}

.online-timer .reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: reveal 0.6s ease forwards;
    animation-delay: var(--delay, 0.1s);
}

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

@keyframes ring-pulse {
    0%, 100% {
        box-shadow: inset 0 0 0 1px rgba(47, 39, 31, 0.08), 0 20px 50px rgba(60, 40, 20, 0.18);
    }
    50% {
        box-shadow: inset 0 0 0 1px rgba(47, 39, 31, 0.08), 0 25px 70px rgba(60, 40, 20, 0.26);
    }
}

@keyframes ring-wave {
    0% {
        transform: scale(0.85);
        opacity: 0.2;
    }
    40% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes stop-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(242, 119, 59, 0.18);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(242, 119, 59, 0.1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    30% {
        transform: translateX(-6px);
    }
    60% {
        transform: translateX(6px);
    }
}

.online-timer .display-panel:fullscreen {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-content: center;
}

.online-timer .display-panel:fullscreen .progress-ring {
    width: min(70vh, 520px);
}

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

    .online-timer .progress-ring {
        width: min(100%, 300px);
    }
}

@media (max-width: 640px) {
    .online-timer .hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .online-timer .preset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .online-timer .stat-grid {
        grid-template-columns: 1fr;
    }

    .online-timer .guide-grid {
        grid-template-columns: 1fr;
    }

    .online-timer .progress-ring {
        width: min(100%, 260px);
    }
}
