.emulator-wrap {
  width: 100%;
}

#emulatorMount {
  width: 100%;
  display: flex;
  justify-content: center;
}

#emulatorMount canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
}




@font-face {
  font-family: 'ZXSpectrum';
  src: url('../font/zx-spectrum.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --zx-black: #050505;
  --zx-white: #f2f2f2;
  --zx-cyan: #00e7ff;
  --zx-blue: #1d47ff;
  --zx-dark-blue: #0b1a66;
  --zx-red: #ff2a2a;
  --zx-yellow: #ffe600;
  --zx-green: #39ff3b;
  --zx-magenta: #ff58ff;
  --zx-panel: #0b0b18;
  --zx-panel-2: #10142b;
  --zx-border: #2c48ff;
  --zx-shadow: 0 0 0 2px #0a0a0a, 0 0 0 4px #1d47ff;
}

html,
body {
  background: var(--zx-black);
  color: var(--zx-white);
  font-family: 'Inter', sans-serif;
}

body.zx-body {
  background:
    radial-gradient(circle at top, rgba(0, 231, 255, 0.08), transparent 30%),
    linear-gradient(to bottom, #020202 0%, #050505 100%);
  min-height: 100vh;
}

/* Blagi CRT/scanline utisak */
body.zx-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.035) 0,
    rgba(255,255,255,0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.14;
  z-index: 9999;
}

/* Glavni kontejner */
.zx-page-shell {
  position: relative;
  z-index: 1;
}

/* Hero */
.hero-section {
  padding: 40px 0 24px;
}

.hero-panel,
.section-panel,
.game-card-inner {
  background:
    linear-gradient(180deg, rgba(16,20,43,0.95) 0%, rgba(7,7,15,0.98) 100%);
  border: 2px solid var(--zx-border);
  box-shadow: var(--zx-shadow);
  border-radius: 0;
  position: relative;
}

.hero-panel {
  padding: 32px 24px;
  overflow: hidden;
}

.hero-panel::after,
.section-panel::after,
.game-card-inner::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(0, 231, 255, 0.18);
  pointer-events: none;
}

.hero-kicker,
.game-meta,
.gallery-title,
.section-title {
  font-family: 'ZXSpectrum', 'Press Start 2P', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-kicker {
  color: var(--zx-cyan);
  font-size: 0.72rem;
  margin: 0 0 18px;
  text-shadow: 0 0 8px rgba(0, 231, 255, 0.25);
}

.hero-title {
  font-family: 'ZXSpectrum', 'Press Start 2P', monospace;
  color: var(--zx-white);
  font-size: clamp(1.5rem, 3.8vw, 3.2rem);
  line-height: 1.5;
  margin: 0 0 20px;
  text-transform: uppercase;
  text-align: center;
  text-shadow:
    0 0 8px rgba(255,255,255,0.08),
    0 0 20px rgba(0, 231, 255, 0.08);
}

.hero-lead {
  color: #d6e7ff;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
  text-align: center;
}

/* ZX rainbow stripe */
.zx-rainbow-line {
  height: 16px;
  margin-bottom: 18px;
  background: linear-gradient(
    90deg,
    var(--zx-red) 0 18%,
    var(--zx-yellow) 18% 36%,
    var(--zx-green) 36% 54%,
    var(--zx-cyan) 54% 72%,
    var(--zx-blue) 72% 100%
  );
  box-shadow:
    0 0 0 2px #000,
    0 0 18px rgba(0, 231, 255, 0.15);
}

/* Sekcije */
.section-block {
  padding: 0 0 32px;
}

.section-panel {
  padding: 24px;
}

.section-title {
  color: var(--zx-cyan);
  font-size: 1rem;
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(0, 231, 255, 0.22);
}

.section-text,
.game-card-body p {
  color: #e8e8e8;
  line-height: 1.8;
  font-size: 1rem;
}

/* Kartice za igre */
.game-card {
  height: 100%;
}

.game-card-tv {
  position: relative;
  background: url('../images/tvco.png') no-repeat center center;
  background-size: contain;
}


.game-card-inner {
  padding: 22px;
  overflow: hidden;
}

.game-card-header {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(29, 71, 255, 0.45);
}

.game-meta {
  color: #82a5ff;
  font-size: 0.72rem;
  margin: 0 0 10px;
}

.game-title {
  font-family: 'ZXSpectrum', 'Press Start 2P', monospace;
  color: var(--zx-white);
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,255,255,0.08);
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ZX dugmad */
.btn-zx {
  font-family: 'ZXSpectrum', 'Press Start 2P', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  border-radius: 0;
  padding: 12px 16px;
  border: 2px solid transparent;
  box-shadow: none;
}

.btn-zx-primary {
  background: var(--zx-blue);
  color: #fff;
  border-color: #5f7cff;
}

.btn-zx-primary:hover,
.btn-zx-primary:focus {
  background: #3158ff;
  color: #fff;
  border-color: #9ab0ff;
  box-shadow: 0 0 14px rgba(49, 88, 255, 0.35);
}

.btn-zx-outline {
  background: transparent;
  color: var(--zx-cyan);
  border-color: var(--zx-cyan);
}

.btn-zx-outline:hover,
.btn-zx-outline:focus {
  background: rgba(0, 231, 255, 0.1);
  color: #fff;
  border-color: #7ef4ff;
  box-shadow: 0 0 14px rgba(0, 231, 255, 0.28);
}

/* Linkovi u tekstu */
a {
  color: var(--zx-cyan);
  text-decoration: none;
}

a:hover {
  color: #9ff7ff;
  text-shadow: 0 0 8px rgba(0, 231, 255, 0.3);
}

/* Screenshots */
.gallery-title {
  color: var(--zx-yellow);
  font-size: 0.78rem;
  margin: 1rem 0 1rem 0;
}

.game-shot {
  display: block;
  width: 100%;
  background: #000;
  border: 2px solid var(--zx-blue);
  border-radius: 0;
  padding: 4px;
  box-shadow:
    0 0 0 2px #000,
    0 0 0 4px #14238e;
  image-rendering: pixelated;
}

/* Kontakti */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border: 2px solid var(--zx-cyan);
  background: rgba(0, 231, 255, 0.06);
  color: var(--zx-white);
  font-family: 'ZXSpectrum', 'Press Start 2P', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.contact-link:hover {
  background: rgba(0, 231, 255, 0.14);
  color: #fff;
}

/* Modal */
.zx-modal {
  background: linear-gradient(180deg, #0c1024 0%, #05070f 100%);
  border: 2px solid var(--zx-border);
  border-radius: 0;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #1d47ff;
  color: var(--zx-white);
}

.zx-modal .modal-header {
  border-bottom: 2px solid rgba(29, 71, 255, 0.45);
  background: rgba(0,0,0,0.25);
}

.zx-modal .modal-title {
  font-family: 'ZXSpectrum', 'Press Start 2P', monospace;
  color: var(--zx-cyan);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.zx-modal .modal-body {
  padding: 16px;
}

/* Emulator */
.emulator-wrap {
  background: #000;
  border: 2px solid #2039d8;
  padding: 12px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

.emulator-toolbar {
  color: var(--zx-yellow);
  font-family: 'ZXSpectrum', 'Press Start 2P', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.emulator-stage,
#emulatorMount {
  width: 100%;
}

#emulatorMount {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  background: #000;
}

#emulatorMount canvas {
  max-width: 100%;
  height: auto !important;
  image-rendering: pixelated;
}

/* Mali dekorativni uglovi */
.hero-panel::before,
.section-panel::before,
.game-card-inner::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  background: linear-gradient(
    135deg,
    var(--zx-red) 0 20%,
    var(--zx-yellow) 20% 40%,
    var(--zx-green) 40% 60%,
    var(--zx-cyan) 60% 80%,
    var(--zx-blue) 80% 100%
  );
}

/* Mobile */
@media (max-width: 991.98px) {
  .hero-panel {
    padding: 24px 18px;
  }

  .section-panel,
  .game-card-inner {
    padding: 18px;
  }

  .btn-zx {
    width: 100%;
    justify-content: center;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-link {
    width: 100%;
    justify-content: center;
  }
}


.zx-vuk-modal #vuk-keys {
  display: block !important;
}

.zx-vuk-modal #television-keys {
  display: none !important;
}

.zx-television-modal #television-keys {
  display: block !important;
}

.zx-television-modal #vuk-keys {
  display: none !important;
}