:root {
  color-scheme: dark;
  --cyan: #2caee2;
  --ink: #05090a;
}
* {
  box-sizing: border-box;
}
html,
body,
.drive {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #07100c;
  font-family: "Space Grotesk", sans-serif;
}
html {
  scroll-behavior: auto;
}
body.drive--guided {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}
body.drive--free {
  overflow: hidden;
}
.drive {
  position: fixed;
  z-index: 1;
  inset: 0;
}
.drive__scroll-space {
  position: relative;
  z-index: 0;
  display: block;
  height: 800vh;
  pointer-events: none;
}
.drive__scroll-space > div {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
body.drive--free .drive__scroll-space {
  display: none;
}
.drive canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.drive__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(2, 7, 8, 0.72),
      transparent 25%,
      transparent 65%,
      rgba(1, 4, 5, 0.72)
    ),
    radial-gradient(circle, transparent 45%, rgba(0, 0, 0, 0.45));
  mix-blend-mode: multiply;
}
.drive__header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 20px 24px;
  pointer-events: none;
}
.drive__guide-nav,
.drive__guide-nav button,
.drive__mode-switch,
.drive__mode-switch button {
  pointer-events: auto;
}
body.drive--guided .drive canvas {
  cursor: grab;
}
.drive__guide-nav {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(3, 8, 10, 0.74);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.drive__guide-timeline {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 96px;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(920px, calc(100vw - 56px));
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(3, 8, 10, 0.7);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.drive__guide-dial {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 88px;
  width: 164px;
  height: 164px;
  transform: translateX(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.drive__guide-dial-knob {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(3, 8, 10, 0.72);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  cursor: grab;
  overflow: hidden;
}
.drive__guide-dial-knob:active {
  cursor: grabbing;
}
.drive__guide-dial-svg {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
}
.drive__guide-dial-ring,
.drive__guide-dial-progress {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.drive__guide-dial-ring {
  stroke: rgba(89, 201, 239, 0.18);
}
.drive__guide-dial-progress {
  stroke: #59c9ef;
}
.drive__guide-dial-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: #59c9ef;
  box-shadow: 0 0 0 4px rgba(89, 201, 239, 0.14), 0 0 16px rgba(89, 201, 239, 0.45);
  pointer-events: none;
}
.drive__guide-dial-core {
  position: absolute;
  inset: 42px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
}
.drive__guide-dial-label,
.drive__guide-dial-value {
  color: rgba(216, 226, 225, 0.78);
  font: 600 11px/1 Oswald, sans-serif;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.drive__guide-dial-value {
  color: #f2f6f5;
  font-size: 22px;
  letter-spacing: 0.08em;
}
.drive__guide-timeline-label,
.drive__guide-timeline-value {
  color: rgba(216, 226, 225, 0.74);
  font: 600 11px/1 Oswald, sans-serif;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.drive__guide-timeline-track {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}
.drive__guide-timeline-track::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 4px;
  border-radius: 999px;
  background: #59c9ef;
  transform: translateY(-50%);
}
.drive__guide-timeline-fill {
  position: absolute;
  inset: 50% auto auto 0;
  height: 4px;
  width: 0%;
  border-radius: 999px;
  background: #59c9ef;
  box-shadow: none;
  transform: translateY(-50%);
  pointer-events: none;
}
.drive__guide-timeline-track input[type="range"] {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.drive__guide-timeline-track input[type="range"]::-webkit-slider-runnable-track {
  height: 24px;
  background: transparent;
}
.drive__guide-timeline-track input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: #59c9ef;
  box-shadow: none;
}
.drive__guide-timeline-track input[type="range"]::-moz-range-track {
  height: 24px;
  background: transparent;
}
.drive__guide-timeline-track input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: #59c9ef;
  box-shadow: none;
}
.drive__guide-kicker {
  display: none;
}
.drive__guide-nav button {
  position: relative;
  min-width: max-content;
  padding: 9px 11px 9px 24px;
  border: 0;
  background: transparent;
  color: rgba(216, 226, 225, 0.5);
  font: 600 12px/1 Oswald, sans-serif;
  letter-spacing: 0.16em;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.drive__guide-nav button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.drive__guide-nav button:hover,
.drive__guide-nav button.is-active {
  color: #f2f6f5;
  /* transform: translateX(3px); */
}
.drive__guide-nav button.is-active::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.drive__mode-switch {
  position: absolute;
  z-index: 6;
  top: 20px;
  left: 50%;
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(3, 8, 10, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}
.drive__mode-switch button {
  min-width: 112px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(220, 232, 232, 0.55);
  font: 600 10px/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.drive__mode-switch button.is-active {
  background: rgba(44, 174, 226, 0.2);
  color: #eefaff;
  box-shadow: inset 0 0 0 1px rgba(44, 174, 226, 0.5), 0 0 18px rgba(44, 174, 226, 0.13);
}
.drive__languages {
  position: absolute;
  z-index: 7;
  top: 22px;
  left: calc(50% + 145px);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.drive__language-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  appearance: none;
  cursor: pointer;
  opacity: 0.3;
  overflow: hidden;
  transition: opacity 0.2s ease;
}
.drive__language-button:hover,
.drive__language-button:focus-visible,
.drive__language-button.is-active {
  opacity: 1;
  outline: none;
}
.drive__language-flag {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.drive__language-flag--hu {
  background-image: url("../../images/flags/hu-circle.svg");
}
.drive__language-flag--en {
  background-image: url("../../images/flags/us-circle.svg");
}
body.drive--free .drive__guide-nav {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
}
body.drive--free .drive__guide-timeline {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
}
body.drive--free .drive__guide-dial {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
}
body.drive--guided .drive__joystick,
body.drive--guided .drive__hud,
body.drive--guided .drive__reset {
  opacity: 0;
  pointer-events: none;
}
.drive__logo {
  pointer-events: auto;
}
.drive__logo img {
  display: block;
  width: 70px;
  height: 42px;
  object-fit: contain;
  filter: brightness(2) grayscale(1);
}
.drive__mode {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 8px auto;
  column-gap: 10px;
}
.drive__mode i {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
}
.drive__mode span {
  font-family: Oswald, sans-serif;
  font-size: 16px;
  letter-spacing: 0.18em;
}
.drive__mode small {
  grid-column: 2;
  color: #7d898b;
  font-size: 9px;
  letter-spacing: 0.2em;
}
.drive__camera {
  pointer-events: auto;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 10, 11, 0.65);
  color: #dce8e9;
  font: 600 10px "Space Grotesk";
  letter-spacing: 0.13em;
}
.drive__fps {
  pointer-events: none;
  display: grid;
  justify-items: start;
  gap: 1px;
  min-width: 92px;
}
.drive__fps span {
  color: #7e8e91;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.drive__fps strong {
  font:
    500 28px/0.9 Oswald,
    sans-serif;
  letter-spacing: -0.03em;
  color: #e7eff0;
  text-shadow: 0 2px 18px #000;
}
.drive__triangles-label,
.drive__draw-calls-label {
  margin-top: 2px;
}
.drive__camera b {
  margin-left: 8px;
  color: var(--cyan);
}
.drive__hud {
  position: absolute;
  z-index: 2;
  left: 36px;
  bottom: 32px;
  display: grid;
  grid-template-columns: auto;
  gap: 10px 0;
  align-items: end;
  pointer-events: none;
}
.drive__dialog {
  position: absolute;
  z-index: 10;
  top: 50%;
  right: 36px;
  width: min(520px, 34vw);
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(3, 8, 10, 0.82), rgba(1, 2, 3, 0.66));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 24px rgba(255, 255, 255, 0.03);
  transform: translate(48px, -50%);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.34s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.drive__dialog.is-visible {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}
.drive__dialog.is-closing {
  opacity: 0;
  transform: translate(48px, -50%);
}
.drive__dialog-title {
  color: #f0f3f0;
  font: 600 20px/1 Oswald, sans-serif;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}
.drive__dialog-body {
  color: rgba(225, 233, 230, 0.84);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.drive__about-image {
  width: 125px;
  height: 125px;
  display: block;
  margin: 4px auto 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}
.drive__dialog.is-panel-left {
  right: auto;
  left: 36px;
}
.drive__dialog.is-panel-left:not(.is-visible),
.drive__dialog.is-panel-left.is-closing {
  transform: translate(-48px, -50%);
}
.drive__dialog.is-about .drive__dialog-title {
  text-align: center;
}
.drive__dialog.is-gallery {
  width: min(760px, 52vw);
  max-height: min(78vh, 760px);
}
.drive__dialog.is-gallery .drive__dialog-body {
  overflow-y: auto;
  max-height: calc(min(78vh, 760px) - 54px);
}
.drive__dialog.is-gallery .drive__dialog-title {
  margin-left: 9px;
  margin-right: 36px;
}
.drive__dialog.is-game-gallery {
  width: min(920px, calc(100vw - 96px));
  max-height: 78vh;
}
.drive__dialog.is-game-gallery .drive__dialog-body {
  max-height: min(520px, calc(78vh - 54px));
  overflow-y: auto;
}
.drive__dialog.is-game-gallery .drive__reference-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.drive__dialog.is-web-gallery,
.drive__dialog.is-mobile-gallery {
  width: min(920px, calc(100vw - 96px));
  max-height: 78vh;
}
.drive__dialog.is-web-gallery .drive__dialog-body,
.drive__dialog.is-mobile-gallery .drive__dialog-body {
  max-height: min(520px, calc(78vh - 54px));
  overflow-y: auto;
}
.drive__dialog.is-web-gallery .drive__reference-grid,
.drive__dialog.is-mobile-gallery .drive__reference-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.drive__dialog.is-logo-gallery {
  width: min(720px, calc(100vw - 96px));
  max-height: 78vh;
}
.drive__dialog.is-logo-gallery .drive__dialog-body {
  max-height: min(480px, calc(78vh - 54px));
  overflow-y: auto;
}
.drive__dialog.is-logo-gallery .drive__reference-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0 auto;
  padding: 14px;
}
.drive__dialog.is-logo-gallery .drive__reference-item {
  aspect-ratio: auto;
  width: 100%;
  height: 112px;
  justify-self: center;
  padding: 0;
  border-radius: 20px;
  background: transparent;
}
.drive__dialog.is-logo-gallery .drive__reference-item img {
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 18px;
  background: #f7eef1;
  box-shadow: none;
}
.drive__reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 18px;
}
.drive__dialog.is-gallery .drive__reference-grid {
  padding-left: 9px;
  padding-right: 36px;
}
.drive__reference-intro {
  margin: 2px 36px 8px 9px;
  width: auto;
  max-width: none;
  color: rgba(225, 233, 230, 0.9);
  font-size: 13px;
  line-height: 1.55;
}
.drive__reference-item {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 20px;
  background: none;
  cursor: pointer;
  transform-origin: center;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  z-index: 10;
}
.drive__reference-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-out;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.drive__reference-item:hover,
.drive__reference-item:focus-visible {
  transform: scale(1.1);
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.drive__reference-item:hover img,
.drive__reference-item:focus-visible img {
  transform: scale(1.3);
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}
.image-lightbox.is-open,
.image-lightbox.is-closing {
  opacity: 1;
  pointer-events: auto;
}
.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}
.image-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}
.image-lightbox__stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 1280px);
  max-height: 70vh;
}
.image-lightbox.is-open .image-lightbox__dialog {
  transform: scale(1);
  opacity: 1;
}
.image-lightbox.is-closing .image-lightbox__dialog {
  transform: scale(0.96);
  opacity: 0;
}
.image-lightbox__image {
  display: block;
  max-width: min(92vw, 1280px);
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  transform: scale(1);
  opacity: 1;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center center;
}
.image-lightbox__image.is-switching {
  transform: scale(0.94);
  opacity: 0.5;
}
.image-lightbox__close {
  position: absolute;
  top: -56px;
  right: 0;
  z-index: 10002;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 54px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  padding: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.image-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  padding: 0 0 3px;
  font-family: Arial, sans-serif;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.image-lightbox__nav--prev { left: -70px; }
.image-lightbox__nav--next { right: -70px; }
.image-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.08);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}
.drive__lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  place-items: center;
  padding: 42px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}
.drive__lightbox.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}
.drive__lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}
.drive__lightbox-image {
  position: relative;
  z-index: 1;
  grid-column: 2;
  max-width: 100%;
  max-height: calc(100vh - 84px);
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.12s ease, transform 0.18s ease;
}
.drive__lightbox-image.is-switching {
  opacity: 0;
  transform: scale(0.985);
}
.drive__lightbox-close,
.drive__lightbox-nav {
  position: relative;
  z-index: 2;
  border: 0;
  color: #fff;
  background: rgba(10, 14, 15, 0.72);
  cursor: pointer;
}
.drive__lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}
.drive__lightbox-nav {
  width: 48px;
  height: 64px;
  border-radius: 12px;
  font-size: 42px;
}
.drive__lightbox-nav--prev { grid-column: 1; }
.drive__lightbox-nav--next { grid-column: 3; }
.drive__speed {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.drive__speed strong {
  font:
    500 72px/0.75 Oswald,
    sans-serif;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 22px #000;
}
.drive__speed span,
.drive__controls > span {
  color: #7e8e91;
  font-size: 9px;
  letter-spacing: 0.22em;
}
.drive__bar {
  grid-column: 1;
  width: 255px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.drive__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.12s;
}
.drive__controls {
  position: absolute;
  z-index: 7;
  right: 34px;
  bottom: 30px;
  text-align: right;
  pointer-events: none;
  transform: scale(1.05);
  transform-origin: bottom right;
}
.drive__controls > span {
  display: block;
  margin-bottom: 9px;
}
.drive__controls div {
  display: grid;
  justify-items: end;
  width: 128px;
  margin-top: 8px;
}
.drive__controls div:last-child {
  margin-bottom: 0;
}
.drive__controls kbd,
.drive__controls button {
  display: inline-grid;
  place-items: center;
  grid-auto-flow: column;
  gap: 4px;
  width: 100%;
  height: 42px;
  margin-left: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 9, 10, 0.62);
  color: #fff;
  font: 600 10px "Space Grotesk";
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.03);
}
.drive__control-stack {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 3px;
  padding: 8px 10px 6px;
  text-align: center;
}
.drive__control-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.drive__control-key--sound {
  gap: 8px;
  font-size: 11px;
  white-space: nowrap;
}
.drive__control-letter {
  display: inline-block;
  transform: translateY(1px);
}
.drive__control-label {
  display: block;
  color: #8b9a9d;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.92;
}
.drive__controls button {
  appearance: none;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}
.drive__controls button:focus-visible {
  outline: 2px solid #4ed8ff;
  outline-offset: 2px;
}
.drive__controls kbd.wide {
  width: 100%;
  justify-content: center;
}
.drive__controls button.wide {
  width: 100%;
  justify-content: center;
}
.drive__controls kbd[data-enabled="true"],
.drive__controls button[data-enabled="true"] {
  border-color: rgba(44, 174, 226, 0.52);
  background: rgba(11, 28, 31, 0.88);
  color: #d9f8ff;
  box-shadow:
    inset 0 0 14px rgba(44, 174, 226, 0.15),
    0 0 16px rgba(44, 174, 226, 0.08);
}
.drive__controls button span {
  line-height: 1;
}
.drive__controls em {
  display: none;
}
.drive__seasons {
  position: absolute;
  z-index: 7;
  left: 34px;
  bottom: clamp(50px, 18vh, 120px);
  pointer-events: none;
  text-align: left;
  transform: scale(1.05);
  transform-origin: bottom left;
}
.drive__seasons-label {
  display: block;
  margin-bottom: 9px;
  color: #7e8e91;
  font-size: 9px;
  letter-spacing: 0.22em;
}
.drive__seasons-group {
  display: grid;
  gap: 8px;
  pointer-events: auto;
}
.drive__season-button {
  appearance: none;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  width: 128px;
  height: 56px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 9, 10, 0.62);
  color: #f4f8fb;
  cursor: pointer;
  font: 600 10px "Space Grotesk", sans-serif;
  letter-spacing: 0.22em;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.03);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}
.drive__season-button:hover {
  transform: translateX(2px);
  border-color: rgba(44, 174, 226, 0.4);
}
.drive__season-button:focus-visible {
  outline: 2px solid #4ed8ff;
  outline-offset: 2px;
}
.drive__season-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}
.drive__season-icon svg {
  width: 20px;
  height: 20px;
}
.drive__season-name {
  font-size: 13px;
  letter-spacing: 0.28em;
  line-height: 1;
  text-align: left;
}
.drive__season-button.is-active {
  border-color: rgba(44, 174, 226, 0.62);
  background: rgba(11, 28, 31, 0.92);
  color: #d9f8ff;
  box-shadow:
    inset 0 0 16px rgba(44, 174, 226, 0.18),
    0 0 22px rgba(44, 174, 226, 0.12);
}
.drive__season-button.is-active .drive__season-icon {
  border-color: rgba(44, 174, 226, 0.7);
  box-shadow: 0 0 14px rgba(44, 174, 226, 0.28);
}
.drive__season-button.is-active[data-season="autumn"] {
  border-color: rgba(222, 132, 38, 0.62);
  background: rgba(31, 21, 9, 0.92);
  color: #fbe2c0;
  box-shadow:
    inset 0 0 16px rgba(222, 132, 38, 0.2),
    0 0 22px rgba(222, 132, 38, 0.14);
}
.drive__season-button.is-active[data-season="autumn"] .drive__season-icon {
  border-color: rgba(222, 132, 38, 0.7);
  box-shadow: 0 0 14px rgba(222, 132, 38, 0.3);
}
.drive__season-button.is-active[data-season="winter"] {
  border-color: rgba(196, 220, 240, 0.7);
  background: rgba(20, 30, 40, 0.92);
  color: #f2f8ff;
  box-shadow:
    inset 0 0 16px rgba(196, 220, 240, 0.22),
    0 0 22px rgba(196, 220, 240, 0.16);
}
.drive__season-button.is-active[data-season="winter"] .drive__season-icon {
  border-color: rgba(196, 220, 240, 0.8);
  box-shadow: 0 0 14px rgba(196, 220, 240, 0.3);
}
.drive__season-button[data-season="summer"] .drive__season-icon svg circle:first-of-type {
  fill: #ffd66b;
}
.drive__season-button[data-season="autumn"] .drive__season-icon svg path:first-of-type {
  fill: #e07a2a;
}
.drive__season-button[data-season="winter"] .drive__season-icon svg circle {
  fill: #ffffff;
}
.drive__joystick {
  position: absolute;
  z-index: 3;
  left: 18px;
  bottom: 18px;
  width: 132px;
  height: 132px;
  display: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}
.drive__joystick-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(44, 174, 226, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(3, 8, 10, 0.68), rgba(3, 8, 10, 0.4));
  box-shadow:
    inset 0 0 24px rgba(44, 174, 226, 0.08),
    0 0 26px rgba(0, 0, 0, 0.36);
}
.drive__joystick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  margin-top: -27px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(18, 32, 35, 0.94), rgba(6, 14, 16, 0.98));
  box-shadow:
    0 0 0 1px rgba(44, 174, 226, 0.18),
    0 0 24px rgba(44, 174, 226, 0.14);
  transform: translate(0, 0);
  transition: transform 0.05s linear;
}
.drive__joystick-label {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  color: #7e8e91;
  font-size: 9px;
  letter-spacing: 0.22em;
}
.drive__sound-icon {
  width: 14px;
  height: 14px;
  color: currentColor;
  flex: 0 0 auto;
}
.drive__controls kbd span {
  line-height: 1;
}
.drive__controls em {
  display: inline-block;
  width: 74px;
  margin-left: 9px;
  color: #718083;
  font-size: 9px;
  font-style: normal;
  text-align: left;
}
.drive__reset {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 18px;
  border: 1px solid rgba(44, 174, 226, 0.38);
  background: rgba(3, 11, 13, 0.88);
  color: #d5f4ff;
  font: 700 12px "Space Grotesk";
  letter-spacing: 0.18em;
  box-shadow: 0 0 26px rgba(44, 174, 226, 0.18);
  cursor: pointer;
}
.drive__reset[hidden] {
  display: none;
}
.drive__status {
  position: absolute;
  z-index: 400;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  color: #9facad;
  transition: color 0.24s ease;
}
.drive__status-mask {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.drive__status-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  transition: opacity 0.2s ease;
}
.drive__status-copy strong {
  color: #e7eeee;
  font: 600 clamp(28px, 4vw, 48px) / 1 "Oswald", sans-serif;
  letter-spacing: 0.01em;
}
.drive__status-copy span {
  font: 400 12px / 1.4 "Space Grotesk", sans-serif;
  letter-spacing: 0.17em;
}
.drive__status.is-hidden {
  color: transparent;
  pointer-events: none;
}
.drive__status.is-hidden .drive__status-copy {
  opacity: 0;
}
.drive__message {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 88px;
  transform: translate(-50%, 12px);
  padding: 9px 15px;
  border: 1px solid rgba(44, 174, 226, 0.3);
  background: rgba(3, 11, 13, 0.75);
  color: #9ddff7;
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0;
  transition: 0.2s;
}
.drive__message.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
@media (max-width: 700px) {
  .drive__mode-switch {
    top: 12px;
  }
  .drive__languages {
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
  }
  .drive__mode-switch button {
    min-width: 96px;
    padding: 7px 11px;
  }

  .drive__guide-nav {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(3, 8, 10, 0.74);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 oszlop */
    width: calc(100% - 32px);
    max-width: 360px;
  }

  .drive__guide-timeline {
    right: 10px;
    bottom: 72px;
    left: 10px;
    width: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
    transform: none;
  }
  .drive__guide-dial {
    right: auto;
    bottom: max(28px, calc(env(safe-area-inset-bottom) + 10px));
    left: 50%;
    width: 136px;
    height: 136px;
    transform: translateX(-50%);
  }
  .drive__guide-timeline-label,
  .drive__guide-timeline-value {
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .drive__guide-timeline-value {
    justify-self: end;
    margin-top: -22px;
  }
  .drive__guide-dial-core {
    inset: 30px;
  }
  .drive__guide-dial-thumb {
    width: 14px;
    height: 14px;
  }
  .drive__guide-dial-value {
    font-size: 18px;
  }
  .drive__guide-nav::-webkit-scrollbar {
    display: none;
  }
  .drive__guide-kicker {
    display: none;
  }
  .drive__guide-nav button {
    min-width: max-content;
    padding: 8px 9px 8px 19px;
    font-size: 10px;
  }
  body.drive--free .drive__guide-nav {
    transform: translateY(12px);
  }
  body.drive--free .drive__guide-timeline {
    transform: translateY(12px);
  }
  body.drive--free .drive__guide-dial {
    transform: translate(-50%, 12px);
  }
  .drive__guide-nav button::before {
    left: 5px;
    width: 5px;
    height: 5px;
  }
  .drive__header {
    height: 70px;
    padding: 14px 16px;
  }
  .drive__logo img {
    width: 55px;
  }
  .drive__mode {
    left: auto;
    right: 16px;
    transform: none;
  }
  .drive__camera {
    display: none;
  }
  .drive__hud {
    left: 16px;
    right: 16px;
    bottom: 16px;
    align-items: start;
  }
  .drive__dialog {
    top: 200px;
    right: auto;
    bottom: auto;
    left: 50%;
    display: flex;
    flex-direction: column;
    width: calc(100vw - 32px);
    height: 50vh;
    max-height: 50vh;
    overflow: hidden;
    transform: translate(-50%, 28px);
  }
  body.drive--guided .drive__dialog {
    bottom: auto;
  }
  .drive__dialog.is-visible {
    transform: translate(-50%, 0);
  }
  .drive__dialog.is-closing {
    transform: translate(-50%, 28px);
  }
  .drive__dialog.is-panel-left {
    left: 50%;
    right: auto;
  }
  .drive__dialog.is-panel-left:not(.is-visible),
  .drive__dialog.is-panel-left.is-closing {
    transform: translate(-50%, 28px);
  }
  .drive__dialog .drive__dialog-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .drive__dialog .drive__dialog-title {
    flex: 0 0 auto;
  }
  .drive__dialog.is-gallery {
    width: calc(100vw - 32px);
    height: 50vh;
    max-height: 50vh;
  }
  .drive__dialog.is-game-gallery {
    width: calc(100vw - 32px);
    height: 50vh;
    max-height: 50vh;
  }
  .drive__dialog.is-game-gallery .drive__dialog-body {
    max-height: none;
  }
  .drive__dialog.is-web-gallery,
  .drive__dialog.is-mobile-gallery {
    width: calc(100vw - 32px);
    height: 50vh;
    max-height: 50vh;
  }
  .drive__dialog.is-web-gallery .drive__dialog-body,
  .drive__dialog.is-mobile-gallery .drive__dialog-body {
    max-height: none;
  }
  .drive__dialog.is-logo-gallery {
    width: calc(100vw - 32px);
    height: 50vh;
    max-height: 50vh;
  }
  .drive__dialog.is-logo-gallery .drive__dialog-body {
    max-height: none;
  }
  .drive__reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    padding: 8px;
  }
  .drive__dialog.is-game-gallery .drive__reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .drive__dialog.is-web-gallery .drive__reference-grid,
  .drive__dialog.is-mobile-gallery .drive__reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .drive__dialog.is-logo-gallery .drive__reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    padding: 10px;
  }
  .drive__dialog.is-gallery .drive__reference-grid {
    padding-left: 8px;
    padding-right: 8px;
  }
  .drive__dialog.is-logo-gallery .drive__reference-item {
    width: 100%;
    height: 96px;
  }
  .drive__lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding: 24px 8px;
  }
  .drive__lightbox-nav {
    width: 38px;
    height: 54px;
  }
  .image-lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  .image-lightbox__nav--prev {
    left: -20px;
  }
  .image-lightbox__nav--next {
    right: -20px;
  }
  .image-lightbox__close {
    top: -48px;
    right: 0;
    font-size: 44px;
  }
  .drive__reset {
    top: auto;
    bottom: 120px;
    transform: translateX(-50%);
    padding: 12px 14px;
  }
  .drive__speed strong {
    font-size: 54px;
  }
  .drive__bar {
    width: min(100%, 220px);
  }
  .drive__controls {
    right: 14px;
    bottom: 16px;
    transform: scale(1);
    transform-origin: bottom right;
    max-width: 44vw;
    text-align: right;
  }
  .drive__seasons {
    left: 14px;
    bottom: clamp(32px, 20vh, 80px);
    transform: scale(0.86);
    transform-origin: bottom left;
  }
  .drive__season-button {
    width: 108px;
    height: 48px;
    gap: 8px;
    padding: 0 10px 0 8px;
  }
  .drive__season-name {
    font-size: 11px;
    letter-spacing: 0.24em;
  }
  .drive__controls > span {
    margin-bottom: 6px;
  }
  .drive__controls div {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    margin-top: 5px;
  }
  .drive__controls em {
    display: none;
  }
  .drive__joystick {
    display: block;
    left: 50%;
    bottom: max(28px, calc(env(safe-area-inset-bottom) + 10px));
    transform: translateX(-50%);
  }
  .drive__message {
    left: 50%;
    bottom: 108px;
    max-width: calc(100vw - 32px);
    text-align: center;
  }
}
@font-face {
  font-family: "Oswald";
  src: url("vendor/oswald-latin-ext.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02FF, U+1E00-1EFF;
}
html{scrollbar-color:#454a4c #090b0c;scrollbar-width:thin}html::-webkit-scrollbar{width:12px;height:12px}html::-webkit-scrollbar-track{background:#090b0c}html::-webkit-scrollbar-thumb{background:#454a4c;border:3px solid #090b0c;border-radius:999px}html::-webkit-scrollbar-thumb:hover{background:#697074}
