* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: 'VT323', monospace;
}

.scene-wrap {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* meme ratio que les autres pages (background.jpg fait 1200x743) */
.scene {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1200 / 743;
  background: #000;
}

.background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

.background-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

/* fenêtre façon terminal : barre de titre + corps (même principe que
   sur les autres pages) */
.term-window {
  position: absolute;
  background: #000;
  border: 1px solid #eaeaea;
  z-index: 2;
}

.perfume-window {
  transform: translate(-50%, -50%);
}

.term-titlebar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: #1a1a1a;
  border-bottom: 1px solid #eaeaea;
  padding: 2px;
}

.term-close {
  position: relative;
  width: 16px;
  height: 16px;
  background: #eaeaea;
}

.term-close::before,
.term-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: #000;
}

.term-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.term-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.term-body {
  padding: 16px 20px;
  color: #d8d8d8;
}

.log-title {
  font-family: 'VT323', monospace;
  font-weight: 400;
  font-size: 28px;
  color: #eaeaea;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 14px;
}

/* tableau "arête de poisson" : toutes les lignes internes sont tracées,
   seul le contour extérieur du tableau est retiré */
.perfume-table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, 'Courier New', monospace;
  font-weight: 400;
  font-size: 12px;
  color: #d8d8d8;
}

.perfume-table th,
.perfume-table td {
  border: 1px solid #eaeaea;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.perfume-table th {
  font-family: 'VT323', monospace;
  font-size: 17px;
  letter-spacing: 1px;
  color: #eaeaea;
}

.perfume-table thead tr:first-child th {
  border-top: none;
}

.perfume-table tbody tr:last-child td {
  border-bottom: none;
}

.perfume-table th:first-child,
.perfume-table td:first-child {
  border-left: none;
}

.perfume-table th:last-child,
.perfume-table td:last-child {
  border-right: none;
}

.back {
  position: fixed;
  top: 16px;
  left: 16px;
  color: #eaeaea;
  background: #000;
  border: 1px solid #eaeaea;
  padding: 4px 12px;
  font-family: 'VT323', monospace;
  font-size: 20px;
  text-decoration: none;
  z-index: 20;
}

.back:hover {
  background: #eaeaea;
  color: #000;
}

/* objets décoratifs par dessus le tableau, même système de coordonnées
   que l'accueil : <div class="hotspot deco" style="--x:..%; --y:..%; --w:..%; z-index:..;">
   (ou class="hotspot clickable" + href + data-label si cliquable) */
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  transform: translate(-50%, -50%);
  z-index: 5;
  display: block;
}

.hotspot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
  transition: filter 0.15s ease, transform 0.15s ease;
}

.hotspot.clickable {
  cursor: pointer;
}

.hotspot.clickable:hover img {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)) brightness(1.25);
  transform: scale(1.04);
}

.hotspot.deco {
  pointer-events: none;
}

/* étiquette terminal : rectangle noir, texte blanc, suit la souris */
.tooltip {
  position: fixed;
  top: 0;
  left: 0;
  background: #000;
  color: #eaeaea;
  border: 1px solid #eaeaea;
  padding: 3px 10px;
  font-family: 'VT323', monospace;
  font-size: 22px;
  letter-spacing: 1px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-9999px, -9999px);
  transition: opacity 0.1s ease;
  z-index: 999;
  white-space: nowrap;
}

.tooltip.visible {
  opacity: 1;
}
