/* Homepage card artwork overrides.
   Street Scrappers and Space Intruders are permanently pinned first.
   Future game cards should be added after those two, newest first. */

.gameplay-shot {
  position: relative;
  isolation: isolate;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.shot-hud {
  position: absolute;
  top: 9px;
  left: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 #05060a;
}

.shot-hud span {
  padding: 3px 6px;
  border: 2px solid rgba(255,255,255,.56);
  background: rgba(2,4,12,.72);
}

/* Street Scrappers: Central Station gameplay frame */
.scrappers .scrappers-shot {
  background: #171a25;
}

.scrappers-shot .station-wall {
  position: absolute;
  inset: 0 0 54px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 32%),
    linear-gradient(180deg, #27385d 0 18%, #596778 18% 22%, #263349 22% 68%, #161b26 68% 100%);
}

.scrappers-shot .station-wall::before {
  content: "CENTRAL STATION";
  position: absolute;
  top: 34px;
  left: 22px;
  padding: 5px 9px;
  border: 3px solid #151821;
  background: #f2bf32;
  color: #12141b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: .05em;
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
}

.scrappers-shot .station-wall::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 88px;
  height: 34px;
  border-top: 5px solid #68778c;
  border-bottom: 5px solid #111620;
  background:
    repeating-linear-gradient(90deg, #172238 0 52px, #364968 52px 58px, #172238 58px 110px);
}

.scrappers-shot .passing-train {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  top: 92px;
  height: 42px;
  border: 4px solid #11151d;
  background:
    repeating-linear-gradient(90deg, #c94646 0 48px, #f2d16a 48px 54px, #c94646 54px 102px),
    #c94646;
  box-shadow: inset 0 -10px 0 #7d242e, 0 7px 0 rgba(0,0,0,.28);
}

.scrappers-shot .passing-train::before {
  content: "";
  position: absolute;
  inset: 7px 10px 14px;
  background: repeating-linear-gradient(90deg, #8bd3f4 0 24px, #24344e 24px 31px);
}

.scrappers-shot .station-pillar {
  position: absolute;
  z-index: 5;
  top: 24px;
  bottom: 42px;
  left: 50%;
  width: 18px;
  transform: translateX(-50%);
  border-left: 4px solid #78818d;
  border-right: 4px solid #252b33;
  background: #4b535d;
}

.scrappers-shot .platform-floor {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  border-top: 7px solid #a2a6aa;
  background:
    linear-gradient(180deg, transparent 0 15px, rgba(0,0,0,.16) 15px 18px, transparent 18px),
    repeating-linear-gradient(90deg, #4c5058 0 35px, #3c4048 35px 70px);
}

.scrappers-shot .platform-floor::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 7px;
  background: repeating-linear-gradient(90deg, #f2bf32 0 34px, transparent 34px 57px);
}

.scrappers-shot .fighter {
  position: absolute;
  z-index: 12;
  bottom: 45px;
  width: 44px;
  height: 70px;
  filter: drop-shadow(5px 7px 0 rgba(0,0,0,.35));
}

.scrappers-shot .fighter::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 10px;
  width: 25px;
  height: 25px;
  background: #e6a56f;
  box-shadow: inset 0 -7px 0 rgba(99,52,36,.35), 0 -6px 0 var(--hair);
  clip-path: polygon(12% 0, 86% 0, 100% 24%, 93% 88%, 70% 100%, 20% 93%, 0 65%, 3% 18%);
}

.scrappers-shot .fighter::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 17px;
  width: 72px;
  height: 15px;
  background: var(--shirt);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.22);
  clip-path: polygon(0 24%, 26% 0, 74% 0, 100% 24%, 91% 100%, 9% 100%);
}

.scrappers-shot .fighter-body {
  position: absolute;
  inset: 0 4px 0;
  background: var(--shirt);
  box-shadow: inset 0 -18px 0 var(--trousers);
  clip-path: polygon(18% 0, 82% 0, 100% 65%, 77% 100%, 55% 100%, 50% 66%, 44% 100%, 20% 100%, 0 65%);
}

.scrappers-shot .hero-fighter {
  left: 52px;
  --hair: #bd242c;
  --shirt: #2c75ef;
  --trousers: #172c67;
}

.scrappers-shot .thug-fighter {
  right: 52px;
  --hair: #1a1718;
  --shirt: #a83845;
  --trousers: #39252d;
  transform: scaleX(-1);
}

.scrappers-shot .impact-flash {
  position: absolute;
  z-index: 18;
  top: 94px;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff3a4;
  box-shadow:
    16px 0 0 #f7bf32,
    -16px 0 0 #f7bf32,
    0 16px 0 #f7bf32,
    0 -16px 0 #f7bf32;
}

/* Space Intruders: active gameplay frame based on the game canvas */
.spaceintruders .space-shot {
  background:
    radial-gradient(circle at 50% 0%, #15244f 0%, #081536 44%, #030612 100%);
}

.space-shot .star-field {
  position: absolute;
  inset: 0;
  opacity: .92;
  background:
    radial-gradient(circle at 8% 17%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 17% 61%, #71e7ff 0 2px, transparent 3px),
    radial-gradient(circle at 27% 29%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 39% 73%, #ffd166 0 2px, transparent 3px),
    radial-gradient(circle at 51% 20%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 64% 58%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 76% 27%, #71e7ff 0 2px, transparent 3px),
    radial-gradient(circle at 89% 69%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 94% 14%, #ffd166 0 2px, transparent 3px);
}

.space-shot .mystery-saucer {
  position: absolute;
  z-index: 4;
  top: 34px;
  right: 34px;
  width: 48px;
  height: 14px;
  border: 3px solid #070b18;
  background: #ff5d73;
  box-shadow: inset 0 -5px 0 #9c2c49, 0 0 13px rgba(255,93,115,.72);
  clip-path: polygon(16% 0, 84% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%);
}

.space-shot .alien-formation {
  position: absolute;
  z-index: 6;
  top: 49px;
  left: 28px;
  right: 28px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px 7px;
}

.space-shot .invader {
  position: relative;
  height: 16px;
  color: #60f2a6;
  background: currentColor;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 3px 0 rgba(0,0,0,.3);
  clip-path: polygon(20% 0, 80% 0, 80% 18%, 100% 18%, 100% 78%, 81% 78%, 81% 100%, 64% 100%, 64% 78%, 36% 78%, 36% 100%, 19% 100%, 19% 78%, 0 78%, 0 18%, 20% 18%);
}

.space-shot .invader:nth-child(n+9):nth-child(-n+16) { color: #71e7ff; }
.space-shot .invader:nth-child(n+17) { color: #ff7ae6; }

.space-shot .invader::before,
.space-shot .invader::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 3px;
  height: 3px;
  background: #07101e;
}
.space-shot .invader::before { left: 24%; }
.space-shot .invader::after { right: 24%; }

.space-shot .defence-line {
  position: absolute;
  z-index: 5;
  left: 28px;
  right: 28px;
  bottom: 42px;
  display: flex;
  justify-content: space-around;
}

.space-shot .shield-bunker {
  width: 42px;
  height: 24px;
  background: #60f2a6;
  box-shadow: inset 0 -7px 0 #248a5b;
  clip-path: polygon(16% 0, 84% 0, 100% 34%, 100% 100%, 65% 100%, 65% 66%, 35% 66%, 35% 100%, 0 100%, 0 34%);
}

.space-shot .player-ship {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 12px;
  width: 62px;
  height: 28px;
  transform: translateX(-50%);
  background: #71e7ff;
  filter: drop-shadow(0 0 8px rgba(113,231,255,.8));
  clip-path: polygon(42% 0, 58% 0, 64% 32%, 82% 32%, 100% 100%, 0 100%, 18% 32%, 36% 32%);
}

.space-shot .player-shot {
  position: absolute;
  z-index: 8;
  left: calc(50% - 2px);
  bottom: 43px;
  width: 4px;
  height: 46px;
  background: #ffd166;
  box-shadow: 0 0 10px rgba(255,209,102,.85);
}

.space-shot .alien-shot {
  position: absolute;
  z-index: 8;
  right: 28%;
  top: 105px;
  width: 4px;
  height: 34px;
  background: #ff5d73;
  box-shadow: 0 0 8px rgba(255,93,115,.8);
}
