/* The opening, reordered (Owner, 2026-11-11): key on the bar -> sealed scroll -> motto -> card -> oath -> banners.
   Loaded after styles.css; everything here overrides or adds. */
.intro { background: #120d09; }
.intro-stage { top: 50%; pointer-events: none; }

/* ---------- the bar top, seen slightly from above ---------- */
.ob { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ob-wall { position: absolute; left: 0; right: 0; top: 0; height: 30%;
  background: radial-gradient(circle at 20% 70%, rgba(255, 190, 110, .22) 0 14px, transparent 15px), radial-gradient(circle at 62% 55%, rgba(255, 150, 90, .16) 0 20px, transparent 21px),
    radial-gradient(circle at 85% 75%, rgba(255, 210, 140, .18) 0 11px, transparent 12px), linear-gradient(#0c0806, #231710); }
.ob-top { position: absolute; left: 0; right: 0; top: 24%; bottom: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .5) 0 2px, transparent 2px 70px),
    repeating-linear-gradient(90deg, rgba(255, 200, 140, .05) 0 1px, rgba(0, 0, 0, .1) 1px 3px, transparent 3px 7px),
    radial-gradient(ellipse at 50% 50%, rgba(255, 200, 130, .4), transparent 62%),
    linear-gradient(#3a2112 0%, #6d4222 35%, #8a5a2e 75%, #5a3418 100%); }
.ob-top::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, .55) 100%); }
.ob-rail { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: linear-gradient(#3a2210, #24130a 60%, #120a05); box-shadow: 0 -3px 0 #b88d3f, 0 -5px 8px rgba(0, 0, 0, .6); }
.ob-shadow { position: absolute; left: 50%; top: 54%; width: 190px; height: 24px; margin-top: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); opacity: 0; }
.ob-key { position: absolute; left: 50%; top: 52%; width: 64px; height: 176px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; visibility: hidden; -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, -50%) rotate(-72deg); }
.ob-key .brasskey { filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .55)); -webkit-mask-image: none; mask-image: none; }
.ob-key.beckon .brasskey { animation: obglint 1.5s ease-in-out infinite; }
@keyframes obglint { 0%, 100% { filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .55)); } 50% { filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .55)) drop-shadow(0 0 12px rgba(255, 225, 150, .85)) brightness(1.25); } }
.ob-spark { position: absolute; left: 50%; top: 80%; width: 46px; height: 46px; margin: -23px 0 0 -23px; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, #fff 0 3px, rgba(255, 240, 190, .8) 4px, transparent 9px), conic-gradient(from 0deg, transparent 0 40deg, rgba(255, 245, 200, .95) 45deg, transparent 50deg 130deg, rgba(255, 245, 200, .95) 135deg, transparent 140deg 220deg, rgba(255, 245, 200, .95) 225deg, transparent 230deg 310deg, rgba(255, 245, 200, .95) 315deg, transparent 320deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%); }

/* ---------- the scroll: aged parchment, wax seal ---------- */
.scroll { top: 70px; width: 306px; margin-left: -153px; filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .55)); }
.sc-roll { background: linear-gradient(to bottom, #4a2e12 0%, #b98a4a 28%, #e8cf9a 46%, #a87a3c 72%, #4a2e12 100%); box-shadow: 0 5px 8px -3px rgba(0, 0, 0, .55); }
.sc-paper { margin: -4px 4px; color: #3a2512;
  background:
    radial-gradient(ellipse 60px 34px at 18% 22%, rgba(150, 100, 40, .28), transparent 70%),
    radial-gradient(ellipse 80px 50px at 82% 38%, rgba(140, 90, 35, .22), transparent 70%),
    radial-gradient(ellipse 70px 40px at 30% 78%, rgba(120, 75, 30, .26), transparent 70%),
    radial-gradient(circle 14px at 70% 14%, rgba(110, 70, 25, .3), transparent 80%),
    radial-gradient(circle 9px at 12% 56%, rgba(110, 70, 25, .3), transparent 80%),
    repeating-linear-gradient(88deg, rgba(120, 85, 40, .07) 0 1px, transparent 1px 6px),
    radial-gradient(ellipse at center, #f4e6c4 0%, #e8d3a2 62%, #cfae72 100%);
  box-shadow: inset 0 12px 16px -10px rgba(60, 35, 5, .6), inset 0 -12px 16px -10px rgba(60, 35, 5, .6), inset 10px 0 14px -10px rgba(90, 55, 10, .55), inset -10px 0 14px -10px rgba(90, 55, 10, .55); }
.sc-paper::before { content: ''; position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .75; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='306' height='440'><filter id='f' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.035 .02' numOctaves='4' seed='9'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .38  0 0 0 0 .16  0 0 0 1.5 -.45'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>"); }
.sc-paper::after { content: ''; position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='306' height='440'><filter id='g' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.9 .06' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .28  0 0 0 0 .12  0 0 0 1.2 -.5'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"); }
.sc-body { height: 440px; padding: 30px 30px 0; display: block; }
.sc-crest { display: block; width: 82px; margin: 0 auto; opacity: 0; mix-blend-mode: multiply; filter: sepia(.35) contrast(1.05); }
.sc-pitch { position: absolute; left: 36px; right: 36px; top: 56%; margin: 0; transform: translateY(-50%); text-align: center; font-family: var(--font-body); font-style: italic; font-size: 22px; line-height: 1.3; color: #3a2512; }
.sc-pitch .w { display: inline-block; opacity: 0; }
.sc-sig { position: absolute; left: 0; right: 0; bottom: 56px; text-align: center; font-family: 'Pinyon Script', cursive; font-size: 19px; line-height: 1.2; color: #6b2a3e; white-space: nowrap; opacity: 0; }
.sc-flourish { position: absolute; left: 50%; bottom: 42px; width: 220px; height: 12px; margin-left: -110px; opacity: 0; }

/* the wax: glossy pink, cracks in two, crest pressed into it */
.sc-seal { width: 84px; height: 84px; background: none; box-shadow: none; display: block; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5)); }
.sc-seal::before { display: none; }
.sc-seal.beckon { animation: obseal 1.6s ease-in-out infinite; box-shadow: none; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5)); }
@keyframes obseal { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.08); filter: drop-shadow(0 0 12px rgba(255, 150, 190, .8)) brightness(1.1); } }
.sh { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 47% 53% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 34% 28%, #ffb3cf 0%, #f0508a 26%, #d12466 55%, #8f1040 100%);
  box-shadow: inset 0 -4px 7px rgba(70, 0, 25, .45), inset 0 3px 5px rgba(255, 255, 255, .5), inset 0 0 0 2px rgba(255, 150, 190, .3); }
.sh.wl { clip-path: polygon(0 0, 54% 0, 47% 20%, 57% 38%, 45% 60%, 55% 80%, 49% 100%, 0 100%); }
.sh.wr { clip-path: polygon(54% 0, 100% 0, 100% 100%, 49% 100%, 55% 80%, 45% 60%, 57% 38%, 47% 20%); }
.sh .pressed { position: absolute; inset: 11px; border-radius: 50%; background: radial-gradient(circle at 60% 66%, #c21d5c, #a3144a 70%); box-shadow: inset 0 3px 5px rgba(60, 0, 20, .55), 0 1px 1px rgba(255, 190, 215, .55); }
.sh img { position: relative; width: 50px; opacity: .85; mix-blend-mode: multiply; filter: contrast(1.3) drop-shadow(0 1px 0 rgba(255, 170, 205, .6)); margin-left: 0; }
.sh.wr img { margin-left: 0; }
.sc-seal .sh img { position: absolute; left: 17px; top: 17px; width: 50px; }
.sc-seal::after { content: ''; position: absolute; left: 20%; top: 14%; width: 26%; height: 14%; border-radius: 50%; background: rgba(255, 255, 255, .55); filter: blur(3px); transform: rotate(-30deg); pointer-events: none; }

/* ---------- the banners, after the oath ---------- */
.ceremony.banners-on { min-height: 0; }
.banners-on .oath-sign { display: none; }
.banners { position: relative; margin: 6px 0 0; padding: 0 2px 70px; display: flex; flex-direction: column; align-items: center; gap: 4px; overflow: hidden; }
.banners ~ .issued-rest { display: none; }
.bn-wrap { width: 100%; text-align: center; padding-bottom: 8px; }
.bn { position: relative; display: block; width: 292px; height: 50px; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 0; -webkit-tap-highlight-color: transparent;
  animation: bnin 1.9s cubic-bezier(.3, .6, .3, 1) calc(var(--i) * .45s) both, bnsway 4.5s ease-in-out calc(2.4s + var(--i) * .45s) infinite; }
.bn-cloth { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff4dc;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 94% 74%, 88% 100%, 12% 100%, 6% 74%, 0 100%);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .0) 0 26px, rgba(255, 255, 255, .08) 38px, rgba(0, 0, 0, .12) 52px, rgba(255, 255, 255, 0) 64px),
    linear-gradient(#e6417f, #b8185b 70%, #8f1042); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25); }
.bn::before { content: ''; position: absolute; left: -4px; right: -4px; top: -4px; height: 6px; border-radius: 3px; z-index: 2; background: linear-gradient(#e5c47c, #8c6a2a); box-shadow: 0 2px 3px rgba(0, 0, 0, .4); }
.bn-cloth::before { content: ''; position: absolute; left: 8px; right: 8px; top: 8px; bottom: 12px; border: 1px dashed rgba(255, 236, 190, .6); }
.bn-label { position: relative; font-family: var(--font-display); font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 1px rgba(60, 0, 25, .5); padding-bottom: 4px; }
.bn-dept .bn-cloth { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 26px, rgba(255, 255, 255, .08) 38px, rgba(0, 0, 0, .14) 52px, rgba(255, 255, 255, 0) 64px), linear-gradient(#34476e, #1e2a4a 70%, #141c33); }
.bn.locked .bn-cloth { filter: grayscale(1) brightness(.55); opacity: .75; }
.bn.locked .bn-label::before { content: ''; display: inline-block; width: 12px; height: 14px; margin-right: 8px; vertical-align: -2px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'><path d='M3 6V4a3 3 0 016 0v2' fill='none' stroke='%23d9d2c0' stroke-width='1.8'/><rect x='1' y='6' width='10' height='7.5' rx='1.5' fill='%23d9d2c0'/></svg>") no-repeat center / contain; }
.bn.live:active { transform: scale(.97); }
.bn.shake { animation: bnshake .5s ease; }
@keyframes bnshake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px) rotate(-1.5deg); } 40% { transform: translateX(7px) rotate(1.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes bnin {
  0% { opacity: 0; transform: translate(-60px, -820px) rotate(-14deg); }
  8% { opacity: 1; }
  45% { transform: translate(40px, -300px) rotate(10deg); }
  70% { transform: translate(-18px, -60px) rotate(-7deg) skewX(4deg); }
  85% { transform: translate(8px, 0) rotate(3deg) skewX(-2deg); }
  100% { opacity: 1; transform: none; } }
@keyframes bnsway { 0%, 100% { transform: rotate(0) skewX(0); } 25% { transform: rotate(.9deg) skewX(-1.2deg); } 75% { transform: rotate(-.9deg) skewX(1.2deg); } }
.bn-sub { margin: 4px 0 0; font-style: italic; font-size: 13.5px; color: var(--color-ink-soft); opacity: 0; animation: pagein .6s ease-out 2.4s both; }
.bn-note { height: 16px; margin: 2px 0 0; font-style: italic; font-size: 13px; color: var(--color-ink-soft); opacity: 0; transition: opacity .25s ease; }
.bn-note.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .bn { animation: none; } .bn-sub { animation: none; opacity: 1; } }

/* ---------- thumbprint signature ---------- */
/* The thumb zone sits in the bottom third (Hoober: 49% one-handed reach). */
.oath-thumb {
  position: fixed;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(226, 65, 127, .12) 0%, rgba(226, 65, 127, .04) 60%, transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.oath-ready .oath-thumb { opacity: 1; pointer-events: auto; }
.thumb-hint {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-pink);
  text-align: center;
}
.thumb-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-pink);
  opacity: .3;
  transition: transform .1s ease, opacity .1s ease, box-shadow .1s ease;
}
/* Instant feedback on touch-down (0.1s response time) */
.thumb-held .thumb-glow {
  transform: scale(1.08);
  opacity: .6;
  box-shadow: 0 0 24px rgba(226, 65, 127, .4);
}
.signed .oath-thumb { opacity: 0; pointer-events: none; }

/* ---------- fountain-pen member number ---------- */
/* Each character writes itself while the thumb is held. */
.fp-number { position: relative; }
.fp-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(4px);
  transition: none;
}
/* When written, each character appears with an ink-stroke animation. */
.fp-char.fp-written {
  opacity: 1;
  transform: none;
  animation: fp-write .22s ease-out both;
}
@keyframes fp-write {
  0% { opacity: 0; transform: translateY(4px) scaleY(.5); clip-path: inset(100% 0 0 0); }
  60% { clip-path: inset(30% 0 0 0); }
  100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
/* Reduced motion: instant reveal, no clip animation */
@media (prefers-reduced-motion: reduce) {
  .fp-char.fp-written { animation: none; opacity: 1; transform: none; }
}

/* ---------- Founding 200 countdown screen ---------- */
/* Appears before launch for the founding members, then fades into the race. */
.countdown-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}
.countdown-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #1a1520 0%, #2a1a2e 40%, #1e1428 100%);
  z-index: 0;
}
.countdown-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 60% at 50% 90%, rgba(226, 65, 127, .08) 0%, transparent 60%);
}
.countdown-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  animation: countdownFadeIn .8s ease-out both;
}
@keyframes countdownFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.countdown-crest {
  width: 72px;
  height: auto;
  margin-bottom: 24px;
  opacity: .9;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4));
}
.countdown-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-pink);
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(226, 65, 127, .3);
}
.countdown-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  color: var(--color-ink-soft);
  margin: 0 0 32px;
}
.countdown-timer {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: .05em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(255, 255, 255, .15);
}
.countdown-timer .ct-sep {
  font-size: 36px;
  opacity: .5;
  margin: 0 2px;
}
.countdown-note {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-ink-soft);
  margin: 32px 0 0;
  max-width: 260px;
  line-height: 1.5;
}
/* When the countdown hits zero, fade out and transition to the race. */
.countdown-go .countdown-content {
  animation: countdownGo .8s ease-in both;
}
@keyframes countdownGo {
  0% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .countdown-content { animation: none; opacity: 1; }
  .countdown-go .countdown-content { animation: none; opacity: 0; }
}
