.stage { position: relative; min-height: 62vh; border-radius: 14px; overflow: hidden; background: #14141c center / cover no-repeat; color: #fff; display: flex; align-items: center; justify-content: center; gap: 4vmin; flex-wrap: wrap; padding: 20px; margin: 12px 0; }
.stage::before { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, .35); pointer-events: none; }
.stage > * { position: relative; }
.stage:fullscreen { border-radius: 0; margin: 0; min-height: 100vh; }
.stage.pseudo-full { position: fixed; inset: 0; z-index: 50; border-radius: 0; margin: 0; }
.stage:not(.has-photo) .empty { display: block; }
.empty { display: none; position: absolute !important; top: 10px; left: 0; right: 0; text-align: center; opacity: .7; font-size: .9rem; }
.has-photo .empty { display: none; }
.readout { text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
#time { font-size: clamp(3rem, 14vmin, 9rem); font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1; }
#ampm { font-size: clamp(1rem, 4vmin, 2.5rem); margin-left: .3em; }
#date { font-size: clamp(1rem, 3.4vmin, 2rem); margin-top: .5em; opacity: .9; }
#analog { width: min(64vmin, 420px); aspect-ratio: 1; border-radius: 50%; position: relative; background: rgba(0,0,0,.28); border: 3px solid rgba(255,255,255,.8); box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.mark, .hand { position: absolute; left: 50%; top: 0; width: 0; height: 50%; transform-origin: 50% 100%; }
.mark::after { content: ""; position: absolute; left: -1px; top: 6px; width: 2px; height: 5%; background: rgba(255,255,255,.75); }
.mark.big::after { left: -2px; width: 4px; height: 8%; background: #fff; }
.hand::after { content: ""; position: absolute; bottom: 0; left: 0; border-radius: 4px; background: #fff; transform: translateX(-50%); }
#hHour { height: 28%; top: 22%; } #hHour::after { width: 6px; height: 100%; }
#hMin { height: 40%; top: 10%; } #hMin::after { width: 4px; height: 100%; }
#hSec { height: 44%; top: 6%; } #hSec::after { width: 2px; height: 100%; background: #ff5a4f; }
.pivot { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #ff5a4f; }
.controls { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; }
.controls label { display: block; }
.controls input[type=range], .controls select { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.hint { color: var(--muted); font-size: .9rem; }
.file { position: relative; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
