﻿:root {
  --primary-color: #ff2e83;
  --secondary-color: #7b2ff7;
  --accent-gold: #ffd23f;
  --accent-jade: #14c17e;
  --bg-color: #ff7fb8;
  --paper: #fffdf8;
  --text-color: #1a0e1f;
  --border-color: #1a0e1f;
}

body {
  font-family: "Baloo 2", "Comic Sans MS", cursive, sans-serif;
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 9%, transparent 10%),
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 9%, transparent 10%);
  background-size: 46px 46px;
  background-position: 0 0, 23px 23px;
}

nav {
  background: linear-gradient(90deg,
      var(--primary-color),
      var(--secondary-color));
  padding: 1rem;
  border-bottom: 4px solid var(--border-color);
  box-shadow: 0 4px 0 var(--border-color);
}

.nav-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.user-bar {
  font-family: "Baloo 2", "Comic Sans MS", cursive, sans-serif;
  width: 100%;
  display: flex;
  justify-content: end;
  height: 40px;
}

.tab {
  background: white;
  border: 3px solid #000;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  transition: transform 0.2s;
  box-shadow: 3px 3px 0px #000;
}

.tab:hover {
  transform: translateY(-5px);
  background-color: #ffffcc;
}

.tab.active {
  background-color: var(--accent-gold);
  transform: scale(1.1);
  z-index: 10;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  padding: 2rem;
  background: var(--paper);
  border: 5px dashed var(--border-color);
  border-radius: 24px;
  box-shadow: 10px 10px 0px var(--primary-color);
}

h1 {
  font-size: 3.2rem;
  color: var(--primary-color);
  text-shadow: 3px 3px 0px var(--border-color);
  /* animation wiggle supprimée */
}

.stats-box {
  margin: 2rem 0;
  padding: 1rem;
  background-color: #ccffcc;
  border: 3px solid #000;
  border-radius: 15px;
  box-shadow: 5px 5px 0px #006600;
}

.counter {
  font-size: 4rem;
  font-weight: 900;
  color: #ff4500;
  text-shadow: 2px 2px 0px #000;
}

.kitten-generator {
  margin-top: 3rem;
}

.image-container {
  width: 100%;
  height: 400px;
  background-color: #eee;
  border: 5px solid #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#kitten-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.action-btn {
  background-color: var(--primary-color);
  color: white;
  border: 4px solid var(--border-color);
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50px;
  box-shadow: 5px 5px 0 var(--border-color);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--border-color);
}

.action-btn:active {
  box-shadow: 2px 2px 0 var(--border-color);
  transform: translate(1px, 1px);
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(-2deg);
  }

  50% {
    transform: rotate(2deg);
  }
}

/* Utilitaires */
.hidden {
  display: none !important;
}

/* Profils */
.profile {
  background-color: #fff0f5;
  border: 4px dashed var(--primary-color);
  border-radius: 15px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 8px 8px 0px #660066;
}

.profile h2 {
  color: #cc00cc;
  text-transform: uppercase;
  text-decoration: underline wavy var(--secondary-color);
}

.profile-pic {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--secondary-color);
  box-shadow: 4px 4px 0px #000;
}

/* Tableaux */
.data-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 1.1rem;
  background: white;
  border: 3px solid #000;
}

.data-table th,
.data-table td {
  border: 2px solid #000;
  padding: 10px;
  text-align: left;
}

.data-table th {
  background-color: #ffccff;
  width: 30%;
  color: #660033;
}

.data-table td {
  background-color: #ffffff;
}

.data-table tr:hover td {
  background-color: #ffffcc;
}

/* Tueurs */
.killers-header {
  text-align: center;
  margin-bottom: 20px;
}

.header-img {
  max-width: 100%;
  height: auto;
  border: none;
  box-shadow: none;
  animation: pulse 2s infinite;
}

.killers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.killer-card {
  background: #2a0a2a;
  color: #fff;
  border: 5px solid #ff0000;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 10px 10px 0 #000;
  position: relative;
  overflow: hidden;
}

.killer-card h2 {
  font-family: "Courier New", monospace;
  color: #ff0000;
  text-transform: uppercase;
  font-size: 1.5rem;
  text-shadow: 2px 2px 0 #000;
  margin-top: 0;
}

.killer-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border: 3px solid #fff;
  filter: contrast(1.2);
}

.stats-container {
  margin-top: 15px;
}

.stat-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.stat-label {
  width: 80px;
  font-weight: bold;
  font-size: 0.9rem;
}

.progress-bar-bg {
  flex-grow: 1;
  height: 15px;
  background: #555;
  border: 1px solid #fff;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0000, #ff6600);
  width: 0%;
  transition: width 1s ease-out;
}

.big-btn {
  font-size: 2rem;
  background: #000;
  color: #ff0000;
  border-color: #ff0000;
  margin-top: 20px;
  width: 100%;
}

.big-btn:hover {
  background: #330000;
  color: #fff;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* === TEST DE PERSONNALITÉ === */
#test {
  text-align: center;
}

.quiz-step {
  animation: fadeIn 0.5s ease-in-out;
}

.result-title {
  font-size: 3rem;
  color: gold;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--primary-color);
  margin: 20px 0;
}

.result-img {
  max-width: 300px;
  border: 5px solid white;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  margin: 20px 0;
}

.result-desc {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 20px auto;
  font-style: italic;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 10px;
}

/* Likert Scale */
.likert-scale {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.likert-option {
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  user-select: none;
  filter: grayscale(0.5);
}

.likert-option:hover {
  transform: scale(1.3);
  filter: grayscale(0);
}

.likert-option:active {
  transform: scale(0.9);
}

/* Progress Bar */
.progress-bar-container {
  width: 80%;
  height: 10px;
  background-color: #444;
  border-radius: 5px;
  margin: 0 auto 30px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: #9933ff;
  width: 0%;
  transition: width 0.3s ease;
}

/* === SCARY MODE (PRANK) === */
body.scary-mode {
  background-color: #000000;
  background-image: none !important;
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  overflow-y: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  transition: background 2s ease;
}

body.scary-mode .navbar,
body.scary-mode #game-arena,
body.scary-mode #quiz-intro,
body.scary-mode #quiz-question {
  display: none !important;
}

/* Navigation buttons stay visible in scary mode - only hide content tabs */

body.scary-mode h1,
body.scary-mode h2,
body.scary-mode p {
  color: #e9dede;
  text-shadow: none !important;
  /* Animation glitch supprimée */
}

body.scary-mode img {
  filter: contrast(120%) grayscale(20%);
  max-width: 90%;
  display: block;
  margin: 20px auto;
}

body.scary-mode button,
body.scary-mode .action-btn {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.scary-mode main,
body.scary-mode .page-section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  max-width: none !important;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes shake {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(5deg);
  }

  75% {
    transform: rotate(-5deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* === SCARY MODE (FIXED) === */
body.scary-mode {
  background-color: #2a2a2a !important;
  background-image: none !important;
  background-size: cover;
  background-attachment: fixed;
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  overflow-y: auto !important;
  transition: background 1s ease;
  background: #2a2a2a !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

body.scary-mode img {
  /* animation shake supprimée */
  /* Slower shake */
  box-shadow: 0 0 30px #550000;
}

@keyframes shake {
  0% {
    transform: rotate(0deg);
  }

  1% {
    transform: rotate(1deg);
  }

  2% {
    transform: rotate(-1deg);
  }

  3% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* === SCARY MODE (FIXED IMAGE) === */
body.scary-mode img {
  filter: none !important;
  max-width: 80%;
  display: block;
  margin: 20px auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Mini Games Styles */
.game-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 15px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.puzzle-board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(4, 100px);
  gap: 2px;
  margin: 20px auto;
  width: 304px;
  /* 3*100 + 2*2 gap */
  height: 406px;
  /* 4*100 + 3*2 gap */
  background-color: #333;
  padding: 2px;
  border: 5px solid #2c3e50;
  position: relative;
}

.puzzle-piece {
  width: 100px;
  height: 100px;
  background-image: url("puzzle_image.png");
  background-size: 300px 400px;
  /* Totals matches grid */
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background-repeat: no-repeat;
}

.puzzle-piece:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border: 2px solid white;
}

.puzzle-piece.selected {
  border: 3px solid #e74c3c;
  transform: scale(1.05);
  z-index: 20;
}

.lyrics-game {
  font-size: 1.2rem;
  line-height: 2;
}

.word-input {
  border: none;
  border-bottom: 2px solid #333;
  background: transparent;
  font-family: inherit;
  font-size: 1.1rem;
  width: 100px;
  text-align: center;
  color: #e74c3c;
  font-weight: bold;
}

.word-input:focus {
  outline: none;
  border-bottom-color: #e74c3c;
}

.reward-img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 0 20px gold;
}

.section-divider {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0));
  margin: 40px 0;
}

/* Team Container Side-by-Side */
.team-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: stretch;
  justify-content: center;
}

.team-container .profile {
  flex: 1;
  min-width: 300px;
  margin: 0;
  /* Override default margin */
}

/* Friend Selector */
.friend-controls {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #fff0f5;
  border: 3px solid var(--primary-color);
  border-radius: 10px;
  display: inline-block;
}

.friend-card {
  transition: opacity 0.3s;
}

.friend-card.hidden-friend {
  display: none !important;
}

/* Stéphane Scary Mode */
body.stephane-mode {
  background: #000;
  color: darkred;
  background-image: repeating-linear-gradient(45deg,
      #110000,
      #110000 10px,
      #220000 10px,
      #220000 20px);
  transition: background 0.5s ease;
}

body.stephane-mode h1,
body.stephane-mode h2,
body.stephane-mode p {
  color: #000000;
  text-shadow: none;
}

body.stephane-mode .page-section {
  background-color: rgba(0, 0, 0, 0.9);
  border-color: darkred;
  box-shadow: 0 0 20px darkred;
}

body.stephane-mode nav {
  background: linear-gradient(90deg, #330000, #000);
}

body.stephane-mode .tab.active {
  background-color: #550000;
  color: red;
}

/* Weather Styles */
.weather-box {
  background: linear-gradient(180deg, #87ceeb, #ffffff);
  padding: 30px;
  border: 5px solid #000;
  border-radius: 20px;
  box-shadow: 10px 10px 0px #000;
  max-width: 500px;
  margin: 0 auto;
  transition: background 0.5s;
}

.weather-icon {
  font-size: 8rem;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

.weather-details {
  background: rgba(255, 255, 255, 0.8);
  padding: 15px;
  border-radius: 10px;
  border: 2px dashed #000;
  margin: 20px 0;
}

.weather-advice {
  font-style: italic;
  font-weight: bold;
  color: #ff0066;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.weather-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#city-input {
  padding: 10px;
  border-radius: 5px;
  border: 2px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
}

.recipe-img {
  max-width: 100%;
  border-radius: 10px;
  margin: 15px 0;
  border: 3px solid #000;
}

.recipe-card h3 {
  color: #e74c3c;
  margin-top: 15px;
}

.recipe-card ul {
  text-align: left;
  display: inline-block;
}

/* === NEW KILLER FEATURES === */

/* 2. FILTERS */
.killers-filters {
  background: #eee;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 2px solid #000;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-select {
  padding: 8px;
  border: 2px solid #000;
  border-radius: 5px;
  font-family: inherit;
  font-weight: bold;
}

/* 3. REVIEWS */
.killer-reviews {
  margin-top: 40px;
  padding: 20px;
  background: #fff;
  border: 3px dashed #000;
  transform: rotate(-1deg);
}

.review-card {
  background: #f9f9f9;
  padding: 10px;
  margin-bottom: 10px;
  border-left: 5px solid var(--primary-color);
  font-style: italic;
}

/* 4. MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.contract-modal {
  background: var(--paper);
  padding: 30px;
  border: 5px solid var(--border-color);
  box-shadow: 10px 10px 0 var(--primary-color);
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s;
  position: relative;
}

.modal-overlay.open .contract-modal {
  transform: scale(1);
}

.close-btn {
  width: 15px;
  border: 1px solid white;
  height: 15px;
  cursor: pointer;
  align-content: center;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.contract-form input,
.contract-form select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #000;
  font-family: inherit;
}

.stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg) scale(0);
  border: 5px solid red;
  padding: 20px;
  color: red;
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.stamp.visible {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-15deg) scale(1);
}

/* 5. WHEEL OF MISFORTUNE */
.wheel-container {
  margin: 30px auto;
  text-align: center;
}

#wheel-canvas {
  border: 5px solid #000;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.wheel-arrow {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 30px solid #ff0000;
  margin: 0 auto -10px auto;
  position: relative;
  z-index: 10;
}

body.dark-web-mode .wheel-arrow {
  border-top-color: #00ff00;
}

/* === BLACKLIST FEATURE === */
.killers-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.killers-grid {
  flex: 1;
  /* Takes available space */
  min-width: 300px;
  /* Prevent crushing on small screens */
}

#blacklist-sidebar {
  width: 300px;
  background: #111;
  color: red;
  border: 3px solid red;
  padding: 15px;
  box-shadow: 5px 5px 0 #000;
  font-family: "Courier New", monospace;
  flex-shrink: 0;
}

#blacklist-sidebar h2 {
  color: red;
  text-transform: uppercase;
  border-bottom: 2px dashed red;
  padding-bottom: 10px;
  margin-top: 0;
  animation: blink 2s infinite;
}

.blacklist-intro {
  font-size: 0.9rem;
  color: #ccc;
  font-style: italic;
  margin-bottom: 20px;
}

.blacklist-item {
  background: #222;
  border: 1px solid #444;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.blacklist-item.saved {
  opacity: 0;
  transform: scale(0.9);
  transition: all 1s ease;
}

.blacklist-name {
  font-weight: bold;
  color: white;
  font-size: 1.1rem;
}

.blacklist-price {
  color: gold;
  font-weight: bold;
}

.blacklist-controls {
  display: flex;
  gap: 5px;
}

.blacklist-input {
  width: 60%;
  padding: 5px;
  border: 1px solid #666;
  background: #000;
  color: white;
}

.blacklist-pay-btn {
  width: 40%;
  background: red;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.blacklist-pay-btn:hover {
  background: darkred;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .killers-layout {
    flex-direction: column;
  }

  #blacklist-sidebar {
    width: 100%;
  }
}

/* RECIPES */
.recipe-card {
  border: 3px solid #444;
  padding: 20px;
  margin-top: 20px;
  background: #222;
  color: white;
}

.recipe-card.hidden {
  display: none;
}

.recipe-img {
  max-width: 100%;
  height: auto;
  border: 2px solid white;
  margin: 10px 0;
}

/* AUTH & HEADER */
.user-info {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0);
  padding: 5px 10px;
  border: 1px solid #444;
  border-radius: 5px;
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 0.9rem;
}

.gold-text {
  color: gold;
}

.mini-btn {
  background: var(--paper);
  color: var(--text-color);
  border: 3px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 3px 3px 0 var(--border-color);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mini-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--border-color);
  background: var(--accent-gold);
}

.auth-modal {
  text-align: center;
  max-width: 400px;
  width: 90%;
}

/* Le .close-btn générique est blanc (pensé pour les fonds sombres) ;
   ici le fond de la modale est blanc, donc on fonce la couleur */
.contract-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #1a1a1a;
}

.auth-switch {
  margin-top: 10px;
  font-size: 0.9rem;
}

.auth-switch a {
  color: gold;
}

/* CHAT WIDGET */
.chat-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #cc0000;
  color: white;
  font-size: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.chat-widget {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 300px;
  height: 400px;
  background: #111;
  border: 2px solid #cc0000;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.chat-header {
  background: #cc0000;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  padding: 5px 8px;
  border-radius: 4px;
  background: #333;
  color: white;
  font-size: 0.9rem;
}

.chat-msg.system {
  color: #888;
  font-style: italic;
  background: none;
  text-align: center;
}

.chat-msg.mine {
  background: #444;
  align-self: flex-end;
  border-right: 2px solid gold;
}

.chat-msg.others {
  background: #222;
  align-self: flex-start;
  border-left: 2px solid #cc0000;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid #444;
}

.chat-input-area input {
  flex: 1;
  padding: 10px;
  background: #000;
  color: white;
  border: none;
  outline: none;
}

.chat-input-area button {
  background: #cc0000;
  color: white;
  border: none;
  padding: 0 15px;
  cursor: pointer;
  font-weight: bold;
}

/* === MAP === */
.map-wrapper {
  position: relative;
  padding: 20px;
}

.nunu-map-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  border: 5px solid #000;
  box-shadow: 10px 10px 0px #000;
  cursor: crosshair;
}

.city-map-img {
  width: 100%;
  display: block;
}

.map-zone {
  position: absolute;
  cursor: pointer;
  /* border: 2px dashed rgba(255, 0, 0, 0.5); /* Debug visibility */
  transition: background 0.3s, box-shadow 0.3s;
}

.map-zone:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px white;
}

.map-zone.zone-locked {
  cursor: not-allowed;
}

.map-zone.zone-locked:hover {
  background: rgba(0, 0, 0, 0.25);
  box-shadow: none;
}

/* Specific styling for Sewer/Cemetery to look "evil" on hover */
#zone-sewer:hover,
#zone-cemetery:hover {
  background: rgba(0, 255, 0, 0.2);
  box-shadow: 0 0 20px lime;
}

.map-tooltip {
  position: absolute;
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #d4af37;
  padding: 8px 14px;
  border-radius: 10px;
  pointer-events: none;
  font-weight: bold;
  z-index: 100;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  white-space: normal;
  max-width: min(300px, 60vw);
  line-height: 1.4;
  font-family: "Baloo 2", sans-serif;
  font-size: 1rem;
}

/* === LAIR SEQUENCE === */
#lair-sequence {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sequence-screen {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #000;
  /* Ensure black bg */
}

.sequence-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* FIX: Prevents zoom/crop */
  object-fit: contain;
  /* FIX: Prevents zoom/crop */
}

@keyframes zoomSlow {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

.lair-ui {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border: 3px solid red;
  color: red;
  text-align: center;
  font-family: "Courier New", monospace;
  box-shadow: 0 0 30px red;
}

.lair-ui h2 {
  font-size: 3rem;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  animation: glitch 1s infinite;
}

#exit-lair-btn {
  background: red;
  color: black;
  border: 4px solid darkred;
  padding: 15px 30px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  animation: pulse 0.5s infinite;
  font-family: "Courier New", monospace;
}

#exit-lair-btn:hover {
  background: white;
  color: red;
  border-color: red;
}

/* Tunnel Zone in Sewer Corridor */
/* Tunnel Zone in Sewer Corridor */
#corridor-tunnel-zone {
  position: absolute;
  top: 40%;
  right: 15%;
  width: 20%;
  height: 30%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  animation: cluePulse 3s infinite ease-in-out;
  z-index: 10;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  /* Organic shape */
}

#corridor-tunnel-zone:hover {
  background: rgba(255, 248, 220, 0.1);
  /* Cornsilk tint */
  border-color: rgba(255, 248, 220, 0.5);
  box-shadow: 0 0 20px rgba(255, 248, 220, 0.3);
}

@keyframes cluePulse {
  0% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 248, 220, 0.25);
    /* Subtle glow */
    border-color: rgba(255, 248, 220, 0.4);
  }

  100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* Lair Buttons */
.lair-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.lair-ui .action-btn {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  transition: transform 0.2s;
}

.lair-ui .action-btn:hover {
  transform: scale(1.05);
}

.lair-ui .action-btn.danger {
  background-color: #d32f2f;
  box-shadow: 0 0 10px #d32f2f;
}

.lair-ui .action-btn:not(.danger) {
  background-color: #2196f3;
  box-shadow: 0 0 10px #2196f3;
}

#lair-frame-zone:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Zoom Modal */
#frame-zoom-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100;
  /* Topmost */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  animation: fadeIn 0.3s ease;
}

#frame-zoom-modal img {
  max-width: 80%;
  max-height: 80%;
  border: 5px solid white;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.zoom-caption {
  margin-top: 20px;
  color: red;
  font-family: "Comic Neue", cursive, sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 5px red;
}

/* Custom Confirmation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-box {
  background: #1a1a1a;
  border: 2px solid #d4af37;
  padding: 30px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-text {
  color: #fff;
  font-family: "Comic Neue", cursive, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.modal-btn {
  padding: 10px 25px;
  border: 1px solid #d4af37;
  background: transparent;
  color: #d4af37;
  cursor: pointer;
  font-family: "Comic Neue", cursive, sans-serif;
  transition: all 0.3s ease;
  /* text-transform: uppercase; REMOVED per user request */
}

.modal-btn:hover {
  background: #d4af37;
  color: #000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#lair-frame-zone {
  top: 26%;
  left: 49.5%;
  width: 7%;
  height: 9%;
  cursor: zoom-in;
  z-index: 15;
}

/* Computer: Monitor screen only */
#lair-zone-computer {
  top: 40%;
  left: 33%;
  width: 9%;
  height: 11%;
}

/* TV: Vertical screen on far right */
#lair-zone-tv {
  top: 40%;
  left: 72%;
  width: 4%;
  height: 11%;
}

/* Paravent: Wooden screen back right */
#lair-zone-paravent {
  top: 25%;
  left: 58%;
  width: 11%;
  height: 23%;
}

/* Safe: Large grey box bottom left */
#lair-zone-safe {
  top: 64%;
  left: 20%;
  width: 10%;
  height: 32%;
}

/* Trash: Small bin under desk */
#lair-zone-trash {
  top: 71%;
  left: 51%;
  width: 2%;
  height: 14%;
}

/* Fridge: Black box bottom right */
#lair-zone-fridge {
  top: 69%;
  left: 68%;
  width: 11%;
  height: 28%;
}

/* Lair Zones Active */
.lair-active-zone {
  position: absolute;
  /* Subtle golden style as requested */
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.1);
  cursor: url("https://cdn-icons-png.flaticon.com/32/179/179386.png") 16 16,
    pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.lair-active-zone:hover {
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.6);
}

/* Arch: Left side, opening */
#lair-zone-arch {
  top: 18%;
  left: 32%;
  width: 8%;
  height: 16%;
}

/* === VOID SECTION === */
.void-container {
  position: relative;
  width: 100%;
  height: 600px;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #330066;
  box-shadow: 0 0 30px #0000ff;
}

#void-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.void-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.void-overlay h1 {
  color: #fff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.void-overlay p {
  color: #aaa;
  font-style: italic;
  font-size: 1.2rem;
}

.floating-nunu {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatCosmic 10s infinite linear;
  z-index: 10;
}

.floating-nunu img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px #ff00ff);
}

@keyframes floatCosmic {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateY(0);
  }

  25% {
    transform: translate(-50%, -50%) rotate(90deg) translateY(-50px);
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg) translateY(0);
  }

  75% {
    transform: translate(-50%, -50%) rotate(270deg) translateY(50px);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateY(0);
  }
}

.floating-nunu.spinning {
  animation: spinHead 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spinHead {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.5);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
  }
}

/* === HAMBURGER MENU & SIDE NAVIGATION === */

/* Bouton hamburger */
.hamburger-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  left: auto;
  z-index: 99999;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: 3px solid #000;
  border-radius: 10px;
  padding: 12px 15px;
  cursor: pointer;
  box-shadow: 4px 4px 0px #000;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 50px;
  height: 50px;
  justify-content: center;
  align-items: center;
}

.hamburger-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn:hover {
  transform: scale(1.1);
  box-shadow: 6px 6px 0px #000;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu latéral (tiroir depuis la droite) */
.side-menu {
  position: fixed;
  top: 0;
  right: -350px;
  left: auto;
  width: 350px;
  height: 100vh;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-left: 4px solid var(--border-color);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
}

.side-menu.open {
  right: 0;
}

.side-menu-header {
  padding: 25px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 3px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-menu-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.8rem;
  text-shadow: 2px 2px 0px #000;
}

.close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.close-btn:hover {
  transform: rotate(90deg) scale(1.2);
}

.side-menu-content {
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-menu .tab {
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  font-size: 1.1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid #000;
  box-shadow: 3px 3px 0px #000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-menu .tab:hover {
  transform: translateX(-5px);
  background: var(--accent-gold);
  box-shadow: 5px 5px 0px #000;
}

.side-menu .tab.active {
  background: var(--accent-gold);
  transform: translateX(-8px) scale(1.05);
  box-shadow: 6px 6px 0px #000;
}

/* Overlay pour fermer le menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Cacher l'ancien nav-wrapper */
.nav-wrapper {
  display: none;
}

/* === LA CHAMBRE DES B�B�S === */

.nursery-container {
  background: linear-gradient(180deg, #e6f3ff 0%, #fff5f8 50%, #ffe6f0 100%);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(255, 182, 193, 0.4);
  position: relative;
  overflow: hidden;
}

.nursery-title {
  color: #ff69b4;
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(255, 182, 193, 0.5);
  margin-bottom: 10px;
  animation: gentle-pulse 3s ease-in-out infinite;
}

.nursery-subtitle {
  color: #9370db;
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 30px;
  opacity: 0.9;
}

.nursery-room {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 30px;
  border: 3px dashed #ffb6c1;
  position: relative;
  min-height: 400px;
}

/* Grille pour les photos des animaux */
.sleeping-pets-grid {
  display: block;
  margin-bottom: 30px;
}

.pet-placeholder {
  background: linear-gradient(135deg, #fff0f5, #e6e6fa);
  border: 3px dashed #dda0dd;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.pet-placeholder:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(221, 160, 221, 0.4);
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  animation: gentle-bounce 2s ease-in-out infinite;
}

.pet-placeholder p {
  color: #9370db;
  font-size: 0.9rem;
  font-style: italic;
}

/* D�corations flottantes */
.nursery-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.star,
.moon,
.cloud {
  position: absolute;
  font-size: 2rem;
  animation: twinkle 3s ease-in-out infinite;
}

.star-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.star-2 {
  top: 15%;
  right: 15%;
  animation-delay: 0.5s;
}

.star-3 {
  top: 60%;
  left: 5%;
  animation-delay: 1s;
}

.star-4 {
  top: 70%;
  right: 10%;
  animation-delay: 1.5s;
}

.star-5 {
  top: 30%;
  right: 30%;
  animation-delay: 2s;
}

.moon {
  top: 5%;
  right: 5%;
  font-size: 3rem;
  animation: gentle-sway 4s ease-in-out infinite;
}

.cloud {
  font-size: 2.5rem;
  animation: float-cloud 20s linear infinite;
}

.cloud-1 {
  top: 20%;
  animation-duration: 25s;
}

.cloud-2 {
  top: 50%;
  animation-duration: 30s;
}

.cloud-3 {
  top: 80%;
  animation-duration: 22s;
}

/* Lecteur de berceuse */
.lullaby-player {
  text-align: center;
  margin-top: 20px;
}

.lullaby-btn {
  background: linear-gradient(135deg, #ffb6c1, #dda0dd);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: bold;
}

.lullaby-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 182, 193, 0.6);
}

.lullaby-btn:active {
  transform: translateY(0);
}

.lullaby-text {
  margin-top: 20px;
  font-size: 1.5rem;
  color: #9370db;
  font-style: italic;
  animation: fade-in-out 3s ease-in-out infinite;
}

/* Message mignon */
.nursery-message {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  border: 2px solid #ffb6c1;
  text-align: center;
}

.nursery-message p {
  color: #ff69b4;
  font-size: 1.2rem;
  margin: 10px 0;
}

.nursery-note {
  color: #9370db !important;
  font-size: 1rem !important;
  font-style: italic;
}

/* Animations */
@keyframes gentle-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes gentle-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes gentle-sway {

  0%,
  100% {
    transform: rotate(-5deg);
  }

  50% {
    transform: rotate(5deg);
  }
}

@keyframes float-cloud {
  0% {
    left: -10%;
  }

  100% {
    left: 110%;
  }
}

@keyframes fade-in-out {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}



/* Contr�les audio pour la chambre des b�b�s */
.audio-controls {
  text-align: center;
  margin-top: 20px;
}

.music-control-btn {
  background: linear-gradient(135deg, #b19cd9, #ffb6c1);
  color: white;
  border: 3px solid #9370db;
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(179, 156, 217, 0.4);
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: bold;
}

.music-control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 156, 217, 0.6);
}

.music-control-btn:active {
  transform: translateY(0);
}

.music-control-btn.playing {
  background: linear-gradient(135deg, #98fb98, #87ceeb);
  border-color: #32cd32;
}

/* Image des b�b�s qui dorment */
.sleeping-pets-image-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 182, 193, 0.5);
}

.sleeping-pets-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.pet-zone {
  cursor: pointer;
  border: 2px solid rgba(255, 182, 193, 0.3);
  background: rgba(255, 182, 193, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
  animation: gentle-glow 3s ease-in-out infinite;
}

.pet-zone:hover {
  background: rgba(255, 182, 193, 0.4);
  border-color: rgba(255, 105, 180, 0.8);
  box-shadow: 0 0 20px rgba(255, 182, 193, 0.6), inset 0 0 10px rgba(255, 182, 193, 0.3);
  transform: scale(1.05);
  z-index: 10;
}

@keyframes gentle-glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 182, 193, 0.3);
  }

  50% {
    box-shadow: 0 0 15px rgba(255, 182, 193, 0.5);
  }
}



/* Fix for friend selector visibility in scary mode */
body.scary-mode #friend-selector option {
  color: black !important;
  background-color: white !important;
}


/* Fix for friend selector and label visibility in scary mode */
body.scary-mode #friend-selector {
  color: black !important;
  background-color: white !important;
}

body.scary-mode .friend-controls label {
  color: white !important;
  text-shadow: 2px 2px 4px black;
}




/* FIXED: Proper scary mode override for friend selector */
body.scary-mode #friend-selector {
  /* Keep the selector visible and functional */
  color: #000000 !important;
  background-color: #ffffff !important;
  border: 2px solid #ff0000 !important;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  padding: 10px !important;
  height: auto !important;
  min-height: 44px !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.scary-mode #friend-selector option {
  color: #000000 !important;
  background-color: #ffffff !important;
  padding: 5px !important;
}

body.scary-mode .friend-controls label {
  color: #ff0000 !important;
  text-shadow: 2px 2px 4px #000000, 0 0 10px #000000 !important;
  font-weight: bold !important;
  font-size: 18px !important;
}

/* === DESIGN PREMIUM POUR LES ZONES INTERACTIVES === */
.golden-zone {
  border: 2px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  animation: gold-pulse 2.5s infinite;
}

.golden-zone:hover {
  background: rgba(212, 175, 55, 0.3);
  border: 2px solid rgba(255, 215, 0, 0.9);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
  transform: scale(1.02);
}

@keyframes gold-pulse {

  0%,
  100% {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  }

  50% {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  }
}

/* Corrections de mise en page pour les scènes - Look Épuré */
.full-width-scene {
  max-width: 1400px !important;
  width: 98% !important;
  margin: 0 auto !important;
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  border: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  border-radius: 20px !important;
}

.scene-img-full {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
}

/* ===== SCÈNES PLEIN ÉCRAN (exploration point-and-click, sans scroll) ===== */
html:has(body.fs-scene) {
  height: 100%;
  overflow: hidden;
}

body.fs-scene {
  margin: 0;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
  background: #000;
}

body.fs-scene.fs-scene-pink {
  background-color: var(--bg-color);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 9%, transparent 10%),
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 9%, transparent 10%);
  background-size: 46px 46px;
  background-position: 0 0, 23px 23px;
}

body.fs-scene.fs-scene-pink .fs-container,
body.fs-scene.fs-scene-pink #cafe-16h-stage,
body.fs-scene.fs-scene-pink .fac-stage {
  background: transparent;
}

body.fs-scene nav {
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
}

.fs-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fs-frame {
  position: relative;
  /* --ar = ratio largeur/hauteur de l'image (fixé en inline-style par page).
     Calcule la plus grande boîte à ce ratio qui tient dans l'écran, pour que
     l'image remplisse vraiment l'espace dispo (agrandie si besoin), tout en
     gardant les zones cliquables (en %) alignées avec l'image réelle. */
  width: min(100vw, calc(100vh * var(--ar, 1.5)));
  height: min(100vh, calc(100vw / var(--ar, 1.5)));
  line-height: 0;
}

.fs-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fs-exit-btn {
  position: fixed !important;
  top: 20px;
  left: 20px;
  z-index: 9999;
}

.fs-mute-btn {
  position: fixed;
  top: 82px;
  left: 20px;
  z-index: 9998;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 3px solid #d4af37;
  color: #d4af37;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.fs-panel {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(640px, 92vw);
  background: rgba(10, 10, 10, 0.88);
  border: 3px solid var(--accent-gold);
  border-radius: 18px;
  padding: 16px 26px;
  color: #fff;
  text-align: center;
  z-index: 500;
  font-weight: 600;
  line-height: 1.5;
  max-height: 30vh;
  overflow-y: auto;
}

.fs-panel.fs-panel-hidden {
  display: none;
}

.fs-title-badge {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(10, 10, 10, 0.75);
  border: 2px solid var(--accent-gold);
  border-radius: 999px;
  padding: 8px 24px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 0.95rem;
  text-align: center;
  pointer-events: none;
  max-width: 80vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}