/* Current gameplay additions layered inside the untouched 03637370 tracker shell. */

.tracker-device-frame { grid-template-rows: 78px minmax(0, 1fr) 52px; }

.tracker-logo-image {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.brand-plaque { width: 330px; max-width: calc(100% - 20px); padding: 3px 10px 2px; }
.brand-subtitle { margin-top: 1px; }

.hanging-spidey {
  position: absolute;
  z-index: 11;
  top: 0;
  right: 76px;
  left: auto;
  width: 71px;
  height: 105px;
  pointer-events: none;
  image-rendering: pixelated;
  background: url('../assets/spideytracker/SpiderMan_web.png') no-repeat 0 0 / 5467px 105px;
  filter: drop-shadow(3px 4px 0 rgba(0,0,0,.55));
  transform: none;
  animation: none;
}

.frame-bottom-bar {
  min-height: 0;
  padding: 5px 10px 5px 66px;
  gap: 8px;
}

.spidey-head-turn-sprite {
  width: 46px;
  height: 74px;
  left: 12px;
  bottom: 1px;
  background: url('../assets/spideytracker/SpiderMan_HeadTurn.png') no-repeat 0 0 / 3492px 74px;
  animation: none;
}

.game-primary-nav { z-index: 55; pointer-events: auto !important; }
.game-primary-nav button { pointer-events: auto !important; touch-action: manipulation; }

.ticker-wrap {
  height: 34px;
  padding: 0 10px;
  border-width: 3px;
}

.ticker-content { font-size: 7px; }

.frame-bottom-bar .sound-toggle {
  width: 92px;
  height: 34px;
  min-width: 92px;
  border-width: 3px;
  box-shadow: inset 0 0 0 2px #c8e6b5, 2px 2px 0 rgba(0,0,0,.35);
}

.frame-bottom-bar .sound-toggle svg { width: 18px; height: 18px; }
.frame-bottom-bar .sound-toggle span { font-size: 6px; }

.action-rpg-screen {
  inset: 0 0 72px;
  background: #050d18;
}

.action-combat-stage {
  background: #000;
  box-shadow: inset 0 0 0 2px #397c9b;
}

.city-layer,
.city-rain,
.combat-center-mark { display: none !important; }

.action-fighter--hero .hero-sprite-actor,
.combat-placeholder,
.roster-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 4px solid #05070b;
  background: #54b6d0 !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 4px #b9e5ea, 5px 6px 0 rgba(0,0,0,.6);
  color: #071426;
  clip-path: polygon(50% 0, 88% 17%, 100% 55%, 78% 100%, 22% 100%, 0 55%, 12% 17%);
}

.action-fighter--hero .hero-sprite-actor::before,
.combat-placeholder::before,
.roster-placeholder::before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.hero-sprite-actor b,
.combat-placeholder b,
.roster-placeholder b {
  position: relative;
  z-index: 1;
  font: 700 7px/1 "Silkscreen", monospace;
}

.combat-placeholder--enemy {
  width: 86px;
  height: 86px;
  margin: 0 auto;
  background: #f0645c !important;
  box-shadow: inset 0 0 0 4px #ffaaa2, 5px 6px 0 rgba(0,0,0,.6);
}

.action-fighter--enemy.enemy--grunt .combat-placeholder { transform: scale(.78); filter: saturate(.75); }
.action-fighter--enemy.enemy--elite .combat-placeholder { transform: scale(.92); filter: hue-rotate(14deg); }
.roster-placeholder { width: 62px; height: 62px; background: #f0645c !important; }
.roster-placeholder--ally { background: #83b96b !important; }

@media (max-width: 800px) {
  .tracker-device-frame { grid-template-rows: 64px minmax(0, 1fr) 46px; }
  .brand-plaque { width: 230px; }
  .frame-bottom-bar { padding: 4px 6px 4px 48px; }
  .spidey-head-turn-sprite { left: 1px; bottom: -1px; transform: scale(.74); transform-origin: bottom left; }
  .ticker-wrap { height: 32px; }
  .frame-bottom-bar .sound-toggle { width: 48px; min-width: 48px; height: 32px; }
  .frame-bottom-bar .sound-toggle span { display: none; }
  .hanging-spidey { right: 52px; transform: scale(.82); transform-origin: top right; }
  .action-rpg-screen { inset: 0 0 66px; }
}

@media (max-width: 500px) {
  .action-fighter--hero .hero-sprite-actor,
  .combat-placeholder { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .hanging-spidey,
  .spidey-head-turn-sprite { animation: none; }
}
