/* Tapping (widgets/tapping/tapping.js): the scene across the top, the story and the four lines side by side under it. */
.tp { display: flex; flex-direction: column; gap: 16px; padding: 14px; color: var(--ink); }
.tp__scene { position: relative; flex: 1 1 auto; min-height: 260px; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.03); }
.is-vertical .tp__scene { flex: none; height: clamp(260px, 52vw, 400px); }
/* Sun and moon: placed on their arc by the script (transform); they fade as they pass the horizon. */
.tp__sun, .tp__moon { position: absolute; left: 0; top: 0; width: clamp(40px, 13%, 76px); aspect-ratio: 1; opacity: 0; transition: opacity .6s ease; will-change: transform; }
.tp__sun .art { display: block; width: 100%; height: 100%; }
/* The moon: a crescent cut from a white disc. */
.tp__moon::before { content: ''; position: absolute; inset: 18%; border-radius: 50%; box-shadow: inset -9px 4px 0 0 #f3efe9; }
.tp__tree { position: absolute; left: 50%; bottom: -2%; height: 100%; aspect-ratio: .585; translate: -50% 0; }
.tp__palm { position: absolute; inset: 0; width: 100%; height: 100%; }
.tp__pot { position: absolute; left: 50%; top: 37%; width: 26%; }
.tp__pot .art { display: block; width: 100%; height: auto; transform-origin: 50% 0; }
.tp__drops { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.tp__drop { position: absolute; left: 60%; top: 31%; width: 4%; height: auto; animation: tp-drop 1s steps(5) forwards; }
@keyframes tp-drop { from { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } to { transform: translateY(260%); opacity: 0; } }

.tp__info { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; padding: 0 8px 6px; }
.tp__side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tp__eye { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tp__side h3 { margin: 0; font-size: 24px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.tp__side p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
/* Four parallel lines: a faint track and a solid line that grows and shrinks with the value. */
.tp__lines { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.tp__line { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; column-gap: 12px; font-size: 12px; color: var(--muted); }
.tp__lbl b { display: block; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.tp__track { position: relative; height: 14px; }
.tp__track::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.16); }
.tp__track i { position: absolute; left: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--ink); }
/* Time of day: the line takes the pointer, with a dot on its leading edge and the five stops marked under it. */
.tp__line--time .tp__track { cursor: pointer; touch-action: none; }
.tp__knob { position: absolute; top: 7px; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.5); transition: transform .2s ease; }
.tp__knob:hover, .tp__knob:focus-visible, .tp.is-dragging .tp__knob { transform: scale(1.35); outline: none; }
.tp__ticks { grid-column: 2; position: relative; height: 16px; }
/* The part of the day under the dot (it only follows; the dot is what moves). */
.tp__now { position: absolute; top: 0; font-size: 11px; font-weight: 500; color: var(--ink); white-space: nowrap; }
/* Play / pause: a round button in the scene's bottom left corner. */
.tp__play { position: absolute; left: 12px; bottom: 12px; z-index: 2; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(20,18,16,.92); color: #f3efe9; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: transform .2s ease, background-color .2s ease; }
.tp__play:hover, .tp__play:focus-visible { background: #000; transform: scale(1.08); }
.tp__play svg { width: 12px; height: 12px; fill: currentColor; }
.tp__play .i-play, .tp__play.is-paused .i-pause { display: none; }
.tp__play.is-paused .i-play { display: block; }
@media (max-width: 760px) {
  .tp__info { grid-template-columns: 1fr; gap: 18px; padding: 0 4px 4px; }
  .tp__line { grid-template-columns: 78px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .tp__sun, .tp__moon, .tp__knob { transition: none; } }
