/* ==========================================================================
   06. PROJECTS TRUCK DELIVERY & SPACKTR CARD
   ========================================================================== */

.projects-scroll-track {
  position: relative;
  z-index: 2;
  height: 210vh;
  width: 100%;
}

.sticky-viewport {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at 30% 50%, rgba(57, 217, 138, 0.08), transparent 50%),
    transparent;
}

.sticky-viewport * {
  image-rendering: pixelated;
}

.projects-header-overlay {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.projects-header-overlay .glow-divider {
  margin-bottom: 0;
}

.road-line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 148px);
  height: 4px;
  background: #ffffff;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.sticky-viewport.zoom-mode .road-line {
  opacity: 0.1;
}

.camera-rig {
  position: relative;
  width: 840px;
  height: 360px;
  z-index: 5;
  transform-origin: center center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.truck-mover {
  position: relative;
  width: 840px;
  height: 360px;
  transform: translate3d(-120vw, 0, 0);
}

.truck-mover.entering {
  animation: truckArrive 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.truck-mover.parked {
  transform: translate3d(0, 0, 0);
}

.truck-mover.exiting {
  animation: truckDepart 0.9s cubic-bezier(0.55, 0.05, 0.67, 0.19) forwards;
}

.pixel-truck {
  position: relative;
  width: 100%;
  height: 100%;
  direction: ltr;
  transform: scaleX(-1);
}

.truck-suspension {
  position: absolute;
  inset: 0;
  transform-origin: center 250px;
}

.truck-mover.entering .truck-suspension {
  animation: arriveBounce 2.4s linear forwards;
}

.truck-mover.exiting .truck-suspension {
  animation: departTilt 0.9s ease-in forwards;
}

.cabin-wrapper,
.front-bumper,
.chassis,
.wheel-arch,
.fuel-tank,
.side-guards,
.rear-bumper,
.rear-tail-light,
.pixel-wheel,
.ground-shadow,
.cargo-pillar,
.px-light {
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.pixel-truck.truck-ghost .cabin-wrapper,
.pixel-truck.truck-ghost .front-bumper,
.pixel-truck.truck-ghost .chassis,
.pixel-truck.truck-ghost .wheel-arch,
.pixel-truck.truck-ghost .fuel-tank,
.pixel-truck.truck-ghost .side-guards,
.pixel-truck.truck-ghost .rear-bumper,
.pixel-truck.truck-ghost .rear-tail-light,
.pixel-truck.truck-ghost .pixel-wheel,
.pixel-truck.truck-ghost .ground-shadow {
  opacity: 0.12;
  filter: saturate(0.2) blur(0.5px);
  pointer-events: none;
}

.pixel-truck.truck-ghost .cargo-pillar,
.pixel-truck.truck-ghost .px-light {
  opacity: 0.2;
}

.pixel-truck.truck-ghost .cargo-box {
  border-color: rgba(57, 217, 138, 0.3);
  background: rgba(10, 14, 18, 0.4);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
}

.pixel-truck.truck-ghost .cargo-body {
  border-top-color: rgba(158, 166, 179, 0.18);
  border-bottom-color: rgba(158, 166, 179, 0.3);
  background: rgba(10, 13, 17, 0.78);
}

.ground-shadow {
  position: absolute;
  bottom: 24px;
  left: 64px;
  width: 724px;
  height: 12px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 1;
  clip-path: polygon(12px 0, calc(100% - 12px) 0,
      100% 4px, 100% 8px,
      calc(100% - 12px) 100%, 12px 100%,
      0 8px, 0 4px);
}

.cargo-box {
  position: absolute;
  top: 28px;
  left: 260px;
  width: 520px;
  height: 220px;
  background: #f0f0ed;
  border: 4px solid var(--outline);
  z-index: 5;
  display: flex;
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%, 0 4px);
}

.cargo-pillar {
  width: 24px;
  height: 100%;
  background: var(--metal-mid);
  border-right: 4px solid var(--outline);
  box-shadow: inset 4px 0 0 var(--metal-light), inset -4px 0 0 var(--metal-dark);
  z-index: 5;
}

.cargo-pillar.right {
  border-right: none;
  border-left: 4px solid var(--outline);
}

.cargo-body {
  flex: 1;
  height: 100%;
  border-top: 12px solid var(--metal-mid);
  border-bottom: 12px solid var(--metal-mid);
  position: relative;
  overflow: hidden;
  background: #14171c;
  transition: background 0.6s ease, border-color 0.6s ease;
}

.cargo-interior {
  position: absolute;
  inset: 0;
  transform: scaleX(-1);
  background: repeating-linear-gradient(90deg, rgba(27, 31, 38, 0.65) 0px, rgba(27, 31, 38, 0.65) 36px, rgba(17, 20, 25, 0.85) 36px, rgba(17, 20, 25, 0.85) 40px);
  box-shadow: inset 0 18px 0 rgba(8, 10, 14, 0.85), inset 0 -6px 0 #262b34;
  z-index: 2;
  overflow: hidden;
}

.unload-box {
  position: absolute;
  width: 58px;
  height: 58px;
  background: #a87542;
  border: 4px solid #573b24;
  box-shadow: inset 0 0 0 4px #c9985c, 4px 4px 0 rgba(0, 0, 0, 0.5);
  z-index: 5;
  touch-action: none;
  user-select: none;
  cursor: grab;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 4px 5px;
  transition: filter 0.18s ease, outline 0.15s ease;
}

.unload-box::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: #805630;
  border-left: 2px solid #634226;
  border-right: 2px solid #634226;
  pointer-events: none;
}

.unload-box:nth-child(even) {
  background: #b6804b;
  box-shadow: inset 0 0 0 4px #d6a56c, 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.unload-box span {
  position: relative;
  z-index: 2;
  font: 900 11px/1 monospace;
  color: #f8ebd7;
  background: rgba(16, 20, 24, 0.78);
  padding: 2px 5px;
  border: 1px solid #3e2a19;
  pointer-events: none;
}

.unload-box:hover {
  filter: brightness(1.14);
}

.unload-box:active,
.unload-box.dragging {
  cursor: grabbing;
  z-index: 30 !important;
  filter: drop-shadow(6px 10px 4px rgba(0, 0, 0, 0.7)) brightness(1.15);
}

.unload-box.selected {
  z-index: 25 !important;
  outline: 3px solid var(--neon-bright);
  outline-offset: 3px;
  filter: drop-shadow(0 0 12px rgba(94, 255, 101, 0.65));
}

.unload-box.selected span {
  background: var(--neon-bright);
  color: #042014;
  border-color: #042014;
}

.cargo-shutter {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, #f2f2ef 0px, #f2f2ef 12px, #deded9 12px, #deded9 16px);
  border-bottom: 4px solid var(--outline);
  box-shadow: inset 0 4px 0 var(--metal-light), inset 0 -4px 0 var(--metal-dark);
  z-index: 8;
  transform: translateY(0%);
  transition: transform 0.65s steps(15), opacity 0.5s ease;
}

.cargo-shutter.open {
  transform: translateY(-93%);
}

.pixel-truck.truck-ghost .cargo-shutter.open {
  opacity: 0.2;
}

.px-light {
  position: absolute;
  width: 20px;
  height: 12px;
  background: var(--amber);
  border: 4px solid var(--outline);
  box-shadow: inset 0 4px 0 var(--amber-light);
  z-index: 9;
  pointer-events: none;
}

.px-light.tl {
  top: 4px;
  left: 8px;
}

.px-light.tr {
  top: 4px;
  right: 8px;
}

.px-light.bl {
  bottom: 4px;
  left: 8px;
}

.px-light.br {
  bottom: 4px;
  right: 8px;
}

.rear-tail-light {
  position: absolute;
  top: 184px;
  left: 780px;
  width: 12px;
  height: 40px;
  background: #d91616;
  border: 4px solid var(--outline);
  border-left: none;
  box-shadow: inset -4px 4px 0 #ff4d4d;
  z-index: 4;
}

.cabin-wrapper {
  position: absolute;
  top: 72px;
  left: 68px;
  width: 192px;
  height: 176px;
  z-index: 6;
}

.cabin-outline {
  position: absolute;
  inset: 0;
  background: var(--outline);
  clip-path: polygon(84px 0, 192px 0, 192px 176px, 0 176px,
      0 108px, 4px 108px, 4px 92px, 8px 92px,
      8px 76px, 12px 76px, 12px 60px, 16px 60px,
      16px 44px, 20px 44px, 20px 28px, 28px 28px,
      28px 20px, 36px 20px, 36px 12px, 52px 12px,
      52px 8px, 68px 8px, 68px 4px, 84px 4px);
}

.cabin-fill {
  position: absolute;
  inset: 4px;
  background: var(--green-main);
  clip-path: polygon(80px 0, 184px 0, 184px 168px, 0 168px,
      0 104px, 4px 104px, 4px 88px, 8px 88px,
      8px 72px, 12px 72px, 12px 56px, 16px 56px,
      16px 40px, 20px 40px, 20px 24px, 28px 24px,
      28px 16px, 36px 16px, 36px 8px, 52px 8px,
      52px 4px, 68px 4px, 68px 0);
  box-shadow: inset -8px 0 0 var(--green-dark), inset 0 8px 0 var(--green-light);
}

.windshield {
  position: absolute;
  top: 28px;
  left: 4px;
  width: 28px;
  height: 80px;
  background: #8ab8e6;
  border: 4px solid var(--outline);
  z-index: 8;
  clip-path: polygon(16px 0, 28px 0, 28px 16px, 24px 16px,
      24px 32px, 20px 32px, 20px 48px, 16px 48px,
      16px 64px, 12px 64px, 12px 80px, 0 80px,
      0 64px, 4px 64px, 4px 48px, 8px 48px,
      8px 32px, 12px 32px, 12px 16px, 16px 16px);
  box-shadow: inset 4px 4px 0 #cce6ff;
}

.door-line {
  position: absolute;
  top: 24px;
  left: 32px;
  width: 136px;
  height: 140px;
  border: 4px solid var(--green-dark);
  border-bottom: none;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px, 12px 12px);
}

.window-container {
  position: absolute;
  top: 32px;
  left: 40px;
  width: 108px;
  height: 76px;
  background: #6c91b8;
  border: 4px solid var(--outline);
  overflow: hidden;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px, 8px 8px);
}

.window-glare {
  position: absolute;
  top: 0;
  left: 12px;
  width: 24px;
  height: 100%;
  background: rgba(158, 194, 232, 0.4);
  transform: skewX(-20deg);
  box-shadow: 8px 0 0 rgba(205, 227, 250, 0.4);
  pointer-events: none;
  z-index: 6;
}

.seat {
  position: absolute;
  bottom: 0;
  right: 4px;
  width: 20px;
  height: 52px;
  background: #333942;
  border: 4px solid var(--outline);
  border-bottom: none;
  box-shadow: inset 4px 4px 0 #4d5663;
  z-index: 2;
}

.steering-wheel {
  position: absolute;
  bottom: 0;
  left: 8px;
  width: 24px;
  height: 28px;
  border-top: 4px solid var(--outline);
  border-right: 4px solid var(--outline);
  z-index: 7;
}

.driver-image-slot {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.driver-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.mirror-arm {
  position: absolute;
  top: 36px;
  left: -20px;
  width: 48px;
  height: 60px;
  border: 4px solid var(--outline);
  border-right: none;
  z-index: 10;
}

.mirror-head {
  position: absolute;
  top: 48px;
  left: -32px;
  width: 20px;
  height: 40px;
  background: #3a3f47;
  border: 4px solid var(--outline);
  box-shadow: inset 4px 0 0 var(--metal-dark);
  z-index: 11;
}

.door-handle {
  position: absolute;
  top: 116px;
  right: 32px;
  width: 24px;
  height: 12px;
  background: #333942;
  border: 4px solid var(--outline);
}

.front-grille {
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 12px;
  height: 36px;
  background: repeating-linear-gradient(to bottom, var(--outline) 0px, var(--outline) 4px, #4a5059 4px, #4a5059 8px);
  border: 4px solid var(--outline);
  z-index: 8;
}

.headlight {
  position: absolute;
  bottom: 4px;
  left: 12px;
  width: 20px;
  height: 36px;
  border: 4px solid var(--outline);
  background: #ffffff;
  box-shadow: inset 0 16px 0 var(--amber);
  z-index: 8;
}

.cabin-blinker {
  position: absolute;
  bottom: 16px;
  left: 40px;
  width: 20px;
  height: 12px;
  background: var(--amber);
  border: 4px solid var(--outline);
  z-index: 8;
}

.front-bumper {
  position: absolute;
  top: 244px;
  left: 60px;
  width: 56px;
  height: 40px;
  background: #3a3f47;
  border: 4px solid var(--outline);
  box-shadow: inset 0 4px 0 var(--metal-dark);
  z-index: 8;
}

.bumper-light {
  position: absolute;
  top: 8px;
  left: 4px;
  width: 12px;
  height: 16px;
  background: var(--amber);
  border: 4px solid var(--outline);
}

.chassis {
  position: absolute;
  top: 244px;
  left: 112px;
  width: 656px;
  height: 44px;
  background: #22262b;
  border: 4px solid var(--outline);
  z-index: 3;
}

.wheel-arch {
  position: absolute;
  top: 216px;
  width: 136px;
  height: 76px;
  background: #2f343b;
  border: 4px solid var(--outline);
  z-index: 7;
  clip-path: polygon(24px 0, 112px 0, 112px 8px, 124px 8px,
      124px 20px, 136px 20px, 136px 76px, 0 76px,
      0 20px, 12px 20px, 12px 8px, 24px 8px);
  box-shadow: inset 0 4px 0 var(--metal-dark);
}

.wheel-arch.front {
  left: 124px;
}

.wheel-arch.rear {
  left: 576px;
  z-index: 4;
}

.fuel-tank {
  position: absolute;
  top: 252px;
  left: 268px;
  width: 68px;
  height: 40px;
  background: #3a3f47;
  border: 4px solid var(--outline);
  box-shadow: inset 0 8px 0 var(--metal-dark), inset 0 -8px 0 #262a30;
  z-index: 6;
}

.side-guards {
  position: absolute;
  top: 248px;
  left: 348px;
  width: 220px;
  height: 48px;
  z-index: 6;
}

.guard-post {
  position: absolute;
  top: 0;
  width: 16px;
  height: 48px;
  background: var(--metal-dark);
  border: 4px solid var(--outline);
}

.guard-post.p1 {
  left: 16px;
}

.guard-post.p2 {
  left: 102px;
}

.guard-post.p3 {
  right: 16px;
}

.guard-rail {
  position: absolute;
  left: 0;
  width: 100%;
  height: 16px;
  background: var(--metal-mid);
  border: 4px solid var(--outline);
  box-shadow: inset 0 4px 0 var(--metal-light);
}

.guard-rail.r1 {
  top: 8px;
}

.guard-rail.r2 {
  top: 28px;
}

.rear-bumper {
  position: absolute;
  top: 248px;
  left: 736px;
  width: 40px;
  height: 52px;
  background: #2f343b;
  border: 4px solid var(--outline);
  z-index: 4;
}

.rear-amber {
  position: absolute;
  top: 4px;
  right: 0;
  width: 12px;
  height: 20px;
  background: var(--amber);
  border-left: 4px solid var(--outline);
  border-bottom: 4px solid var(--outline);
}

.pixel-wheel {
  position: absolute;
  top: 236px;
  width: 96px;
  height: 96px;
  background: var(--outline);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: polygon(28px 0, 68px 0, 68px 4px, 80px 4px, 80px 12px, 88px 12px, 88px 24px, 96px 24px,
      96px 72px, 88px 72px, 88px 84px, 80px 84px, 80px 92px, 68px 92px, 68px 96px,
      28px 96px, 28px 92px, 16px 92px, 16px 84px, 8px 84px, 8px 72px, 0 72px,
      0 24px, 8px 24px, 8px 12px, 16px 12px, 16px 4px, 28px 4px);
}

.tire-inner {
  width: 88px;
  height: 88px;
  background: #2b3036;
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: polygon(24px 0, 64px 0, 64px 8px, 76px 8px, 76px 20px, 88px 20px,
      88px 68px, 76px 68px, 76px 80px, 64px 80px, 64px 88px,
      24px 88px, 24px 80px, 12px 80px, 12px 68px, 0 68px,
      0 20px, 12px 20px, 12px 8px, 24px 8px);
}

.pixel-wheel.front {
  left: 144px;
}

.pixel-wheel.rear {
  left: 596px;
}

.pixel-wheel.rear-double {
  left: 572px;
  z-index: 2;
}

.pixel-wheel.rear-double .tire-inner {
  background: #191c20;
}

.pixel-rim {
  width: 52px;
  height: 52px;
  background: var(--metal-mid);
  border: 4px solid var(--outline);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: polygon(12px 0, 40px 0, 40px 4px, 48px 4px, 48px 12px, 52px 12px,
      52px 40px, 48px 40px, 48px 48px, 40px 48px, 40px 52px,
      12px 52px, 12px 48px, 4px 48px, 4px 40px, 0 40px,
      0 12px, 4px 12px, 4px 4px, 12px 4px);
  box-shadow: inset 4px 4px 0 var(--metal-light);
}

.truck-mover.entering .pixel-rim {
  animation: wheelSpinArrive 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.truck-mover.exiting .pixel-rim {
  animation: wheelSpinDepart 0.9s ease-in forwards;
}

.pixel-nuts {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--outline);
  box-shadow:
    0 -14px 0 var(--outline), 0 14px 0 var(--outline),
    -14px 0 0 var(--outline), 14px 0 0 var(--outline),
    -10px -10px 0 var(--outline), 10px -10px 0 var(--outline),
    -10px 10px 0 var(--outline), 10px 10px 0 var(--outline);
}

.pixel-hub {
  width: 20px;
  height: 20px;
  background: #4a5059;
  border: 4px solid var(--outline);
}

.speed-smoke {
  position: absolute;
  bottom: 36px;
  left: 720px;
  width: 28px;
  height: 28px;
  background: #d0d7e1;
  border: 4px solid var(--outline);
  box-shadow: 24px -12px 0 -4px #9ea6b3, 44px -4px 0 -6px #d0d7e1;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.truck-mover.exiting .speed-smoke {
  animation: smokeBlast 0.7s steps(4) forwards;
}

@keyframes truckArrive {
  0% {
    transform: translate3d(-120vw, 0, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes truckDepart {
  0% {
    transform: translate3d(0, 0, 0);
  }

  12% {
    transform: translate3d(-14px, 0, 0);
  }

  100% {
    transform: translate3d(130vw, 0, 0);
  }
}

@keyframes wheelSpinArrive {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-1080deg);
  }
}

@keyframes wheelSpinDepart {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-2160deg);
  }
}

@keyframes arriveBounce {

  0%,
  20%,
  40%,
  60%,
  80% {
    transform: translateY(0) rotate(0deg);
  }

  10%,
  30%,
  50%,
  70% {
    transform: translateY(-4px) rotate(0deg);
  }

  90% {
    transform: translateY(2px) rotate(-1.8deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes departTilt {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(2px) rotate(2.2deg);
  }

  100% {
    transform: translateY(0) rotate(1deg);
  }
}

@keyframes smokeBlast {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }

  30% {
    opacity: 1;
    transform: translate(40px, -12px) scale(1.4);
  }

  100% {
    opacity: 0;
    transform: translate(110px, -30px) scale(2.2);
  }
}

.spacktr-card {
  position: absolute;
  z-index: 30;
  right: clamp(36px, 8vw, 130px);
  top: 56%;
  width: 440px;
  max-width: calc(100vw - 28px);
  direction: ltr;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateY(20px) scale(0.96);
  transition:
    opacity 0.28s steps(5),
    transform 0.28s steps(5),
    filter 0.25s ease,
    visibility 0s linear 0.28s;
  filter:
    drop-shadow(0 0 2px rgba(101, 255, 108, 0.6))
    drop-shadow(0 0 10px rgba(57, 243, 90, 0.45))
    drop-shadow(0 0 22px rgba(36, 201, 67, 0.25));
}

.spacktr-card.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateY(0) scale(1);
  transition:
    opacity 0.28s steps(5),
    transform 0.28s steps(5),
    filter 0.25s ease,
    visibility 0s;
}

.spacktr-card:hover {
  filter:
    drop-shadow(0 0 3px rgba(128, 255, 134, 0.8))
    drop-shadow(0 0 14px rgba(57, 243, 90, 0.65))
    drop-shadow(0 0 28px rgba(36, 201, 67, 0.35));
}

.pixel-card-outer {
  position: relative;
  background: linear-gradient(180deg, #5cff64 0%, #2ed13e 50%, #46f053 100%);
  padding: 5px;
  clip-path: polygon(0px 28px, 6px 28px, 6px 14px, 14px 14px, 14px 6px, 28px 6px, 28px 0px,
      64px 0px, 64px 4px, calc(100% - 64px) 4px, calc(100% - 64px) 0px,
      calc(100% - 28px) 0px, calc(100% - 28px) 6px, calc(100% - 14px) 6px, calc(100% - 14px) 14px, calc(100% - 6px) 14px, calc(100% - 6px) 28px, 100% 28px,
      100% 64px, calc(100% - 4px) 64px, calc(100% - 4px) calc(100% - 64px), 100% calc(100% - 64px),
      100% calc(100% - 28px), calc(100% - 6px) calc(100% - 28px), calc(100% - 6px) calc(100% - 14px), calc(100% - 14px) calc(100% - 14px), calc(100% - 14px) calc(100% - 6px), calc(100% - 28px) calc(100% - 6px), calc(100% - 28px) 100%,
      calc(100% - 64px) 100%, calc(100% - 64px) calc(100% - 4px), 64px calc(100% - 4px), 64px 100%,
      28px 100%, 28px calc(100% - 6px), 14px calc(100% - 6px), 14px calc(100% - 14px), 6px calc(100% - 14px), 6px calc(100% - 28px), 0px calc(100% - 28px),
      0px calc(100% - 64px), 4px calc(100% - 64px), 4px 64px, 0px 64px);
}

.pixel-card-inner {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(52, 214, 68, 0.08), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(52, 214, 68, 0.06), transparent 45%),
    linear-gradient(180deg, #09130e 0%, #060b08 100%);
  padding: 16px 18px 18px;
  clip-path: polygon(0px 25px, 6px 25px, 6px 12px, 12px 12px, 12px 6px, 25px 6px, 25px 0px,
      62px 0px, 62px 3px, calc(100% - 62px) 3px, calc(100% - 62px) 0px,
      calc(100% - 25px) 0px, calc(100% - 25px) 6px, calc(100% - 12px) 6px, calc(100% - 12px) 12px, calc(100% - 6px) 12px, calc(100% - 6px) 25px, 100% 25px,
      100% 62px, calc(100% - 3px) 62px, calc(100% - 3px) calc(100% - 62px), 100% calc(100% - 62px),
      100% calc(100% - 25px), calc(100% - 6px) calc(100% - 25px), calc(100% - 6px) calc(100% - 12px), calc(100% - 12px) calc(100% - 12px), calc(100% - 12px) calc(100% - 6px), calc(100% - 25px) calc(100% - 6px), calc(100% - 25px) 100%,
      calc(100% - 62px) 100%, calc(100% - 62px) calc(100% - 3px), 62px calc(100% - 3px), 62px 100%,
      25px 100%, 25px calc(100% - 6px), 12px calc(100% - 6px), 12px calc(100% - 12px), 6px calc(100% - 12px), 6px calc(100% - 25px), 0px calc(100% - 25px),
      0px calc(100% - 62px), 3px calc(100% - 62px), 3px 62px, 0px 62px);
  box-shadow: inset 0 0 0 2px #153820;
}

.pixel-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(74, 246, 89, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.35;
}

.card-top-preview {
  position: relative;
  height: 175px;
  width: 100%;
  background: #0d1512;
  border: 3px solid #1c3a27;
  box-shadow: inset 0 0 0 2px #050a07, 0 4px 0 #040806;
  overflow: hidden;
  clip-path: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0,
      calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
      100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
      8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
}

.project-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
  filter: contrast(1.06) saturate(1.05);
  transition: transform 0.3s steps(4);
}

.spacktr-card:hover .project-preview-image {
  transform: scale(1.03);
}

.preview-expand-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(7, 16, 11, 0.88);
  border: 2px solid #286e34;
  box-shadow: 0 0 0 2px #050a07;
  display: grid;
  place-items: center;
  color: var(--neon-bright);
  cursor: pointer;
  z-index: 4;
  transition: background 0.15s steps(2), border-color 0.15s steps(2), transform 0.15s steps(2);
}

.preview-expand-btn:hover {
  background: #132e1b;
  border-color: var(--neon-bright);
  transform: scale(1.06);
}

.preview-expand-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--neon-bright);
  stroke-width: 2.4;
  stroke-linecap: square;
}

.card-dark-body {
  position: relative;
  z-index: 2;
  padding: 16px 2px 2px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.title-with-cube {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.pixel-cube-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(94, 255, 101, 0.35));
}

.title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.spacktr-title {
  font-family: 'Press Start 2P', 'Silkscreen', monospace;
  font-size: 15px;
  line-height: 1.3;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 0 #040806;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-underline {
  height: 3px;
  width: 100%;
  max-width: 220px;
  background: linear-gradient(90deg, var(--neon-bright) 0%, #29a336 75%, transparent 100%);
  box-shadow: 0 0 8px rgba(94, 255, 101, 0.45);
}

.category-pill {
  flex-shrink: 0;
  font-family: 'VT323', monospace;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.8px;
  color: var(--neon-bright);
  background: rgba(14, 38, 22, 0.85);
  border: 2px solid #2ea83b;
  padding: 5px 10px;
  text-transform: uppercase;
  box-shadow: inset 0 0 8px rgba(94, 255, 101, 0.15);
  clip-path: polygon(0 4px, 4px 4px, 4px 0,
      calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
      100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
      4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}

.spacktr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.spacktr-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  line-height: 1;
  color: #e9f5ec;
  background: #0d1713;
  border: 2px solid #2c4237;
  padding: 5px 11px;
  box-shadow: 2px 2px 0 #040705;
  clip-path: polygon(0 5px, 5px 5px, 5px 0,
      calc(100% - 5px) 0, calc(100% - 5px) 5px, 100% 5px,
      100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%,
      5px 100%, 5px calc(100% - 5px), 0 calc(100% - 5px));
}

.spacktr-tag svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.spacktr-desc {
  font-family: 'Share Tech Mono', monospace;
  font-size: 15.5px;
  line-height: 1.45;
  color: #c7d4cb;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 68px;
}

.spacktr-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
}

.spacktr-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 12px;
  font-family: 'VT323', monospace;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s steps(2), filter 0.15s ease, background 0.15s ease;
  clip-path: polygon(0 6px, 6px 6px, 6px 0,
      calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
      100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
      6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
}

.spacktr-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.spacktr-btn.btn-primary {
  background: linear-gradient(180deg, #80ff72 0%, #58e84c 100%);
  color: #061409;
  border: 2px solid #b4ffab;
  box-shadow: inset 0 -3px 0 #2ea824, 0 0 16px rgba(94, 255, 101, 0.35);
}

.spacktr-btn.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.spacktr-btn.btn-secondary {
  background: #16221d;
  color: #e6f2ea;
  border: 2px solid #354d42;
  box-shadow: inset 0 -3px 0 #0c1411;
}

.spacktr-btn.btn-secondary:hover {
  background: #1e3028;
  border-color: var(--neon-bright);
  color: #ffffff;
  transform: translateY(-2px);
}

.spacktr-card.card-pulse {
  animation: pixelCardPulse 0.26s steps(3);
}

@keyframes pixelCardPulse {
  0% {
    filter: brightness(0.82) drop-shadow(0 0 6px rgba(57, 243, 90, 0.4));
  }

  50% {
    filter: brightness(1.18) drop-shadow(0 0 18px rgba(57, 243, 90, 0.9));
  }

  100% {
    filter:
      drop-shadow(0 0 2px #65ff6c) drop-shadow(0 0 10px rgba(57, 243, 90, 0.65)) drop-shadow(0 0 26px rgba(36, 201, 67, 0.38));
  }
}

