/* Gas Rodeo: western pixel-arcade styling. The game uses its own fixed
   palette and ignores the site light/dark theme so the scene always reads
   the same on a projector. */

body.gas-rodeo-app {
  --ink: #1b0f08;
  --wood-dark: #3b2212;
  --wood: #6b3f1f;
  --wood-light: #9a6233;
  --parchment: #f3dfb1;
  --parchment-dark: #dcbc7f;
  --gold: #f2c14e;
  --gold-dark: #c48a1e;
  --gold-light: #ffe39a;
  --blood: #b3261e;
  --low-blue: #1f4fa8;
  --sky-1: #22143d;
  --sky-2: #452058;
  --sky-3: #84305a;
  --sky-4: #c9493f;
  --sky-5: #ec7f3a;
  --sky-6: #f5b553;
  --sand: #d9a35b;
  --sand-dark: #b8813f;
  --sand-light: #ecc285;
  --font-west: "Rye", Georgia, serif;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --font-term: "VT323", ui-monospace, monospace;
  --card-w: clamp(140px, 14vw, 270px);

  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sky-1);
  color: var(--parchment);
  font-family: var(--font-term);
  font-size: 20px;
  line-height: 1.2;
  overflow-x: hidden;
}

body.gas-rodeo-app *,
body.gas-rodeo-app *::before,
body.gas-rodeo-app *::after {
  box-sizing: border-box;
}

body.gas-rodeo-app [hidden] {
  display: none !important;
}

body.gas-rodeo-app .theme-toggle,
body.gas-rodeo-app .back-home-link {
  display: none !important;
}

.gas-rodeo-app .rodeo-app {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------------------------------------------------------------
   Scenery (shared by title, game-over and the in-game sky band)
   --------------------------------------------------------------- */
.gas-rodeo-app .scenery,
.gas-rodeo-app .sky {
  background: linear-gradient(
    to bottom,
    var(--sky-1) 0 18%,
    var(--sky-2) 18% 34%,
    var(--sky-3) 34% 50%,
    var(--sky-4) 50% 64%,
    var(--sky-5) 64% 78%,
    var(--sky-6) 78% 100%
  );
}

.gas-rodeo-app .px-sun {
  position: absolute;
  background: linear-gradient(to bottom, #fff0a8 0 40%, #ffd25e 40% 70%, #ffb347 70% 100%);
  clip-path: polygon(
    30% 0, 70% 0, 70% 8%, 84% 8%, 84% 16%, 92% 16%, 92% 30%, 100% 30%,
    100% 70%, 92% 70%, 92% 84%, 84% 84%, 84% 92%, 70% 92%, 70% 100%,
    30% 100%, 30% 92%, 16% 92%, 16% 84%, 8% 84%, 8% 70%, 0 70%,
    0 30%, 8% 30%, 8% 16%, 16% 16%, 16% 8%, 30% 8%
  );
}

.gas-rodeo-app .mesas {
  position: absolute;
  left: 0;
  width: 100%;
}

.gas-rodeo-app .cactus {
  position: absolute;
}

.gas-rodeo-app .scenery {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.gas-rodeo-app .scenery .ground-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18vh;
  background:
    radial-gradient(circle, var(--sand-dark) 0 2px, transparent 2.5px) 0 0 / 40px 30px,
    linear-gradient(to bottom, #c98f4a 0 10%, var(--sand) 10% 100%);
  border-top: 4px solid var(--ink);
}

.gas-rodeo-app .scenery .mesas {
  bottom: 18vh;
  height: 16vh;
}

.gas-rodeo-app .scenery .px-sun {
  left: 62%;
  bottom: calc(18vh + 8vh);
  width: 22vmin;
  height: 22vmin;
}

.gas-rodeo-app .scenery .px-sun--low {
  bottom: calc(18vh + 2vh);
}

.gas-rodeo-app .scenery .cactus {
  bottom: calc(18vh - 6px);
  height: 15vh;
  width: 11vh;
}

.gas-rodeo-app .scenery .cactus-a { left: 5%; }
.gas-rodeo-app .scenery .cactus-b { right: 8%; height: 10vh; width: 7.5vh; }

/* ---------------------------------------------------------------
   Pixel buttons and links
   --------------------------------------------------------------- */
.gas-rodeo-app .px-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: auto;
  min-height: 0;
  margin: 3px;
  padding: 12px 16px;
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border-radius: 0;
  box-shadow:
    inset -4px -4px 0 var(--gold-dark),
    inset 4px 4px 0 var(--gold-light),
    0 0 0 3px var(--ink),
    5px 5px 0 3px rgba(27, 15, 8, 0.55);
  transition: none;
}

.gas-rodeo-app .px-btn:hover {
  background: var(--gold);
  filter: brightness(1.08);
  transform: none;
}

.gas-rodeo-app .px-btn:active {
  transform: translate(3px, 3px);
}

.gas-rodeo-app .px-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.gas-rodeo-app .px-btn--wood,
.gas-rodeo-app .px-btn--wood:hover {
  background: var(--wood-light);
  color: var(--parchment);
  box-shadow:
    inset -4px -4px 0 var(--wood),
    inset 4px 4px 0 #c08850,
    0 0 0 3px var(--ink),
    5px 5px 0 3px rgba(27, 15, 8, 0.55);
}

.gas-rodeo-app .px-btn--sm {
  font-size: 10px;
  padding: 8px 10px;
}

.gas-rodeo-app .px-btn--big {
  width: calc(100% - 6px);
  font-size: clamp(14px, 1.8vw, 18px);
  padding: 18px 24px;
}

.gas-rodeo-app .blink-soft {
  animation: rodeo-blink 1.1s steps(2) infinite;
}

.gas-rodeo-app .px-link {
  align-self: flex-start;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--ink);
  text-decoration: none;
}

.gas-rodeo-app .px-link:hover {
  text-decoration: underline;
}

.gas-rodeo-app .px-link--dark {
  align-self: center;
  color: var(--wood);
  text-shadow: none;
}

/* ---------------------------------------------------------------
   Title + game-over screens
   --------------------------------------------------------------- */
.gas-rodeo-app .screen-title {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 20px 16px 20vh;
}

.gas-rodeo-app .title-wrap {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gas-rodeo-app .title-kicker {
  margin: 10px 0 0;
  font-family: var(--font-pixel);
  font-size: clamp(9px, 1.3vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--parchment);
  text-shadow: 2px 2px 0 var(--ink);
}

.gas-rodeo-app .game-title {
  margin: 0;
  font-family: var(--font-west);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 7rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--gold);
  text-shadow:
    4px 4px 0 var(--ink),
    8px 8px 0 var(--blood),
    12px 12px 0 var(--ink);
}

.gas-rodeo-app .game-title--sm {
  font-size: clamp(2rem, 6.5vw, 4.2rem);
}

.gas-rodeo-app .title-panel {
  width: calc(100% - 32px);
  margin: 26px 16px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--parchment);
  color: var(--ink);
  box-shadow:
    0 0 0 4px var(--ink),
    0 0 0 12px var(--wood),
    0 0 0 16px var(--ink),
    12px 14px 0 14px rgba(27, 15, 8, 0.45);
}

.gas-rodeo-app .title-panel--single {
  grid-template-columns: 1fr;
  padding: 18px 20px;
}

.gas-rodeo-app .panel-block {
  padding: 18px 20px;
}

.gas-rodeo-app .panel-block + .panel-block {
  border-left: 3px dashed var(--wood-light);
}

.gas-rodeo-app .block-title {
  margin: 0 0 12px;
  font-family: var(--font-west);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--blood);
}

.gas-rodeo-app .how-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 22px;
}

.gas-rodeo-app .how-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.gas-rodeo-app .how-num {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-size: 11px;
  background: var(--wood);
  color: var(--gold);
  box-shadow: 0 0 0 2px var(--ink);
}

.gas-rodeo-app .score-key {
  margin: 0;
  padding-top: 12px;
  border-top: 2px dashed var(--wood-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  font-size: 20px;
}

.gas-rodeo-app .score-key div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.gas-rodeo-app .score-key dt {
  color: var(--wood-dark);
}

.gas-rodeo-app .score-key dd {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--blood);
}

.gas-rodeo-app .seg {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gas-rodeo-app .seg legend {
  width: 100%;
  padding: 0;
  margin-bottom: 8px;
  font-family: var(--font-pixel);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--wood-dark);
}

.gas-rodeo-app .seg label {
  position: relative;
  flex: 1 1 0;
  min-width: 80px;
  margin: 2px;
}

.gas-rodeo-app .seg input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.gas-rodeo-app .seg span {
  display: block;
  padding: 6px 8px;
  text-align: center;
  font-size: 22px;
  background: var(--parchment-dark);
  color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
  cursor: pointer;
}

.gas-rodeo-app .seg input:checked + span {
  background: var(--wood);
  color: var(--gold);
  box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--gold);
}

.gas-rodeo-app .seg input:focus-visible + span {
  outline: 3px solid var(--blood);
  outline-offset: 3px;
}

.gas-rodeo-app .px-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  font-size: 21px;
  color: var(--ink);
  cursor: pointer;
}

.gas-rodeo-app .px-check input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--parchment-dark);
  box-shadow: 0 0 0 2px var(--ink);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.gas-rodeo-app .px-check input:checked {
  background: var(--wood);
}

.gas-rodeo-app .px-check input:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold);
}

.gas-rodeo-app .px-check input:focus-visible {
  outline: 3px solid var(--blood);
  outline-offset: 3px;
}

.gas-rodeo-app .best-line {
  margin: 14px 0 12px;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--wood-dark);
}

.gas-rodeo-app .best-line strong {
  color: var(--blood);
  font-weight: 400;
}

.gas-rodeo-app .disclaimer {
  margin: 0;
  font-size: 19px;
  text-align: center;
  color: var(--parchment);
  text-shadow: 2px 2px 0 var(--ink);
}

@media (max-width: 760px) {
  .gas-rodeo-app .title-panel {
    grid-template-columns: 1fr;
  }

  .gas-rodeo-app .panel-block + .panel-block {
    border-left: 0;
    border-top: 3px dashed var(--wood-light);
  }
}

/* Game over */
.gas-rodeo-app .go-kicker {
  margin: 14px 0 0;
  font-family: var(--font-pixel);
  font-size: clamp(16px, 3vw, 28px);
  color: #ff5a4a;
  text-shadow: 3px 3px 0 var(--ink);
  animation: rodeo-blink 1s steps(2) infinite;
}

.gas-rodeo-app .go-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.gas-rodeo-app .go-stat {
  padding: 12px 8px;
  text-align: center;
  background: var(--wood);
  color: var(--gold);
  box-shadow: 0 0 0 3px var(--ink);
}

.gas-rodeo-app .go-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-pixel);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--parchment-dark);
}

.gas-rodeo-app .go-num {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2vw, 20px);
  text-shadow: 2px 2px 0 var(--ink);
}

.gas-rodeo-app .go-record {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--blood);
  animation: rodeo-blink 0.8s steps(2) infinite;
}

.gas-rodeo-app .review {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.gas-rodeo-app .review-item {
  padding: 8px 10px;
  background: #fff3d1;
  box-shadow: 0 0 0 2px var(--ink);
  font-size: 19px;
}

.gas-rodeo-app .review-vals {
  font-size: 22px;
  color: var(--ink);
}

.gas-rodeo-app .review-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 5px;
  font-family: var(--font-pixel);
  font-size: 8px;
  vertical-align: middle;
  background: var(--blood);
  color: var(--parchment);
}

.gas-rodeo-app .review-ans strong {
  font-weight: 400;
  color: var(--blood);
}

.gas-rodeo-app .review-hint {
  color: var(--wood);
  font-size: 18px;
}

.gas-rodeo-app .review-empty {
  font-size: 21px;
}

.gas-rodeo-app .go-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.gas-rodeo-app .go-actions .px-btn--big {
  width: auto;
  flex: 1 1 240px;
}

@media (max-width: 640px) {
  .gas-rodeo-app .go-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------------------------------------
   Game screen
   --------------------------------------------------------------- */
.gas-rodeo-app .screen-game {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.gas-rodeo-app .hud {
  position: relative;
  z-index: 20;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 8px 14px;
  background:
    repeating-linear-gradient(to bottom, var(--wood) 0 13px, var(--wood-dark) 13px 15px),
    var(--wood);
  border-bottom: 4px solid var(--ink);
  box-shadow: inset 0 3px 0 var(--wood-light);
}

.gas-rodeo-app .hud-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gas-rodeo-app .hud-title {
  font-family: var(--font-west);
  font-size: 24px;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--ink);
}

.gas-rodeo-app .hud-stats {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.gas-rodeo-app .hud-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.gas-rodeo-app .hud-stats dt {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment-dark);
}

.gas-rodeo-app .hud-stats dd {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(13px, 1.1vw, 20px);
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--ink);
}

.gas-rodeo-app .lives {
  display: flex;
  gap: 4px;
}

.gas-rodeo-app .life {
  font-family: system-ui, sans-serif;
  font-size: 28px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--ink);
}

.gas-rodeo-app .life.is-lost {
  color: var(--wood-dark);
  text-shadow: none;
}

.gas-rodeo-app .life.is-flash {
  animation: rodeo-life-lost 0.6s steps(6);
}

@media (max-width: 700px) {
  .gas-rodeo-app .hud-title,
  .gas-rodeo-app .hud-age-stat {
    display: none;
  }

  .gas-rodeo-app .hud-stats {
    gap: 12px;
  }
}

.gas-rodeo-app .stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.gas-rodeo-app .stage.shake {
  animation: rodeo-shake 0.35s steps(6);
}

.gas-rodeo-app .sky {
  position: relative;
  flex: none;
  height: clamp(56px, 11vh, 120px);
  overflow: hidden;
}

.gas-rodeo-app .sky .mesas {
  bottom: 0;
  height: 70%;
}

.gas-rodeo-app .sky .px-sun {
  left: 70%;
  bottom: 30%;
  width: 9vh;
  height: 9vh;
}

.gas-rodeo-app .sky .cactus {
  bottom: -2px;
  height: 60%;
  width: 45%;
  max-width: 50px;
}

.gas-rodeo-app .sky .cactus-a { left: 14%; }
.gas-rodeo-app .sky .cactus-b { left: 47%; height: 42%; }

.gas-rodeo-app .tumbleweed {
  position: absolute;
  bottom: 4px;
  left: -40px;
  width: 24px;
  height: 24px;
  border: 3px dotted #8a5a2b;
  border-radius: 50%;
  animation: rodeo-tumble 22s linear infinite;
}

.gas-rodeo-app .stage.is-frozen .tumbleweed {
  animation-play-state: paused;
}

/* The trail */
.gas-rodeo-app .playfield {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  border-top: 4px solid var(--ink);
  background:
    radial-gradient(circle at 20% 30%, var(--sand-dark) 0 2px, transparent 2.5px) 0 0 / 46px 38px,
    radial-gradient(circle at 70% 80%, var(--sand-light) 0 2px, transparent 2.5px) 0 0 / 58px 44px,
    linear-gradient(to bottom, #c98f4a 0 14px, var(--sand) 14px 100%);
}

.gas-rodeo-app .playfield:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.gas-rodeo-app .ruts {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.gas-rodeo-app .rut {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--sand-dark) 0 18px, transparent 18px 30px);
  opacity: 0.75;
}

.gas-rodeo-app .cards-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.gas-rodeo-app .fence {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 22px;
  background: repeating-linear-gradient(to bottom, var(--wood) 0 30px, var(--wood-dark) 30px 36px);
  border-right: 4px solid var(--ink);
  pointer-events: none;
}

.gas-rodeo-app .canyon {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: clamp(44px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 4px dashed var(--blood);
  background: linear-gradient(90deg, rgba(27, 15, 8, 0.25), rgba(27, 15, 8, 0.85) 60%, var(--ink));
  pointer-events: none;
}

.gas-rodeo-app .canyon span {
  writing-mode: vertical-rl;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ff6b5a;
  text-shadow: 2px 2px 0 var(--ink);
}

.gas-rodeo-app .lasso-svg {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gas-rodeo-app .trail-tip {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 1;
  margin: 0;
  padding: 2px 10px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 18px;
  color: var(--wood-dark);
  background: rgba(243, 223, 177, 0.55);
  pointer-events: none;
}

@media (max-width: 700px) {
  .gas-rodeo-app .trail-tip {
    display: none;
  }
}

.gas-rodeo-app .banner {
  position: absolute;
  top: 16%;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.6vw, 28px);
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--ink), -2px -2px 0 var(--ink);
  opacity: 0;
  pointer-events: none;
}

.gas-rodeo-app .banner.show {
  animation: rodeo-banner 1.5s steps(10) forwards;
}

.gas-rodeo-app .banner.bad {
  color: #ff5a4a;
}

.gas-rodeo-app .float-text {
  position: absolute;
  z-index: 5;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--ink);
  pointer-events: none;
  animation: rodeo-float 0.9s steps(9) forwards;
}

.gas-rodeo-app .float-text.good { color: #a6ff7d; }
.gas-rodeo-app .float-text.bad { color: #ff6b5a; }

/* ---------------------------------------------------------------
   Wanted-poster cards
   --------------------------------------------------------------- */
.gas-rodeo-app .gas-card {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--card-w);
  padding: 9px;
  container-type: inline-size;
  will-change: transform;
}

.gas-rodeo-app .poster {
  position: relative;
  padding: 6px 10px 8px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(154, 98, 51, 0.12) 0 12px, transparent 13px),
    radial-gradient(circle at 85% 75%, rgba(154, 98, 51, 0.1) 0 16px, transparent 17px),
    var(--parchment);
  box-shadow:
    0 0 0 3px var(--ink),
    0 0 0 6px var(--wood-light),
    0 0 0 9px var(--ink),
    9px 10px 0 6px rgba(27, 15, 8, 0.3);
}

.gas-rodeo-app .poster-head {
  margin-bottom: 4px;
  padding-bottom: 2px;
  border-bottom: 2px dashed var(--wood);
  text-align: center;
  font-family: var(--font-west);
  font-size: clamp(18px, 12cqw, 30px);
  letter-spacing: 0.14em;
  color: var(--blood);
}

.gas-rodeo-app .pv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  line-height: 0.98;
}

.gas-rodeo-app .pv-label {
  font-size: clamp(18px, 12cqw, 30px);
  color: var(--wood);
}

.gas-rodeo-app .pv-val {
  font-size: clamp(26px, 18cqw, 44px);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.gas-rodeo-app .pv.is-high .pv-val { color: var(--blood); }
.gas-rodeo-app .pv.is-low .pv-val { color: var(--low-blue); }
.gas-rodeo-app .pv.is-high .pv-val::after { content: " \25B2"; font-size: 0.6em; }
.gas-rodeo-app .pv.is-low .pv-val::after { content: " \25BC"; font-size: 0.6em; }

.gas-rodeo-app .gas-card.hint-pulse .poster {
  animation: rodeo-hint 0.7s steps(2) infinite;
}

.gas-rodeo-app .gas-card.is-roped .poster {
  animation: rodeo-roped 0.4s steps(4);
  box-shadow:
    0 0 0 3px var(--ink),
    0 0 0 6px var(--gold),
    0 0 0 9px var(--ink),
    9px 10px 0 6px rgba(27, 15, 8, 0.3);
}

.gas-rodeo-app .gas-card.is-roped::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 6px dashed var(--wood-light);
  border-radius: 50%;
  animation: rodeo-tighten 0.4s steps(4) forwards;
}

.gas-rodeo-app .gas-card.is-captured {
  visibility: hidden;
}

.gas-rodeo-app .gas-card.is-innocent .poster {
  animation: rodeo-fade 0.7s steps(6) forwards;
}

.gas-rodeo-app .gas-card.is-innocent::after {
  content: "Innocent";
  position: absolute;
  top: 45%;
  left: 50%;
  padding: 2px 8px;
  transform: translate(-50%, -50%) rotate(-14deg);
  font-family: var(--font-west);
  font-size: 22px;
  color: #2e7d32;
  border: 3px solid #2e7d32;
  background: rgba(243, 223, 177, 0.92);
}

/* ---------------------------------------------------------------
   Showdown (classification) overlay
   --------------------------------------------------------------- */
.gas-rodeo-app .showdown {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.15fr);
  align-items: start;
  gap: 26px;
  padding: 24px clamp(16px, 3vw, 44px);
  overflow: auto;
  background: rgba(27, 15, 8, 0.75);
  animation: rodeo-show-in 0.25s steps(5);
}

.gas-rodeo-app .showdown-charges {
  margin: 4px;
  padding: 16px;
  background:
    repeating-linear-gradient(to bottom, var(--wood) 0 22px, var(--wood-dark) 22px 25px),
    var(--wood);
  box-shadow:
    0 0 0 4px var(--ink),
    inset 0 0 0 4px var(--wood-light),
    9px 10px 0 4px rgba(0, 0, 0, 0.4);
}

.gas-rodeo-app .sign-title {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--font-west);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--ink);
}

.gas-rodeo-app .charge-buttons {
  display: grid;
  gap: 8px;
}

.gas-rodeo-app .charge-btn {
  appearance: none;
  border: 0;
  border-radius: 0;
  width: calc(100% - 6px);
  margin: 3px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-family: var(--font-term);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  background: var(--parchment);
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.gas-rodeo-app .charge-btn:hover:not(:disabled) {
  background: #fff1c9;
  transform: translate(-1px, -1px);
}

.gas-rodeo-app .charge-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

.gas-rodeo-app .charge-btn:disabled {
  cursor: default;
  opacity: 0.5;
}

.gas-rodeo-app .charge-btn.is-correct {
  opacity: 1;
  background: #9fdc7c;
}

.gas-rodeo-app .charge-btn.is-wrong {
  opacity: 1;
  background: #f08a7e;
}

.gas-rodeo-app .charge-key {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-size: 11px;
  background: var(--wood-dark);
  color: var(--gold);
}

.gas-rodeo-app .showdown-suspect {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.gas-rodeo-app .poster--big {
  margin: 12px;
  padding: 14px 20px 12px;
}

.gas-rodeo-app .poster--big .poster-head {
  font-size: clamp(34px, 4vw, 52px);
}

.gas-rodeo-app .poster-sub {
  margin: 0 0 8px;
  text-align: center;
  font-size: 19px;
  color: var(--wood);
}

.gas-rodeo-app .big-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-term);
}

.gas-rodeo-app .big-table th,
.gas-rodeo-app .big-table td {
  padding: 3px 6px;
  text-align: left;
  vertical-align: baseline;
  border-bottom: 2px dashed rgba(107, 63, 31, 0.35);
  background: none;
  color: inherit;
}

.gas-rodeo-app .big-table thead th {
  font-family: var(--font-pixel);
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--wood);
}

.gas-rodeo-app .big-table tbody th {
  font-size: 26px;
  font-weight: 400;
  color: var(--wood-dark);
}

.gas-rodeo-app .big-val {
  white-space: nowrap;
  font-size: 40px;
  color: var(--ink);
}

.gas-rodeo-app .unit {
  margin-left: 4px;
  font-size: 17px;
  color: var(--wood);
}

.gas-rodeo-app .big-range {
  white-space: nowrap;
  font-size: 21px;
  color: var(--wood);
}

.gas-rodeo-app .big-dir {
  width: 32px;
  text-align: center;
  font-size: 24px;
}

.gas-rodeo-app .big-table tr.is-high .big-val,
.gas-rodeo-app .big-table tr.is-high .big-dir { color: var(--blood); }
.gas-rodeo-app .big-table tr.is-low .big-val,
.gas-rodeo-app .big-table tr.is-low .big-dir { color: var(--low-blue); }

.gas-rodeo-app .poster-foot {
  margin: 8px 0 0;
  text-align: right;
  font-size: 17px;
  color: var(--wood);
}

.gas-rodeo-app .verdict {
  margin: 3px 12px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--parchment);
  box-shadow: 0 0 0 3px var(--gold);
  animation: rodeo-show-in 0.2s steps(4);
}

.gas-rodeo-app .verdict p {
  margin: 0 0 6px;
  font-size: 22px;
}

.gas-rodeo-app .verdict .verdict-title {
  margin-bottom: 10px;
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1.4;
}

.gas-rodeo-app .verdict.good .verdict-title { color: #a6ff7d; }
.gas-rodeo-app .verdict.bad .verdict-title { color: #ff6b5a; }

.gas-rodeo-app .verdict strong {
  font-weight: 400;
  color: var(--gold);
}

.gas-rodeo-app .verdict-hint {
  color: var(--parchment-dark);
}

.gas-rodeo-app .verdict .px-btn {
  margin-top: 10px;
}

@media (max-width: 820px) {
  .gas-rodeo-app .showdown {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }

  .gas-rodeo-app .showdown-suspect {
    order: -1;
  }

  .gas-rodeo-app .big-val {
    font-size: 30px;
  }
}

/* Pause */
.gas-rodeo-app .pause-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  background: rgba(27, 15, 8, 0.7);
}

.gas-rodeo-app .pause-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 26px 30px;
  background: var(--parchment);
  box-shadow:
    0 0 0 4px var(--ink),
    0 0 0 10px var(--wood),
    0 0 0 14px var(--ink);
}

.gas-rodeo-app .pause-title {
  margin: 0 0 6px;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 22px;
  font-weight: 400;
  color: var(--blood);
  animation: rodeo-blink 1s steps(2) infinite;
}

/* ---------------------------------------------------------------
   Animations
   --------------------------------------------------------------- */
@keyframes rodeo-blink {
  50% { filter: brightness(1.3); }
}

@keyframes rodeo-tumble {
  0% { transform: translateX(0) rotate(0deg); }
  55%, 100% { transform: translateX(calc(100vw + 80px)) rotate(1440deg); }
}

@keyframes rodeo-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-8px, 3px); }
  40% { transform: translate(7px, -4px); }
  60% { transform: translate(-5px, 2px); }
  80% { transform: translate(4px, -1px); }
}

@keyframes rodeo-life-lost {
  0%, 33%, 66% { color: #ff5a4a; transform: scale(1.4); }
  16%, 50%, 83% { color: var(--wood-dark); transform: scale(1); }
}

@keyframes rodeo-banner {
  0% { opacity: 1; transform: translateX(-50%) scale(1.5); }
  15% { opacity: 1; transform: translateX(-50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-12px); }
}

@keyframes rodeo-float {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -48px); }
}

@keyframes rodeo-hint {
  50% {
    box-shadow:
      0 0 0 3px var(--ink),
      0 0 0 6px #ff5a4a,
      0 0 0 9px var(--ink),
      9px 10px 0 6px rgba(27, 15, 8, 0.3);
  }
}

@keyframes rodeo-roped {
  0%, 50% { transform: translate(-4px, 0) rotate(-2deg); }
  25%, 75% { transform: translate(4px, 0) rotate(2deg); }
  100% { transform: none; }
}

@keyframes rodeo-tighten {
  0% { transform: scale(1.7); opacity: 0.3; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes rodeo-fade {
  0% { opacity: 1; filter: grayscale(0); }
  100% { opacity: 0; filter: grayscale(1); }
}

@keyframes rodeo-show-in {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gas-rodeo-app .tumbleweed,
  .gas-rodeo-app .blink-soft,
  .gas-rodeo-app .go-kicker,
  .gas-rodeo-app .go-record,
  .gas-rodeo-app .pause-title,
  .gas-rodeo-app .stage.shake {
    animation: none;
  }
}
