/* Structure of Atom: scene styles that belong to this chapter only (the kit is assets/xp/xp.css) */

/* the Crookes tube footage: a wide strip; phones see part of it and travel along it as you scroll */
.xp-tube .xp-tube-frame { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--xp-bar) + 10svh); height: 30svh; overflow: hidden; }
.xp-tube .xp-tube-track { position: absolute; top: 0; left: 0; height: 100%; aspect-ratio: 1280 / 406; will-change: transform; }
.xp-tube .xp-film { object-fit: cover; }
.xp-tube .xp-tube-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--void), transparent 8%, transparent 92%, var(--void)), linear-gradient(var(--void), transparent 14%, transparent 86%, var(--void)); }
@media (min-width: 900px) { .xp-tube .xp-tube-frame { top: 14svh; height: 50svh; left: var(--xp-g); right: var(--xp-g); } .xp-tube .xp-tube-track { left: 50%; translate: -50% 0; height: 100%; max-width: none; } }
html.xp-reduced .xp-tube .xp-tube-frame { position: relative; top: auto; height: 40svh; }

/* 1836 electrons for one proton */
.xp-sk-dots { position: absolute; inset: 0; }

/* gold foil counters */
.xp-gf-count { position: absolute; z-index: 3; left: var(--xp-g); right: var(--xp-g); top: 59svh; display: flex; gap: 28px; opacity: 0; transition: opacity .5s var(--xp-out); }
.xp-gf-count.on { opacity: 1; }
.xp-gf-count p { margin: 0; display: grid; gap: 4px; }
.xp-gf-count b { font-size: clamp(1.75rem, 8vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--bone); }
.xp-gf-count p:last-child b { color: var(--bone); }
@media (min-width: 900px) { .xp-gf-count { top: calc(var(--xp-bar) + 40px); right: auto; flex-direction: column; gap: 22px; } }
html.xp-reduced .xp-gf-count { position: relative; top: auto; opacity: 1; margin: 16px var(--xp-g) 0; }
/* penetration sketch */
.xp-rays .stop { fill: var(--xp-accent); }
.xp-sketch .ink.faint { opacity: .35; stroke-dasharray: 3 5; }
