/* Kivo Pedidos — interface responsiva, sem fontes ou assets externos. */
:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #173557;
  background: #f3f7fc;
  font-synthesis: none;
  --navy: #0b2346;
  --blue: #176ad7;
  --gold: #ffcc75;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  padding-top: 80px;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ed9b24;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  border: 0;
}
a {
  color: inherit;
}
.container {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 80px;
  display: grid;
  place-items: center;
  background: var(--navy);
  border-bottom: 1px solid #ffffff16;
}
.brand {
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.brand strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: white;
}
.brand span {
  font-size: 8px;
  letter-spacing: 0.19em;
  font-weight: 600;
  color: #b1ccec;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(ellipse at 75% 60%, #1d5ea5 0, transparent 50%), #0d2c57;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 28px;
  min-height: 440px;
  padding-block: 48px 65px;
}
.hero-copy {
  text-align: center;
}
.hero h1 {
  font-size: clamp(35px, 4.4vw, 57px);
  font-weight: 780;
  letter-spacing: -0.047em;
  line-height: 1.14;
}
.hero h1 span {
  color: var(--gold);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  padding: 17px 27px;
  border-radius: 12px;
  background: var(--gold);
  box-shadow: 0 5px 0 #be822c;
  color: #172f50;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.15s;
}
.hero-cta:hover {
  transform: translateY(-2px);
}
.hero-cta:active {
  transform: translateY(3px);
}
.hero-cta span {
  font-size: 12px;
}
.arcade-art {
  height: 315px;
  width: 100%;
  max-width: 420px;
  margin: auto;
  position: relative;
  isolation: isolate;
}
.gamepad {
  position: absolute;
  width: 88%;
  left: 6%;
  top: 11%;
  transform: rotate(-10deg);
  filter: drop-shadow(0 20px 15px #031c4166);
  animation: pad-float 5s ease-in-out infinite;
  z-index: 2;
}
.orbit {
  position: absolute;
  inset: 15px;
  border: 1px solid #93bffe35;
  border-radius: 50%;
  transform: rotate(-23deg);
  background: #3786dc12;
}
.orbit-two {
  inset: 45px 0;
  transform: rotate(25deg);
  border-style: dashed;
}
.floating-score {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #ffd779;
  transform: rotate(10deg);
  z-index: 3;
}
.floating-score small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: #fff;
  margin-top: 3px;
  text-align: center;
}
.floating-race {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 145px;
  border: 3px solid white;
  border-radius: 12px;
  background: white;
  overflow: hidden;
  transform: rotate(-8deg);
  box-shadow: 0 10px 22px #061b4759;
  z-index: 3;
  animation: pad-float 6s ease-in-out infinite reverse;
}
.floating-race canvas {
  display: block;
  width: 100%;
  height: 79px;
}
.floating-race > span {
  display: block;
  color: #194074;
  font-size: 7px;
  font-weight: 800;
  text-align: center;
  padding: 6px;
}
.floating-star {
  position: absolute;
  left: 4%;
  top: 10px;
  font-size: 34px;
  color: #ffcc69;
  animation: star-turn 12s linear infinite;
}
.hero-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-confetti i {
  position: absolute;
  left: 6%;
  top: 24%;
  width: 7px;
  height: 17px;
  background: #7cc4ff;
  border-radius: 2px;
  transform: rotate(25deg);
  opacity: 0.4;
  animation: confetti-float 6s ease-in-out infinite;
}
.hero-confetti i:nth-child(2) {
  left: 44%;
  top: 12%;
  background: #ffc95e;
  animation-delay: -2s;
}
.hero-confetti i:nth-child(3) {
  left: 93%;
  top: 72%;
  background: #6fe3bc;
  animation-delay: -4s;
}
.hero-confetti i:nth-child(4) {
  left: 50%;
  top: 80%;
  background: #ffe2a0;
  animation-delay: -1s;
}
.hero-confetti i:nth-child(5) {
  left: 84%;
  top: 11%;
  background: #b2d9fa;
}
.hero-confetti i:nth-child(6) {
  left: 20%;
  top: 87%;
  width: 7px;
  height: 7px;
  background: #ffc95e;
}
@keyframes pad-float {
  50% {
    translate: 0 -9px;
    rotate: 2deg;
  }
}
@keyframes confetti-float {
  50% {
    translate: 0 -15px;
    rotate: 30deg;
  }
}
@keyframes star-turn {
  to {
    rotate: 360deg;
  }
}
.selection {
  padding-block: 44px 54px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.section-heading h2 {
  font-size: 30px;
  letter-spacing: -0.04em;
}
.section-heading > span {
  font-size: 32px;
  color: #3577b7;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.game-card {
  --accent: #197aca;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  border: 1px solid #d9e4f0;
  box-shadow: 0 5px 0 #e0e9f4;
  transition: transform 0.2s;
}
.game-card:hover {
  transform: translateY(-4px);
}
.football-card {
  --accent: #168763;
}
.racing-card {
  --accent: #cb5e23;
}
.runner-card {
  --accent: #7055bb;
}
.card-cover {
  display: block;
  width: 100%;
  padding: 0;
  position: relative;
  aspect-ratio: 1.95;
  background: #123d60;
  overflow: hidden;
}
.preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #092343db;
  color: white;
  border: 1px solid #ffffff40;
  letter-spacing: 0.07em;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 750;
}
.cover-play {
  position: absolute;
  right: 17px;
  bottom: 17px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffffed;
  color: #19426d;
  font-size: 14px;
  padding-left: 2px;
}
.card-body {
  padding: 22px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-heading h3 {
  font-size: 25px;
  letter-spacing: -0.04em;
}
.card-heading > span {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.09em;
  color: var(--accent);
}
.card-body p {
  font-size: 13px;
  color: #61758d;
  line-height: 1.5;
  margin-top: 9px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #eaf0f6;
}
.card-record {
  font-size: 11px;
  color: #5b728b;
}
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 44px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 12px;
  border-radius: 9px;
  padding: 12px 17px;
  box-shadow: 0 3px 0 #102a4226;
}
.play-button:active {
  transform: translateY(2px);
}
.eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #466485;
}
.promo {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 45px;
  padding: 40px;
  background: #e7eff9;
  border: 1px solid #d6e3f2;
  border-radius: 22px;
  margin-bottom: 48px;
}
.promo h2 {
  font-size: 43px;
  line-height: 1.13;
  letter-spacing: -0.05em;
  margin-top: 15px;
}
.promo h2 span {
  color: #2472c5;
}
.promo-content > p {
  font-size: 14px;
  line-height: 1.7;
  color: #5d7592;
  max-width: 380px;
  margin-top: 18px;
}
.benefits {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 11px;
  font-size: 12px;
  font-weight: 600;
}
.benefits li:before {
  content: "✓";
  margin-right: 10px;
  color: #188d70;
}
.trial-card {
  background: var(--navy);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  color: white;
}
.trial-label {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #b5d4f7;
  font-weight: 750;
}
.trial-number {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 103px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.07em;
  color: var(--gold);
  margin: 17px 0;
}
.trial-number > span {
  font-size: 29px;
  text-align: left;
  letter-spacing: -0.035em;
  color: white;
  line-height: 1.05;
}
.trial-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #c9dcf3;
  margin-bottom: 22px;
}
.cta {
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 16px;
  background: #20bd78;
  color: #062f29;
  border-radius: 9px;
  font-weight: 800;
  font-size: 14px;
}
.cta:hover {
  background: #39d490;
}
.whatsapp-icon {
  height: 22px;
  width: 22px;
  flex-shrink: 0;
}
.trial-footnote {
  display: block;
  font-size: 10px;
  color: #a7bfdc;
  margin-top: 13px;
}
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background: #e8eff8;
  padding: 30px 24px;
}
footer .brand strong {
  color: #173b68;
  font-size: 17px;
}
footer .brand span {
  color: #5f7996;
  font-size: 7px;
}
footer p {
  font-size: 10px;
  color: #657e97;
  text-align: center;
}
/* A área de jogo ocupa o viewport. Só controles essenciais ficam sobre o campo. */
body.playing,
body.modal-open {
  overflow: hidden;
}
body.playing {
  padding: 0;
}
body.playing > .site-header,
body.playing > main,
body.playing > footer {
  display: none;
}
.game-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #0b2346;
  z-index: 50;
  color: white;
  overscroll-behavior: none;
}
.game-screen:fullscreen {
  width: 100%;
  height: 100%;
}
#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
.game-toolbar {
  position: absolute;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  height: calc(68px + env(safe-area-inset-top, 0px));
  padding: calc(10px + env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px)) 10px
    max(16px, env(safe-area-inset-left, 0px));
  background: var(--navy);
  border-bottom: 1px solid #ffffff16;
  z-index: 10;
}
.game-toolbar .brand strong {
  font-size: 16px;
}
.game-toolbar .brand span {
  font-size: 6px;
}
.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #ffffff12;
  border: 1px solid #ffffff17;
  color: white;
  font-size: 22px;
  display: grid;
  place-items: center;
}
.icon-button:hover {
  background: #ffffff22;
}
.hud,
.race-hud {
  position: absolute;
  top: calc(81px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), 700px);
  pointer-events: none;
}
.hud-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 12px;
  background: #0b2346d9;
  border: 1px solid #ffffff22;
  border-radius: 11px;
}
.hud-stat strong {
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hud-stat span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
#lives {
  font-size: 16px;
  letter-spacing: 4px;
  color: #ffdb8a;
  text-shadow: 0 1px 5px #102644;
}
.race-hud {
  background: #0b2346df;
  border: 1px solid #ffffff25;
  border-radius: 12px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 20px;
}
.race-hud > strong {
  font-size: 22px;
  grid-row: span 2;
  align-self: center;
  white-space: nowrap;
}
.race-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.race-progress > span {
  font-size: 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.race-progress progress {
  appearance: none;
  width: 100%;
  height: 4px;
  border: 0;
  background: #375270;
  border-radius: 5px;
  overflow: hidden;
}
.race-progress progress::-webkit-progress-bar {
  background: #375270;
}
.race-progress progress::-webkit-progress-value {
  background: #ffcc75;
}
.race-progress progress::-moz-progress-bar {
  background: #ffcc75;
}
.integrity-track {
  height: 3px;
  background: #375270;
  overflow: hidden;
  border-radius: 4px;
  width: 100%;
}
.integrity-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: #67dea8;
  transform-origin: left;
}
.integrity-track.is-low i {
  background: #ff845e;
}
.race-controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(calc(100% - 36px), 580px);
  pointer-events: none;
}
.steer-button {
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  width: 84px;
  height: 67px;
  border-radius: 17px;
  border: 1px solid #ffffff60;
  background: #0b2c50e8;
  box-shadow: 0 4px 0 #0318328c;
  color: white;
  font-size: 25px;
}
.steer-button.is-held {
  background: var(--gold);
  color: #112b4b;
  transform: translateY(3px);
  box-shadow: 0 1px 0 #986119;
}
.speedometer {
  display: flex;
  align-items: baseline;
  gap: 5px;
  text-shadow: 0 2px 5px #03182e;
}
.speedometer strong {
  font-size: 31px;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.speedometer small {
  font-size: 9px;
  color: #ffde85;
  font-weight: 750;
}
.feedback {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 20%;
  text-align: center;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.025em;
  color: #ffe191;
  text-shadow: 0 2px 6px #032941;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition:
    opacity 0.12s,
    transform 0.12s;
}
.feedback.show {
  opacity: 1;
  transform: none;
}
.is-racing .feedback {
  top: 27%;
  font-size: 19px;
}
.overlay {
  position: absolute;
  inset: 68px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background: #061a3c80;
  z-index: 8;
}
.overlay-card {
  width: 100%;
  max-width: 380px;
  max-height: calc(
    100dvh - 118px - env(safe-area-inset-top, 0px) -
      env(safe-area-inset-bottom, 0px)
  );
  overflow-y: auto;
  border-radius: 21px;
  padding: 30px 25px 19px;
  background: #f9fcff;
  color: #15355b;
  text-align: center;
  box-shadow: 0 18px 50px #00153145;
}
.overlay-card:before {
  content: "✦";
  display: block;
  width: 49px;
  height: 49px;
  line-height: 49px;
  border-radius: 16px;
  background: #e5effb;
  color: #2773bf;
  margin: 0 auto 16px;
  font-size: 28px;
}
.overlay-card h2 {
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin: 13px 0;
}
.overlay-card > p {
  font-size: 14px;
  line-height: 1.6;
  color: #637991;
  margin-bottom: 22px;
  white-space: pre-line;
}
.primary {
  width: 100%;
  min-height: 50px;
  padding: 15px 12px;
  border-radius: 10px;
  color: white;
  background: #186bd1;
  font-weight: 750;
  font-size: 15px;
  box-shadow: 0 3px 0 #0d4a94;
}
.primary:hover {
  background: #207ce8;
}
.secondary {
  display: block;
  width: 100%;
  min-height: 44px;
  background: transparent;
  color: #566f8a;
  font-size: 13px;
  margin-top: 7px;
}
.small-button {
  min-height: 44px;
  background: transparent;
  color: #496a90;
  font-size: 11px;
  margin: 7px auto 0;
  padding: 8px 16px;
}
.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 19px 0;
  margin-bottom: 23px;
  border-top: 1px solid #dfe8f2;
  border-bottom: 1px solid #dfe8f2;
}
.result-stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.result-stats span {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #617c99;
}
.result-stats strong {
  font-size: 33px;
  letter-spacing: -0.04em;
}
.race-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  background: #e9f1fb;
  border-radius: 12px;
  padding: 19px;
}
.race-result strong {
  font-size: 26px;
  letter-spacing: -0.04em;
}
.race-result span {
  font-size: 14px;
  color: #5c7390;
}
.game-screen:not(.is-running) .hud,
.game-screen:not(.is-running) .race-hud {
  visibility: hidden;
}
/* Formulário nativo: foco e navegação por teclado preservados. */
dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100% - 28px));
  max-height: calc(100dvh - 36px);
  border: 0;
  border-radius: 20px;
  padding: 0;
  color: #173557;
  background: #fff;
  box-shadow: 0 24px 70px #071d4850;
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #081e45ba;
}
.dialog-body {
  padding: 36px 29px 27px;
}
.dialog-close {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  color: #60768e;
  background: transparent;
}
.dialog-body h2 {
  font-size: 34px;
  letter-spacing: -0.05em;
  line-height: 1.08;
  margin: 16px 0;
}
.dialog-body > p {
  font-size: 13px;
  line-height: 1.6;
  color: #627a96;
  margin-bottom: 21px;
}
form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 17px 0 8px;
}
input,
select {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd9e9;
  background: #f7faff;
  border-radius: 8px;
  padding: 12px;
  color: #193a61;
  font-size: 16px;
}
form .cta {
  margin-top: 23px;
}
.form-note {
  display: block;
  text-align: center;
  font-size: 10px;
  color: #607997;
  margin-top: 13px;
}
#game-error {
  padding: 15px;
  border: 1px solid #dd8e49;
  border-radius: 10px;
  background: #fff4db;
  font-size: 14px;
  margin-bottom: 20px;
}
@media (max-width: 650px) {
  body {
    padding-top: 70px;
  }
  .site-header {
    height: 70px;
  }
  .brand strong {
    font-size: 20px;
  }
  .brand span {
    font-size: 7px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 29px;
    padding-block: 32px 36px;
    min-height: 0;
  }
  .hero h1 {
    font-size: clamp(31px, 8.3vw, 42px);
  }
  .hero-cta {
    margin-top: 23px;
    padding: 15px 25px;
  }
  .arcade-art {
    height: 224px;
    max-width: 310px;
  }
  .gamepad {
    width: 82%;
    left: 9%;
    top: 5%;
  }
  .floating-race {
    width: 113px;
  }
  .floating-race canvas {
    height: 61px;
  }
  .floating-race > span {
    font-size: 6px;
  }
  .floating-score {
    font-size: 27px;
  }
  .floating-score small {
    font-size: 6px;
  }
  .floating-star {
    font-size: 28px;
  }
  .selection {
    padding-block: 30px 36px;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 26px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .card-body {
    padding: 20px;
  }
  .card-heading h3 {
    font-size: 25px;
  }
  .promo {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 27px 22px;
    margin-bottom: 30px;
  }
  .promo h2 {
    font-size: 37px;
  }
  .promo-content > p {
    font-size: 13px;
  }
  .trial-card {
    padding: 26px 20px;
  }
  .trial-number {
    font-size: 97px;
  }
  .race-progress {
    gap: 8px;
  }
  .race-progress > span {
    font-size: 9px;
  }
  .race-hud {
    gap: 5px 13px;
  }
  .race-hud > strong {
    font-size: 20px;
  }
  .overlay-card {
    padding: 26px 22px 15px;
  }
  .overlay-card h2 {
    font-size: 29px;
  }
  .overlay-card > p {
    font-size: 13px;
  }
}
@media (max-width: 350px) {
  .card-heading h3 {
    font-size: 23px;
  }
  .card-body {
    padding: 17px;
  }
  .card-record {
    font-size: 10px;
  }
  .play-button {
    gap: 12px;
    padding-inline: 13px;
  }
  .card-heading > span {
    font-size: 7px;
  }
  .game-toolbar {
    padding-inline: 10px;
  }
  .game-toolbar .brand strong {
    font-size: 14px;
  }
  .game-toolbar .brand span {
    font-size: 5.5px;
  }
  .dialog-body {
    padding: 32px 20px 22px;
  }
  .race-progress {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .race-progress > span {
    text-align: right;
  }
  .hero h1 {
    font-size: 31px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .game-toolbar {
    height: 55px;
    padding-block: 5px;
  }
  .game-toolbar .brand strong {
    font-size: 14px;
  }
  .game-toolbar .brand span {
    font-size: 6px;
  }
  .hud,
  .race-hud {
    top: 65px;
    width: min(60%, 530px);
  }
  .race-hud {
    padding: 7px 12px;
  }
  .race-hud > strong {
    font-size: 18px;
  }
  .hud-stat strong {
    font-size: 20px;
  }
  .overlay {
    inset: 55px 0 0;
    padding: 10px;
  }
  .overlay-card {
    max-width: 440px;
    max-height: calc(100dvh - 75px);
    padding: 17px 23px 10px;
  }
  .overlay-card:before {
    display: none;
  }
  .overlay-card h2 {
    font-size: 25px;
    margin: 9px 0;
  }
  .overlay-card > p {
    margin-bottom: 13px;
    font-size: 12px;
  }
  .result-stats {
    padding: 9px 0;
    margin-bottom: 14px;
  }
  .result-stats strong {
    font-size: 25px;
  }
  .race-result {
    padding: 10px;
    margin-bottom: 14px;
  }
  .race-controls {
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    width: calc(100% - 40px);
    max-width: none;
  }
  .steer-button {
    width: 80px;
    height: 57px;
  }
  .speedometer strong {
    font-size: 25px;
  }
  .is-racing .feedback {
    top: 33%;
    font-size: 18px;
  }
  .small-button {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .gamepad,
  .floating-race,
  .floating-star,
  .hero-confetti i {
    animation: none;
  }
  .game-card,
  .hero-cta,
  .feedback {
    transition: none;
  }
}
