/* SnoopyWap – Test telefona (prefiks tst-). Boje su iz promenljivih sajta. */
.tst-okvir {
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
  color: var(--tekst);
  font: 16px/1.45 var(--sans);
}
.tst-okvir *, .tst-okvir *::before, .tst-okvir *::after { box-sizing: border-box; }
.tst-okvir [hidden] { display: none !important; }

.tst-kartica {
  background: var(--kartica);
  border: 1px solid var(--ivica);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
  scroll-margin-top: 12px;
}
.tst-vrh { margin-bottom: 14px; }
.tst-naslov { margin: 0 0 6px; font: 700 18px/1.2 var(--sans); color: var(--tekst); }
.tst-opis { margin: 0 0 10px; font-size: 15px; color: var(--slabo); }
.tst-vrh .tst-opis { margin: 10px 0; }

/* Kartice: jedna kolona na telefonu (do 480 px), dve na širokom ekranu. */
.tst-kartice { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 699px) {
  .tst-okvir { max-width: 512px; }
  .tst-kartice { grid-template-columns: 1fr; }
}

.tst-spisak { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 700px) { .tst-spisak { grid-template-columns: repeat(9, 1fr); } }
.tst-oznaka {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 4px;
  border: 2px solid var(--ivica);
  border-radius: 12px;
  background: var(--kartica2);
  color: var(--slabo);
  font: 15px/1.1 var(--sans);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.tst-znak { font-weight: 700; }
.tst-oznaka.tst-ok { border-color: var(--akcent); color: var(--akcent-t); }
.tst-oznaka.tst-nema { border-color: var(--ivica); color: var(--akcent2-t); }

.tst-red { display: flex; flex-wrap: wrap; gap: 8px; }
.tst-dugme {
  min-height: 46px;
  min-width: 64px;
  padding: 0 16px;
  border: 2px solid var(--akcent);
  border-radius: 12px;
  background: var(--akcent);
  color: var(--na-akcentu);
  font: 700 16px/1.2 var(--sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tst-dugme.tst-drugo { background: transparent; border-color: var(--ivica); color: var(--tekst); }
.tst-okvir button:focus-visible { outline: 3px solid var(--zuta); outline-offset: 2px; }

.tst-telo:empty { display: none; }
.tst-telo { margin-top: 12px; }
.tst-poruka { margin: 10px 0 0; font-size: 15px; color: var(--tekst); }
.tst-poruka:empty { display: none; }
.tst-poruka.tst-p-ok { color: var(--akcent-t); }
.tst-poruka.tst-p-greska { color: var(--zuta-t); }

/* Pokazivač jačine (mikrofon) i punjenja (baterija). */
.tst-merac { height: 22px; border-radius: 11px; background: var(--kartica2); border: 1px solid var(--ivica); overflow: hidden; }
.tst-merac-pun { height: 100%; width: 0; background: var(--akcent); border-radius: 11px; transition: width .08s linear; }
.tst-merac-bat { background: var(--akcent3); transition: width .4s; }

.tst-video { display: block; width: 100%; max-height: 60vh; border-radius: 12px; background: var(--bg); border: 1px solid var(--ivica); }
.tst-video.tst-ogledalo { transform: scaleX(-1); }

/* Libela. */
.tst-libela { position: relative; width: 200px; height: 200px; margin: 0 auto; border-radius: 50%; background: var(--kartica2); border: 2px solid var(--ivica); }
.tst-libela-krug { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 2px dashed var(--slabo); }
.tst-kuglica { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--akcent2); }
.tst-kuglica.tst-ravno { background: var(--akcent); }

.tst-podaci { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 15px; }
.tst-podaci dt { color: var(--slabo); }
.tst-podaci dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Sloj preko celog ekrana (provere ekrana i dodira). */
.tst-sloj {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 2147483000;
  background: var(--bg);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  outline: none;
  overflow: hidden;
}
.tst-s-ekran { cursor: pointer; }
.tst-s-natpis {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font: 16px/1.3 var(--sans);
  text-align: center;
  pointer-events: none;
  transition: opacity .4s;
}
.tst-s-natpis.tst-skriveno { opacity: 0; }
.tst-s-izlaz {
  position: absolute;
  right: 12px; top: 12px;
  min-width: 64px; min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(60, 60, 60, .55);
  color: #fff;
  font: 700 15px/1 var(--sans);
  cursor: pointer;
}
.tst-s-ekran .tst-s-izlaz { opacity: .45; }
.tst-s-izlaz-dole { top: auto; right: auto; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--akcent2); color: var(--na-akcentu); }

.tst-s-mreza { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: grid; gap: 2px; padding: 2px; background: var(--bg); }
.tst-polje { background: var(--kartica2); border-radius: 4px; }
.tst-polje.tst-obojeno { background: var(--akcent); }
.tst-s-stanje {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  max-width: 92%;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font: 16px/1.3 var(--sans);
  text-align: center;
  pointer-events: none;
}
