/* ---------- Crew intro: hero cards ---------- */
.crew-show { width: 100%; max-width: 900px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0 12px; }
.crew-title { font-family: "Bangers", cursive; font-size: clamp(26px, 6vw, 40px); letter-spacing: 2px; margin: 0; color: var(--fire-hot);
  text-shadow: 0 3px 0 var(--ember), 0 0 20px rgba(255,120,0,.5); }
/* The card sizes itself to its content: a character area (0.7 × card width) on top, the text below.
   --w is the card width; the character pops out above the frame by a quarter of it. */
.hero-wrap { --w: min(360px, 80vw); position: relative; width: var(--w); margin-top: calc(var(--w) * 0.22); perspective: 1200px; }
/* flow-root keeps the text block's top margin inside the card (otherwise it collapses through and the card shrinks) */
.hero-card { position: relative; display: flow-root; animation: card-in .75s cubic-bezier(.2,1.25,.35,1) both; touch-action: pan-y; }
.hero-card.from-left { animation-name: card-in-left; }
.hero-card.exit, .hero-card.exit-right { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.hero-card.exit { animation: card-out .45s ease-in forwards; }
.hero-card.exit-right { animation: card-out-right .45s ease-in forwards; }
/* tall pill arrows on both sides */
.hero-arrow { position: absolute; top: 50%; z-index: 7; width: 78px; height: 156px; margin-top: -78px; border-radius: 40px; padding: 0;
  display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff; cursor: pointer;
  border: 3px solid var(--fire-hot); background: radial-gradient(ellipse at 40% 35%, #ff9d2e, #c4320a);
  box-shadow: 0 6px 16px rgba(0,0,0,.55), 0 0 14px rgba(255,140,40,.5); transition: transform .15s, opacity .2s; }
.hero-arrow.prev { left: -50px; padding-right: 4px; }
.hero-arrow.next { right: -50px; padding-left: 4px; }
.hero-arrow:hover:not(:disabled) { transform: scale(1.06); }
.hero-arrow:active:not(:disabled) { transform: scale(.92); }
.hero-arrow:disabled { opacity: .25; cursor: default; box-shadow: none; }
.hc-fire { position: absolute; left: -12.5%; top: -11%; width: 125%; height: 120%; z-index: 0; pointer-events: none; }
.hc-frame { position: absolute; inset: 0; z-index: 1; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, var(--a) 0%, #1a0703 48%, #2a0a03 62%, var(--b) 130%);
  border: 4px solid var(--glow); box-shadow: 0 0 34px rgba(255,120,30,.6), 0 18px 40px rgba(0,0,0,.6), inset 0 0 60px rgba(0,0,0,.55); }
.hc-rays { position: absolute; left: 50%; top: 30%; width: 220%; aspect-ratio: 1; translate: -50% -50%; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.09) 0 7deg, transparent 7deg 20deg); animation: spin 40s linear infinite; }
.hc-dots { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.22) 1.3px, transparent 1.6px); background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 45%); mask-image: linear-gradient(160deg, #000 0%, transparent 45%); }
.hc-stripes { position: absolute; left: -30%; right: -30%; top: calc(var(--w) * 0.42); height: calc(var(--w) * 0.22); opacity: .3; rotate: -12deg;
  background: repeating-linear-gradient(-45deg, var(--glow) 0 10px, transparent 10px 22px); }
.hc-big { position: absolute; top: 3%; left: 0; display: flex; white-space: nowrap; rotate: -10deg; animation: marquee 14s linear infinite;
  font-family: "Bangers", cursive; font-size: calc(var(--w) * 0.36); line-height: 1; letter-spacing: 4px; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.22); }
.hc-big span { padding-right: 24px; }
.hc-num { position: absolute; right: 12px; top: calc(var(--w) * 0.4); font-family: "Bangers", cursive; font-size: calc(var(--w) * 0.27); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--glow); opacity: .5; }
.hc-badge { position: absolute; left: 12px; top: calc(var(--w) * 0.52); z-index: 4; padding: 3px 10px; border-radius: 8px; rotate: -6deg;
  background: var(--glow); color: #1a0703; font-weight: 900; font-size: 12px; letter-spacing: 1px; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.hc-flames { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; animation: flicker 1.6s ease-in-out infinite alternate;
  background: radial-gradient(ellipse at 50% 115%, rgba(255,130,20,.75), rgba(255,60,0,.25) 45%, transparent 70%); }
.hc-char { position: absolute; z-index: 3; left: -6%; width: 112%; top: calc(var(--w) * -0.25); height: calc(var(--w) * 0.95); pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(255,140,40,.4));
  animation: pop-out .85s .25s cubic-bezier(.2,1.55,.4,1) both, hero-float 3s ease-in-out 1.2s infinite; }
.hc-info { position: relative; z-index: 2; margin-top: calc(var(--w) * 0.7); display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 12px 16px 16px; text-align: center; border-radius: 0 0 26px 26px;
  background: linear-gradient(transparent, rgba(12,4,2,.88) 18%, rgba(12,4,2,.95)); }
.hc-name { font-family: "Bangers", cursive; font-size: clamp(42px, 11vw, 56px); line-height: .9; letter-spacing: 2px;
  background: linear-gradient(#fff6c8, #ffcf3f 40%, #ff5a0a 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #6e1b04) drop-shadow(0 0 12px var(--glow)); animation: name-in .6s .55s cubic-bezier(.2,1.6,.4,1) both; }
.hc-sub { font-weight: 900; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--glow); margin-top: -2px; }
.hc-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.hc-tags span { font-size: 11px; font-weight: 800; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 2px 8px; }
.hc-skill { width: 100%; text-align: left; font-size: 12.5px; font-weight: 700; line-height: 1.35; padding: 6px 9px; border-radius: 10px;
  background: rgba(255,255,255,.07); border-left: 4px solid var(--glow); }
.hc-skill b { display: block; font-family: "Bangers", cursive; font-weight: 400; font-size: 17px; letter-spacing: 1px; color: var(--fire-hot); }
.hc-stats { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.hc-stat { display: grid; grid-template-columns: 104px 1fr 28px; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; text-align: left; }
.hc-stat i { height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.hc-stat b { display: block; height: 100%; width: var(--v); border-radius: 4px; background: linear-gradient(90deg, #ff5a0a, #ffcf3f);
  box-shadow: 0 0 8px rgba(255,160,40,.8); animation: bar-in 1s var(--d) cubic-bezier(.2,.9,.3,1) both; }
.hc-stat em { font-style: normal; color: var(--fire-hot); text-align: right; }
.hc-passive { font-size: 11px; line-height: 1.35; color: var(--muted); }
/* above the card's fire layer, which spills past the card bottom */
.crew-nav { position: relative; z-index: 7; display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.crew-nav .btn { margin: 0; }
.crew-dots { display: flex; gap: 6px; }
.crew-dots i { width: 10px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.25); transition: width .3s, background .3s; cursor: pointer; }
.crew-dots i.on { width: 28px; background: var(--fire-hot); box-shadow: 0 0 10px var(--fire); }

@keyframes card-in { from { opacity: 0; transform: translateX(45%) rotateY(-40deg) scale(.75); } to { opacity: 1; transform: none; } }
@keyframes card-out { to { opacity: 0; transform: translateX(-55%) rotateY(40deg) scale(.75); } }
@keyframes card-in-left { from { opacity: 0; transform: translateX(-45%) rotateY(40deg) scale(.75); } to { opacity: 1; transform: none; } }
@keyframes card-out-right { to { opacity: 0; transform: translateX(55%) rotateY(-40deg) scale(.75); } }
@keyframes pop-out { 0% { opacity: 0; transform: translateY(42%) scale(.55); } 65% { opacity: 1; transform: translateY(-7%) scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spin { to { rotate: 1turn; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes flicker { from { opacity: .75; } to { opacity: 1; } }
@keyframes bar-in { from { width: 0; } }
@keyframes name-in { from { opacity: 0; transform: scale(1.7); } to { opacity: 1; transform: none; } }

/* Portrait phones */
@media (max-width: 640px) {
  .crew-show { padding-top: 22px; gap: 8px; }
  .hero-wrap { --w: 74vw; }
  .hero-arrow { width: 63px; height: 126px; margin-top: -63px; font-size: 24px; border-radius: 32px; }
  .hero-arrow.prev { left: calc(-13vw + 2px); }
  .hero-arrow.next { right: calc(-13vw + 2px); }
  .hc-info { gap: 5px; padding: 10px 12px 14px; }
  .hc-name { font-size: 42px; }
  .hc-skill { font-size: 12px; }
  .hc-stat { grid-template-columns: 96px 1fr 26px; }
}

/* Wide but short screens (landscape phones, laptops): the card turns sideways, the hero on the left jumping out of the top */
@media (max-height: 760px) and (min-aspect-ratio: 5/4) {
  .crew-show { padding: 4px 0; gap: 6px; }
  .crew-title { font-size: clamp(22px, 5vh, 36px); }
  .hero-wrap { --w: min(700px, 76vw); margin-top: clamp(20px, 6vh, 48px); }
  .hero-arrow { width: 66px; height: 132px; margin-top: -66px; }
  .hero-arrow.prev { left: -48px; }
  .hero-arrow.next { right: -48px; }
  .crew-nav { margin-top: 6px; }
  .hc-badge { top: auto; bottom: 14px; left: 12px; }
  .hc-stripes { top: 40%; height: 18%; }
  .hc-num { top: auto; bottom: 6px; left: 12px; right: auto; font-size: 64px; }
  .hc-big { font-size: 96px; }
  .hc-char { left: 0; width: 42%; top: -16%; height: 112%; }
  .hc-info { margin: 0 0 0 38%; padding: 10px 14px 12px 8px; align-items: flex-start; text-align: left; gap: 4px; border-radius: 0 26px 26px 0;
    background: linear-gradient(90deg, transparent, rgba(12,4,2,.88) 14%, rgba(12,4,2,.95)); }
  .hc-name { font-size: clamp(32px, 8vh, 56px); }
  .hc-tags { justify-content: flex-start; }
  .hc-skill { font-size: clamp(11px, 2.2vh, 13px); padding: 4px 8px; }
  .hc-skill b { font-size: clamp(14px, 2.8vh, 18px); }
  .hc-stat { grid-template-columns: 110px 1fr 28px; font-size: clamp(10px, 1.9vh, 12px); }
  .hc-passive { font-size: clamp(10px, 1.9vh, 12px); }
}
