:root {
  --bg-top: #140805;
  --bg-bottom: #020101;
  --ink: #050202;
  --board-edge: #160805;
  --board-mid: #2a1208;
  --board-inner: #40170b;
  --gold: #ffd48a;
  --cream: #ffe7bf;
  --panel: #160908;
  --panel-border: #ff8c2a;
  --deck: #090404;
  --deck-border: #1f0904;
  --neon-cyan: #ffd08a;
  --neon-blue: #ffb347;
  --neon-pink: #ff6124;
  --neon-violet: #ff3b1f;
  --text-main: #fff2da;
  --text-soft: #ffc98f;
  --panel-glow: rgba(255, 146, 52, 0.28);
  --pink-glow: rgba(255, 76, 26, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  height: 100vh;
  min-height: 100vh;
  font-family: "Press Start 2P", cursive;
  color: var(--text-main);
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 235, 180, 0.12), transparent 12%),
    radial-gradient(circle at 50% 22%, rgba(255, 178, 74, 0.2), transparent 18%),
    radial-gradient(circle at 25% 22%, rgba(255, 84, 24, 0.42), transparent 28%),
    radial-gradient(circle at 76% 18%, rgba(255, 126, 44, 0.28), transparent 22%),
    linear-gradient(180deg, rgba(255, 98, 38, 0.24), transparent 32%),
    linear-gradient(180deg, #301008 0%, #1a0905 38%, #080202 100%);
  overflow: hidden;
  padding-bottom: 5.25rem;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem 6.4rem;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 161, 72, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 110, 34, 0.08) 1px, transparent 1px);
  background-size: 100% 20px, 20px 100%;
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.68;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.74)),
    radial-gradient(circle at center, rgba(255, 190, 85, 0.22), transparent 26%),
    url("assets/bg.png") center/cover no-repeat;
  mix-blend-mode: normal;
}

.page-shell > * {
  position: relative;
}

.page-shell > *::before {
  content: "";
  position: absolute;
  inset: auto 10% -1.2rem;
  height: 2.2rem;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 100%, rgba(255, 110, 34, 0.22), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 94, 28, 0.26), transparent 42%),
    radial-gradient(circle at 80% 100%, rgba(255, 132, 48, 0.2), transparent 38%);
  filter: blur(14px);
  opacity: 0.28;
  animation: flame-breath 4.4s ease-in-out infinite;
  z-index: -1;
}

.skyline {
  position: absolute;
  bottom: 13.5rem;
  width: min(20vw, 10rem);
  height: 14rem;
  opacity: 0.5;
  background: linear-gradient(180deg, transparent 0 24%, rgba(18, 5, 2, 0.96) 24% 100%);
  clip-path: polygon(0 100%, 0 62%, 10% 62%, 10% 46%, 18% 46%, 18% 58%, 28% 58%, 28% 34%, 42% 34%, 42% 54%, 54% 54%, 54% 26%, 68% 26%, 68% 47%, 78% 47%, 78% 39%, 90% 39%, 90% 59%, 100% 59%, 100% 100%);
  filter: drop-shadow(0 0 18px rgba(255, 83, 28, 0.18)) drop-shadow(0 -10px 18px rgba(255, 118, 40, 0.16));
}

.skyline-left {
  left: 0;
}

.skyline-right {
  right: 0;
  transform: scaleX(-1);
}

.masthead {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 0;
}

.masthead::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(88vw, 34rem);
  height: min(60vw, 16rem);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 229, 171, 0.22), transparent 18%),
    radial-gradient(circle at 35% 42%, rgba(255, 112, 34, 0.26), transparent 28%),
    radial-gradient(circle at 65% 42%, rgba(255, 76, 28, 0.24), transparent 30%);
  filter: blur(16px);
  opacity: 0.95;
  z-index: -1;
  animation: ember-pulse 3.8s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #ffb15f;
  font-size: clamp(0.42rem, 1.2vw, 0.62rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 120, 32, 0.3);
}

.site-logo {
  display: block;
  width: min(96vw, 40rem);
  margin: 0 auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(255, 214, 145, 0.35))
    drop-shadow(0 0 24px rgba(255, 118, 34, 0.42))
    drop-shadow(0 0 42px rgba(255, 67, 22, 0.28))
    drop-shadow(0 4px 0 rgba(20, 5, 2, 0.88));
  animation: ember-pulse 2.8s ease-in-out infinite;
}

.subtitle {
  margin: 0.8rem 0 0;
  font-size: clamp(0.5rem, 1.5vw, 0.7rem);
  color: #ffd59c;
  text-shadow: 0 0 12px rgba(255, 120, 32, 0.38);
  text-transform: uppercase;
}

.arcade-board {
  position: relative;
  z-index: 1;
  width: min(92vw, 33.5rem);
  padding: 2.8rem 1.2rem 1.4rem;
}

.top-light {
  position: absolute;
  top: 0.95rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  width: 5.4rem;
  padding: 0.25rem 0.35rem;
  display: flex;
  justify-content: center;
  gap: 0.18rem;
  background: #1d0b06;
  border: 4px solid var(--board-edge);
  box-shadow:
    inset 0 0 0 4px #512312,
    0 0 16px rgba(255, 106, 28, 0.24),
    0 4px 0 rgba(10, 3, 2, 0.84);
}

.top-light span {
  width: 1.05rem;
  height: 0.5rem;
  background: #ff5220;
}

.top-light span:nth-child(2) {
  background: #ffd27f;
}

.board-frame {
  position: relative;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 2px solid rgba(255, 168, 95, 0.35);
  border-radius: 1.9rem;
  background:
    linear-gradient(180deg, rgba(255, 186, 120, 0.08), transparent 16%),
    radial-gradient(circle at top, rgba(255, 210, 140, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 82, 24, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 132, 48, 0.14), transparent 26%),
    linear-gradient(180deg, #220d14 0%, #18080b 48%, #0c0304 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 176, 0.08),
    inset 0 0 22px rgba(255, 120, 36, 0.08),
    0 0 0 1px rgba(255, 112, 44, 0.24),
    0 0 44px rgba(255, 97, 25, 0.24),
    0 24px 55px rgba(0, 0, 0, 0.46);
  overflow: visible;
}

.board-frame::before {
  content: "";
  position: absolute;
  inset: -0.9rem;
  border-radius: 2.5rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top, rgba(255, 170, 84, 0.82), transparent 54%),
    radial-gradient(ellipse at bottom, rgba(255, 102, 32, 0.86), transparent 56%),
    radial-gradient(ellipse at left, rgba(255, 120, 34, 0.78), transparent 52%),
    radial-gradient(ellipse at right, rgba(255, 120, 34, 0.78), transparent 52%),
    radial-gradient(circle at 12% 20%, rgba(255, 210, 130, 0.3), transparent 18%),
    radial-gradient(circle at 88% 78%, rgba(255, 168, 88, 0.26), transparent 18%);
  filter: blur(14px) saturate(1.1);
  opacity: 0.82;
  animation: frame-fire 3.3s ease-in-out infinite;
  z-index: -2;
}

.board-frame::after {
  content: "";
  position: absolute;
  inset: -0.4rem;
  border-radius: 2.15rem;
  pointer-events: none;
  border: 1px solid rgba(255, 208, 146, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 110, 36, 0.22),
    0 0 12px rgba(255, 92, 28, 0.16),
    0 0 36px rgba(255, 128, 42, 0.16),
    inset 0 0 16px rgba(255, 162, 78, 0.04);
}

.board-title-wrap {
  width: min(82%, 22rem);
  margin: 0 auto 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 152, 74, 0.34);
  border-radius: 999px;
  background: rgba(32, 10, 13, 0.82);
  box-shadow: 0 0 26px rgba(255, 96, 30, 0.26);
  text-align: center;
}

.board-title {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1rem, 4vw, 2rem);
  text-shadow:
    0 0 12px rgba(255, 158, 78, 0.35),
    0 0 2px rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.selector-row {
  display: grid;
  grid-template-columns: minmax(2.5rem, 4.25rem) 1fr minmax(2.5rem, 4.25rem);
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  margin: 0 auto 1rem;
  width: min(100%, 24rem);
}

.hero-card {
  padding: 0.3rem;
  border: 1px solid rgba(255, 171, 97, 0.28);
  border-radius: 1.4rem;
  background: #180708;
  box-shadow:
    inset 0 0 0 4px rgba(255, 153, 74, 0.1),
    0 0 0 4px rgba(18, 5, 2, 0.4),
    0 0 30px rgba(255, 110, 34, 0.24);
}

.hero-portrait {
  display: grid;
  place-items: center;
  min-height: clamp(11rem, 31vw, 12.8rem);
  padding: 0.75rem;
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at top, rgba(255, 224, 164, 0.28), transparent 32%),
    radial-gradient(circle at bottom, rgba(255, 86, 24, 0.24), transparent 48%),
    linear-gradient(180deg, #1d0910 0%, #140506 100%);
}

.hero-portrait img {
  width: min(100%, 11.5rem);
  max-height: 12rem;
  object-fit: contain;
  image-rendering: pixelated;
  filter:
    drop-shadow(-4px 0 0 rgba(255, 126, 44, 0.3))
    drop-shadow(4px 0 0 rgba(255, 214, 146, 0.22))
    drop-shadow(0 8px 0 rgba(10, 4, 2, 0.52));
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero-portrait img.swap {
  transform: scale(0.9);
  opacity: 0.2;
}

.arrow {
  display: grid;
  place-items: center;
  width: clamp(2.8rem, 8vw, 4rem);
  height: clamp(4rem, 13vw, 5.5rem);
  padding: 0;
  border: 4px solid #130604;
  background: linear-gradient(180deg, #5c210d 0%, #2b0e06 100%);
  box-shadow:
    inset 0 0 0 3px #ffb35c,
    0 0 14px rgba(255, 125, 38, 0.24),
    0 0 0 3px rgba(16, 5, 3, 0.55);
  cursor: pointer;
}

.arrow span {
  width: 0;
  height: 0;
  border-top: 1rem solid transparent;
  border-bottom: 1rem solid transparent;
}

.arrow-left span {
  border-right: 1.25rem solid #ffd28e;
  margin-right: 0.15rem;
}

.arrow-right span {
  border-left: 1.25rem solid #ffd28e;
  margin-left: 0.15rem;
}

.arrow:active {
  transform: translateY(2px);
}

.nameplate {
  width: min(88%, 26rem);
  margin: 0 auto 1rem;
  padding: 0.7rem;
  text-align: center;
  border: 1px solid rgba(255, 162, 80, 0.3);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(30, 9, 13, 0.96) 0%, rgba(16, 5, 6, 0.98) 100%);
  box-shadow: 0 0 24px rgba(255, 104, 28, 0.24);
  position: relative;
  z-index: 5;
  overflow: visible;
}

.nameplate-header {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2rem;
}

.nameplate h2 {
  margin: 0;
  color: #ffd9a3;
  text-shadow: 0 0 10px rgba(255, 126, 44, 0.34);
  font-size: clamp(0.7rem, 2.5vw, 1.3rem);
  text-transform: uppercase;
}

.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 0.75rem;
  align-items: stretch;
}

.stats-box,
.info-box {
  position: relative;
  border: 1px solid rgba(255, 158, 78, 0.26);
  border-radius: 1rem;
  background: rgba(24, 8, 10, 0.9);
  box-shadow:
    inset 0 0 24px rgba(255, 155, 66, 0.08),
    0 0 18px rgba(255, 92, 28, 0.08);
  padding: 0.8rem;
}

.stat-row + .stat-row {
  margin-top: 0.8rem;
}

.stat-label {
  display: inline-block;
  width: 5.5rem;
  color: #ffcc8f;
  font-size: clamp(0.55rem, 1.8vw, 0.9rem);
  text-shadow: 0 0 8px rgba(255, 139, 38, 0.24);
  text-transform: uppercase;
}

.stat-pips {
  display: inline-flex;
  gap: 0.28rem;
  vertical-align: middle;
}

.pip {
  width: 0.9rem;
  height: 1.1rem;
  border: 3px solid #7b3113;
  background: rgba(9, 4, 2, 0.82);
}

.pip.active {
  background: linear-gradient(180deg, #ffd18d 0%, #ff5d22 100%);
  border-color: #ffe3b6;
  box-shadow: 0 0 10px rgba(255, 109, 38, 0.4);
}

.info-box {
  display: flex;
  align-items: flex-end;
  min-height: 100%;
}

.info-tag {
  position: absolute;
  top: -0.55rem;
  right: 0.6rem;
  padding: 0.25rem 0.45rem;
  background: #ff7f30;
  color: #180501;
  border: 3px solid #ffe1ac;
  font-size: 0.42rem;
  box-shadow: 0 0 10px rgba(255, 116, 34, 0.3);
  text-transform: uppercase;
}

.info-box p {
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(0.48rem, 1.45vw, 0.72rem);
  line-height: 1.7;
  text-transform: uppercase;
}

.support-row {
  position: relative;
  z-index: 1;
  margin-top: 0.15rem;
  margin-bottom: 0;
}

.pixel-button,
.square-button {
  border: 4px solid #140604;
  color: var(--text-main);
  background: linear-gradient(180deg, #63240f 0%, #250d05 100%);
  box-shadow:
    inset 0 0 0 3px #ffcb85,
    inset 0 0 0 7px #4a190c,
    0 0 24px rgba(255, 104, 28, 0.24),
    0 4px 0 rgba(8, 3, 2, 0.88);
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 145, 42, 0.22);
  cursor: pointer;
}

.pixel-button {
  padding: 1rem 1.2rem;
}

.review-button {
  min-width: min(74vw, 17rem);
  font-size: clamp(0.62rem, 2vw, 0.95rem);
}

.pixel-button:hover,
.square-button:hover,
.arrow:hover {
  filter: brightness(1.08);
  box-shadow:
    inset 0 0 0 3px #ffe0a8,
    inset 0 0 0 7px #5a1c0c,
    0 0 28px rgba(255, 113, 32, 0.32),
    0 4px 0 rgba(8, 3, 2, 0.88);
}

.control-deck {
  position: fixed;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  padding: 1.2rem 0.75rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 0;
  background:
    linear-gradient(180deg, rgba(255, 172, 86, 0.08), transparent 20%),
    linear-gradient(180deg, #1a0804 0%, var(--deck) 100%);
  border-top: 8px solid var(--deck-border);
  box-shadow:
    inset 0 6px 0 rgba(255, 182, 98, 0.12),
    0 -10px 30px rgba(255, 78, 24, 0.14);
}

.control-deck::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 8%, rgba(255,163,74,0.08) 8% 8.6%, transparent 8.6% 33%, rgba(255,112,34,0.08) 33% 33.6%, transparent 33.6% 66%, rgba(255,163,74,0.08) 66% 66.6%, transparent 66.6% 100%);
  pointer-events: none;
}

.copyright {
  margin: 0;
  text-align: center;
  font-size: clamp(0.44rem, 1.4vw, 0.72rem);
  color: #ffc98f;
  text-shadow: 0 0 8px rgba(255, 136, 38, 0.2);
  text-transform: uppercase;
}

@keyframes ember-pulse {
  0%,
  100% {
    filter: saturate(1) brightness(1);
    opacity: 0.9;
  }

  50% {
    filter: saturate(1.2) brightness(1.08);
    opacity: 1;
  }
}

@keyframes flame-breath {
  0%,
  100% {
    transform: translateY(0) scaleX(1);
    opacity: 0.64;
  }

  50% {
    transform: translateY(-0.25rem) scaleX(1.04);
    opacity: 0.9;
  }
}

@keyframes frame-fire {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.76;
  }

  50% {
    transform: scale(1.012);
    opacity: 0.9;
  }
}

@media (max-width: 640px) {
  .page-shell {
    justify-content: center;
    padding: 0.85rem 0.55rem 5.8rem;
    gap: 0.65rem;
  }

  .skyline {
    bottom: 10rem;
    height: 10rem;
  }

  .masthead {
    margin-top: 0;
  }

  .subtitle {
    font-size: 0.48rem;
  }

  .site-logo {
    width: min(98vw, 28rem);
  }

  .arcade-board {
    width: 100%;
    padding: 2.3rem 0.35rem 0.8rem;
  }

  .top-light {
    top: -5px;
    width: 4.5rem;
    padding-inline: 0.25rem;
  }

  .board-frame {
    padding: 0.8rem 0.6rem 0.85rem;
    box-shadow:
      inset 0 0 0 1px rgba(255, 226, 176, 0.08),
      inset 0 0 18px rgba(255, 120, 36, 0.08),
      0 0 0 1px rgba(255, 112, 44, 0.24),
      0 16px 34px rgba(0, 0, 0, 0.42);
  }

  .board-title-wrap {
    width: min(92%, 18rem);
    padding: 0.55rem 0.4rem;
    margin-bottom: 0.75rem;
  }

  .board-title {
    font-size: clamp(0.75rem, 5vw, 1.2rem);
  }

  .selector-row {
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    gap: 0.35rem;
    width: 100%;
  }

  .hero-card {
    padding: 0.2rem;
  }

  .hero-portrait {
    min-height: 8.5rem;
    padding: 0.55rem;
  }

  .hero-portrait img {
    width: min(100%, 7rem);
    max-height: 7rem;
  }

  .arrow {
    width: 2.5rem;
    height: 3.6rem;
    border-width: 3px;
  }

  .arrow span {
    border-top-width: 0.7rem;
    border-bottom-width: 0.7rem;
  }

  .arrow-left span {
    border-right-width: 0.9rem;
  }

  .arrow-right span {
    border-left-width: 0.9rem;
  }

  .nameplate {
    width: min(96%, 22rem);
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.45rem;
  }

  .nameplate h2 {
    font-size: clamp(0.58rem, 3.8vw, 0.85rem);
  }

  .stats-layout {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .stats-box,
  .info-box {
    padding: 0.65rem 0.55rem;
    border-width: 3px;
  }

  .stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
  }

  .stat-label {
    width: auto;
    min-width: 4.25rem;
    font-size: 0.53rem;
  }

  .stat-pips {
    gap: 0.18rem;
    flex-shrink: 0;
  }

  .pip {
    width: 0.72rem;
    height: 0.88rem;
    border-width: 2px;
  }

  .info-tag {
    right: 0.45rem;
    font-size: 0.34rem;
  }

  .info-box p {
    font-size: 0.46rem;
    line-height: 1.6;
  }

  .support-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
  }

  .pixel-button {
    padding: 0.75rem 0.8rem;
    border-width: 3px;
    box-shadow: inset 0 0 0 2px #ffcb85, inset 0 0 0 5px #4a190c, 0 3px 0 rgba(8, 3, 2, 0.88);
  }

  .review-button {
    min-width: 0;
    width: min(100%, 14rem);
    font-size: 0.56rem;
  }

  .control-deck {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 0.8rem 0.45rem 0.7rem;
    border-top-width: 6px;
  }

  .copyright {
    font-size: 0.4rem;
    line-height: 1.5;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding: 0.8rem 0.4rem 5.4rem;
  }

  .skyline {
    display: none;
  }

  .subtitle {
    font-size: 0.42rem;
  }

  .board-title {
    font-size: 0.68rem;
  }

  .selector-row {
    grid-template-columns: 2.1rem minmax(0, 1fr) 2.1rem;
  }

  .hero-portrait {
    min-height: 7.4rem;
    padding: 0.45rem;
  }

  .hero-portrait img {
    width: min(100%, 5.8rem);
    max-height: 5.8rem;
  }

  .arrow {
    width: 2.1rem;
    height: 3rem;
  }

  .nameplate {
    width: 100%;
  }

  .nameplate h2 {
    font-size: 0.52rem;
  }

  .stat-label {
    min-width: 3.8rem;
    font-size: 0.47rem;
  }

  .pip {
    width: 0.62rem;
    height: 0.76rem;
  }

  .info-box p {
    font-size: 0.41rem;
  }

  .review-button {
    width: 100%;
    font-size: 0.48rem;
  }

  .control-deck {
    grid-template-columns: 1fr;
    padding-inline: 0.35rem;
  }

  .copyright {
    font-size: 0.34rem;
  }
}

@media (orientation: landscape) and (max-height: 900px) {
  .page-shell {
    min-height: auto;
    gap: 0.4rem;
    justify-content: center;
    padding-top: 0.35rem;
    padding-bottom: 4rem;
  }

  .skyline {
    display: none;
  }

  .masthead {
    margin-top: 0;
  }

  .subtitle {
    margin-top: 0.1rem;
    font-size: 0.32rem;
  }

  .site-logo {
    width: min(68vw, 22rem);
  }

  .arcade-board {
    width: min(94vw, 36rem);
    padding: 2rem 0.6rem 0.85rem;
  }

  .top-light {
    top: -5px;
    width: 3.8rem;
    padding: 0.18rem 0.22rem;
    border-width: 3px;
  }

  .board-frame {
    padding: 0.5rem;
    box-shadow:
      inset 0 0 0 1px rgba(255, 226, 176, 0.08),
      inset 0 0 16px rgba(255, 120, 36, 0.08),
      0 0 0 1px rgba(255, 112, 44, 0.2),
      0 14px 28px rgba(0, 0, 0, 0.4);
  }

  .board-title-wrap {
    width: min(66%, 13rem);
    margin-bottom: 0.45rem;
    padding: 0.35rem 0.3rem;
    border-width: 3px;
  }

  .board-title {
    font-size: clamp(0.56rem, 1.8vw, 0.82rem);
  }

  .selector-row {
    width: min(100%, 16.5rem);
    grid-template-columns: 2rem minmax(0, 1fr) 2rem;
    gap: 0.25rem;
    margin-bottom: 0.45rem;
  }

  .hero-portrait {
    min-height: 4.8rem;
    padding: 0.25rem;
  }

  .hero-portrait img {
    width: min(100%, 4.1rem);
    max-height: 4.1rem;
  }

  .arrow {
    width: 2rem;
    height: 2.5rem;
    border-width: 3px;
  }

  .arrow span {
    border-top-width: 0.5rem;
    border-bottom-width: 0.5rem;
  }

  .arrow-left span {
    border-right-width: 0.72rem;
  }

  .arrow-right span {
    border-left-width: 0.72rem;
  }

  .nameplate {
    width: min(78%, 15rem);
    margin-bottom: 0.45rem;
    padding: 0.3rem 0.28rem;
    border-width: 3px;
  }

  .nameplate h2 {
    font-size: clamp(0.36rem, 1.3vw, 0.56rem);
  }

  .stats-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 0.35rem;
  }

  .stats-box,
  .info-box {
    padding: 0.3rem;
    border-width: 2px;
  }

  .stat-row + .stat-row {
    margin-top: 0.22rem;
  }

  .stat-label {
    width: 3.2rem;
    font-size: clamp(0.28rem, 0.95vw, 0.42rem);
  }

  .stat-pips {
    gap: 0.08rem;
  }

  .pip {
    width: 0.36rem;
    height: 0.46rem;
    border-width: 1px;
  }

  .info-tag {
    top: -0.32rem;
    right: 0.25rem;
    padding: 0.12rem 0.18rem;
    font-size: 0.2rem;
    border-width: 1px;
  }

  .info-box p {
    font-size: clamp(0.22rem, 0.75vw, 0.34rem);
    line-height: 1.28;
  }

  .support-row {
    width: auto;
    margin-top: 0;
  }

  .pixel-button {
    padding: 0.4rem 0.55rem;
    border-width: 2px;
    box-shadow: inset 0 0 0 1px #ffcb85, inset 0 0 0 3px #4a190c, 0 2px 0 rgba(8, 3, 2, 0.88);
  }

  .review-button {
    width: auto;
    min-width: 7.8rem;
    font-size: clamp(0.28rem, 1vw, 0.42rem);
  }

  .control-deck {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.38rem 0.28rem;
    border-top-width: 4px;
  }

  .copyright {
    font-size: clamp(0.18rem, 0.7vw, 0.28rem);
    line-height: 1.2;
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  body {
    overflow: hidden;
  }

  .page-shell {
    gap: 0.38rem;
    padding-top: 0.3rem;
    padding-bottom: 3.6rem;
  }

  .subtitle {
    margin-top: 0.1rem;
    font-size: 0.24rem;
  }

  .site-logo {
    width: min(64vw, 18rem);
  }

  .board-frame {
    padding: 0.42rem;
  }

  .board-title-wrap {
    margin-bottom: 0.35rem;
    padding: 0.24rem 0.22rem;
  }

  .selector-row {
    width: min(100%, 14rem);
    margin-bottom: 0.35rem;
  }

  .hero-portrait {
    min-height: 4rem;
  }

  .hero-portrait img {
    width: min(100%, 3.5rem);
    max-height: 3.5rem;
  }

  .nameplate {
    margin-bottom: 0.35rem;
  }

  .stats-layout {
    grid-template-columns: 1fr 1.2fr;
  }

  .stats-box,
  .info-box {
    padding: 0.35rem;
  }

  .stat-row + .stat-row {
    margin-top: 0.2rem;
  }

  .stat-label {
    width: 2.8rem;
    font-size: 0.26rem;
  }

  .pip {
    width: 0.3rem;
    height: 0.38rem;
  }

  .info-box p {
    font-size: 0.2rem;
    line-height: 1.22;
  }

  .review-button {
    min-width: 6.8rem;
    font-size: 0.26rem;
  }

  .control-deck {
    grid-template-columns: 1fr;
    padding: 0.28rem 0.22rem;
  }

  .copyright {
    font-size: 0.16rem;
  }
}
