/* Surface docs + vandalism layers (percent positions scale with window)
 *
 * Stack in .center-col:
 *   0  .room-bg-layer   (JPEG plate)
 *   2  .rz-vandalism-layer  (paint ABOVE background, BELOW avatars)
 *   5  #scene           (avatars / wall pins / speech)
 */

.rz-vandalism-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.rz-vandalism-layer .rz-vandalism-piece {
  position: absolute;
  inset: 8% 10%;
  width: 80%;
  height: 70%;
  pointer-events: auto;
  opacity: 0.92;
  mix-blend-mode: normal;
}

/* Feature off: keep chrome out of the room until VANDALISM_ENABLED=1 */
.rz-vandalism-plaque[hidden],
.rz-vandalism-layer[hidden],
.rz-vandalism-tip[hidden] {
  display: none !important;
}

.rz-vandalism-plaque {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 55; /* above vandalism paint + avatars strip chrome */
  max-width: min(520px, 90%);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(8, 12, 11, 0.55);
  border: 1px solid rgba(200, 150, 42, 0.35);
  color: rgba(230, 220, 200, 0.9);
  font-size: 0.68rem;
  text-align: center;
  pointer-events: none;
}

.rz-vandalism-tip {
  position: fixed;
  z-index: 9000;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(10, 14, 12, 0.95);
  border: 1px solid rgba(200, 150, 42, 0.45);
  color: #e8d9ba;
  font-size: 0.72rem;
  pointer-events: none;
  max-width: 260px;
}

.rz-surface-docs-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.rz-surf-doc {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  background: transparent;
  border: none;
  padding: 0;
  cursor: grab;
  color: #e8d9ba;
  text-align: center;
}

.rz-surf-doc:active {
  cursor: grabbing;
}

.rz-surf-paper {
  display: block;
  width: 48px;
  height: 58px;
  margin: 0 auto 4px;
  border-radius: 4px 8px 4px 4px;
  background:
    linear-gradient(135deg, transparent 60%, rgba(0, 0, 0, 0.15) 60%),
    linear-gradient(#f2e8d0, #e0d2b4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(200, 150, 42, 0.35);
}

.rz-surf-folder {
  display: block;
  width: 56px;
  height: 44px;
  margin: 0 auto 4px;
  position: relative;
  border-radius: 4px;
  background: var(--fold, #c8962a);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.rz-surf-folder::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -8px;
  width: 40%;
  height: 10px;
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--fold, #c8962a) 80%, #000);
}

.rz-surf-thumb {
  position: absolute;
  inset: 6px 6px 4px;
  width: calc(100% - 12px);
  height: calc(100% - 10px);
  object-fit: cover;
  border-radius: 3px;
}

.rz-surf-fold-face {
  display: block;
  height: 100%;
}

.rz-surf-label {
  display: block;
  font-size: 0.62rem;
  max-width: 90px;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 6px #000;
}

.rz-surf-edit-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 5;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(200, 150, 42, 0.85);
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(200, 150, 42, 0.3);
  pointer-events: none;
}

.rz-surf-reader {
  position: fixed;
  inset: 12vh 12vw;
  z-index: 8500;
  background: rgba(10, 14, 12, 0.96);
  border: 1px solid rgba(200, 150, 42, 0.4);
  border-radius: 12px;
  padding: 16px;
  color: #e8d9ba;
  overflow: auto;
}

.rz-surf-reader header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rz-surf-reader .rz-surf-close {
  background: transparent;
  border: 1px solid rgba(200, 150, 42, 0.4);
  color: #e8d9ba;
  border-radius: 6px;
  cursor: pointer;
}

.rz-surf-meta {
  font-size: 0.7rem;
  color: #8a8494;
}

#scene {
  position: relative;
}
