/* ================================================
   LAYOUT — Structure principale & zones
   ================================================ */

/* ── Wrapper global : bandeau | contenu | bandeau ── */
.wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

/* ── Conteneur principal ── */
.layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  height: 100dvh;
}

/* ── Zone Caméras — 15% ── */
.zone-camera {
  height: 15%;
  background-color: var(--color-bg-camera);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6px 10px;
}

/* ── Zone Jeux — 60% ── */
.zone-game {
  height: 60%;
  background-color: var(--color-bg-game);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  overflow: hidden;
}

/* ── Canvas du jeu (map) ── */
.game-canvas {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.game-canvas.active {
  display: block;
}

/* ── Zone Overlay — 8% ── */
.zone-overlay {
  height: 8%;
  background-color: var(--color-bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* ligne or subtile dessus/dessous */
  box-shadow: 0 -1px 0 var(--gold-line), 0 1px 0 var(--gold-line);
}

/* ── Zone Messages TikTok — 17% ── */
.zone-tiktok {
  height: 17%;
  background-color: var(--color-bg-tiktok);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--gold-line);
}

/* ── Gift Actions Overlay ── */
#gift-actions-overlay {
  display: none;
  position: fixed;
  bottom: 19%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 12px 18px;
  background: rgba(10, 10, 16, 0.88);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 90vw;
  pointer-events: none;
}
#gift-actions-overlay.visible {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ga-overlay-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ga-overlay-slot:last-child { border-bottom: none; }
.ga-overlay-gifts {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.ga-overlay-gift-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
}
.ga-overlay-gift-name {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  padding: 2px 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
.ga-overlay-arrow {
  color: var(--gold, #C9A84C);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.ga-overlay-action {
  font-family: var(--font-display, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ga-overlay-duration {
  font-size: 11px;
  color: rgba(201,168,76,0.8);
  background: rgba(201,168,76,0.12);
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}
