:root {
  color-scheme: dark;
  --cr-canvas: #061220;
  --cr-surface: #0b1b2c;
  --cr-surface-raised: #10243a;
  --cr-surface-soft: #132a40;
  --cr-line: #29435d;
  --cr-line-strong: #3a5c78;
  --cr-text: #f6f9fc;
  --cr-muted: #9eb3c6;
  --cr-cyan: #16d9f4;
  --cr-green: #1dd865;
  --cr-green-pressed: #11ad4d;
  --cr-orange: #ff8a32;
  --cr-orange-pressed: #d9681d;
  --cr-hazard: #ff574f;
  --cr-focus: #60e8ff;
  --cr-radius: 14px;
  --cr-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cr-display-font: "Arial Narrow", "Roboto Condensed", Impact, var(--cr-font);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cr-canvas);
  color: var(--cr-text);
  font-family: var(--cr-font);
}

.chicken-road-stage {
  display: grid;
  grid-template-columns: minmax(320px, 370px) minmax(0, 1fr);
  gap: 14px;
  width: min(100%, 1480px);
  min-height: calc(100vh - 24px);
  margin: 0 auto;
  padding: 12px;
  background: var(--cr-canvas);
  color: var(--cr-text);
  font-family: var(--cr-font);
  font-variant-numeric: tabular-nums;
}

.cr-controls,
.cr-play,
.cr-road,
.cr-steps-wrapper,
.cr-hint {
  border: 1px solid var(--cr-line);
  border-radius: var(--cr-radius);
  background: var(--cr-surface);
}

.cr-controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 20px;
}

.cr-header {
  position: relative;
  padding: 7px 10px 17px;
}

.cr-header--mobile {
  display: none;
}

.cr-header-balance,
.cr-mobile-hud {
  display: none;
}

.cr-brand {
  display: block;
  width: clamp(142px, 11vw, 165px);
  height: auto;
  margin: 0 0 17px;
  filter: brightness(0) invert(1) drop-shadow(0 3px 10px #16d9f426);
  opacity: 0.94;
  user-select: none;
}

.cr-locale {
  position: absolute;
  z-index: 40;
  top: 8px;
  right: 10px;
}

.cr-locale__trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--cr-line-strong);
  border-radius: 9px;
  background: var(--cr-surface-raised);
  color: var(--cr-text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.cr-locale__trigger::-webkit-details-marker {
  display: none;
}

.cr-locale__trigger:hover,
.cr-locale[open] .cr-locale__trigger {
  border-color: var(--cr-cyan);
  background: var(--cr-surface-soft);
}

.cr-locale__trigger:focus-visible {
  outline: 3px solid #60e8ff66;
  outline-offset: 2px;
}

.cr-locale__glyph {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid var(--cr-cyan);
  border-radius: 50%;
  color: var(--cr-cyan);
  font-size: 11px;
  line-height: 1;
}

.cr-locale__current {
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-locale__caret {
  color: var(--cr-muted);
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.cr-locale[data-disabled="true"] .cr-locale__trigger {
  cursor: not-allowed;
  opacity: 0.55;
}

.cr-locale__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 142px;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--cr-line-strong);
  border-radius: 10px;
  background: var(--cr-surface);
  box-shadow: 0 14px 26px #00000059;
}

.cr-locale__option {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--cr-text);
  font-family: var(--cr-font);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.cr-locale__option:hover,
.cr-locale__option:focus-visible,
.cr-locale__option[data-selected="true"] {
  border-color: var(--cr-cyan);
  background: #16d9f41a;
  color: var(--cr-cyan);
  outline: none;
}

.cr-locale__option:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cr-title {
  margin: 0;
  color: var(--cr-text);
  font-family: var(--cr-display-font);
  font-size: var(--merxi-stage-title, clamp(40px, 3vw, 44px));
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 0.98;
}

.cr-posture {
  margin: 10px 0 0;
  color: var(--cr-cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.cr-metric {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--cr-line);
  border-radius: 12px;
  background: var(--cr-surface-raised);
}

.cr-metric__label {
  margin: 0;
  color: var(--cr-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.cr-metric__value-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.cr-metric__value {
  overflow: hidden;
  color: var(--cr-text);
  font-family: var(--cr-display-font);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-difficulty-select {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 13px;
  border: 1px solid var(--cr-line-strong);
  border-radius: 10px;
  background-color: var(--cr-surface);
  color: var(--cr-text);
  color-scheme: dark;
  font-family: var(--cr-display-font);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.cr-difficulty-select:hover:not(:disabled) {
  border-color: var(--cr-cyan);
  background-color: var(--cr-surface-soft);
}

.cr-difficulty-select:focus-visible,
.cr-difficulty-select:open {
  border-color: var(--cr-focus);
  outline: 3px solid #60e8ff40;
  outline-offset: 2px;
  box-shadow: 0 0 18px #16d9f429;
}

.cr-difficulty-select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cr-difficulty-help {
  margin: -1px 0 0 45px;
  color: var(--cr-muted);
  font-size: 10px;
  line-height: 1.25;
}

.cr-wager {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--cr-line);
  border-radius: 12px;
  background: var(--cr-surface-raised);
}

.cr-wager__label {
  color: var(--cr-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.cr-wager__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.cr-wager__balance {
  display: none;
  overflow: hidden;
  color: var(--cr-muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-wager__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 35%);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--cr-line-strong);
  border-radius: 10px;
  background: var(--cr-surface);
}

.cr-wager__amount,
.cr-wager__currency {
  min-width: 0;
  min-height: 45px;
  border: 0;
  background: transparent;
  color: var(--cr-text);
  font-family: var(--cr-display-font);
  font-size: 20px;
  font-weight: 800;
}

.cr-wager__amount {
  width: 100%;
  padding: 0 12px;
  outline: 0;
}

.cr-wager__currency {
  padding: 0 8px;
  border-left: 1px solid var(--cr-line);
  color: var(--cr-cyan);
  cursor: pointer;
}

.cr-wager__amount:focus-visible,
.cr-wager__currency:focus-visible {
  outline: 3px solid #60e8ff66;
  outline-offset: -3px;
}

.cr-wager__amount:disabled,
.cr-wager__currency:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cr-wager__amount[aria-invalid="true"] {
  color: var(--cr-hazard);
}

.cr-wager__help {
  margin: 0;
  color: var(--cr-muted);
  font-size: 10px;
  line-height: 1.3;
}

.cr-icon {
  display: inline-block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  background-image: url("./assets/ui-icons.v1.png");
  background-repeat: no-repeat;
  background-size: 400% 200%;
}

.cr-icon--difficulty { background-position: 0 0; }
.cr-icon--progress { background-position: 33.333% 0; }
.cr-icon--stake { background-position: 66.666% 0; }
.cr-icon--balance { background-position: 66.666% 0; }
.cr-icon--multiplier { background-position: 100% 0; }
.cr-icon--cashout { background-position: 0 100%; }
.cr-icon--go { background-position: 33.333% 100%; }
.cr-icon--proof { background-position: 66.666% 100%; }
.cr-icon--info { background-position: 100% 100%; }

.cr-metric--progress {
  padding-bottom: 13px;
}

.cr-progress {
  display: grid;
  grid-template-columns: repeat(24, minmax(3px, 1fr));
  gap: 2px;
  height: 9px;
  overflow: hidden;
  border-radius: 4px;
}

.cr-progress__segment {
  display: block;
  min-width: 0;
  background: #22364b;
}

.cr-progress__segment[data-state="SAFE"] {
  background: var(--cr-cyan);
}

.cr-progress__segment[data-state="HAZARD"] {
  background: var(--cr-hazard);
}

.cr-progress__segment[data-state="NEXT"] {
  outline: 1px solid var(--cr-cyan);
  outline-offset: -1px;
}

.cr-actions {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 5px;
}

.cr-button {
  min-height: 58px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--cr-display-font);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.cr-button:focus-visible {
  outline: 3px solid var(--cr-focus);
  outline-offset: 3px;
}

.cr-button:not(:disabled):active {
  transform: translateY(1px);
}

.cr-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.35);
  opacity: 0.46;
}

.cr-button--go {
  border-color: #64f094;
  background: var(--cr-green);
  color: #03150b;
  box-shadow: 0 0 0 3px #14ddff59, 0 0 28px #1dd8652e;
}

.cr-button--go:not(:disabled):hover {
  background: #36e878;
}

.cr-button--go:not(:disabled):active {
  background: var(--cr-green-pressed);
}

.cr-button--cashout {
  border-color: var(--cr-orange);
  background: transparent;
  color: var(--cr-text);
}

.cr-button--cashout:not(:disabled):hover {
  background: #ff8a321c;
}

.cr-button--cashout:not(:disabled):active {
  background: var(--cr-orange-pressed);
  color: #fff;
}

.cr-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 13px;
  border: 1px solid var(--cr-line);
  border-radius: 12px;
  background: var(--cr-surface-raised);
}

.cr-proof__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.cr-proof__title {
  color: var(--cr-cyan);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.cr-proof__digest {
  overflow: hidden;
  color: var(--cr-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-play {
  display: grid;
  grid-template-rows: minmax(440px, 1fr) auto auto;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.cr-road {
  --cr-path-left: 11%;
  --cr-path-right: 3%;
  --cr-first-checkpoint: 19.6%;
  --cr-checkpoint-span: 68.8%;
  --cr-lane-hop: clamp(58px, 15vw, 164px);
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background-color: #071522;
  background-image: url("./assets/road-background.v2.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.cr-road::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 70px #020810b8;
  content: "";
  pointer-events: none;
}

.cr-road-path {
  position: absolute;
  z-index: 4;
  top: 62%;
  right: var(--cr-path-right);
  left: var(--cr-path-left);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
}

.cr-road-marker {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(84%, 138px);
  min-width: 0;
  aspect-ratio: 1;
}

.cr-manhole {
  position: absolute;
  inset: 0;
  background-image: url("./assets/hazard-atlas.v1.png");
  background-position: 100% 0;
  background-repeat: no-repeat;
  background-size: 200% 200%;
  filter: drop-shadow(0 7px 8px #000b);
}

.cr-road-marker[data-state="SAFE"] .cr-manhole {
  filter: drop-shadow(0 0 10px #1dd8658f) saturate(1.15);
}

.cr-road-marker[data-state="NEXT"] .cr-manhole {
  filter: drop-shadow(0 0 13px #16d9f4) brightness(1.25);
}

.cr-road-marker[data-state="HAZARD"] .cr-manhole {
  filter: drop-shadow(0 0 13px #ff574f) saturate(1.4);
}

.cr-road-marker[data-state="HIDDEN"] {
  opacity: 0.88;
}

.cr-road-marker__number {
  position: relative;
  z-index: 1;
  color: #e7b67f;
  font-family: var(--cr-display-font);
  font-size: clamp(18px, 2.15vw, 34px);
  font-weight: 900;
  text-shadow: 0 2px 5px #000;
}

.cr-road-marker__multiplier {
  position: absolute;
  z-index: 3;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 72px;
  padding: 5px 10px;
  border: 1px solid var(--cr-line-strong);
  border-radius: 999px;
  background: #071522e8;
  color: var(--cr-text);
  font-family: var(--cr-display-font);
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  box-shadow: 0 6px 14px #0007;
  transform: translateX(-50%);
  white-space: nowrap;
}

.cr-road-marker[data-state="SAFE"] .cr-road-marker__multiplier {
  border-color: var(--cr-green);
  color: #83f4a8;
}

.cr-road-marker[data-state="NEXT"] .cr-road-marker__multiplier {
  border-color: var(--cr-cyan);
  color: var(--cr-cyan);
}

.cr-road-marker[data-state="HAZARD"] .cr-road-marker__multiplier {
  border-color: var(--cr-hazard);
  color: #ff9c96;
}

.cr-character {
  position: absolute;
  z-index: 7;
  top: 62%;
  left: calc(var(--cr-first-checkpoint) + (var(--cr-character-progress) * 0.688));
  width: clamp(82px, 9.3vw, 138px);
  height: clamp(145px, 16vw, 236px);
  background-image: url("./assets/chicken-states.v1.png");
  background-position: 0 50%;
  background-repeat: no-repeat;
  background-size: 500% 100%;
  filter: drop-shadow(0 16px 15px #000a);
  pointer-events: none;
  transform: translate(-50%, -73%);
}

.cr-character[data-character-state="JUMPING"] {
  background-position: 50% 50%;
  animation: cr-hop 680ms cubic-bezier(0.22, 0.82, 0.35, 1) both;
}

.cr-character[data-character-state="ROAST"] {
  background-position: 100% 50%;
  opacity: 1;
}

.chicken-road-stage[data-animation="PLAYING"]
  .cr-character[data-character-state="ROAST"] {
  animation: cr-reveal-roast 1.35s ease-out both;
}

.cr-hazard-effect {
  position: absolute;
  z-index: 6;
  left: calc(var(--cr-first-checkpoint) + (var(--cr-character-progress) * 0.688));
  width: clamp(130px, 14vw, 210px);
  height: clamp(160px, 19vw, 280px);
  background-image: url("./assets/hazard-atlas.v1.png");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  pointer-events: none;
}

.cr-hazard-effect[data-cause="VEHICLE_STRIKE"] {
  top: -25%;
  background-position: 0 0;
  animation: cr-impact-car 1.35s ease-in both;
  filter: drop-shadow(0 16px 18px #000b);
}

.cr-hazard-effect[data-cause="MANHOLE_ROAST"] {
  top: 46%;
  background-position: 0 100%;
  animation: cr-manhole-flare 1.35s ease-out both;
  filter: drop-shadow(0 0 24px #ff7b2fbd);
  transform: translate(-50%, -50%);
}

.cr-terminal {
  position: absolute;
  z-index: 12;
  top: 24px;
  right: 24px;
  width: min(340px, calc(100% - 48px));
  padding: 17px 20px;
  border: 1px solid var(--cr-line-strong);
  border-left: 4px solid var(--cr-hazard);
  border-radius: 12px;
  background: #081726ed;
  box-shadow: 0 18px 50px #0008;
}

.chicken-road-stage[data-status="CASHED_OUT"] .cr-terminal,
.chicken-road-stage[data-status="COMPLETED"] .cr-terminal {
  border-left-color: var(--cr-orange);
}

.cr-terminal__eyebrow,
.cr-terminal__heading,
.cr-terminal__detail {
  margin: 0;
}

.cr-terminal__eyebrow {
  color: var(--cr-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cr-terminal__heading {
  margin-top: 4px;
  font-family: var(--cr-display-font);
  font-size: 34px;
  line-height: 1;
}

.cr-terminal__detail {
  margin-top: 7px;
  color: var(--cr-muted);
  font-size: 13px;
  line-height: 1.45;
}

.cr-steps-wrapper {
  overflow-x: auto;
  padding: 10px;
  scrollbar-color: var(--cr-line-strong) transparent;
  scrollbar-width: thin;
}

.cr-steps {
  display: grid;
  grid-auto-columns: minmax(64px, 1fr);
  grid-auto-flow: column;
  gap: 5px;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cr-step {
  display: grid;
  min-width: 0;
  min-height: 75px;
  place-items: center;
  gap: 2px;
  padding: 7px 5px;
  overflow: hidden;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  background: var(--cr-surface-raised);
  color: var(--cr-muted);
}

.cr-step[data-state="SAFE"] {
  border-color: var(--cr-green);
  color: #83f4a8;
}

.cr-step[data-state="NEXT"] {
  border-color: var(--cr-cyan);
  color: var(--cr-cyan);
  box-shadow: inset 0 -3px 0 #16d9f44a;
}

.cr-step[data-state="HAZARD"] {
  border-color: var(--cr-hazard);
  color: #ff9c96;
}

.cr-step__number {
  max-width: 100%;
  overflow: hidden;
  color: currentColor;
  font-family: var(--cr-display-font);
  font-size: 21px;
  font-weight: 900;
}

.cr-step__state {
  max-width: 100%;
  overflow: hidden;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.cr-step__multiplier {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(8px, 0.68vw, 10px);
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 18px;
}

.cr-hint__copy {
  margin: 0;
  color: var(--cr-text);
  font-size: 14px;
  line-height: 1.5;
}

.cr-hint__secondary {
  color: var(--cr-muted);
}

.cr-cap {
  margin: 0 0 0 auto;
  color: var(--cr-orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.cr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes cr-hop {
  0% { transform: translate(calc(-50% - var(--cr-lane-hop)), -73%) translateY(0); }
  42% { transform: translate(calc(-50% - (var(--cr-lane-hop) * 0.48)), -73%) translateY(-48px) rotate(-3deg); }
  100% { transform: translate(-50%, -73%) translateY(0); }
}

@keyframes cr-impact-car {
  0% { opacity: 1; transform: translate(-50%, -50%); }
  62% { opacity: 1; transform: translate(-50%, 250%); }
  78% { opacity: 1; transform: translate(-50%, 285%); }
  100% { opacity: 0; transform: translate(-50%, 320%); }
}

@keyframes cr-manhole-flare {
  0%, 18% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  78% { opacity: 0.92; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
}

@keyframes cr-reveal-roast {
  0%, 62% { opacity: 0; transform: translate(-50%, -73%) scale(0.86); }
  76% { opacity: 1; transform: translate(-50%, -73%) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%, -73%) scale(1); }
}

@media (min-width: 1200px) {
  .cr-steps-wrapper {
    overflow-x: visible;
  }

  .cr-steps {
    grid-auto-columns: unset;
    grid-auto-flow: row;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    min-width: 0;
  }

  .cr-step {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .chicken-road-stage {
    grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
  }

  .cr-controls {
    padding: 14px;
  }

  .cr-metric {
    padding: 9px 11px;
  }

  .cr-metric__value {
    font-size: 22px;
  }
}

@media (max-width: 760px) {
  .chicken-road-stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
  }

  .cr-play {
    order: 1;
    grid-template-rows: auto clamp(280px, 39vh, 330px) auto;
    gap: 0;
  }

  .cr-controls {
    order: 2;
    gap: 10px;
    padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .cr-controls > .cr-header {
    display: none;
  }

  .cr-header--mobile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 3px 10px;
    min-height: 76px;
    padding: 10px 14px;
    border: 0;
    background: var(--cr-canvas);
  }

  .cr-header--mobile .cr-brand {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 78px;
    margin: 0;
  }

  .cr-header--mobile .cr-locale {
    position: relative;
    top: auto;
    right: auto;
    grid-row: 1;
    grid-column: 3;
    justify-self: end;
  }

  .cr-header--mobile .cr-title {
    grid-row: 1;
    grid-column: 2;
    overflow: hidden;
    font-size: var(--merxi-stage-title-mobile, 28px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cr-header--mobile .cr-posture {
    grid-row: 2;
    grid-column: 2;
    margin: 0;
    overflow: hidden;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cr-header--mobile .cr-header-balance {
    display: grid;
    grid-row: 2;
    grid-column: 3;
    justify-items: end;
    min-width: 0;
    margin: 0;
  }

  .cr-header-balance__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .cr-header-balance__value {
    max-width: 112px;
    overflow: hidden;
    color: var(--cr-text);
    font-family: var(--cr-display-font);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cr-header--mobile .cr-locale__trigger {
    min-height: 34px;
    padding: 0 8px;
  }

  .cr-header--mobile .cr-locale__current {
    max-width: 56px;
    font-size: 11px;
  }

  .cr-header--mobile .cr-locale__glyph {
    width: 19px;
    height: 19px;
  }

  .cr-road,
  .cr-mobile-hud {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .cr-road {
    --cr-path-left: 10%;
    --cr-path-right: 2%;
    --cr-lane-hop: clamp(56px, 18vw, 72px);
  }

  .cr-road-path {
    top: 58%;
    right: var(--cr-path-right);
    left: var(--cr-path-left);
    gap: 0;
  }

  .cr-road-marker {
    width: min(118%, 76px);
  }

  .cr-character {
    top: 58%;
    left: calc(var(--cr-first-checkpoint) + (var(--cr-character-progress) * 0.688));
    width: clamp(84px, 24vw, 98px);
    height: clamp(153px, 43vw, 179px);
  }

  .cr-hazard-effect {
    left: calc(var(--cr-first-checkpoint) + (var(--cr-character-progress) * 0.688));
  }

  .cr-road-marker__number {
    font-size: clamp(20px, 6.4vw, 26px);
  }

  .cr-road-marker__multiplier {
    top: calc(100% + 5px);
    min-width: 0;
    max-width: 100%;
    padding: 4px 6px;
    overflow: hidden;
    font-size: clamp(10px, 3vw, 12px);
    text-overflow: ellipsis;
  }

  .cr-road-marker[data-multiplier-size="medium"] .cr-road-marker__multiplier {
    font-size: clamp(9px, 2.65vw, 11px);
  }

  .cr-road-marker[data-multiplier-size="long"] .cr-road-marker__multiplier {
    padding-right: 3px;
    padding-left: 3px;
    font-size: clamp(8px, 2.35vw, 10px);
  }

  .cr-terminal {
    top: 14px;
    right: 14px;
    width: min(310px, calc(100% - 28px));
  }

  .cr-mobile-hud {
    display: grid;
    grid-template-columns: 1.05fr 0.8fr 1.15fr;
    min-height: 58px;
    border-top: 0;
    background: var(--cr-surface-raised);
  }

  .cr-mobile-hud__item {
    display: grid;
    align-content: center;
    min-width: 0;
    gap: 3px;
    padding: 8px 10px;
    border-right: 1px solid var(--cr-line);
  }

  .cr-mobile-hud__item:last-child {
    border-right: 0;
  }

  .cr-mobile-hud__label {
    overflow: hidden;
    color: var(--cr-muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .cr-mobile-hud__value {
    overflow: hidden;
    color: var(--cr-text);
    font-family: var(--cr-display-font);
    font-size: clamp(13px, 4vw, 17px);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cr-mobile-hud__item:nth-child(2) .cr-mobile-hud__value {
    color: var(--cr-cyan);
  }

  .cr-steps-wrapper {
    display: none;
  }

  .cr-hint {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .cr-hint > :not(.cr-sr-only) {
    display: none;
  }

  .cr-controls > [data-metric] {
    display: none;
  }

  .cr-metric--difficulty,
  .cr-wager {
    padding: 9px 11px;
  }

  .cr-metric--difficulty {
    gap: 5px;
  }

  .cr-metric--difficulty .cr-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .cr-difficulty-select {
    min-height: 44px;
    font-size: 20px;
  }

  .cr-difficulty-help {
    display: none;
  }

  .cr-wager__balance {
    display: block;
    max-width: 50%;
  }

  .cr-wager__unit {
    display: none;
  }

  .cr-wager__amount,
  .cr-wager__currency {
    min-height: 44px;
  }

  .cr-wager__help {
    font-size: 9px;
  }

  .chicken-road-stage[data-phase="SEALED"] .cr-metric--difficulty,
  .chicken-road-stage[data-phase="SEALED"] .cr-wager {
    display: none;
  }

  .cr-actions {
    position: static;
    z-index: 20;
    margin: 0;
    padding: 0;
    background: var(--cr-surface);
  }

  .chicken-road-stage[data-phase="PRESTART"] .cr-button--cashout,
  .chicken-road-stage[data-status="BUSTED"] .cr-button--cashout,
  .chicken-road-stage[data-status="CASHED_OUT"] .cr-button--cashout,
  .chicken-road-stage[data-status="COMPLETED"] .cr-button--cashout {
    display: none;
  }

  .cr-button {
    min-height: 54px;
    font-size: clamp(16px, 4.8vw, 20px);
  }

  .cr-proof {
    display: none;
    min-height: 48px;
    padding: 7px 10px;
    background: transparent;
  }

  .cr-proof .cr-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .cr-proof__title {
    font-size: 10px;
  }

  .cr-proof__digest {
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .cr-header--mobile {
    column-gap: 7px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .cr-header--mobile .cr-brand {
    width: 68px;
  }

  .cr-header--mobile .cr-title {
    font-size: 26px;
  }

  .cr-header--mobile .cr-locale__current {
    display: none;
  }

  .cr-mobile-hud__item {
    padding-right: 7px;
    padding-left: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cr-character,
  .cr-hazard-effect,
  .cr-button {
    animation: none !important;
    transition: none !important;
  }

  .chicken-road-stage[data-status="BUSTED"] .cr-character {
    opacity: 1;
    background-position: 100% 50%;
  }

  .cr-hazard-effect {
    display: none;
  }
}
