/* Zmijica – snoopywap.com (prefiks zm-) */
.zm-omot {
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px;
  font-family: var(--sans);
  color: var(--tekst);
}
.zm-omot *, .zm-omot *::before, .zm-omot *::after { box-sizing: border-box; }

/* gornja traka: rezultat, rekord, dugme */
.zm-traka {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 10px;
}
.zm-brojka {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 10px;
  background: var(--kartica);
  border: 2px solid var(--ivica);
  border-radius: 12px;
}
.zm-natpis { font-size: 15px; color: var(--slabo); line-height: 1.2; }
.zm-vrednost {
  font: 700 22px/1.2 var(--mono);
  color: var(--akcent-t);
}
.zm-dugme {
  flex: 0 0 auto;
  min-width: 112px;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--akcent);
  border-radius: 12px;
  background: var(--akcent);
  color: var(--na-akcentu);
  font: 700 16px var(--sans);
  cursor: pointer;
}
.zm-dugme:focus-visible, .zm-strelica:focus-visible {
  outline: 3px solid var(--akcent3);
  outline-offset: 2px;
}

/* tabla */
.zm-okvir {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--kartica);
  border: 3px solid var(--ivica);
  border-radius: 12px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.zm-platno {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

/* poruka preko table (ne hvata dodire – tabla ih obrađuje) */
.zm-poruka {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  pointer-events: none;
}
.zm-poruka[hidden] { display: none; }
.zm-poruka::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: .62;
}
.zm-poruka-naslov, .zm-poruka-tekst { position: relative; }
.zm-poruka-naslov {
  font: 700 28px/1.2 var(--mono);
  color: var(--akcent-t);
  letter-spacing: 1px;
}
.zm-poruka-tekst { font-size: 16px; color: var(--tekst); }

/* dugmad-strelice u obliku krsta */
.zm-strelice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas: ". gore ." "levo dole desno";
  gap: 8px;
  max-width: 300px;
  margin: 12px auto 0;
  touch-action: manipulation;
}
.zm-strelica {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0;
  background: var(--kartica2);
  color: var(--akcent3-t);
  border: 2px solid var(--ivica);
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.zm-strelica:active { background: var(--ivica); color: var(--akcent-t); }
.zm-strelica-gore { grid-area: gore; }
.zm-strelica-levo { grid-area: levo; }
.zm-strelica-dole { grid-area: dole; }
.zm-strelica-desno { grid-area: desno; }

.zm-pomoc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--slabo);
  text-align: center;
}

.zm-okvir { --bg: #0f1226; --kartica: #1a1f3d; --kartica2: #232a52; --tekst: #eef0ff; --slabo: #9aa0c7; --ivica: #2a3060; --akcent-t: #b6f23c; --akcent2-t: #ff5fa2; --akcent3-t: #4cc9f0; --zuta-t: #ffd23f; }
