body.masa-pagina { margin: 0; overflow: hidden; height: 100dvh; width: 100%; max-width: 100%; padding: 0; }
body.masa-pagina .bar { position: absolute; z-index: 6; left: 0; right: 0; top: 0; background: linear-gradient(to bottom, rgba(8,11,16,.72), rgba(8,11,16,0)); }
body.masa-pagina main { padding: 0; max-width: none; }
body.masa-pagina footer { display: none; }
.camera, .intrare {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
.intrare .scena {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.camera .scena {
  position: absolute;
  transform: scale(1.06);
  transform-origin: center center;
  transition: transform .12s linear;
  will-change: transform;
}
.camera .scena img.poza {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  pointer-events: none;
}
.val {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 11vh;
  transform: translateX(-50%);
  width: min(92%, 28rem);
  max-height: 62dvh;
  overflow: auto;
  text-align: center;
  padding: 18px 16px;
  background: rgba(8,11,16,.62);
  border: 1px solid rgba(255,184,0,.55);
  color: #F8F9FA;
}
.val h1 { margin: 0 0 8px; font-size: clamp(1.4rem, 4vw, 2.2rem); }
.val p { margin: 0 0 12px; }
.obiect {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8dc 0%, #ffb800 42%, rgba(255,184,0,0) 70%);
  box-shadow: 0 0 8px 2px rgba(255,184,0,.8);
  transform: translate(-50%, -50%);
  animation: palpait 2.6s ease-in-out infinite;
  text-decoration: none;
  color: transparent;
}
.obiect .nume {
  position: absolute;
  left: 50%;
  bottom: 150%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 42vw;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8,11,16,.86);
  color: #F8F9FA;
  font: 13px/1.3 "Playfair Display", Georgia, serif;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
}
.obiect:hover .nume,
.obiect:focus .nume,
.obiect:active .nume,
.obiect.aratat .nume { opacity: 1; }
.camera .sambata {
  position: absolute;
  z-index: 5;
  left: 6%;
  right: 6%;
  bottom: 38vh;
  margin: 0;
  text-align: center;
  color: #F8F9FA;
  font: 14px/1.35 "Playfair Display", Georgia, serif;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
.singur {
  position: absolute;
  z-index: 5;
  left: 8%;
  right: 8%;
  bottom: 11vh;
  margin: 0;
  text-align: center;
  color: #F8F9FA;
  font: 15px/1.3 "Playfair Display", Georgia, serif;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
@keyframes palpait {
  0%, 100% { opacity: .45; filter: brightness(.85); }
  50% { opacity: 1; filter: brightness(1.25); }
}
.ecran-vechi {
  position: absolute;
  z-index: 3;
  left: 8%;
  top: 18%;
  width: min(28vw, 220px);
  aspect-ratio: 4/3;
  background: #1a120c;
  border: 10px solid #6b4a2a;
  box-shadow: inset 0 0 0 3px #c6a15b, 0 8px 18px rgba(0,0,0,.4);
  overflow: hidden;
}
.ecran-vechi video { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.panou {
  position: absolute;
  z-index: 5;
  left: 2%;
  right: 2%;
  bottom: 2vh;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-height: 40vh;
  overflow: auto;
}
body.masa-pagina .panou button,
body.masa-pagina .panou a.btn {
  font: 14px/1.2 "Playfair Display", Georgia, serif;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,184,0,.7) !important;
  background: rgba(8,11,16,.78) !important;
  color: #F8F9FA !important;
  text-decoration: none;
  box-shadow: none !important;
}
.foaie {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 16vh;
  transform: translateX(-50%);
  width: min(92%, 26rem);
  max-height: 58vh;
  overflow: auto;
  background: rgba(12,10,8,.92);
  color: #F8F9FA;
  border: 1px solid rgba(255,184,0,.45);
  padding: 14px;
}
.foaie[hidden] { display: none; }
.lista-povesti { list-style: none; margin: 0 0 12px; padding: 0; }
.foaie .lista-povesti a {
  display: block;
  color: #F8F9FA;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,184,0,.28);
  font: 16px/1.3 "Playfair Display", Georgia, serif;
}
@media (max-width: 700px) {
  .camera .scena { touch-action: none; cursor: grab; }
}
.sunet-bara {
  position: absolute;
  z-index: 8;
  top: 72px;
  left: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(8,11,16,.6);
  padding: 6px 10px;
  border-radius: 999px;
}
.sunet-bara input { width: 84px; padding: 0; }
.val .sunet-bara {
  position: static;
  margin: 8px auto 0;
  width: fit-content;
}
@media (max-width: 700px) {
  .panou { bottom: 72px; }
  .singur { bottom: 220px; }
  .obiect { width: 14px; height: 14px; min-width: 14px; min-height: 14px; }
  .ecran-vechi { width: 34vw; top: 14%; }
  body.masa-pagina { padding-bottom: 0; }
}
@media (min-width: 1366px) {
  .val { bottom: 8vh; }
}
