/* =============================================================================
   Round 3 preview: the Village Station story band on /how-it-works/.
   Port of the #station-story band in Claude Design "How It Works.dc.html"
   (RULING-village-station-on-the-site-2026-09-29). Tokens from r3film.css.
   Prefixes: rf-hiw-story (the band), rf-story (the player). Round-3 only.
   ============================================================================= */

/* The Third key tile's link down to the band */
.rf-hiw-key__link { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 18px; }

/* ---- The band ----------------------------------------------------------------- */
/* The card's stars sit past its right edge, as drawn; clip so a 375px screen
   never gains a sideways scroll. */
.rf-hiw-story { overflow-x: clip; }
.rf-hiw-story__body { max-width: 44ch; }
.rf-hiw-story__small { font-size: 16px; }

/* ---- The player card ---------------------------------------------------------- */
.rf-story {
  position: relative;
  display: flex; flex-direction: column; gap: 22px;
  background: var(--paper); color: var(--ink);
  border-radius: 28px; padding: clamp(24px, 3vw, 36px);
}
.rf-story__stars { position: absolute; right: -18px; top: -34px; width: 92px; transform: rotate(8deg); }
.rf-story__head { display: flex; flex-direction: column; gap: 4px; }
.rf-story__title {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.02em;
}
.rf-story__meta { margin: 0; font-size: 16px; }

.rf-story__transport { display: flex; align-items: center; gap: 18px; }
.rf-story__play {
  flex: none; width: 72px; height: 72px; border-radius: 50%; border: 0;
  background: var(--blueberry); color: var(--oat);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.rf-story__play:hover { background: var(--blueberry-deep); }
.rf-story__play:focus-visible,
.rf-story__key:focus-visible,
.rf-story__words-toggle:focus-visible { outline: 3px solid var(--sunshine); outline-offset: 3px; }
.rf-story__icon-play { margin-left: 4px; }
.rf-story__icon-pause { display: none; }
.rf-story.is-playing .rf-story__icon-play { display: none; }
.rf-story.is-playing .rf-story__icon-pause { display: block; }

.rf-story__progress-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rf-story__play-label { font-family: var(--font-head); font-weight: 600; font-size: 19px; }
.rf-story__bar { height: 6px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.rf-story__bar-fill { height: 100%; width: 0; border-radius: 999px; background: var(--blueberry); }
.rf-story__time { font-size: 16px; }

.rf-story__prompt {
  background: var(--sunshine); border-radius: 16px; padding: 12px 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 19px;
}
.rf-story__prompt[hidden] { display: none; }

/* 3 x 4 dial pad. Only the choice keys are enabled. */
.rf-story__keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rf-story__key {
  min-height: 76px; border-radius: 16px; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); font: inherit; text-align: left;
  padding: 10px 12px; display: flex; flex-direction: column; justify-content: flex-start;
  align-items: flex-start; gap: 4px; cursor: default;
}
.rf-story__key--sym { background: rgba(36, 48, 71, .06); border-color: transparent; justify-content: center; align-items: center; }
.rf-story__key.is-on { cursor: pointer; }
.rf-story__key.is-picked { border: 2px solid var(--ink); }
.rf-story__key-top { display: flex; align-items: baseline; gap: 6px; }
.rf-story__digit { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1; }
.rf-story__letters { font-size: 11px; letter-spacing: .06em; color: rgba(36, 48, 71, .77); }
.rf-story__key-label { font-size: 15px; line-height: 1.3; text-wrap: pretty; }
.rf-story__key.is-on .rf-story__key-label { font-weight: 600; }
/* Once playing, the keys with no choice go quiet. */
.rf-story.is-started .rf-story__key:not(.is-on) .rf-story__digit { color: rgba(36, 48, 71, .45); }
.rf-story.is-started .rf-story__key:not(.is-on) .rf-story__letters { color: rgba(36, 48, 71, .4); }

.rf-story__trail { margin: 0; font-size: 16px; }
.rf-story__trail strong { font-family: var(--font-head); font-weight: 600; }

.rf-story__words { border-top: 1px solid var(--rule); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.rf-story__words-toggle {
  align-self: flex-start; border: 0; background: transparent; padding: 0; min-height: 44px;
  color: var(--blueberry-deep); font-family: var(--font-head); font-weight: 600; font-size: 18px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.rf-story__words-toggle:hover { color: var(--ink); }
.rf-story__missing { margin: 0; font-size: 16px; }
.rf-story__text { margin: 0; font-size: 17px; max-width: 62ch; }
.rf-story__missing[hidden],
.rf-story__text[hidden],
.rf-story__trail[hidden] { display: none; }

/* ---- The Station label and "1 is for the weather" (addendum 2026-09-30) ---- */
.rf-hiw-story__eyebrow { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.rf-hiw-wx {
  border-top: 1px solid rgba(250, 245, 238, .35); padding-top: 22px; margin-top: 6px;
  display: flex; flex-direction: column; gap: 12px; max-width: 44ch;
}
.rf-hiw-wx p { margin: 0; }
.rf-hiw-wx__h { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 23px; line-height: 1.2; }
.rf-hiw-wx__player { display: flex; align-items: center; gap: 14px; }
.rf-hiw-wx__play {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--sunshine); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.rf-hiw-wx__play:hover { background: var(--oat); }
.rf-hiw-wx__play:focus-visible { outline: 3px solid var(--sunshine); outline-offset: 3px; }
.rf-hiw-wx__icon-play { margin-left: 3px; }
.rf-hiw-wx__icon-pause, .rf-hiw-wx.is-playing .rf-hiw-wx__icon-play { display: none; }
.rf-hiw-wx.is-playing .rf-hiw-wx__icon-pause { display: block; }
.rf-hiw-wx__meta { display: flex; flex-direction: column; gap: 2px; }
.rf-hiw-wx__title { font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.rf-hiw-wx__sub { font-size: 16px; }
.rf-hiw-wx__words { font-size: 17px; }
