.wheel-emblem {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
}
.wheel-emblem i {
  width: 88%;
  height: 88%;
  border: 1.5px solid #dce9ff;
  border-radius: 50%;
  background:
    radial-gradient(circle, #dcecff 0 12%, #405c87 15% 21%, transparent 24%),
    repeating-conic-gradient(
      #eaf8ff 0deg 1.5deg,
      transparent 1.5deg 44deg,
      #eaf8ff 44deg 45deg
    ),
    conic-gradient(
      #a4f4db 0 45deg,
      #a6aaf7 45deg 90deg,
      #fac7b3 90deg 135deg,
      #e5b7f6 135deg 180deg,
      #b2d7fa 180deg 225deg,
      #fae2a1 225deg 270deg,
      #fac0d6 270deg 315deg,
      #83eada 315deg
    );
  box-shadow: 0 1px 0 1px #586e99;
  animation: emblem-rotate 4.8s linear infinite;
}
.wheel-emblem::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 4px);
  width: 8px;
  height: 7px;
  background: #f8fcff;
  filter: drop-shadow(0 1px 1px #142233);
  clip-path: polygon(2% 0, 98% 0, 50% 100%);
}
@keyframes emblem-rotate {
  to {
    transform: rotate(360deg);
  }
}
#collection-wheel {
  gap: 6px;
}
#collection-wheel .wheel-emblem {
  width: 22px;
  height: 22px;
}

.balance .token-pad {
  position: relative;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
}
.balance .token-pad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.token-idle {
  animation: token-bob 3.2s ease-in-out infinite;
}
.token-turn {
  position: absolute;
  inset: 0;
}
.balance[data-turning="true"] .token-idle {
  opacity: 0;
  animation-play-state: paused;
}
.balance:active {
  transform: scale(0.965);
}
@keyframes token-bob {
  50% {
    transform: translateY(-1.8px) rotate(4deg);
    filter: brightness(1.15);
  }
}
.hero-motion {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 15px;
  background: #162945b8;
  border: 1px solid #c2d7ff50;
}
.hero-motion img {
  width: 85%;
  height: 85%;
}
.task-hero-art img {
  transform: rotate(-9deg);
}
.rank-summary .points-card-head .motion-art {
  border-color: transparent;
}
.gift-list li {
  background: transparent;
  border: 0;
  min-height: 86px;
}
.look-body[data-face="river"] .look-outfit {
  width: 80%;
  left: 10%;
  top: 45.4%;
}

.garage-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 8px;
  background: #121d29;
  border: 1px solid #91b7d330;
  border-radius: 12px;
  padding: 3px;
}
.garage-filters button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c4d1e4;
  min-height: 39px;
  font-size: 12px;
  font-weight: 750;
}
.garage-filters button[aria-pressed="true"] {
  background: #244148;
  box-shadow: inset 0 0 0 1px #93f8dc68;
  color: #dcfff1;
}
.showroom {
  --car: #84e9cd;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
  gap: 0;
  min-height: 245px;
  border-color: color-mix(in srgb, var(--car) 42%, #42566c);
}
.showroom-art {
  display: grid;
  position: relative;
  isolation: isolate;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  padding: 13px;
  background:
    radial-gradient(
      ellipse at 55% 59%,
      color-mix(in srgb, var(--car) 33%, #172335),
      transparent 76%
    ),
    linear-gradient(165deg, #223448, #1b2537 51%, #121b29 70%);
}
.showroom-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 80%;
  height: 22%;
  top: 61%;
  left: 10%;
  border-radius: 50%;
  background: #080d16;
  filter: blur(14px);
}
.showroom-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  height: 1px;
  width: 100%;
  top: 61%;
  left: 0;
  box-shadow:
    0 9px #adceef15,
    0 17px #adceef12,
    0 25px #adceef0f,
    0 33px #adceef11;
  background: #bceef54e;
}
.showroom-art img {
  display: block;
  width: min(100%, 620px);
  height: auto;
  max-height: 254px;
  object-fit: contain;
  filter: drop-shadow(0 9px 8px #050a16a6);
}
.showroom-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 15px;
}
.showroom-info small {
  color: #bcd0e4;
  font-size: 12px;
}
.showroom-info h2 {
  font:
    800 clamp(21px, 3.7vw, 33px)/1.15 Unbounded,
    sans-serif;
  letter-spacing: -0.062em;
}
.showroom-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.showroom-specs span {
  padding: 4px 6px;
  border-radius: 5px;
  color: #d7e6f8;
  font-size: 10px;
  font-weight: 720;
  background: #121c2b;
  border: 1px solid #c6d7ee37;
}
.showroom-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.showroom-footer > strong {
  flex: none;
  color: #b9fbe6;
  font:
    740 13px/1.2 Unbounded,
    sans-serif;
}
#showroom-action button {
  min-height: 39px;
  font-size: 12px;
}
.car-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(100px, 132px);
  gap: 6px;
  margin-top: 8px;
  padding-block: 2px 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
}
.car-option {
  min-width: 0;
  min-height: 90px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 5px 5px 7px;
  border-radius: 9px;
  border: 1px solid #94b6d436;
  scroll-snap-align: start;
  background: radial-gradient(
    ellipse at 45% 40%,
    color-mix(in srgb, var(--car) 12%, #1b2c3b),
    #172330 82%
  );
  color: #edf5ff;
}
.car-option[aria-pressed="true"] {
  border-color: var(--car);
  box-shadow: inset 0 1px #ffffff40;
}
.car-option img {
  width: min(100%, 100px);
  height: 42px;
  object-fit: contain;
}
.car-option b {
  font-size: 11px;
}
.car-option small {
  color: #a9c8d7;
  font-size: 10px;
}

.events-board {
  margin-bottom: 10px;
}
.event-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.event-card {
  --activity: #93e6d8;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border-radius: 11px;
  padding: 7px;
  text-align: left;
  color: #edf7ff;
  border: 1px solid color-mix(in srgb, var(--activity) 45%, #354860);
  background: linear-gradient(
    112deg,
    color-mix(in srgb, var(--activity) 21%, #192943),
    #1a2637 77%
  );
}
.event-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 38%,
    #eff6ff39 51%,
    transparent 66%
  );
  animation: event-pass 6.4s ease-in-out infinite;
}
@keyframes event-pass {
  0%,
  59% {
    transform: translateX(-100%);
  }
  83%,
  100% {
    transform: translateX(100%);
  }
}
.event-card:hover {
  border-color: var(--activity);
}
.event-card:disabled {
  opacity: 0.68;
}
.event-card b,
.event-card strong,
.event-card small {
  display: block;
}
.event-card strong {
  font-size: 13px;
  line-height: 1.12;
}
.event-card small {
  margin-top: 3px;
  color: #bfccde;
  font-size: 10px;
  line-height: 1.14;
}
.event-card img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 3px #0006);
}
.event-card > .icon {
  width: 13px;
  height: 13px;
  color: var(--activity);
}
.circuit-card {
  --activity: #ccbbfa;
}
.circuit-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 5px;
}
.circuit-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 58px;
  padding: 6px 7px;
  border: 1px solid #c7b3f064;
  border-radius: 9px;
  background: #222e43;
  color: #f2f4ff;
  text-align: left;
}
.circuit-plan strong,
.circuit-plan small {
  display: block;
}
.circuit-plan strong {
  font-size: 12px;
}
.circuit-plan small {
  margin-top: 3px;
  color: #c4cde0;
  font-size: 9px;
  line-height: 1.12;
}
.circuit-plan b {
  flex: none;
  color: #aef4dd;
  font-size: 12px;
}
.circuit-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px auto;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  padding: 6px 7px;
  border: 1px solid #b7aee28c;
  border-radius: 9px;
  background: linear-gradient(120deg, #252f49, #182736);
}
.circuit-copy strong {
  font-size: 13px;
}
.circuit-copy small {
  display: block;
  color: #c4d3e4;
  font-size: 10px;
}
.circuit-clock {
  color: #cefff0;
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.circuit-clock progress {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 3px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  accent-color: #9be9d1;
}
.circuit-hud[data-urgent="true"] .circuit-clock {
  color: #ffabbc;
}
.circuit-hud button {
  min-height: 34px;
  padding: 4px 7px;
  font-size: 11px;
}

.sprint-dialog {
  width: min(474px, calc(100% - 20px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  margin: auto;
  padding: 14px;
  border: 1px solid #b9d6f078;
  border-radius: 18px;
  background: linear-gradient(138deg, #24374d, #151e30);
  color: #f3f9ff;
  box-shadow: 0 22px 70px #000b19ba;
}
.sprint-dialog::backdrop {
  background: #070e1ac9;
  backdrop-filter: blur(6px);
}
.sprint-dialog[open] {
  animation: wheel-open 0.28s var(--snap);
}
.sprint-head {
  position: relative;
  padding: 0 32px 9px 0;
}
.sprint-head h2 {
  font:
    800 22px/1.14 Unbounded,
    sans-serif;
  letter-spacing: -0.06em;
}
.sprint-head p {
  margin-top: 3px;
  color: #c0d5e5;
  font-size: 11px;
}
.sprint-head .wheel-close {
  inset: 0 0 auto auto;
}
.sprint-stage {
  --race: #8fe9d2;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 2.05;
  border: 1px solid #bdd7ef54;
  border-radius: 11px;
  background:
    radial-gradient(
      ellipse at 76% 50%,
      color-mix(in srgb, var(--race) 38%, #1d3148),
      transparent 66%
    ),
    linear-gradient(150deg, #13263b, #361f35 68%, #191e2b);
}
.sprint-stage img {
  width: 84%;
  max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 8px 6px #020a19);
  transform: translateY(-3px);
}
.sprint-stage[data-phase="running"] img {
  animation: race-engine 0.61s ease-in-out infinite alternate;
}
.sprint-stage[data-phase="result"] img {
  animation: race-unwind 0.42s ease-out;
}
.sprint-road {
  position: absolute;
  z-index: -1;
  inset: auto -35% -15% -35%;
  height: 48%;
  background:
    repeating-linear-gradient(90deg, #d6f9f966 0 9%, transparent 9% 15%) center
      28% / 100% 3px no-repeat,
    #152031;
  transform: skewY(-3deg) rotate(2deg);
}
.sprint-lights {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(
    110deg,
    transparent 0 24%,
    #ed7f9e43 27%,
    transparent 29% 42%
  );
}
.sprint-stage[data-phase="running"] .sprint-lights {
  animation: race-lights 0.78s linear infinite;
}
@keyframes race-engine {
  to {
    transform: translate(-4px, -1px) rotate(-0.8deg);
  }
}
@keyframes race-unwind {
  from {
    transform: translateX(-21px);
  }
}
@keyframes race-lights {
  from {
    transform: translateX(34%);
  }
  to {
    transform: translateX(-36%);
  }
}
.sprint-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 7px 0;
}
.sprint-steps span {
  display: grid;
  place-items: center;
  min-height: 29px;
  background: #17263a;
  border: 1px solid #adc0da36;
  border-radius: 6px;
  color: #ccdae9;
  font-size: 12px;
  font-weight: 800;
}
.sprint-steps span[data-state="active"] {
  border-color: #b2e8ff;
}
.sprint-steps span[data-state="good"],
.sprint-steps span[data-state="perfect"] {
  color: #c8ffeb;
  border-color: #9af2d4;
  background: #214e4c;
}
.sprint-steps span[data-state="miss"] {
  color: #fbc8d0;
  background: #3e273b;
}
.shift-meter {
  position: relative;
  overflow: hidden;
  height: 31px;
  margin: 7px 0;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, #accdea29 0 1px, transparent 1px 11%),
    #101d2d;
  border: 1px solid #adc0da55;
}
.shift-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--zone-start, 40%);
  width: var(--zone-width, 20%);
  background: #3e8c69;
  outline: 1px solid #baffdf;
}
.shift-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  left: var(--needle, 0%);
  background: #eff7ff;
  box-shadow: 0 0 7px #c4eafe;
}
.shift-meter[data-zone="true"] .shift-zone {
  background: #60b687;
}
.sprint-status {
  min-height: 32px;
  padding: 1px 0 5px;
  color: #e0edf9;
  font-size: 12px;
}
#shift-sprint {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.motion-paused .token-idle,
.motion-paused .wheel-emblem i,
.motion-paused .event-card::after {
  animation-play-state: paused;
}
@media (max-width: 760px) {
  .balance .token-pad {
    width: 32px;
    height: 32px;
  }
  .hero-motion {
    width: 60px;
    height: 60px;
  }
  .showroom {
    grid-template-columns: 1fr;
  }
  .showroom-art {
    min-height: 155px;
    padding: 5px 15px;
  }
  .showroom-art img {
    height: 144px;
    width: 100%;
  }
  .showroom-info {
    padding: 9px 11px;
    gap: 5px;
  }
}
@media (max-width: 390px) {
  .event-card {
    gap: 5px;
    padding: 5px;
  }
  .event-card .motion-art {
    width: 29px;
    height: 29px;
  }
  .event-card strong {
    font-size: 12px;
  }
  .event-card > .icon {
    width: 11px;
    height: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-emblem i,
  .token-idle,
  .event-card::after,
  .sprint-dialog[open],
  .sprint-stage img,
  .sprint-stage .sprint-lights {
    animation: none !important;
  }
}
