.giveaway-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin: 12px 0;
  padding: 10px 16px;
  border: 1px solid #ff2a2a;
  background: rgba(20, 0, 0, 0.75);
  box-shadow: 0 0 16px rgba(255, 30, 30, 0.45), inset 0 0 12px rgba(255, 30, 30, 0.15);
  color: #e8e8ee;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.giveaway-banner:hover {
  box-shadow: 0 0 24px rgba(255, 60, 60, 0.7), inset 0 0 14px rgba(255, 30, 30, 0.25);
}

.giveaway-banner .gb-title {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.giveaway-banner .gb-timer {
  display: flex;
  gap: 8px;
}

.giveaway-banner .gb-unit {
  min-width: 56px;
  padding: 4px 6px;
  background: #0a0000;
  border: 1px solid rgba(255, 60, 60, 0.5);
  text-align: center;
  font-size: 0.65rem;
  color: #b9a0a0;
}

.giveaway-banner .gb-unit strong {
  display: block;
  color: #ff6b6b;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.social-links .nav-button {
  padding: 8px 15px;
  border: 1px solid #ff2a2a;
  border-radius: 0;
  background: rgba(255, 42, 42, 0.12);
  color: #f2f2f2;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background 0.15s;
}

.social-links .nav-button:hover {
  background: rgba(255, 42, 42, 0.45);
  box-shadow: inset 0 0 14px rgba(255, 90, 70, 0.8);
}

.scores-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.8);
}

.scores-modal[hidden] {
  display: none;
}

.scores-box {
  position: relative;
  width: min(460px, 100%);
  max-height: 85dvh;
  overflow-y: auto;
  padding: 22px 24px;
  background: rgba(6, 6, 6, 0.96);
  border: 1px solid #ff2a2a;
  box-shadow: 0 0 22px rgba(255, 42, 42, 0.6), inset 0 0 14px rgba(255, 42, 42, 0.15);
  color: #f2f2f2;
}

.scores-box h2 {
  margin: 0 0 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-shadow: 0 0 10px rgba(255, 42, 42, 0.9);
}

.scores-box ol {
  margin: 0;
  padding-left: 26px;
  line-height: 1.8;
}

.scores-box li::marker {
  color: #ff4040;
  font-weight: 700;
}

.scores-box.about-game {
  width: min(1100px, 100%);
}

.scores-box.about-game h2 {
  letter-spacing: 0.12em;
  padding: 0 40px;
}

.scores-box.about-game .map-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.scores-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 1px solid #ff2a2a;
  background: rgba(255, 42, 42, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.scores-close:hover {
  background: rgba(255, 42, 42, 0.5);
}

.hud-panel h1,
.hud-panel .stats,
.hud-panel .stats strong {
  color: #39ff6a;
  text-shadow: 0 0 8px rgba(57, 255, 106, 0.7);
}

.weapon-bar {
  grid-template-columns: repeat(4, minmax(0, 150px));
  justify-content: center;
  gap: 6px;
}

.weapon-slot {
  min-height: 34px;
  padding: 3px 8px;
  gap: 6px;
  font-size: 0.85rem;
}

.weapon-slot strong {
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .weapon-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .weapon-slot span,
  .weapon-slot kbd {
    display: none;
  }

  .weapon-slot {
    grid-template-columns: 28px auto;
    justify-content: center;
  }
}

.hud-leaderboard {
  padding: 5px 14px;
  border: 1px solid #ff2a2a;
  border-radius: 0;
  background: rgba(255, 42, 42, 0.12);
  color: #f2f2f2;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.hud-buttons {
  display: inline-flex;
  gap: 8px;
}

.potion-store {
  display: inline-flex;
  gap: 4px;
  margin-left: 12px;
  cursor: pointer;
}

.potion-slot {
  width: 18px;
  height: 18px;
  fill: rgba(255, 77, 109, 0.15);
  stroke: rgba(255, 120, 130, 0.8);
  stroke-width: 1.5;
}

.potion-slot.filled {
  fill: #ff4d6d;
  stroke: #fff;
  filter: drop-shadow(0 0 4px rgba(255, 77, 109, 0.9));
}

.hud-leaderboard:hover {
  background: rgba(255, 42, 42, 0.45);
  box-shadow: inset 0 0 14px rgba(255, 90, 70, 0.8);
}

.fs-mode .hud-leaderboard {
  pointer-events: auto;
  padding: 2px 8px;
  font-size: 0.7rem;
}

.hud-panel h1 {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

.fs-mode .hud-panel h1 {
  font-size: 0.75rem;
}


/* smaller mobile controls, jump button sits beside the left stick */
.mobile-controls {
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 14px 18px;
}

.stick {
    width: 96px;
    height: 96px;
}

.stick .knob {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
}

.jump-button {
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
    font-size: 0.75rem;
}

#aimStick {
    margin-left: 0;
}

.jump-button {
    margin-left: auto;
}

/* Mobile: health bar sits between the left stick and the jump button */
.is-mobile .health-wrap {
    position: fixed;
    left: 124px;
    right: 192px;
    bottom: 56px;
    z-index: 5;
    max-width: 180px;
    margin-inline: auto;
    display: block;
    pointer-events: none;
}

.is-mobile .health-wrap .health-label {
    display: none;
}

.is-mobile .health-wrap .health-bar {
    width: 100%;
}