/* ============================================
   AFFICTIONATE — Visual novel landing page styles
   Uses shared.css for variables, reset, nav, footer.
   ============================================ */

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.7;
  padding-bottom: 6rem;
}

/* ============================================
   HERO
   ============================================ */
.aff-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 3rem 3rem 2rem;
  z-index: 1;
}

.aff-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
  max-width: 90rem;
  margin: 0 auto;
  width: 100%;
}

.aff-hero-left {
  position: relative;
  z-index: 3;
  opacity: 0;
  animation: affFadeUp 1s ease-out 0.2s forwards;
}

@keyframes affFadeUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.aff-logo {
  display: block;
  width: 100%;
  max-width: 38rem;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px rgba(232,54,143,0.25));
}

.aff-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  line-height: 1.4;
  color: var(--bi-purple-soft);
  margin-bottom: 1.5rem;
  max-width: 32rem;
  text-shadow: 0 0 25px rgba(168,85,199,0.25);
}

.aff-story {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 2rem;
  max-width: 32rem;
}

/* CTA buttons */
.aff-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.aff-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 0.5rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  background: rgba(8, 6, 16, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.aff-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.aff-cta:hover::before { transform: translateX(100%); }

.aff-cta-steam {
  border: 1px solid rgba(74, 108, 247, 0.6);
  color: #fff;
  background:
    radial-gradient(ellipse at 80% 110%, rgba(74, 108, 247, 0.22), transparent 60%),
    radial-gradient(ellipse at 20% -20%, rgba(168, 85, 199, 0.12), transparent 55%),
    rgba(8, 6, 16, 0.7);
  box-shadow: 0 0 18px rgba(74, 108, 247, 0.18);
}

.aff-cta-steam:hover {
  color: #fff;
  border-color: var(--bi-blue);
  box-shadow: 0 0 35px rgba(74, 108, 247, 0.55), 0 0 12px rgba(168, 85, 199, 0.25);
  transform: translateY(-2px);
}

.aff-cta-patreon {
  border: 1px solid rgba(255, 66, 77, 0.65);
  color: #ff8a91;
  background:
    radial-gradient(ellipse at 80% 110%, rgba(255, 66, 77, 0.2), transparent 60%),
    radial-gradient(ellipse at 20% -20%, rgba(255, 66, 77, 0.08), transparent 55%),
    rgba(8, 6, 16, 0.7);
  box-shadow: 0 0 18px rgba(255, 66, 77, 0.18);
  text-shadow: 0 0 12px rgba(255, 66, 77, 0.35);
}

.aff-cta-patreon:hover {
  color: #fff;
  border-color: #FF424D;
  box-shadow: 0 0 35px rgba(255, 66, 77, 0.55);
  text-shadow: 0 0 14px rgba(255, 66, 77, 0.6);
  transform: translateY(-2px);
}

.aff-cta-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

.aff-cta-steam .aff-cta-icon { fill: #fff; transition: fill 0.35s; filter: drop-shadow(0 0 6px rgba(74, 108, 247, 0.5)); }
.aff-cta-steam:hover .aff-cta-icon { filter: drop-shadow(0 0 10px rgba(74, 108, 247, 0.9)); }

.aff-cta-patreon .aff-cta-icon { fill: #ff8a91; transition: fill 0.35s; filter: drop-shadow(0 0 6px rgba(255, 66, 77, 0.55)); }
.aff-cta-patreon:hover .aff-cta-icon { fill: #fff; filter: drop-shadow(0 0 10px rgba(255, 66, 77, 0.9)); }

.aff-support-line {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.aff-support-line .aff-name {
  color: var(--bi-pink-soft);
  font-weight: 500;
  background: linear-gradient(135deg, var(--bi-pink), var(--bi-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Decorative genre tags — rounded chips, intentionally softer than the CTAs */
.aff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.aff-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: var(--bi-purple-soft);
  background: linear-gradient(135deg, rgba(232, 54, 143, 0.08), rgba(168, 85, 199, 0.10), rgba(74, 108, 247, 0.06));
  border: 1px solid rgba(168, 85, 199, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 12px rgba(168, 85, 199, 0.08), inset 0 0 12px rgba(232, 54, 143, 0.04);
}

.aff-tag-icon {
  color: var(--bi-pink-soft);
  font-size: 0.8rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(232, 54, 143, 0.7);
}

/* ============================================
   CHARACTERS — mirrors index.html duality pattern
   ============================================ */
.aff-characters {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0;
  overflow: visible;
  opacity: 0;
  animation: affFadeUp 1.1s ease-out 0.6s forwards;
}

.aff-hero-right { position: relative; overflow: visible; min-width: 0; }

/* ============================================
   CHARACTER BACKDROP — radial glow + sparkles
   ============================================ */
.aff-char-backdrop {
  position: absolute;
  inset: 0 0 0 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.aff-char-glow {
  position: absolute;
  top: 55%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 75%;
  aspect-ratio: 1.3 / 1;
  background:
    radial-gradient(ellipse at center,
      rgba(168, 85, 199, 0.45) 0%,
      rgba(168, 85, 199, 0.3) 22%,
      rgba(232, 54, 143, 0.17) 45%,
      rgba(74, 108, 247, 0.08) 65%,
      transparent 78%);
  filter: blur(35px);
  animation: affGlowPulse 7s ease-in-out infinite;
}

@keyframes affGlowPulse {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.05); }
}

.aff-sparkle {
  position: absolute;
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  line-height: 1;
  opacity: 0;
  text-shadow:
    0 0 8px rgba(232, 54, 143, 0.9),
    0 0 16px rgba(168, 85, 199, 0.6),
    0 0 24px rgba(168, 85, 199, 0.4);
  animation: affSparkleTwinkle var(--spdur, 3.5s) ease-in-out var(--spdelay, 0s) infinite;
  user-select: none;
}

@keyframes affSparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  40%      { opacity: 1; transform: scale(1) rotate(15deg); }
  60%      { opacity: 1; transform: scale(1.1) rotate(-10deg); }
}

/* Scattered positions + sizes — clustered behind heads/shoulders of the character group */
.aff-sparkle-1 { top: 22%; left: 32%; font-size: 1.4rem; --spdur: 3.8s; --spdelay: 0s; }
.aff-sparkle-2 { top: 32%; left: 56%; font-size: 1.0rem; --spdur: 4.4s; --spdelay: 0.6s; }
.aff-sparkle-3 { top: 18%; left: 68%; font-size: 1.2rem; --spdur: 3.2s; --spdelay: 1.4s; }
.aff-sparkle-4 { top: 40%; left: 18%; font-size: 0.85rem; --spdur: 4.0s; --spdelay: 2.0s; }
.aff-sparkle-5 { top: 30%; left: 80%; font-size: 0.95rem; --spdur: 3.6s; --spdelay: 0.9s; }
.aff-sparkle-6 { top: 50%; left: 44%; font-size: 0.8rem; --spdur: 4.2s; --spdelay: 2.6s; }
.aff-sparkle-7 { top: 15%; left: 48%; font-size: 0.8rem; --spdur: 3.5s; --spdelay: 1.7s; }

.aff-character {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.375rem 0.375rem 0 0;
}

.aff-character img {
  display: block;
  width: 100%;
  height: auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.85) saturate(1.05);
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  animation: affCharPulse 4s ease-in-out infinite;
}

@keyframes affCharPulse {
  0%, 100% { filter: brightness(0.85) saturate(1.05); }
  50%      { filter: brightness(0.92) saturate(1.1); }
}

.aff-character:hover {
  z-index: 10 !important;
  transform: translateY(-1.125rem) scale(1.06);
}

.aff-character:hover img {
  -webkit-mask-image: linear-gradient(to bottom, black 100%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 100%, transparent 100%);
  filter: brightness(1) saturate(1.2);
  animation: none;
}

/* Per-character glow tints — alternating to match the site's bi-pride palette */
.aff-character.c-jordon:hover { filter: drop-shadow(0 0 15px rgba(168,85,199,0.55)) drop-shadow(0 0 30px rgba(168,85,199,0.22)); }
.aff-character.c-hannah:hover { filter: drop-shadow(0 0 15px rgba(232,54,143,0.55)) drop-shadow(0 0 30px rgba(232,54,143,0.22)); }
.aff-character.c-mark:hover   { filter: drop-shadow(0 0 15px rgba(74,108,247,0.55)) drop-shadow(0 0 30px rgba(74,108,247,0.22)); }
.aff-character.c-rhett:hover  { filter: drop-shadow(0 0 15px rgba(232,54,143,0.55)) drop-shadow(0 0 30px rgba(232,54,143,0.22)); }

/* Stagger + overlap so they feel like a group composition like the mockup */
.aff-character.c-jordon { width: 17rem; z-index: 2; margin-right: -6rem; }
.aff-character.c-hannah { width: 19rem; z-index: 4; margin-right: -5.5rem; }
.aff-character.c-mark   { width: 17rem; z-index: 3; margin-right: -7.5rem; }
.aff-character.c-rhett  { width: 18rem; z-index: 1; }

/* Hover labels */
.aff-char-label {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translate(-50%, -0.375rem);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: rgba(8, 6, 16, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 3px;
  z-index: 4;
  opacity: 0;
  transition: all 0.4s;
  color: var(--bi-pink-soft);
  border: 1px solid rgba(232, 54, 143, 0.3);
  white-space: nowrap;
}

.aff-character:hover .aff-char-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Chibi pop bubble — same animation curve as index emote bubbles */
.aff-chibi-bubble {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: scale(0);
  animation: affChibiUp 2.4s ease-out forwards;
}

.aff-chibi-bubble img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(232, 54, 143, 0.4));
}

@keyframes affChibiUp {
  0%   { opacity: 0; transform: translateY(0) scale(0) rotate(0deg); }
  10%  { opacity: 1; transform: translateY(-10px) scale(0.85) rotate(calc(var(--rot) * 0.3)); }
  30%  { opacity: 1; transform: translateY(-60px) scale(1) rotate(var(--rot)); }
  70%  { opacity: 0.85; transform: translateY(-220px) scale(0.75) rotate(var(--rot)); }
  100% { opacity: 0; transform: translateY(-360px) scale(0.4) rotate(var(--rot)); }
}

/* ============================================
   SCREENSHOTS SECTION
   ============================================ */
.aff-screens {
  position: relative;
  padding: 1rem 2rem 4rem;
  z-index: 1;
}

.aff-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.aff-section-header .aff-sec-decor {
  color: var(--bi-pink);
  font-size: 0.9rem;
  text-shadow: 0 0 12px var(--bi-pink-glow);
}

.aff-section-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.4rem;
  color: var(--bi-pink-soft);
  text-transform: uppercase;
  text-shadow: 0 0 18px var(--bi-pink-glow);
}

.aff-carousel {
  position: relative;
  max-width: 88rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.aff-carousel-viewport {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.75rem 0.5rem;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.aff-carousel-viewport::-webkit-scrollbar { display: none; }

.aff-slide {
  flex: 0 0 auto;
  width: clamp(15rem, 22vw, 22rem);
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 199, 0.2);
  background: rgba(8, 6, 16, 0.5);
  position: relative;
  transition: all 0.4s ease;
  cursor: zoom-in;
}

.aff-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  box-shadow: inset 0 0 30px rgba(168, 85, 199, 0.1);
  pointer-events: none;
  z-index: 2;
}

.aff-slide:hover {
  border-color: rgba(232, 54, 143, 0.5);
  box-shadow: 0 0 30px rgba(232, 54, 143, 0.2);
  transform: translateY(-3px);
}

.aff-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.aff-arrow {
  background: linear-gradient(135deg, rgba(232,54,143,0.08), rgba(74,108,247,0.08));
  border: 1px solid rgba(168, 85, 199, 0.25);
  color: var(--bi-pink-soft);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  flex-shrink: 0;
}

.aff-arrow:hover {
  color: #fff;
  border-color: var(--bi-pink);
  box-shadow: 0 0 20px rgba(232, 54, 143, 0.35);
  transform: scale(1.08);
}

.aff-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  box-shadow: none;
  color: var(--text-dim);
  border-color: rgba(168, 85, 199, 0.15);
}

.aff-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.aff-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(168, 85, 199, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
}

.aff-dot:hover { background: rgba(232, 54, 143, 0.5); }

.aff-dot.active {
  background: var(--bi-pink);
  box-shadow: 0 0 10px var(--bi-pink-glow);
  transform: scale(1.25);
}

/* ============================================
   SCREENSHOT LIGHTBOX — matches the pattern from bettertts.html
   ============================================ */
.ss-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 16, 0.92);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
}

.ss-lightbox.visible {
  display: flex;
  animation: ssLightboxIn 0.25s ease-out;
}

@keyframes ssLightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ss-lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 0.75rem;
  border: 1px solid rgba(168, 85, 199, 0.35);
  box-shadow: 0 0 50px rgba(168, 85, 199, 0.2), 0 0 100px rgba(232, 54, 143, 0.12);
  object-fit: contain;
}

.ss-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(8, 6, 16, 0.7);
  border: 1px solid rgba(168, 85, 199, 0.3);
  color: var(--bi-pink-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

.ss-lightbox-close:hover {
  color: #fff;
  border-color: var(--bi-pink);
  box-shadow: 0 0 20px rgba(232, 54, 143, 0.4);
  transform: scale(1.05);
}

/* ============================================
   FEATURES STRIP — sits between Screenshots and Cast
   ============================================ */
.aff-features {
  position: relative;
  padding: 0.5rem 2rem 2.5rem;
  max-width: 88rem;
  margin: 0 auto;
  z-index: 1;
}

.aff-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.aff-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(232, 54, 143, 0.3);
  background:
    radial-gradient(ellipse at top right, rgba(232, 54, 143, 0.1), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(168, 85, 199, 0.08), transparent 60%),
    linear-gradient(135deg, rgba(13, 9, 22, 0.95), rgba(20, 12, 35, 0.95));
  box-shadow: 0 0 18px rgba(168, 85, 199, 0.08), inset 0 0 25px rgba(232, 54, 143, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.aff-feature:hover {
  border-color: rgba(232, 54, 143, 0.6);
  box-shadow: 0 0 26px rgba(232, 54, 143, 0.22), inset 0 0 25px rgba(232, 54, 143, 0.06);
  transform: translateY(-3px);
}

.aff-feature-icon {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--bi-pink);
  filter: drop-shadow(0 0 10px rgba(232, 54, 143, 0.55));
}

.aff-feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.aff-feature-text { flex: 1; min-width: 0; }

.aff-feature-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.55rem;
}

.aff-feature-title .aff-feature-title-sub {
  display: block;
  color: var(--bi-pink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0.2rem;
  letter-spacing: 0.16rem;
  text-shadow: 0 0 10px rgba(232, 54, 143, 0.4);
}

.aff-feature-desc {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0;
}

/* ============================================
   CAST SECTION
   ============================================ */
.aff-cast {
  position: relative;
  padding: 1.5rem 2rem 4rem;
  max-width: 88rem;
  margin: 0 auto;
  z-index: 1;
}

.aff-cast-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.1rem;
  margin-top: 2rem;
}

.aff-cast-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(232, 54, 143, 0.32);
  background:
    radial-gradient(ellipse at top right, rgba(232, 54, 143, 0.13), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(168, 85, 199, 0.11), transparent 60%),
    linear-gradient(135deg, rgba(13, 9, 22, 0.95), rgba(20, 12, 35, 0.95));
  box-shadow:
    0 0 24px rgba(168, 85, 199, 0.12),
    inset 0 0 35px rgba(232, 54, 143, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  min-height: 35rem;
  max-height: 35rem;
}

.aff-cast-card:hover {
  border-color: rgba(232, 54, 143, 0.6);
  box-shadow:
    0 0 35px rgba(232, 54, 143, 0.25),
    inset 0 0 35px rgba(232, 54, 143, 0.08);
  transform: translateY(-4px);
}

/* Featured (Rhett) — same vertical layout as the side cards, just larger.
   Stands apart with extra-prominent pink halo + slow pulse */
.aff-cast-main {
  border-color: rgba(232, 54, 143, 0.55);
  box-shadow:
    0 0 42px rgba(232, 54, 143, 0.4),
    0 0 95px rgba(232, 54, 143, 0.22),
    0 0 160px rgba(168, 85, 199, 0.18),
    inset 0 0 45px rgba(232, 54, 143, 0.08);
  animation: affMainGlow 5.5s ease-in-out infinite;
}

.aff-cast-main:hover {
  border-color: rgba(232, 54, 143, 0.85);
  box-shadow:
    0 0 55px rgba(232, 54, 143, 0.6),
    0 0 110px rgba(232, 54, 143, 0.3),
    0 0 180px rgba(168, 85, 199, 0.25),
    inset 0 0 45px rgba(232, 54, 143, 0.12);
}

@keyframes affMainGlow {
  0%, 100% {
    box-shadow:
      0 0 42px rgba(232, 54, 143, 0.4),
      0 0 95px rgba(232, 54, 143, 0.22),
      0 0 160px rgba(168, 85, 199, 0.18),
      inset 0 0 45px rgba(232, 54, 143, 0.08);
  }
  50% {
    box-shadow:
      0 0 55px rgba(232, 54, 143, 0.5),
      0 0 110px rgba(232, 54, 143, 0.28),
      0 0 180px rgba(168, 85, 199, 0.22),
      inset 0 0 45px rgba(232, 54, 143, 0.1);
  }
}

/* Portrait fills the entire card; chibi anchored to top.
   The info section overlays on the lower portion via absolute positioning. */
.aff-cast-portrait {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 1.25rem 1rem 0;
  z-index: 1;
}

.aff-cast-main .aff-cast-portrait {
  padding: 1rem 1.25rem 0;
}

/* Info section is overlaid at the bottom of the card, on top of the chibi.
   The gradient backdrop keeps the text readable over whatever's behind. */
.aff-cast-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.1rem 1.4rem;
  text-align: center;
  z-index: 3;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(13, 9, 22, 0.55) 35%,
    rgba(13, 9, 22, 0.9) 70%,
    rgba(13, 9, 22, 0.97) 100%
  );
  pointer-events: none;
}

.aff-cast-info > * { pointer-events: auto; }

/* Rhett's overlay reaches up higher with a deeper gradient — his chibi has
   more light area (white shirt + skin) so the text needs more backing */
.aff-cast-main .aff-cast-info {
  padding: 5.5rem 1.5rem 1.8rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(13, 9, 22, 0.55) 25%,
    rgba(13, 9, 22, 0.85) 45%,
    rgba(13, 9, 22, 0.96) 65%,
    rgba(13, 9, 22, 0.98) 100%
  );
}

/* Rhett's name + bio scale up to match the 1.5x wider card */
.aff-cast-main .aff-cast-name {
  font-size: clamp(2.2rem, 3vw, 3rem);
  letter-spacing: 0.14rem;
  margin-bottom: 0.7rem;
}

.aff-cast-main .aff-cast-bio {
  font-size: 1rem;
  max-width: 26rem;
}

.aff-cast-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(232, 54, 143, 0.18));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.aff-cast-card:hover .aff-cast-portrait img {
  transform: translateY(-4px) scale(1.04);
}

/* Rhett's chibi: heavier drop shadow + slight scale.
   Card is already wider so chibi displays larger than the side cast naturally. */
.aff-cast-main .aff-cast-portrait img {
  filter: drop-shadow(0 10px 28px rgba(232, 54, 143, 0.3));
  transform: scale(1.1);
  transform-origin: center;
}

.aff-cast-main:hover .aff-cast-portrait img {
  transform: translateY(-4px) scale(1.14);
}

.aff-cast-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(135deg, #FF7AB2, #E8368F, #A8307A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.45rem;
  filter: drop-shadow(0 0 20px rgba(232, 54, 143, 0.25));
}

.aff-cast-role {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bi-pink-soft);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(232, 54, 143, 0.35);
}

.aff-cast-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 54, 143, 0.18), rgba(168, 85, 199, 0.2));
  border: 1px solid rgba(232, 54, 143, 0.42);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--bi-pink-soft);
  text-shadow: 0 0 8px rgba(232, 54, 143, 0.5);
  margin-bottom: 0.9rem;
  box-shadow: 0 0 14px rgba(232, 54, 143, 0.18);
  white-space: nowrap;
  line-height: 1;
}

.aff-cast-badge-sparkle {
  font-size: 0.8rem;
  line-height: 1;
}

.aff-cast-bio {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-mid);
  max-width: 22rem;
}

/* Twinkling sparkles inside each card */
.aff-cast-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.aff-cast-stars span {
  position: absolute;
  color: #fff;
  line-height: 1;
  text-shadow:
    0 0 6px rgba(232, 54, 143, 0.85),
    0 0 12px rgba(168, 85, 199, 0.5);
  opacity: 0;
  animation: affSparkleTwinkle var(--spdur, 3.5s) ease-in-out var(--spdelay, 0s) infinite;
  user-select: none;
}

/* "More love interests coming soon" teaser — full-width glowing pill under
   the cast grid. Reuses the section-header type (Orbitron caps + ✦ sparkles)
   inside a bordered panel with a slow pink glow pulse. */
.aff-cast-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 2vw, 1.75rem);
  margin-top: 1.4rem;
  padding: 1.15rem 2rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(232, 54, 143, 0.4);
  background:
    radial-gradient(ellipse at center, rgba(232, 54, 143, 0.13), transparent 70%),
    linear-gradient(135deg, rgba(13, 9, 22, 0.9), rgba(20, 12, 35, 0.9));
  box-shadow:
    0 0 26px rgba(232, 54, 143, 0.18),
    inset 0 0 30px rgba(232, 54, 143, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: affSoonGlow 4.5s ease-in-out infinite;
}

@keyframes affSoonGlow {
  0%, 100% {
    box-shadow: 0 0 26px rgba(232, 54, 143, 0.18), inset 0 0 30px rgba(232, 54, 143, 0.05);
    border-color: rgba(232, 54, 143, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(232, 54, 143, 0.32), inset 0 0 30px rgba(232, 54, 143, 0.08);
    border-color: rgba(232, 54, 143, 0.62);
  }
}

.aff-cast-soon-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(0.7rem, 1.4vw, 1.05rem);
  letter-spacing: clamp(0.18rem, 0.6vw, 0.4rem);
  text-transform: uppercase;
  color: var(--bi-pink-soft);
  text-shadow: 0 0 18px var(--bi-pink-glow);
  text-align: center;
}

.aff-cast-soon-star {
  color: var(--bi-pink);
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  text-shadow: 0 0 14px rgba(232, 54, 143, 0.7);
  flex-shrink: 0;
  animation: affSoonStarPulse 3.5s ease-in-out infinite;
}

@keyframes affSoonStarPulse {
  0%, 100% { opacity: 0.65; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1.15) rotate(15deg); }
}

/* Cast cards are clickable to open the character profile modal */
.aff-cast-card { cursor: pointer; }
.aff-cast-card:focus-visible {
  outline: 2px solid var(--bi-pink-soft);
  outline-offset: 4px;
  border-radius: 0.75rem;
}

/* ============================================
   CHARACTER PROFILE MODAL — pops up when a cast card is clicked.
   Mirrors the ss-lightbox pattern (fixed, backdrop blur, click-out-to-close)
   but lays out a two-column card: portrait | facts + traits.
   ============================================ */
.aff-charmod {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 16, 0.92);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
}

.aff-charmod.visible {
  display: flex;
  animation: ssLightboxIn 0.25s ease-out;
}

.aff-charmod-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: 0;
  width: min(56rem, 100%);
  max-height: 88vh;
  border-radius: 1rem;
  border: 1px solid rgba(232, 54, 143, 0.45);
  background:
    radial-gradient(ellipse at top right, rgba(232, 54, 143, 0.16), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(168, 85, 199, 0.14), transparent 60%),
    linear-gradient(135deg, rgba(13, 9, 22, 0.97), rgba(20, 12, 35, 0.97));
  box-shadow:
    0 0 45px rgba(232, 54, 143, 0.32),
    0 0 110px rgba(168, 85, 199, 0.2),
    inset 0 0 45px rgba(232, 54, 143, 0.06);
  cursor: default;
  overflow: hidden;
  animation: affCharmodShellIn 0.35s cubic-bezier(0.2, 1, 0.3, 1);
}

@keyframes affCharmodShellIn {
  from { opacity: 0; transform: translateY(1rem) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.aff-charmod-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(8, 6, 16, 0.7);
  border: 1px solid rgba(168, 85, 199, 0.3);
  color: var(--bi-pink-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.aff-charmod-close:hover {
  color: #fff;
  border-color: var(--bi-pink);
  box-shadow: 0 0 20px rgba(232, 54, 143, 0.45);
  transform: scale(1.05);
}

/* Decorative twinkles drift behind the content */
.aff-charmod-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.aff-charmod-stars span {
  position: absolute;
  color: #fff;
  line-height: 1;
  text-shadow:
    0 0 6px rgba(232, 54, 143, 0.85),
    0 0 12px rgba(168, 85, 199, 0.5);
  opacity: 0;
  animation: affSparkleTwinkle var(--spdur, 3.5s) ease-in-out var(--spdelay, 0s) infinite;
}

/* Left column: full-body character portrait (the *2.webp variant), anchored
   to the bottom so the character "stands on" the modal floor */
.aff-charmod-portrait {
  position: relative;
  z-index: 1;
  padding: 1rem 0.5rem 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(232, 54, 143, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(20, 12, 35, 0.0), rgba(13, 9, 22, 0.6));
  border-right: 1px solid rgba(232, 54, 143, 0.15);
  min-height: 26rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.aff-charmod-portrait img {
  width: 100%;
  max-width: 22rem;
  max-height: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 28px rgba(232, 54, 143, 0.32));
}

/* Floating chibi — small decorative beat in the bottom-left corner.
   Sits inside the modal shell (which has overflow: hidden), gently bobs.
   pointer-events: none so it doesn't steal clicks. */
.aff-charmod-chibi-float {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  width: 6.5rem;
  height: auto;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(232, 54, 143, 0.55));
  transform: rotate(-6deg);
  animation: affCharmodChibiFloat 4.5s ease-in-out infinite;
}

@keyframes affCharmodChibiFloat {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-0.35rem); }
}

/* Right column: scrollable info panel so long content (4 traits + likes) fits */
.aff-charmod-info {
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.75rem 1.6rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.aff-charmod-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 54, 143, 0.2), rgba(168, 85, 199, 0.22));
  border: 1px solid rgba(232, 54, 143, 0.45);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--bi-pink-soft);
  text-shadow: 0 0 8px rgba(232, 54, 143, 0.5);
  box-shadow: 0 0 14px rgba(232, 54, 143, 0.18);
  line-height: 1;
}

.aff-charmod-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 3vw, 3rem);
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(135deg, #FF7AB2, #E8368F, #A8307A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(232, 54, 143, 0.28));
  margin: 0;
}

/* Facts — Birthday / Zodiac side by side */
.aff-charmod-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.2rem 0 0.4rem;
}
.aff-charmod-fact {
  padding: 0.6rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(168, 85, 199, 0.28);
  background: rgba(13, 9, 22, 0.55);
}
.aff-charmod-fact dt {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--bi-purple-soft);
  margin-bottom: 0.25rem;
}
.aff-charmod-fact dd {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: #f4e8ff;
}
.aff-charmod-zodiac-glyph {
  color: var(--bi-pink-soft);
  text-shadow: 0 0 10px rgba(232, 54, 143, 0.4);
  margin-right: 0.15rem;
}

.aff-charmod-subhead {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  color: var(--bi-pink-soft);
  margin: 0.35rem 0 0.1rem;
}

.aff-charmod-likes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.aff-charmod-likes li {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(168, 85, 199, 0.13);
  border: 1px solid rgba(168, 85, 199, 0.32);
  color: #efe2ff;
}

/* Trait buttons — positive face on top, negative face revealed on hover or tap.
   Both faces are absolutely overlaid; we cross-fade between them. */
.aff-charmod-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.1rem;
}

.aff-trait {
  position: relative;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06rem;
  padding: 0.7rem 0.85rem;
  min-height: 2.85rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(232, 54, 143, 0.4);
  background:
    radial-gradient(ellipse at top, rgba(232, 54, 143, 0.16), transparent 70%),
    rgba(13, 9, 22, 0.7);
  color: var(--bi-pink-soft);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.aff-trait-pos,
.aff-trait-neg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  transition: opacity 0.28s ease, transform 0.28s ease;
  white-space: normal;
}
.aff-trait-pos { opacity: 1; transform: translateY(0); }
.aff-trait-neg {
  opacity: 0;
  transform: translateY(0.35rem);
  color: #ff8a91;
  text-shadow: 0 0 10px rgba(255, 80, 90, 0.35);
}

/* Hover/focus/tap on a two-faced trait flips to the red shadow side.
   Scoped to buttons so the static-pill variant doesn't pick it up. */
button.aff-trait:hover,
button.aff-trait:focus-visible,
button.aff-trait.flipped {
  border-color: rgba(255, 90, 110, 0.7);
  background:
    radial-gradient(ellipse at top, rgba(255, 80, 100, 0.22), transparent 70%),
    rgba(20, 6, 12, 0.85);
  box-shadow: 0 0 22px rgba(255, 80, 100, 0.25);
  transform: translateY(-1px);
}
button.aff-trait:hover .aff-trait-pos,
button.aff-trait:focus-visible .aff-trait-pos,
button.aff-trait.flipped .aff-trait-pos {
  opacity: 0;
  transform: translateY(-0.35rem);
}
button.aff-trait:hover .aff-trait-neg,
button.aff-trait:focus-visible .aff-trait-neg,
button.aff-trait.flipped .aff-trait-neg {
  opacity: 1;
  transform: translateY(0);
}

/* Static trait pill — same visual shell as the flippy version but
   informational only (no cursor, no red flip, no transform). Used for
   characters whose traits don't have a shadow side defined. */
.aff-trait-static {
  cursor: default;
  color: var(--bi-pink-soft);
  position: relative;
}
.aff-trait-static:hover {
  /* Soft pink glow on hover so it still feels alive without flipping */
  border-color: rgba(232, 54, 143, 0.6);
  box-shadow: 0 0 18px rgba(232, 54, 143, 0.22);
}

/* Coming-soon state — collapses the portrait padding a touch & dims the facts */
.aff-charmod-empty .aff-charmod-facts { opacity: 0.55; }
.aff-charmod-tba {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-style: italic;
  margin: 0.3rem 0 0;
  padding: 0.45rem 0.85rem;
  border-radius: 0.55rem;
  background: rgba(168, 85, 199, 0.08);
  border: 1px dashed rgba(168, 85, 199, 0.35);
  list-style: none;
  text-align: center;
}

/* ============================================
   SUPPORT BAND — second CTA push below the cast.
   The buttons reuse every .aff-cta effect (glass, shimmer sweep,
   colored border/glow, hover lift); .aff-cta-lg only scales them up.
   ============================================ */
.aff-support {
  position: relative;
  padding: 1rem 2rem 4.5rem;
  max-width: 88rem;
  margin: 0 auto;
  z-index: 1;
  text-align: center;
}

.aff-support-text {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 46rem;
  margin: 1.5rem auto 2.25rem;
}

.aff-support-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

/* Size modifier — bigger padding, larger type + icon, full-width in its cell.
   Inherits all the color/shine/lift behavior from .aff-cta(-steam/-patreon). */
.aff-cta-lg {
  justify-content: center;
  width: 100%;
  padding: 1.45rem 2rem;
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
  letter-spacing: 0.24rem;
  border-radius: 0.65rem;
  gap: 1rem;
}

.aff-cta-lg .aff-cta-icon {
  width: 1.75rem;
  height: 1.75rem;
}

/* Slightly stronger lift than the hero pills since these are larger targets */
.aff-cta-lg:hover {
  transform: translateY(-3px);
}

/* ============================================
   CREATOR CARDS — who made the game, below the support CTAs.
   Each card themes itself via --accent (an "r, g, b" triplet) + --accent-soft:
   purple for KindredSpiritVA (under Steam), red for Bastet Nailah (under Patreon).
   ============================================ */
.aff-creators {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 1.5rem auto 0;
}

.aff-creator {
  --accent: 168, 85, 199;
  --accent-soft: #d4a8e8;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.5rem 1.6rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(var(--accent), 0.5);
  background:
    radial-gradient(ellipse at 18% 35%, rgba(var(--accent), 0.16), transparent 60%),
    linear-gradient(135deg, rgba(13, 9, 22, 0.92), rgba(20, 12, 35, 0.92));
  box-shadow:
    0 0 28px rgba(var(--accent), 0.18),
    inset 0 0 35px rgba(var(--accent), 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}
.aff-creator-kindred { --accent: 168, 85, 199; --accent-soft: #d4a8e8; }  /* purple */
.aff-creator-bastet  { --accent: 168, 85, 199; --accent-soft: #d4a8e8; }  /* purple — matches the rest */

.aff-creator:hover {
  border-color: rgba(var(--accent), 0.8);
  box-shadow:
    0 0 42px rgba(var(--accent), 0.32),
    inset 0 0 35px rgba(var(--accent), 0.08);
  transform: translateY(-3px);
}

/* Circular photo with a glowing themed ring */
.aff-creator-photo {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(var(--accent), 0.95), rgba(var(--accent), 0.3));
  box-shadow:
    0 0 24px rgba(var(--accent), 0.55),
    inset 0 0 12px rgba(var(--accent), 0.4);
}
.aff-creator-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(13, 9, 22, 0.92);
}

.aff-creator-info {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}
.aff-creator-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: #fff;
  margin: 0 0 0.55rem;
  letter-spacing: 0.02rem;
  text-shadow: 0 0 18px rgba(var(--accent), 0.45);
}
.aff-creator-divider {
  display: block;
  height: 1px;
  width: 100%;
  margin-bottom: 0.65rem;
  background: linear-gradient(90deg, rgba(var(--accent), 0.9), rgba(var(--accent), 0.15) 60%, transparent);
}
.aff-creator-role {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--accent-soft);
  margin: 0;
}

/* Small role glyph in the top-right corner (code brackets / paintbrush) */
.aff-creator-icon {
  position: absolute;
  top: 1.15rem;
  right: 1.3rem;
  width: 1.45rem;
  height: 1.45rem;
  color: rgba(var(--accent), 0.8);
  filter: drop-shadow(0 0 6px rgba(var(--accent), 0.5));
  z-index: 3;
}

/* Little accent bar near the bottom */
.aff-creator-bar {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4.5rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent), 0.95), transparent);
  box-shadow: 0 0 12px rgba(var(--accent), 0.7);
  z-index: 2;
}

/* Twinkling sparkles drifting behind the photo */
.aff-creator-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.aff-creator-stars span {
  position: absolute;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 6px rgba(var(--accent), 0.85), 0 0 12px rgba(var(--accent), 0.5);
  opacity: 0;
  animation: affSparkleTwinkle var(--spdur, 3.5s) ease-in-out var(--spdelay, 0s) infinite;
}

/* Reusable L-shaped corner brackets — colored by the parent's --accent */
.aff-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.aff-corners i {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(var(--accent), 0.55);
}
.aff-corners i:nth-child(1) { top: 9px;    left: 9px;  border-right: 0; border-bottom: 0; }
.aff-corners i:nth-child(2) { top: 9px;    right: 9px; border-left: 0;  border-bottom: 0; }
.aff-corners i:nth-child(3) { bottom: 9px; left: 9px;  border-right: 0; border-top: 0; }
.aff-corners i:nth-child(4) { bottom: 9px; right: 9px; border-left: 0;  border-top: 0; }

/* ============================================
   ART TEAM — combined creator card holding two artists side by side.
   Reuses .aff-creator's frame/glow/corners; overrides the inner layout to a
   column: an "ART TEAM" label on top, two mini-profiles split by a ✦ divider.
   ============================================ */
.aff-creator-team {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 1.5rem 1.4rem 1.6rem;
}

.aff-team-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent), 0.45);
  background: linear-gradient(135deg, rgba(var(--accent), 0.22), rgba(var(--accent), 0.08));
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.26rem;
  text-transform: uppercase;
  color: var(--accent-soft);
  text-shadow: 0 0 12px rgba(var(--accent), 0.5);
  box-shadow: 0 0 14px rgba(var(--accent), 0.15);
  position: relative;
  z-index: 2;
  line-height: 1;
}
.aff-team-label span {
  color: rgba(var(--accent), 1);
  font-size: 0.62rem;
  text-shadow: 0 0 10px rgba(var(--accent), 0.7);
}

.aff-team-members {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.aff-team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 0.55rem;
}

/* Team photos a touch smaller than the solo card so two fit comfortably */
.aff-creator-team .aff-creator-photo {
  width: 6.25rem;
  height: 6.25rem;
}

.aff-team-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: #fff;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 0 16px rgba(var(--accent), 0.45);
}
.aff-team-role {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 500;
  color: var(--accent-soft);
  margin: 0;
  line-height: 1.4;
}

/* Vertical sparkle divider between the two artists */
.aff-team-divider {
  align-self: stretch;
  flex: 0 0 1px;
  width: 1px;
  margin: 0.4rem 0;
  background: linear-gradient(to bottom, transparent, rgba(var(--accent), 0.45) 22%, rgba(var(--accent), 0.45) 78%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aff-team-divider-star {
  color: rgba(var(--accent), 0.95);
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.3rem 0.15rem;
  background: rgba(16, 11, 26, 0.95);
  text-shadow: 0 0 10px rgba(var(--accent), 0.6);
}

/* ============================================
   SPECIAL THANKS — contributor strip below the creator cards
   ============================================ */
.aff-thanks {
  --accent: 168, 85, 199;
  --accent-soft: #c9a8e0;
  position: relative;
  max-width: 64rem;
  margin: 1.5rem auto 0;
  padding: 0.95rem 1.6rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(var(--accent), 0.4);
  background:
    radial-gradient(ellipse at center, rgba(var(--accent), 0.1), transparent 70%),
    linear-gradient(135deg, rgba(13, 9, 22, 0.9), rgba(20, 12, 35, 0.9));
  box-shadow: 0 0 24px rgba(var(--accent), 0.14), inset 0 0 30px rgba(var(--accent), 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.aff-thanks-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}
.aff-thanks-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.32rem;
  text-transform: uppercase;
  color: var(--accent-soft);
  text-shadow: 0 0 16px rgba(var(--accent), 0.5);
  margin: 0;
}
.aff-thanks-decor {
  color: rgba(var(--accent), 1);
  font-size: 0.85rem;
  text-shadow: 0 0 12px rgba(var(--accent), 0.7);
}

/* Single tight row — three contributors split by ✦ separators.
   align-items:start keeps names top-aligned if a role wraps; ✦ re-centers. */
.aff-thanks-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0.5rem 1.25rem;
}
.aff-thanks-item { text-align: center; }
.aff-thanks-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: #fff;
  margin-bottom: 0.2rem;
}
.aff-thanks-role {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  color: var(--accent-soft);
  line-height: 1.4;
}
.aff-thanks-sep {
  color: rgba(var(--accent), 0.85);
  font-size: 0.85rem;
  text-shadow: 0 0 10px rgba(var(--accent), 0.6);
  align-self: center;
}

/* ============================================
   SOCIAL BAR — floating top-right
   ============================================ */
.aff-socials {
  /* shared.css has a global `nav { position: fixed; bottom:0; left:0; right:0 }`
     for the dialogue bar — we explicitly clamp ALL four sides so this top-right
     pill doesn't inherit it and stretch across the viewport */
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 199, 0.3);
  background:
    radial-gradient(ellipse at top right, rgba(232, 54, 143, 0.12), transparent 60%),
    rgba(13, 9, 22, 0.78);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 0 18px rgba(168, 85, 199, 0.12);
}

.aff-soc {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bi-pink-soft);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.aff-soc svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  display: block;
  transition: filter 0.3s;
}

.aff-soc:hover {
  color: #fff;
  background: rgba(232, 54, 143, 0.18);
  transform: translateY(-2px);
}

.aff-soc:hover svg {
  filter: drop-shadow(0 0 6px var(--bi-pink-glow));
}

/* Tooltip on hover so people know what each one is */
.aff-soc::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-0.25rem);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: var(--bi-pink-soft);
  background: rgba(8, 6, 16, 0.92);
  border: 1px solid rgba(232, 54, 143, 0.3);
  padding: 0.3rem 0.55rem;
  border-radius: 0.3rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 5;
}

.aff-soc:hover::after,
.aff-soc:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 700px) {
  .aff-socials { top: 0.75rem; right: 0.75rem; bottom: auto; left: auto; gap: 0; padding: 0.3rem 0.5rem; }
  .aff-soc { width: 1.6rem; height: 1.6rem; }
  .aff-soc svg { width: 0.9rem; height: 0.9rem; }
}

/* ============================================
   MUSIC PLAYER — floating, opt-in OST playback
   ============================================ */
.aff-music {
  position: fixed;
  bottom: 6rem;
  right: 1.75rem;
  z-index: 200;
  font-family: 'Quicksand', sans-serif;
}

/* Collapsed: just the round music-note button */
.aff-music-toggle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(232, 54, 143, 0.55);
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 54, 143, 0.2), transparent 60%),
    rgba(13, 9, 22, 0.85);
  color: var(--bi-pink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 0 18px rgba(232, 54, 143, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.aff-music-toggle:hover {
  color: #fff;
  border-color: var(--bi-pink);
  box-shadow: 0 0 28px rgba(232, 54, 143, 0.5);
  transform: scale(1.08);
}

.aff-music-toggle svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* Pulsing aura when something is playing */
.aff-music.playing .aff-music-toggle {
  animation: affMusicPulse 2.4s ease-in-out infinite;
}

@keyframes affMusicPulse {
  0%, 100% {
    box-shadow: 0 0 18px rgba(232, 54, 143, 0.3), 0 0 0 0 rgba(232, 54, 143, 0.4);
  }
  50% {
    box-shadow: 0 0 28px rgba(232, 54, 143, 0.5), 0 0 0 8px rgba(232, 54, 143, 0);
  }
}

/* Expanded panel */
.aff-music.expanded .aff-music-toggle { display: none; }

.aff-music-panel {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.6rem 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 54, 143, 0.55);
  background:
    radial-gradient(ellipse at top right, rgba(232, 54, 143, 0.15), transparent 60%),
    rgba(13, 9, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 25px rgba(232, 54, 143, 0.25),
    0 4px 18px rgba(0, 0, 0, 0.4);
  min-width: 18rem;
  max-width: 22rem;
}

.aff-music-info {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.aff-music-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--bi-pink);
  text-shadow: 0 0 8px var(--bi-pink-glow);
  margin-bottom: 0.2rem;
}

.aff-music-track {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aff-music-controls {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.aff-music-btn {
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--bi-pink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.aff-music-btn:hover {
  color: #fff;
  background: rgba(232, 54, 143, 0.15);
  text-shadow: 0 0 10px var(--bi-pink-glow);
}

.aff-music-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

.aff-music-play {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, rgba(232, 54, 143, 0.25), rgba(168, 85, 199, 0.25));
  border: 1px solid rgba(232, 54, 143, 0.45);
}

.aff-music-play:hover {
  background: linear-gradient(135deg, rgba(232, 54, 143, 0.4), rgba(168, 85, 199, 0.4));
  border-color: var(--bi-pink);
  box-shadow: 0 0 14px rgba(232, 54, 143, 0.4);
}

.aff-music-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 4rem;
  height: 0.2rem;
  background: rgba(168, 85, 199, 0.3);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  margin: 0 0.3rem;
}

.aff-music-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--bi-pink);
  cursor: pointer;
  box-shadow: 0 0 8px var(--bi-pink-glow);
  border: none;
}

.aff-music-volume::-moz-range-thumb {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--bi-pink);
  cursor: pointer;
  box-shadow: 0 0 8px var(--bi-pink-glow);
  border: none;
}

.aff-music-close {
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  margin-left: 0.2rem;
  flex-shrink: 0;
}

.aff-music-close:hover {
  color: #fff;
  background: rgba(232, 54, 143, 0.15);
}

/* Hide the panel when collapsed */
.aff-music:not(.expanded) .aff-music-panel { display: none; }

/* Mobile: simpler, smaller */
@media (max-width: 600px) {
  .aff-music { right: 1rem; bottom: 5.5rem; }
  .aff-music-panel { min-width: 15rem; padding: 0.5rem 0.4rem 0.5rem 0.8rem; }
  .aff-music-track { font-size: 0.7rem; }
  .aff-music-volume { display: none; }
}

/* ============================================
   ACCESSIBILITY — focus states + reduced motion
   ============================================ */

/* shared.css sets a default focus outline, but our pink CTAs and pill chips
   need a slightly more prominent ring against the dark / mid-tone backdrops */
.aff-cta:focus-visible,
.aff-arrow:focus-visible,
.aff-dot:focus-visible,
.aff-slide:focus-visible,
.ss-lightbox-close:focus-visible,
.aff-charmod-close:focus-visible,
.aff-music-toggle:focus-visible,
.aff-music-btn:focus-visible,
.aff-music-close:focus-visible,
.aff-soc:focus-visible {
  outline: 2px solid var(--bi-pink-soft);
  outline-offset: 3px;
  box-shadow:
    0 0 0 4px rgba(232, 54, 143, 0.25),
    0 0 24px rgba(232, 54, 143, 0.4);
}

.aff-character:focus-visible {
  outline: 2px solid var(--bi-pink-soft);
  outline-offset: 6px;
  border-radius: 0.5rem;
}

/* Make slides reachable by keyboard — they're clickable */
.aff-slide:focus-visible {
  outline-offset: 4px;
}

/* Honor user's motion preference: kill the autoplay animations
   (fade-up, idle pulse, glow pulse, sparkle twinkle, click-pop chibis).
   Hover / focus transitions stay intentional. */
@media (prefers-reduced-motion: reduce) {
  .aff-hero-left,
  .aff-characters,
  .aff-character img,
  .aff-char-glow,
  .aff-sparkle,
  .aff-cast-stars span,
  .aff-cast-main,
  .aff-cast-soon,
  .aff-cast-soon-star,
  .aff-creator-stars span,
  .aff-chibi-bubble,
  .aff-charmod-shell,
  .aff-charmod-stars span,
  .aff-charmod-chibi-float,
  .aff-music.playing .aff-music-toggle {
    animation: none !important;
  }
  .aff-hero-left,
  .aff-characters {
    opacity: 1 !important;
    transform: none !important;
  }
  .aff-sparkle,
  .aff-cast-stars span,
  .aff-cast-soon-star,
  .aff-creator-stars span,
  .aff-charmod-stars span {
    opacity: 0.7 !important;
    transform: scale(1) !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .aff-hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .aff-hero { padding-top: 3rem; min-height: auto; }
  .aff-logo { max-width: 28rem; margin-left: auto; margin-right: auto; }
  .aff-tagline, .aff-story, .aff-support-line { text-align: center; margin-left: auto; margin-right: auto; }
  .aff-ctas { justify-content: center; }
  .aff-tags { justify-content: center; }
  /* Stacked layout: the character group must center under the (now-centered)
     hero text. The base rule uses justify-content:flex-end for the desktop
     right-hand column — override to center here only. Glow re-centers too. */
  .aff-characters { transform: scale(0.85); transform-origin: top center; justify-content: center; }
  .aff-char-glow { left: 50%; }

  /* Cast grid: 2 cols, Rhett spans full width on top */
  .aff-cast-grid {
    grid-template-columns: 1fr 1fr;
  }
  .aff-cast-main {
    grid-column: 1 / -1;
  }

  /* Features: 2-col grid on tablet */
  .aff-features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .aff-hero { padding: 2.5rem 1.25rem 2rem; }
  .aff-logo { max-width: 18rem; }
  .aff-character.c-jordon { width: 7.5rem; margin-right: -2.5rem; }
  .aff-character.c-hannah { width: 8.5rem; margin-right: -2.5rem; }
  .aff-character.c-mark   { width: 7.5rem; margin-right: -3rem; }
  .aff-character.c-rhett  { width: 8rem; }
  .aff-characters { transform: none; }
  .aff-cta { font-size: 0.7rem; padding: 0.8rem 1.2rem; letter-spacing: 0.15rem; }
  .aff-screens { padding: 0.5rem 0.5rem 3rem; }
  .aff-carousel { gap: 0.25rem; }
  .aff-arrow { width: 2.25rem; height: 2.25rem; font-size: 1.2rem; }

  /* Cast: stack to single column on phone */
  .aff-cast { padding: 1rem 1rem 3rem; }
  .aff-cast-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .aff-cast-card { min-height: 26rem; max-height: 26rem; grid-column: auto; }
  .aff-cast-main .aff-cast-name { font-size: 1.9rem; }
  .aff-cast-main .aff-cast-bio { font-size: 0.95rem; }
  .aff-cast-soon { padding: 0.95rem 1rem; gap: 0.85rem; }

  /* Features: stack on phone */
  .aff-features { padding: 0.5rem 1rem 2rem; }
  .aff-features-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .aff-feature { padding: 1rem; gap: 0.8rem; }
  .aff-feature-icon { width: 2.2rem; height: 2.2rem; }

  /* Character modal: stack portrait above info so both fit on a phone */
  .aff-charmod { padding: 0.75rem; }
  .aff-charmod-shell {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
  .aff-charmod-portrait {
    min-height: 16rem;
    padding: 1rem 1rem 0;
    border-right: none;
    border-bottom: 1px solid rgba(232, 54, 143, 0.18);
  }
  .aff-charmod-portrait img { max-width: 16rem; }
  .aff-charmod-info { padding: 1.1rem 1.1rem 1.25rem; gap: 0.7rem; }
  .aff-charmod-name { font-size: clamp(1.8rem, 7vw, 2.3rem); }
  .aff-charmod-traits { grid-template-columns: 1fr 1fr; gap: 0.45rem; }
  .aff-trait { font-size: 0.72rem; min-height: 2.6rem; padding: 0.55rem 0.5rem; }
  .aff-charmod-likes li { font-size: 0.72rem; }

  /* Floating chibi shrinks on mobile so it doesn't crowd the stacked layout */
  .aff-charmod-chibi-float {
    width: 4.5rem;
    left: 0.4rem;
    bottom: 0.4rem;
  }
}

/* Stack traits to a single column on very narrow screens so the long
   "Loyal to his people"/"Closed to Everyone Else" labels don't squish */
@media (max-width: 400px) {
  .aff-charmod-traits { grid-template-columns: 1fr; }
}

/* Support band on phones — stack the two buttons, keep them comfortably
   bigger than the hero pills. Placed last so it wins over the generic
   `.aff-cta` mobile shrink rule above (equal specificity, later source order). */
@media (max-width: 700px) {
  .aff-support { padding: 0.5rem 1.25rem 3rem; }
  .aff-support-ctas { grid-template-columns: 1fr; gap: 1rem; max-width: 26rem; }
  .aff-cta-lg { padding: 1.15rem 1.4rem; font-size: 0.8rem; letter-spacing: 0.18rem; }
  .aff-cta-lg .aff-cta-icon { width: 1.5rem; height: 1.5rem; }

  /* Creator cards + special thanks stack on phone */
  .aff-creators { grid-template-columns: 1fr; gap: 1rem; max-width: 26rem; }
  .aff-creator { padding: 1.25rem; gap: 1.1rem; }
  .aff-creator-photo { width: 5.5rem; height: 5.5rem; }
  /* Art Team: keep both artists side by side but shrink so they fit. The
     team-photo override needs the 2-class selector to beat the rule above. */
  .aff-creator-team { padding: 1.35rem 1rem 1.45rem; gap: 1rem; }
  .aff-creator-team .aff-creator-photo { width: 5rem; height: 5rem; }
  .aff-team-members { gap: 0.6rem; }
  .aff-team-name { font-size: 0.95rem; }
  .aff-team-role { font-size: 0.78rem; }
  .aff-thanks { max-width: 26rem; padding: 1rem 1.1rem 1.05rem; }
  .aff-thanks-grid { grid-template-columns: 1fr; gap: 1rem; }
  .aff-thanks-sep { display: none; }
}
