.roa-highway-page {
  --roa-highway-bg: #101114;
  --roa-highway-ink: #111827;
  --roa-highway-paper: #fff4d6;
  --roa-highway-red: #ef1f2d;
  --roa-highway-blue: #1287d6;
  --roa-highway-yellow: #f6c84c;
  --roa-highway-green: #22c55e;
  min-height: 100vh;
  color: #171717;
  background: linear-gradient(180deg, #72cdf6 0%, #f7d98c 34%, #ec8c44 64%, #141414 100%);
  font-family: var(--roa-typography-body-font, Arial, Helvetica, sans-serif);
}

.roa-highway-route-host {
  background: #111;
}

.roa-highway-hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  padding: clamp(110px, 14vw, 180px) clamp(20px, 5vw, 78px) clamp(42px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}

.roa-highway-hero::before {
  content: "";
  position: absolute;
  inset: auto -6% -18% -6%;
  height: 46%;
  background:
    linear-gradient(82deg, transparent 0 27%, rgba(19, 24, 31, .96) 27.4% 72.6%, transparent 73%),
    repeating-linear-gradient(90deg, transparent 0 64px, rgba(255,255,255,.46) 64px 94px, transparent 94px 168px);
  border-top: 8px solid rgba(255,255,255,.72);
  transform: perspective(480px) rotateX(51deg);
  transform-origin: bottom;
}

.roa-highway-hero-copy,
.roa-highway-season-card {
  position: relative;
  z-index: 1;
}

.roa-highway-hero h1 {
  margin: 6px 0 12px;
  max-width: 760px;
  color: #101114;
  font-family: var(--roa-typography-heading-font, Montserrat, Arial, sans-serif);
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #fff, 8px 8px 0 rgba(239,31,45,.88);
}

.roa-highway-hero p {
  max-width: 640px;
  color: #1f2937;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 800;
}

.roa-highway-page .roa-aim-hero-visual::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.34) 0 2px, transparent 2.5px) 0 0 / 16px 16px,
    linear-gradient(135deg, rgba(255,23,68,.76), rgba(246,200,76,.82) 45%, rgba(18,135,214,.74));
}

.roa-highway-page .roa-aim-hero-visual img {
  image-rendering: auto;
}

.roa-highway-page .roa-aim-hero-visual .is-pedro {
  left: 22%;
  bottom: 8px;
  max-height: 290px;
  transform: rotate(-7deg) scale(1.14);
}

.roa-highway-page .roa-aim-hero-visual .is-rick {
  left: 1%;
  bottom: 64px;
  max-height: 172px;
  transform: rotate(9deg) scaleX(-1);
}

.roa-highway-page .roa-aim-hero-visual .is-flick {
  right: 1%;
  bottom: 48px;
  max-height: 176px;
  transform: rotate(-8deg);
}

.roa-highway-page .roa-aim-hero-visual .is-bolt {
  right: 28%;
  bottom: 182px;
  max-height: 154px;
  transform: rotate(8deg);
}

.roa-highway-hero-actions,
.roa-highway-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.roa-highway-hero-actions a,
.roa-highway-buttons button {
  min-height: 46px;
  border: 3px solid #111;
  border-radius: 8px;
  padding: 11px 18px;
  background: #fff;
  color: #111;
  box-shadow: 4px 4px 0 #111;
  font-weight: 950;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.roa-highway-hero-actions .is-primary,
.roa-highway-buttons .is-primary {
  background: var(--roa-highway-red);
  color: #fff;
}

.roa-highway-buttons button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.roa-highway-season-card {
  align-self: end;
  border: 4px solid #111;
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 244, 214, .94);
  box-shadow: 7px 7px 0 #111;
}

.roa-highway-season-card span,
.roa-highway-page .roa-kicker {
  display: block;
  color: var(--roa-highway-red);
  font-weight: 950;
  text-transform: uppercase;
}

.roa-highway-season-card strong {
  display: block;
  margin: 8px 0;
  color: #111;
  font-family: var(--roa-typography-heading-font, Montserrat, Arial, sans-serif);
  font-size: 1.45rem;
  text-transform: uppercase;
}

.roa-highway-season-card p {
  color: #111;
  font-weight: 850;
}

.roa-highway-season-card small {
  display: inline-block;
  margin-top: 8px;
  border: 2px solid #111;
  border-radius: 7px;
  padding: 5px 8px;
  background: #fff;
  color: #111;
  font-weight: 950;
  text-transform: uppercase;
}

.roa-highway-play {
  scroll-margin-top: 92px;
  padding: clamp(32px, 5vw, 70px) clamp(14px, 4vw, 52px) clamp(72px, 8vw, 120px);
  background:
    linear-gradient(180deg, rgba(20,20,20,.96), #111 42%, #16100c 100%);
}

.roa-highway-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1480px;
  margin: 0 auto 18px;
}

.roa-highway-brief article {
  border: 3px solid #111;
  border-radius: 8px;
  padding: 14px;
  background: #fff4d6;
  box-shadow: 5px 5px 0 #000;
}

.roa-highway-brief span {
  display: block;
  color: var(--roa-highway-red);
  font-weight: 950;
  text-transform: uppercase;
}

.roa-highway-brief strong {
  display: block;
  margin: 4px 0;
  color: #111;
  font-family: var(--roa-typography-heading-font, Montserrat, Arial, sans-serif);
  font-size: 1.45rem;
  text-transform: uppercase;
}

.roa-highway-brief p {
  margin: 0;
  color: #111;
  font-weight: 800;
}

.roa-highway-shell {
  scroll-margin-top: 92px;
  position: relative;
  display: block;
  max-width: 1480px;
  margin: 0 auto;
}

.roa-highway-stage {
  position: relative;
}

.roa-highway-canvas-wrap .roa-aim-game-ui {
  grid-template-columns: minmax(120px, 180px) minmax(220px, 300px);
  align-items: start;
  padding: 12px 14px;
}

.roa-highway-canvas-wrap .roa-aim-game-leaderboard {
  justify-self: end;
  width: min(300px, 34vw);
  margin-right: 0;
  border: 3px solid #111;
  border-radius: 8px;
  padding: 8px 10px 9px;
  background: rgba(255,244,214,.86);
  box-shadow: 5px 5px 0 rgba(17,17,17,.72);
  color: #111;
  text-shadow: none;
}

.roa-highway-canvas-wrap .roa-aim-game-leaderboard > span {
  display: block;
  margin-bottom: 5px;
  color: #ff1744;
  font-size: clamp(.72rem, 1vw, .86rem);
  font-weight: 950;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

.roa-highway-canvas-wrap .roa-aim-game-leaderboard ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roa-highway-canvas-wrap .roa-aim-game-leaderboard li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  border-top: 1px solid rgba(17,17,17,.18);
  padding-top: 3px;
  color: #111;
}

.roa-highway-canvas-wrap .roa-aim-game-leaderboard li:first-child {
  border-top: 0;
  padding-top: 0;
}

.roa-highway-canvas-wrap .roa-aim-game-leaderboard li span {
  min-width: 0;
  overflow: hidden;
  color: #111;
  font-size: clamp(.66rem, .92vw, .78rem);
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roa-highway-canvas-wrap .roa-aim-game-leaderboard li strong {
  color: #ff1744;
  font-size: clamp(.76rem, 1.08vw, .96rem);
  font-weight: 950;
  line-height: 1;
}

.roa-highway-game-score small {
  display: inline-block;
  margin-top: 3px;
  border: 2px solid #111;
  border-radius: 6px;
  padding: 2px 7px;
  background: #fff4d6;
  color: #111827;
  font-family: var(--roa-typography-heading-font, Montserrat, Arial, sans-serif);
  font-size: clamp(.72rem, 1.4vw, .92rem);
  font-weight: 950;
  line-height: 1.1;
  text-shadow: none;
  white-space: nowrap;
}

.roa-highway-game {
  position: relative;
  min-width: 0;
  border: 4px solid #050505;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  box-shadow: 8px 8px 0 rgba(0,0,0,.85);
}

.roa-highway-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  cursor: default;
  touch-action: none;
}

.roa-highway-game,
.roa-highway-canvas-wrap,
.roa-highway-canvas-wrap canvas {
  cursor: default;
}

.roa-aim-canvas-wrap.roa-highway-canvas-wrap canvas {
  cursor: default !important;
}

.roa-highway-touch-zones {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
}

.roa-highway-touch-zones button {
  opacity: 0;
  pointer-events: auto;
  border: 0;
  background: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 68px auto;
  transition: opacity .18s ease, transform .18s ease;
}

.roa-highway-touch-zones button[data-touch-lane="left"] {
  background-image: url("../../public/games/highway-havoc/processed/ui/kenney-arrow-left.png");
}

.roa-highway-touch-zones button[data-touch-lane="right"] {
  background-image: url("../../public/games/highway-havoc/processed/ui/kenney-arrow-right.png");
}

@media (hover: none), (pointer: coarse) {
  .roa-highway-touch-zones button {
    opacity: .32;
  }

  .roa-highway-touch-zones button:active {
    opacity: .58;
    transform: scale(.98);
  }
}

.roa-highway-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(11, 13, 17, .46);
  z-index: 5;
}

.roa-highway-overlay[hidden],
.roa-highway-countdown[hidden],
.roa-highway-results[hidden],
.roa-highway-shell.is-running .roa-highway-overlay {
  display: none !important;
}

.roa-highway-panel {
  width: min(540px, 100%);
  border: 4px solid #111;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 244, 214, .97);
  box-shadow: 8px 8px 0 #111;
}

.roa-highway-panel h2,
.roa-highway-side h2 {
  margin: 4px 0 12px;
  color: #111;
  font-family: var(--roa-typography-heading-font, Montserrat, Arial, sans-serif);
  letter-spacing: 0;
  text-transform: uppercase;
}

.roa-highway-start-form {
  display: grid;
  gap: 12px;
}

.roa-highway-character-select {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.roa-highway-character-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas:
    "image label"
    "image name"
    "image ability";
  gap: 2px 10px;
  align-items: center;
  min-height: 104px;
  border: 3px solid #111;
  border-radius: 8px;
  padding: 8px;
  background: rgba(255,255,255,.82);
  box-shadow: 4px 4px 0 rgba(17,17,17,.86);
  cursor: pointer;
}

.roa-highway-character-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.roa-highway-character-card img {
  grid-area: image;
  width: 74px;
  height: 86px;
  object-fit: contain;
  align-self: center;
}

.roa-highway-character-card span {
  grid-area: label;
  color: var(--roa-highway-red);
  font-size: .78rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.roa-highway-character-card strong {
  grid-area: name;
  color: #111;
  font-family: var(--roa-typography-heading-font, Montserrat, Arial, sans-serif);
  font-size: .95rem;
  line-height: 1;
  text-transform: uppercase;
}

.roa-highway-character-card small {
  grid-area: ability;
  color: #111;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.18;
}

.roa-highway-character-card.is-selected {
  background: #fff4d6;
  border-color: var(--roa-highway-red);
  box-shadow: 4px 4px 0 #111, inset 0 0 0 3px rgba(255,23,68,.16);
}

.roa-highway-start-form label {
  display: grid;
  gap: 6px;
  color: #111;
  font-weight: 900;
}

.roa-highway-start-form input[type="text"] {
  min-height: 46px;
  border: 3px solid #111;
  border-radius: 7px;
  padding: 8px 12px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 800;
}

.roa-highway-canvas-wrap .roa-aim-game-leaderboard li em,
.roa-highway-result-panel .roa-aim-end-leaderboard li em {
  display: block;
  color: #facc15;
  font-size: .72em;
  font-style: normal;
  line-height: 1.05;
  text-transform: uppercase;
}

.roa-highway-canvas-wrap .roa-aim-game-leaderboard li em {
  display: inline-block;
  margin-left: 4px;
  border: 1px solid #111;
  border-radius: 5px;
  padding: 1px 4px;
  background: #111;
  color: #fff4d6;
  font-size: .68em;
  vertical-align: 1px;
}

.roa-highway-check {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.roa-highway-check input {
  width: 22px;
  height: 22px;
}

.roa-highway-item-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.roa-highway-item-strip span {
  border: 2px solid #111;
  border-radius: 7px;
  padding: 8px;
  background: #fff;
  text-align: center;
  font-weight: 950;
}

.roa-highway-countdown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--roa-typography-heading-font, Montserrat, Arial, sans-serif);
  font-size: clamp(5rem, 18vw, 15rem);
  font-weight: 1000;
  text-shadow: 8px 8px 0 #111, 12px 12px 0 var(--roa-highway-red);
  pointer-events: none;
  z-index: 6;
  animation: roa-highway-countdown-pop .68s cubic-bezier(.18, .9, .24, 1.2) both;
}

.roa-highway-countdown::before {
  content: "";
  position: absolute;
  width: min(52vw, 460px);
  aspect-ratio: 1;
  border: 7px solid #111;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.42) 0 2px, transparent 3px) 0 0 / 18px 18px,
    linear-gradient(135deg, #facc15, #ff1744 58%, #1287d6);
  clip-path: polygon(50% 0, 59% 21%, 82% 6%, 75% 31%, 100% 37%, 77% 50%, 96% 70%, 69% 66%, 68% 96%, 50% 73%, 32% 96%, 31% 66%, 4% 70%, 23% 50%, 0 37%, 25% 31%, 18% 6%, 41% 21%);
  box-shadow: 12px 14px 0 rgba(0,0,0,.48);
  z-index: -1;
  opacity: .92;
}

@keyframes roa-highway-countdown-pop {
  0% {
    opacity: 0;
    transform: scale(.62) rotate(-6deg);
  }
  62% {
    opacity: 1;
    transform: scale(1.08) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

.roa-highway-result-panel .roa-aim-result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.roa-highway-result-panel .roa-aim-result-stats article {
  border: 3px solid #171717;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,.76);
  box-shadow: 4px 4px 0 rgba(0,0,0,.82);
  color: #171717;
  font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
  font-weight: 900;
}

.roa-highway-result-panel .roa-aim-result-stats span {
  display: block;
  color: #171717;
  font-size: .75rem;
  text-transform: uppercase;
}

.roa-highway-result-panel .roa-aim-result-stats b {
  display: block;
  color: #ff1744;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1;
}

.roa-highway-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.roa-highway-hud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.roa-highway-hud article,
.roa-highway-results,
.roa-highway-leaderboard,
.roa-highway-prizes,
.roa-highway-season-mini,
.roa-highway-rules {
  border: 3px solid #111;
  border-radius: 8px;
  padding: 14px;
  background: var(--roa-highway-paper);
  box-shadow: 5px 5px 0 #000;
}

.roa-highway-hud span {
  display: block;
  color: #475569;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.roa-highway-hud strong {
  display: block;
  color: #111;
  font-family: var(--roa-typography-heading-font, Montserrat, Arial, sans-serif);
  font-size: 1.4rem;
}

.roa-highway-season-mini strong {
  display: block;
  color: #111;
  font-family: var(--roa-typography-heading-font, Montserrat, Arial, sans-serif);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.roa-highway-season-mini p {
  margin: 8px 0 0;
  color: #111;
  font-weight: 800;
}

.roa-highway-results dl {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.roa-highway-results dl div,
.roa-highway-leaderboard li,
.roa-highway-prizes li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(17,17,17,.2);
  padding: 7px 0;
}

.roa-highway-results dt {
  color: #475569;
  font-weight: 900;
}

.roa-highway-results dd {
  margin: 0;
  color: #111;
  font-weight: 950;
}

.roa-highway-leaderboard ol,
.roa-highway-prizes ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roa-highway-leaderboard strong,
.roa-highway-prizes strong {
  color: var(--roa-highway-red);
}

.roa-highway-prizes span,
.roa-highway-leaderboard span {
  min-width: 0;
  color: #111;
  font-weight: 900;
}

.roa-highway-rules ul {
  margin: 0;
  padding-left: 20px;
}

.roa-highway-rules li {
  margin: 7px 0;
  color: #111;
  font-weight: 800;
}

.roa-highway-error,
.roa-highway-form-message {
  color: #111;
  font-weight: 900;
}

.roa-highway-form-message.is-error,
.roa-highway-error {
  color: #b91c1c;
}

body.roa-highway-run-animating .roa-highway-game {
  contain: layout paint;
  box-shadow: none;
}

body.roa-highway-run-animating .roa-highway-canvas {
  transform: translateZ(0);
  will-change: transform;
}

@media (max-width: 980px) {
  .roa-highway-hero,
  .roa-highway-brief,
  .roa-highway-shell {
    grid-template-columns: 1fr;
  }

  .roa-highway-hero {
    min-height: 68vh;
    padding-top: 96px;
  }

  .roa-highway-canvas {
    min-height: 300px;
  }

  .roa-highway-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .roa-highway-hero h1 {
    font-size: clamp(3rem, 18vw, 5.2rem);
  }

  .roa-highway-item-strip,
  .roa-highway-hud {
    grid-template-columns: 1fr;
  }

  .roa-highway-character-select {
    grid-template-columns: 1fr;
  }

  .roa-highway-panel {
    max-height: calc(100% - 20px);
    overflow: auto;
  }
}
