@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');
@font-face {
  font-family: 'Monocraft';
  src: url('https://cdn.jsdelivr.net/gh/IdreesInc/Monocraft@main/dist/Monocraft-ttf/Monocraft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --shotam-red: #e8342a;
  --shotam-black: #0e0e0e;
  --shotam-stone: #232323;
  --shotam-stone-light: #3a3a3a;
  --shotam-white: #f5f5f0;
  --shotam-splash-yellow: #fffc54;
  --font-display: 'Press Start 2P', monospace;
  --font-mono: 'VT323', monospace;
  --font-mc: 'Monocraft', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--shotam-black);
  font-family: var(--font-mono);
}

a { text-decoration: none; color: inherit; }

/* ================= ШАПКА ================= */

.shotam-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 130px;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.35) 70%, transparent 100%);
  pointer-events: none;
}

.shotam-logo { grid-column: 2; display: flex; justify-content: center; pointer-events: auto; }
.shotam-logo-wrap { position: relative; display: inline-block; }

.shotam-logo-wrap img {
  height: 100px;
  width: auto;
  margin-top: 14px;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.5));
  display: block;
}

#shotam-splash {
  position: absolute;
  right: -6px; bottom: -6px;
  transform: rotate(-18deg);
  transform-origin: center center;
  font-family: var(--font-mc);
  font-size: 16px;
  color: var(--shotam-splash-yellow);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.6);
  white-space: nowrap;
  pointer-events: none;
  animation: shotam-splash-bounce 0.3s ease-in-out infinite alternate;
}

@keyframes shotam-splash-bounce {
  from { transform: rotate(-18deg) scale(1); }
  to   { transform: rotate(-18deg) scale(1.12); }
}

.shotam-side { display: flex; align-items: center; gap: 12px; pointer-events: auto; margin-top: 7px; }
.shotam-side--left { grid-column: 1; justify-content: flex-end; padding-right: 24px; }
.shotam-side--right { grid-column: 3; justify-content: flex-start; padding-left: 24px; }

.shotam-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--shotam-white);
  background: var(--shotam-stone);
  border: 3px solid var(--shotam-black);
  box-shadow: 4px 4px 0 var(--shotam-black), inset 0 -4px 0 rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.08s steps(2), box-shadow 0.08s steps(2);
}

.shotam-btn:hover {
  background: var(--shotam-stone-light);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shotam-black), inset 0 -4px 0 rgba(0,0,0,0.35);
}

@media (max-width: 900px) {
  .shotam-topbar { padding: 0 12px; height: 80px; }
  .shotam-logo-wrap img { height: 56px; margin-top: 6px; }
  #shotam-splash { font-size: 11px; }
  .shotam-btn { padding: 7px 9px; font-size: 8px; min-width: 90px; }
  .shotam-side { gap: 6px; }
}

@media (max-width: 480px) {
  .shotam-topbar { height: 64px; padding: 0 6px; }
  .shotam-logo-wrap img { height: 40px; margin-top: 4px; }
  #shotam-splash { font-size: 8px; right: -3px; bottom: -2px; }
  .shotam-btn {
    padding: 5px 6px;
    font-size: 6.5px;
    min-width: 60px;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--shotam-black), inset 0 -3px 0 rgba(0,0,0,0.35);
  }
  .shotam-side { gap: 4px; }
}

/* ================= КАРТА (IFRAME) ================= */

.map-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #0e0e0e;
}

/* ================= "СЕРВЕР ПЕРЕЗАВАНТАЖУЄТЬСЯ" ================= */

.server-status {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #1a1a1a 0 40px, #161616 40px 80px);
  text-align: center;
}

.server-status.is-visible { display: flex; }

.server-status__title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--shotam-white);
  margin-bottom: 12px;
}

.server-status__subtitle {
  font-size: 20px;
  color: #9a9a9a;
}
