/* Timer module styles (loaded after modules.css). Ambient art motion first. */
.tm-art{position:absolute;inset:0;overflow:hidden}.tm-art .tm-svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.tm-art svg *{transform-box:fill-box}
@keyframes tm-drift{0%{transform:translateX(-40px)}100%{transform:translateX(70px)}}
@keyframes tm-twinkle{0%,100%{opacity:.25}50%{opacity:.95}}
@keyframes tm-rain{0%{transform:translateY(0)}100%{transform:translateY(780px)}}
@keyframes tm-flicker{0%,100%{opacity:1}22%{opacity:.88}41%{opacity:.97}63%{opacity:.84}80%{opacity:.95}}
@keyframes tm-wave{0%{transform:translateX(0)}100%{transform:translateX(-200px)}}
@keyframes tm-steam{0%{transform:translateY(8px);opacity:0}30%{opacity:.7}100%{transform:translateY(-26px);opacity:0}}
@keyframes tm-bob{0%,100%{transform:translateY(0) rotate(-1.2deg)}50%{transform:translateY(8px) rotate(1.4deg)}}
@keyframes tm-float{0%,100%{transform:translate(0,0)}50%{transform:translate(10px,-14px)}}
@keyframes tm-ray{0%,100%{opacity:.06}50%{opacity:.17}}
.tm-art .a-drift{animation:tm-drift 70s ease-in-out infinite alternate}
.tm-art .a-twinkle{animation:tm-twinkle 5s ease-in-out infinite}
.tm-art .a-rain{animation:tm-rain 4s linear infinite}
.tm-art .a-flicker{animation:tm-flicker 7s ease-in-out infinite}
.tm-art .a-wave{animation:tm-wave 40s linear infinite}
.tm-art .a-steam{animation:tm-steam 5s ease-out infinite}
.tm-art .a-bob{animation:tm-bob 7s ease-in-out infinite}
.tm-art .a-float{animation:tm-float 9s ease-in-out infinite}
.tm-art .a-ray{animation:tm-ray 9s ease-in-out infinite}
.tm-art.still *,.tm-thumb .tm-art *{animation:none!important}
@media (prefers-reduced-motion:reduce){.tm-art *{animation:none!important}}

/* ---------- Switcher running indicator ---------- */
.mod-run { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); background: color-mix(in srgb, var(--ui-accent) 15%, var(--raised)); }
.mod-run[hidden] { display: none; }
.mod-run i { width: 7px; height: 7px; border-radius: 50%; background: var(--ui-accent); animation: tm-pulse 2.4s ease-in-out infinite; }
.mod-run[data-state=paused] i { animation: none; opacity: .45; }
.mod-run[data-state=done] { background: color-mix(in srgb, var(--butter) 55%, var(--raised)); color: var(--warn-ink); }
.mod-run[data-state=done] i { animation: none; background: var(--warn-ink); }
@keyframes tm-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@media (max-width: 760px) { .mod-run b { display: none; } }

/* ---------- Panel ---------- */
.tm-modes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.tm-mode { flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; gap: 1px; height: auto; min-height: 52px; padding: 8px 10px; border-radius: var(--r-md); background: var(--raised); box-shadow: var(--shadow-1); }
.tm-mode:last-child { grid-column: 1 / -1; }
.tm-mode strong { font-size: var(--t-body); font-weight: 650; }
.tm-mode small { color: var(--muted); font-size: var(--t-cap); font-weight: 500; line-height: 1.25; }
.tm-mode[aria-pressed=true] { border-color: var(--ui-accent) !important; background: color-mix(in srgb, var(--ui-accent) 7%, var(--raised)); box-shadow: var(--shadow-1), 0 0 0 3px color-mix(in srgb, var(--ui-accent) 15%, transparent); }
.tm-form[hidden] { display: none; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s3); }
.tm-chip { min-height: 34px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: var(--t-cap); font-weight: 600; background: var(--raised); box-shadow: none; }
.tm-chip[aria-pressed=true] { background: color-mix(in srgb, var(--ui-accent) 14%, var(--raised)); border-color: var(--ui-accent) !important; }
.tm-pair, .tm-trio { display: grid; gap: var(--s2); }
.tm-pair { grid-template-columns: 1fr 1fr; }
.tm-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-pair label, .tm-trio label { font-size: var(--t-cap); }
.tm-pair input, .tm-trio input { width: 100%; }
.tm-save { display: flex; gap: var(--s2); }
.tm-save input { flex: 1; min-width: 0; }
.tm-presets { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s2); }
.tm-pre { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 8px; border-radius: var(--r-md); background: var(--raised); box-shadow: var(--shadow-1); }
.tm-pre-load { flex: 1; min-width: 0; display: block; height: auto; min-height: 40px; padding: 4px 6px; text-align: left; border: 0; background: transparent; box-shadow: none; }
.tm-pre-load strong { display: block; font-size: var(--t-body); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-pre-load small { display: block; color: var(--muted); font-size: var(--t-cap); font-weight: 500; }
.tm-pre-act { display: flex; gap: 2px; }
.tm-pre-act button, .tm-arow button { min-height: 30px; height: 30px; min-width: 30px; padding: 0; border-radius: 8px; background: transparent; box-shadow: none; border-color: transparent; color: var(--muted); font-size: 15px; }
.tm-pre-act button:hover:not(:disabled), .tm-arow button:hover:not(:disabled) { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tm-pre-empty { color: var(--muted); font-size: var(--t-cap); }
.tm-agenda { display: grid; gap: var(--s2); margin-bottom: var(--s2); }
.tm-arow { display: grid; grid-template-columns: minmax(0, 1fr) 70px auto auto auto; gap: 2px; align-items: center; }
.tm-arow input { min-width: 0; }
.tm-arow .tm-an { margin-right: 4px; }
.tm-walls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s3); align-items: start; }
.tm-wall { position: relative; min-width: 0; }
.tm-wallbtn { display: flex; flex-direction: column; align-items: stretch; width: 100%; min-width: 0; box-sizing: border-box; height: auto; padding: 4px; gap: 4px; border-radius: 12px; background: var(--raised); box-shadow: var(--shadow-1); }
.tm-wallbtn[aria-checked=true] { border-color: var(--ui-accent) !important; box-shadow: var(--shadow-1), 0 0 0 3px color-mix(in srgb, var(--ui-accent) 18%, transparent); }
.tm-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--sunken); }
.tm-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-wname { font-size: var(--t-cap); font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px 2px; }
.tm-wdel { position: absolute; top: 8px; right: 8px; width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0; border-radius: 50%; background: rgb(24 17 13 / .62); color: #fff8ee; border: 0; font-size: 17px; line-height: 1; }
.tm-wdel:hover { background: rgb(24 17 13 / .85); }
.tm-bad { color: var(--warn-ink); }
.tm-panel input[type=range] { width: 100%; }

/* ---------- Stage ---------- */
.tm-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 12px; gap: 10px; }
.tm-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); transition: opacity var(--dur) var(--ease-out); }
.tm-hint { font-size: var(--t-cap); color: var(--muted); }
.tm-stage { position: relative; flex: 1; min-height: 260px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; container-type: size; border: 1px solid var(--line); box-shadow: var(--shadow-2); background: #2a2a3a; --tm-accent: #f3d9a6; }
.tm-stage[data-kind=break] { --tm-accent: #b9d8b3; } .tm-stage[data-kind=move] { --tm-accent: #f3e4a0; } .tm-stage[data-kind=pair] { --tm-accent: #f2b8c0; } .tm-stage[data-kind=share] { --tm-accent: #b8d6ee; } .tm-stage[data-kind=done] { --tm-accent: #ffe3ae; } .tm-stage.tm-last { --tm-accent: #f2b779; }
.tm-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-shade { position: absolute; inset: 0; z-index: 1; background: #120d0a; opacity: var(--tm-dark, .3); pointer-events: none; transition: opacity 1.2s ease; }
.tm-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: #e8a35f; mix-blend-mode: soft-light; opacity: 0; pointer-events: none; transition: opacity 9s ease; }
.tm-stage.tm-last::after { opacity: .4; }
.tm-glow { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(70% 62% at 50% 50%, rgb(255 226 170 / .6), rgb(255 226 170 / 0) 72%); transition: opacity 3.5s ease; }
.tm-stage.tm-done .tm-glow { opacity: .85; animation: tm-glow 7s ease-in-out infinite alternate; }
@keyframes tm-glow { from { opacity: .5; } to { opacity: .95; } }
.tm-face { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: .8cqh; width: max-content; max-width: 94%; padding: 2.4cqh 4cqw; border-radius: 26px; text-align: center; color: #fff8ee; text-shadow: 0 2px 14px rgb(0 0 0 / .5); background: rgb(24 17 13 / .4); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); box-shadow: 0 10px 40px rgb(0 0 0 / .22); }
.tm-face p, .tm-face h3, .tm-face li, .tm-face b, .tm-face span { color: #fff8ee; }
.tm-state { margin: 0; font-size: max(11px, 2.1cqh); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: 1; }
.tm-label { margin: 0; font: 700 min(6.2cqw, 7.4cqh)/1.1 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.tm-sub, .tm-next, .tm-total { margin: 0; font-size: max(13px, min(2.4cqw, 3.2cqh)); font-weight: 600; opacity: .95; }
.tm-sub:empty, .tm-next:empty, .tm-total:empty { display: none; }
.tm-dial { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: .6cqh 0; }
.tm-digits { font: 700 min(25cqw, 34cqh)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.tm-dial.no-digits .tm-digits { display: none !important; }
.tm-dial[data-face=ring] { width: min(40cqh, 52cqw); aspect-ratio: 1; }
.tm-dial[data-face=ring] .tm-digits { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(min(40cqh, 52cqw) * .235); }
.tm-ring { width: 100%; height: 100%; display: block; overflow: visible; }
.tm-ring circle { fill: none; stroke-width: 11; }
.tm-ring .trk { stroke: rgb(255 248 238 / .24); }
.tm-ring .prg { stroke: var(--tm-accent); stroke-linecap: round; transition: stroke-dashoffset .3s linear, stroke 2s ease; filter: drop-shadow(0 0 6px rgb(0 0 0 / .28)); }
.tm-dial[data-face=sand] .tm-sand { height: min(36cqh, 54cqw); width: auto; aspect-ratio: 2 / 3; display: block; overflow: visible; }
.tm-dial[data-face=sand] .tm-digits { font-size: min(13cqw, 15cqh); margin-top: .5cqh; }
.tm-sand .frame { fill: rgb(255 248 238 / .12); stroke: rgb(255 248 238 / .85); stroke-width: 5; stroke-linejoin: round; }
.tm-sand .cap { fill: rgb(255 248 238 / .85); }
.tm-sand .sand { fill: var(--tm-accent); transition: y .3s linear, height .3s linear; }
.tm-sand .stream { fill: var(--tm-accent); transition: opacity .6s; }
.tm-dial[data-face=bar] { width: min(80cqw, 1100px); gap: 2.4cqh; }
.tm-dial[data-face=bar] .tm-digits { font-size: min(22cqw, 30cqh); }
.tm-bar { width: 100%; height: max(14px, 3.2cqh); border-radius: 999px; background: rgb(255 248 238 / .24); overflow: hidden; }
.tm-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--tm-accent); transition: width .3s linear, background 2s ease; }
.tm-dial[data-face=digits] .tm-digits { font-size: min(27cqw, 38cqh); }
.tm-laps { margin: .4cqh 0 0; padding: 6px 12px; list-style: none; max-height: 15cqh; overflow: auto; border-radius: 14px; background: rgb(24 17 13 / .35); color: #fff8ee; font-size: max(12px, 2.2cqh); font-variant-numeric: tabular-nums; display: grid; gap: 2px; text-shadow: none; }
.tm-laps[hidden] { display: none; }
.tm-laps li { display: grid; grid-template-columns: 4.5em 4.5em 4.5em; gap: 8px; }
.tm-laps small { opacity: .7; font-size: inherit; }
.tm-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; transition: opacity var(--dur) var(--ease-out); }
.tm-controls button { height: 46px; min-height: 46px; padding: 0 var(--s5); border-radius: 14px; font-size: 15px; }
.tm-controls button[hidden] { display: none; }
#tmStart { min-width: 160px; height: 52px; min-height: 52px; font-size: 18px; font-weight: 700; border-radius: 15px; }
.tm-nudge { display: inline-flex; gap: 6px; }
.tm-nudge button { padding: 0 var(--s4); }
#tmMute[aria-pressed=true] { color: var(--muted); }

/* ---------- Full screen classroom display ---------- */
.tm-main.tm-fs { position: fixed; inset: 0; z-index: 60; padding: 0; gap: 0; background: #0e0a08; }
.tm-main:fullscreen { padding: 0; gap: 0; background: #0e0a08; }
.tm-fs .tm-stage { border: 0; border-radius: 0; box-shadow: none; }
.tm-fs .tm-hint { display: none; }
.tm-fs .tm-top { position: absolute; z-index: 6; top: 14px; right: 14px; }
.tm-fs .tm-controls { position: absolute; z-index: 6; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 10px 12px; border-radius: 20px; background: rgb(24 17 13 / .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); max-width: 96%; }
.tm-fs .tm-controls button, .tm-fs .tm-top button { background: rgb(255 248 238 / .92); color: #2a1d15; border-color: transparent; }
.tm-fs .tm-controls #tmStart { background: #f3d9a6; color: #2a1d15; }
.tm-fs .tm-controls button:disabled { opacity: .45; }
.tm-main.tm-idle { cursor: none; }
.tm-main.tm-idle .tm-top, .tm-main.tm-idle .tm-controls { opacity: 0; pointer-events: none; }

@media (max-width: 800px) { .tm-main { min-height: 0; } .tm-hint { display: none; } .tm-stage { flex: none; height: min(72vh, 680px); } /* a definite height, or the cqh/cqw sizes inside the stage resolve to 0 in the stacked layout */ }
.tm-main.tm-fs .tm-stage, .tm-main:fullscreen .tm-stage { flex: 1; height: auto; }
@media (pointer: coarse) { .tm-controls button { min-height: 50px; } .tm-wdel { width: 36px; height: 36px; } .tm-pre-act button, .tm-arow button { min-height: 40px; min-width: 40px; } }
@media (prefers-reduced-motion: reduce) { .tm-stage.tm-done .tm-glow { animation: none; opacity: .85; } .mod-run i { animation: none; } .tm-ring .prg, .tm-bar i, .tm-sand .sand { transition: none; } .tm-stage::after, .tm-shade, .tm-glow { transition: none; } }

/* ---------- Pixel styles (timer-pixel.js): the 8-bit hourglass and the snail's trek ---------- */
.tm-pxwrap { position: relative; display: grid; place-items: center; }
.tm-pxaura { position: absolute; inset: -14%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--tm-accent) 58%, transparent), transparent 74%); opacity: .55; animation: tm-pxpulse 3.6s ease-in-out infinite alternate; }
@keyframes tm-pxpulse { from { opacity: .34; transform: scale(.93); } to { opacity: .78; transform: scale(1.05); } }
.tm-dial[data-face=pixel] .tm-pxglass { position: relative; height: min(38cqh, 52cqw); width: auto; aspect-ratio: 37 / 56; display: block; overflow: visible; filter: drop-shadow(0 0 .7cqh color-mix(in srgb, var(--tm-accent) 75%, transparent)); }
.tm-dial[data-face=pixel] .tm-digits, .tm-dial[data-face=snail] .tm-digits { font-size: inherit; line-height: 0; }
.tm-dial[data-face=pixel] .tm-digits { margin-top: 1.2cqh; }
.tm-dial[data-face=snail] { width: min(86cqw, 1100px); gap: 1.6cqh; }
.tm-pxdigits { display: block; height: min(10cqh, 8cqw); width: auto; filter: drop-shadow(0 0 .7cqh color-mix(in srgb, var(--tm-accent) 70%, transparent)); }
.tm-pxdigits .dfg { fill: #fff8ee; } .tm-pxdigits .dsh { fill: rgb(0 0 0 / .5); }
.tm-pxglass .w0 { fill: #f4d994; } .tm-pxglass .w1 { fill: #d79d4e; } .tm-pxglass .w2 { fill: #a86e30; } .tm-pxglass .w3 { fill: #6f4520; }
.tm-pxglass .gf { fill: rgb(214 246 246 / .1); } .tm-pxglass .gl { fill: #d9f6f6; } .tm-pxglass .gs { fill: #fff; opacity: .6; }
.tm-pxglass .s1 { fill: var(--tm-accent); transition: fill 2s ease; } .tm-pxglass .s2 { fill: color-mix(in srgb, var(--tm-accent) 60%, #fff); } .tm-pxglass .s3 { fill: color-mix(in srgb, var(--tm-accent) 76%, #2a1a0a); }
.tm-pxglass .px-sp { fill: #fff; } .tm-pxglass .px-sp2 { fill: var(--tm-accent); }
.px-star { animation: tm-pxtw 2.4s steps(1, end) infinite; }
@keyframes tm-pxtw { 0% { opacity: .15; } 35% { opacity: 1; } 70% { opacity: .45; } }
.px-drop { opacity: 0; animation: tm-pxfall 1.12s steps(23, end) infinite; }
.tm-pxglass.flow .px-drop { opacity: 1; }
@keyframes tm-pxfall { from { transform: translateY(0); } to { transform: translateY(115px); } }
.tm-pxglass.done { animation: tm-pxwob 1.5s steps(1, end) infinite; transform-origin: 50% 50%; }
.tm-pxglass.done .px-star { animation-duration: .9s; }
@keyframes tm-pxwob { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
.tm-pxsnail { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 .5cqh .8cqh rgb(0 0 0 / .35)); }
.tm-pxsnail .gr1 { fill: #78c85a; } .tm-pxsnail .gr2 { fill: #5fa648; } .tm-pxsnail .gr3 { fill: #b3e88a; } .tm-pxsnail .dt1 { fill: #8a5a3a; } .tm-pxsnail .pb { fill: #6b4329; }
.tm-pxsnail .st { fill: #4f9a45; } .tm-pxsnail .lf { fill: #6dbb5a; }
.tm-pxsnail .mc { fill: #d9503f; } .tm-pxsnail .md { fill: #fff; } .tm-pxsnail .ms { fill: #efe3cb; }
.tm-pxsnail .fp { fill: #efe3cb; } .tm-pxsnail .fk { fill: #e6c675; } .tm-pxsnail .fa { fill: #e0525a; } .tm-pxsnail .fb { fill: #fff3d8; }
.tm-pxsnail .ss { fill: var(--tm-accent); transition: fill 2s ease; } .tm-pxsnail .sS { fill: color-mix(in srgb, var(--tm-accent) 58%, #2b1a10); } .tm-pxsnail .sh { fill: #fff; opacity: .7; }
.tm-pxsnail .sb { fill: #f0d3a2; } .tm-pxsnail .sB { fill: #d6ae78; } .tm-pxsnail .so { fill: #5a3d28; } .tm-pxsnail .se { fill: #fff; } .tm-pxsnail .sp { fill: #2b1a10; } .tm-pxsnail .sk { fill: #5a3d28; } .tm-pxsnail .sc { fill: #f4a6c0; }
.tm-pxsnail .hr { fill: #ff5d73; } .tm-pxsnail .px-trail { fill: rgb(255 255 255 / .5); transition: width .45s linear; }
.tm-pxsnail .bwg { fill: #ffd36a; } .tm-pxsnail .bbd { fill: #5a3d28; }
.px-walker { transition: transform .45s linear; }
.tm-pxsnail.walk .px-crawl { animation: tm-pxbob .9s steps(1, end) infinite; }
@keyframes tm-pxbob { 0% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.px-stalks { animation: tm-pxsway 1.6s steps(1, end) infinite; }
@keyframes tm-pxsway { 0% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.px-flower { transform-box: fill-box; transform-origin: 50% 100%; animation: tm-pxlean 3s steps(1, end) infinite; }
@keyframes tm-pxlean { 0% { transform: skewX(0); } 33% { transform: skewX(7deg); } 66% { transform: skewX(-7deg); } }
.px-fl1 { animation: tm-pxfl1 1s steps(1, end) infinite; } .px-fl2 { animation: tm-pxfl2 1s steps(1, end) infinite; }
.tm-pxsnail.arrived .px-fl1, .tm-pxsnail.arrived .px-fl2 { animation-duration: .4s; }
@keyframes tm-pxfl1 { 0% { opacity: 1; } 50% { opacity: 0; } } @keyframes tm-pxfl2 { 0% { opacity: 0; } 50% { opacity: 1; } }
.px-butterfly { animation: tm-pxfly 24s ease-in-out infinite alternate; }
.px-butterfly .bw1 { animation: tm-pxfl1 .5s steps(1, end) infinite; } .px-butterfly .bw2 { animation: tm-pxfl2 .5s steps(1, end) infinite; }
@keyframes tm-pxfly { 0% { transform: translate(25px, 40px); } 25% { transform: translate(105px, 22px); } 50% { transform: translate(190px, 48px); } 75% { transform: translate(260px, 20px); } 100% { transform: translate(300px, 44px); } }
.px-heart { opacity: 0; }
.tm-pxsnail.arrived .px-heart { animation: tm-pxheart 2.1s steps(9, end) infinite; }
@keyframes tm-pxheart { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-48px); } }
@media (prefers-reduced-motion: reduce) {
  .tm-pxglass, .tm-pxglass *, .tm-pxsnail *, .tm-pxaura { animation: none !important; transition: none !important; }
  .px-drops { display: none; } .px-fl2, .bw2 { opacity: 0; } .tm-pxsnail.arrived .px-heart { opacity: 1; } .px-butterfly { transform: translate(105px, 22px); }
}
.tm-dial[data-face=snail] .tm-pxsnail { width: min(64cqw, 880px); }

/* ---------- second set of wallpapers (timer-art2.js): extra ambient motion, all inside .tm-art so Still artwork and reduced motion stop it ---------- */
@keyframes tm-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes tm-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .8; } 100% { transform: translateY(-760px); opacity: 0; } }
@keyframes tm-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(-200px, 1000px) rotate(540deg); opacity: 0; } }
@keyframes tm-ripple { 0% { transform: scale(.2); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes tm-swim { 0% { transform: translateX(-320px); } 100% { transform: translateX(1900px); } }
@keyframes tm-aurora { 0%, 100% { opacity: .4; transform: translateX(-30px) skewX(-2deg); } 50% { opacity: .85; transform: translateX(40px) skewX(3deg); } }
@keyframes tm-beam { 0%, 100% { transform: rotate(-12deg); opacity: .25; } 50% { transform: rotate(12deg); opacity: .65; } }
@keyframes tm-bloom { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.14); opacity: .75; } }
@keyframes tm-orbit { to { transform: rotate(360deg); } }
@keyframes tm-shoot { 0%, 86% { transform: translate(0, 0); opacity: 0; } 88% { opacity: 1; } 100% { transform: translate(-460px, 270px); opacity: 0; } }
@keyframes tm-swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.tm-art .a-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: tm-sway 7s ease-in-out infinite; }
.tm-art .a-rise { animation: tm-rise 14s linear infinite; }
.tm-art .a-fall { animation: tm-fall 16s linear infinite; }
.tm-art .a-ripple { transform-box: fill-box; transform-origin: center; animation: tm-ripple 6s ease-out infinite; }
.tm-art .a-swim { animation: tm-swim 60s linear infinite; }
.tm-art .a-aurora { animation: tm-aurora 16s ease-in-out infinite; }
.tm-art .a-beam { animation: tm-beam 12s ease-in-out infinite; }
.tm-art .a-bloom { transform-box: fill-box; transform-origin: center; animation: tm-bloom 14s ease-in-out infinite; }
.tm-art .a-orbit { animation: tm-orbit 120s linear infinite; }
.tm-art .a-shoot { animation: tm-shoot 18s linear infinite; }
.tm-art .a-swing { transform-box: fill-box; transform-origin: 50% 0; animation: tm-swing 5s ease-in-out infinite; }
.tm-art .a-ray { animation: tm-ray 11s ease-in-out infinite; }
@keyframes tm-shaft { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.tm-art .a-shaft { animation: tm-shaft 11s ease-in-out infinite; }

/* stacked wallpaper layers (v1.20): see stack() in timer-art2.js. A whole <svg> that only changes opacity or transform is moved by the graphics card, so its blur is drawn once. */
.tm-art { contain: strict; }
.tm-art .tm-layer { overflow: visible; pointer-events: none; }
.tm-art .tm-layer-still { will-change: transform; }
@keyframes tm-bloomL { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
.tm-art .a-bloomL { transform-origin: center; animation: tm-bloomL 14s ease-in-out infinite; }
