@font-face {
  font-family: Barlow;
  src: url("../public/fonts/barlow-400.woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("../public/fonts/barlow-600.woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("../public/fonts/barlow-700.woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("../public/fonts/barlow-800.woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../public/fonts/barlow-condensed-600.woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../public/fonts/barlow-condensed-700.woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../public/fonts/barlow-condensed-800.woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../public/fonts/barlow-condensed-900.woff2");
  font-weight: 900;
  font-display: swap;
}
.textbutton.mobile-settings {
  display: none;
}
@media (max-width: 760px) {
  .textbutton.mobile-settings {
    display: flex;
  }
}
:root {
  font-family: "Barlow", system-ui, sans-serif;
  color: #182e36;
  background: #f0ecdf;
  font-synthesis: none;
  --ink: #142832;
  --muted: #738078;
  --cream: #f0ecdf;
  --yellow: #ffcc4d;
  --teal: #56d9bd;
  --line: #d8d8c9;
  --display: "Barlow Condensed", Impact, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible {
  outline: 3px solid #dd6d48;
  outline-offset: 4px;
}
button,
input {
  touch-action: manipulation;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
small {
  font-size: 11px;
}
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 92px 1fr;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 92px;
  background: var(--ink);
  color: #eae8d7;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 25px 10px;
  z-index: 20;
}
.mark {
  color: var(--yellow);
  font: 900 30px var(--display);
  transform: skew(-9deg);
  letter-spacing: -3px;
}
.rail nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 64px;
}
.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  color: #859899;
  height: 62px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}
.nav.active {
  background: #ffcc4d;
  color: #18303a;
}
.rail .bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rail .bottom button {
  background: none;
  color: #b1c1be;
}
.main {
  grid-column: 2;
  padding: 0 44px 40px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.topbar {
  height: 93px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font: 900 26px var(--display);
  letter-spacing: -0.5px;
}
.wordmark em {
  color: #cb7443;
  font-style: normal;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.3px;
  font-weight: 800;
  color: #738078;
}
.topbar .wordmark small {
  display: block;
  font:
    700 9px "Barlow",
    sans-serif;
  letter-spacing: 3px;
  margin-top: 3px;
  color: #738078;
}
.wallet {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e8e4d4;
  padding: 11px 15px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
}
.chip svg {
  width: 17px;
  height: 17px;
  color: #bf8a32;
}
.chip.stars svg {
  color: #8f9867;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #f6cf6d;
  display: grid;
  place-items: center;
  font: 800 15px var(--display);
  margin-left: 8px;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 28px 0 22px;
  gap: 15px;
}
.pagehead h1 {
  font: 800 35px var(--display);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: -0.7px;
}
.pagehead p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}
.season {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #6b9980;
}
.homehero {
  position: relative;
  background: #15363f;
  min-height: 430px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 32px #24333c12;
}
.homehero canvas {
  position: absolute;
  width: 75%;
  height: 100%;
  right: 0;
  object-fit: cover;
}
.homehero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #132f3d 0%,
    #132f3ddd 25%,
    #132f3d25 57%,
    transparent 85%
  );
  pointer-events: none;
}
.herocopy {
  position: relative;
  z-index: 2;
  padding: 38px;
  color: #f8efd6;
  max-width: 470px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  border: 1px solid #c5d6c646;
  padding: 7px 11px;
  border-radius: 4px;
  color: #91c7b5;
}
.badge svg {
  width: 12px;
  height: 12px;
}
.herocopy h2 {
  font: 900 clamp(54px, 6vw, 82px)/0.92 var(--display);
  letter-spacing: -1px;
  margin: 25px 0 20px;
}
.herocopy h2 em {
  color: var(--yellow);
  font-style: normal;
}
.herocopy p {
  max-width: 280px;
  color: #b6c6c2;
  font-size: 13px;
  line-height: 1.6;
}
.primary {
  background: var(--yellow);
  color: #193039;
  padding: 15px 23px;
  border-radius: 7px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 3px 0 #c9922e;
  transition: transform 0.15s;
}
.primary:hover {
  transform: translateY(-2px);
}
.primary:active {
  transform: translateY(1px);
}
.primary svg {
  width: 18px;
}
.herocopy .primary {
  margin-top: 23px;
  min-width: 212px;
}
.herometa {
  display: flex;
  gap: 22px;
  margin-top: 25px;
  color: #9daea9;
  font-size: 10px;
  align-items: center;
}
.herometa b {
  color: #f0e4c7;
  font-weight: 600;
}
.heroindex {
  position: absolute;
  bottom: 25px;
  right: 27px;
  z-index: 3;
  color: #fff0c6;
  text-align: right;
}
.heroindex strong {
  font: 800 34px var(--display);
}
.heroindex small {
  display: block;
  letter-spacing: 2px;
  font-size: 9px;
}
.stripe {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 9px;
  font-weight: 800;
  color: #f4ddaf;
  letter-spacing: 2px;
  z-index: 2;
}
.sectiontitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 29px 0 15px;
}
.sectiontitle h2 {
  font: 800 22px var(--display);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.textbutton {
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.textbutton svg {
  width: 14px;
}
.worldgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.worldcard {
  position: relative;
  overflow: hidden;
  background: #d3bd97;
  text-align: left;
  padding: 0;
  border-radius: 10px;
  min-width: 0;
  border: 2px solid transparent;
}
.worldcard.current {
  border-color: #c59139;
}
.worldcard canvas {
  width: 100%;
  display: block;
  aspect-ratio: 1.5;
  object-fit: cover;
}
.worldcard .worldinfo {
  padding: 11px 11px 10px;
  background: #e4e0cf;
  position: relative;
}
.worldcard h3 {
  font: 800 16px var(--display);
}
.worldcard p {
  font-size: 9px;
  color: #68776f;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}
.worldcard.locked canvas {
  filter: saturate(0.35);
}
.lockbadge {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #f8eed6;
  background: #132e3bc7;
  border-radius: 5px;
  padding: 5px;
  display: grid;
  place-items: center;
}
.lockbadge svg {
  width: 12px;
  height: 12px;
}
.homebottom {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f2e6;
  overflow: hidden;
}
.vehiclepanel {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  padding: 18px;
  gap: 20px;
}
.vehiclepanel canvas {
  width: 180px;
  height: 110px;
  background: #e3dec9;
  border-radius: 8px;
}
.vehiclepanel h3 {
  font: 800 24px var(--display);
  text-transform: uppercase;
}
.vehiclepanel p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 13px;
}
.mini-stats {
  display: flex;
  gap: 20px;
  font-size: 10px;
}
.mini-stats b {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 3px;
}
.rewardpanel {
  padding: 23px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.rewardicon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dedcc6;
  color: #a27731;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rewardicon svg {
  width: 35px;
  height: 35px;
}
.rewardpanel h3 {
  font: 800 22px var(--display);
  text-transform: uppercase;
}
.rewardpanel p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 14px;
}
.outline {
  border: 1px solid #c4c6b7;
  border-radius: 6px;
  background: transparent;
  padding: 9px 15px;
  font-size: 11px;
  font-weight: 800;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  font-size: 9px;
  color: #7c867b;
  letter-spacing: 0.5px;
}
.footer span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer svg {
  width: 12px;
  height: 12px;
}
.mapbanner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: var(--ink);
  color: var(--cream);
  padding: 22px 25px;
  border-radius: 12px;
  margin: 20px 0;
}
.mapbanner h2 {
  font: 800 34px var(--display);
}
.mapbanner p {
  font-size: 12px;
  color: #a3bbb4;
  margin-top: 7px;
}
.worldtabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 3px 2px 12px;
}
.worldtabs button {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 6px;
  background: #e3dfce;
  font-size: 12px;
  font-weight: 700;
}
.worldtabs button.active {
  background: var(--ink);
  color: var(--yellow);
}
.levelgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.level {
  background: #f7f3e7;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  padding: 0;
}
.level canvas {
  width: 100%;
  aspect-ratio: 1.95;
  display: block;
}
.level .info {
  padding: 17px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.level h3 {
  font: 800 21px var(--display);
}
.level small {
  color: var(--muted);
  font-size: 10px;
}
.level .rating {
  color: #bb913b;
  font-size: 16px;
  letter-spacing: 2px;
}
.level.locked {
  opacity: 0.65;
}
.garagegrid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.showcase {
  position: relative;
  background: var(--ink);
  border-radius: 14px;
  overflow: hidden;
}
.showcase canvas {
  width: 100%;
  display: block;
  aspect-ratio: 1.5;
}
.showcase .label {
  position: absolute;
  left: 25px;
  top: 22px;
  color: #eedbbc;
}
.showcase .label h2 {
  font: 800 38px var(--display);
  margin-top: 8px;
}
.customize {
  padding: 18px 22px;
  background: #e6e1cf;
}
.customrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.customrow:first-child {
  margin-top: 0;
}
.customrow > span {
  width: 62px;
  font-size: 10px;
  font-weight: 800;
}
.swatch {
  height: 25px;
  width: 25px;
  border: 2px solid #fff0;
  box-shadow: 0 0 0 1px #0002;
  border-radius: 50%;
  background: var(--swatch);
}
.swatch.active {
  border-color: var(--ink);
  outline: 2px solid #fff;
}
.wheelpick {
  background: #cdd0c1;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 10px;
}
.wheelpick.active {
  background: var(--ink);
  color: var(--yellow);
}
.upgrades {
  display: grid;
  gap: 12px;
}
.upgrade {
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.upgrade h3 {
  font: 800 22px var(--display);
  text-transform: uppercase;
}
.upgrade p {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 8px;
}
.bar {
  height: 5px;
  width: 160px;
  max-width: 100%;
  background: #e0dfce;
  border-radius: 3px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #598578;
}
.upgrade .outline {
  background: var(--yellow);
  border: none;
  white-space: nowrap;
}
.cargrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.carcard {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f3e8;
  text-align: left;
}
.carcard.active {
  border: 2px solid #ad843b;
}
.carcard canvas {
  width: 100%;
  height: 115px;
  display: block;
}
.carcard h3 {
  font: 800 22px var(--display);
}
.carcard p {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.carcard .outline {
  width: 100%;
  margin-top: 12px;
}
.worktop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.workcard {
  padding: 25px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
}
.workcard.secondary {
  background: #d8ded0;
  color: var(--ink);
}
.workcard h2 {
  font: 800 29px var(--display);
  text-transform: uppercase;
}
.workcard p {
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0 19px;
  max-width: 380px;
  opacity: 0.7;
}
.workcard .primary {
  font-size: 12px;
  padding: 12px 18px;
}
.equipment {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.equip {
  padding: 17px;
  border: 1px dashed #adb7a6;
  border-radius: 10px;
  background: #e7e5d5;
}
.equip h3 {
  font: 800 20px var(--display);
  text-transform: uppercase;
}
.equip p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.partgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.part {
  border: 1px solid var(--line);
  border-top: 3px solid var(--rarity);
  padding: 18px;
  border-radius: 10px;
  background: #f8f4e8;
}
.part h3 {
  font: 800 24px var(--display);
  text-transform: uppercase;
}
.part p {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 15px;
}
.part .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.part button {
  font-size: 10px;
  padding: 8px;
}
.part .particon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #e3e2d1;
  color: var(--rarity);
  border-radius: 10px;
  margin-bottom: 14px;
}
.empty {
  padding: 45px;
  border: 1px dashed #b5bba9;
  border-radius: 12px;
  text-align: center;
  color: #7b8578;
  font-size: 13px;
}
.crategrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.crate {
  padding: 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f2e5;
}
.crate svg {
  width: 40px;
  height: 40px;
  color: #b38a3d;
}
.crate h3 {
  font: 800 26px var(--display);
  margin: 13px 0 6px;
}
.crate p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px;
}
.spinpanel {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 30px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 15px;
}
.spinwheel {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 10px solid #f0d388;
  background: conic-gradient(
    #ffcc4d 0 60deg,
    #588f82 60deg 120deg,
    #e48460 120deg 180deg,
    #ffcc4d 180deg 240deg,
    #588f82 240deg 300deg,
    #e48460 300deg
  );
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px #ffffff15;
}
.spinwheel:after {
  content: "WW";
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--yellow);
  font: 900 23px var(--display);
}
.spinpanel h2 {
  font: 800 38px var(--display);
}
.spinpanel p {
  font-size: 13px;
  color: #adbeb6;
  margin: 12px 0 20px;
}
.spinning {
  animation: spin 1.2s ease-in-out;
}
@keyframes spin {
  to {
    transform: rotate(1080deg);
  }
}
.overlay {
  position: fixed;
  inset: 0;
  background: #0c1d2bcc;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}
.modal {
  background: var(--cream);
  border: 1px solid #eedbb3;
  border-radius: 18px;
  max-width: 500px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 24px 80px #0005;
  max-height: 90dvh;
  overflow: auto;
}
.modal h2 {
  font: 900 38px var(--display);
  text-transform: uppercase;
}
.modal p {
  color: #69786e;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
}
.modal .controlslist {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.controlslist > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.key {
  display: inline-block;
  background: #dadcca;
  border-bottom: 3px solid #b3b8a4;
  border-radius: 5px;
  min-width: 32px;
  padding: 7px;
  text-align: center;
  font-weight: 800;
  color: var(--ink);
}
.modal .actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.modal .actions button {
  flex: 1;
}
.resultscore {
  display: flex;
  justify-content: center;
  gap: 10px;
  font: 900 58px var(--display);
  color: #d89a30;
  margin: 20px 0;
}
.resultstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.resultstats b {
  font: 800 30px var(--display);
  display: block;
}
.resultstats span {
  font-size: 10px;
  color: var(--muted);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 150;
  background: #16313a;
  color: #fff1cc;
  border: 1px solid #78998c;
  padding: 13px 22px;
  border-radius: 9px;
  box-shadow: 0 10px 30px #0003;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-size: 12px;
  max-width: calc(100% - 30px);
  text-align: center;
}
#toast.show {
  opacity: 1;
}
.raceview {
  position: fixed;
  inset: 0;
  background: #142a36;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.raceview canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #f7efce;
}
.hudtop {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  gap: 18px;
}
.rankbox {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #102937cc;
  border: 1px solid #cdd9b72b;
  border-radius: 12px;
  padding: 12px 18px;
}
.rankbox strong {
  font: 900 45px/0.9 var(--display);
  color: var(--yellow);
}
.rankbox small {
  font-size: 10px;
  color: #afc7bd;
  display: block;
  margin-top: 5px;
}
.racelevel {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
}
.racetime {
  font: 800 27px var(--display);
  margin-top: 5px;
}
.progresshud {
  flex: 1;
  max-width: 400px;
  padding-top: 8px;
}
.progresshud label {
  font-size: 9px;
  letter-spacing: 2px;
  display: flex;
  justify-content: space-between;
  color: #fff0d0;
}
.progresshud .bar {
  width: 100%;
  background: #142d40a0;
  margin-top: 9px;
  height: 7px;
}
.progresshud .bar i {
  background: var(--yellow);
}
.hudpause {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #102937cc;
  color: #fff0c7;
}
.hudbottom {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: max(22px, env(safe-area-inset-left));
  right: max(22px, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
}
.pedals {
  display: flex;
  gap: 12px;
  pointer-events: auto;
  align-items: end;
}
.pedal {
  width: 75px;
  height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #163241c9;
  color: #f4e6bf;
  border: 1px solid #d2e3c74d;
  border-radius: 14px;
  gap: 7px;
  touch-action: none;
  user-select: none;
}
.pedal span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}
.pedal svg {
  width: 25px;
  height: 25px;
}
.pedal.gas {
  background: #ffcb4d;
  color: #16313b;
  border: 1px solid #ffecb2;
  width: 92px;
  height: 92px;
}
.pedal.boost {
  background: #397e79d9;
  color: #abffe0;
}
.pedal.pressed {
  transform: translateY(3px);
  filter: brightness(1.3);
}
.meters {
  width: 165px;
  align-self: end;
  padding: 12px 15px;
  background: #102937bb;
  border-radius: 9px;
  margin-bottom: 4px;
}
.meters p {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  color: #c4d5c5;
}
.meters .bar {
  height: 5px;
  width: 100%;
  margin: 6px 0 12px;
  background: #63828045;
}
.meters .bar:last-child {
  margin-bottom: 0;
}
.meters .health {
  background: #ef9276;
}
.meters .nitro {
  background: #68e1c1;
}
.racereminder {
  position: absolute;
  bottom: 124px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 1px;
  background: #152f4080;
  padding: 7px 12px;
  border-radius: 5px;
  white-space: nowrap;
}
.full {
  width: 100%;
}
.savewarning {
  background: #f6d28c;
  padding: 10px;
  border-radius: 6px;
  font-size: 11px;
  margin-top: 14px;
}
.settingsrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.danger {
  color: #b45640;
}
.smallcopy {
  font-size: 11px !important;
}
.hidden {
  display: none !important;
}
@media (min-width: 1500px) {
  .homehero {
    min-height: 480px;
  }
  .herocopy {
    padding: 48px;
  }
  .worldcard canvas {
    aspect-ratio: 1.65;
  }
}
@media (max-width: 1100px) {
  .main {
    padding: 0 25px 30px;
  }
  .homehero {
    min-height: 400px;
  }
  .herocopy {
    padding: 30px;
  }
  .herocopy h2 {
    font-size: 67px;
  }
  .worldgrid {
    grid-template-columns: repeat(3, 1fr);
  }
  .worldcard canvas {
    aspect-ratio: 2.1;
  }
  .homebottom {
    grid-template-columns: 1fr 1fr;
  }
  .vehiclepanel {
    grid-template-columns: 110px 1fr;
    padding: 13px;
    gap: 12px;
  }
  .vehiclepanel canvas {
    width: 110px;
  }
  .mini-stats {
    gap: 12px;
  }
  .rewardpanel {
    padding: 18px;
    gap: 12px;
  }
  .rewardicon {
    width: 45px;
    height: 45px;
  }
  .levelgrid,
  .cargrid,
  .partgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    padding: 5px 10px max(5px, env(safe-area-inset-bottom));
    border-radius: 17px 17px 0 0;
  }
  .rail .mark,
  .rail .bottom {
    display: none;
  }
  .rail nav {
    margin: 0;
    flex-direction: row;
    gap: 6px;
    justify-content: space-around;
  }
  .nav {
    height: 54px;
    flex: 1;
    gap: 4px;
    font-size: 9px;
    border-radius: 9px;
  }
  .nav svg {
    height: 20px;
  }
  .main {
    padding: 0 18px 94px;
  }
  .topbar {
    height: 75px;
  }
  .topbar .wordmark {
    font-size: 23px;
  }
  .chip {
    padding: 8px 10px;
    font-size: 12px;
  }
  .avatar {
    display: none;
  }
  .wallet {
    gap: 6px;
  }
  .pagehead {
    margin: 23px 0 18px;
  }
  .pagehead h1 {
    font-size: 30px;
  }
  .season {
    display: none;
  }
  .homehero {
    min-height: 430px;
  }
  .homehero canvas {
    width: 100%;
    height: 60%;
    bottom: 0;
  }
  .homehero:after {
    background: linear-gradient(
      180deg,
      #132f3d 0%,
      #132f3de0 33%,
      #132f3d00 69%
    );
  }
  .herocopy {
    padding: 26px;
    max-width: none;
  }
  .herocopy h2 {
    font-size: 57px;
    margin: 18px 0 12px;
  }
  .herocopy p {
    font-size: 12px;
    max-width: 230px;
  }
  .herocopy .primary {
    margin-top: 18px;
    min-width: 175px;
    padding: 12px 18px;
  }
  .herometa {
    margin-top: 16px;
    gap: 16px;
    font-size: 9px;
  }
  .heroindex {
    bottom: 19px;
    right: 19px;
  }
  .stripe {
    display: none;
  }
  .worldgrid {
    gap: 9px;
  }
  .worldcard canvas {
    aspect-ratio: 1.4;
  }
  .worldcard h3 {
    font-size: 14px;
  }
  .worldcard .worldinfo {
    padding: 9px 7px;
  }
  .worldcard p {
    font-size: 8px;
  }
  .homebottom {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .vehiclepanel {
    grid-template-columns: 130px 1fr;
    padding: 15px;
  }
  .vehiclepanel canvas {
    width: 130px;
  }
  .rewardpanel {
    padding: 18px;
  }
  .footer {
    font-size: 8px;
  }
  .footer span:last-child {
    display: none;
  }
  .garagegrid {
    grid-template-columns: 1fr;
  }
  .showcase canvas {
    aspect-ratio: 1.65;
  }
  .upgrades {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .upgrade {
    display: block;
    padding: 14px;
  }
  .upgrade h3 {
    font-size: 20px;
  }
  .upgrade .outline {
    width: 100%;
    margin-top: 13px;
  }
  .levelgrid,
  .cargrid,
  .partgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .carcard canvas {
    height: 100px;
  }
  .carcard h3 {
    font-size: 20px;
  }
  .carcard {
    padding: 12px;
  }
  .worktop {
    grid-template-columns: 1fr;
  }
  .workcard {
    padding: 23px;
  }
  .equipment {
    grid-template-columns: repeat(2, 1fr);
  }
  .crategrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .mapbanner {
    padding: 18px;
  }
  .mapbanner h2 {
    font-size: 29px;
  }
  .mapbanner p {
    font-size: 10px;
  }
  .spinpanel {
    gap: 20px;
    padding: 23px;
  }
  .spinwheel {
    width: 105px;
    height: 105px;
    border-width: 6px;
  }
  .spinwheel:after {
    font-size: 17px;
  }
  .spinpanel h2 {
    font-size: 28px;
  }
  .spinpanel p {
    font-size: 11px;
  }
  .spinpanel .primary {
    font-size: 11px;
    padding: 11px 13px;
  }
  .modal {
    padding: 25px;
  }
  .modal h2 {
    font-size: 34px;
  }
  .hudtop {
    padding-top: max(12px, env(safe-area-inset-top));
    gap: 10px;
  }
  .rankbox {
    padding: 10px 12px;
    gap: 12px;
  }
  .rankbox strong {
    font-size: 36px;
  }
  .racetime {
    font-size: 22px;
  }
  .racelevel {
    font-size: 9px;
  }
  .progresshud {
    max-width: 200px;
  }
  .hudbottom {
    bottom: max(14px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    gap: 7px;
  }
  .pedals {
    gap: 7px;
  }
  .pedal {
    width: 56px;
    height: 60px;
    border-radius: 10px;
  }
  .pedal.gas {
    width: 65px;
    height: 74px;
  }
  .pedal span {
    font-size: 8px;
  }
  .pedal svg {
    width: 21px;
  }
  .meters {
    width: 118px;
    padding: 10px;
  }
  .racereminder {
    bottom: 102px;
    font-size: 8px;
  }
  .worldtabs {
    margin-left: -3px;
  }
}
@media (max-width: 430px) {
  .chip.stars {
    padding: 8px;
  }
  .chip.stars svg {
    width: 14px;
  }
  .topbar .wordmark small {
    font-size: 8px;
  }
  .homehero {
    min-height: 420px;
  }
  .herocopy {
    padding: 22px;
  }
  .herocopy h2 {
    font-size: 53px;
  }
  .meters {
    position: absolute;
    bottom: 82px;
    left: 0;
    width: 126px;
  }
  .progresshud {
    max-width: 115px;
  }
  .progresshud label {
    font-size: 8px;
    letter-spacing: 0;
  }
  .hudtop {
    padding-left: 12px;
    padding-right: 12px;
  }
  .rankbox {
    gap: 10px;
  }
  .hudpause {
    width: 36px;
    height: 36px;
  }
  .pedal {
    width: 49px;
  }
  .pedal.gas {
    width: 61px;
  }
  .hudbottom {
    gap: 5px;
  }
  .racereminder {
    bottom: 181px;
    left: auto;
    right: 14px;
    transform: none;
    max-width: 170px;
    white-space: normal;
    text-align: right;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hudtop {
    padding-top: 10px;
  }
  .hudbottom {
    bottom: 12px;
  }
  .pedal {
    width: 55px;
    height: 54px;
  }
  .pedal.gas {
    width: 67px;
    height: 66px;
  }
  .meters {
    position: static;
    width: 140px;
  }
  .racereminder {
    bottom: 90px;
  }
  .rankbox {
    padding: 8px 12px;
  }
  .rankbox strong {
    font-size: 33px;
  }
  .modal {
    max-width: 600px;
    padding: 20px;
  }
  .modal h2 {
    font-size: 30px;
  }
  .resultscore {
    font-size: 36px;
    margin: 10px;
  }
  .resultstats {
    padding: 10px;
  }
  .modal .actions {
    margin-top: 15px;
  }
}
.car-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 18px;padding:12px;border:1px solid #7694a566;border-radius:8px;background:#061723b0}
.car-stat-grid div{display:flex;flex-direction:column;gap:5px}.car-stat-grid small{font-size:12px;color:#b5d0df;font-weight:700;letter-spacing:.04em}.car-stat-grid strong{font-size:23px;color:#ffe39b}
.upgrade p{font-size:16px!important;color:#d1e5ef!important;line-height:1.6}.upgrade .articon{width:76px;height:76px}.upgrade .bar{height:12px;margin-top:10px}
.acquired-art{width:min(340px,90%);height:210px;object-fit:contain;filter:drop-shadow(0 12px 20px #0008);animation:equipment-arrive .6s cubic-bezier(.18,.8,.3,1.2)}
.equipment-celebration h3{font-size:30px;color:#ffe49b}.acquired-benefit{font-size:19px!important;color:#bbf2f8!important}.equipment-celebration button{margin:8px auto;display:block;width:min(100%,340px)}
@keyframes equipment-arrive{from{transform:scale(.4) rotate(-9deg);opacity:0}to{transform:scale(1);opacity:1}}
.hudtop .progresshud{flex:1;width:auto;max-width:740px;margin-inline:28px}.progresshud .race-progress{height:34px;overflow:visible;position:relative;margin-top:20px}.race-progress>i{border-radius:8px}.race-marker{position:absolute;top:calc(-16px + var(--lane)*14px);width:46px;height:30px;transform:translateX(-50%);transition:top .25s;filter:drop-shadow(0 2px 2px #000)}.race-marker img{width:46px;height:30px;object-fit:contain}.race-marker b{position:absolute;right:0;top:-9px;background:#172f43;border:1px solid #b7d5e3;border-radius:50%;width:19px;height:19px;text-align:center;font:700 12px/17px sans-serif;color:white}.race-marker.you b{background:#f4bd40;color:#13202b;border-color:#fff1b1}.race-marker.you{filter:drop-shadow(0 0 4px #ffe4a4)}
@media(max-width:700px){.hudtop .progresshud{margin-inline:12px}.race-marker,.race-marker img{width:29px;height:24px}.race-marker b{width:15px;height:15px;font-size:10px;line-height:13px}.progresshud .race-progress{height:28px}.car-stat-grid strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){.acquired-art{animation:none}}

:lang(ja),:lang(ko),:lang(hi),:lang(zh){font-family:system-ui,"Segoe UI","Nirmala UI","Yu Gothic","Microsoft YaHei",sans-serif;letter-spacing:normal} :lang(ja) button,:lang(ko) button,:lang(hi) button,:lang(zh) button{font-family:inherit;line-height:1.5;letter-spacing:normal;white-space:normal} .cloud-settings{padding:18px;margin-block:20px}.cloud-choices{display:grid;gap:16px}.cloud-choices .panel{padding:18px}.shopgrid .part p,.partgrid .part p{font-size:16px;line-height:1.5}

@media(max-width:560px){.upgrades{grid-template-columns:1fr!important}.cargrid{grid-template-columns:1fr!important}.upgrade{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.upgrade .outline{min-width:125px;max-width:160px}.upgrade h3{font-size:24px}.upgrade .articon{width:64px;height:64px}.carcard canvas{height:210px!important}.partgrid{grid-template-columns:1fr!important}.equipment-celebration h3{font-size:25px}}
.brand-intro{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(ellipse at 50% 44%,#173445 0%,#08131f 54%,#03070c 100%);isolation:isolate}
.brand-logo{position:relative;z-index:3;width:min(84vw,1080px);height:auto;object-fit:contain;filter:drop-shadow(0 20px 18px #000b);animation:brand-impact 1.6s cubic-bezier(.16,.78,.22,1) both}
.brand-glow{position:absolute;width:60vmin;height:60vmin;border-radius:50%;background:radial-gradient(circle,#20c8ec45,transparent 68%);transform:scale(1.6);animation:brand-flash 1.8s ease-out both}
.brand-road{position:absolute;inset:62% -30% -40%;background:repeating-linear-gradient(90deg,transparent 0 79px,#46bdd012 80px 81px),repeating-linear-gradient(0deg,transparent 0 79px,#46bdd012 80px 81px);transform:perspective(300px) rotateX(60deg);mask-image:linear-gradient(transparent,#000);opacity:.65}
.brand-streak{position:absolute;z-index:2;height:3px;width:70vw;left:-75vw;top:49%;background:linear-gradient(90deg,transparent,#31d8ff 80%,#fff);box-shadow:0 0 20px #31d8ff;animation:brand-sweep .85s .2s ease-out both}
.brand-streak-two{top:61%;height:2px;background:linear-gradient(90deg,transparent,#ffa522 80%,#fff);box-shadow:0 0 20px #ffa522;animation-delay:.65s}
.brand-loading{position:relative;z-index:4;min-width:210px;margin-top:28px;color:#aec5d4;text-align:center;font:600 13px/1.5 Barlow,Arial,sans-serif;letter-spacing:.15em;text-transform:uppercase;animation:brand-appear .4s 1.2s both}
.brand-load-track{margin-top:14px;height:3px;width:210px;overflow:hidden;background:#203645}.brand-load-track i{display:block;width:45%;height:100%;background:linear-gradient(90deg,#fa9b2e,#ffe5a7);animation:brand-loading 1.1s ease-in-out infinite}
.brand-skip{position:absolute;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:5;border:1px solid #486071!important;border-radius:8px!important;background:#101e2a!important;box-shadow:none!important;padding:12px 18px!important;color:#c4d3dc!important;font:600 14px Barlow,Arial,sans-serif!important;cursor:pointer}
.brand-skip:focus-visible{outline:3px solid #39d4fa;outline-offset:4px}.brand-skip span{margin-left:10px;color:#ffc05e}
@keyframes brand-impact{0%{opacity:0;transform:scale(1.5) translateY(-25px);filter:blur(12px)}25%{opacity:1;transform:scale(.94) translateY(4px);filter:blur(0)}39%{transform:scale(1.035) translateY(-2px)}52%{transform:scale(1)}65%{transform:scale(1.016)}100%{transform:scale(1)}}
@keyframes brand-flash{0%{opacity:0;transform:scale(.2)}35%{opacity:1;transform:scale(2.1)}100%{opacity:.7;transform:scale(1.6)}}
@keyframes brand-sweep{0%{transform:translateX(0);opacity:0}25%{opacity:1}100%{transform:translateX(220vw);opacity:0}}
@keyframes brand-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes brand-loading{from{transform:translateX(-110%)}to{transform:translateX(330%)}}
.brand-still *{animation:none!important}.brand-still .brand-streak{display:none}
@media(prefers-reduced-motion:reduce){.brand-intro *{animation:none!important}.brand-streak{display:none}}
