/* ===== THUNDER BOARD — SONS OF THUNDER ===== */
:root {
  --tb-breathe-dur: 4s;
  --tb-breathe: 4s ease-in-out infinite;
  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --black: #000000;
  --yellow: #FEF105;
  --red: #E30600;
  --white: #FFFFFF;
  --gray: #B0B0B0;
  --gray-dark: #141414;
  --gray-mid: #1F1F1F;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* Defensive: no image should blow past its container on a phone */
img, video {
  max-width: 100%;
}
/* Fixed-size tiles keep explicit height from their own rules + object-fit */

/* Form controls ≥16px: blocks iOS Safari focus-zoom that often fails to restore */
input, textarea, select {
  font-size: 16px;
  max-width: 100%;
}
button, a, .nav-item, .btn-primary, .btn-secondary, .btn-text-leader, .tappable-card {
  touch-action: manipulation;
}

html, body {
  height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: #FEF105;
  color: #000;
}

#app {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(96px + var(--safe-bottom));
}

#views {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.view { display: none; height: 100%; }
.view.active {
  display: block;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  animation: none;
}

/* HEADER — full wordmark (SONS + bolt + OF THUNDER) on top, centered, no clip.
   Never fixed-height crop. Bolt lives in the PNG only. */
.header {
  padding: calc(10px + env(safe-area-inset-top, 24px)) 12px 8px;
  text-align: center;
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  min-height: 0;
}
.logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  line-height: 0;
  overflow: visible;
  z-index: 2;
}
.logo,
.header .logo,
.header img.logo,
#header-logo {
  /* Authorized IMG_7697 stacked mark — SONS + RED OF THUNDER + tagline. Never crop height. */
  height: auto !important;
  width: auto !important;
  max-width: 72vw !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: relative;
  z-index: 2;
}
/* Overlay bolt layers permanently removed — bolt is in the logo PNG */
.header-bolt-live,
.logo-bolt-glimmer,
.logo-glimmer-wrap .header-bolt-live {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* VIEWS */
.view { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Snappy tab change from swipe — short fade, no slide theater */
.view.view-swipe-in {
  animation: viewSwipeIn 0.16s ease-out;
}
.view.view-swipe-in-next {
  animation: viewSwipeNext 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.view.view-swipe-in-prev {
  animation: viewSwipePrev 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes viewSwipeIn {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
@keyframes viewSwipeNext {
  from { opacity: 0.4; transform: translate3d(22%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes viewSwipePrev {
  from { opacity: 0.4; transform: translate3d(-22%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.nav-item.nav-peek {
  color: #FEF105 !important;
  text-shadow: 0 0 10px rgba(254,241,5,0.55);
}


.container {
  padding: var(--space-3) var(--space-4) var(--space-5);
  /* Clear fixed bottom nav + FAB so last actionable cards stay reachable */
  padding-bottom: calc(var(--space-5) + 72px + env(safe-area-inset-bottom, 0px));
  max-width: 640px;
  margin: 0 auto;
}

/* CARDS */
.card {
  background: var(--gray-dark);
  border: 1px solid #222;
  border-radius: 14px;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--yellow);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}
.meeting-date {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}
.meeting-time { font-size: 16px; color: #ddd; margin-bottom: 2px; }
.meeting-loc { font-size: 14px; color: var(--gray); margin-bottom: 16px; }

/* RSVP BUTTON */
.btn-rsvp {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-rsvp:active { transform: scale(0.97); }
.btn-rsvp.confirmed {
  background: transparent;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 20px rgba(254, 241, 5, 0.15);
  letter-spacing: 0.8px;
  font-size: 15px;
}
.btn-rsvp.lock-pulse {
  animation: rsvpLockPulse 0.38s cubic-bezier(0.2, 0.85, 0.25, 1);
}
@keyframes rsvpLockPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(227, 6, 0, 0); }
  40% { transform: scale(1.03); box-shadow: 0 0 28px rgba(227, 6, 0, 0.55), 0 0 10px rgba(254, 241, 5, 0.28); }
  100% { transform: scale(1); box-shadow: 0 0 16px rgba(254, 241, 5, 0.12); }
}

/* Shared selection glow — used across key actions */
.tb-glow-hit {
  animation: tbGlowHit 0.38s cubic-bezier(0.2, 0.85, 0.25, 1) 1;
}
.tb-glow-hit-yellow {
  animation: tbGlowHitYellow 0.38s cubic-bezier(0.2, 0.85, 0.25, 1) 1;
}
@keyframes tbGlowHit {
  0% { box-shadow: 0 0 0 rgba(227, 6, 0, 0); }
  40% { box-shadow: 0 0 28px rgba(227, 6, 0, 0.65), 0 0 8px rgba(254, 241, 5, 0.25); }
  100% { box-shadow: 0 0 0 rgba(227, 6, 0, 0); }
}
@keyframes tbGlowHitYellow {
  0% { box-shadow: 0 0 0 rgba(254, 241, 5, 0); }
  40% { box-shadow: 0 0 26px rgba(254, 241, 5, 0.7); }
  100% { box-shadow: 0 0 0 rgba(254, 241, 5, 0); }
}
.nav-item.tb-glow-hit-yellow {
  animation: tbNavGlow 0.36s cubic-bezier(0.2, 0.85, 0.25, 1) 1;
}
@keyframes tbNavGlow {
  0% { text-shadow: none; filter: none; }
  40% { text-shadow: 0 0 14px rgba(254, 241, 5, 0.85); filter: drop-shadow(0 0 6px rgba(254, 241, 5, 0.5)); }
  100% { text-shadow: none; filter: none; }
}
.rsvp-status {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--yellow);
  font-weight: 500;
  /* Soft presence — still on shared breathe, not stadium neon */
  text-shadow:
    0 0 4px rgba(254, 241, 5, 0.35),
    0 0 10px rgba(254, 241, 5, 0.18);
  filter: drop-shadow(0 0 3px rgba(254, 241, 5, 0.25));
  animation: rsvpStatusBreathe var(--tb-breathe);
  animation-delay: 0s;
  will-change: opacity, filter;
}
.rsvp-status.hidden { display: none; }
.rsvp-status:not(.hidden) {
  animation: rsvpStatusBreathe var(--tb-breathe) !important;
  color: var(--yellow) !important;
  text-shadow:
    0 0 4px rgba(254, 241, 5, 0.4),
    0 0 12px rgba(254, 241, 5, 0.2) !important;
  filter: drop-shadow(0 0 3px rgba(254, 241, 5, 0.28)) !important;
}
@keyframes rsvpStatusBreathe {
  0%, 100% {
    opacity: 0.82;
    filter: drop-shadow(0 0 2px rgba(254, 241, 5, 0.15));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(254, 241, 5, 0.35));
  }
}


/* SECTIONS */
.section-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  color: #888; text-transform: uppercase;
  margin: var(--space-5) 0 var(--space-3);
}
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-4); gap: 12px;
}
.section-header h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }

/* BUTTONS */
.btn-primary, .btn-secondary {
  border: none; border-radius: 8px; font-weight: 700;
  cursor: pointer; transition: opacity 0.15s;
}
.btn-primary {
  width: 100%; background: var(--red); color: white;
  padding: 14px; font-size: 15px; margin-top: 12px;
}
.btn-secondary {
  background: transparent; color: var(--yellow);
  border: 1px solid #444; padding: 8px 14px; font-size: 13px;
}
.btn-secondary:active { opacity: 0.7; }

/* FEED / ANNOUNCEMENTS */
.feed { display: flex; flex-direction: column; gap: 12px; }
.announcement-card {
  background: var(--gray-dark); border-radius: 12px;
  padding: 14px 16px; border-left: 3px solid var(--yellow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  display: block;
  border-top: none;
  border-right: none;
  border-bottom: none;
}
.announcement-card:active {
  transform: scale(0.985);
  background: #161616;
}
.announcement-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #fff;
  animation: none;
  text-shadow: none;
}
.announcement-card p { font-size: 13px; color: #aaa; line-height: 1.4; }

/* BROTHERS */
.brothers-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.brother-card {
  background: var(--gray-dark); border-radius: 14px; overflow: hidden;
  text-align: center; border: 1px solid #252525;
  display: block; width: 100%; padding: 0; margin: 0;
  font: inherit; color: inherit; appearance: none; -webkit-appearance: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.brother-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: var(--yellow); letter-spacing: -1px;
}
.brother-photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.brother-info { padding: 12px 10px 16px; }
.brother-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  animation: brotherNamePulse var(--tb-breathe);
  will-change: opacity, text-shadow;
}
@keyframes brotherNamePulse {
  0%, 100% {
    opacity: 0.92;
    text-shadow: 0 0 0 transparent;
    color: #fff;
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 6px rgba(254, 241, 5, 0.95),
      0 0 14px rgba(254, 241, 5, 0.75),
      0 0 28px rgba(254, 241, 5, 0.45);
    color: #FEF105;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brother-name { animation: none !important; text-shadow: none !important; }
}
.brother-bio {
  font-size: 12px; color: #9a9a9a; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* EVENTS */
.events-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.event-item {
  display: flex; gap: 14px; background: var(--gray-dark);
  border-radius: 12px; padding: 14px; align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.12s ease;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  border: none;
}
.event-item:active {
  transform: scale(0.985);
  background: #161616;
}
.event-date-box {
  width: 48px; height: 48px; background: #111; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.event-month {
  font-size: 10px;
  font-weight: 700;
  color: #FEF105;
  letter-spacing: 0.5px;
  animation: brotherNamePulse var(--tb-breathe);
  will-change: opacity, text-shadow;
}
.event-day {
  font-size: 18px;
  font-weight: 800;
  color: #FEF105;
  animation: brotherNamePulse var(--tb-breathe);
  will-change: opacity, text-shadow;
}
@media (prefers-reduced-motion: reduce) {
  .event-month,
  .event-day {
    animation: none !important;
    text-shadow: 0 0 8px rgba(254, 241, 5, 0.5) !important;
    color: #FEF105 !important;
  }
}
.event-details h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.event-details p { font-size: 13px; color: var(--gray); }

.next-mission .mission-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.next-mission .mission-detail { font-size: 14px; color: var(--gray); }

/* Past Gatherings — tight thumbnail grid (Brothers-style) */
.media-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}
.media-feed .empty-state,
.media-feed .empty-memories-cta {
  grid-column: 1 / -1;
}
.media-feed .empty-state {
  grid-column: 1 / -1;
}
.media-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-dark);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid #252525;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  display: block;
}
.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.media-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 28px;
  pointer-events: none;
}
.media-thumb-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Full-screen memory viewer */
.memory-viewer {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.memory-viewer.hidden { display: none; }
.memory-viewer-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  padding-top: max(12px, env(safe-area-inset-top));
  z-index: 2;
  background: linear-gradient(rgba(0,0,0,0.7), transparent);
}
.memory-viewer-count {
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.5px;
}
.memory-viewer-close {
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  z-index: 20;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.memory-viewer-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 12px 72px;
  box-sizing: border-box;
}
.memory-viewer-stage img,
.memory-viewer-stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.memory-viewer-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  color: #ddd;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  z-index: 2;
}
.memory-viewer-caption:empty { display: none; }

.empty-state { text-align: center; padding: 32px 16px; color: var(--gray); font-size: 14px; }

/* ABOUT / CODE */
.about-container {
  text-align: center;
  /* More hides #main-header — logo needs its own safe-area clearance */
  padding-top: max(36px, calc(16px + env(safe-area-inset-top, 0px))) !important;
}
.about-logo {
  /* Strong but secondary to Home hero — ~96px */
  height: 96px;
  width: auto;
  max-width: 88vw;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.about-title {
  font-size: 18px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--yellow); margin-bottom: 16px; text-transform: uppercase;
}
.code-title { margin-top: 36px; }
.code-title-glow,
.about-container .code-title.code-title-glow,
h1.code-title-glow {
  /* Brand red fill + red glow — OF THUNDER energy, not a yellow chip */
  color: #E30600 !important;
  -webkit-text-fill-color: #E30600 !important;
  letter-spacing: 0.08em;
  animation: codeTitleGlow var(--tb-breathe) !important;
  animation-delay: 0s !important;
  will-change: text-shadow, opacity;
}
@keyframes codeTitleGlow {
  0%, 100% {
    color: #E30600;
    -webkit-text-fill-color: #E30600;
    opacity: 0.86;
    text-shadow:
      0 0 8px rgba(227, 6, 0, 0.7),
      0 0 20px rgba(227, 6, 0, 0.4),
      0 0 36px rgba(227, 6, 0, 0.2);
  }
  50% {
    color: #FF2A18;
    -webkit-text-fill-color: #FF2A18;
    opacity: 1;
    text-shadow:
      0 0 12px rgba(255, 50, 30, 1),
      0 0 28px rgba(227, 6, 0, 0.95),
      0 0 52px rgba(227, 6, 0, 0.55),
      0 0 80px rgba(227, 6, 0, 0.28);
  }
}
@media (prefers-reduced-motion: reduce) {
  .code-title-glow,
  .about-container .code-title.code-title-glow,
  h1.code-title-glow {
    animation: none !important;
    opacity: 1;
    filter: none;
  }
}
.about-text {
  font-size: 15px; line-height: 1.6; color: #ddd;
  text-align: left; max-width: 420px; margin: 0 auto 32px;
}
.code-list { text-align: left; max-width: 420px; margin: 0 auto 16px; }
.code-item { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #222; }
.code-item:last-child { border-bottom: none; }
.code-line { font-size: 15px; font-weight: 800; letter-spacing: 0.5px; color: var(--yellow); margin-bottom: 3px; }
.code-sub { font-size: 14px; color: #ccc; line-height: 1.4; }

/* Bolt break between The Code and Leadership */
.about-bolt-break {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 28px;
  padding: 4px 0;
}
.about-bolt-glow {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  /* Same rhythm as every other bolt in the app */
  animation: boltLive var(--tb-breathe);
  animation-delay: 0s;
  filter:
    drop-shadow(0 0 6px rgba(254, 241, 5, 0.85))
    drop-shadow(0 0 14px rgba(254, 241, 5, 0.5))
    drop-shadow(0 0 22px rgba(255, 160, 0, 0.35));
}
@media (prefers-reduced-motion: reduce) {
  .about-bolt-glow {
    animation: none !important;
    filter: drop-shadow(0 0 8px rgba(255, 196, 0, 0.5));
  }
}

.about-meta { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* BOTTOM NAV */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(62px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #0a0a0a; border-top: 1px solid #1a1a1a;
  display: flex; justify-content: space-around; align-items: center;
  z-index: 300 !important;
  pointer-events: auto !important;
  transform: none !important;
  opacity: 1 !important;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; color: #777; font-size: 10px; font-weight: 600;
  letter-spacing: 0.3px; padding: 10px 4px 8px; cursor: pointer; transition: color 0.2s;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-item svg { width: 22px; height: 22px; opacity: 0.85; }
.nav-item.active { color: var(--yellow); }

/* FLOATING THUNDER — character only, no yellow circle */
.thunder-fab {
  position: fixed;
  right: 12px;
  bottom: calc(88px + var(--safe-bottom));
  width: 60px;
  height: 60px;
  border-radius: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  z-index: 150;
  cursor: pointer;
  transition: transform 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.thunder-fab:active { transform: scale(0.92); }
.thunder-fab-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: none;
  animation: none;
}
.thunder-fab-aura {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254,241,5,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: boltLive var(--tb-breathe);
}
/* Legacy emoji bolt inside FAB — disabled when character asset is present */
.thunder-fab .bolt {
  display: none !important;
}

/* ===== UNIFIED BOLT GLOW =====
   All ⚡ marks share the same live pulse (boltLive / --tb-breathe),
   including the logo O-bolt overlay (logoBoltPulse, same 4s).
   FAB bolt stays black fill + yellow outer bloom.
*/
.bolt-glow,
.mission-bolt,
.welcome-bolt,
.ios-install-bolt,
.thunder-title .bolt,
.rsvp-status,
.bolt {
  color: var(--yellow, #fef105);
  text-shadow:
    0 0 6px rgba(254, 241, 5, 0.95),
    0 0 14px rgba(254, 241, 5, 0.55),
    0 0 24px rgba(255, 160, 0, 0.35);
  filter:
    drop-shadow(0 0 4px rgba(254, 241, 5, 0.85))
    drop-shadow(0 0 12px rgba(254, 241, 5, 0.5))
    drop-shadow(0 0 20px rgba(255, 160, 0, 0.3));
  animation: boltLive var(--tb-breathe);
  animation-delay: 0s;
}
.thunder-fab .bolt {
  color: #000;
  text-shadow: none;
  filter:
    drop-shadow(0 0 4px rgba(254, 241, 5, 1))
    drop-shadow(0 0 10px rgba(254, 241, 5, 0.75))
    drop-shadow(0 0 18px rgba(255, 160, 0, 0.5));
  animation: boltLive var(--tb-breathe);
  animation-delay: 0s;
}
@keyframes boltLive {
  0%, 100% {
    opacity: 0.72;
    filter: drop-shadow(0 0 2px rgba(254, 241, 5, 0.25));
    transform: scale(1);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(254, 241, 5, 0.85)) drop-shadow(0 0 4px rgba(255, 180, 0, 0.5));
    transform: scale(1.06);
  }
}
.mission-bolt {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
}
/* LOCKED: welcome official bolt (bolt-only.png) + shared boltLive pulse — never emoji */
.welcome-bolt {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ios-install-bolt {
  display: block;
  text-align: center;
  font-size: 28px;
  line-height: 1;
}
/* Must NOT use filter:!important — that freezes the glow and kills boltLive */
.about-bolt-glow {
  animation: boltLive var(--tb-breathe) !important;
  animation-delay: 0s !important;
  animation-duration: 4s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
  will-change: filter, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .bolt-glow,
  .mission-bolt,
  .welcome-bolt,
  .ios-install-bolt,
  .thunder-title .bolt,
  .bolt,
  .thunder-fab .bolt,
  .about-bolt-glow {
    animation: none !important;
  }
}

/* MODALS */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.88);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 200; opacity: 1;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal.hidden { display: none; }
.modal-content {
  background: #111; width: 100%; max-width: 500px;
  border-radius: 20px 20px 0 0; padding: 0 0 env(safe-area-inset-bottom);
  max-height: 85vh; overflow-y: auto;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid #222;
}
.modal-header h2 { font-size: 18px; font-weight: 700; }
.modal-close {
  background: none; border: none; color: #888; font-size: 28px;
  line-height: 1; cursor: pointer;
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.modal-body { padding: 20px; }
.modal-body input, .modal-body textarea {
  width: 100%; background: #1a1a1a; border: 1px solid #333;
  border-radius: 10px; padding: 14px; color: white; font-size: 16px;
  margin-bottom: 12px; font-family: inherit;
}
.modal-body textarea { resize: vertical; min-height: 80px; }
.file-label {
  display: block; text-align: center; padding: 14px;
  border: 1px dashed #444; border-radius: 10px; color: var(--yellow);
  margin-bottom: 14px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.file-label input { display: none; }
.photo-preview {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  background: #222; margin: 0 auto 16px; display: none;
}
.photo-preview.visible { display: block; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* THUNDER CHAT */
.thunder-modal .thunder-content {
  height: 78vh; max-height: 700px;
  display: flex; flex-direction: column; padding-bottom: 0;
}
.thunder-header { flex-shrink: 0; }
.thunder-title {
  font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px;
}
.thunder-title .bolt { color: var(--yellow); font-size: 20px; }
.thunder-messages {
  flex: 1; overflow-y: auto; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.thunder-msg {
  max-width: 92%; padding: 12px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.5;
}
.thunder-msg.system {
  background: #1a1a1a; color: #bbb; align-self: center;
  text-align: center; font-size: 13px; max-width: 100%;
}
.thunder-msg.user {
  background: var(--yellow); color: #000; align-self: flex-end;
  font-weight: 500; border-bottom-right-radius: 4px;
}
.thunder-msg.assistant {
  background: #1c1c1c; color: #eee; align-self: flex-start;
  border-bottom-left-radius: 4px; border: 1px solid #2a2a2a;
}
.thunder-msg .source {
  margin-top: 8px; font-size: 11px; color: #888;
  border-top: 1px solid #333; padding-top: 6px;
}
.thunder-msg .source span { color: var(--yellow); }
.thunder-input-row {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid #222; background: #0d0d0d;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.thunder-input-row input {
  flex: 1; background: #1a1a1a; border: 1px solid #333;
  border-radius: 22px; padding: 12px 16px; color: white; font-size: 16px;
}
.thunder-input-row button {
  background: var(--yellow); color: #000; border: none;
  border-radius: 22px; padding: 0 18px; font-weight: 700; font-size: 14px;
}

/* Thunder voice mode */
.thunder-voice-bar {
  padding: 0 16px 10px;
  text-align: center;
}
.thunder-voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
  padding: 14px 22px;
  border: 1px solid rgba(254, 241, 5, 0.35);
  border-radius: 999px;
  background: #111;
  color: #FEF105;
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: 18px;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(254, 241, 5, 0.12);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.thunder-voice-btn:active { transform: scale(0.97); }
.thunder-voice-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FEF105;
  box-shadow: 0 0 8px rgba(254, 241, 5, 0.7);
}
.thunder-voice-btn.is-listening {
  border-color: #E30600;
  color: #fff;
  box-shadow: 0 0 22px rgba(227, 6, 0, 0.35);
  animation: thunderListenPulse var(--tb-breathe);
}
.thunder-voice-btn.is-listening .thunder-voice-dot {
  background: #E30600;
  box-shadow: 0 0 10px rgba(227, 6, 0, 0.9);
}
.thunder-voice-btn.is-unsupported {
  border-color: #333;
  color: #888;
  box-shadow: none;
}
.thunder-voice-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.02em;
}
@keyframes thunderListenPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(227, 6, 0, 0.22); }
  50% { box-shadow: 0 0 22px rgba(227, 6, 0, 0.4); }
}
@media (prefers-reduced-motion: reduce) {
  .thunder-voice-btn.is-listening { animation: none; }
}


.hidden { display: none !important; }

/* ===== NAVIGATION IMPROVEMENTS ===== */
.bottom-nav {
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.nav-item {
  position: relative;
}

.nav-item.active {
  color: var(--yellow);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--yellow);
  border-radius: 0 0 3px 3px;
}

.nav-item span {
  font-weight: 600;
}

/* Make Thunder FAB always visible and high priority */

/* Ensure header stays out of the way on About */
#main-header {
  z-index: 40;
}

/* Countdown + Reminder */
.meeting-countdown {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fef105;
  letter-spacing: 0.04em;
  margin: 0.35rem 0 0.15rem;
  text-transform: uppercase;
}
.btn-reminder {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1.5px solid #fef105;
  color: #fef105;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
}
.btn-reminder:active { transform: scale(0.97); }
.btn-reminder.set {
  background: #fef105;
  color: #000;
}
.reminder-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #aaa;
  text-align: center;
}
.reminder-status.hidden { display: none; }

/* Admin announcements */
.admin-ann-list { margin-bottom: 20px; max-height: 240px; overflow-y: auto; }
.admin-ann-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  margin-bottom: 8px;
}
.admin-ann-text { flex: 1; }
.admin-ann-text strong { display: block; font-size: 14px; margin-bottom: 4px; color: #fff; }
.admin-ann-text span { font-size: 13px; color: #aaa; line-height: 1.35; }
.admin-ann-delete {
  background: transparent;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}
.admin-ann-delete:active { color: #ff4444; }
.admin-ann-form input,
.admin-ann-form textarea {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 8px;
  font-family: inherit;
}
.admin-zone { margin-top: 14px; padding-top: 14px; border-top: 1px solid #1a1a1a; }

/* Empty brothers invite */
.empty-brothers {
  text-align: center;
  padding: 48px 20px;
}
.empty-brothers-cta {
  display: block;
  width: 100%;
  background: #0a0a0a;
  border: 1px dashed #333;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.empty-brothers-cta:active {
  transform: scale(0.98);
  border-color: var(--yellow, #fef105);
  background: #111;
}
.empty-brothers-plus {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(254, 241, 5, 0.35);
  background: rgba(254, 241, 5, 0.08);
  color: var(--yellow, #fef105);
  font-size: 32px;
  font-weight: 300;
  line-height: 52px;
  text-align: center;
  opacity: 0.85;
}
.empty-brothers-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.empty-brothers-sub {
  font-size: 15px;
  color: #888;
  line-height: 1.5;
}

/* Next open seat in the Brothers grid (sits beside real profiles) */
.brother-slot-invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  background: #0a0a0a !important;
  border: 1.5px dashed #333 !important;
  padding: 20px 12px !important;
  cursor: pointer;
}
.brother-slot-invite:active {
  border-color: var(--yellow, #fef105) !important;
  background: #111 !important;
  transform: scale(0.98);
}
.brother-slot-plus {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(254, 241, 5, 0.4);
  background: rgba(254, 241, 5, 0.08);
  color: var(--yellow, #fef105);
  font-size: 30px;
  font-weight: 300;
  line-height: 48px;
  text-align: center;
  opacity: 0.9;
}
.brother-slot-copy {
  padding: 0 4px;
}
.brother-slot-title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}
.brother-slot-sub {
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1.35;
}
.brother-chair {
  background: #070707 !important;
  border: 1.5px dashed #3a3a3a !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.brother-chair-seat {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 60%, #141414 0%, #070707 70%);
}
.brother-chair-seat::before {
  content: "";
  width: 38%;
  height: 28%;
  border: 2px solid #555;
  border-bottom-width: 7px;
  border-radius: 8px 8px 3px 3px;
  box-shadow: 0 14px 0 -6px #3a3a3a;
}
.brother-chair-title {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #888;
  margin-bottom: 4px;
}
.brother-chair:active {
  border-color: #FEF105 !important;
  transform: scale(0.98);
}
.leader-tools { margin-top: 4px; }
.leader-tools.hidden { display: none; }
.admin-zone input, .admin-zone textarea,
#admin-events-modal input, #admin-events-modal textarea,
#admin-code-modal textarea {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 8px;
  font-family: inherit;
}

/* Display headers — Bebas Neue */
.section-title,
.about-title,
.meeting-date,
.meeting-countdown,
.card-label,
.code-line,
.section-header h1,
.event-month,
.event-day {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-title {
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--white);
  margin: 20px 0 12px;
}
.about-title {
  font-size: 28px;
  letter-spacing: 0.14em;
}
.meeting-date {
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: none; /* dates read better mixed case in Bebas still OK uppercase */
  text-transform: uppercase;
}
.meeting-countdown {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}
.card-label {
  font-size: 13px;
  letter-spacing: 0.16em;
}
.code-line {
  font-size: 20px;
  letter-spacing: 0.08em;
}
.section-header h1 {
  font-size: 26px;
  letter-spacing: 0.1em;
}
.btn-rsvp {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.14em;
  font-weight: 400;
}

.events-note {
  font-size: 14px;
  color: var(--gray);
  padding: 10px 14px;
  margin-bottom: 12px;
  border-left: 3px solid var(--yellow);
  background: var(--gray-dark);
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.events-note:active {
  transform: scale(0.985);
  background: #161616;
}
.events-note.hidden { display: none; }

.tappable-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.tappable-card:active {
  transform: scale(0.985);
}

/* Identity line under logo */
.identity-line {
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 4px 0 16px;
  opacity: 0.95;
}

/* Compact reminder */
.btn-reminder-compact {
  margin-top: 0.55rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* Sharpening Iron feed */
.iron-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.iron-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--gray-dark);
  border: 1px solid #222;
  border-left: 3px solid var(--yellow);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.15s, background 0.15s;
}
.iron-card:active {
  background: #1a1a1a;
  border-left-color: var(--red);
}
.iron-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.iron-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}
.iron-excerpt {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}
.iron-loading { padding: 16px 0; }

/* Activity tags */
.activity-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 16px;
  width: 100%;
}
.activity-tags span {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ccc;
  border: 1px solid #333;
  padding: 6px 10px;
  border-radius: 999px;
}

.about-text-2 { margin-top: 12px; }
.about-text em { color: var(--yellow); font-style: normal; font-weight: 600; }

.btn-text-leader {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: 1.5px solid #333;
  color: var(--white);
  font-family: var(--font-display);
  /* Just under 7-DAY REMINDER (0.8rem) — readable, still secondary */
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
}
.btn-text-leader:active {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: scale(0.98);
}

/* ===== OPENING SPLASH — zooms into the viewer ===== */
/* Opening splash — dramatic zoom into the room, hands off to welcome */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 1.05s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(1);
  opacity: 1;
  pointer-events: none;
  overflow: hidden;
}
.splash.splash-out {
  opacity: 0;
  /* Hard lean into the viewer — kicks the welcome domino */
  transform: scale(1.55);
}
.splash.splash-out .splash-inner {
  transform: scale(1.18);
  opacity: 0.35;
  transition:
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}
.splash-logo-wrap {
  position: relative;
  display: inline-block;
  max-width: min(82vw, 340px);
  margin: 0 auto 16px;
  /* Soft oval glow BEHIND the mark — never drop-shadow on the PNG
     (logo assets have opaque black pads; drop-shadow outlines that box) */
}
.splash-logo-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 115%;
  height: 90%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(254, 241, 5, 0.38) 0%,
    rgba(254, 241, 5, 0.14) 42%,
    rgba(227, 6, 0, 0.06) 62%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
  animation: splashAura 2.4s cubic-bezier(0.22, 1, 0.36, 1) 1;
}
.splash.splash-out .splash-logo-wrap::before {
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(1.12);
  transition: opacity 0.85s ease, transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.splash-mark,
.splash-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(82vw, 340px);
  height: auto;
  max-height: none;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 0 !important;
  background: transparent !important;
  /* Never glow the image box — only the oval ::before aura behind */
  filter: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  outline: none;
  animation: splashMarkSettle 2.4s cubic-bezier(0.22, 1, 0.36, 1) 1;
}
.splash-logo-wrap {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.splash img,
.header img.logo,
.logo-glimmer-wrap img,
.about-logo {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important; /* no drop-shadow on rectangular PNG bounds */
}
/* Bolt-region glimmer overlay on splash wordmark (same energy as Home) */
.splash-logo-bolt-glimmer {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: none !important;
  animation: none !important;
}
@keyframes splashLogoBoltStrike {
  0%, 100% { opacity: 0; background-position: 100% 0; }
  4% { opacity: 0.9; background-position: 60% 0; }
  8% { opacity: 0.35; background-position: 40% 0; }
  12% { opacity: 0.85; background-position: 20% 0; }
  18% { opacity: 0.25; background-position: 0% 0; }
  22%, 100% { opacity: 0; background-position: 0% 0; }
}

.splash.splash-done {
  display: none;
}
.splash-inner {
  text-align: center;
  animation: splashIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}
/* Splash mark sizing lives on .splash-logo above */
.splash-line {
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FEF105;
  margin: 0;
  text-shadow:
    0 0 8px rgba(254, 241, 5, 0.7),
    0 0 20px rgba(254, 241, 5, 0.4);
  animation: splashLineIn 0.75s ease-out 0.2s both;
}
@keyframes splashIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes splashMarkSettle {
  0% { transform: scale(0.9); opacity: 0.85; }
  45% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes splashAura {
  0% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.88); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes splashLineIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .splash, .splash-inner { animation: none; transition: opacity 0.25s ease; }
  .splash.splash-out { transform: none; }
  .splash-mark, .splash-line, .splash-logo-bolt-glimmer, .splash-logo-wrap::before { animation: none !important; }
}

/* ===== FIRST-LOAD WELCOME ===== */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.welcome.welcome-on {
  opacity: 1;
  pointer-events: auto;
}
.welcome.hidden { display: none; }
.welcome.welcome-out {
  opacity: 0;
  pointer-events: none;
}
.welcome-card {
  width: min(340px, 100%);
  background: #0a0a0a;
  border: 1px solid rgba(254, 241, 5, 0.28);
  border-radius: 14px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(227, 6, 0, 0.15),
    0 18px 48px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(254, 241, 5, 0.08);
  /* Starts large (continuing the splash zoom) then settles — seamless domino */
  transform: scale(1.14);
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.welcome.welcome-on .welcome-card {
  transform: scale(1);
  opacity: 1;
}
.welcome.welcome-out .welcome-card {
  transform: scale(0.96);
  opacity: 0;
}
.welcome-bolt {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  width: 72px;
  height: 72px;
  line-height: 0;
  /* pulse lives on the mark — same boltLive as the rest of the app */
  animation: boltLive var(--tb-breathe);
  filter:
    drop-shadow(0 0 6px rgba(254, 241, 5, 0.85))
    drop-shadow(0 0 16px rgba(254, 241, 5, 0.45))
    drop-shadow(0 0 28px rgba(255, 160, 0, 0.3));
}
.welcome-bolt-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  /* official bolt-only mark (through the O energy) — no box pad */
  background: transparent;
}
.welcome-title {
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: 26px;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.1;
}
.welcome-purpose {
  font-size: 14px;
  color: #b0b0b0;
  margin: 0 0 18px;
  line-height: 1.4;
}
.welcome-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  text-align: left;
}
.welcome-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  font-size: 14px;
  color: #e8e8e8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.35;
}
.welcome-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.welcome-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FEF105;
  box-shadow: 0 0 8px rgba(254, 241, 5, 0.7);
}
.welcome-list strong { color: #E30600; font-weight: 700; }
.welcome-gotit {
  display: inline-block;
  min-width: 120px;
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  background: #E30600;
  color: #fff;
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: 18px;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(227, 6, 0, 0.35);
}
.welcome-gotit:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .welcome, .welcome-card { transition: opacity 0.2s; }
  .welcome-card { transform: none; }
}


/* RSVP prompt */
.rsvp-prompt {
  font-size: 13px;
  color: #999;
  text-align: center;
  margin: 4px 0 10px;
  letter-spacing: 0.02em;
}
.rsvp-prompt.hidden { display: none; }

/* Last Fire — one memory between meetings */
.last-fire {
  margin: 8px 0 20px;
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
}
.last-fire.hidden { display: none; }
.last-fire .card-label {
  padding: 12px 14px 0;
  color: var(--yellow);
}
.last-fire-media {
  margin-top: 8px;
  max-height: 220px;
  overflow: hidden;
  background: #111;
}
.last-fire-media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}
.last-fire-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px 14px;
  font-size: 13px;
  color: #aaa;
}
.last-fire-cap {
  color: #e8e8e8;
  font-size: 14px;
  line-height: 1.35;
}

/* Confirmed RSVP button polish */
.btn-rsvp.confirmed {
  background: #1a1a1a;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 20px rgba(254, 241, 5, 0.15);
}

/* Install help card */
.install-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 6px;
  padding: 10px 12px;
  background: #111;
  border: 1px solid rgba(227, 6, 0, 0.4);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(227, 6, 0, 0.18),
    0 0 12px rgba(227, 6, 0, 0.28);
  animation: installPulse var(--tb-breathe);
}
@keyframes installPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(227, 6, 0, 0.18), 0 0 10px rgba(227, 6, 0, 0.25); }
  50% { box-shadow: 0 0 0 1px rgba(227, 6, 0, 0.28), 0 0 16px rgba(227, 6, 0, 0.38); }
}
.install-card-icon { font-size: 18px; line-height: 1; }
.install-card-body { flex: 1; min-width: 0; }
.install-card-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
}
.install-card-sub {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
  line-height: 1.3;
}
.install-card-btn {
  flex-shrink: 0;
  background: #E30600;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(227, 6, 0, 0.45);
}
.install-card-btn:active { opacity: 0.85; }
.install-modal-content { max-width: 420px; }
.install-modal-body { padding-bottom: 8px; }
.install-video {
  width: 100%;
  border-radius: 10px;
  background: #000;
  max-height: 70vh;
  object-fit: contain;
  /* hide native controls chrome */
  pointer-events: auto;
}
.install-video::-webkit-media-controls { display: none !important; }
.install-video::-webkit-media-controls-enclosure { display: none !important; }
/* LOCKED: tap-to-unmute when browser blocks autoplay-with-sound */
.install-video.needs-tap {
  outline: 1px solid rgba(254, 241, 5, 0.55);
  box-shadow: 0 0 12px rgba(254, 241, 5, 0.25);
}
.install-video.needs-tap::after {
  content: none;
}
.install-tap-hint {
  text-align: center;
  font-size: 11px;
  color: #666;
  margin: 8px 0 0;
}
.install-steps-static {
  margin-top: 14px;
  font-size: 13px;
  color: #ccc;
  line-height: 1.5;
}
.install-steps-static strong { color: #FEF105; }

/* Install CTA on More page — aligned with other utility cards */
.install-card-more {
  margin: 18px auto 12px;
  max-width: 420px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}
#view-about .more-tools {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Install card — INSTALL + HOW side by side */
.install-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  box-sizing: border-box;
  overflow: visible;
}
.install-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.install-card-actions {
  display: grid !important;
  grid-template-columns: 1fr 76px;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
.install-card-btn {
  width: 100% !important;
  min-width: 0;
  text-align: center;
  box-sizing: border-box;
}
.install-card-btn-secondary {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid #555 !important;
  box-shadow: none !important;
  font-weight: 700;
}
.install-card-btn-secondary:active { background: #1a1a1a !important; }
.install-card-tip {
  margin: 0;
  font-size: 10px;
  color: #777;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.35;
  word-break: break-word;
}

/* More page — quieter utility, Leadership at bottom */
.refresh-card-compact {
  margin: 10px auto 6px;
  max-width: 420px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.refresh-card-compact .refresh-app-btn {
  width: 100%;
}
.admin-zone-bottom {
  margin: 18px auto 12px;
  max-width: 420px;
  padding-top: 10px;
  border-top: 1px solid #1a1a1a;
}
.refresh-card-compact {
  margin: 12px auto 4px;
  max-width: 420px;
}
.admin-pin-note {
  font-size: 11px;
  color: #555;
  text-align: center;
  margin-top: 8px;
}
.btn-leadership {
  opacity: 0.72;
}
#gathering-alerts-card {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.about-meta {
  max-width: 420px;
  margin: 12px auto 0;
  text-align: center;
}
.install-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 200;
  max-width: 90vw;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #E30600;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 0 20px rgba(227, 6, 0, 0.35);
  pointer-events: none;
}
.install-toast.hidden { display: none; }

/* Live URL in install modal */
.install-live-link {
  display: block;
  margin: 14px 0 6px;
  padding: 14px 16px;
  text-align: center;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #FEF105;
  background: #111;
  border: 1px solid rgba(254, 241, 5, 0.45);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(254, 241, 5, 0.15);
}
.install-live-link:active {
  background: #1a1a1a;
  color: #fff;
}
.install-link-hint {
  margin: 0 0 12px;
  text-align: center;
  font-size: 12px;
  color: #888;
  line-height: 1.35;
}

/* New indicators */
.new-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: middle;
  color: #fff;
  background: #E30600;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(227, 6, 0, 0.45);
  animation: newBadgeIn 0.55s ease-out 1;
}
@keyframes newBadgeIn {
  0% { opacity: 0.4; box-shadow: 0 0 0 rgba(227, 6, 0, 0); transform: scale(0.92); }
  45% { opacity: 1; box-shadow: 0 0 16px rgba(227, 6, 0, 0.75); transform: scale(1.06); }
  100% { opacity: 1; box-shadow: 0 0 10px rgba(227, 6, 0, 0.45); transform: scale(1); }
}
.new-badge-card {
  margin: 0 0 8px 0;
  display: inline-block;
}
.new-badge-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  margin: 0;
}
.announcement-card.announcement-new,
.events-note.announcement-new,
.card-new {
  border-color: rgba(227, 6, 0, 0.55);
  box-shadow: 0 0 14px rgba(227, 6, 0, 0.2);
}
.announcement-card {
  position: relative;
}
.brother-card,
.media-thumb {
  position: relative;
}
.media-thumb.media-enter {
  animation: mediaEnter 0.28s ease-out both;
}
@keyframes mediaEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.thunder-fab.fab-hit {
  animation: fabHit 0.4s cubic-bezier(0.2, 0.85, 0.25, 1) 1;
}
@keyframes fabHit {
  0% { transform: scale(1); box-shadow: 0 4px 24px rgba(254, 241, 5, 0.5); }
  35% { transform: scale(1.12); box-shadow: 0 0 32px rgba(254, 241, 5, 0.85); }
  100% { transform: scale(1); box-shadow: 0 4px 24px rgba(254, 241, 5, 0.5); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-rsvp.lock-pulse,
  .new-badge,
  .media-thumb.media-enter,
  .thunder-fab.fab-hit,
  .tb-glow-hit,
  .tb-glow-hit-yellow,
  .nav-item.tb-glow-hit-yellow,
  
  .btn-rsvp:active,
  .empty-brothers-cta:active {
    transform: none;
  }
}
.nav-item {
  position: relative;
}
.nav-new-dot {
  position: absolute;
  top: 6px;
  right: 18%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E30600;
  box-shadow: 0 0 8px rgba(227, 6, 0, 0.7);
  pointer-events: none;
}


/* Brother full profile detail */
.brother-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.brother-card:active {
  transform: scale(0.97);
  border-color: #333;
}
.brother-detail {
  position: fixed;
  inset: 0;
  z-index: 4200;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 14px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: brotherDetailIn 0.2s ease;
}
.brother-detail.hidden { display: none; }
@keyframes brotherDetailIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.brother-detail-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: auto 0;
  max-height: none;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 18px;
  overflow: visible;
  text-align: center;
  animation: brotherPanelIn 0.22s ease;
  /* Photo + bio + QR must all be reachable — outer .brother-detail scrolls */
  flex-shrink: 0;
  padding-bottom: 12px;
  box-sizing: border-box;
}
@keyframes brotherPanelIn {
  from { transform: scale(0.92); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}
.brother-detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* HARD lock: profile detail photo is a small tile — never full-bleed */
.brother-detail-photo {
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  min-width: 88px !important;
  min-height: 88px !important;
  margin: 20px auto 0 !important;
  border-radius: 12px !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -1px;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.brother-detail-photo img {
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  border-radius: 12px !important;
  margin: 0 auto !important;
}
.brother-detail-name {
  font-family: var(--font-display, inherit);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 10px 18px 2px;
  color: #fff;
}
.brother-detail-bio {
  font-size: 14px;
  line-height: 1.45;
  color: #c8c8c8;
  padding: 0 18px 10px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 4.5em;
  overflow: hidden;
}

/* Info detail (announcements / events / mission) — centered card */
.info-detail {
  position: fixed;
  inset: 0;
  z-index: 4300;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  animation: infoDetailIn 0.2s ease;
}
.info-detail.hidden { display: none; }
@keyframes infoDetailIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.info-detail-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 80vh;
  overflow-y: auto;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 18px;
  padding: 28px 22px 28px;
  animation: infoPanelIn 0.22s ease;
  box-sizing: border-box;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
}
@keyframes infoPanelIn {
  from { transform: scale(0.94); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}
.info-detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.info-detail-label {
  font-family: var(--font-display, inherit);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin-bottom: 10px;
  padding-right: 40px;
  /* RESTORED: shared --tb-breathe with brother names / event months */
  animation: brotherNamePulse var(--tb-breathe) !important;
  will-change: opacity, text-shadow;
}
@media (prefers-reduced-motion: reduce) {
  .info-detail-label {
    animation: none !important;
    text-shadow: none !important;
  }
}
.info-detail-title {
  font-family: var(--font-display, inherit);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
  padding-right: 36px;
}
.info-detail-meta {
  font-size: 14px;
  color: #9a9a9a;
  margin-bottom: 16px;
  line-height: 1.4;
}
.info-detail-meta:empty { display: none; margin: 0; }
.info-detail-body {
  font-size: 16px;
  line-height: 1.55;
  color: #d0d0d0;
  white-space: pre-wrap;
  word-break: break-word;
}
.info-detail-body:empty { display: none; }

/* Gathering alerts toggle (More) */
.alerts-card {
  margin: 14px auto 0;
  padding: 14px;
  border-radius: 12px;
  background: #111;
  border: 1px solid #2a2a2a;
  max-width: 420px;
}
.alerts-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.alerts-card-title {
  font-family: var(--font-display, inherit);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 4px;
}
.alerts-card-sub {
  font-size: 13px;
  color: #9a9a9a;
  line-height: 1.35;
}
.alerts-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #777;
  line-height: 1.4;
  min-height: 0;
}
.alerts-hint:empty { display: none; }
.alerts-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}
.alerts-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.alerts-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #2a2a2a;
  border-radius: 30px;
  transition: background 0.2s, box-shadow 0.2s;
  border: 1px solid #3a3a3a;
}
.alerts-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.alerts-switch input:checked + .alerts-slider {
  background: #E30600;
  border-color: #E30600;
  box-shadow: 0 0 12px rgba(227, 6, 0, 0.35);
}
.alerts-switch input:checked + .alerts-slider:before {
  transform: translateX(22px);
}

/* ---------- Auth (minimal) ---------- */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-gate.hidden { display: none; }
.auth-card {
  width: 100%;
  max-width: 360px;
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 28px 20px 22px;
  text-align: center;
}
.auth-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 6px;
}
.auth-card .auth-sub {
  color: #999;
  font-size: 13px;
  margin: 0 0 18px;
  line-height: 1.4;
}
.auth-card input {
  width: 100%;
  box-sizing: border-box;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 16px;
  font-family: Inter, system-ui, sans-serif;
}
.auth-card input:focus {
  outline: none;
  border-color: #E8B923;
}
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.auth-error {
  color: #ff6b6b;
  font-size: 13px;
  min-height: 18px;
  margin: 4px 0 8px;
}
.auth-link-row {
  margin-top: 14px;
  font-size: 13px;
  color: #888;
}
.auth-link-row button {
  background: none;
  border: none;
  color: #E8B923;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}
#auth-gate #auth-password,
#auth-gate #auth-signup-btn,
#auth-gate #auth-forgot-btn,
#auth-gate #auth-hint,
.auth-gate-imin .auth-sub,
.auth-gate-imin #auth-password,
.auth-gate-imin #auth-hint,
.auth-gate-imin #auth-signup-btn,
.auth-gate-imin #auth-forgot-btn {
  display: none !important;
}
.auth-gate-imin .auth-link-row {
  color: transparent;
}
.auth-gate-imin .auth-link-row button {
  color: #777;
  font-weight: 500;
}
.auth-gate-imin #auth-magic-btn {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .auth-gate-imin #auth-magic-btn {
    animation: none !important;
    text-shadow: none !important;
  }
}
.auth-gate-imin #auth-title {
  color: #fff !important;
  animation: none !important;
  text-shadow: none !important;
  margin-bottom: 18px;
}
.auth-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  font-size: 12px;
  color: #aaa;
}
.auth-session-bar .auth-who {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ccc;
}
.auth-session-bar button {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid #333;
  color: #E8B923;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* ===== iOS / in-app install overlays (deluxe) ===== */
.ios-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.ios-install-overlay.hidden { display: none !important; }
.ios-install-panel {
  width: 100%;
  max-width: 420px;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 28px 22px 22px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(227, 6, 0, 0.25), 0 0 40px rgba(227, 6, 0, 0.12);
}
.ios-install-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ios-install-bolt {
  font-size: 36px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--yellow, #fef105);
  text-shadow:
    0 0 6px rgba(254, 241, 5, 0.95),
    0 0 14px rgba(254, 241, 5, 0.65),
    0 0 24px rgba(255, 160, 0, 0.4);
  filter:
    drop-shadow(0 0 4px rgba(254, 241, 5, 0.75))
    drop-shadow(0 0 12px rgba(254, 241, 5, 0.45));
}
.ios-install-title {
  margin: 0 0 10px;
  text-align: center;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: #fff;
}
.ios-install-sub {
  margin: 0 0 20px;
  text-align: center;
  color: #b0b0b0;
  font-size: 15px;
  line-height: 1.45;
}
.ios-install-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.ios-install-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #eee;
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 14px;
}
.ios-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E30600;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ios-install-steps strong { color: #FEF105; }
.ios-step-hint { color: #888; font-size: 13px; }
.ios-install-end {
  text-align: center;
  color: #FEF105;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
  text-shadow: 0 0 12px rgba(254, 241, 5, 0.45);
}
.ios-install-share {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #E30600;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(227, 6, 0, 0.35);
}
.ios-install-share:active { opacity: 0.9; }
.ios-install-gotit {
  width: 100%;
  border: 1px solid #333;
  border-radius: 10px;
  background: transparent;
  color: #ccc;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  cursor: pointer;
}
.ios-install-gotit:active { background: #111; }


/* ===== Refresh App (More page, above Leadership) ===== */
.refresh-card {
  margin: 10px 0 0;
  padding: 12px 12px 10px;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
}
.refresh-card-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 4px;
}
.refresh-card-sub {
  font-size: 12px;
  color: #888;
  margin: 0 0 12px;
  line-height: 1.35;
}
.refresh-app-btn {
  width: 100%;
  border: 1px solid rgba(254, 241, 5, 0.45);
  border-radius: 9px;
  background: #111;
  color: #FEF105;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  cursor: pointer;
}
.refresh-app-btn:active {
  background: #1a1a1a;
  color: #fff;
}


/* ===== Living Home phases ===== */
.next-meeting.phase-soon .card-label,
.next-meeting.phase-tonight .card-label,
.next-meeting.phase-live .card-label {
  color: var(--yellow);
  letter-spacing: 0.12em;
}
.next-meeting.phase-tonight,
.next-meeting.phase-live {
  border-color: rgba(254, 241, 5, 0.35);
  box-shadow: 0 0 24px rgba(254, 241, 5, 0.08);
}
.next-meeting.phase-live .meeting-countdown {
  color: var(--yellow);
}
.meeting-countdown {
  transition: color 0.25s ease;
}

/* ===== Mission Mode ===== */
.next-mission.mission-mode {
  border: 1px solid rgba(227, 6, 0, 0.35);
  background: linear-gradient(180deg, #120a0a 0%, #0a0a0a 100%);
  padding: 16px 16px 14px;
  position: relative;
}
.next-mission.mission-mode .mission-mode-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.next-mission.mission-mode .mission-bolt {
  color: var(--yellow);
  font-size: 16px;
  line-height: 1;
  text-shadow:
    0 0 4px rgba(254, 241, 5, 0.95),
    0 0 10px rgba(254, 241, 5, 0.65),
    0 0 18px rgba(255, 160, 0, 0.4);
  filter:
    drop-shadow(0 0 3px rgba(254, 241, 5, 0.7))
    drop-shadow(0 0 8px rgba(254, 241, 5, 0.4));
}
.thunder-title .bolt {
  color: var(--yellow, #fef105);
  text-shadow:
    0 0 4px rgba(254, 241, 5, 0.95),
    0 0 10px rgba(254, 241, 5, 0.65),
    0 0 18px rgba(255, 160, 0, 0.4);
}
.next-mission.mission-mode .card-label {
  margin: 0;
  color: #E30600;
  letter-spacing: 0.14em;
}
.next-mission.mission-mode .mission-title {
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: #fff;
  margin: 4px 0 6px;
  line-height: 1.15;
}
.next-mission.mission-mode .mission-detail {
  font-size: 14px;
  color: #aaa;
  line-height: 1.4;
  margin-bottom: 10px;
}
.next-mission.mission-mode .mission-cta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--yellow);
  text-transform: uppercase;
}
.next-mission.mission-mode:active {
  transform: scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  .next-meeting.phase-tonight,
  .next-meeting.phase-live {
    box-shadow: none;
  }
  .next-mission.mission-mode:active {
    transform: none;
  }
}

/* ===== THUNDER BOARD — ALIVE ===== */
@keyframes countTick {
  0% { transform: scale(1); opacity: 0.7; }
  40% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}


@keyframes chipEnter {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}




/* Last Fire — field log, not social post */
.last-fire {
  margin: 18px 0 0;
  padding: 14px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  cursor: pointer;
}
.last-fire.hidden { display: none; }
.last-fire-label {
  color: var(--yellow, #fef105) !important;
  margin-bottom: 10px;
}
.last-fire-media {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  margin-bottom: 10px;
  max-height: 200px;
}
.last-fire-media img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
}
.last-fire-media:empty { display: none; }
.last-fire-cap {
  font-size: 14px;
  line-height: 1.45;
  color: #ddd;
  font-weight: 500;
}

/* Home mission compact */
.home-mission {
  margin: 14px 0 0;
  padding: 14px;
  cursor: pointer;
}
.home-mission.hidden { display: none; }
.home-mission .mission-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 6px 0 4px;
}
.home-mission .mission-detail {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}

/* RSVP confirmed status — display type, soft breathe (not full boltLive intensity) */
.rsvp-status {
  font-family: var(--font-display, 'Bebas Neue', Impact, sans-serif);
  font-size: 20px;
  letter-spacing: 0.06em;
  margin-top: 14px;
  animation: rsvpStatusBreathe var(--tb-breathe) !important;
  animation-delay: 0s !important;
}

/* ===== MORE PAGE TOOLS — single centered column ===== */
.more-tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 18px auto 16px;
  box-sizing: border-box;
  text-align: left;
}
.more-tools > .install-card,
.more-tools > .alerts-card,
.more-tools > .refresh-card,
.more-tools > .admin-zone {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.more-tools .install-card-more {
  margin: 0;
}
.more-tools .alerts-card {
  margin: 0;
}
.more-tools .refresh-card-compact {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.more-tools .refresh-app-btn {
  width: 100%;
  box-sizing: border-box;
}
.more-tools .admin-zone-bottom {
  margin: 6px 0 0;
  padding-top: 12px;
  border-top: 1px solid #1a1a1a;
}
.more-tools .btn-leadership {
  opacity: 0.72;
  width: 100%;
  box-sizing: border-box;
}
/* Hide any leftover meeting meta if cached HTML injects it */
#view-about .about-meta,
#about-meeting-line,
#about-venue-line {
  display: none !important;
}

/* Final More polish — kill competing margins inside more-tools */
.about-container .more-tools .admin-zone {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid #1a1a1a;
}
.about-container .more-tools .refresh-card {
  margin-top: 0;
  margin-bottom: 0;
}
.about-container .more-tools .alerts-card {
  margin-top: 0;
  margin-bottom: 0;
}
.about-container .about-text {
  margin-bottom: 18px;
}
.about-container .about-text-2 {
  margin-bottom: 22px;
}
.about-container .code-title {
  margin-top: 8px;
}
.about-container .about-bolt-break {
  margin: 4px auto 20px;
}
.about-container .more-tools {
  gap: 14px;
  margin-top: 4px;
}
.about-container .install-card-tip {
  font-size: 10px;
  color: #666;
  margin-top: 2px;
}
/* Leadership button quieter so it doesn't compete with Install */
.about-container .btn-leadership {
  border-color: #2a2a2a;
  color: #c9c9c9;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.about-container .btn-leadership:active {
  color: #fff;
}


/* =========================================================
   VISUAL MASTER POLISH — single source for eye-level quality
   Does not change features; tightens hierarchy + rhythm only
   ========================================================= */

/* Unified card surface */
.card,
.announcement-card,
.iron-card,
.alerts-card,
.install-card,
.brother-card,
.next-mission,
.home-mission,
.last-fire {
  border-radius: 14px;
}

.card {
  border: 1px solid #1c1c1c;
  background: #0e0e0e;
  padding: 18px 16px;
}

/* Home — identity + meeting rhythm */
.identity-line {
  margin: 2px 0 18px;
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px rgba(254, 241, 5, 0.25);
}

.next-meeting .card-label {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  animation: brotherNamePulse var(--tb-breathe);
  will-change: opacity, text-shadow;
}
@media (prefers-reduced-motion: reduce) {
  .next-meeting .card-label { animation: none !important; text-shadow: none !important; }
}

.meeting-countdown {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: #fff;
}

.meeting-date {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.meeting-time {
  font-size: 15px;
  color: #d0d0d0;
  margin-bottom: 2px;
}

.meeting-loc {
  font-size: 13px;
  color: #8a8a8a;
  margin-bottom: 14px;
}

.rsvp-prompt {
  font-size: 13px;
  color: #9a9a9a;
  text-align: center;
  margin: 0 0 12px;
}

.btn-rsvp {
  border-radius: 12px;
  padding: 17px 16px;
  box-shadow: 0 0 0 1px rgba(227, 6, 0, 0.35), 0 8px 28px rgba(227, 6, 0, 0.22);
}

.btn-rsvp.confirmed {
  box-shadow: 0 0 24px rgba(254, 241, 5, 0.18);
}

.btn-reminder-compact {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: #cfcfcf;
  letter-spacing: 0.1em;
}

.btn-text-leader {
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  color: #e8e8e8;
  letter-spacing: 0.14em;
}

/* Section headers — stage-ready, not gray mush */
.section-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: #c8c8c8;
  margin: 22px 0 10px;
}

.section-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* Announcement + Iron cards — matched language */
.announcement-card,
.iron-card {
  background: #0e0e0e;
  border: 1px solid #1c1c1c;
  border-left: 3px solid var(--yellow);
  border-radius: 12px;
  padding: 14px 15px;
}

.announcement-card h3,
.iron-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  animation: brotherNamePulse var(--tb-breathe);
  will-change: opacity, text-shadow;
}
@media (prefers-reduced-motion: reduce) {
  .announcement-card h3,
  .iron-title {
    animation: none !important;
    text-shadow: none !important;
    color: #fff !important;
  }
}

.announcement-card p,
.iron-excerpt {
  color: #9b9b9b;
  font-size: 13px;
  line-height: 1.45;
}

/* Brothers */
.brothers-grid {
  gap: 12px;
}

.brother-card {
  background: #0e0e0e;
  border: 1px solid #1c1c1c;
  padding: 14px 12px;
}

/* Events tags — quieter, tighter, centered (4 chips after Guest Fire removed) */
.activity-tags {
  gap: 8px;
  margin: 0 auto 14px;
  justify-content: center;
}
.activity-tags span {
  border-color: #2a2a2a;
  color: #bdbdbd;
  padding: 5px 10px;
  font-size: 12px;
}

/* Bottom nav — cleaner active state */
.bottom-nav {
  background: rgba(0, 0, 0, 0.94);
  border-top: 1px solid #161616;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-item {
  color: #777;
}
.nav-item.active {
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(254, 241, 5, 0.35);
}

/* FAB — character-only; no yellow disk / box shadow */
.thunder-fab {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* More page — identity + tools as one system */
.about-container .about-logo {
  height: 96px;
  max-width: 88vw;
  margin-top: 8px;
  margin-bottom: 20px;
}
.about-container .about-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.12em;
  font-weight: 400;
  margin-bottom: 12px;
}
.about-container .about-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #cfcfcf;
  margin-bottom: 14px;
}
.about-container .about-text-2 {
  margin-bottom: 20px;
}
.about-container .code-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.1em;
  font-weight: 400;
  margin: 10px 0 14px;
}
.about-container .code-item {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom-color: #1a1a1a;
}
.about-container .code-line {
  font-size: 14px;
  letter-spacing: 0.04em;
}
.about-container .code-sub {
  font-size: 13px;
  color: #9a9a9a;
  line-height: 1.4;
}
.about-container .about-bolt-break {
  margin: 6px auto 16px;
}
.about-container .more-tools {
  gap: 12px;
  margin: 0 auto 20px;
  max-width: 420px;
}
.about-container .alerts-card {
  background: #0e0e0e;
  border: 1px solid #1c1c1c;
  border-radius: 14px;
  padding: 14px 14px;
}
.about-container .alerts-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.1em;
  font-weight: 400;
}
.about-container .alerts-card-sub {
  font-size: 12px;
  color: #888;
}
.about-container .install-card {
  background: #0c0c0c;
  border: 1px solid rgba(227, 6, 0, 0.55);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 0 24px rgba(227, 6, 0, 0.18);
}
.about-container .install-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  font-weight: 400;
}
.about-container .install-card-sub {
  font-size: 12px;
  color: #9a9a9a;
}
.about-container .install-card-btn {
  border-radius: 10px;
  padding: 12px 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.about-container .install-card-tip {
  display: none; /* sub already carries the message — less clutter */
}
.about-container .refresh-app-btn {
  border-radius: 12px;
  border: 1px solid rgba(254, 241, 5, 0.4);
  background: #0a0a0a;
  color: var(--yellow);
  padding: 13px 14px;
  letter-spacing: 0.1em;
}
.about-container .btn-leadership {
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  color: #aaa;
  background: transparent;
  padding: 12px 14px;
}
.about-container .admin-zone-bottom {
  border-top-color: #181818;
  padding-top: 10px;
}

/* Secondary text contrast floor */
.reminder-status,
.empty-state,
.events-note {
  color: #8f8f8f;
}


/* =========================================================
   MOTION POLISH — smoother, less twitchy, still alive
   ========================================================= */

/* Page view enter — slightly longer, ease-out */
.view.active {
  animation: none;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Press feedback — consistent across cards/buttons */
.btn-rsvp,
.btn-reminder,
.btn-text-leader,
.btn-secondary,
.btn-primary,
.refresh-app-btn,
.install-card-btn,
.tappable-card,
.announcement-card,
.iron-card,
.brother-card,
.nav-item,
.thunder-fab {
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    color 0.18s ease;
}

.btn-rsvp:active,
.btn-reminder:active,
.btn-text-leader:active,
.install-card-btn:active,
.refresh-app-btn:active {
  transform: scale(0.975);
}

.tappable-card:active,
.announcement-card:active,
.iron-card:active,
.brother-card:active {
  transform: scale(0.985);
}

/* RSVP lock — smoother arc */
@keyframes rsvpLockPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(227, 6, 0, 0); }
  35% { transform: scale(1.035); box-shadow: 0 0 28px rgba(227, 6, 0, 0.55), 0 0 10px rgba(254, 241, 5, 0.3); }
  100% { transform: scale(1); box-shadow: 0 0 18px rgba(254, 241, 5, 0.14); }
}
.btn-rsvp.lock-pulse {
  animation: rsvpLockPulse 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Glow hits — less snap */
@keyframes tbGlowHit {
  0% { box-shadow: 0 0 0 rgba(227, 6, 0, 0); }
  40% { box-shadow: 0 0 24px rgba(227, 6, 0, 0.55), 0 0 8px rgba(254, 241, 5, 0.2); }
  100% { box-shadow: 0 0 0 rgba(227, 6, 0, 0); }
}
@keyframes tbGlowHitYellow {
  0% { box-shadow: 0 0 0 rgba(254, 241, 5, 0); }
  40% { box-shadow: 0 0 22px rgba(254, 241, 5, 0.55); }
  100% { box-shadow: 0 0 0 rgba(254, 241, 5, 0); }
}
.tb-glow-hit,
.tb-glow-hit-yellow {
  animation-duration: 0.46s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Nav active glow */
@keyframes tbNavGlow {
  0% { text-shadow: none; filter: none; }
  45% { text-shadow: 0 0 12px rgba(254, 241, 5, 0.7); filter: drop-shadow(0 0 5px rgba(254, 241, 5, 0.4)); }
  100% { text-shadow: 0 0 8px rgba(254, 241, 5, 0.25); filter: none; }
}
.nav-item.tb-glow-hit-yellow {
  animation: tbNavGlow 0.42s cubic-bezier(0.22, 1, 0.36, 1) 1;
}

/* FAB hit */
.thunder-fab.fab-hit {
  animation: fabHit 0.45s cubic-bezier(0.22, 1, 0.36, 1) 1;
}
@keyframes fabHit {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes countTick {
  0% { transform: scale(1); opacity: 0.7; }
  40% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Chip enter for new “me” */

@keyframes chipIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

/* Media thumbs enter */
.media-thumb.media-enter {
  animation: mediaIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 1;
}
@keyframes mediaIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal — smoother open */
.modal {
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-content {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal:not(.hidden) .modal-content {
  animation: sheetUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sheetUp {
  from { transform: translateY(18px); opacity: 0.85; }
  to { transform: translateY(0); opacity: 1; }
}

/* Install card pulse — very subtle */
@keyframes installPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(227, 6, 0, 0.16); }
  50% { box-shadow: 0 0 28px rgba(227, 6, 0, 0.28); }
}
.install-card {
  animation: installPulse var(--tb-breathe);
}

/* Live meeting phase — breathe, don't strobe */
.next-meeting.phase-live {
  animation: liveBreathe var(--tb-breathe);
}
@keyframes liveBreathe {
  0%, 100% { box-shadow: 0 0 0 rgba(227, 6, 0, 0); }
  50% { box-shadow: 0 0 24px rgba(227, 6, 0, 0.25); }
}

/* GPU path for opening sequence */
.splash,
.splash-inner,
.splash-mark,
.welcome,
.welcome-card {
  will-change: transform, opacity;
}
.splash.splash-done,
.splash.splash-out,
.welcome.hidden {
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .view.active,
  .modal:not(.hidden) .modal-content,
  .welcome.welcome-on .welcome-card,
  
  .btn-rsvp:active,
  .tappable-card:active,
  .announcement-card:active {
    transform: none;
  }
  .welcome { transition: opacity 0.25s ease; }
  .welcome-card { transform: none !important; transition: opacity 0.25s ease; }
}

/* ===== ACTIVITY TAG FEEDS (Events) ===== */
.activity-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 12px;
  width: 100%;
}
.activity-tag {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bdbdbd;
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.2s ease;
}
.activity-tag:active {
  transform: scale(0.97);
}
.activity-tag.active {
  color: #000;
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 16px rgba(254, 241, 5, 0.35);
}
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
}
/* Collapsed = zero footprint — Upcoming / mission sit tight under chips */
.activity-feed.hidden {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  border: none !important;
}
.activity-feed-close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 2px;
  padding: 10px 12px;
  min-height: 44px;
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #b0b0b0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.activity-feed-close:active {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: scale(0.98);
}
.activity-feed-close-chevron {
  font-size: 10px;
  line-height: 1;
  color: var(--yellow);
  opacity: 0.9;
}
.activity-feed-close-label {
  line-height: 1;
}
.activity-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: #0e0e0e;
  border: 1px solid #1c1c1c;
  border-left: 3px solid var(--yellow);
  border-radius: 12px;
  padding: 12px 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.activity-card:active {
  background: #161616;
  border-left-color: var(--red);
}
.activity-card-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 5px;
}
.activity-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}
.activity-card-excerpt {
  font-size: 12px;
  color: #9a9a9a;
  line-height: 1.4;
}
.activity-loading {
  padding: 12px 0;
}

/* ===== CONTACT SHARE ACTIONS ===== */
.field-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8c8c8;
}
.field-hint {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #777;
  font-size: 11px;
}
#profile-phone {
  width: 100%;
  box-sizing: border-box;
}

.brother-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 2px 16px 6px;
  width: auto;
  box-sizing: border-box;
}
.brother-contact-actions.hidden { display: none; }

.btn-contact {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  padding: 11px 14px;
  border: 1px solid #2a2a2a;
  background: #121212;
  color: #fff;
  cursor: pointer;
  min-width: 42%;
  flex: 1 1 42%;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.btn-contact:active { transform: scale(0.97); }

.btn-call {
  border-color: #3a3a3a;
  color: #fff;
}
.btn-text {
  border-color: #3a3a3a;
  color: #fff;
}
.btn-share {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 16px rgba(227, 6, 0, 0.28);
  flex: 1 1 100%;
  min-height: 44px;
}
.btn-qr {
  background: #0e0e0e;
  border-color: var(--yellow);
  color: var(--yellow);
  flex: 1 1 100%;
}

.brother-qr-wrap {
  margin-top: 8px;
  margin-bottom: 16px;
  text-align: center;
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}
.brother-qr-wrap.hidden { display: none !important; }
.qr-stage-inline {
  position: relative;
  width: 200px;
  height: 200px;
  max-width: 100%;
  margin: 0 auto 8px;
  background: #ffffff;
  overflow: hidden;
}
.qr-stage-inline .qr-code-target {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 200px;
  max-width: 100%;
}
.qr-stage-inline .qr-code-target img,
.qr-stage-inline .qr-code-target canvas,
.qr-stage-inline .qr-code-target table {
  max-width: 200px !important;
  max-height: 200px !important;
  width: 200px !important;
  height: 200px !important;
  display: block !important;
  image-rendering: pixelated;
}
.qr-stage-inline .qr-bolt-pad {
  /* ~18% of 200px — stays under error-correction budget */
  z-index: 2;
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px;
  border-width: 1.5px;
}
.qr-stage-inline .qr-bolt-img {
  width: 24px !important;
  height: 24px !important;
}
.brother-qr-wrap .qr-label {
  margin-bottom: 6px;
}
.brother-qr-hint {
  font-size: 13px;
  color: #9a9a9a;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 8px;
}
.contact-qr-modal-content {
  max-width: 340px;
}
.contact-qr-body {
  text-align: center;
}
.contact-qr-body .btn-primary {
  width: 100%;
}

/* ===== CASH APP–STYLE CONTACT QR (bolt center) ===== */
.qr-stage {
  position: relative;
  width: min(280px, 86vw);
  height: min(280px, 86vw);
  margin: 0 auto 14px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #1a1a1a, 0 0 24px rgba(254, 241, 5, 0.12);
  overflow: hidden;
  box-sizing: border-box;
}
.qr-code-target {
  width: 92%;
  height: 92%;
  max-width: 260px;
  max-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-code-target img,
.qr-code-target canvas,
.qr-code-target table {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}
.qr-bolt-pad {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* Keep center logo small so the fingerprint modules dominate */
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #000000;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #000000;
  pointer-events: none;
  z-index: 2;
}
.qr-bolt-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.qr-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--yellow);
  text-align: center;
  margin: 0 0 14px;
}
.profile-my-qr {
  width: 100%;
  margin-top: 10px;
}
.profile-my-qr.hidden {
  display: none !important;
}
.contact-qr-modal-content {
  max-width: 360px;
}
.contact-qr-body {
  text-align: center;
  padding-bottom: 8px;
}

.btn-text-leader {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding-left: 12px;
  padding-right: 12px;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
}


/* =========================================================
   MOTION MASTER LOCK — visual enjoyment pass (Aug 2026)
   Unified easing, softer ambient loops, no competing view fades
   ========================================================= */
:root {
  --tb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tb-ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* View enter: no transform — transform on the scrolling pane kills iOS pan */
.view.active {
  animation: none;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal sheet: slightly longer, softer */
.modal-content {
  transition: transform 0.36s var(--tb-ease), opacity 0.3s var(--tb-ease-out);
}
.modal:not(.hidden) .modal-content {
  animation: sheetUp 0.36s var(--tb-ease) both;
}
@keyframes sheetUp {
  from { transform: translateY(14px); opacity: 0.88; }
  to { transform: translateY(0); opacity: 1; }
}

/* Detail overlays — consistent open */
@keyframes brotherDetailIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes brotherPanelIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes infoDetailIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes infoPanelIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.brother-detail:not(.hidden),
.info-detail:not(.hidden) {
  animation: brotherDetailIn 0.28s var(--tb-ease-out) both;
}
.brother-detail-panel,
.info-detail-panel {
  animation: brotherPanelIn 0.32s var(--tb-ease) both;
}

/* Media thumbs stagger feel */
@keyframes mediaEnter {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.media-thumb.media-enter {
  animation: mediaEnter 0.32s var(--tb-ease) both;
}

/* FAB hit — less punchy */
@keyframes fabHit {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(254, 241, 5, 0); }
  40% { transform: scale(1.06); box-shadow: 0 0 22px rgba(254, 241, 5, 0.45); }
  100% { transform: scale(1); box-shadow: 0 0 12px rgba(254, 241, 5, 0.2); }
}
.thunder-fab.fab-hit {
  animation: fabHit 0.42s var(--tb-ease) 1;
}

/* Install / live ambient — quieter */
.install-card {
  animation: installPulse var(--tb-breathe);
}
@keyframes installPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(227, 6, 0, 0.12); }
  50% { box-shadow: 0 0 22px rgba(227, 6, 0, 0.22); }
}
.next-meeting.phase-live {
  animation: liveBreathe var(--tb-breathe);
}
@keyframes liveBreathe {
  0%, 100% { box-shadow: 0 0 0 rgba(227, 6, 0, 0); }
  50% { box-shadow: 0 0 18px rgba(227, 6, 0, 0.18); }
}

/* Press feedback — shared, calm */
.btn-rsvp:active,
.btn-reminder:active,
.btn-text-leader:active,
.install-card-btn:active,
.refresh-app-btn:active,
.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.975);
  transition: transform 0.12s var(--tb-ease);
}
.tappable-card:active,
.announcement-card:active,
.iron-card:active,
.brother-card:active {
  transform: scale(0.985);
  transition: transform 0.12s var(--tb-ease);
}

/* GPU only while animating ambient marks — not permanent on everything */
.logo-bolt-glimmer {
  will-change: transform, opacity;
}
.bolt-glow,
.about-bolt-glow {
  will-change: transform, opacity, filter;
}

@media (prefers-reduced-motion: reduce) {
  .view.active,
  .modal:not(.hidden) .modal-content,
  .welcome.welcome-on .welcome-card,
  
  .btn-rsvp:active,
  .tappable-card:active,
  .announcement-card:active,
  .brother-card:active,
  .iron-card:active {
    transform: none !important;
  }
  .logo-bolt-glimmer { opacity: 0 !important; }
}

/* =========================================================
   VISUAL HIERARCHY LOCK — secondary controls under I’M IN
   Final cascade wins; keeps 7-DAY quieter than primary,
   TEXT A LEADER quieter than 7-DAY. No yellow border fight.
   ========================================================= */
.btn-reminder.btn-reminder-compact {
  margin-top: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: #cfcfcf;
  box-shadow: none;
}
.btn-reminder.btn-reminder-compact.set {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #000;
}
.btn-text-leader {
  margin-top: 8px;
  padding: 0.55rem 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: #b8b8b8;
  box-shadow: none;
  text-align: center;
  line-height: 1.3;
  white-space: normal;
}


/* =========================================================
   BREATHE SYNC LOCK
   All continuous ambient pulses share --tb-breathe (4s ease-in-out),
   including the logo O-bolt. Same delay 0 so they beat together.
   One-shot hits (I’M IN, FAB tap, NEW badge) stay short & separate.
   ========================================================= */
.thunder-fab .bolt,
.code-title-glow,
.about-container .code-title.code-title-glow,
h1.code-title-glow,
.about-bolt-glow,
.install-card,
.install-card-more,
.meeting-phase-live,
.thunder-voice-btn.is-listening,
.bolt-glow,
.mission-bolt,
.welcome-bolt,
.ios-install-bolt,
.thunder-title .bolt,
.qr-bolt-glow,
.qr-bolt-img.qr-bolt-glow,
.rsvp-status,
.bolt {
  animation-delay: 0s !important;
  animation-duration: 4s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
}
/* .logo-bolt-glimmer intentionally excluded — overlay is disabled (box bug) */
/* One-shots must not inherit the infinite lock above */
.tb-glow-hit,
.tb-glow-hit-yellow,
.nav-item.tb-glow-hit-yellow,
.btn-rsvp.lock-pulse,
.thunder-fab.fab-hit,
.new-badge,
.media-thumb.media-enter,



/* ===== PROFILE QR + EXPLAINER ===== */
.profile-phone-help {
  margin: 8px 0 4px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #a0a0a0;
}
.btn-text-link {
  display: inline-block;
  background: none;
  border: none;
  color: var(--yellow, #fef105);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0 12px;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(254, 241, 5, 0.35);
}
.btn-text-link:active { opacity: 0.75; }
.profile-qr-unlock {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: #888;
  text-align: center;
}
.profile-qr-unlock.hidden,
.profile-my-qr.hidden { display: none !important; }
.profile-my-qr {
  margin-top: 10px;
  width: 100%;
}

.qr-explainer-content {
  background: #0a0a0a;
}
.qr-explainer-body {
  text-align: center;
  padding-bottom: 28px;
}
.qr-explainer-bolt {
  font-size: 36px;
  line-height: 1;
  margin: 4px 0 12px;
}
.qr-explainer-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--yellow, #fef105);
  margin: 0 0 14px;
}
.qr-explainer-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0 8px;
  text-align: left;
}
.qr-explainer-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f2f2f2;
  margin-bottom: 12px;
  line-height: 1.35;
}
.qr-explainer-list li .bolt-glow {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 2px;
}
.qr-explainer-mock {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}
.qr-explainer-mock-frame {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #111, 0 0 24px rgba(254, 241, 5, 0.25);
}
.qr-explainer-tag {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--yellow, #fef105);
  margin: 8px 0 16px;
  text-transform: uppercase;
}
#qr-explainer-done { width: 100%; }

/* Live glow on QR center bolt (PNG) — same boltLive / 4s breathe as every other ⚡ */
.qr-bolt-glow,
.qr-bolt-img.qr-bolt-glow {
  animation: boltLive var(--tb-breathe);
  animation-delay: 0s;
  will-change: filter, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .qr-bolt-glow,
  .qr-bolt-img.qr-bolt-glow {
    animation: none !important;
  }
}


/* Memories empty — square invite (mirror Brothers empty) */
.empty-memories-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  margin: 8px 0 24px;
  padding: 28px 20px;
  border-radius: 16px;
  border: 1px dashed #333;
  background: #0c0c0c;
  color: #999;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.empty-memories-cta:active {
  transform: scale(0.98);
  border-color: var(--yellow, #fef105);
  background: #111;
}
.empty-memories-plus {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 2px solid var(--yellow, #fef105);
  color: var(--yellow, #fef105);
  font-size: 32px;
  font-weight: 300;
  line-height: 52px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(254, 241, 5, 0.25);
}
.empty-memories-title {
  font-family: var(--font-display, inherit);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}
.empty-memories-sub {
  font-size: 13px;
  line-height: 1.45;
  color: #888;
}


/* Elastic swipe — live drag + snap home (always restores clean layout) */
.elastic-dragging {
  will-change: transform;
  touch-action: pan-y;
}
.elastic-settling {
  will-change: transform;
}
.view.elastic-dragging,
.brother-detail-panel.elastic-dragging,
#memory-viewer-stage.elastic-dragging,
.activity-feed.elastic-dragging,
.activity-tags.elastic-dragging {
  /* keep hit area solid while dragging */
}
@media (prefers-reduced-motion: reduce) {
  .elastic-dragging,
  .elastic-settling {
    transition: none !important;
    transform: none !important;
  }
}


/* QR modules must read as solid black fingerprint on white — never washed out */
.qr-code-target canvas,
.qr-code-target img,
.qr-code-target table {
  background: #ffffff !important;
}
.qr-code-target table td {
  /* table fallback renderer */
  box-sizing: border-box;
}


/* friction-pass: human-size controls */
.btn-primary {
  min-height: 44px;
}
.auth-link-row button {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
}
.auth-card input {
  min-height: 44px;
  padding: 12px 14px;
}
#rsvp-btn {
  min-height: 48px;
}


/* Brothers — account entry (replaces secondary Text a Leader on this page) */
.btn-auth-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(254, 241, 5, 0.35);
  background: #111;
  color: #FEF105;
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#view-brothers .btn-auth-entry,
#auth-entry-btn.btn-auth-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(254, 241, 5, 0.35);
  background: #111;
  color: #FEF105;
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
#view-brothers .btn-auth-entry.hidden,
#auth-entry-btn.hidden {
  display: none !important;
}
#view-brothers .btn-brothers-seat,
#edit-profile-btn.btn-brothers-seat {
  flex-shrink: 0;
  width: auto;
  margin: 0;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(254, 241, 5, 0.4);
  background: transparent;
  color: #FEF105;
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.btn-auth-entry-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body, Inter, system-ui, sans-serif);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #9a9a9a;
  font-weight: 500;
}
.btn-auth-entry:active { transform: scale(0.98); }
.btn-auth-entry.hidden { display: none !important; }
.auth-session-bar-brothers {
  margin: 0 0 16px;
}

.leader-push-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #8a8a8a;
  text-align: center;
  line-height: 1.35;
}
.admin-push-note {
  font-size: 13px;
  color: #b0b0b0;
  margin: 0 0 12px;
  line-height: 1.4;
}
#admin-push-title, #admin-push-body {
  width: 100%;
  margin-bottom: 10px;
  font-size: 16px;
}
.admin-push-status {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 13px;
  color: #FEF105;
  text-align: center;
}


/* ===== GOLDILOCKS MOTION (additive only) ===== */
/* Level 2 — tactile press on primary controls */
.btn-secondary:active,
.btn-text-leader:active,
.btn-auth-entry:active,
.install-card-btn:active,
.refresh-app-btn:active,
.nav-item:active,
.activity-tag:active,
.edit-profile-btn:active,
#edit-profile-btn:active {
  transform: scale(0.97);
}
.btn-secondary,
.btn-text-leader,
.btn-auth-entry,
.install-card-btn,
.refresh-app-btn,
.nav-item,
.activity-tag {
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

/* Level 4 — arrive once (not on data refresh) */
.view.view-enter {
  animation: viewEnter 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes viewEnter {
  from { opacity: 0.55; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Overlay dismiss settle */
.overlay-dismissing {
  transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1), opacity 0.2s ease !important;
  transform: translate3d(0, 18%, 0) !important;
  opacity: 0.35 !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .view.view-enter { animation: none !important; }
  .overlay-dismissing { transition: opacity 0.15s ease !important; transform: none !important; }
  .btn-secondary:active,
  .btn-text-leader:active,
  .btn-auth-entry:active,
  .install-card-btn:active,
  .refresh-app-btn:active,
  .nav-item:active,
  .activity-tag:active {
    transform: none;
  }
}


/* ===== CONTINUITY PASS (shared-element + depth + spring) ===== */
/* Gesture-linked underlay: content eases back while sheet follows finger */
.tb-underlay-depth #main,
.tb-underlay-depth .app-main,
.tb-underlay-depth .views,
.tb-underlay-depth #views,
.tb-underlay-depth .bottom-nav {
  transition: none;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
#memory-viewer-stage img {
  will-change: transform;
  backface-visibility: hidden;
}
/* I'm In liquid morph — continuous object feel */
.btn-rsvp {
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              letter-spacing 0.28s ease,
              font-size 0.28s ease;
}
@media (prefers-reduced-motion: reduce) {
  .tb-underlay-depth #main,
  .tb-underlay-depth .app-main,
  .tb-underlay-depth .views,
  .tb-underlay-depth #views,
  .tb-underlay-depth .bottom-nav {
    transform: none !important;
    opacity: 1 !important;
  }
  #memory-viewer-stage img {
    transition: none !important;
    transform: none !important;
  }
}


.auth-hint {
  margin: 8px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #888;
  text-align: center;
}

/* =========================================================
   LOGO BOX KILL SWITCH — final cascade, must stay last
   Full-size gradient overlays painted a rectangle on the wordmark.
   Yellow bolt lives in the PNG. Do not re-enable without pixel proof.
   ========================================================= */
.logo-bolt-glimmer,
.splash-logo-bolt-glimmer {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  background: none !important;
  animation: none !important;
  filter: none !important;
  box-shadow: none !important;
  mix-blend-mode: normal !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
.header img.logo,
.splash-mark,
.splash-logo,
.about-logo {
  filter: none !important;
  box-shadow: none !important;
  background: transparent !important;
}


/* =========================================================
   PULSE BATCH 20260815-pulse1
   Intentional glows share --tb-breathe. Logo overlay stays DEAD (no box).
   ========================================================= */
.mission-bolt,
.bolt-glow,
.about-bolt-glow,
.thunder-fab .bolt,
.qr-bolt-glow,
.welcome-bolt,
.ios-install-bolt,
.install-card,
.install-card-more,
.rsvp-status:not(.hidden),
.btn-rsvp.confirmed {
  animation-duration: var(--tb-breathe-dur) !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
}
.btn-rsvp.confirmed {
  animation: boltLive var(--tb-breathe);
}
@media (prefers-reduced-motion: reduce) {
  .mission-bolt, .bolt-glow, .about-bolt-glow, .brother-name,
  .rsvp-status, .btn-rsvp.confirmed {
    animation: none !important;
    filter: none !important;
    text-shadow: 0 0 4px rgba(254, 241, 5, 0.25) !important;
  }
}


/* ===END LOGO KILL pulse1=== */
/* HARD FAIL PREVENTION: never paint full-logo gradient. Bolt lives in PNG. */
.logo-bolt-glimmer,
.splash-logo-bolt-glimmer {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
  animation: none !important;
  filter: none !important;
  box-shadow: none !important;
  mix-blend-mode: normal !important;
}
.header img.logo,
.splash-mark,
.splash-logo,
.about-logo {
  filter: none !important;
  box-shadow: none !important;
  background: transparent !important;
}


/* ===SHIP 20260815-invite1: tighter More utilities + invite card + label pulses=== */
.about-container .more-tools {
  gap: 10px !important;
  margin-top: 2px;
}
.about-container .more-tools .alerts-card,
.about-container .more-tools .install-card-more,
.about-container .more-tools .refresh-card {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Compact alerts */
.about-container .alerts-card {
  padding: 10px 12px !important;
  border-radius: 12px;
}
.about-container .alerts-card-title {
  font-size: 12px !important;
  letter-spacing: 0.08em;
}
.about-container .alerts-card-sub {
  font-size: 11px !important;
  margin-top: 2px;
}
/* Compact install + invite cards */
.about-container .install-card-more {
  margin: 0 auto !important;
  padding: 10px 12px !important;
  border-radius: 12px;
  gap: 8px !important;
}
.about-container .install-card-title {
  font-size: 12px !important;
  letter-spacing: 0.06em;
  line-height: 1.25;
}
.about-container .install-card-sub {
  font-size: 11px !important;
  margin-top: 2px;
}
.about-container .install-card-btn {
  min-height: 38px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  border-radius: 9px !important;
}
.about-container .install-card-tip {
  font-size: 9px !important;
  margin-top: 0 !important;
}
/* Invite mirrors install; full-width primary CTA */
.invite-card .install-card-actions {
  display: flex;
}
.invite-card .invite-share-btn {
  width: 100%;
  flex: 1;
}
/* Compact refresh */
.about-container .refresh-card {
  padding: 0 !important;
}
.about-container .refresh-app-btn {
  min-height: 40px !important;
  padding: 10px 12px !important;
  font-size: 12px !important;
  border-radius: 12px !important;
}
.about-container .more-tools .admin-zone-bottom {
  margin-top: 4px !important;
  padding-top: 10px !important;
}

/* REPAIRED 20260818: event-month + info-detail-label pulse restored — strip kill removed */
/* ===END SHIP invite1=== */

/* Invite1: share contact + auth sub pulse on shared breathe */
#brother-share-contact,
#contact-qr-share-btn {
  animation: boltLive var(--tb-breathe);
}
.auth-card .auth-sub {
  animation: boltLive var(--tb-breathe);
}
@media (prefers-reduced-motion: reduce) {
  #brother-share-contact,
  #contact-qr-share-btn,
  .auth-card .auth-sub {
    animation: none !important;
  }
}


/* LOCKED: SAVE REWARD (~3s) — profile / memory success only; TB_CONFIG.SAVE_REWARD */
.tb-reward {
  z-index: 12050;
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.tb-reward.hidden { display: none; }
.tb-reward.tb-reward-on {
  display: flex;
  opacity: 1;
}
.tb-reward.tb-reward-out {
  opacity: 0;
  transition: opacity 0.32s ease;
}
.tb-reward-card {
  text-align: center;
  padding: 28px 32px 24px;
  max-width: 280px;
  border-radius: 16px;
  background: #0a0a0a;
  border: 1px solid rgba(254, 241, 5, 0.35);
  box-shadow:
    0 0 0 1px rgba(227, 6, 0, 0.15),
    0 0 40px rgba(254, 241, 5, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tb-reward.tb-reward-on .tb-reward-card {
  transform: scale(1);
  animation: tbRewardCard 2.8s ease-out forwards;
}
.tb-reward-bolt {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  filter:
    drop-shadow(0 0 8px rgba(254, 241, 5, 0.7))
    drop-shadow(0 0 20px rgba(254, 241, 5, 0.35));
  animation: tbRewardBolt 2.8s ease-out forwards;
}
.tb-reward-title {
  font-family: var(--font-display, 'Bebas Neue', Impact, sans-serif);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #FEF105;
  margin: 0 0 6px;
  text-shadow: 0 0 12px rgba(254, 241, 5, 0.35);
}
.tb-reward-sub {
  font-size: 13px;
  color: #999;
  margin: 0;
  line-height: 1.35;
}
@keyframes tbRewardBolt {
  0% { transform: scale(0.6); opacity: 0.4; filter: drop-shadow(0 0 2px rgba(254, 241, 5, 0.2)); }
  18% { transform: scale(1.12); opacity: 1; filter: drop-shadow(0 0 16px rgba(254, 241, 5, 0.9)) drop-shadow(0 0 28px rgba(255, 160, 0, 0.5)); }
  40% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.85; filter: drop-shadow(0 0 8px rgba(254, 241, 5, 0.4)); }
}
@keyframes tbRewardCard {
  0% { box-shadow: 0 0 0 1px rgba(254, 241, 5, 0.1), 0 0 0 rgba(254, 241, 5, 0); }
  20% { box-shadow: 0 0 0 1px rgba(254, 241, 5, 0.45), 0 0 48px rgba(254, 241, 5, 0.22); }
  100% { box-shadow: 0 0 0 1px rgba(254, 241, 5, 0.2), 0 0 24px rgba(254, 241, 5, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
  .tb-reward-bolt, .tb-reward.tb-reward-on .tb-reward-card {
    animation: none !important;
    transform: none !important;
  }
  .tb-reward { transition: opacity 0.15s; }
}


/* LOCKED: Sensory life blood — press + warning visual (vibrate is optional) */
.tb-press {
  transform: scale(0.97) !important;
  filter: brightness(1.08);
  transition: transform 0.12s ease, filter 0.12s ease !important;
}
@keyframes tbWarnShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.tb-warn-shake {
  animation: tbWarnShake 0.4s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  .tb-press { transform: none !important; filter: none !important; }
  .tb-warn-shake { animation: none !important; }
}


/* ===== ONE BREATHING UNIT (LOCKED) — ambient pulse sync =====
   All continuous life indicators share --tb-breathe (4s, peak 50%).
   animation-delay: 0 so the room beats as one — no staggered ambient drift.
   One-shot effects (lock-pulse, newBadgeIn, fabHit, tb-press) stay one-shot.
*/
.bolt-glow,
.mission-bolt,
.welcome-bolt,
.welcome-bolt-img,
.ios-install-bolt,
.thunder-title .bolt,
.thunder-fab .bolt,
.about-bolt-glow,
.brother-name,
.rsvp-status:not(.hidden),
.btn-share,
.code-title-glow,
.install-card,
.install-card-more {
  animation-duration: var(--tb-breathe-dur, 4s) !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
  animation-delay: 0s !important;
}
.btn-share {
  animation-name: brotherNamePulse;
  /* soft red CTA presence on shared rhythm */
}
.btn-share {
  box-shadow: 0 0 0 0 rgba(227, 6, 0, 0);
  animation: shareContactPulse var(--tb-breathe) !important;
  animation-delay: 0s !important;
}
@keyframes shareContactPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(227, 6, 0, 0.25);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 18px rgba(227, 6, 0, 0.55), 0 0 4px rgba(254, 241, 5, 0.2);
    filter: brightness(1.06);
  }
}
/* Soft ongoing presence for NEW after entrance — still on shared clock */
.new-badge {
  animation: newBadgeIn 0.55s ease-out 1, newBadgeBreathe var(--tb-breathe) 0.55s infinite !important;
}
@keyframes newBadgeBreathe {
  0%, 100% { box-shadow: 0 0 8px rgba(227, 6, 0, 0.35); opacity: 0.92; }
  50% { box-shadow: 0 0 16px rgba(227, 6, 0, 0.7); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bolt-glow, .mission-bolt, .welcome-bolt, .welcome-bolt-img,
  .ios-install-bolt, .thunder-title .bolt, .thunder-fab .bolt,
  .about-bolt-glow, .brother-name,   .rsvp-status, .btn-share, .code-title-glow, .new-badge,
  .install-card, .install-card-more {
    animation: none !important;
  }
}


/* Permanent: personal Home (known name only — never guess) */
.home-personal {
  text-align: center;
  font-family: var(--font-display, inherit);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--yellow);
  margin: 4px 0 0;
  opacity: 0.92;
}
.home-personal.hidden { display: none !important; }

/* Gathering post phase — calm, not a second theme */
.next-meeting.phase-post {
  border-color: rgba(254, 241, 5, 0.25);
  box-shadow: 0 0 16px rgba(254, 241, 5, 0.12);
}
.next-meeting.phase-post .card-label {
  color: var(--yellow);
}

/* Thunder AI action chips — surface only, human executes */
.thunder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.thunder-action-btn {
  font-family: var(--font-display, inherit);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(254, 241, 5, 0.45);
  background: #111;
  color: var(--yellow);
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
}
.thunder-action-btn:active {
  transform: scale(0.97);
  background: #1a1a1a;
}


/* Install Concierge — progressive iOS coach */
.ios-coach-step {
  position: relative;
  text-align: center;
  margin: 18px 0 12px;
  padding: 20px 12px;
  border: 1px solid rgba(254, 241, 5, 0.28);
  border-radius: 12px;
  background: #0a0a0a;
}
.ios-coach-halo {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid rgba(254, 241, 5, 0.55);
  box-shadow: 0 0 18px rgba(254, 241, 5, 0.35);
  animation: iosCoachPulse 2.2s ease-in-out infinite;
}
.ios-coach-line {
  font-family: var(--font-display, inherit);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #FEF105;
  margin: 0 0 8px;
}
.ios-coach-hint {
  font-size: 13px;
  color: #aaa;
  margin: 0;
  line-height: 1.35;
}
.ios-coach-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .ios-coach-halo { animation: none; }
}
@keyframes iosCoachPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}


/* Concierge choreography — clarity first */
.install-card-btn {
  transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.15s ease;
}
.install-card-btn:active {
  transform: scale(0.97);
  opacity: 0.92;
}
.install-card-actions .install-card-btn:not(.install-card-btn-secondary) {
  box-shadow: 0 0 14px rgba(227, 6, 0, 0.35);
}
.install-card-btn-secondary {
  opacity: 0.88;
}
.ios-coach-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ios-coach-progress span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #333;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.ios-coach-progress span.on {
  background: #FEF105;
  box-shadow: 0 0 8px rgba(254, 241, 5, 0.55);
}
.ios-coach-step.is-settling .ios-coach-line,
.ios-coach-step.is-settling .ios-coach-hint {
  opacity: 0.35;
  transition: opacity 0.15s ease;
}
.ios-coach-line, .ios-coach-hint {
  transition: opacity 0.18s ease;
}
.install-toast.toast-success {
  border-color: rgba(254, 241, 5, 0.55);
  box-shadow: 0 0 24px rgba(254, 241, 5, 0.25);
  color: #FEF105;
  letter-spacing: 0.04em;
}
.ios-install-share {
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.ios-install-share:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .install-card-btn, .ios-install-share { transition: none; }
  .ios-coach-progress span { transition: none; }
}


/* ── Product Tour (isolated; must not leak after hidden) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* === p0-recovery2: Home member CTA + utility pulse === */
.home-member-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  margin: 16px 0 8px;
  padding: 14px 16px;
  background: #0e0e0e;
  border: 1px solid #1c1c1c;
  border-radius: 12px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.home-member-cta:active { transform: scale(0.98); }
.home-member-cta-title {
  font-family: var(--font-display, inherit);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.home-member-cta-sub {
  font-size: 12px;
  color: #9a9a9a;
}
.btn-reminder-emphasis {
  border-color: var(--yellow, #fef105) !important;
  box-shadow: 0 0 12px rgba(254, 241, 5, 0.25);
}
#refresh-app-btn,
.refresh-app-btn {
  animation: brotherNamePulse var(--tb-breathe);
}
.alerts-card .card-label,
.alerts-switch,
#gathering-alerts-label {
  animation: brotherNamePulse var(--tb-breathe);
}
.rsvp-status {
  animation: brotherNamePulse var(--tb-breathe);
}
.header-bolt-live {
  animation: boltLive var(--tb-breathe);
}
@media (prefers-reduced-motion: reduce) {
  #refresh-app-btn, .refresh-app-btn,
  .alerts-card .card-label, .alerts-switch,
  .rsvp-status, .header-bolt-live {
    animation: none !important;
  }
}

/* === PUNCH 20260818: header logo on top, no bolt overlay, centered, no overlap === */
.header-bolt-live,
.logo-bolt-glimmer,
.splash-logo-bolt-glimmer {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  background: none !important;
  animation: none !important;
  filter: none !important;
  box-shadow: none !important;
}
.logo-wrap {
  position: relative;
  z-index: 2;
}
.header .logo {
  position: relative;
  z-index: 2;
}

/* === LOGO CLIP FIX 20260818: full wordmark, no height crop === */
.header .logo,
.header img.logo,
#header-logo,
.logo-wrap .logo {
  height: auto !important;
  width: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.header {
  overflow: visible !important;
}
.logo-wrap {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* === OVERRIDE 20260818: tuxedo Thunder on Ask Thunder page ONLY ===
   Explicit product-owner override of body/tuxedo lock for this surface.
   FAB, Home, tour, and all other surfaces stay bolt-head only. */
.thunder-ask-hero {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px 4px;
  background: #000;
}
.thunder-ask-hero-img {
  width: min(220px, 58vw);
  height: auto;
  max-height: 42vh;
  object-fit: contain;
  object-position: center top;
  display: block;
  filter: drop-shadow(0 0 18px rgba(254, 241, 5, 0.25));
}
.thunder-modal .thunder-messages {
  flex: 1;
  min-height: 0;
}

/* ===== 7-SLIDE PRODUCT TOUR — restored 20260818, glow + motion ===== */
.tb-tour.tb-tour-slides {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}
.tb-tour.tb-tour-slides.hidden { display: none !important; }
body.tb-tour-open { overflow: hidden; }

.tb-tour-stage {
  width: min(420px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border-radius: 16px;
  border: 1px solid #222;
  box-shadow:
    0 0 0 1px rgba(254, 241, 5, 0.08),
    0 0 40px rgba(254, 241, 5, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  animation: tbTourStageIn 0.35s ease-out;
}
@keyframes tbTourStageIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.tb-tour-slide-frame {
  flex: 0 0 auto;
  background: #000;
  line-height: 0;
  max-height: 52vh;
  overflow: hidden;
  position: relative;
}
.tb-tour-slide-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(254, 241, 5, 0.06);
}
.tb-tour-slide-img {
  width: 100%;
  height: auto;
  max-height: 52vh;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #000;
}
.tb-tour-slide-img.tb-tour-slide-in {
  animation: tbTourSlideIn 0.4s ease-out;
}
@keyframes tbTourSlideIn {
  from { opacity: 0.2; transform: scale(1.03); filter: brightness(0.7); }
  to { opacity: 1; transform: scale(1); filter: brightness(1); }
}

.tb-tour-caption { padding: 12px 16px 4px; flex: 0 0 auto; }
.tb-tour-bolt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.tb-tour-follow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #FEF105;
  font-weight: 700;
  text-shadow:
    0 0 8px rgba(254, 241, 5, 0.8),
    0 0 18px rgba(254, 241, 5, 0.4);
  animation: brotherNamePulse var(--tb-breathe);
}
.tb-tour-progress {
  font-size: 11px;
  color: #666;
  letter-spacing: 0.06em;
}
.tb-tour-headline {
  color: #fff;
  font-size: 1.3rem;
  margin: 4px 0 6px;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 10px rgba(254, 241, 5, 0.7),
    0 0 24px rgba(254, 241, 5, 0.35);
}
.tb-tour-body {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 0 8px;
}
.tb-tour-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  padding: 6px 0 10px;
}
.tb-tour-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #333;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.tb-tour-dots span.on {
  background: #FEF105;
  box-shadow: 0 0 10px rgba(254, 241, 5, 0.8), 0 0 4px rgba(254, 241, 5, 0.9);
  transform: scale(1.15);
}
.tb-tour-actions {
  display: flex;
  gap: 8px;
  padding: 8px 16px 16px;
  align-items: center;
  flex-wrap: wrap;
}
.tb-tour-back {
  background: transparent;
  border: 1px solid #333;
  color: #aaa;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}
.tb-tour-back:disabled {
  opacity: 0.35;
  pointer-events: none;
}
.tb-tour-next {
  flex: 1;
  min-width: 120px;
  background: #E30600;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 14px;
  box-shadow: 0 0 16px rgba(227, 6, 0, 0.35);
}
.tb-tour-next:active { transform: scale(0.97); }
.tb-tour-skip {
  width: 100%;
  text-align: center;
  margin-top: 2px;
  background: transparent;
  border: none;
  color: #666;
  font-size: 12px;
  padding: 8px;
}
.tb-tour-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 5;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #888;
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  touch-action: manipulation;
}
.tb-tour-close:active { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .tb-tour-stage { animation: none !important; }
  .tb-tour-slide-img.tb-tour-slide-in { animation: none !important; }
  .tb-tour-follow { animation: none !important; }
}

/* === LOGO PIN 20260818: exact current size, die-cut, top layer every page === */
#main-header.header,
.header#main-header,
#main-header {
  display: block !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 500 !important;
  background: #000 !important;
  padding: calc(8px + env(safe-area-inset-top, 20px)) 12px 8px !important;
  overflow: visible !important;
  box-shadow: none !important;
  border-bottom: none !important;
}
.logo-wrap {
  position: relative !important;
  z-index: 501 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 auto !important;
  overflow: visible !important;
  background: transparent !important;
  line-height: 0 !important;
}
/* Exact size — match live app, NOT enlarged. Die-cut = transparent, no box. */
.header .logo,
.header img.logo,
#header-logo,
.logo-wrap .logo {
  height: 72px !important;
  width: auto !important;
  max-width: 78vw !important;
  max-height: 72px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 502 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  /* no rectangular pad — PNG die-cut only */
  filter: none !important;
  padding: 0 !important;
}
#views,
.view,
.view.active,
.next-meeting.card,
.announcement-card,
.brother-card,
.card {
  position: relative;
  z-index: 1;
}
.about-container {
  padding-top: 8px !important;
}


/* === FIX 1: double logo on More — hide in-page about-logo === */
.about-logo,
img.about-logo,
.about-container .about-logo {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
}
.about-container {
  /* header is always visible now — no extra top padding for a second logo */
  padding-top: 8px !important;
}


/* === FIX 2: tour slide clean frame — no neighbor bleed === */
.tb-tour-slide-frame {
  overflow: hidden !important;
  background: #000 !important;
  border-radius: 12px 12px 0 0;
}
.tb-tour-slide-img {
  width: 100% !important;
  height: auto !important;
  max-height: 52vh !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  background: #000 !important;
}


/* === FIX 4: logo pin reaffirm — same size all pages, top layer === */
#main-header {
  display: block !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 500 !important;
  background: #000 !important;
}
.header .logo,
#header-logo {
  height: 72px !important;
  width: auto !important;
  max-width: 78vw !important;
  max-height: 72px !important;
  object-fit: contain !important;
}


/* === TOUR TYPEWRITER — Thunder speaking === */
.tb-tour-body {
  min-height: 3.2em;
  white-space: pre-wrap;
}
.tb-tour-body.tb-tour-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.1em;
  background: #FEF105;
  box-shadow: 0 0 8px rgba(254, 241, 5, 0.8);
  animation: tbTourCursor 0.7s steps(1) infinite;
}
@keyframes tbTourCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-tour-body.tb-tour-typing::after { display: none !important; animation: none !important; }
}
/* ===== Birthday Honors ===== */
.brother-name.birthday-today {
  color: #FEF105 !important;
  text-shadow: 0 0 10px rgba(254, 241, 5, 0.55), 0 0 22px rgba(254, 241, 5, 0.25);
}
.today-badge {
  display: inline-block;
  background: #FEF105;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1.2;
}
.happy-birthday-label {
  color: #FEF105;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  margin: 12px 0 8px;
  text-align: center;
}
#brother-text-him {
  width: 100%;
  margin-bottom: 10px;
}
.optional-tag,
.field-hint {
  font-size: 11px;
  color: #888;
  font-weight: 500;
  margin-left: 6px;
}

/* === 20260819-red7697: stacked IMG_7697 mark MUST show full red OF THUNDER ===
   Previous lock pinned height:72px for the old landscape wordmark.
   That crop hides OF THUNDER on the stacked official mark. Size by WIDTH only. */
#main-header.header,
.header {
  overflow: visible !important;
  min-height: 0 !important;
  height: auto !important;
  padding: calc(8px + env(safe-area-inset-top, 20px)) 12px 4px !important;
}
.logo-wrap {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}
.header .logo,
.header img.logo,
#header-logo,
.logo-wrap .logo {
  height: auto !important;
  width: auto !important;
  max-width: 70vw !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center top !important;
}

/* Splash uses the same stacked 7697 mark — full red OF THUNDER */
.splash {
  overflow: hidden;
}
.splash-inner {
  overflow: visible !important;
}
.splash-logo-wrap {
  max-width: min(78vw, 340px) !important;
  overflow: visible !important;
}
.splash-mark,
.splash-logo {
  width: min(78vw, 340px) !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

/* Header bolt — drop-shadow pulse on the bolt only. Never a box around the wordmark. */
.logo-stack {
  position: relative;
  display: block;
  width: min(70vw, 360px);
  margin: 0 auto;
  line-height: 0;
  overflow: visible;
  aspect-ratio: 800 / 591;
}
.logo-stack #header-logo,
.logo-stack .logo {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  position: relative;
  z-index: 1;
}
.header-bolt-pulse {
  position: absolute;
  left: 33.88%;
  top: 2.2%;
  width: 31.62%;
  height: auto;
  pointer-events: none;
  z-index: 2;
  display: block !important;
  visibility: visible !important;
  background: none !important;
  border: none !important;
  animation: headerBoltGlow var(--tb-breathe);
  will-change: filter;
}
@keyframes headerBoltGlow {
  0%, 100% {
    filter:
      drop-shadow(0 0 3px rgba(254, 241, 5, 0.35))
      drop-shadow(0 0 8px rgba(254, 241, 5, 0.18));
  }
  50% {
    filter:
      drop-shadow(0 0 8px rgba(254, 241, 5, 0.95))
      drop-shadow(0 0 18px rgba(254, 241, 5, 0.55))
      drop-shadow(0 0 6px rgba(255, 160, 0, 0.4));
  }
}
@media (prefers-reduced-motion: reduce) {
  .header-bolt-pulse {
    animation: none !important;
    filter: drop-shadow(0 0 8px rgba(254, 241, 5, 0.55));
  }
}


/* ===== LIVE TOUR SLIDES — layered, manipulable ===== */
#tb-tour-live.tb-tour-slide-frame {
  height: min(38vh, 280px);
  max-height: min(38vh, 280px);
  overflow: hidden !important;
  background: #000 !important;
  position: relative;
  flex: 1 1 auto;
}
.tb-live-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 16px 10px;
  opacity: 0;
  pointer-events: none;
  background: #000;
  transition: opacity 0.55s ease;
  transform: none;
}
.tb-live-slide.is-on {
  opacity: 1;
  animation: none;
}
.tb-live-logo {
  width: min(58%, 190px);
  height: auto;
  display: block;
  margin: 4px auto;
  animation: tbLiveKen 9s ease-in-out infinite alternate;
  transform-origin: center 40%;
}
@keyframes tbLiveKen {
  from { transform: scale(1); filter: brightness(1); }
  to { transform: scale(1.08); filter: brightness(1.08); }
}
.tb-live-card {
  width: 100%;
  background: #111;
  border: 1px solid #222;
  border-left: 3px solid #FEF105;
  border-radius: 12px;
  padding: 14px 14px 16px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.tb-live-label {
  font-family: var(--font-display);
  color: #FEF105;
  letter-spacing: 0.12em;
  font-size: 13px;
  margin-bottom: 6px;
  animation: brotherNamePulse var(--tb-breathe);
}
.tb-live-date {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.tb-live-loc {
  color: #888;
  font-size: 12px;
  margin-top: 4px;
}
.tb-live-im-in {
  margin-top: 12px;
  background: #E30600;
  color: #fff;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 12px 8px;
  border-radius: 10px;
  animation: tbLiveCtaPulse var(--tb-breathe);
}
@keyframes tbLiveCtaPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(227,6,0,0); }
  50% { box-shadow: 0 0 18px rgba(227,6,0,0.55), 0 0 8px rgba(254,241,5,0.2); }
}
.tb-live-bros {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  z-index: 2;
}
.tb-live-bro {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #1c1c1c;
}
.tb-live-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1a1a1a;
  color: #FEF105;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.tb-live-bname {
  color: #FEF105;
  font-weight: 700;
  letter-spacing: 0.06em;
  animation: brotherNamePulse var(--tb-breathe);
}
.tb-live-bro-you { border: 1px dashed #333; }
.tb-live-mem-row {
  display: flex;
  gap: 8px;
  margin: 10px 0 6px;
}
.tb-live-mem {
  flex: 1;
  height: 64px;
  border-radius: 8px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}
.tb-live-mem-add {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FEF105;
  font-size: 28px;
  border: 1px dashed #444;
  background: #0e0e0e;
}
.tb-live-code-title {
  font-family: var(--font-display);
  color: #FEF105;
  font-size: 28px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  animation: codeTitleGlow var(--tb-breathe);
}
.tb-live-code-line {
  color: #ddd;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 1px solid #222;
}
.tb-live-text-leader {
  margin-top: 10px;
  background: #E30600;
  color: #fff;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 12px 8px;
  border-radius: 10px;
  animation: tbLiveCtaPulse var(--tb-breathe);
}
.tb-live-thunder {
  position: absolute;
  left: 8px;
  bottom: 4px;
  width: 72px;
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 0 10px rgba(254,241,5,0.25));
  animation: tbLiveThunderIdle var(--tb-breathe);
  pointer-events: none;
}
@keyframes tbLiveThunderIdle {
  0%, 100% { transform: translateY(0); opacity: 0.95; }
  50% { transform: translateY(-3px); opacity: 1; }
}
.tb-live-thunder-welcome {
  width: 88px;
  left: 10px;
  bottom: 8px;
}
.tb-live-thunder-end {
  width: 96px;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
}
.tb-live-slide[data-slide="6"] .tb-live-thunder-end {
  animation: tbLiveThunderEndIdle var(--tb-breathe);
}
@keyframes tbLiveThunderEndIdle {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.95; }
  50% { transform: translateX(-50%) translateY(-3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-live-logo,
  .tb-live-im-in,
  .tb-live-label,
  .tb-live-bname,
  .tb-live-code-title,
  .tb-live-text-leader,
  .tb-live-thunder,
  .tb-live-slide.is-on,
  .tb-guide-thunder {
    animation: none !important;
  }
}

/* ===== TOUR FILM — Thunder as guide, one continuous scene ===== */
.tb-tour-film {
  display: flex;
  flex-direction: column;
  background: #000;
  min-height: 0;
}
.tb-tour-guide {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 14px 8px;
  background: transparent;
  flex: 0 0 auto;
  margin-top: -18px;
  position: relative;
  z-index: 4;
}
.tb-guide-thunder {
  width: 96px;
  height: auto;
  flex: 0 0 auto;
  display: block;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(254,241,5,0.4));
  animation: tbLiveThunderIdle var(--tb-breathe);
}
.tb-guide-bubble {
  flex: 1;
  min-width: 0;
  background: #161616;
  border: 1px solid #2c2c2c;
  border-radius: 12px 12px 12px 5px;
  padding: 10px 12px 11px;
  position: relative;
  min-height: 3.4em;
}
.tb-guide-bubble::before {
  content: '';
  position: absolute;
  left: -5px;
  bottom: 18px;
  width: 10px;
  height: 10px;
  background: #161616;
  border-left: 1px solid #2c2c2c;
  border-bottom: 1px solid #2c2c2c;
  transform: rotate(45deg);
}
#tb-tour-body.tb-tour-body {
  margin: 0;
  color: #ececec;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  min-height: 2.6em;
  text-shadow: none;
}
.tb-tour-caption {
  padding: 6px 16px 0;
}
.tb-tour-headline {
  font-size: 1.05rem !important;
  margin: 2px 0 0 !important;
  animation: none !important;
  color: #fff !important;
  text-shadow: none !important;
}
.tb-tour-follow { display: none !important; }
.tb-tour-bolt-row { justify-content: flex-end; }

/* ===== WILD FACTOR — CSS-only, no transform fights on I'm In ===== */
.next-meeting.commit-energized {
  box-shadow:
    0 0 0 1px rgba(254, 241, 5, 0.22),
    0 0 24px rgba(227, 6, 0, 0.18);
  animation: tbStormRim var(--tb-breathe);
}
@keyframes tbStormRim {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(254, 241, 5, 0.18),
      0 0 16px rgba(227, 6, 0, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(254, 241, 5, 0.45),
      0 0 28px rgba(227, 6, 0, 0.32),
      0 0 8px rgba(254, 241, 5, 0.2);
  }
}

.thunder-ask-hero-img {
  animation: tbTuxIdle var(--tb-breathe);
  transform-origin: center 70%;
}
.thunder-ask-hero-img.tb-tux-in {
  animation: tbTuxIn 0.7s cubic-bezier(0.22, 1, 0.36, 1), tbTuxIdle var(--tb-breathe) 0.7s infinite;
}
@keyframes tbTuxIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); filter: brightness(0.6); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: brightness(1); }
}
@keyframes tbTuxIdle {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 14px rgba(254,241,5,0.22)); }
  50% { transform: translateY(-4px); filter: drop-shadow(0 0 22px rgba(254,241,5,0.4)); }
}

.tb-guide-bubble.tb-speak-flash {
  animation: tbSpeakFlash 0.55s ease-out;
}
@keyframes tbSpeakFlash {
  0% { box-shadow: 0 0 0 rgba(254,241,5,0); border-color: #2c2c2c; }
  35% { box-shadow: 0 0 18px rgba(254,241,5,0.35); border-color: #FEF105; }
  100% { box-shadow: none; border-color: #2c2c2c; }
}

.cal-confirm-sheet:not(.hidden) .cal-confirm-panel {
  animation: tbSheetUp 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes tbSheetUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .next-meeting.commit-energized,
  .thunder-ask-hero-img,
  .tb-guide-bubble.tb-speak-flash,
  .cal-confirm-sheet:not(.hidden) .cal-confirm-panel {
    animation: none !important;
  }
}

/* Scene chrome is not the title — don't let NEXT GATHERING / MEMORIES steal the pulse */
.tb-live-label {
  animation: none !important;
  color: #888 !important;
  letter-spacing: 0.1em;
}
.tb-live-code-title {
  animation: none !important;
}
.tb-live-card { margin-bottom: 0; }
.tb-live-bros { margin-bottom: 0; }

/* ===== LABEL PULSE / TITLE SOLID =====
   Chip (ANNOUNCEMENT) breathes. Title stands still. */
.info-detail-label,
.announcement-card-label {
  animation: brotherNamePulse var(--tb-breathe) !important;
  color: #FEF105 !important;
  text-shadow:
    0 0 8px rgba(254, 241, 5, 0.55),
    0 0 16px rgba(254, 241, 5, 0.25) !important;
  opacity: 1 !important;
}
.qr-label,
.info-detail .card-label {
  animation: none !important;
  text-shadow: none !important;
  color: #8a8a8a !important;
}
.info-detail-title {
  color: #fff !important;
  animation: none !important;
  text-shadow: none !important;
  font-weight: 800;
}
.brother-detail-name {
  animation: none !important;
  color: #fff !important;
  text-shadow: none !important;
}
.announcement-card-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.modal-header h2 {
  animation: none !important;
  text-shadow: none !important;
}

/* I'm In calendar — in-app sheet, never a trap */
.cal-confirm-sheet {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(0,0,0,0.78);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}
.cal-confirm-sheet.hidden { display: none !important; }
.cal-confirm-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 16px 16px 12px 12px;
  padding: 22px 18px 16px;
}
.cal-confirm-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.cal-confirm-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: 28px;
  letter-spacing: 0.04em;
  margin: 0 36px 8px 0;
  animation: none;
  text-shadow: none;
}
.cal-confirm-body {
  color: #ccc;
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 16px;
}
.cal-confirm-primary {
  width: 100%;
  background: #E30600;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.cal-confirm-secondary {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: #aaa;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.cal-confirm-hint {
  margin: 10px 0 0;
  text-align: center;
  color: #666;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .info-detail-title,
  .brother-detail-name {
    animation: none !important;
  }
}




/* ===== 7-BOARD TOUR — poster spec (official Thunder) ===== */
.tb-tour-boards .tb-tour-stage {
  background: #000 !important;
  display: flex;
  flex-direction: column;
  padding: 8px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100%;
}
.tb-tour-boards .tb-tour-progress {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #FEF105;
  margin: 4px 0 6px;
  font-weight: 700;
  animation: brotherNamePulse var(--tb-breathe);
}
.tb-tour-boards .tb-tour-headline {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 36px);
  color: #fff !important;
  letter-spacing: 0.04em;
  line-height: 0.95;
  animation: none !important;
  text-shadow: none !important;
  margin: 0;
}
.tb-tour-boards .tb-tour-sub {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(16px, 4.8vw, 22px);
  color: #bdbdbd;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 6px 0 10px;
}
.tb-tour-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 10px;
}
.tb-tour-boards .tb-guide-bubble {
  flex: 1;
  min-width: 0;
  background: #0a0a0a;
  border: 1.5px solid #FEF105;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 0 16px rgba(254,241,5,0.12);
}
.tb-tour-boards .tb-tour-body {
  color: #eee;
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}
.tb-tour-boards .tb-guide-thunder {
  width: min(38vw, 148px);
  height: auto;
  flex: 0 0 auto;
  background: none !important;
  border: none !important;
  filter: drop-shadow(0 0 12px rgba(254,241,5,0.45));
  animation: tbLiveThunderIdle var(--tb-breathe);
}
.tb-phone {
  display: block;
  width: min(86%, 300px);
  margin: 0 auto 10px;
  background: #111;
  border: 2px solid #2a2a2a;
  border-radius: 22px;
  padding: 12px 12px 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
.tb-tour-boards .tb-tour-stage:not([data-board="0"]) .tb-phone { display: block; }
.tb-tour-boards .tb-tour-slide-frame {
  height: auto !important;
  max-height: none !important;
  position: relative;
  overflow: visible !important;
  background: transparent !important;
}
.tb-tour-boards .tb-live-slide {
  position: relative !important;
  inset: auto !important;
  opacity: 0;
  display: none !important;
  pointer-events: none;
  background: #0a0a0a !important;
}
.tb-tour-boards .tb-live-slide.is-on {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto;
  animation: tbBoardIn 0.45s ease;
  isolation: isolate;
  background: #111 !important;
}
@keyframes tbBoardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.tb-live-bros-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  flex-direction: unset !important;
}
.tb-live-bros-grid .tb-live-bro { justify-content: center; padding: 10px 0; }
.tb-live-phone-foot {
  text-align: center; color: #aaa; font-size: 11px; margin-top: 8px; letter-spacing: 0.04em;
}
.tb-live-remind, .tb-live-muted { text-align: center; color: #888; font-size: 12px; margin-top: 8px; }
.tb-live-up {
  display: flex; justify-content: space-between; color: #ddd; font-size: 13px;
  padding: 8px 0; border-bottom: 1px solid #222;
}
.tb-live-allset {
  margin-top: 12px; color: #FEF105; font-family: var(--font-display);
  font-size: 18px; letter-spacing: 0.04em; text-align: center; line-height: 1.15;
}
.tb-tour-boards .tb-tour-dots { justify-content: center; margin: 4px 0 10px; }
.tb-tour-boards .tb-tour-actions { margin-top: auto; }
.tb-tour-boards .tb-tour-stage[data-board="0"] .tb-tour-back { display: none; }
.tb-tour-boards .tb-tour-stage[data-board="0"] .tb-tour-next {
  background: #FEF105 !important;
  color: #000 !important;
  box-shadow: 0 0 18px rgba(254,241,5,0.35);
  flex: 1 1 100%;
}
.tb-tour-boards .tb-tour-skip { letter-spacing: 0.14em; font-size: 11px; }
@media (prefers-reduced-motion: reduce) {
  .tb-tour-boards .tb-live-slide.is-on,
  .tb-tour-boards .tb-guide-thunder { animation: none !important; }
}


/* === LOCK 20260819-logofull1: stacked 7697 mark, FULL red OF THUNDER, every surface ===
   Splash is the source of truth. Header was losing to leftover height:72px and a bolt overlay.
   Size by WIDTH only. Never crop height. Overlay bolt is dead. */
.header-bolt-pulse,
.header-bolt-live,
.logo-bolt-glimmer,
.logo-stack {
  display: none !important;
}
#main-header.header,
.header {
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: calc(8px + env(safe-area-inset-top, 20px)) 12px 8px !important;
}
.logo-wrap {
  display: flex !important;
  justify-content: center !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
}
.header .logo,
.header img.logo,
#header-logo,
.logo-wrap .logo,
.logo-stack #header-logo {
  height: auto !important;
  width: min(72vw, 320px) !important;
  max-width: min(72vw, 320px) !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center top !important;
  display: block !important;
  margin: 0 auto !important;
}
.splash-mark,
.splash-logo {
  width: min(82vw, 340px) !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}
.tb-live-logo {
  width: min(58%, 200px) !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

/* Header logo stays on every tab — More no longer hides it */
.about-container {
  padding-top: 8px !important;
}
#main-header.header,
#main-header {
  display: block !important;
}

/* Ask Thunder: modal above sticky header; tux fully visible; logo shrinks */
.thunder-modal {
  z-index: 800 !important;
  align-items: stretch !important;
}
.thunder-modal .thunder-content {
  height: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  max-width: 100% !important;
}
body.tb-ask-open #main-header.header,
body.tb-ask-open #main-header {
  display: block !important;
  padding: calc(4px + env(safe-area-inset-top, 12px)) 12px 2px !important;
}
body.tb-ask-open #header-logo,
body.tb-ask-open .header .logo {
  width: min(28vw, 110px) !important;
  max-width: min(28vw, 110px) !important;
  max-height: none !important;
  height: auto !important;
}
.thunder-ask-hero {
  padding: 4px 12px 0 !important;
  flex: 0 0 auto;
}
.thunder-ask-hero-img {
  width: min(300px, 78vw) !important;
  max-height: 52vh !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
}

/* Beat 2: I'm In is the only object. Nothing sits behind or on it. */
.tb-tour-stage[data-board="1"] .tb-tour-hero {
  align-items: flex-start;
}
.tb-tour-stage[data-board="1"] .tb-guide-thunder {
  max-width: 120px;
  width: min(34vw, 120px);
}
.tb-tour-stage[data-board="1"] #tb-tour-host.tb-guide-thunder.tb-host-alive {
  animation: tbHostSlide2 5.8s ease-in-out infinite !important;
  transform-origin: 50% 80%;
}
@keyframes tbHostSlide2 {
  0%   { transform: translateY(0) rotate(2deg) scale(1); }
  16%  { transform: translateY(-9px) rotate(9deg) scale(1.05); }
  26%  { transform: translateY(-9px) rotate(9deg) scale(1.05); }
  38%  { transform: translateY(-2px) rotate(-5deg) scale(1); }
  50%  { transform: translateY(-13px) rotate(3deg) scale(1.04); }
  64%  { transform: translateY(0) rotate(7deg) scale(1.02); }
  78%  { transform: translateY(-6px) rotate(1deg) scale(1.01); }
  100% { transform: translateY(0) rotate(2deg) scale(1); }
}
.tb-live-imin-only {
  position: relative;
  z-index: 3;
  isolation: isolate;
}
.tb-live-imin-only .tb-live-im-in {
  position: relative;
  z-index: 4;
}

.tb-live-bros-grid .tb-live-bro {
  background: transparent;
  border: none;
  padding: 0;
  justify-content: center;
}
 .tb-live-face {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  filter: none;
}

/* Tour host idle — #tb-tour-host only. Breath + irregular one-shots. Not a metronome. */
.tb-guide-thunder.tb-host-alive {
  transform-origin: 50% 85%;
  animation: tbHostBreath 5.7s ease-in-out infinite !important;
  will-change: transform, filter;
}
@keyframes tbHostBreath {
  0%, 100% { transform: translateY(0) rotate(var(--host-rot, 0deg)); }
  50% { transform: translateY(-2px) rotate(var(--host-rot, 0deg)); }
}
.tb-host-arrive { --host-rot: 0deg; }
.tb-host-lockin { --host-rot: 1.4deg; }
.tb-host-brotherhood { --host-rot: 1.1deg; }
.tb-host-watch { --host-rot: 1.2deg; }
.tb-host-think { --host-rot: -1.2deg; }
.tb-host-listen { --host-rot: 1.6deg; }
.tb-host-appreciate { --host-rot: 0deg; }
.tb-guide-thunder.tb-host-enter {
  animation: tbHostEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
@keyframes tbHostEnter {
  from { opacity: 0.65; transform: translateY(8px) rotate(var(--host-rot, 0deg)); }
  to { opacity: 1; transform: translateY(0) rotate(var(--host-rot, 0deg)); }
}
.tb-guide-thunder.tb-host-fidget {
  animation: tbHostFidget 0.52s ease !important;
}
@keyframes tbHostFidget {
  0% { transform: translateY(0) rotate(var(--host-rot, 0deg)); }
  35% { transform: translateY(-2px) rotate(calc(var(--host-rot, 0deg) - 1.3deg)); }
  100% { transform: translateY(0) rotate(var(--host-rot, 0deg)); }
}
.tb-guide-thunder.tb-host-sway {
  animation: tbHostSway 1.4s ease-in-out !important;
}
@keyframes tbHostSway {
  0%, 100% { transform: translateY(0) rotate(var(--host-rot, 0deg)); }
  50% { transform: translateY(-1px) rotate(calc(var(--host-rot, 0deg) + 1.5deg)); }
}
.tb-guide-thunder.tb-host-glint {
  filter: brightness(1.22) drop-shadow(0 0 10px rgba(254,241,5,0.55)) !important;
  transition: filter 0.2s ease;
}
.tb-host-appreciate.tb-host-alive {
  animation-duration: 6.4s !important;
}
@media (prefers-reduced-motion: reduce) {
  .tb-guide-thunder.tb-host-alive,
  .tb-guide-thunder.tb-host-enter,
  .tb-guide-thunder.tb-host-fidget,
  .tb-guide-thunder.tb-host-sway {
    animation: none !important;
    filter: none !important;
  }
}

/* Backstage Thunder (FAB) — a little larger, same living idle as tour host */
.thunder-fab {
  width: 74px !important;
  height: 74px !important;
}
.thunder-fab-img {
  width: 68px !important;
  height: 68px !important;
}
.thunder-fab-img.tb-fab-alive {
  animation: none !important;
}
@keyframes tbFabBreath {
  0%, 100% {
    transform: translate(var(--fab-x, 0px), var(--fab-y, 0px)) rotate(var(--fab-r, 0deg)) scale(var(--fab-s, 1));
  }
  35% {
    transform: translate(calc(var(--fab-x, 0px) + 4px), calc(var(--fab-y, 0px) - 7px)) rotate(calc(var(--fab-r, 0deg) + 2deg)) scale(calc(var(--fab-s, 1) * 1.02));
  }
  70% {
    transform: translate(calc(var(--fab-x, 0px) - 3px), calc(var(--fab-y, 0px) - 4px)) rotate(calc(var(--fab-r, 0deg) - 1.5deg)) scale(calc(var(--fab-s, 1) * 1.01));
  }
}
.thunder-fab-img.tb-fab-look {
  filter: drop-shadow(0 0 10px rgba(254,241,5,0.4));
}
.thunder-fab-aura {
  animation: none !important;
  inset: -6px;
}
@media (prefers-reduced-motion: reduce) {
  .thunder-fab-img.tb-fab-alive,
  .thunder-fab-img.tb-host-fidget,
  .thunder-fab-img.tb-host-sway {
    animation: none !important;
  }
}

/* Tour wow v17 — host + function beats only */
.tb-tour-boards .tb-tour-next {
  background: #FEF105 !important;
  color: #000 !important;
  box-shadow: 0 0 18px rgba(254,241,5,0.35);
  letter-spacing: 0.12em;
}
.tb-live-slide.is-on .tb-live-face {
  animation: tbFaceIn 0.35s ease both;
}
@keyframes tbFaceIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.tb-live-slide.is-on .tb-live-code-line {
  animation: tbFaceIn 0.4s ease both;
}
.tb-live-code-line:nth-child(2) { animation-delay: 0.05s; }
.tb-live-code-line:nth-child(3) { animation-delay: 0.12s; }
.tb-live-code-line:nth-child(4) { animation-delay: 0.19s; }
.tb-live-code-line:nth-child(5) { animation-delay: 0.26s; }
.tb-live-code-line:nth-child(6) { animation-delay: 0.33s; }
.tb-live-mem-shot {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #111;
  border-radius: 8px;
  padding: 2px;
}
.tb-live-ask {
  margin: 8px 0 10px;
  background: #FEF105;
  color: #000;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 14px 10px;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(254,241,5,0.35);
}
.tb-tour-boards .tb-live-logo {
  width: min(86%, 240px) !important;
  margin: 8px auto;
}
@media (prefers-reduced-motion: reduce) {
  .tb-live-slide.is-on .tb-live-face,
  .tb-live-slide.is-on .tb-live-code-line { animation: none !important; }
}

/* Director hires: crisp marks, smoother arrive, GPU-composite */
#header-logo,
.splash-logo,
.tb-guide-thunder,
.thunder-fab-img,
.thunder-ask-hero-img,
.tb-live-logo,
.tb-live-face {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: auto;
}
.view.view-enter {
  animation: viewEnter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
@keyframes viewEnter {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.view.view-swipe-in {
  animation: viewSwipeIn 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.card, .next-meeting, .announcement-card {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Beat 2 jumble kill — date, venue, label each own a line. No stacked slides. */
body.tb-tour-open #main-header { visibility: hidden !important; pointer-events: none !important; }
.tb-tour-boards .tb-live-slide {
  position: relative !important;
  inset: auto !important;
  display: none !important;
  opacity: 1 !important;
  pointer-events: none !important;
  background: transparent !important;
  transition: none !important;
}
.tb-tour-boards .tb-live-slide.is-on {
  display: block !important;
  pointer-events: auto !important;
}
.tb-live-imin-only {
  isolation: isolate;
  background: #111 !important;
}
.tb-live-imin-only .tb-live-label,
.tb-live-imin-only .tb-live-date,
.tb-live-imin-only .tb-live-loc,
.tb-live-imin-only .tb-live-im-in {
  position: relative !important;
  display: block !important;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  line-height: 1.25;
}
.tb-live-imin-only .tb-live-label {
  color: #FEF105 !important;
  margin-bottom: 8px;
}
.tb-live-imin-only .tb-live-date {
  color: #fff !important;
  margin: 0 0 4px !important;
  font-size: 17px;
}
.tb-live-imin-only .tb-live-loc {
  color: #888 !important;
  margin: 0 0 12px !important;
}

.tb-live-bros-grid .tb-live-face {
  width: 78px !important;
  height: 78px !important;
  filter: none !important;
}

/* Slide 1 — zoom in, gentleman head-tip, then float. No spin. */
/* Slide 1 — zoom in, forehead toward viewer (dramatic gentleman nod), then a real float. */
.tb-tour-stage[data-board="0"] .tb-tour-hero {
  perspective: 520px;
  perspective-origin: 72% 38%;
}
.tb-tour-stage[data-board="0"] #tb-tour-host.tb-guide-thunder.tb-host-alive {
  width: min(46vw, 168px) !important;
  transform-origin: 50% 88%;
  transform-style: preserve-3d;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  animation:
    tbHostZoomTip 3.4s cubic-bezier(0.25, 0.1, 0.25, 1) 1 forwards,
    tbHostFloatNotice 2.4s ease-in-out 3.45s infinite !important;
}
@keyframes tbHostZoomTip {
  0%   { transform: scale(0.22) rotateX(0deg) rotateZ(0deg) translateZ(0); opacity: 0.2; }
  26%  { transform: scale(1.04) rotateX(0deg) rotateZ(0deg) translateZ(0); opacity: 1; }
  46%  { transform: scale(1.22) rotateX(-32deg) rotateZ(-6deg) translateZ(56px); }
  70%  { transform: scale(1.22) rotateX(-32deg) rotateZ(-6deg) translateZ(56px); }
  100% { transform: scale(1) rotateX(0deg) rotateZ(0deg) translateZ(0); }
}
@keyframes tbHostFloatNotice {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.05); }
}
@keyframes tbHostFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Brothers slide — no guide. Grid is the show. Copy stays. */
.tb-tour-stage[data-board="2"] .tb-tour-hero {
  margin-bottom: 2px;
}
.tb-tour-stage[data-board="2"] .tb-guide-bubble {
  padding: 8px 10px;
}
.tb-tour-stage[data-board="2"] #tb-tour-host.tb-guide-thunder {
  display: none !important;
}
.tb-tour-stage[data-board="2"] .tb-phone {
  width: min(90%, 300px) !important;
  padding: 8px 8px 6px !important;
  flex: 1 1 auto;
  min-height: 0;
}
.tb-tour-stage[data-board="2"] .tb-live-bros-grid {
  gap: 0 !important;
}
.tb-tour-stage[data-board="2"] .tb-live-bros-grid .tb-live-face {
  width: 78px !important;
  height: 78px !important;
  filter: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .tb-tour-stage[data-board="0"] #tb-tour-host.tb-guide-thunder.tb-host-alive,
  .tb-tour-stage[data-board="1"] #tb-tour-host.tb-guide-thunder.tb-host-alive,
  .tb-tour-stage[data-board="2"] #tb-tour-host.tb-guide-thunder.tb-host-alive {
    animation: none !important;
  }
}

.tb-tour.tb-tour-slides {
  align-items: stretch !important;
  padding: max(52px, env(safe-area-inset-top)) 10px max(18px, env(safe-area-inset-bottom)) !important;
}
.tb-tour-boards .tb-tour-stage {
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.tb-tour-boards .tb-tour-actions {
  flex-shrink: 0 !important;
  position: sticky;
  bottom: 0;
  background: #000;
  z-index: 6;
  padding-bottom: 10px !important;
}
.tb-tour-boards .tb-tour-slide-frame {
  max-height: none !important;
  overflow: visible !important;
}
.tb-live-face,
.tb-live-bros-grid .tb-live-face {
  filter: none !important;
}

/* Home announcements: ONLY the word ANNOUNCEMENT pulses. Title and card sit still. */
.announcement-card,
.announcement-card.announcement-new {
  animation: none !important;
  box-shadow: none !important;
  border: 1px solid #222 !important;
  border-left: 3px solid #FEF105 !important;
}
.announcement-card h3 {
  animation: none !important;
  text-shadow: none !important;
  color: #fff !important;
  opacity: 1 !important;
  filter: none !important;
}
.announcement-card-label {
  animation: brotherNamePulse var(--tb-breathe) !important;
  color: #FEF105 !important;
  text-shadow:
    0 0 8px rgba(254, 241, 5, 0.55),
    0 0 16px rgba(254, 241, 5, 0.25) !important;
}
@media (prefers-reduced-motion: reduce) {
  .announcement-card-label { animation: none !important; text-shadow: none !important; }
}

/* CARDINAL: labels glow+pulse. Titles and body never do. */
.card-label,
.last-fire-label,
.announcement-card-label,
.info-detail-label,
.tb-live-label,
.alerts-card .card-label {
  animation: brotherNamePulse var(--tb-breathe) !important;
  color: #FEF105 !important;
  text-shadow:
    0 0 8px rgba(254, 241, 5, 0.55),
    0 0 16px rgba(254, 241, 5, 0.25) !important;
}
h1, h2, h3,
.announcement-card h3,
.event-details h3,
.info-detail-title,
.tb-tour-headline,
.tb-tour-sub,
.brother-detail-name,
.cal-confirm-title,
.modal-header h2,
.iron-title,
.mission-title,
.meeting-date,
.meeting-countdown,
.auth-card h2,
#auth-title {
  animation: none !important;
  text-shadow: none !important;
  color: #fff !important;
  filter: none !important;
}
.announcement-card p,
.info-detail-body,
.tb-tour-body,
.brother-bio,
.about-text,
.iron-excerpt {
  animation: none !important;
  text-shadow: none !important;
}
.qr-label,
.file-label,
.field-label,
.activity-feed-close-label {
  animation: none !important;
  text-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .card-label,
  .last-fire-label,
  .announcement-card-label,
  .info-detail-label,
  .tb-live-label,
  .alerts-card .card-label {
    animation: none !important;
    text-shadow: none !important;
  }
}

/* Ask Thunder — die-cut tuxedo, no rectangle */
.thunder-ask-hero {
  background: transparent !important;
  overflow: visible !important;
}
.thunder-ask-hero-img {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  mix-blend-mode: normal;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.55)) drop-shadow(0 0 14px rgba(254,241,5,0.22)) !important;
}

/* Thunder always the top layer in the tour — nod must never clip through a frame */
.tb-tour-boards .tb-tour-stage {
  overflow: visible !important;
}
.tb-tour-boards .tb-tour-hero {
  overflow: visible !important;
  position: relative;
  z-index: 12;
}
.tb-tour-boards .tb-guide-bubble {
  position: relative;
  z-index: 1;
}
#tb-tour-host,
.tb-tour-boards #tb-tour-host.tb-guide-thunder {
  position: relative !important;
  z-index: 80 !important;
  isolation: isolate;
}
.tb-tour-boards .tb-phone {
  position: relative;
  z-index: 2;
}
.tb-tour-boards .tb-tour-headline,
.tb-tour-boards .tb-tour-sub,
.tb-tour-boards .tb-tour-progress {
  position: relative;
  z-index: 3;
}
.tb-tour-close { z-index: 90; }

/* Slide 1: logo is the star. Thunder is the guide. Never cover the mark. */
.tb-tour-stage[data-board="0"] .tb-tour-hero {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  perspective: none;
  margin: 4px 0 8px;
}
.tb-tour-stage[data-board="0"] #tb-tour-host.tb-guide-thunder {
  order: 0;
  width: 88px !important;
  max-width: 88px;
  z-index: 2 !important;
  margin: 0;
  flex: 0 0 88px;
}
.tb-tour-stage[data-board="0"] .tb-guide-bubble {
  width: auto;
  flex: 1;
  max-width: none;
  z-index: 10 !important;
  position: relative;
}
.tb-tour-boards .tb-tour-dots,
.tb-tour-boards .tb-tour-actions {
  position: relative;
  z-index: 15;
}

/* Slides 4–7 — each beat its own motion, a little more life */
.tb-tour-stage[data-board="3"] #tb-tour-host.tb-guide-thunder.tb-host-alive {
  animation: tbHostMem 5.2s ease-in-out infinite !important;
  transform-origin: 50% 80%;
}
@keyframes tbHostMem {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  20% { transform: translateY(-8px) rotate(6deg) scale(1.04); }
  36% { transform: translateY(-8px) rotate(6deg) scale(1.04); }
  54% { transform: translateY(-4px) rotate(-4deg) scale(1.02); }
  74% { transform: translateY(-12px) rotate(2deg) scale(1.05); }
}

.tb-tour-stage[data-board="4"] #tb-tour-host.tb-guide-thunder.tb-host-alive {
  animation: tbHostListen 4.8s ease-in-out infinite !important;
  transform-origin: 50% 80%;
}
@keyframes tbHostCode {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  22% { transform: translateY(-6px) rotate(-10deg) scale(1.03); }
  38% { transform: translateY(-6px) rotate(-10deg) scale(1.03); }
  58% { transform: translateY(0) rotate(4deg) scale(1); }
  78% { transform: translateY(-9px) rotate(-3deg) scale(1.04); }
}

.tb-tour-stage[data-board="5"] #tb-tour-host.tb-guide-thunder.tb-host-alive {
  animation: tbHostListen 4.8s ease-in-out infinite !important;
  transform-origin: 50% 80%;
}
@keyframes tbHostListen {
  0%, 100% { transform: translateY(0) rotate(4deg) scale(1); }
  18% { transform: translateY(-10px) rotate(10deg) scale(1.06); }
  32% { transform: translateY(-10px) rotate(10deg) scale(1.06); }
  48% { transform: translateY(-3px) rotate(-6deg) scale(1.02); }
  70% { transform: translateY(-12px) rotate(6deg) scale(1.05); }
}

.tb-tour-stage[data-board="5"] #tb-tour-host.tb-guide-thunder.tb-host-alive {
  animation: tbHostBond 5.2s ease-in-out infinite !important;
  transform-origin: 50% 88%;
}
@keyframes tbHostBond {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.01); }
}

@media (prefers-reduced-motion: reduce) {
  .tb-tour-stage[data-board="3"] #tb-tour-host.tb-guide-thunder.tb-host-alive,
  .tb-tour-stage[data-board="4"] #tb-tour-host.tb-guide-thunder.tb-host-alive,
  .tb-tour-stage[data-board="5"] #tb-tour-host.tb-guide-thunder.tb-host-alive,
  .tb-tour-stage[data-board="5"] #tb-tour-host.tb-guide-thunder.tb-host-alive {
    animation: none !important;
  }
}

/* Final slide — tuxedo Thunder, Ask Thunder page energy, Bond idle */
.tb-tour-stage[data-board="5"] .tb-phone { display: none !important; }
.tb-tour-stage[data-board="5"] .tb-tour-hero {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tb-tour-stage[data-board="5"] #tb-tour-host.tb-guide-thunder,
.tb-tour-stage[data-board="5"] #tb-tour-host.tb-host-bond {
  order: -1;
  width: min(70vw, 240px) !important;
  max-width: 240px !important;
  max-height: 44vh !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
  background: transparent !important;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.55)) drop-shadow(0 0 14px rgba(254,241,5,0.2)) !important;
  z-index: 2 !important;
}
.tb-tour-stage[data-board="5"] .tb-guide-bubble {
  width: 100%;
  z-index: 10 !important;
}

/* 007 staging — finale + Ask Thunder only. Ring, not a logo. */
.tb-tour-stage[data-board="5"] .tb-tour-hero {
  position: relative;
}
.tb-tour-stage[data-board="5"] .tb-tour-hero::before,
.thunder-ask-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(56vw, 210px);
  height: min(56vw, 210px);
  transform: translate(-50%, -58%);
  border-radius: 50%;
  border: 1.5px solid rgba(254, 241, 5, 0.32);
  box-shadow:
    0 0 28px rgba(254, 241, 5, 0.12),
    inset 0 0 40px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
}
.thunder-ask-hero {
  position: relative;
  overflow: visible !important;
}
.thunder-ask-hero-img {
  position: relative;
  z-index: 2;
}
.tb-tour-stage[data-board="5"] #tb-tour-host {
  position: relative;
  z-index: 2;
}
.tb-tour-stage[data-board="5"] #tb-tour-host.tb-guide-thunder.tb-host-alive {
  animation: tbHostBond 6.4s ease-in-out infinite !important;
}

#thunder-fab.tb-fab-acting {
  width: 78px !important;
  height: 78px !important;
}
.thunder-fab-img.tb-fab-act {
  width: 72px !important;
  height: 72px !important;
}
.thunder-fab-img.tb-fab-glint {
  filter: none !important;
  transition: none;
}

/* Special-agent inspect: glasses down, scan the room, 3 seconds */
.thunder-fab-img.tb-fab-inspect {
  animation: tbFabInspect 4.5s ease-in-out 1 forwards !important;
  transform-origin: 50% 55%;
}
@keyframes tbFabInspect {
  0%   { transform: translateY(0) rotate(-2deg) scale(1.02); }
  28%  { transform: translateY(-2px) rotate(9deg) scale(1.05); }
  55%  { transform: translateY(-2px) rotate(-9deg) scale(1.05); }
  78%  { transform: translateY(-1px) rotate(4deg) scale(1.03); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .thunder-fab-img.tb-fab-inspect { animation: none !important; }
}

/* App OPEN — greeting only. Not the waiting arsenal. */
.thunder-fab-img.tb-fab-enter {
  animation: tbFabEnter 2.2s cubic-bezier(0.25, 0.12, 0.25, 1) 1 forwards !important;
  transform-origin: 50% 80%;
}
@keyframes tbFabEnter {
  0%   { transform: scale(0.4) rotate(0deg); opacity: 0.35; }
  38%  { transform: scale(1.08) rotate(0deg); opacity: 1; }
  58%  { transform: scale(1) rotate(-18deg); }
  78%  { transform: scale(1) rotate(-18deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .thunder-fab-img.tb-fab-enter { animation: none !important; }
}

/* Brothers grid — full locked library (hats, facial hair, gear) */
.tb-live-bros-full {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
}
.tb-tour-stage[data-board="2"] .tb-live-bros-full .tb-live-face {
  width: 54px !important;
  height: 54px !important;
  filter: none !important;
}
.tb-tour-stage[data-board="2"] .tb-phone {
  width: min(96%, 340px) !important;
  padding: 6px 4px 4px !important;
}
.tb-tour-stage[data-board="2"] .tb-live-phone-foot { display: none !important; }

/* Brother faces sit on black — no gray cards, no white matte */
.tb-live-bros-grid .tb-live-bro {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.tb-live-face {
  background: transparent !important;
  mix-blend-mode: normal;
}

/* Life-blood bolt: overlay is bolt-only PNG so drop-shadow follows the zig-zag — never a box */
.logo-wrap,
.splash-logo-wrap,
.tb-live-logo-wrap {
  position: relative !important;
}
.tb-logo-bolt-life {
  position: absolute !important;
  left: 32.4% !important;
  top: 2.8% !important;
  width: 31.3% !important;
  height: 83.6% !important;
  object-fit: contain !important;
  pointer-events: none !important;
  z-index: 4 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  animation: headerBoltGlow var(--tb-breathe) !important;
  will-change: filter;
}
@keyframes headerBoltGlow {
  0%, 100% {
    filter:
      drop-shadow(0 0 4px rgba(254, 241, 5, 0.4))
      drop-shadow(0 0 10px rgba(254, 241, 5, 0.2));
  }
  50% {
    filter:
      drop-shadow(0 0 10px rgba(254, 241, 5, 1))
      drop-shadow(0 0 22px rgba(254, 241, 5, 0.65))
      drop-shadow(0 0 8px rgba(255, 160, 0, 0.45));
  }
}
@media (prefers-reduced-motion: reduce) {
  .tb-logo-bolt-life {
    animation: none !important;
    filter: drop-shadow(0 0 8px rgba(254, 241, 5, 0.55));
  }
}

/* Isolated bolt from the authorized mark — NOT an overlay graphic. Same pixels, same box. */
.tb-logo-bolt-life { display: none !important; }
.logo-wrap,
.splash-logo-wrap,
.tb-live-logo-wrap {
  position: relative !important;
  margin-left: auto;
  margin-right: auto;
}
.logo-wrap { width: min(72vw, 320px) !important; }
.splash-logo-wrap { width: min(82vw, 340px) !important; }
.tb-live-logo-wrap { width: min(70%, 260px); }
.logo-wordmark {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  position: relative;
  z-index: 1;
}
.logo-bolt-isolated {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center top !important;
  z-index: 2 !important;
  pointer-events: none !important;
  display: block !important;
  animation: logoBoltLife var(--tb-breathe) !important;
  will-change: filter;
}
@keyframes logoBoltLife {
  0%, 100% {
    filter:
      drop-shadow(0 0 3px rgba(254,241,5,0.35))
      drop-shadow(0 0 8px rgba(254,241,5,0.18));
  }
  50% {
    filter:
      drop-shadow(0 0 10px rgba(254,241,5,0.95))
      drop-shadow(0 0 20px rgba(254,241,5,0.55))
      drop-shadow(0 0 6px rgba(255,140,0,0.4));
  }
}
body.tb-ask-open .logo-wrap { width: min(28vw, 110px) !important; }
@media (prefers-reduced-motion: reduce) {
  .logo-bolt-isolated { animation: none !important; filter: drop-shadow(0 0 8px rgba(254,241,5,0.5)); }
}

/* Brothers grid — light staggered motion, more spotlight */
.tb-tour-stage[data-board="2"] .tb-live-bros-full .tb-live-face {
  width: 58px !important;
  height: 58px !important;
  animation: none !important;
  transform-origin: 50% 70%;
  transform: perspective(220px)
    rotateX(var(--bro-x, 0deg))
    rotateY(var(--bro-y, 0deg))
    rotate(var(--bro-z, 0deg))
    translateY(var(--bro-t, 0px));
  transition: transform 0.55s ease;
}
.tb-live-bros-full .tb-live-bro { perspective: 220px; }
@keyframes tbFaceIdle { 0%, 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tb-tour-stage[data-board="2"] .tb-live-bros-full .tb-live-face { animation: none !important; }
}

/* Brothers beat — guide gone. Copy + the square. */
.tb-tour-stage[data-board="2"] #tb-tour-host {
  display: none !important;
}
.tb-tour-stage[data-board="2"] .tb-tour-hero {
  flex-direction: column;
  width: 100%;
  justify-content: center;
}
.tb-tour-stage[data-board="2"] .tb-guide-bubble {
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding: 8px 12px;
}
.tb-tour-stage[data-board="2"] .tb-guide-bubble::before,
.tb-tour-stage[data-board="2"] .tb-guide-bubble::after {
  display: none !important;
}
.tb-tour-stage[data-board="2"] .tb-phone {
  width: min(94%, 360px) !important;
  max-width: 360px !important;
  flex: 1 1 auto !important;
  min-height: 42vh !important;
  padding: 10px 8px 8px !important;
  margin: 4px auto 0 !important;
}
.tb-tour-stage[data-board="2"] .tb-live-bros-full .tb-live-face {
  width: 64px !important;
  height: 64px !important;
}

/* Brothers — no containers. Faces live on the page. */
.tb-tour-stage[data-board="2"] .tb-phone,
.tb-tour-stage[data-board="2"] .tb-tour-slide-frame,
.tb-tour-stage[data-board="2"] .tb-live-slide,
.tb-tour-stage[data-board="2"] .tb-live-bros,
.tb-tour-stage[data-board="2"] .tb-live-bros-full,
.tb-tour-stage[data-board="2"] .tb-live-bro {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
}
.tb-tour-stage[data-board="2"] .tb-phone {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 6px 0 0 !important;
  flex: 0 0 auto !important;
}
.tb-tour-stage[data-board="2"] .tb-tour-slide-frame::after {
  display: none !important;
}
.tb-tour-stage[data-board="2"] .tb-tour-dots {
  position: relative !important;
  z-index: 6 !important;
  margin: 10px 0 6px !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

/* Authorized complete mark everywhere. Isolated overlay off. */
.logo-bolt-isolated { display: none !important; }
#header-logo,
.splash-logo,
.tb-live-logo {
  animation: logoMarkLife var(--tb-breathe) !important;
  will-change: filter;
}
@keyframes logoMarkLife {
  0%, 100% {
    filter:
      drop-shadow(0 0 3px rgba(254,241,5,0.3))
      drop-shadow(0 0 8px rgba(254,241,5,0.12));
  }
  50% {
    filter:
      drop-shadow(0 0 8px rgba(254,241,5,0.75))
      drop-shadow(0 0 18px rgba(254,241,5,0.35));
  }
}
/* Ask Thunder — tiny header, Bond gets the room */
body.tb-ask-open .logo-wrap {
  width: min(22vw, 84px) !important;
}
body.tb-ask-open #header-logo,
body.tb-ask-open .header .logo {
  width: min(22vw, 84px) !important;
  max-width: min(22vw, 84px) !important;
}
@media (prefers-reduced-motion: reduce) {
  #header-logo, .splash-logo, .tb-live-logo { animation: none !important; }
}

/* Bolt action — same pixels as the mark. SONS / OF THUNDER stay still. */
#header-logo,
.splash-logo,
.tb-live-logo {
  animation: none !important;
  filter: none !important;
}
.logo-bolt-life {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center top !important;
  pointer-events: none !important;
  z-index: 5 !important;
  display: block !important;
  visibility: visible !important;
  mix-blend-mode: normal;
  opacity: 1 !important;
  animation: logoBoltBreath var(--tb-breathe) !important;
  will-change: filter;
}
@keyframes logoBoltBreath {
  0%, 100% {
    filter:
      drop-shadow(0 0 5px rgba(254,241,5,0.45))
      drop-shadow(0 0 10px rgba(254,241,5,0.2));
  }
  50% {
    filter:
      drop-shadow(0 0 10px rgba(254,241,5,0.85))
      drop-shadow(0 0 20px rgba(254,241,5,0.4));
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-bolt-life { animation: none !important; filter: drop-shadow(0 0 8px rgba(254,241,5,0.5)); }
}

@media (prefers-reduced-motion: reduce) {
  .view.view-swipe-in-next,
  .view.view-swipe-in-prev { animation: none !important; }
}

.next-meeting .btn-rsvp.confirmed {
  background: #FEF105 !important;
  color: #000 !important;
  border: none !important;
  box-shadow: 0 0 28px rgba(254, 241, 5, 0.4);
  animation: none !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.next-meeting .rsvp-status:not(.hidden) {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FEF105 !important;
}
.in-count {
  margin-top: 14px;
  text-align: center;
}
.in-count-num {
  font-size: 18px;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: #FEF105;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(254, 241, 5, 0.7),
    0 0 18px rgba(254, 241, 5, 0.4);
}
.in-count-names {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #cfcfcf;
  text-transform: uppercase;
}
.install-toast.toast-success {
  background: #111;
  border: 1.5px solid #FEF105;
  color: #FEF105;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 20px rgba(254,241,5,0.25);
}

.memory-viewer-stage {
  overflow: hidden;
  touch-action: manipulation;
}
.memory-viewer-stage img {
  transform-origin: 50% 50%;
  will-change: transform;
}
.memory-viewer.is-zoomed {
  touch-action: none;
}
.brother-detail-photo {
  touch-action: manipulation;
}
.brother-detail.is-zoomed .brother-detail-photo {
  overflow: visible !important;
  z-index: 8;
}

/* THE CODE — identity mark. Brand red, same --tb-breathe. Not a yellow chip. */
#view-about h1.code-title,
#view-about h1.code-title-glow,
h1.about-title.code-title.code-title-glow {
  color: #E30600 !important;
  -webkit-text-fill-color: #E30600 !important;
  animation: codeTitleGlow var(--tb-breathe) !important;
  animation-delay: 0s !important;
  will-change: text-shadow, opacity;
}
@media (prefers-reduced-motion: reduce) {
  #view-about h1.code-title,
  #view-about h1.code-title-glow,
  h1.about-title.code-title.code-title-glow {
    animation: none !important;
    color: #E30600 !important;
    -webkit-text-fill-color: #E30600 !important;
    text-shadow:
      0 0 10px rgba(227, 6, 0, 0.7),
      0 0 22px rgba(227, 6, 0, 0.4);
  }
}

/* First-run tour: no skip, no X, no swipe-away */
body.tb-tour-mandatory .tb-tour-close,
body.tb-tour-mandatory .tb-tour-skip {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* In-app calendar — lives in Thunder Board, not Apple Calendar */
.cal-confirm-title {
  animation: none !important;
  text-shadow: none !important;
  color: #fff !important;
}
#cal-confirm-label {
  text-align: center;
  margin-bottom: 6px;
}
.tb-cal {
  margin: 8px 0 12px;
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 12px 10px 10px;
}
.tb-cal-month {
  text-align: center;
  font-family: var(--font-display, inherit);
  letter-spacing: 0.16em;
  font-size: 13px;
  color: #FEF105;
  margin-bottom: 10px;
}
.tb-cal-dows {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 6px;
}
.tb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 0;
  text-align: center;
}
.tb-cal-cell {
  height: 36px;
  line-height: 36px;
  font-size: 13px;
  font-weight: 600;
  color: #cfcfcf;
}
.tb-cal-cell.is-empty { visibility: hidden; }
.tb-cal-cell.is-gathering {
  color: #000;
  background: #FEF105;
  border-radius: 50%;
  width: 36px;
  margin: 0 auto;
  font-weight: 800;
  animation: tbCalDay var(--tb-breathe) ease-in-out infinite;
}
@keyframes tbCalDay {
  0%, 100% { box-shadow: 0 0 0 0 rgba(254,241,5,0.2); }
  50% { box-shadow: 0 0 16px 2px rgba(254,241,5,0.55); }
}
.tb-cal-when {
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
}
.tb-cal-loc {
  text-align: center;
  color: #888;
  font-size: 13px;
  margin: 0 0 6px;
}
.tb-cal-alarms {
  text-align: center;
  color: #666;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}
@media (prefers-reduced-motion: reduce) {
  .tb-cal-cell.is-gathering { animation: none; }
}

.file-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.file-row .file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
}
.file-row .file-label-cam {
  border-color: #E30600;
  color: #fff;
}

.home-a2hs {
  margin: 8px 0 14px;
  padding: 12px 12px 10px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
}
.home-a2hs.hidden { display: none !important; }
.home-a2hs-copy {
  margin: 0 0 10px;
  color: #ddd;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}
.home-a2hs-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.home-a2hs-put {
  background: #E30600;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 12px;
}
.home-a2hs-later {
  background: transparent;
  color: #888;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 12px;
}
.cal-a2hs-btn { margin-top: 8px; }

.room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 14px;
}
.room-stat {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.room-stat b {
  display: block;
  font-size: 28px;
  color: #FEF105;
  font-weight: 800;
}
.room-stat span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #888;
}
.room-origin {
  text-align: center;
  color: #666;
  font-size: 12px;
  margin: 0 0 10px;
}
.room-in, .room-bday {
  color: #ccc;
  font-size: 14px;
  line-height: 1.4;
  margin: 8px 0 0;
}
.cal-a2hs-btn { margin-top: 8px; }

#admin-room-modal .modal-content { max-height: 90vh; overflow-y: auto; }
.room-list { margin-top: 8px; }
.room-person {
  padding: 10px 0;
  border-bottom: 1px solid #1c1c1c;
}
.room-person.is-in .room-person-name { color: #FEF105; }
.room-person-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
}
.room-person-meta {
  color: #888;
  font-size: 12px;
  margin-top: 2px;
}
.room-mems { margin: 6px 0 12px; }
.room-mem { color: #bbb; font-size: 13px; padding: 4px 0; }

.thunder-fab-aura { display: none !important; }
.thunder-fab {
  width: 88px !important;
  height: 88px !important;
}
.thunder-fab-img {
  width: 80px !important;
  height: 80px !important;
  filter: none !important;
}
.thunder-fab-img.tb-fab-look { filter: none !important; }
.thunder-fab-img.tb-fab-twirl {
  animation: tbFabTwirl 1.4s ease-in-out;
  transform-origin: 50% 55%;
}
@keyframes tbFabTwirl {
  0% { transform: rotate(0deg) scale(1); }
  40% { transform: rotate(-18deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}
.fab-bubble {
  position: absolute;
  right: -4px;
  left: auto;
  bottom: calc(100% + 14px);
  width: max-content;
  max-width: min(260px, 74vw);
  background: #111;
  color: #fff;
  border: 1.5px solid #FEF105;
  border-radius: 16px 16px 16px 6px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: left;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transform-origin: 85% 100%;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
}
.fab-bubble.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.fab-bubble::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #111;
  border-right: 1.5px solid #FEF105;
  border-bottom: 1.5px solid #FEF105;
  transform: rotate(45deg);
}
.fab-bubble.hidden { display: none !important; }
.thunder-fab { overflow: visible !important; }
.thunder-fab.tb-fab-by-imin {
  z-index: 160;
}
@media (prefers-reduced-motion: reduce) {
  .thunder-fab-img.tb-fab-twirl { animation: none !important; }
}

.thunder-fab-aura { display: none !important; animation: none !important; }
#view-home .next-meeting { padding-right: 92px; }
.thunder-fab-img,
.thunder-fab-img.tb-fab-alive,
.thunder-fab-img.tb-fab-look,
.thunder-fab-img.tb-fab-act,
.thunder-fab-img.tb-fab-inspect {
  filter: none !important;
}

.tb-tour-stage[data-board="2"] .tb-live-bros-full .tb-live-face,
.tb-tour-stage[data-board="2"] .tb-live-bros-grid .tb-live-face {
  width: 108px !important;
  height: 108px !important;
}
.tb-tour-stage[data-board="2"] .tb-live-bros-full {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  padding: 8px 4px !important;
}

.tb-live-drop {
  margin: 14px 8px 4px;
  background: #E30600;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  padding: 14px 12px;
  border-radius: 10px;
}
.tb-tour-stage[data-board="3"] .tb-live-mem-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 10px 4px 0;
}
.tb-tour-stage[data-board="3"] .tb-live-mem-shot {
  display: block !important;
  width: 100% !important;
  height: 88px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  background: #111 !important;
}
.tb-tour-stage[data-board="3"] .tb-live-phone-foot {
  display: none !important;
}

.tb-tour-stage.tb-finale-leave .tb-phone,
.tb-tour-stage.tb-finale-leave #tb-tour-host,
.tb-tour-stage.tb-finale-leave .tb-guide-bubble {
  opacity: 0 !important;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: none;
}
.tb-tour-stage[data-board="5"] .tb-phone {
  display: none !important;
}
.tb-tour-stage[data-board="5"] #tb-tour-host.tb-guide-thunder.tb-host-alive,
.tb-tour-stage[data-board="5"] #tb-tour-host.tb-host-bond {
  animation: none !important;
}
.tb-tour-stage[data-board="5"] #tb-tour-host.tb-host-bond-pop {
  animation:
    tbBondPop 0.88s cubic-bezier(0.16, 1, 0.3, 1) 1 both,
    tbHostBond 6.8s ease-in-out 0.9s infinite !important;
  transform-origin: 50% 88%;
}
@keyframes tbBondPop {
  0%   { opacity: 0; transform: translateY(64px) scale(0.7); }
  62%  { opacity: 1; transform: translateY(-8px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tb-tour-stage[data-board="5"] #tb-tour-host.tb-host-bond-pop { animation: none !important; }
}

#thunder-fab .thunder-fab-img.tb-fab-alive {
  animation: none !important;
  will-change: transform;
}
#thunder-fab .thunder-fab-img.tb-fab-twirl {
  animation: tbFabTwirl 1.4s ease-in-out !important;
}

@property --fab-r { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --fab-x { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fab-y { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fab-s { syntax: "<number>"; inherits: false; initial-value: 1; }

.axum-chip {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  background: #111;
  color: #FEF105;
  border: 1px solid #FEF105;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.axum-chip.hidden { display: none !important; }
.axum-drop, .axum-card {
  position: fixed;
  inset: 0;
  z-index: 240;
}
.axum-drop-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,0.72);
}
.axum-drop-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(18px + var(--safe-bottom, 0px));
  background: #0a0a0a;
  border: 1.5px solid #FEF105;
  border-radius: 16px;
  padding: 22px 18px 16px;
  text-align: center;
}
.axum-drop-thunder { width: 72px; height: 72px; margin: 0 auto 8px; display: block; }
.axum-drop-kicker, .axum-card-kicker {
  color: #FEF105;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
}
.axum-drop-title, .axum-card-title {
  color: #FEF105;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.axum-drop-sub, .axum-card-place { color: #fff; font-weight: 800; letter-spacing: 0.14em; margin-top: 4px; }
.axum-drop-line { color: #999; font-size: 13px; margin: 10px 0 14px; }
.axum-drop-addr { color: #777; font-size: 12px; margin-top: 10px; letter-spacing: 0.08em; }
.axum-card {
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 22px 28px;
  text-align: center;
}
.axum-card.hidden, .axum-drop.hidden { display: none !important; }
.axum-card-close {
  position: absolute;
  top: calc(10px + var(--safe-top, 0px));
  right: 14px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
}
.axum-card-city { color: #888; font-size: 12px; letter-spacing: 0.16em; margin-top: 4px; }
.axum-code {
  color: #FEF105;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.28em;
  margin-top: 4px;
}
.axum-name { color: #fff; font-weight: 800; letter-spacing: 0.18em; margin-top: 10px; }
.axum-hint { color: #aaa; font-size: 13px; margin: 8px 0 16px; }
.axum-fine { color: #666; font-size: 11px; margin-top: 12px; }
.axum-card.is-used .axum-qr { opacity: 0.25; filter: grayscale(1); }
.axum-card.is-used .axum-code { text-decoration: line-through; color: #666; }
.axum-card.is-used::after {
  content: "USED";
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  color: #E30600;
  border: 3px solid #E30600;
  padding: 6px 16px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.12em;
  pointer-events: none;
}
.btn-here {
  width: 100%;
  margin-top: 10px;
  background: #E30600;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.btn-here.hidden, .here-status.hidden, .raffle-board.hidden { display: none !important; }
.here-status {
  text-align: center;
  margin-top: 10px;
  color: #FEF105;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 13px;
}
.raffle-board {
  text-align: center;
  margin-top: 8px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 12px;
}
.btn-drop-shot {
  width: 100%;
  margin-top: 10px;
  background: #111;
  color: #FEF105;
  border: 1px solid #FEF105;
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.btn-drop-shot.hidden { display: none !important; }
.last-fire-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.memories-block { margin: 4px 0 28px; }
.memories-block .card-label {
  margin-bottom: 6px;
}
.memories-lead {
  color: #888;
  font-size: 14px;
  margin: 0 0 14px;
}
.memories-block .btn-rsvp {
  width: 100%;
}
.btn-mem-lib {
  display: block;
  width: 100%;
  margin: 10px 0 16px;
  background: none;
  border: 0;
  color: #666;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.media-hero {
  margin-bottom: 8px;
}
.media-hero.hidden { display: none !important; }
.media-thumb-hero {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 14px;
}
.events-subhead {
  margin-top: 8px;
}
.events-subhead h1 {
  font-size: 18px;
  letter-spacing: 0.14em;
}
label.btn-rsvp, label.btn-drop-shot {
  display: block;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}
.memory-cam-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* SPOTLIGHT LAW: feature in front. Bubble never covers it. Rest is shadow. */
.tb-tour-boards .tb-phone {
  display: block !important;
  position: relative !important;
  z-index: 6;
  filter: none;
  opacity: 1;
}
.tb-tour-boards .tb-tour-headline,
.tb-tour-boards .tb-tour-sub,
.tb-tour-boards .tb-tour-progress {
  opacity: 0.42;
}
.tb-tour-boards .tb-tour-slide-frame,
.tb-tour-boards .tb-live-slide.is-on {
  position: relative;
  z-index: 7;
}
.tb-tour-boards .tb-phone .tb-guide-bubble {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  z-index: 4 !important;
  margin: 0 0 12px !important;
  pointer-events: none !important;
}
.tb-tour-boards .tb-tour-hero {
  justify-content: center;
}
.fab-bubble {
  pointer-events: none !important;
}
.fab-bubble.is-on {
  pointer-events: auto !important;
  cursor: pointer;
}

/* Splash mark: dead-center of the phone on first paint. Must HIDE when done.
   Later .splash { display:flex !important } was beating .splash-done { display:none }. */
.splash:not(.splash-done):not(.hidden) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  padding-top: 0 !important;
  inset: 0 !important;
}
.splash.splash-done,
.splash.hidden,
#splash.splash-done {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
.splash-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 !important;
  transform-origin: center center;
}
.splash-logo-wrap {
  margin: 0 auto !important;
  transform: translateY(-5vh);
}
.splash-line.hidden { display: none !important; }


/* CARDINAL: modal titles white + still. Labels yellow + pulse. */
.info-detail-label,
.announcement-card-label,
.card-label,
.tb-live-label,
.last-fire-label {
  animation: brotherNamePulse var(--tb-breathe) !important;
  color: #FEF105 !important;
  text-shadow:
    0 0 8px rgba(254, 241, 5, 0.55),
    0 0 16px rgba(254, 241, 5, 0.25) !important;
}
#info-detail-title,
.info-detail-title,
.info-detail-panel .info-detail-title,
.modal-header h2,
.cal-confirm-title,
.brother-detail-name,
.announcement-card h3,
.event-details h3,
.axum-card-title,
.axum-drop-title,
.mission-title,
.tb-tour-headline,
.tb-tour-sub,
#auth-title,
.auth-card h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  animation: none !important;
  text-shadow: none !important;
  filter: none !important;
}
body.tb-room-cut .home-a2hs,
body.tb-room-cut .home-mission,
body.tb-room-cut .home-personal,
body.tb-room-cut .rsvp-prompt,
body.tb-room-cut #reminder-btn,
body.tb-room-cut #text-leader-btn,
body.tb-room-cut #home-member-cta,
body.tb-room-cut #in-count,
body.tb-room-cut #cal-confirm-sheet,
body.tb-room-cut #drop-shot-btn,
body.tb-room-cut #auth-sub,
body.tb-room-cut #auth-hint {
  display: none !important;
}
.tb-leader-ghost { display: none !important; }

/* Modal labels ONLY — pulse + glow. Titles stay white. */
#info-detail-label,
.info-detail-label,
#cal-confirm-label,
.cal-confirm-label {
  color: #FEF105 !important;
  -webkit-text-fill-color: #FEF105 !important;
  animation: brotherNamePulse var(--tb-breathe) !important;
  text-shadow:
    0 0 8px rgba(254, 241, 5, 0.85),
    0 0 18px rgba(254, 241, 5, 0.45),
    0 0 28px rgba(254, 241, 5, 0.22) !important;
  filter: none !important;
  opacity: 1 !important;
}
@media (prefers-reduced-motion: reduce) {
  #info-detail-label,
  .info-detail-label,
  #cal-confirm-label {
    animation: none !important;
    text-shadow: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .info-detail-label,
  .announcement-card-label {
    animation: none !important;
  }
}

/* LABEL LAW — yellow always, glow breathes. Never share brotherNamePulse (that keyframe goes WHITE at rest). */
@keyframes tbLabelPulse {
  0%, 100% {
    color: #FEF105;
    -webkit-text-fill-color: #FEF105;
    opacity: 0.68;
    text-shadow: 0 0 6px rgba(254, 241, 5, 0.4);
  }
  50% {
    color: #FEF105;
    -webkit-text-fill-color: #FEF105;
    opacity: 1;
    text-shadow:
      0 0 10px rgba(254, 241, 5, 1),
      0 0 22px rgba(254, 241, 5, 0.7),
      0 0 38px rgba(254, 241, 5, 0.35);
  }
}
#meeting-phase-label,
.next-meeting .card-label,
.memories-block .card-label,
.card-label,
.announcement-card-label,
#info-detail-label,
.info-detail-label,
#cal-confirm-label,
.cal-confirm-label,
.last-fire-label,
.event-month {
  color: #FEF105 !important;
  -webkit-text-fill-color: #FEF105 !important;
  animation: tbLabelPulse 4s ease-in-out infinite !important;
  text-shadow: 0 0 6px rgba(254, 241, 5, 0.4) !important;
  filter: none !important;
}
.qr-label,
.file-label,
.field-label,
.activity-feed-close-label {
  animation: none !important;
  color: #8a8a8a !important;
  -webkit-text-fill-color: #8a8a8a !important;
  text-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
  #meeting-phase-label,
  .card-label,
  .announcement-card-label,
  .info-detail-label,
  #info-detail-label,
  .cal-confirm-label,
  .last-fire-label,
  .event-month {
    animation: none !important;
    opacity: 1 !important;
    color: #FEF105 !important;
    -webkit-text-fill-color: #FEF105 !important;
    text-shadow: 0 0 8px rgba(254, 241, 5, 0.55) !important;
  }
}

/* ============================================================
   UPLOAD LOCK 20260820 — labels pulse. titles do not.
   Last rules in the file. Do not add text animation after this.
   ============================================================ */

/* 1. TITLES / BODY — white, still, no glow */
h1:not(.code-title),
h2,
h3,
.section-title,
#announcements-title,
#events-section-title,
#brothers-section-title,
.about-title:not(.code-title),
.info-detail-title,
#info-detail-title,
.mission-title,
#home-mission-title,
#mission-title,
.meeting-date,
.meeting-countdown,
.meeting-time,
.meeting-loc,
.identity-line,
.tb-tour-headline,
.tb-tour-sub,
.tb-tour-body,
.cal-confirm-title,
#cal-confirm-title,
#auth-title,
.auth-card h2,
.modal-header h2,
.install-card-title,
.alerts-card-title,
.ios-install-title,
.brother-detail-bio,
.info-detail-body,
.announcement-card h3,
.announcement-card p,
.event-details h3,
.event-day,
.home-member-cta-title,
.empty-brothers-title,
.empty-memories-title {
  animation: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
  filter: none !important;
}

/* 2. LABELS — yellow, tbLabelPulse (never brotherNamePulse — that keyframe goes white) */
#meeting-phase-label,
.next-meeting .card-label,
.memories-block .card-label,
.home-mission .card-label,
.next-mission .card-label,
.card-label,
.announcement-card-label,
#info-detail-label,
.info-detail-label,
#cal-confirm-label,
.cal-confirm-label,
.last-fire-label,
.event-month,
.tb-live-label,
.happy-birthday-label {
  color: #FEF105 !important;
  -webkit-text-fill-color: #FEF105 !important;
  animation: tbLabelPulse 4s ease-in-out infinite !important;
  text-shadow: 0 0 8px rgba(254, 241, 5, 0.45) !important;
  filter: none !important;
}

/* 3. Form / chrome labels — not the life-blood chip */
.qr-label,
.file-label,
.field-label,
.activity-feed-close-label,
.install-card-sub,
.field-hint {
  animation: none !important;
  color: #8a8a8a !important;
  -webkit-text-fill-color: #8a8a8a !important;
  text-shadow: none !important;
}

/* 4. Locked exceptions (not titles, not generic labels) */
.brother-name {
  animation: brotherNamePulse var(--tb-breathe) !important;
}
#view-about h1.code-title,
#view-about h1.code-title-glow,
h1.about-title.code-title.code-title-glow {
  color: #E30600 !important;
  -webkit-text-fill-color: #E30600 !important;
  animation: codeTitleGlow var(--tb-breathe) !important;
  text-shadow:
    0 0 12px rgba(227, 6, 0, 0.7),
    0 0 28px rgba(227, 6, 0, 0.4) !important;
}
.btn-share,
#brother-share-contact {
  animation: shareContactPulse var(--tb-breathe) !important;
}
.rsvp-status,
#rsvp-status {
  animation: rsvpStatusBreathe var(--tb-breathe) !important;
}

@media (prefers-reduced-motion: reduce) {
  #meeting-phase-label,
  .card-label,
  .announcement-card-label,
  .info-detail-label,
  .tb-live-label,
  .event-month,
  .last-fire-label,
  .brother-name,
  h1.code-title,
  .btn-share,
  .rsvp-status {
    animation: none !important;
  }
}

/* LIVE RAFFLE — locked poster IMG_7854 / assets/raffle-win-lock.jpg
   THE WIN + WINNER + ornate ticket (name + HE'S GOT IT) + host bottom + cast.
   No fake TICKETS/PLAY/LEADERBOARD nav. */
.raffle-live {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 28px;
  overflow: hidden;
  animation: raffleFlashIn 0.38s ease-out;
}
.raffle-live::before {
  content: "";
  position: absolute;
  inset: 12% 8% 28%;
  background: radial-gradient(ellipse at center, rgba(254,241,5,0.16) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.raffle-live.hidden { display: none !important; animation: none; }
.raffle-live-close {
  position: absolute;
  top: calc(10px + var(--safe-top, 0px));
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 22px;
  line-height: 36px;
  z-index: 6;
  cursor: pointer;
}
.raffle-live-inner {
  text-align: center;
  width: min(90vw, 340px);
  position: relative;
  z-index: 3;
  padding-top: 8px;
  padding-bottom: 132px;
}
.raffle-live-kicker {
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: 13px;
  letter-spacing: 0.42em;
  color: #FEF105;
  opacity: 0.85;
  margin-bottom: 4px;
}
.raffle-live:not(.is-landed) .raffle-live-kicker { opacity: 0; }
.raffle-live-prize {
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: #FEF105;
  text-shadow:
    0 0 18px rgba(254,241,5,0.75),
    0 0 42px rgba(254,241,5,0.35);
  margin: 0 0 16px;
}
.raffle-live-window {
  position: relative;
  border: 3px solid #E8B923;
  border-radius: 6px;
  padding: 22px 16px 18px;
  background: #0a0a0a;
  box-shadow:
    0 0 0 1px #FEF105,
    0 0 24px rgba(254,241,5,0.28),
    inset 0 0 0 1px rgba(254,241,5,0.25);
  min-height: 108px;
}
.raffle-live-name {
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: 48px;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
  word-break: break-word;
}
.raffle-live-sub {
  margin-top: 10px;
  color: #888;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.raffle-live.is-landed .raffle-live-sub {
  color: #FEF105;
  letter-spacing: 0.28em;
}
.raffle-live.is-landed .raffle-live-sub::before,
.raffle-live.is-landed .raffle-live-sub::after {
  content: "—";
  padding: 0 8px;
  opacity: 0.7;
}
@keyframes raffleFlashIn {
  0% { opacity: 0; background: rgba(254,241,5,0.22); }
  35% { opacity: 1; }
  100% { opacity: 1; background: #000; }
}
.raffle-live.is-landed { animation: raffleWinFlash 0.5s ease-out; }
@keyframes raffleWinFlash {
  0% { background: #3a3100; }
  100% { background: #000; }
}
@keyframes raffleTicketSlam {
  0% { transform: scale(0.82); }
  48% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.raffle-live.is-landed .raffle-live-name {
  color: #FEF105;
  text-shadow:
    0 0 14px rgba(254,241,5,0.9),
    0 0 36px rgba(254,241,5,0.5);
}
@keyframes raffleNameSlam {
  0% { transform: scale(0.42); opacity: 0.35; }
  55% { transform: scale(1.16); opacity: 1; }
  100% { transform: scale(1); }
}
.raffle-live.is-landed .raffle-live-prize {
  animation: raffleWinLabel 0.55s ease-out both, raffleWinnerParty 1.8s ease-in-out 0.55s infinite;
}
@keyframes raffleWinnerParty {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.18); }
}
.raffle-live.is-landed .raffle-live-kicker {
  animation: brotherNamePulse var(--tb-breathe);
}
.raffle-live.is-landed .raffle-live-window {
  animation: raffleTicketSlam 0.55s cubic-bezier(0.18, 1.4, 0.28, 1) both, raffleTicketBreathe 2.2s ease-in-out 0.55s infinite;
}
@keyframes raffleTicketBreathe {
  0%, 100% { box-shadow: 0 0 0 1px #FEF105, 0 0 24px rgba(254,241,5,0.28), inset 0 0 0 1px rgba(254,241,5,0.25); }
  50% { box-shadow: 0 0 0 1px #FEF105, 0 0 36px rgba(254,241,5,0.5), inset 0 0 0 1px rgba(254,241,5,0.45); }
}
.raffle-live.is-landed .raffle-live-name {
  animation: raffleNameSlam 0.7s cubic-bezier(0.18, 1.55, 0.28, 1) both, raffleNameParty 1.6s ease-in-out 0.7s infinite;
}
@keyframes raffleNameParty {
  0%, 100% { text-shadow: 0 0 14px rgba(254,241,5,0.9), 0 0 36px rgba(254,241,5,0.5); }
  50% { text-shadow: 0 0 22px rgba(254,241,5,1), 0 0 48px rgba(254,241,5,0.7); }
}
.raffle-live.is-landed .raffle-live-host {
  animation: raffleHostNod 1.15s ease-in-out 1 both, raffleHostParty 2.2s ease-in-out 1.15s infinite;
}
@keyframes raffleHostParty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-8px) rotate(-4deg); }
  70% { transform: translateY(-3px) rotate(5deg); }
}
@keyframes raffleWinLabel {
  0% { transform: scale(0.7); opacity: 0.4; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

body.tb-raffle-live #thunder-fab {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}
.raffle-live-host {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: 132px;
  height: 132px;
  margin-left: -66px;
  object-fit: contain;
  z-index: 4;
  pointer-events: none;
  animation: raffleHostEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: drop-shadow(0 0 16px rgba(254,241,5,0.35));
}
@keyframes raffleHostEnter {
  0% { transform: translate(38vw, 12vh) scale(0.42); opacity: 0.25; }
  62% { transform: translate(-4px, -8px) scale(1.08); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes raffleHostNod {
  0% { transform: rotate(0deg) translateY(0) scale(1); }
  32% { transform: rotate(16deg) translateY(10px) scale(1.08); }
  68% { transform: rotate(-6deg) translateY(-4px) scale(1.04); }
  100% { transform: rotate(0deg) translateY(0) scale(1); }
}
.raffle-cast {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.raffle-cast-face {
  position: absolute;
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0;
  animation: raffleCastIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  filter: drop-shadow(0 0 8px rgba(254,241,5,0.25));
}
.raffle-cast-face[data-slot="laugh"] { left: 2%; top: 28%; animation-delay: 0.18s; }
.raffle-cast-face[data-slot="cigar"] { left: 1%; top: 48%; animation-delay: 0.26s; }
.raffle-cast-face[data-slot="hat"] { left: 6%; bottom: 22%; animation-delay: 0.12s; }
.raffle-cast-face[data-slot="beard"] { right: 2%; top: 26%; animation-delay: 0.22s; }
.raffle-cast-face[data-slot="grin"] { right: 1%; top: 48%; animation-delay: 0.34s; }
.raffle-cast-face[data-slot="wink"] { right: 6%; bottom: 22%; animation-delay: 0.4s; }
@keyframes raffleCastIn {
  from { opacity: 0; transform: scale(0.4) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.raffle-live.is-landed .raffle-cast-face[data-slot="laugh"] { animation: raffleCelebrateLaugh 0.55s ease-in-out infinite; }
.raffle-live.is-landed .raffle-cast-face[data-slot="cigar"] { animation: raffleCelebrateCigar 1.35s ease-in-out infinite; }
.raffle-live.is-landed .raffle-cast-face[data-slot="hat"] { animation: raffleCelebrateHat 0.95s ease-in-out infinite; }
.raffle-live.is-landed .raffle-cast-face[data-slot="beard"] { animation: raffleCelebrateBeard 1.15s ease-in-out infinite; }
.raffle-live.is-landed .raffle-cast-face[data-slot="grin"] { animation: raffleCelebrateGrin 0.75s ease-in-out infinite; }
.raffle-live.is-landed .raffle-cast-face[data-slot="wink"] { animation: raffleCelebrateWink 1.2s ease-in-out infinite; }
@keyframes raffleCelebrateLaugh {
  0%, 100% { transform: rotate(-12deg) scale(1) translateY(0); }
  50% { transform: rotate(14deg) scale(1.12) translateY(-6px); }
}
@keyframes raffleCelebrateCigar {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(10deg) translateY(-10px); }
}
@keyframes raffleCelebrateHat {
  0%, 100% { transform: rotate(-16deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-8px); }
}
@keyframes raffleCelebrateBeard {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(6deg); }
}
@keyframes raffleCelebrateGrin {
  0%, 100% { transform: scale(1) rotate(-4deg); }
  50% { transform: scale(1.18) rotate(8deg); }
}
@keyframes raffleCelebrateWink {
  0%, 45%, 55%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.92) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .raffle-live-host, .raffle-cast-face,
  .raffle-live.is-landed .raffle-cast-face[data-slot="laugh"],
  .raffle-live.is-landed .raffle-cast-face[data-slot="cigar"],
  .raffle-live.is-landed .raffle-cast-face[data-slot="hat"],
  .raffle-live.is-landed .raffle-cast-face[data-slot="beard"],
  .raffle-live.is-landed .raffle-cast-face[data-slot="grin"],
  .raffle-live.is-landed .raffle-cast-face[data-slot="wink"],
  .raffle-live.is-landed .raffle-live-window,
  .raffle-live.is-landed .raffle-live-name,
  .raffle-live.is-landed .raffle-live-prize {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  body.tb-raffle-live #thunder-fab { opacity: 0 !important; }
}


/* TOUR CROP FIX 20260820-tourfit1
   Root cause: .bottom-nav z-index 40000 sat ON TOP of the tour (12000),
   plus Thunder at 200px * 1.22 scale blew the card past the Safari viewport.
   Slide 1 must fit: progress, titles, Thunder, bubble, LET'S GO — no crop. */
body.tb-tour-open .bottom-nav,
body.tb-tour-open .thunder-fab,
body.tb-tour-open #thunder-fab {
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
body.tb-tour-open #splash {
  display: none !important;
}
.tb-tour.tb-tour-slides,
#tb-tour.tb-tour {
  z-index: 50000 !important;
  inset: 0 !important;
  height: 100svh !important;
  max-height: 100svh !important;
  padding: max(8px, env(safe-area-inset-top, 8px)) 10px max(8px, env(safe-area-inset-bottom, 8px)) !important;
  align-items: stretch !important;
  justify-content: center !important;
  background: #000 !important;
  box-sizing: border-box;
}
.tb-tour-boards .tb-tour-stage,
.tb-tour-stage {
  width: 100% !important;
  max-width: 430px !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 auto;
  border-radius: 18px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box;
}
.tb-tour-boards .tb-tour-headline,
.tb-tour-boards .tb-tour-sub,
.tb-tour-boards .tb-tour-progress {
  opacity: 1 !important;
  flex-shrink: 0;
}
.tb-tour-boards .tb-tour-headline {
  font-size: clamp(22px, 6.4vw, 32px) !important;
}
.tb-tour-boards .tb-tour-sub {
  font-size: clamp(16px, 5vw, 24px) !important;
  margin: 2px 0 8px !important;
}
.tb-tour-hero {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}
.tb-tour-actions {
  flex-shrink: 0 !important;
  position: relative !important;
  bottom: auto !important;
  margin-top: auto !important;
  background: #000 !important;
  z-index: 20 !important;
  padding: 8px 12px 12px !important;
}
.tb-tour-dots { flex-shrink: 0; }

/* Slide 1: Thunder fits above the bubble. No 200px giant. */
.tb-tour-stage[data-board="0"] .tb-phone {
  display: none !important;
}
.tb-tour-stage[data-board="0"] .tb-tour-hero {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}
.tb-tour-stage[data-board="0"] #tb-tour-host.tb-guide-thunder,
.tb-tour-stage[data-board="0"] #tb-tour-host.tb-guide-thunder.tb-host-alive {
  width: min(34vw, 128px) !important;
  max-width: 128px !important;
  max-height: 26vh !important;
  height: auto !important;
}
.tb-tour-stage[data-board="0"] .tb-guide-bubble {
  width: calc(100% - 8px) !important;
  max-width: 340px !important;
  flex-shrink: 0;
}
@keyframes tbHostZoomTip {
  0%   { transform: scale(0.4) rotateX(0deg) rotateZ(0deg); opacity: 0.25; }
  30%  { transform: scale(1) rotateX(0deg) rotateZ(0deg); opacity: 1; }
  50%  { transform: scale(1.06) rotateX(-18deg) rotateZ(-4deg); }
  78%  { transform: scale(1.06) rotateX(-18deg) rotateZ(-4deg); }
  100% { transform: scale(1) rotateX(0deg) rotateZ(0deg); }
}
@keyframes tbHostFloatNotice {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.03); }
}

/* LAYER LAW 20260820-layers1
   Nav was z-index 40000 and sat on top of tour, Ask Thunder, raffle,
   auth, memories, brother detail, announcements, Axum, install, calendar.
   Stack: content < nav 300 < FAB 350 < sheets 5000+ < tour 50000. */
.bottom-nav { z-index: 300 !important; }
.thunder-fab, #thunder-fab { z-index: 350 !important; }
.modal { z-index: 5000 !important; }
.thunder-modal { z-index: 5200 !important; }
.axum-drop, .axum-card { z-index: 5100 !important; }
.memory-viewer { z-index: 5300 !important; }
.brother-detail { z-index: 5400 !important; }
.info-detail { z-index: 5500 !important; }
.auth-gate { z-index: 5600 !important; }
.cal-confirm-sheet { z-index: 5700 !important; }
.ios-install-overlay { z-index: 5800 !important; }
.welcome { z-index: 5900 !important; }
.raffle-live { z-index: 20000 !important; }
.tb-tour.tb-tour-slides, #tb-tour.tb-tour { z-index: 50000 !important; }

body.tb-tour-open .bottom-nav,
body.tb-ask-open .bottom-nav,
body.tb-raffle-live .bottom-nav,
body:has(#tb-tour:not(.hidden)) .bottom-nav,
body:has(#thunder-modal:not(.hidden)) .bottom-nav,
body:has(#raffle-live:not(.hidden)) .bottom-nav,
body:has(#auth-gate:not(.hidden)) .bottom-nav,
body:has(.memory-viewer:not(.hidden)) .bottom-nav,
body:has(.brother-detail:not(.hidden)) .bottom-nav,
body:has(.info-detail:not(.hidden)) .bottom-nav,
body:has(#install-modal:not(.hidden)) .bottom-nav,
body:has(#axum-drop:not(.hidden)) .bottom-nav,
body:has(#axum-card:not(.hidden)) .bottom-nav,
body:has(.welcome:not(.hidden)) .bottom-nav,
body:has(.cal-confirm-sheet:not(.hidden)) .bottom-nav,
body:has(.ios-install-overlay:not(.hidden)) .bottom-nav,
body:has(#splash:not(.splash-done):not(.hidden)) .bottom-nav {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Tour hosts never blow the Safari viewport on any slide */
.tb-tour-boards #tb-tour-host.tb-guide-thunder,
.tb-tour-boards #tb-tour-host.tb-guide-thunder.tb-host-alive,
.tb-tour-stage[data-board="5"] #tb-tour-host.tb-guide-thunder,
.tb-tour-stage[data-board="5"] #tb-tour-host.tb-host-bond {
  max-height: 28vh !important;
  max-width: min(42vw, 148px) !important;
  width: min(42vw, 148px) !important;
}

body.tb-imin-a2hs-open .bottom-nav,
body:has(#imin-a2hs-sheet:not(.hidden)) .bottom-nav {
  visibility: hidden !important;
  pointer-events: none !important;
}
#home-a2hs { display: none !important; }
#imin-a2hs-sheet { z-index: 5750 !important; }
#imin-a2hs-label {
  animation: brotherNamePulse var(--tb-breathe);
}

/* PROFILE CARD — one column, never a split crop */
.brother-detail {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
.brother-detail-panel {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: min(100%, 360px) !important;
  max-width: 100% !important;
  margin: 12px auto 24px !important;
  overflow: visible !important;
}
#brother-share-contact,
.brother-detail .btn-share {
  display: block !important;
  width: calc(100% - 36px) !important;
  margin: 8px 18px 12px !important;
  box-sizing: border-box !important;
}
.brother-qr-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 4px auto 18px !important;
  padding: 0 16px 8px !important;
  float: none !important;
  position: relative !important;
}
.qr-stage-inline,
.qr-stage-inline .qr-code-target {
  width: 200px !important;
  height: 200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.qr-stage-inline {
  width: 240px !important;
  height: 240px !important;
  padding: 14px !important;
  box-sizing: content-box !important;
  background: #fff !important;
}
.qr-stage-inline .qr-code-target {
  width: 240px !important;
  height: 240px !important;
}
.qr-stage-inline .qr-code-target img,
.qr-stage-inline .qr-code-target canvas,
.qr-stage-inline .qr-code-target table {
  max-width: 240px !important;
  max-height: 240px !important;
  width: 240px !important;
  height: 240px !important;
}
.qr-stage-inline .qr-bolt-pad {
  width: 34px !important;
  height: 34px !important;
}

/* POPOUT FIT LAW — every overlay is one column on a 375px phone. Nothing crops off-screen. */
.brother-detail,
.info-detail,
.modal,
.auth-gate,
.cal-confirm-sheet,
.ios-install-overlay,
.memory-viewer,
#imin-a2hs-sheet {
  flex-direction: column !important;
  align-items: center !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  max-width: 100vw !important;
}
.brother-detail-panel,
.info-detail-panel,
.auth-card,
.cal-confirm-panel,
.ios-install-panel,
.axum-drop-sheet {
  width: min(100%, 400px) !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.modal-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.qr-stage,
.qr-stage-inline,
.brother-qr-wrap,
.axum-qr,
#axum-qr,
#brother-qr-wrap {
  max-width: 100% !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
}
.file-row,
.home-a2hs-actions,
.install-card-actions,
.ios-coach-actions,
.auth-actions {
  flex-wrap: wrap !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.brother-detail .btn-share,
.brother-detail .btn-contact,
#brother-share-contact {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* I'M IN vault — live coal, bolt strike, yellow settle. Button is the trophy. */
#rsvp-btn.btn-rsvp {
  position: relative;
  overflow: visible;
}
#rsvp-btn.btn-rsvp:not(.confirmed) {
  background: #E30600;
  animation: iminCoal 4s ease-in-out infinite;
}
@keyframes iminCoal {
  0%, 100% { box-shadow: 0 0 8px rgba(227,6,0,0.28), inset 0 0 10px rgba(254,241,5,0.06); }
  50% { box-shadow: 0 0 22px rgba(227,6,0,0.55), inset 0 0 16px rgba(254,241,5,0.2); }
}
#rsvp-btn.btn-rsvp.imin-strike::after {
  content: "";
  position: absolute;
  left: 38%;
  right: 38%;
  top: -18%;
  bottom: -18%;
  background: linear-gradient(180deg, transparent 0%, #FEF105 35%, #fff6c2 50%, #FEF105 65%, transparent 100%);
  clip-path: polygon(48% 0%, 62% 32%, 54% 32%, 72% 100%, 40% 52%, 50% 52%, 36% 0%);
  mix-blend-mode: screen;
  animation: iminBolt 0.45s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}
@keyframes iminBolt {
  0% { opacity: 0; transform: translateY(-24%) scaleY(0.35); }
  32% { opacity: 1; transform: translateY(0) scaleY(1); }
  100% { opacity: 0; transform: translateY(18%) scaleY(1.08); }
}
#rsvp-btn.btn-rsvp.confirmed {
  background: #FEF105 !important;
  color: #000 !important;
  border: none !important;
  animation: iminLockedBreathe 4s ease-in-out infinite !important;
}
@keyframes iminLockedBreathe {
  0%, 100% { box-shadow: 0 0 12px rgba(254,241,5,0.28); }
  50% { box-shadow: 0 0 22px rgba(254,241,5,0.5); }
}
#rsvp-btn.btn-rsvp.confirmed.imin-afterglow {
  animation: iminVault 1.1s ease-out forwards !important;
}
@keyframes iminVault {
  0% { box-shadow: 0 0 8px rgba(254,241,5,0.2); }
  40% { box-shadow: 0 0 34px rgba(254,241,5,0.72); }
  100% { box-shadow: 0 0 16px rgba(254,241,5,0.38); }
}
@media (prefers-reduced-motion: reduce) {
  #rsvp-btn.btn-rsvp:not(.confirmed),
  #rsvp-btn.btn-rsvp.confirmed,
  #rsvp-btn.btn-rsvp.confirmed.imin-afterglow {
    animation: none !important;
  }
  #rsvp-btn.btn-rsvp.imin-strike::after { display: none !important; }
}

/* More — invite + share cards: copy and red CTAs centered */
#view-about .install-card-more,
#view-about .invite-card {
  text-align: center;
}
#view-about .install-card-more .install-card-row,
#view-about .invite-card .install-card-row {
  justify-content: center;
  text-align: center;
}
#view-about .install-card-more .install-card-body,
#view-about .invite-card .install-card-body {
  width: 100%;
  text-align: center;
}
#view-about .install-card-more .install-card-title,
#view-about .install-card-more .install-card-sub,
#view-about .invite-card .install-card-title,
#view-about .invite-card .install-card-sub {
  text-align: center;
}
#view-about .install-card-more .install-card-actions,
#view-about .invite-card .install-card-actions {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  grid-template-columns: none !important;
  width: 100%;
}
#view-about .install-card-more .install-card-btn,
#view-about .invite-card .install-card-btn {
  width: 100% !important;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* More is the tool room. Thunder stays off TAKE THE TOUR. */
body.tb-view-about #thunder-fab,
body.tb-view-about #fab-bubble {
  display: none !important;
}

/* 1) Splash hide always wins */
.splash.splash-done,
.splash.hidden,
#splash.splash-done {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* 4) Full bio. Sticky wordmark cannot punch through the sheet. */
.brother-detail-bio {
  max-height: none !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
}
body:has(.brother-detail:not(.hidden)) #main-header {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 6) Sticky mark stays in its bar. Home cards read clean. */
#main-header.header,
#main-header {
  overflow: hidden !important;
  background: #000 !important;
}
#view-home,
#view-home .feed,
#view-home .announcement-card {
  position: relative;
  z-index: 1;
}


