/* scene-moves.css — Overview and Courses: hold to gather the points and release to burst them, and a word in points for each scene. */

/* scene-pull.css — the ring that closes while holding and the wave let go on release. */
html[data-moves] #cloud { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.sp-ring { position: fixed; left: -46px; top: -46px; z-index: 12; width: 92px; height: 92px; border-radius: 50%; border: 1px solid #b48a3a; opacity: 0; pointer-events: none; transition: opacity .25s ease; will-change: transform; }
.sp-ring.is-on { opacity: .85; }
.sp-wave { position: fixed; z-index: 12; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; border-radius: 50%; border: 1px solid rgba(180, 138, 58, .8); opacity: 0; pointer-events: none; transform: scale(.01); visibility: hidden; }
.sp-wave.is-on { visibility: visible; animation: sp-wave 1.1s cubic-bezier(.12, .7, .2, 1) both; }
@keyframes sp-wave { 0% { transform: scale(.01); opacity: var(--c, .8); } 100% { transform: scale(1); opacity: 0; } }

/* scene-words.css — the word is drawn in the point cloud; nothing to style. */

/* phones and tablets: controls big enough for a finger, with the look unchanged */
html[data-moves] #cloud { -webkit-tap-highlight-color: transparent; }
@media (max-width: 899.98px), (max-height: 500px) and (hover: none) {
  .uhead a, .uhead .shell-btn, .cta, .views button { position: relative; }
  .uhead a::after, .uhead .shell-btn::after, .cta::after, .views button::after { content: ""; position: absolute; }
  .uhead a::after { inset: -8px -5px; }
  .uhead .shell-btn::after { inset: -6px -3px; }
  .cta::after { inset: -13px -4px; }
  .views { row-gap: 12px; }
  .views button::after { inset: -6px 0; }
  .lede, .fact span { text-shadow: 0 0 10px #0d1813, 0 0 3px #0d1813; }
}

/* phones upright: the words size to the width, the longest word included, and the text clears the bar and arrows */
@media (max-width: 699.98px) {
  .uhead { padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); }
  .arrows { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  html .scene { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 62px); }
  .kicker { margin-bottom: 8px; line-height: 1.4; }
  .title { font-size: clamp(24px, 7.9vw, 34px); line-height: 1.02; }
  .lede { margin-top: 10px; font-size: clamp(15px, 4.1vw, 16px); line-height: 1.55; }
  .facts { margin-top: 12px; padding-top: 10px; gap: 8px 20px; }
  .fact b { font-size: 23px; }
  .fact span { margin-top: 4px; line-height: 1.3; }
  .cta { margin-top: 14px; }
  .views { margin-top: 12px; }
}
/* the shortest screens */
@media (max-width: 899.98px) and (max-height: 660px) {
  .counter { display: none; }
  .kicker { margin-bottom: 6px; font-size: 10px; letter-spacing: .12em; }
  .title { font-size: clamp(23px, 7.4vw, 30px); }
  .lede { margin-top: 8px; font-size: 14.5px; line-height: 1.45; }
  .facts { margin-top: 8px; padding-top: 8px; gap: 6px 16px; }
  .fact b { font-size: 20px; }
  .fact span { margin-top: 3px; font-size: 9px; letter-spacing: .08em; }
  .cta { margin-top: 10px; }
  .views { margin-top: 8px; }
}
/* the narrowest of those (iPhone SE): Figtree sets wider than the old serif, so the longest scenes need a touch less */
@media (max-width: 359.98px) and (max-height: 660px) {
  .title { font-size: 22.5px; }
  .lede { font-size: 14px; line-height: 1.4; }
}

/* phones on their side: heading on the left, reading on the right, and one thin line of chrome above and below */
@media (max-height: 500px) and (hover: none) {
  .uhead { padding: 8px max(16px, env(safe-area-inset-right)) 4px max(16px, env(safe-area-inset-left)); }
  .uhead nav a, .counter { display: none; }
  .uhead .shell-btn { margin-left: 0; }
  .arrows { right: max(16px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); }
  .arrows button { width: 42px; height: 42px; }
  html .scene { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); top: 46px; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 50px); max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto auto minmax(0, 1fr) auto; column-gap: 28px; }
  .kicker { grid-column: 1; grid-row: 1; margin-bottom: 6px; font-size: 10px; line-height: 1.3; letter-spacing: .12em; }
  .title { grid-column: 1; grid-row: 2; font-size: clamp(22px, 7vh, 27px); line-height: 1.04; }
  .views { grid-column: 1; grid-row: 3; align-self: start; margin-top: 10px; row-gap: 10px; }
  .cta { grid-column: 1; grid-row: 4; align-self: end; justify-self: start; margin-top: 8px; }
  .lede { grid-column: 2; grid-row: 1 / span 3; margin: 0; font-size: 15px; line-height: 1.5; }
  .facts { grid-column: 2; grid-row: 4; align-self: end; margin-top: 6px; padding-top: 6px; gap: 4px 18px; }
  .fact { display: flex; align-items: baseline; gap: 6px; }
  .fact b { font-size: 18px; }
  .fact span { margin-top: 0; font-size: 9px; letter-spacing: .08em; }
}

/* A swipe may begin on a pill or a link in the text; the browser must not take it for a scroll of its own. */
@media (hover: none) {
  html[data-moves] .scene a, html[data-moves] .scene button { touch-action: none; }
}
