/* ═══════════════════════════════════════════════════════════
   THE MOB — one-pager
   Palette: backroom ink · old brass · wax-seal crimson · bone
   Type:    Cinzel (display) · Spectral (creed) · Plex Mono (utility)
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink:      #0B0A08;   /* backroom black, warm */
  --smoke:    #17140F;   /* raised surfaces */
  --smoke-2:  #201B13;   /* frame edges */
  --gold:     #C9A24B;   /* old brass */
  --gold-hot: #F0C96C;   /* candlelight on brass */
  --gold-dim: #6E5A2E;   /* tarnish */
  --blood:    #8E2F2F;   /* wax seal */
  --blood-hot:#C24343;   /* fresh ink */
  --bone:     #E8E0CE;   /* body text */
  --bone-dim: #948C7A;   /* secondary text */

  --display: "Cinzel", "Times New Roman", serif;
  --serif:   "Spectral", Georgia, serif;
  --mono:    "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif);
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--blood); color: var(--bone); }

a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); }
a:hover, a:focus-visible { color: var(--gold-hot); border-bottom-color: var(--gold-hot); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── atmosphere ─────────────────────────────────────────── */

#embers {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.grain {
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.side-rail {
  position: fixed; top: 0; left: 14px; height: 100%;
  display: flex; align-items: center;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.6em;
  color: var(--gold-dim);
  opacity: 0.55;
  z-index: 3;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

/* ── block 1 · the lineup ───────────────────────────────── */

.hero {
  position: relative; z-index: 4;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  padding: clamp(48px, 8vh, 96px) clamp(20px, 6vw, 72px);
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(201,162,75,0.10), transparent 65%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(142,47,47,0.07), transparent 60%);
}

.masthead { text-align: center; }

.crest { display: block; margin: 0 auto 18px; filter: drop-shadow(0 0 14px rgba(201,162,75,0.25)); }
.crest--small { margin-bottom: 10px; opacity: 0.8; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.45em;
  color: var(--bone-dim);
  margin-bottom: 14px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 9vw, 108px);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 0 40px rgba(201,162,75,0.18);
}
.wordmark::after {
  content: "";
  display: block;
  width: 58%; height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.subline {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic; font-weight: 300;
  font-size: clamp(21px, 3.4vw, 34px);
  letter-spacing: 0.14em;
  color: var(--bone);
}
.subline b {
  font-family: var(--display);
  font-style: normal; font-weight: 700;
  font-size: 1.15em;
  color: var(--gold);
}
.sub-dot { color: var(--blood-hot); padding: 0 0.15em; }

/* roster grid */

.roster {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: clamp(22px, 3.5vw, 44px) clamp(14px, 2.5vw, 36px);
  width: min(1100px, 100%);
  justify-items: center;
}
/* keep a short roster centered instead of stretched edge-to-edge */
@media (min-width: 900px) { .roster { grid-template-columns: repeat(auto-fit, minmax(148px, 190px)); justify-content: center; } }

.member {
  text-align: center;
  width: 100%;
  max-width: 190px;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 150ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.roster-note { font-family: var(--mono); color: var(--bone-dim); font-size: 13px; grid-column: 1 / -1; }

/* pfp frame + signature hover (speed-line burst + hanko seal) */

.pfp-frame {
  position: relative;
  width: min(148px, 78%);
  aspect-ratio: 1;
  margin: 0 auto 14px;
}

.burst {
  position: absolute; inset: -26%;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(194,67,67,0.85) 0deg 3deg,
    transparent 3deg 14deg
  );
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 46%, #000 62%, transparent 70%);
          mask: radial-gradient(circle, transparent 42%, #000 46%, #000 62%, transparent 70%);
  opacity: 0;
  transform: scale(0.6) rotate(0deg);
  transition: opacity 0.18s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.4);
  pointer-events: none;
}

.pfp-frame img {
  position: relative;
  width: 100%; height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px var(--smoke-2), 0 10px 30px rgba(0,0,0,0.55);
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.seal {
  position: absolute; right: -4px; bottom: 2px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blood);
  color: #F3E4D6;
  font-family: var(--display);
  font-weight: 700; font-size: 15px;
  border-radius: 6px;
  border: 1px solid rgba(243,228,214,0.35);
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
  transform: rotate(8deg) scale(0);
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
  pointer-events: none;
}

.member:hover .pfp-frame img,
.member:focus-within .pfp-frame img {
  filter: none;
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px var(--gold-dim),
              0 14px 34px rgba(0,0,0,0.6), 0 0 26px rgba(201,162,75,0.35);
}
.member:hover .burst,
.member:focus-within .burst { opacity: 1; transform: scale(1) rotate(18deg); }
.member:hover .seal,
.member:focus-within .seal { transform: rotate(-6deg) scale(1); }

.member-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
}

.member-title {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── block 2 · the creed ────────────────────────────────── */

.creed {
  position: relative; z-index: 4;
  padding: clamp(80px, 14vh, 150px) 24px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(23,20,15,0.85) 22%, rgba(23,20,15,0.85) 78%, transparent);
}

.section-title {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px; letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(36px, 6vh, 64px);
}
.section-title span { padding: 0 18px; }
.section-title::before, .section-title::after {
  content: "─────";
  color: var(--gold-dim);
  letter-spacing: 0;
}

.creed-line {
  font-family: var(--serif);
  font-weight: 300; font-style: italic;
  font-size: clamp(24px, 4.4vw, 44px);
  line-height: 1.35;
  color: var(--bone);
  max-width: 18em;
  margin: 0 auto;
}
.creed-line + .creed-line { margin-top: clamp(28px, 5vh, 48px); }
.creed-line + .creed-line::before {
  content: "◆";
  display: block;
  font-size: 9px; font-style: normal;
  color: var(--blood-hot);
  margin: 0 auto clamp(28px, 5vh, 48px);
}

/* ── footer ─────────────────────────────────────────────── */

.footer {
  position: relative; z-index: 4;
  padding: 56px 24px 64px;
  text-align: center;
  border-top: 1px solid var(--smoke-2);
}
.footer-line {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.35em;
  color: var(--bone-dim);
}
.footer-line + .footer-line { margin-top: 12px; }
.footer-line--dim a { color: var(--gold-dim); border-bottom-color: transparent; }
.footer-line--dim a:hover { color: var(--gold); }

/* ── small screens / accessibility ──────────────────────── */

@media (max-width: 720px) {
  .side-rail { display: none; }
  .roster { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
}
@media (max-width: 400px) {
  .roster { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .member { animation: none; opacity: 1; transform: none; }
  .burst, .seal, .pfp-frame img { transition: none; }
  #embers { display: none; }
}

/* ═══ v2 additions · banner row · introductions · money ═══ */

/* banner: one unbroken row on wide screens */
@media (min-width: 1000px) {
  .roster {
    display: flex; flex-wrap: nowrap;
    align-items: flex-start; justify-content: center;
    width: min(1280px, 100%);
    gap: clamp(14px, 2vw, 30px);
  }
  .member { flex: 1 1 0; max-width: 150px; }
}

.member-link { display: block; color: inherit; border-bottom: none; cursor: pointer; }
.member-link:hover, .member-link:focus-visible { color: inherit; border-bottom: none; }
.member-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 8px; }

.hero-hint {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.35em;
  color: var(--bone-dim); opacity: 0.75;
  text-transform: uppercase;
}

/* ── introductions ──────────────────────────────────────── */

.intros {
  position: relative; z-index: 4;
  padding: clamp(70px, 12vh, 130px) clamp(20px, 6vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.intro + .intro { margin-top: clamp(64px, 12vh, 120px); }
.intro.flip { grid-template-columns: 1fr minmax(220px, 320px); transform: translateX(44px); }
.intro.flip .intro-portrait { order: 2; }
.intro.flip .intro-text { order: 1; text-align: right; }
.intro.in { opacity: 1; transform: none; }

/* living portrait: slow Ken Burns pan + gentle float = the "gif" feel */
.intro-portrait {
  display: block;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px var(--smoke-2), 0 16px 40px rgba(0,0,0,0.55);
  animation: floaty 6.5s ease-in-out infinite alternate;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.intro-portrait:hover, .intro-portrait:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px var(--gold-dim),
              0 18px 44px rgba(0,0,0,0.6), 0 0 30px rgba(201,162,75,0.3);
}
.kb { width: 100%; height: 100%; overflow: hidden; }
.kb img {
  width: 100%; height: 100%; max-width: 100%;
  object-fit: cover;
  animation: kenburns 16s ease-in-out infinite alternate;
  animation-delay: var(--kb-delay, 0s);
}
@keyframes kenburns {
  from { transform: scale(1.06) translate(-1.5%, -1%); }
  to   { transform: scale(1.2)  translate(1.8%, 2%); }
}
@keyframes floaty {
  from { transform: translateY(-5px); }
  to   { transform: translateY(5px); }
}

.intro-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 34px);
  letter-spacing: 0.08em;
  color: var(--bone);
  overflow-wrap: anywhere;
}
.intro-rank {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.intro-blurb {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 300; font-style: italic;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.6;
  color: var(--bone-dim);
}
.intro-link {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 3px;
}
.intro-link:hover { color: var(--gold-hot); border-bottom-color: var(--gold-hot); }

.footer-line--gold { color: var(--gold); }

@media (max-width: 760px) {
  .intro, .intro.flip { grid-template-columns: 1fr; transform: translateY(30px); }
  .intro.flip .intro-portrait { order: 0; }
  .intro.flip .intro-text { order: 1; text-align: left; }
  .intro.in { transform: none; }
  .intro-portrait { max-width: 320px; margin: 0 auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .intro, .intro.flip { opacity: 1; transform: none; transition: none; }
  .intro-portrait, .kb img { animation: none; }
}

/* ═══ v3 · full-background living scene ═══ */

.hero--scene {
  display: block;
  padding: 0;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(201,162,75,0.13), transparent 65%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(142,47,47,0.10), transparent 62%),
    linear-gradient(180deg, #0B0A08 0%, #12100B 55%, #0B0A08 100%);
}

.skyline {
  position: absolute; bottom: -2px; left: 0;
  width: 100%; height: clamp(110px, 20vh, 210px);
  object-fit: cover;
  opacity: 0.9;
  pointer-events: none;
  z-index: 4;
}

.scene { position: absolute; inset: 0; z-index: 5; }

.char {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) scale(var(--s, 1));
  width: clamp(78px, 10.5vw, 138px);
  border-bottom: none;
  color: inherit;
  z-index: 5;
}
.char:hover, .char:focus-visible { z-index: 9; border-bottom: none; }
.char:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 12px; }

.char-bob {
  display: block;
  animation: bob var(--dur, 3.2s) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes bob {
  from { transform: translateY(-11px); }
  to   { transform: translateY(9px); }
}

.char img {
  display: block;
  width: 100%; aspect-ratio: 1; max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  box-shadow: 0 0 0 4px var(--ink), 0 12px 28px rgba(0,0,0,0.6);
  filter: saturate(0.85);
  transition: filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.char:hover img, .char:focus-visible img {
  filter: none;
  border-color: var(--gold);
  transform: scale(1.09);
  box-shadow: 0 0 0 4px var(--ink), 0 14px 32px rgba(0,0,0,0.65),
              0 0 34px rgba(201,162,75,0.55);
}

.char-name {
  display: block;
  margin: 9px auto 0;
  width: fit-content;
  max-width: 130%;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--bone);
  background: rgba(11,10,8,0.78);
  border: 1px solid var(--smoke-2);
  border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.char:hover .char-name, .char:focus-visible .char-name { color: var(--gold-hot); border-color: var(--gold-dim); }

.masthead--overlay {
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
  width: min(92vw, 700px);
}
.masthead--overlay .wordmark { font-size: clamp(40px, 7.5vw, 88px); }

.hero-hint--scene {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  margin: 0;
}

/* falling cash (hero layer — bolder than the page-wide canvas bills) */
.cashfall { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.cash {
  position: absolute; top: -60px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 22px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: rgba(207,227,194,0.75);
  background: rgba(63,101,77,0.45);
  border: 1px solid rgba(201,162,75,0.45);
  border-radius: 3px;
  animation: cashfall var(--fdur, 11s) linear var(--fdelay, 0s) infinite;
  opacity: 0;
}
@keyframes cashfall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  6%   { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(115vh) rotate(340deg); opacity: 0; }
}
.cash:nth-child(1) { left: 7%;  --fdur: 12s;   --fdelay: 0s;    scale: 0.8; }
.cash:nth-child(2) { left: 21%; --fdur: 9.5s;  --fdelay: -4s;   scale: 1.05; }
.cash:nth-child(3) { left: 38%; --fdur: 13.5s; --fdelay: -8s;   scale: 0.7; }
.cash:nth-child(4) { left: 55%; --fdur: 10s;   --fdelay: -2.5s; scale: 0.9; }
.cash:nth-child(5) { left: 69%; --fdur: 12.5s; --fdelay: -6.5s; scale: 1.1; }
.cash:nth-child(6) { left: 83%; --fdur: 9s;    --fdelay: -1s;   scale: 0.75; }
.cash:nth-child(7) { left: 93%; --fdur: 14s;   --fdelay: -10s;  scale: 0.95; }

/* phones: the scene reflows to a bouncing grid under the title */
@media (max-width: 760px) {
  .hero--scene { min-height: auto; padding: 72px 14px 46px; }
  .masthead--overlay {
    position: static; transform: none;
    pointer-events: auto;
    width: auto;
    text-align: center;
  }
  .scene {
    position: relative; inset: auto;
    display: flex; flex-wrap: wrap;
    justify-content: center;
    gap: 22px 12px;
    margin-top: 34px;
    padding-bottom: clamp(120px, 22vh, 200px); /* keep clear of the skyline */
  }
  .char { position: static; transform: none; width: 92px; }
  .hero-hint--scene { position: static; transform: none; margin-top: 26px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .char-bob { animation: none; }
  .cash { animation: none; opacity: 0; }
}

/* ═══ v4 · the living poster ═══ */

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

.hero--poster {
  display: block;
  padding: 0;
  min-height: 0;
  position: relative;
  background: var(--ink);
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  overflow: hidden;
  background: var(--ink);
}

.stage-motion {
  position: absolute; inset: 0;
  animation: breathe 16s ease-in-out infinite alternate;
  transform-origin: 50% 42%;
}
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.024); } }

.poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: 100%;
  object-fit: fill;
  user-select: none; -webkit-user-drag: none;
}

#scene-layers { position: absolute; inset: 0; }

/* soft-masked cutouts of the poster itself — they bob over the intact art */
.patch {
  position: absolute;
  display: block;
  border-bottom: none;
  background-repeat: no-repeat;
  -webkit-mask: radial-gradient(ellipse 52% 52% at 50% 50%, #000 55%, transparent 81%);
          mask: radial-gradient(ellipse 52% 52% at 50% 50%, #000 55%, transparent 81%);
  animation: bob var(--dur, 3.4s) ease-in-out var(--delay, 0s) infinite alternate;
  transition: filter 0.3s ease;
  z-index: 2;
}
.patch:hover, .patch:focus-visible {
  filter: brightness(1.22) saturate(1.15) drop-shadow(0 0 22px rgba(201,162,75,0.85));
  z-index: 8;
}
.patch:focus-visible { outline: none; }

.patch-tag {
  position: absolute; left: 50%; bottom: 4%;
  transform: translateX(-50%) translateY(6px);
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: clamp(8px, 0.8vw, 12px);
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--gold-hot);
  background: rgba(11,10,8,0.88);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.patch:hover .patch-tag, .patch:focus-visible .patch-tag,
.boss-spot:hover .patch-tag, .boss-spot:focus-visible .patch-tag {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* framed portraits for the members the poster art missed */
.panel {
  position: absolute;
  display: block;
  width: clamp(54px, 8%, 132px);
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  border-bottom: none;
  animation: bob var(--dur, 3.4s) ease-in-out var(--delay, 0s) infinite alternate;
  z-index: 3;
}
.panel:hover, .panel:focus-visible { z-index: 8; }
.panel:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.panel-frame {
  display: block;
  padding: 4.5%;
  background: linear-gradient(135deg, #8a6c2f, #d9b45e 30%, #6E5A2E 60%, #C9A24B);
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.75), 0 0 0 1px rgba(11,10,8,0.9);
  transition: box-shadow 0.3s ease;
}
.panel:hover .panel-frame, .panel:focus-visible .panel-frame {
  box-shadow: 0 12px 30px rgba(0,0,0,0.8), 0 0 30px rgba(201,162,75,0.7);
}
.panel-frame img {
  display: block;
  width: 100%; aspect-ratio: 3 / 4; max-width: 100%;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(0.9);
  transition: filter 0.3s ease;
}
.panel:hover .panel-frame img { filter: none; }
.panel-name {
  display: block;
  margin: 7px auto 0;
  width: fit-content;
  max-width: 140%;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: clamp(7px, 0.72vw, 11px);
  letter-spacing: 0.1em;
  color: var(--bone);
  background: rgba(11,10,8,0.85);
  border: 1px solid var(--smoke-2);
  border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.panel:hover .panel-name { color: var(--gold-hot); border-color: var(--gold-dim); }

/* the boss on the throne — scrolls to the introductions */
.boss-spot {
  position: absolute;
  display: block;
  border-bottom: none;
  border-radius: 18px;
  z-index: 1;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.boss-spot:hover, .boss-spot:focus-visible {
  background: radial-gradient(ellipse at 50% 60%, rgba(201,162,75,0.10), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(201,162,75,0.35);
  z-index: 7;
}
.boss-spot:focus-visible { outline: none; }
.boss-spot .patch-tag { bottom: 8%; }

.stage-motto {
  position: absolute;
  left: 50%; bottom: 2.2%;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(9px, 1.15vw, 16px);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--bone);
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 18px rgba(0,0,0,0.9);
  white-space: nowrap;
  pointer-events: none;
}
.stage-motto b { color: var(--gold-hot); font-weight: 500; }

.stage .roster-note { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); }
.stage .cashfall { z-index: 4; }

/* legend bar — the crisp version of the poster's name strip */
.legend {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px clamp(8px, 2vw, 28px) 12px;
  background: linear-gradient(180deg, #14110C, #0B0A08);
  border-top: 1px solid rgba(201,162,75,0.4);
  border-bottom: 1px solid var(--smoke-2);
  overflow-x: auto;
  scrollbar-width: thin;
}
.plate {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 172px;
  padding: 6px 9px;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(201,162,75,0.07), rgba(11,10,8,0.6));
  border-bottom-width: 1px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.plate:hover, .plate:focus-visible {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201,162,75,0.16), rgba(11,10,8,0.6));
  transform: translateY(-2px);
}
.plate-thumb {
  width: 30px; height: 30px; max-width: 100%;
  flex: 0 0 30px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
}
.plate-txt { display: block; min-width: 0; }
.plate-name {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bone);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plate-rank {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hero-hint--legend {
  padding: 12px 16px 4px;
  text-align: center;
  margin: 0;
}

@media (max-width: 900px) {
  .legend { justify-content: flex-start; }
  .plate { flex: 0 0 auto; }
  .plate-txt { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-motion, .patch, .panel { animation: none; }
}

/* ═══ v5 · poster v2 (baked legend) ═══ */

.plate-spot {
  position: absolute;
  display: block;
  border-bottom: none;
  border-radius: 6px;
  z-index: 6;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.plate-spot:hover, .plate-spot:focus-visible {
  background: rgba(201,162,75,0.14);
  box-shadow: inset 0 0 0 1px rgba(240,201,108,0.8), 0 0 16px rgba(201,162,75,0.45);
}
.plate-spot:focus-visible { outline: none; }

.stage-motto { bottom: 8.6%; }

/* ═══ v6 · static characters + helicopter searchlights ═══ */

/* the family stands still now */
.patch, .panel { animation: none; }
.stage-motion { animation: none; }

/* clicks must always land */
.side-rail { pointer-events: none; }
.patch, .plate-spot, .panel { cursor: pointer; }

/* helicopter beams sweeping down every now and then */
.searchlights {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}
.beam {
  position: absolute; top: -12%;
  left: var(--bx, 18%);
  width: 13%; height: 88%;
  background: linear-gradient(180deg, rgba(255,242,204,0.6), rgba(255,242,204,0.08) 68%, transparent);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  transform: rotate(-14deg);
  opacity: 0;
  filter: blur(2px);
  animation: sweep var(--bdur, 14s) ease-in-out var(--bdelay, 0s) infinite;
}
.beam:nth-child(1) { --bx: 11%; --bdur: 14s; --bdelay: 0s; }
.beam:nth-child(2) { --bx: 63%; --bdur: 19s; --bdelay: -7s; width: 10%; }
@keyframes sweep {
  0%, 55%   { opacity: 0;    transform: rotate(-14deg); }
  59%       { opacity: 0.8;  }
  63%       { opacity: 0.55; transform: rotate(-4deg); }
  71%       { opacity: 0.75; transform: rotate(9deg); }
  78%, 100% { opacity: 0;    transform: rotate(16deg); }
}

/* city lights blinking */
.glint {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,238,190,0.95), rgba(255,238,190,0) 70%);
  opacity: 0;
  animation: glint var(--gdur, 7s) ease-in-out var(--gdelay, 0s) infinite;
}
@keyframes glint {
  0%, 86% { opacity: 0;   transform: scale(0.4); }
  91%     { opacity: 0.9; transform: scale(1.8); }
  95%     { opacity: 0.25; }
  100%    { opacity: 0;   transform: scale(0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .beam, .glint { animation: none; opacity: 0; }
}
