/* Hero poster, tale of the tape, scorebug */

.hero { padding-top: clamp(1.75rem, 4vw, 3rem); }

.hero__eyebrow {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  font-stretch: 62%;
  font-weight: 850;
  font-size: var(--t-md);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.hero__eyebrow .star { color: var(--red); }

.hero__stage {
  max-width: var(--max);
  margin: clamp(0.5rem, 2vw, 1.5rem) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) minmax(0, 0.8fr);
  align-items: end;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

/* ---------- title ---------- */
.hero__title {
  align-self: center;
  display: grid;
  justify-items: center;
  font-family: var(--f-slab);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.86;
  font-size: clamp(3rem, 6.3vw, 6.1rem);
  padding-bottom: clamp(1rem, 3vw, 2.5rem);
}
.t-monkey {
  color: var(--ink);
  text-shadow: 0.05em 0.05em 0 var(--red);
  animation: slam-left 0.7s cubic-bezier(.2, .9, .25, 1.2) both;
}
.t-machine {
  color: var(--blue);
  text-shadow: 0.05em 0.05em 0 var(--ink);
  animation: slam-right 0.7s 0.12s cubic-bezier(.2, .9, .25, 1.2) both;
}
.t-vs {
  display: grid;
  place-items: center;
  width: 1.55em;
  height: 1.55em;
  margin: -0.12em 0;
  font-family: var(--f-body);
  font-stretch: 62%;
  font-style: italic;
  font-weight: 900;
  font-size: 0.62em;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--chalk);
  background: var(--red);
  clip-path: polygon(50% 0, 61% 18%, 82% 8%, 80% 31%, 100% 38%, 84% 54%, 97% 73%, 74% 76%, 72% 100%, 54% 86%, 36% 100%, 30% 78%, 6% 80%, 16% 59%, 0 42%, 21% 32%, 16% 9%, 39% 17%);
  position: relative;
  z-index: 1;
  animation: burst 0.5s 0.45s cubic-bezier(.2, .9, .3, 1.4) both;
}
@keyframes slam-left { from { transform: translateX(-8%) scale(1.08); } }
@keyframes slam-right { from { transform: translateX(8%) scale(1.08); } }
@keyframes burst { from { transform: scale(0.2) rotate(-40deg); } }

/* ---------- fighters ---------- */
.fighter { margin: 0; display: grid; justify-items: center; }
.fighter--randy { animation: bob 2.6s ease-in-out infinite; }
.fighter--alpha { animation: bob 2.6s 1.3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px); } }
/* 300px is the art's native width; never upscale past it */
.fighter__art { width: 100%; max-width: 300px; }
.fighter__art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(5px 5px 0 rgba(23, 20, 12, 0.9));
}

/* the plate overlaps the art so the cropped torso tucks behind it */
.plate {
  position: relative;
  z-index: 1;
  margin-top: -12%;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  width: 100%;
  max-width: 280px;
  padding: 0.55rem 0.8rem 0.65rem;
  background: var(--ink);
  color: var(--chalk);
  border: var(--edge);
  box-shadow: var(--shadow);
  text-align: center;
}
.plate--randy { border-top: 8px solid var(--red); transform: rotate(-2deg); }
.plate--alpha { border-top: 8px solid var(--blue); transform: rotate(2deg); }
.plate__corner {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--banana-lite);
}
.plate__name { font-family: var(--f-slab); font-weight: 400; font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1; }
.plate__tag { font-stretch: 75%; font-style: italic; font-weight: 700; font-size: var(--t-sm); color: #D9CFA8; }

/* ---------- deck: pitch + tale of the tape ---------- */
.hero__deck {
  max-width: var(--max);
  margin: clamp(2.25rem, 5vw, 3.5rem) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}
.hero__pitch { display: grid; gap: 1.25rem; }
.hero__lede {
  font-stretch: 80%;
  font-weight: 850;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__lede strong {
  font-weight: 900;
  background: var(--ink);
  color: var(--banana);
  padding: 0 0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero__sub { max-width: 58ch; font-size: 1.075rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; padding-top: 0.25rem; }

.stub {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.55rem 1.1rem;
  background: var(--chalk);
  border: 2px solid var(--ink);
  -webkit-mask: radial-gradient(circle 8px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 8px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 8px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.stub__label {
  padding-right: 0.8rem;
  border-right: 2px dashed var(--ink);
  font-stretch: 62%;
  font-weight: 850;
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.stub__ca { font-family: var(--f-mono); font-size: var(--t-sm); overflow-wrap: anywhere; }
.stub__btn {
  font: 700 var(--t-xs)/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: 2px solid var(--ink-soft);
  color: var(--ink-soft);
}
.stub__btn:not([disabled]) { border-color: var(--ink); color: var(--ink); cursor: pointer; }
.stub__btn:not([disabled]):hover { background: var(--ink); color: var(--banana); }

.tape {
  background: var(--ink);
  color: var(--chalk);
  border: var(--edge);
  box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
}
.tape__head, .tape__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 1rem;
}
.tape__head {
  background: var(--red);
  border-bottom: var(--edge);
  font-family: var(--f-slab);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  text-transform: uppercase;
}
.tape__head span:nth-child(2) {
  font-family: var(--f-body);
  font-stretch: 62%;
  font-weight: 900;
  font-size: var(--t-sm);
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--ink);
  background: var(--banana);
  padding: 0.1rem 0.4rem;
}
.tape__row + .tape__row { border-top: 1px dashed #5E5436; }
.tape__row span:first-child, .tape__head span:first-child { text-align: right; }
.tape__row span:nth-child(2) {
  text-align: center;
  font-stretch: 62%;
  font-weight: 800;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #BFB38A;
}
.tape__row span:first-child { color: var(--banana); font-weight: 700; }
.tape__row span:last-child { color: var(--blue-lite); font-weight: 700; }
.tape__row--rec span:first-child,
.tape__row--rec span:last-child { font-family: var(--f-slab); font-weight: 400; font-size: 2.1rem; line-height: 1; }

/* ---------- scorebug ---------- */
main > .bug {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  background: var(--ink);
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
}
.bug__side {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem var(--pad-x);
}
.bug__side--randy { justify-content: flex-end; background: var(--banana); color: var(--ink); clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%); padding-right: 3rem; }
.bug__side--alpha { justify-content: flex-start; background: var(--blue); color: var(--chalk); clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%); padding-left: 3rem; }
.bug__name { font-stretch: 62%; font-weight: 900; font-size: var(--t-lg); letter-spacing: 0.1em; }
.bug__val { font-family: var(--f-slab); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1; }
.bug__mid {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.4rem;
  padding: 0.6rem 1rem;
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bug__mid b { color: var(--banana); }
.bug__round { color: var(--red-lite); font-weight: 700; }

@media (max-width: 1080px) {
  .bug__mid { flex-direction: column; gap: 0.15rem; }
}

@media (max-width: 760px) {
  .hero__stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "title title" "randy alpha";
  }
  .hero__title { grid-area: title; font-size: clamp(2.8rem, 15vw, 4.6rem); padding-bottom: 0.5rem; }
  .plate { padding-inline: 0.5rem; }
  .plate__name { font-size: clamp(0.85rem, 4vw, 1.25rem); white-space: nowrap; }
  .fighter--randy { grid-area: randy; }
  .fighter--alpha { grid-area: alpha; }
  .hero__deck { grid-template-columns: 1fr; }
  main > .bug { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bug__mid { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .bug__side--randy, .bug__side--alpha { clip-path: none; padding: 0.7rem 1rem; gap: 0.1rem; }
  .bug__side--randy { flex-direction: column; align-items: flex-end; }
  .bug__side--alpha { flex-direction: column-reverse; align-items: flex-start; }
  .bug__val { font-size: clamp(1.25rem, 6.4vw, 1.6rem); }
}
