/* Terminal Hell - tiny potato roguelike */
@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700;800&display=swap");

:root {
  --comic-font: "Comic Sans MS", "Comic Sans", "Comic Neue", system-ui, sans-serif;
  --ink: #25162f;
  --paper: #fff8d6;
  --hot-pink: #ff4fd8;
  --banana: #ffe45c;
  --acid: #9cff3b;
  --sky: #60e7ff;
  --purple: #8c5cff;
  --danger: #ff5a5f;
  --orange: #ff9f1c;
  --mint: #baffef;
  --lavender: #e1d3ff;
  --shadow: 0 18px 45px rgba(37, 22, 47, 0.22);
  --border: 4px solid #25162f;
  --radius: 28px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.75rem;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Comic Sans MS", "Comic Sans", "Comic Neue", system-ui, sans-serif;
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(255, 79, 216, 0.35),
      transparent 26rem
    ),
    radial-gradient(
      circle at 92% 7%,
      rgba(96, 231, 255, 0.34),
      transparent 28rem
    ),
    linear-gradient(rgba(255, 248, 214, 0.22), rgba(255, 248, 214, 0.22)),
    url("assets/cloudbackground.gif");
  background-size: auto, auto, auto, cover;
  background-attachment: fixed;
  overflow-x: hidden;
}
body::before {
  content: "⚔️ 🥔 🛫 💀";
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 0;
  font-size: clamp(1.8rem, 4vw, 4rem);
  opacity: 0.16;
  pointer-events: none;
  animation: floaty 4s ease-in-out infinite alternate;
}
a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0 !important;
}
button {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0.25rem 0;
  padding: 0.18rem 0.42rem;
  border: 2px solid rgba(37, 22, 47, 0.26);
  border-radius: 8px;
  background: rgba(255, 248, 214, 0.9);
  font-family: inherit;
  font-weight: 900;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 99;
  padding: 0.75rem 1rem;
  background: var(--banana);
  border: var(--border);
  border-radius: 999px;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem;
  backdrop-filter: blur(10px);
}
.nav-shell {
  width: min(1180px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 248, 214, 0.88);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 7px 7px 0 rgba(37, 22, 47, 0.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.brand-potato {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--banana);
  border: 3px solid var(--ink);
  font-size: 1.5rem;
  animation: wiggle 1.8s ease-in-out infinite;
}
.brand strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1;
}
.brand small {
  display: block;
  max-width: 32ch;
  font-size: 0.8rem;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.nav-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}
.nav-links > a:hover,
.nav-links > a.active {
  background: var(--hot-pink);
  border-color: var(--ink);
  transform: rotate(-1deg);
}
main {
  position: relative;
  z-index: 1;
}
.rogue-hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 1.5rem;
  align-items: stretch;
}
.hero-copy,
.run-card,
.game-shell,
.asset-shell,
.site-footer {
  border: var(--border);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow),
    9px 9px 0 rgba(37, 22, 47, 0.24);
}
.hero-copy {
  position: relative;
  min-height: 430px;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 3vw, 3rem)
    clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(135deg, rgba(255, 228, 92, 0.95), rgba(255, 79, 216, 0.88)),
    url("assets/rogue/terminal-bg.png"), url("assets/buttonbackground.gif");
  background-size: cover;
  overflow: hidden;
}
.hero-copy::after {
  content: "KINDA FUN!";
  position: absolute;
  right: -2rem;
  bottom: 0.5rem;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.23);
  -webkit-text-stroke: 2px rgba(37, 22, 47, 0.22);
  transform: rotate(-7deg);
}
.eyebrow {
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.4rem 0.75rem;
  background: var(--acid);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.eyebrow.small {
  margin-bottom: 0.45rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  max-width: 100%;
  font-size: clamp(3rem, 6.8vw, 6.6rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  text-shadow:
    3px 3px 0 var(--sky),
    6px 6px 0 var(--purple);
}
.hero-copy > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  font-weight: 800;
}
.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.35);
  transition: 0.15s ease;
}
.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 8px 8px 0 rgba(37, 22, 47, 0.35);
  outline: none;
}
.button-primary {
  background: var(--sky);
}
.button-secondary {
  background: var(--paper);
}

.start-run-button {
  min-height: 3.7rem;
  padding: 0.95rem 1.55rem;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}

.music-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 248, 214, 0.94);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.28);
}

.music-selector span {
  white-space: nowrap;
}

.music-selector select {
  max-width: 15rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lavender);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.music-selector select:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
.run-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.64)),
    url("assets/pinkclouds.jpg");
  background-size: cover;
}
.run-sticker {
  position: absolute;
  top: 0.6rem;
  left: 0.4rem;
  z-index: 2;
  padding: 0.55rem 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--danger);
  color: white;
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.3);
  transform: rotate(-9deg);
}
.run-stat {
  padding: 1.25rem;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: rgba(255, 248, 214, 0.92);
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.16);
}
.run-stat strong {
  display: block;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.run-stat span {
  font-weight: 900;
  text-transform: uppercase;
}
.marquee-strip {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: var(--border);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 7px 7px 0 rgba(37, 22, 47, 0.22);
}
.marquee-strip div {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  animation: scroll 18s linear infinite;
}
.marquee-strip span {
  font-weight: 900;
}
.game-shell,
.asset-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(255, 248, 214, 0.92);
  scroll-margin-top: 7.75rem;
}
.top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}
.fighter-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 0.58fr);
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: white;
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.16);
}
.player-card {
  background: linear-gradient(
    135deg,
    rgba(186, 255, 239, 0.86),
    rgba(255, 255, 255, 0.96)
  );
}
.boss-card {
  background: linear-gradient(
    135deg,
    rgba(255, 209, 236, 0.86),
    rgba(255, 255, 255, 0.96)
  );
}
.fighter-portrait {
  min-width: 0;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(255, 255, 255, 0.5),
      transparent 2rem
    ),
    linear-gradient(135deg, var(--banana), var(--hot-pink));
  overflow: hidden;
}
.fighter-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fighter-portrait.is-missing::after {
  content: attr(data-fallback);
  font-size: clamp(3rem, 8vw, 6rem);
}
.fighter-portrait.is-missing img {
  display: none;
}
.fighter-info {
  min-width: 0;
}
.fighter-info h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}
.boss-flavour {
  margin-bottom: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}
.versus-badge {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--danger);
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.2);
  transform: rotate(-7deg);
}
.bar-group {
  margin-top: 0.65rem;
}
.bar-group label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.22rem;
  font-weight: 900;
  font-size: 0.9rem;
}
.bar {
  height: 1.05rem;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(37, 22, 47, 0.12);
}
.bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--acid);
  transition: width 0.25s ease;
}
.bar-group.sanity .bar span {
  background: var(--sky);
}
.bar.danger span {
  background: var(--danger);
}
.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.stat-pills span {
  padding: 0.32rem 0.52rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 900;
}
.intent-box {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 2px dashed rgba(37, 22, 47, 0.55);
  border-radius: 16px;
  background: rgba(255, 248, 214, 0.7);
}
.intent-box strong,
.intent-box span {
  display: block;
}
.intent-box span {
  margin-top: 0.25rem;
  font-weight: 900;
}
.battle-message {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: white;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.12);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.mini-heading h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}
.card-hand,
.reward-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.battle-card,
.reward-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.16);
  transition: 0.15s ease;
}
.battle-card:hover:not(:disabled),
.battle-card:focus-visible:not(:disabled),
.reward-card:hover,
.reward-card:focus-visible {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 9px 9px 0 rgba(37, 22, 47, 0.22);
  outline: none;
}
.battle-card:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7);
  opacity: 0.7;
}
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.card-icon {
  font-size: 2.2rem;
}
.card-type {
  padding: 0.22rem 0.45rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  font-size: 0.72rem;
  font-weight: 900;
}
.battle-card h3,
.reward-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
  line-height: 1.05;
}
.battle-card p,
.reward-card p {
  margin-bottom: 0;
  font-weight: 800;
  line-height: 1.35;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.card-meta span {
  padding: 0.2rem 0.42rem;
  border: 2px solid rgba(37, 22, 47, 0.28);
  border-radius: 999px;
  background: rgba(255, 248, 214, 0.8);
  font-size: 0.76rem;
  font-weight: 900;
}
.attack-card {
  background: #ffd1ec;
}
.skill-card {
  background: #baffef;
}
.heal-card {
  background: #fff3a3;
}
.chaos-card {
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.48), transparent 3.6rem),
    linear-gradient(135deg, #ffd37a, #ffb8e5 58%, #fff3a3);
}
.reward-zone,
.relic-zone,
.battle-log-shell {
  margin-top: 1.25rem;
}
.relic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.empty-relics {
  margin: 0;
  font-weight: 900;
  opacity: 0.75;
}
.relic-pill {
  padding: 0.45rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lavender);
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(37, 22, 47, 0.14);
}
.battle-log {
  max-height: 240px;
  margin: 0;
  padding: 1rem 1rem 1rem 2.4rem;
  overflow: auto;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    url("assets/sillytextbox.jpg");
  background-size: cover;
  font-weight: 800;
}
.battle-log li + li {
  margin-top: 0.35rem;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.asset-grid article {
  min-width: 0;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: white;
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.16);
}
.asset-grid h3 {
  margin-bottom: 0.6rem;
}
.asset-grid p {
  margin-bottom: 0;
  font-weight: 800;
  line-height: 1.35;
}
.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 2rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(37, 22, 47, 0.92);
  color: var(--paper);
}
.site-footer p {
  margin: 0.25rem 0;
  font-weight: 800;
}
.site-footer a {
  color: var(--sky);
  font-weight: 900;
}
.screen-shake {
  animation: screen-shake 0.22s linear;
}
.big-victory {
  animation: victory-pop 0.55s ease;
}
@keyframes screen-shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes victory-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.025) rotate(-0.5deg);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(7deg) scale(1.06);
  }
}
@keyframes floaty {
  from {
    transform: translateY(0) rotate(-4deg);
  }
  to {
    transform: translateY(-1rem) rotate(5deg);
  }
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 1000px) {
  .top-row {
    grid-template-columns: 1fr;
  }
  .versus-badge {
    margin: -0.25rem auto;
  }
  .fighter-card {
    grid-template-columns: minmax(110px, 0.28fr) minmax(0, 0.72fr);
  }
}
@media (max-width: 900px) {
  html {
    scroll-padding-top: 1rem;
  }
  .site-header {
    position: static;
  }
  .nav-shell {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
  .rogue-hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    min-height: 390px;
  }
  .run-card {
    grid-template-columns: repeat(3, 1fr);
    padding-top: 3.2rem;
  }
  .section-heading {
    display: block;
  }
  .asset-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .fighter-card {
    grid-template-columns: 1fr;
  }
  .fighter-portrait {
    max-width: 220px;
  }
  .card-hand,
  .reward-options {
    grid-template-columns: 1fr;
  }
  .battle-card,
  .reward-card {
    min-height: 190px;
  }
}
@media (max-width: 560px) {
  .brand small {
    white-space: normal;
  }
  .nav-links > a {
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
  }
  h1 {
    font-size: clamp(2.8rem, 15vw, 5rem);
  }
  .hero-actions {
    flex-direction: column;
  }
  .button {
    width: 100%;
  }

  .music-selector {
    width: 100%;
    justify-content: space-between;
    border-radius: 24px;
  }

  .music-selector select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .run-card {
    grid-template-columns: 1fr;
  }
  .marquee-strip div {
    animation-duration: 12s;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Terminal Hell v2: characters, live feed, buff panel ===== */

.character-select {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.75),
    rgba(255, 209, 236, 0.45)
  );
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.12);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.character-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 8rem;
  padding: 0.85rem;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(37, 22, 47, 0.14);
  transition: 0.15s ease;
}

.character-option:hover,
.character-option:focus-visible,
.character-option.active {
  transform: translateY(-4px) rotate(-0.75deg);
  box-shadow: 8px 8px 0 rgba(37, 22, 47, 0.2);
  outline: none;
}

.character-option.active {
  background: var(--acid);
}

.character-icon {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  font-size: 2rem;
}

.character-option strong,
.character-option small,
.character-option em {
  display: block;
}

.character-option strong {
  margin-bottom: 0.2rem;
  font-size: 1.25rem;
  line-height: 1.05;
}

.character-option small {
  font-weight: 900;
  line-height: 1.28;
}

.character-option em {
  grid-column: 1 / -1;
  padding: 0.35rem 0.5rem;
  border: 2px solid rgba(37, 22, 47, 0.28);
  border-radius: 999px;
  background: rgba(255, 248, 214, 0.8);
  font-style: normal;
  font-weight: 900;
  font-size: 0.82rem;
}

.event-feed {
  display: grid;
  gap: 0.45rem;
}

.event-feed-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.event-feed-item::before {
  content: "▶";
  color: var(--hot-pink);
  font-weight: 900;
}

.event-feed-item:nth-child(2) {
  opacity: 0.72;
}

.current-buffs {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(186, 255, 239, 0.75),
    rgba(255, 255, 255, 0.92)
  );
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.12);
}

.buff-heading {
  margin-bottom: 0.7rem;
}

.buff-heading h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
}

.buff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.buff-pill {
  padding: 0.38rem 0.62rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(37, 22, 47, 0.12);
}

.buff-pill.strong {
  background: var(--acid);
}

.buff-pill.warning {
  background: var(--banana);
}

.card-calculated {
  background: var(--acid) !important;
  border-color: var(--ink) !important;
}

.player-card .fighter-portrait {
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(255, 255, 255, 0.5),
      transparent 2rem
    ),
    linear-gradient(135deg, var(--mint), var(--hot-pink));
}

@media (max-width: 1100px) {
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .character-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Terminal Hell v3: selector becomes buffs after run starts ===== */

.game-shell.run-active .character-select {
  display: none;
}

.compact-buffs {
  margin: 0 0 1.25rem;
}

.compact-buffs[hidden] {
  display: none !important;
}

.game-shell:not(.run-active) .compact-buffs {
  display: none;
}

.game-shell.run-active .compact-buffs {
  display: block;
}

.game-shell.game-ended .character-select {
  display: block;
}

.game-shell.game-ended .compact-buffs {
  display: none;
}

.game-shell.game-ended .character-select::after {
  content: "Run ended. Pick a doomed traveler or start again.";
  display: block;
  width: fit-content;
  margin-top: 0.85rem;
  padding: 0.42rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--banana);
  font-weight: 900;
}

@media (max-width: 900px) {
  .compact-buffs {
    margin-bottom: 1rem;
  }
}

/* ===== Terminal Hell v4: rules fold-out + clarity pass ===== */

.rules-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto;
  position: relative;
  z-index: 1;
}

.rules-details {
  border: var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(255, 248, 214, 0.94),
    rgba(186, 255, 239, 0.58)
  );
  box-shadow:
    var(--shadow),
    9px 9px 0 rgba(37, 22, 47, 0.24);
  overflow: hidden;
}

.rules-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 900;
}

.rules-details summary::-webkit-details-marker {
  display: none;
}

.rules-details summary span {
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1;
}

.rules-details summary small {
  padding: 0.35rem 0.65rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.8rem;
}

.rules-details summary::after {
  content: "＋";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--hot-pink);
  color: white;
  font-weight: 900;
}

.rules-details[open] summary::after {
  content: "−";
  background: var(--sky);
  color: var(--ink);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0 1.25rem 1.25rem;
}

.rules-grid article {
  min-width: 0;
  padding: 0.9rem;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 4px 4px 0 rgba(37, 22, 47, 0.12);
}

.rules-grid h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.rules-grid p {
  margin-bottom: 0;
  font-weight: 800;
  line-height: 1.35;
}

.card-calculated {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.card-calculated::before {
  content: "This play: ";
}

.buff-pill.strong::before {
  content: "★ ";
}

@media (max-width: 900px) {
  .rules-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rules-details summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .rules-details summary small {
    width: 100%;
  }
}

/* ===== Launch V1 nav dropdown ===== */

.nav-menu {
  position: relative;
  padding-bottom: 0.35rem;
  margin-bottom: -0.35rem;
}

.nav-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.55rem;
}

.nav-menu-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.nav-menu-button:hover,
.nav-menu-button:focus,
.nav-menu:hover .nav-menu-button,
.nav-menu:focus-within .nav-menu-button {
  background: var(--hot-pink);
  border-color: var(--ink);
  transform: rotate(-1deg);
}

.nav-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 60;
  min-width: 240px;
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem;
  background: rgba(255, 248, 214, 0.96);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 7px 7px 0 rgba(37, 22, 47, 0.28);
  opacity: 0;
  transform: translateY(-0.35rem) scale(0.98);
  pointer-events: none;
  transition: 0.16s ease;
}

.nav-menu:hover .nav-menu-list,
.nav-menu:focus-within .nav-menu-list {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-menu-list a {
  display: flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 14px;
  font-weight: 900;
}

.nav-menu-list a:hover,
.nav-menu-list a:focus,
.nav-menu-list a.active {
  background: var(--sky);
  border-color: var(--ink);
}

@media (max-width: 560px) {
  .nav-menu-list {
    left: 0;
    right: auto;
  }

  .nav-menu-button {
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
  }
}

/* ===== Launch V1 anchor offsets ===== */

#game,
#guide,
#how,
#assets {
  scroll-margin-top: 7.75rem;
}

@media (max-width: 900px) {
  #game,
  #guide,
  #how,
  #assets {
    scroll-margin-top: 1rem;
  }
}

/* Match index hero label/content positioning */
.rogue-hero .hero-copy {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-left: clamp(1rem, 2.2vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2.4rem);
}

/* ===== Terminal Hell field guide ===== */

.intel-shell .section-heading {
  margin-bottom: 1rem;
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.intel-card {
  padding: 1rem 1rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 6px 6px 0 rgba(37, 22, 47, 0.18);
}

.intel-card h3 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  line-height: 0.95;
}

.intel-subtitle {
  margin: 0 0 0.8rem;
  font-weight: 900;
  font-size: 1rem;
  opacity: 0.85;
}

.intel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.intel-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.55rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.85rem;
  font-weight: 900;
}

.intel-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.intel-card li {
  margin-bottom: 0.45rem;
  font-weight: 800;
  line-height: 1.45;
}

.intel-card li:last-child {
  margin-bottom: 0;
}

.intel-emirates {
  background: linear-gradient(
    180deg,
    rgba(255, 90, 95, 0.16),
    rgba(255, 255, 255, 0.82)
  );
}

.intel-dxb {
  background: linear-gradient(
    180deg,
    rgba(255, 159, 28, 0.18),
    rgba(255, 255, 255, 0.82)
  );
}

.intel-fra {
  background: linear-gradient(
    180deg,
    rgba(96, 231, 255, 0.16),
    rgba(255, 255, 255, 0.82)
  );
}

@media (max-width: 900px) {
  .intel-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Mobile dropdown stacking fix ===== */

.site-header {
  position: relative;
  z-index: 9999;
}

.nav-shell {
  position: relative;
  z-index: 10000;
  overflow: visible;
}

.nav-links,
.nav-menu {
  position: relative;
  z-index: 10001;
}

.nav-menu-list {
  z-index: 10002;
}

main {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    z-index: 9999;
  }

  .nav-shell {
    overflow: visible;
  }
}

/* ===== Horizontal overflow guard ===== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* ===== Terminal Hell v5: six-airport gauntlet + shop + items ===== */

.item-zone,
.shop-zone {
  margin-top: 1.25rem;
}

.item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.item-card {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  max-width: 360px;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--mint);
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(37, 22, 47, 0.14);
  cursor: pointer;
  transition: 0.15s ease;
}

.item-card:hover:not(:disabled),
.item-card:focus-visible:not(:disabled) {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 7px 7px 0 rgba(37, 22, 47, 0.2);
  outline: none;
}

.item-card:disabled {
  cursor: not-allowed;
  opacity: 0.66;
  filter: grayscale(0.45);
}

.item-icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  font-size: 1.35rem;
}

.item-card strong,
.item-card small {
  display: block;
}

.item-card small {
  margin-top: 0.1rem;
  font-size: 0.78rem;
  line-height: 1.25;
  opacity: 0.82;
}

.shop-zone {
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 228, 92, 0.62),
    rgba(96, 231, 255, 0.42)
  );
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.14);
}

.shop-heading {
  align-items: center;
}

.shop-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.shop-card {
  position: relative;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: 24px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.16);
  transition: 0.15s ease;
}

.shop-card:hover:not(:disabled),
.shop-card:focus-visible:not(:disabled) {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 9px 9px 0 rgba(37, 22, 47, 0.22);
  outline: none;
}

.shop-card:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  filter: grayscale(0.55);
}

.shop-consumable {
  background: var(--mint);
}

.shop-upgrade {
  background: var(--lavender);
}

.intel-hnd {
  background: linear-gradient(
    180deg,
    rgba(186, 255, 239, 0.3),
    rgba(255, 255, 255, 0.82)
  );
}

.intel-itm {
  background: linear-gradient(
    180deg,
    rgba(255, 228, 92, 0.28),
    rgba(255, 255, 255, 0.82)
  );
}

.intel-ams {
  background: linear-gradient(
    180deg,
    rgba(96, 231, 255, 0.18),
    rgba(255, 255, 255, 0.82)
  );
}

.intel-nrt {
  background: linear-gradient(
    180deg,
    rgba(225, 211, 255, 0.42),
    rgba(255, 255, 255, 0.82)
  );
}

@media (max-width: 900px) {
  .shop-options {
    grid-template-columns: 1fr;
  }

  .shop-heading {
    display: grid;
    gap: 0.85rem;
  }

  .shop-heading .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .item-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .item-card {
    max-width: none;
  }
}

.shop-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
  line-height: 1.05;
}

.shop-card p {
  margin-bottom: 0;
  font-weight: 800;
  line-height: 1.35;
}


/* ===== Terminal Hell QoL pass: collapsible buffs, readable chaos, safer spacing ===== */

.event-feed-item:nth-child(2) {
  opacity: 0.78;
}

.event-feed-item:nth-child(3) {
  opacity: 0.58;
}

.current-buffs {
  padding: 0;
  overflow: hidden;
}

.current-buffs summary {
  list-style: none;
}

.current-buffs summary::-webkit-details-marker {
  display: none;
}

.buff-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  font-weight: 900;
}

.buff-summary::after {
  content: "＋";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.05rem;
  height: 2.05rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--hot-pink);
  color: white;
  box-shadow: 3px 3px 0 rgba(37, 22, 47, 0.14);
}

.current-buffs[open] .buff-summary::after {
  content: "−";
  background: var(--sky);
  color: var(--ink);
}

.buff-summary-text {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.buff-summary .eyebrow {
  margin: 0;
  width: fit-content;
}

.buff-summary strong {
  display: block;
  font-size: clamp(1.2rem, 3vw, 2.05rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.buff-summary small {
  margin-left: auto;
  padding: 0.3rem 0.55rem;
  border: 2px solid rgba(37, 22, 47, 0.32);
  border-radius: 999px;
  background: rgba(255, 248, 214, 0.88);
  font-size: 0.78rem;
  white-space: nowrap;
}

.current-buffs .buff-list {
  padding: 0 1rem 1rem;
}

.item-zone {
  margin: 1.35rem 0 1.75rem;
  padding-top: 0.15rem;
}

.item-list {
  gap: 0.75rem;
  padding: 0.15rem 0 0.75rem;
}

.item-card {
  padding: 0.75rem 0.85rem;
}

.item-zone .mini-heading h2,
.cards-zone .mini-heading h2,
.relic-zone .mini-heading h2,
.battle-log-shell .mini-heading h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.shop-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-card.is-sold {
  opacity: 0.72;
}

@media (max-width: 1100px) {
  .shop-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shop-actions {
    width: 100%;
    justify-content: stretch;
  }

  .shop-actions .button {
    flex: 1 1 14rem;
  }
}

@media (max-width: 700px) {
  .shop-options {
    grid-template-columns: 1fr;
  }

  .buff-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .buff-summary small {
    margin-left: 0;
  }
}

/* ===== Terminal Hell v6: relic tooltips + rare/god cards ===== */

.god-card {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.78), transparent 4.2rem),
    linear-gradient(135deg, rgba(225, 211, 255, 0.96), rgba(186, 255, 239, 0.96) 48%, rgba(255, 243, 163, 0.96));
}

.god-card .card-type {
  background: var(--banana);
}

.rare-card .card-type::before {
  content: "Rare ";
}

.ultra-rare-card .card-type::before {
  content: "Ultra Rare ";
}

.relic-list {
  align-items: center;
}

.relic-pill {
  position: relative;
  cursor: help;
  outline-offset: 4px;
}

.relic-pill:hover,
.relic-pill:focus-visible {
  background: var(--acid);
  transform: translateY(-2px) rotate(-0.5deg);
  z-index: 25;
}

.relic-pill::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.65rem);
  z-index: 50;
  width: max-content;
  max-width: min(320px, 78vw);
  padding: 0.65rem 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: rgba(255, 248, 214, 0.98);
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(37, 22, 47, 0.2);
  font-size: 0.82rem;
  line-height: 1.35;
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.35rem) scale(0.98);
  transition: 0.14s ease;
}

.relic-pill::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.28rem);
  z-index: 51;
  width: 0.75rem;
  height: 0.75rem;
  background: rgba(255, 248, 214, 0.98);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) rotate(45deg);
  transition: 0.14s ease;
}

.relic-pill:hover::after,
.relic-pill:focus-visible::after,
.relic-pill:hover::before,
.relic-pill:focus-visible::before {
  opacity: 1;
}

.relic-pill:hover::after,
.relic-pill:focus-visible::after {
  transform: translate(-50%, 0) scale(1);
}


/* ===== Terminal Hell v7: Osaka + balance cards ===== */

.osaka-card {
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.76), transparent 4rem),
    linear-gradient(135deg, rgba(255, 243, 163, 0.96), rgba(186, 255, 239, 0.96));
}

.osaka-card .card-type {
  background: var(--sky);
}

.character-option[data-character="osaka"].active {
  background: var(--sky);
}

@media (max-width: 560px) {
  .character-option {
    min-height: auto;
  }
}


/* ===== Terminal Hell v9: boss intros + airport PA ===== */

.boss-cutin {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 1rem;
  pointer-events: none;
  background: rgba(37, 22, 47, 0.22);
}

.boss-cutin[hidden] {
  display: none !important;
}

.boss-cutin-card {
  width: min(760px, calc(100vw - 2rem));
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 5px solid var(--ink);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.82), transparent 5rem),
    linear-gradient(135deg, rgba(255, 228, 92, 0.97), rgba(96, 231, 255, 0.94));
  box-shadow:
    12px 12px 0 rgba(37, 22, 47, 0.34),
    var(--shadow);
  text-align: center;
  transform: translateY(1rem) scale(0.92) rotate(-1deg);
  opacity: 0;
}

.boss-cutin.show .boss-cutin-card {
  animation: boss-cutin-pop 2.45s ease both;
}

.boss-cutin-card h2 {
  margin: 0.35rem 0 0.55rem;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-shadow:
    3px 3px 0 var(--paper),
    6px 6px 0 rgba(255, 79, 216, 0.62);
}

.boss-cutin-card p:not(.eyebrow),
.boss-cutin-card strong,
.boss-cutin-card em {
  display: block;
  margin: 0.45rem auto 0;
  max-width: 58ch;
  font-weight: 900;
  line-height: 1.3;
}

.boss-cutin-card p:not(.eyebrow) {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
}

.boss-cutin-card strong {
  width: fit-content;
  padding: 0.42rem 0.7rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 248, 214, 0.88);
  font-size: clamp(0.92rem, 2vw, 1.1rem);
}

.boss-cutin-card em {
  color: rgba(37, 22, 47, 0.86);
  font-style: normal;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
}

.airport-pa {
  margin: -0.35rem 0 1rem;
  padding: 0.65rem 0.85rem;
  border: 3px dashed rgba(37, 22, 47, 0.52);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  line-height: 1.35;
  box-shadow: 4px 4px 0 rgba(37, 22, 47, 0.1);
  animation: airport-pa-fade 0.22s ease both;
}

.airport-pa[hidden] {
  display: none !important;
}

@keyframes boss-cutin-pop {
  0% {
    opacity: 0;
    transform: translateY(1.2rem) scale(0.9) rotate(-2deg);
  }
  14% {
    opacity: 1;
    transform: translateY(0) scale(1.03) rotate(0.8deg);
  }
  24%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(-0.45deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-0.7rem) scale(0.96) rotate(0.6deg);
  }
}

@keyframes airport-pa-fade {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .boss-cutin-card {
    border-width: 4px;
  }

  .boss-cutin-card h2 {
    font-size: clamp(2rem, 13vw, 3.8rem);
  }
}


/* ===== Terminal Hell v10: click-dismiss intros + cleaner event feed ===== */

.boss-cutin {
  pointer-events: auto;
  background: rgba(37, 22, 47, 0.42);
  backdrop-filter: blur(3px);
}

.boss-cutin-card {
  appearance: none;
  border: 5px solid var(--ink);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.boss-cutin-card:focus-visible {
  outline: 5px solid var(--acid);
  outline-offset: 6px;
}

.boss-cutin.show .boss-cutin-card {
  animation: boss-cutin-pop-stay 0.34s ease both;
}

.boss-cutin-dismiss {
  display: inline-flex;
  width: fit-content;
  margin: 1rem auto 0;
  padding: 0.38rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(37, 22, 47, 0.15);
}

@keyframes boss-cutin-pop-stay {
  0% {
    opacity: 0;
    transform: translateY(1.2rem) scale(0.9) rotate(-2deg);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.03) rotate(0.8deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(-0.45deg);
  }
}

.event-feed-item,
.event-feed-item:nth-child(2),
.event-feed-item:nth-child(3) {
  opacity: 1;
  color: var(--ink);
}

.event-feed-item::before {
  content: none;
}

.event-feed-icon {
  display: grid;
  place-items: center;
  width: 1.35rem;
  min-width: 1.35rem;
  line-height: 1;
  filter: drop-shadow(1px 1px 0 rgba(37, 22, 47, 0.14));
}

.event-feed-text {
  min-width: 0;
}

.airport-pa {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.airport-pa-icon {
  line-height: 1.25;
}

.airport-pa-text {
  min-width: 0;
}
