/* Day 7, One line tighter.
   Its own piece: a bench, a sheet, a blade of gold light, and a dawn-paper card.
   Colours, type, space, motion and focus all come from generated/values.css.
   Nothing a person reads lives here. */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--hv-night);
}

body {
  color: var(--hv-ink);
  font-family: var(--hv-font-body);
  font-size: var(--hv-size-body);
  line-height: var(--hv-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: var(--hv-focus-width) solid var(--hv-gold-hi);
  outline-offset: var(--hv-focus-offset);
}

.bp {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.bp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- the world -------------------------------------------------------------------------------------- */

.bp-world {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 130% 80% at 50% 78%, rgba(12, 44, 34, 0.55) 0%, rgba(5, 3, 8, 0) 62%),
    linear-gradient(180deg, #050308 0%, #070a14 34%, #0b1a1c 66%, #0c2c22 100%);
}

.bp-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% 100%, rgba(63, 208, 217, 0.10) 0%, rgba(63, 208, 217, 0) 60%),
    linear-gradient(180deg, rgba(5, 3, 8, 0.6) 0%, rgba(11, 20, 32, 0.15) 48%, rgba(11, 26, 28, 0.5) 100%);
}

.bp-star {
  position: absolute;
  display: block;
  border-radius: var(--hv-radius-pill);
  background: var(--hv-paper-white);
  opacity: var(--o, 0.4);
  animation: bp-twinkle var(--dur, 8s) var(--hv-ease-breathe) infinite alternate;
}

.bp-horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 61%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(63, 208, 217, 0.28) 18%, rgba(191, 233, 255, 0.5) 50%, rgba(63, 208, 217, 0.28) 82%, transparent 100%);
  filter: blur(0.4px);
  box-shadow: 0 0 26px 2px rgba(63, 208, 217, 0.18);
}

.bp-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 39%;
  background: linear-gradient(180deg, rgba(12, 44, 34, 0.34) 0%, rgba(5, 10, 12, 0.9) 58%, #050308 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
}

.bp-water i {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159, 214, 255, 0.28), transparent);
  animation: bp-drift 11s var(--hv-ease-breathe) infinite alternate;
}
.bp-water i:nth-child(1) { top: 18%; opacity: 0.5; }
.bp-water i:nth-child(2) { top: 34%; left: 22%; right: 22%; opacity: 0.32; animation-delay: -3s; }
.bp-water i:nth-child(3) { top: 52%; left: 30%; right: 30%; opacity: 0.2; animation-delay: -6s; }

.bp-glow {
  position: absolute;
  left: 50%;
  top: 70%;
  width: 155%;
  height: 112%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse 52% 40% at 50% 50%, rgba(var(--hv-gold-rgb), 0.46) 0%, rgba(var(--hv-gold-rgb), 0.28) 24%, rgba(var(--hv-gold-rgb), 0.13) 48%, rgba(var(--hv-gold-rgb), 0) 72%),
    radial-gradient(ellipse 30% 22% at 50% 48%, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(2px);
}

.bp-bench {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -2%;
  height: 34%;
  background:
    linear-gradient(180deg, rgba(13, 16, 20, 0) 0%, rgba(13, 16, 20, 0.78) 16%, var(--hv-charcoal) 46%, var(--hv-night) 100%);
  transform: perspective(1000px) rotateX(1.6deg);
  transform-origin: 50% 100%;
}

.bp-bench::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(178deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 7px);
  opacity: 0.6;
}

.bp-bench::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  width: 78%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 40%, rgba(var(--hv-gold-rgb), 0.22), rgba(var(--hv-gold-rgb), 0) 70%);
}

.bp-layer .bp-world { display: none; }
.bp-layer .bp-bench { height: 26%; opacity: 0.8; }

/* ---- the blade -------------------------------------------------------------------------------------- */

.bp-blade {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: -30px;
  width: min(74%, 620px);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(243, 217, 160, 0) 0%, rgba(243, 217, 160, 0.55) 12%, var(--hv-gold-light) 50%, rgba(243, 217, 160, 0.55) 88%, rgba(243, 217, 160, 0) 100%);
  box-shadow: 0 0 14px rgba(243, 217, 160, 0.55), 0 0 42px rgba(243, 217, 160, 0.22);
  border-radius: var(--hv-radius-pill);
  animation: bp-lower var(--hv-dur-arrival) var(--hv-ease-silk) both;
  pointer-events: none;
}

.bp-blade::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 22px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(243, 217, 160, 0) 0%, rgba(243, 217, 160, 0.38) 70%, rgba(243, 217, 160, 0.55) 100%);
}

.bp-blade::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border-radius: var(--hv-radius-circle);
  background: var(--hv-pearl-fill);
  box-shadow: var(--hv-pearl-glow);
}

.bp-blade.is-lit { box-shadow: 0 0 26px rgba(255, 243, 214, 0.82), 0 0 70px rgba(243, 217, 160, 0.35); }
.bp[data-state="card"] .bp-blade { opacity: 0; animation: none; transition: opacity var(--hv-dur-cross) linear; }

/* ---- the top and the foot --------------------------------------------------------------------------- */

.bp-top {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hv-s4);
  padding: var(--hv-s4) var(--hv-gutter);
  font-family: var(--hv-font-mono);
  font-size: 11px;
  letter-spacing: var(--hv-tracking-label);
  text-transform: uppercase;
  color: var(--hv-ink-3);
}

.bp-back {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--hv-ink-2);
  text-decoration: none;
  font-family: var(--hv-font-body);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.bp-back:hover { color: var(--hv-gold-hi); }
.bp-back-arrow { color: var(--hv-gold-hi); font-size: 15px; }

.bp-brand { color: var(--hv-ink-3); white-space: nowrap; }
.bp-day { color: var(--hv-gold-hi); white-space: nowrap; font-size: 10px; }

.bp-footer {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--hv-s2) var(--hv-s5);
  padding: var(--hv-s5) var(--hv-gutter) var(--hv-s6);
  font-size: 12.5px;
  color: var(--hv-ink-3);
}
.bp-footer a { color: var(--hv-ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---- the page --------------------------------------------------------------------------------------- */

.bp-main {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--hv-wide);
  margin: 0 auto;
  padding: 0 var(--hv-gutter) var(--hv-s8);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.bp-hero {
  position: relative;
  width: calc(100% + var(--hv-gutter) * 2);
  margin: 0 calc(var(--hv-gutter) * -1);
  flex: 0 0 auto;
}
.bp-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -48px;
  height: calc(100% + 96px);
  background: radial-gradient(ellipse 72% 62% at 50% 40%, rgba(var(--hv-gold-rgb), 0.28) 0%, rgba(var(--hv-gold-rgb), 0) 72%);
  pointer-events: none;
  z-index: 0;
}

.bp-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background:
    radial-gradient(ellipse 120% 64% at 50% 0%, rgba(var(--hv-gold-rgb), 0.24) 0%, rgba(var(--hv-gold-rgb), 0.10) 46%, rgba(var(--hv-gold-rgb), 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.bp-window {
  position: relative;
  z-index: 1;
  height: clamp(316px, 39vh, 372px);
  overflow: hidden;
  background: #050308;
  border-bottom: 1px solid rgba(255, 220, 160, 0.28);
}

.bp-window-glass {
  position: absolute;
  inset: 10px 8px 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      var(--hv-gold-hi) 0%,
      var(--hv-gold) 22%,
      var(--hv-gold-mid) 50%,
      var(--hv-gold-deep) 68%,
      var(--hv-paper-gold-deep) 84%,
      var(--hv-plate-ink) 96%,
      var(--hv-night) 100%);
  box-shadow: inset 0 0 40px rgba(var(--hv-gold-rgb), 0.55);
}

.bp-window-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 11% at 32% 38%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 46% 9% at 68% 54%, rgba(255, 240, 210, 0.18) 0%, rgba(255, 240, 210, 0) 70%),
    radial-gradient(ellipse 120% 86% at 50% 48%, rgba(255, 255, 255, 0) 52%, rgba(58, 26, 12, 0.34) 100%);
}

.bp-window-sun {
  position: absolute;
  left: 50%;
  top: 66%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  border-radius: var(--hv-radius-circle);
  background: radial-gradient(circle, #fff 0%, var(--hv-gold-light) 22%, rgba(var(--hv-gold-rgb), 0.86) 44%, rgba(var(--hv-gold-rgb), 0.34) 62%, rgba(var(--hv-gold-rgb), 0) 76%);
  filter: blur(1.5px);
}

.bp-window-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 64% 46% at 50% 64%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 34%);
}

.bp-window-sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hv-teal) 24%, transparent) 0%, var(--hv-start) 42%, var(--hv-build) 100%);
}
.bp-window-sea::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 36%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--hv-gold-light), transparent);
  filter: blur(1px);
  box-shadow: 0 0 26px 3px rgba(var(--hv-gold-rgb), 0.7);
}

.bp-window-bar {
  position: absolute;
  top: 12px;
  bottom: 18px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--hv-plate-ink), var(--hv-night));
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
  opacity: 0.9;
}

.bp-window-sill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: linear-gradient(180deg, var(--hv-plate-ink), var(--hv-night));
  border-top: 1px solid rgba(var(--hv-gold-rgb), 0.6);
  box-shadow: 0 -3px 22px rgba(var(--hv-gold-rgb), 0.4);
}

.bp-window-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, 0.2) 47%, transparent 58%);
  mix-blend-mode: screen;
}

.bp-mote {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: var(--hv-radius-circle);
  background: var(--hv-gold-light);
  box-shadow: 0 0 8px rgba(var(--hv-gold-rgb), 0.8);
  opacity: var(--o, 0.6);
  animation: bp-mote var(--dur, 10s) var(--hv-ease-breathe) infinite alternate;
}

.bp-titleblock {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  margin: 12px auto 16px;
  padding: 0 var(--hv-gutter);
  transition: opacity var(--hv-dur) var(--hv-ease);
}

.bp-numeral {
  font-family: var(--hv-font-mono);
  font-size: 11px;
  letter-spacing: var(--hv-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--hv-gold-hi);
}

.bp-title {
  margin: 6px 0 0;
  font-family: var(--hv-font-display);
  font-size: clamp(34px, 8.4vw, 64px);
  font-weight: var(--hv-weight-bold);
  line-height: var(--hv-lh-display);
  letter-spacing: var(--hv-tracking-display);
  color: var(--hv-ink-strong);
  max-width: 14ch;
}

.bp-sub {
  margin: 10px 0 0;
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--hv-ink-2);
  max-width: 46ch;
}

.bp[data-state="play"] .bp-hero,
.bp[data-state="tighten"] .bp-hero,
.bp[data-state="run"] .bp-hero,
.bp[data-state="card"] .bp-hero {
  display: none;
}

.bp-stage {
  position: relative;
  width: min(100%, 780px);
  margin: 20px auto 0;
}

.bp-layer {
  min-height: 0;
  background: transparent;
}
.bp-layer .bp-main { padding: 0; max-width: none; }
.bp-layer .bp-stage { width: 100%; }
.bp-layer .bp-top,
.bp-layer .bp-footer,
.bp-layer .bp-hero { display: none; }
.bp-layer .bp-blade { top: -16px; }
.bp-layer .bp-stage { margin-top: 22px; }
.bp[data-state="play"] .bp-stage,
.bp[data-state="tighten"] .bp-stage { margin-top: 44px; }

/* ---- the sheet -------------------------------------------------------------------------------------- */

.bp-sheet {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 18px var(--hv-s5) var(--hv-s6);
  border-radius: var(--hv-radius-l);
  border: 1px solid rgba(243, 217, 160, 0.24);
  background:
    linear-gradient(155deg, rgba(255, 247, 228, 0.105) 0%, rgba(243, 217, 160, 0.045) 26%, rgba(10, 22, 24, 0.74) 62%, rgba(7, 10, 14, 0.9) 100%);
  box-shadow:
    0 32px 90px -46px rgba(0, 0, 0, 0.95),
    0 0 90px -34px rgba(243, 217, 160, 0.42),
    inset 0 1px 0 rgba(255, 243, 214, 0.22);
}

.bp-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--hv-gold-rgb), 0.20) 0%, rgba(var(--hv-gold-rgb), 0.06) 24%, transparent 42%);
  opacity: 1;
}

.bp-sheet > * { position: relative; z-index: 1; }

.bp-eyebrow {
  margin: 0 0 8px;
  font-family: var(--hv-font-mono);
  font-size: 10.5px;
  letter-spacing: var(--hv-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--hv-gold-hi);
}

/* ---- door ------------------------------------------------------------------------------------------- */

.bp-door-title {
  margin: 0 0 var(--hv-s4);
  font-family: var(--hv-font-display);
  font-size: clamp(21px, 4.2vw, 30px);
  font-weight: var(--hv-weight-semibold);
  line-height: var(--hv-lh-h2);
  letter-spacing: -0.015em;
  color: var(--hv-ink-strong);
}

.bp-tasks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hv-s2);
  margin: 0 0 8px;
}

.bp-task {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hv-line);
  border-radius: var(--hv-radius-m);
  cursor: pointer;
  transition: background 220ms var(--hv-ease), border-color 220ms var(--hv-ease), transform 220ms var(--hv-ease);
}
.bp-task:hover { background: rgba(243, 217, 160, 0.07); border-color: rgba(243, 217, 160, 0.32); }
.bp-task:active { transform: translateY(1px); }
.bp-task[aria-pressed="true"] {
  background: rgba(243, 217, 160, 0.1);
  border-color: rgba(243, 217, 160, 0.62);
  box-shadow: 0 0 24px -12px rgba(243, 217, 160, 0.5);
}

.bp-task-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: var(--hv-radius-circle);
  border: 1px solid rgba(243, 217, 160, 0.42);
  background: transparent;
}
.bp-task[aria-pressed="true"] .bp-task-dot {
  background: var(--hv-gold-hi);
  border-color: var(--hv-gold-hi);
  box-shadow: 0 0 12px rgba(243, 217, 160, 0.6);
}

.bp-task-name { font-size: 13.5px; line-height: 1.25; font-weight: var(--hv-weight-semibold); color: var(--hv-ink-strong); }
.bp-task-note-line { margin: 0 0 var(--hv-s4); min-height: 18px; font-size: 12.5px; color: var(--hv-ink-3); }

.bp-door-line {
  margin: 0 0 var(--hv-s5);
  font-size: 15px;
  line-height: 1.55;
  color: var(--hv-ink-2);
  max-width: 52ch;
}

.bp-hint, .bp-blade-note {
  margin: var(--hv-s3) 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--hv-ink-3);
}
.bp-blade-note { color: rgba(243, 217, 160, 0.62); }

/* ---- buttons ---------------------------------------------------------------------------------------- */

.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: var(--hv-radius-pill);
  border: 1px solid transparent;
  font-family: var(--hv-font-body);
  font-size: 15px;
  font-weight: var(--hv-weight-semibold);
  cursor: pointer;
  text-decoration: none;
  transition: background 220ms var(--hv-ease), border-color 220ms var(--hv-ease), color 220ms var(--hv-ease), transform 220ms var(--hv-ease), box-shadow 220ms var(--hv-ease);
}
.bp-btn:active { transform: translateY(1px); }
.bp-btn[disabled] { opacity: 0.42; cursor: not-allowed; transform: none; }

.bp-primary {
  color: var(--hv-ink-strong);
  background: linear-gradient(160deg, rgba(243, 217, 160, 0.18), rgba(243, 217, 160, 0.05) 58%, rgba(10, 22, 24, 0.4));
  border-color: rgba(243, 217, 160, 0.6);
  box-shadow: 0 0 30px -14px rgba(243, 217, 160, 0.55), inset 0 1px 0 rgba(255, 243, 214, 0.24);
}
.bp-primary:hover:not([disabled]) {
  background: linear-gradient(160deg, rgba(243, 217, 160, 0.26), rgba(243, 217, 160, 0.08) 58%, rgba(10, 22, 24, 0.4));
  border-color: var(--hv-gold-hi);
  box-shadow: 0 0 40px -14px rgba(243, 217, 160, 0.7), inset 0 1px 0 rgba(255, 243, 214, 0.34);
}

.bp-ghost {
  color: var(--hv-ink-2);
  background: transparent;
  border-color: var(--hv-line-2);
}
.bp-ghost:hover { color: var(--hv-ink-strong); border-color: rgba(243, 217, 160, 0.42); }

.bp-wide { width: 100%; }

.bp-linkish {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hv-ink-3);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bp-linkish:hover { color: var(--hv-gold-hi); }

/* ---- play ------------------------------------------------------------------------------------------- */

.bp-playhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hv-s3);
  margin-bottom: var(--hv-s2);
}

.bp-tasknow {
  font-family: var(--hv-font-mono);
  font-size: 10.5px;
  letter-spacing: var(--hv-tracking-label);
  text-transform: uppercase;
  color: var(--hv-gold-hi);
}

.bp-lights { display: inline-flex; gap: 6px; align-items: center; }
.bp-light {
  width: 7px;
  height: 7px;
  border-radius: var(--hv-radius-circle);
  border: 1px solid rgba(243, 217, 160, 0.35);
  background: transparent;
  transition: background 220ms var(--hv-ease), box-shadow 220ms var(--hv-ease);
}
.bp-light[data-state="lit"] { background: var(--hv-gold-hi); border-color: var(--hv-gold-hi); box-shadow: 0 0 10px rgba(243, 217, 160, 0.6); }
.bp-light[data-state="now"] { border-color: var(--hv-gold-hi); }

.bp-prompt {
  margin: 0 0 var(--hv-s3);
  font-size: clamp(17px, 3.6vw, 21px);
  line-height: 1.35;
  color: var(--hv-ink-strong);
  max-width: 44ch;
}

.bp-brief {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hv-line);
}

.bp-brief li { margin: 0; padding: 0; }

.spot-line {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: baseline;
  gap: 2px 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 8px 8px 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hv-line);
  border-left: 2px solid transparent;
  border-radius: 0;
  color: var(--hv-ink-2);
  font-family: var(--hv-font-body);
  font-size: 15px;
  line-height: 1.42;
  cursor: pointer;
  transition: background 200ms var(--hv-ease), color 200ms var(--hv-ease), border-color 200ms var(--hv-ease);
}
.spot-line:hover { background: rgba(255, 255, 255, 0.035); color: var(--hv-ink-strong); }
.spot-line:active { background: rgba(243, 217, 160, 0.07); }

.spot-line .ln {
  font-family: var(--hv-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--hv-ink-3);
}
.spot-line .txt { min-width: 0; }

.spot-line.is-safe {
  border-left-color: rgba(159, 214, 255, 0.5);
  background: rgba(159, 214, 255, 0.045);
}
.spot-line.is-safe .ln { color: var(--hv-ice); }

.spot-line.is-risk {
  border-left-color: rgba(243, 217, 160, 0.55);
  background: rgba(243, 217, 160, 0.055);
  color: var(--hv-ink);
}
.spot-line.is-risk .ln { color: var(--hv-gold-hi); }

.spot-line.is-found {
  border-left-color: var(--hv-gold-hi);
  background: rgba(243, 217, 160, 0.1);
  color: var(--hv-ink-strong);
  box-shadow: inset 0 0 0 1px rgba(243, 217, 160, 0.14);
}

.bp-tag {
  justify-self: end;
  font-family: var(--hv-font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hv-gold-hi);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 220ms var(--hv-ease);
}
.spot-line.is-loose .bp-tag { opacity: 1; }

.bp-note {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 48px;
  margin: var(--hv-s3) 0 0;
  padding: 8px 0 8px;
  border-top: 1px solid var(--hv-line);
  background: linear-gradient(180deg, rgba(9, 17, 19, 0.98) 0%, rgba(9, 17, 19, 0.94) 100%);
  box-shadow: 0 18px 24px -20px rgba(0, 0, 0, 0.85);
  font-size: 14px;
  line-height: 1.5;
  color: var(--hv-ink-3);
}
.bp-note[data-tone="good"] { color: var(--hv-gold-light); }
.bp-note[data-tone="safe"] { color: var(--hv-ice); }
.bp-note[data-tone="wait"] { color: var(--hv-wait); }

.bp-hintline {
  margin: var(--hv-s3) 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hv-gold-hi);
}

.bp-tighten {
  margin-top: var(--hv-s4);
  animation: bp-rise var(--hv-dur-beat) var(--hv-ease-silk) both;
}

.bp-playfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hv-s3);
  margin-top: var(--hv-s3);
}

/* ---- tighten ---------------------------------------------------------------------------------------- */

.bp-quote {
  margin: 0 0 var(--hv-s5);
  padding: 10px 14px;
  border-left: 2px solid var(--hv-gold-hi);
  background: rgba(243, 217, 160, 0.06);
  font-family: var(--hv-font-display);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: var(--hv-weight-medium);
  line-height: 1.3;
  color: var(--hv-gold-light);
}

.bp-tighten-sub {
  margin: 0 0 var(--hv-s4);
  font-size: 14px;
  color: var(--hv-ink-3);
}

.bp-options { display: grid; grid-template-columns: 1fr; gap: var(--hv-s2); margin-bottom: var(--hv-s5); }

.bp-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hv-line);
  border-radius: var(--hv-radius-m);
  cursor: pointer;
  transition: background 220ms var(--hv-ease), border-color 220ms var(--hv-ease), transform 220ms var(--hv-ease);
}
.bp-option:hover { background: rgba(243, 217, 160, 0.06); border-color: rgba(243, 217, 160, 0.3); }
.bp-option:active { transform: translateY(1px); }
.bp-option[aria-pressed="true"] {
  background: rgba(243, 217, 160, 0.1);
  border-color: rgba(243, 217, 160, 0.66);
  box-shadow: 0 0 26px -12px rgba(243, 217, 160, 0.45);
}

.bp-option-label {
  grid-column: 1;
  font-family: var(--hv-font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hv-ink-3);
}
.bp-option[aria-pressed="true"] .bp-option-label { color: var(--hv-gold-hi); }
.bp-option-text { grid-column: 1; font-size: 14.5px; line-height: 1.4; color: var(--hv-ink); }

.bp-check {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 18px;
  height: 18px;
  border-radius: var(--hv-radius-circle);
  border: 1px solid rgba(243, 217, 160, 0.35);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
}
.bp-option[aria-pressed="true"] .bp-check {
  background: var(--hv-gold-hi);
  border-color: var(--hv-gold-hi);
  color: #2a1d08;
}

.bp-runline { display: flex; flex-direction: column; gap: var(--hv-s3); }
.bp-runhint { margin: 0; font-size: 12px; color: var(--hv-ink-3); }

/* ---- the blade pass --------------------------------------------------------------------------------- */

.bp-cardscreen { width: 100%; display: flex; flex-direction: column; align-items: center; }

.bp-close {
  width: min(100%, 560px);
  margin: 0 0 var(--hv-s5);
  text-align: center;
}
.bp-close-kicker {
  margin: 0 0 6px;
  font-family: var(--hv-font-mono);
  font-size: 10px;
  letter-spacing: var(--hv-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--hv-gold-hi);
}
.bp-close-title {
  margin: 0;
  font-family: var(--hv-font-display);
  font-size: clamp(24px, 5vw, 34px);
  font-weight: var(--hv-weight-semibold);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--hv-ink-strong);
}
.bp-close-body {
  margin: var(--hv-s3) auto 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--hv-ink-2);
  max-width: 46ch;
}

.bp-pass {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(5, 3, 8, 0.62);
  animation: bp-passin 700ms var(--hv-ease) both;
}
.bp-pass-line {
  position: absolute;
  left: -20%;
  top: 50%;
  width: 140%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 243, 214, 0.9), transparent);
  box-shadow: 0 0 30px rgba(243, 217, 160, 0.6);
  animation: bp-sweep 700ms var(--hv-ease-grace) both;
}
.bp-pass-text {
  position: relative;
  font-family: var(--hv-font-mono);
  font-size: 11px;
  letter-spacing: var(--hv-tracking-label);
  text-transform: uppercase;
  color: var(--hv-gold-light);
  background: var(--hv-night);
  padding: 8px 12px;
  border: 1px solid rgba(243, 217, 160, 0.28);
  border-radius: var(--hv-radius-pill);
}

/* ---- the card --------------------------------------------------------------------------------------- */

.bp-card {
  --card-muted: rgba(22, 16, 30, 0.78);
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 22px 20px 20px;
  color: var(--hv-paper-ink);
  background:
    repeating-linear-gradient(92deg, rgba(22, 16, 30, 0.018) 0 1px, transparent 1px 5px),
    linear-gradient(152deg, #fcf9f1 0%, var(--hv-paper) 52%, var(--hv-paper-deep) 100%);
  border: 1px solid rgba(122, 90, 28, 0.28);
  border-radius: 4px;
  box-shadow:
    0 36px 80px -40px rgba(0, 0, 0, 0.9),
    0 0 70px -24px rgba(243, 217, 160, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: bp-card-in var(--hv-dur-slow) var(--hv-ease-silk) both;
}

.bp-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--hv-lit);
}

.bp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--hv-s3);
  margin-bottom: var(--hv-s3);
}

.bp-card-kicker {
  font-family: var(--hv-font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hv-paper-gold-deep);
}
.bp-card-title {
  margin: 4px 0 0;
  font-family: var(--hv-font-display);
  font-size: 26px;
  font-weight: var(--hv-weight-bold);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--hv-paper-ink);
}
.bp-card-subject { margin: 4px 0 0; font-size: 12.5px; color: var(--card-muted); }

.bp-stamp {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 2px solid var(--hv-paper-gold);
  border-radius: 2px;
  color: var(--hv-paper-gold-deep);
  font-family: var(--hv-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-5deg);
  opacity: 0.92;
  white-space: nowrap;
}
.bp-stamp[data-tone="holds"],
.bp-stamp[data-tone="cut"] { border-color: var(--hv-paper-gold); color: var(--hv-paper-gold-deep); }

.bp-card-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(22, 16, 30, 0.16);
}

.bp-card-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--hv-font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hv-paper-gold-deep);
}

.bp-card-old {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--card-muted);
  padding-left: 10px;
  border-left: 2px solid rgba(22, 16, 30, 0.2);
}

.bp-card-guard {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--hv-paper-gold);
  font-size: 14px;
  font-weight: var(--hv-weight-medium);
  line-height: 1.45;
  color: var(--hv-paper-ink);
}

.bp-card-new {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--hv-paper-gold);
  font-family: var(--hv-font-display);
  font-size: 17px;
  font-weight: var(--hv-weight-medium);
  line-height: 1.35;
  color: var(--hv-paper-ink);
}

.bp-runs { display: grid; grid-template-columns: 1fr; gap: 8px; }

.bp-run {
  padding: 9px 10px;
  border: 1px solid rgba(22, 16, 30, 0.14);
  border-radius: 3px;
  background: rgba(22, 16, 30, 0.035);
}
.bp-run.is-two {
  border-left: 3px solid var(--hv-paper-gold);
  background: rgba(184, 134, 47, 0.07);
}
.bp-run-label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--hv-font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hv-paper-gold-deep);
}
.bp-run-text { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--hv-paper-ink); }

.bp-card-rule {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--hv-paper-gold);
  background: rgba(184, 134, 47, 0.09);
}
.bp-card-rule p { margin: 0; font-size: 13.5px; line-height: 1.45; }

.bp-card-question {
  margin: 12px 0 0;
  font-family: var(--hv-font-display);
  font-size: 15.5px;
  font-weight: var(--hv-weight-medium);
  line-height: 1.35;
  color: var(--hv-paper-ink);
}
.bp-card-question::before { content: "“"; color: var(--hv-paper-gold); }
.bp-card-question::after { content: "”"; color: var(--hv-paper-gold); }

.bp-card-foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(22, 16, 30, 0.16);
  font-size: 11px;
  line-height: 1.5;
  color: var(--card-muted);
}
.bp-card-world { color: var(--hv-paper-gold-deep); }
.bp-card-next { margin-top: 2px; }

.bp-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hv-s2);
  width: min(100%, 560px);
  margin: var(--hv-s4) auto 0;
  justify-content: center;
}

.bp-own {
  width: min(100%, 560px);
  margin: var(--hv-s4) auto 0;
  padding: var(--hv-s4);
  border: 1px solid var(--hv-line-2);
  border-radius: var(--hv-radius-m);
  background: rgba(255, 255, 255, 0.03);
}
.bp-own h3 {
  margin: 0 0 6px;
  font-family: var(--hv-font-display);
  font-size: 19px;
  line-height: 1.25;
  color: var(--hv-ink-strong);
}
.bp-own p { margin: 0 0 var(--hv-s3); font-size: 13.5px; line-height: 1.55; color: var(--hv-ink-2); }
.bp-own pre {
  margin: 0 0 var(--hv-s3);
  padding: 12px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--hv-line);
  border-radius: var(--hv-radius-s);
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--hv-font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--hv-ink-2);
  white-space: pre-wrap;
}

.bp-copyrow { display: flex; flex-wrap: wrap; gap: var(--hv-s2); }

.bp-toast {
  min-height: 20px;
  margin: var(--hv-s2) 0 0;
  font-size: 12px;
  color: var(--hv-gold-hi);
}

/* ---- motion ----------------------------------------------------------------------------------------- */

@keyframes bp-twinkle {
  from { opacity: calc(var(--o, 0.4) * 0.45); }
  to { opacity: var(--o, 0.4); }
}
@keyframes bp-drift {
  from { transform: translateX(-1.4%); }
  to { transform: translateX(1.4%); }
}
@keyframes bp-lower {
  from { transform: translate(-50%, -22px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
@keyframes bp-rise {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes bp-card-in {
  from { transform: translateY(14px) scale(0.985); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes bp-sweep {
  from { transform: translateX(-42%); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateX(42%); opacity: 0; }
}
@keyframes bp-passin {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bp-mote {
  from { transform: translate3d(0, 0, 0); opacity: calc(var(--o, 0.6) * 0.4); }
  to { transform: translate3d(6px, -14px, 0); opacity: var(--o, 0.6); }
}

/* ---- reduced motion --------------------------------------------------------------------------------- */

.bp[data-reduced="true"] *,
.bp[data-reduced="true"] *::before,
.bp[data-reduced="true"] *::after {
  animation: none !important;
  transition: opacity var(--hv-dur-cross) linear !important;
}

/* ---- print ------------------------------------------------------------------------------------------ */

@media print {
  body { background: #fff; }
  .bp-world, .bp-top, .bp-footer, .bp-titleblock, .bp-close, .bp-card-actions, .bp-own, .bp-blade, .bp-note, .bp-toast, .bp-live { display: none !important; }
  .bp, .bp-main, .bp-stage, .bp-cardscreen { display: block; min-height: 0; padding: 0; margin: 0; background: none; }
  .bp-card { width: 100%; max-width: none; margin: 0; box-shadow: none; border: 1px solid var(--hv-paper-gold); animation: none; }
}

/* ---- wider ------------------------------------------------------------------------------------------ */

@media (max-width: 559px) {
  .bp-brand, .bp-blade-note { display: none; }
  .bp-day { font-size: 9px; letter-spacing: 0.1em; }
}

@media (min-width: 560px) {
  .bp-runs { grid-template-columns: 1fr 1fr; }
  .bp-options { grid-template-columns: 1fr 1fr; }
  .bp-card { padding: 26px 26px 24px; }
}

@media (min-width: 720px) {
  .bp-sheet { padding: var(--hv-s6) var(--hv-s6) var(--hv-s7); }
  .bp-main { padding-left: var(--hv-s6); padding-right: var(--hv-s6); }
  .spot-line { font-size: 16px; grid-template-columns: 34px 1fr auto; padding: 9px 10px 9px 12px; }
  .bp-titleblock { margin-top: var(--hv-s6); }
}

@media (min-width: 900px) {
  .bp-window { height: clamp(300px, 34vh, 360px); }
}

@media (min-width: 1024px) {
  .bp-main { padding-bottom: var(--hv-s9); }
  .bp-sheet { padding: 40px 44px 48px; }
}
