@import url("responsive.css?v=20260613-adaptive");
@import url("responsive3d.css?v=20260613-adaptive");

.vehicle-3d-canvas {
  display: none !important;
}

.webgl-ready .fallback-model,
.webgl-ready .polestar-image-model,
.webgl-ready .charger-unit,
.webgl-ready .charge-cable {
  opacity: 1;
  pointer-events: auto;
}

.webgl-ready .car-stage::after {
  content: none;
}

.hero-card {
  min-height: 760px;
}

.hero-background-glow {
  inset: 8% 18% auto;
  height: 640px;
  background:
    radial-gradient(circle at 50% 48%, rgba(245,247,251,0.09), transparent 30%),
    radial-gradient(circle at 34% 70%, rgba(52,245,166,0.12), transparent 34%),
    radial-gradient(circle at 50% 70%, rgba(0,0,0,0.55), transparent 60%);
  filter: blur(26px);
}

.polestar-image-stage {
  position: relative;
  height: min(72vh, 720px);
  min-height: 620px;
  overflow: visible;
}

.polestar-image-stage::before {
  content: "";
  position: absolute;
  inset: 3% 9% 3% 9%;
  border-radius: 42px;
  background:
    radial-gradient(circle at 48% 46%, rgba(255,255,255,0.09), transparent 34%),
    radial-gradient(circle at 30% 70%, rgba(52,245,166,0.08), transparent 30%);
  filter: blur(2px);
  opacity: 0.75;
  pointer-events: none;
}

.polestar-image-stage::after {
  content: "";
  position: absolute;
  left: 36%;
  right: 18%;
  bottom: 3%;
  height: 140px;
  border-radius: 50%;
  background: rgba(0,0,0,0.50);
  filter: blur(34px);
  pointer-events: none;
  opacity: 0.65;
}

.polestar-image-model {
  position: absolute;
  left: 56%;
  top: 4%;
  bottom: auto;
  width: min(420px, 58vw);
  height: auto;
  transform: translateX(-50%);
  z-index: 3;
  background: none !important;
  filter: drop-shadow(0 28px 45px rgba(0,0,0,0.62));
}

.polestar-image-model.is-charging {
  filter:
    drop-shadow(0 28px 45px rgba(0,0,0,0.62))
    drop-shadow(0 0 22px rgba(52,245,166,0.22));
}

.polestar-top-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.charge-port-image {
  position: absolute;
  left: 8.4%;
  top: 74.6%;
  width: 28px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(12,16,22,0.96), rgba(0,0,0,0.98));
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 10px 18px rgba(0,0,0,0.45);
  z-index: 4;
}

.charge-port-image::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 9px;
  height: 3px;
  border-radius: 999px;
  background: rgba(245,247,251,0.28);
}

.polestar-image-model.is-charging .charge-port-image::after {
  background: var(--green);
  box-shadow: 0 0 16px rgba(52,245,166,0.9);
}

.polestar-image-stage .charger-unit {
  left: 10%;
  right: auto;
  top: 31%;
  bottom: auto;
  z-index: 4;
  transform: scale(0.92);
  text-align: center;
}

.polestar-image-stage .charger-body {
  width: 70px;
  height: 118px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.16), transparent 31%),
    linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.03)),
    #131821;
}

.polestar-image-stage .charger-body::before {
  content: "Z";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 9px auto 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.42);
  color: rgba(245,247,251,0.82);
  font-weight: 600;
  font-size: 0.82rem;
}

.polestar-image-stage .charger-body span {
  width: 18px;
  height: 4px;
  margin: 0 auto 8px;
  background: rgba(255,255,255,0.22);
}

.polestar-image-stage .charger-light {
  position: absolute;
  left: 50%;
  top: 76px;
  transform: translateX(-50%);
  z-index: 2;
}

.polestar-image-stage .charge-cable {
  inset: 0;
  z-index: 2;
  opacity: 1;
}

.polestar-image-stage .charge-cable.hidden {
  opacity: 0;
}

.polestar-image-stage .charge-cable path {
  fill: none;
  stroke: rgba(245,247,251,0.34);
  stroke-width: 10;
  stroke-linecap: round;
  filter: drop-shadow(0 8px 13px rgba(0,0,0,0.75));
}

.polestar-image-stage .charge-cable.is-charging path {
  stroke: var(--green);
  stroke-dasharray: 22 24;
  animation: cablePulse 1.05s linear infinite;
  filter:
    drop-shadow(0 8px 13px rgba(0,0,0,0.75))
    drop-shadow(0 0 13px rgba(52,245,166,0.95));
}

@keyframes cablePulse {
  from { stroke-dashoffset: 46; opacity: 0.55; }
  45% { opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 0.72; }
}

@media (max-width: 980px) {
  .hero-card {
    min-height: 690px;
  }

  .polestar-image-stage {
    height: 620px;
    min-height: 620px;
  }

  .polestar-image-model {
    width: min(360px, 72vw);
    left: 58%;
    top: 7%;
  }

  .polestar-image-stage .charger-unit {
    left: 4%;
    top: 32%;
    transform: scale(0.78);
  }
}

@media (max-width: 640px) {
  .hero-card {
    min-height: 610px;
  }

  .polestar-image-stage {
    height: 560px;
    min-height: 560px;
  }

  .polestar-image-model {
    width: min(315px, 84vw);
    left: 61%;
    top: 8%;
  }

  .polestar-image-stage .charger-unit {
    left: 0;
    top: 35%;
    transform: scale(0.66);
  }

  .charge-port-image {
    width: 22px;
    height: 18px;
  }
}
