/* * Widget: spotlight (Feed du Guesseur) - Version Polymorphe
 * V4.0 - Final Polish & Animation Restoration */
.widget-spotlight {
  --holo-color: #00e5ff;
  --holo-color-rgb: 0, 229, 255;
  --holo-glow: rgba(0, 229, 255, 0.4);
  --neon-cyan: #a7eaff;
  --portal-color: var(--holo-color);
  --portal-color-rgb: var(--holo-color-rgb);
  margin-bottom: 0 !important;
  cursor: default !important;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  /* --- RESTAURATION DE L'ANIMATION DE LUEUR --- */
  animation: globalPortalGlow 30s ease-in-out infinite;
  animation-delay: 5s;
}

/* --- BASE COCKPIT CARD --- */
.cockpit-portal-card {
  position: relative;
  background: rgba(13, 14, 23, 0.9);
  border: 1px solid rgba(var(--holo-color-rgb), 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
  box-shadow: inset 0 0 20px rgba(var(--holo-color-rgb), 0.05);
  z-index: 9;
}

/* --- NÉONS QUI SORTENT LÉGÈREMENT --- */
.cockpit-portal-card::before,
.cockpit-portal-card::after {
  content: "";
  position: absolute;
  top: 21%;
  height: 66%;
  width: 4px;
  background-color: #fff;
  opacity: 0.6;
  /* Lueur réduite au repos : moins diffuse */
  box-shadow: 0 0 4px #fff, 0 0 8px rgba(var(--holo-color-rgb), 0.8), 0 0 12px rgba(var(--holo-color-rgb), 0.5);
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cockpit-portal-card::before {
  left: -2px;
}

.cockpit-portal-card::after {
  right: -2px;
}

.spotlight-stream-mode-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 230;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(16, 185, 129, 0.62);
  border-radius: 0.45rem;
  background: rgba(6, 78, 59, 0.82);
  color: #d1fae5;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25), 0 0 0 1px rgba(16, 185, 129, 0.12) inset;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  pointer-events: none;
}

.spotlight-stream-mode-badge i {
  color: #34d399;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.55));
}

/* Ajustement spécifique pour le mode Square au repos : Plus haut */
.cockpit-portal-card.is-square::before,
.cockpit-portal-card.is-square::after {
  top: 15%;
  /* Remonté */
  height: 70%;
}

.cockpit-portal-card:is(:hover, .is-owner-hovered)::before,
.cockpit-portal-card:is(:hover, .is-owner-hovered)::after {
  opacity: 1;
  height: 80%;
  top: 10%;
  box-shadow: 0 0 10px #fff, 0 0 25px rgba(var(--holo-color-rgb), 1), 0 0 35px rgba(var(--holo-color-rgb), 0.9);
}

/* --- HABILLAGES : FIXES (PAS D'ANIMATION) --- */
.portal-hab-haut,
.portal-hab-bas {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 38px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 110;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 12px rgba(var(--holo-color-rgb), 0.8));
}

.portal-hab-haut,
.portal-hab-bas {
  width: 320px;
}

.is-square .portal-hab-haut,
.is-square .portal-hab-bas {
  width: 100%;
  left: 0;
  transform: none;
}

.portal-hab-haut {
  top: -8px;
  opacity: 0;
}

.portal-hab-bas {
  bottom: -13px;
  opacity: 1;
}

/* Suppression animation levitate */
.cockpit-portal-card:is(:hover, .is-owner-hovered) .portal-hab-haut {
  opacity: 1;
  top: -10px;
}

.cockpit-portal-card:is(:hover, .is-owner-hovered) .portal-hab-bas {
  bottom: -18px;
  filter: drop-shadow(0 0 20px rgba(var(--portal-color-rgb), 1));
}

/* --- IMAGES & THUMBNAILS (V4.1 - Smooth Fade-In + Skeleton) --- */
.widget-spotlight .preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Caché par défaut pour le loading */
  transition: opacity 0.5s ease-in-out, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}

/* État chargé : visible (opacité standard) */
.widget-spotlight .preview-img.is-loaded {
  opacity: 0.7;
}

/* L'opacité change au hover via le parent UNIQUEMENT si chargé */
.widget-spotlight .cockpit-portal-card:hover .preview-img.is-loaded,
.widget-spotlight.is-owner-hovered .preview-img.is-loaded {
  opacity: 1 !important;
  transform: scale(1.05);
}

/* Skeleton Shimmer Effect pour le chargement */
.widget-spotlight .hologram-preview {
  position: relative;
  background: #1a1c29;
  /* Fond sombre */
  overflow: hidden;
  z-index: 1;
  /* S'assurer qu'il est au dessus si nécessaire */
}

.widget-spotlight .hologram-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 50%,
      transparent 100%);
  animation: shimmer 1.5s infinite;
  z-index: 2;
  /* Au dessus de l'image (qui est à 0 ou 1) */
  pointer-events: none;
}

/* Masquer le shimmer une fois chargé */
.widget-spotlight .hologram-preview:has(.preview-img.is-loaded)::before {
  display: none;
}

/* --- MODE INLINE --- */
.cockpit-portal-card.is-inline {
  width: 100%;
  flex-direction: row !important;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  min-height: 110px;
}

.is-inline .spotlight-horizontal-wrapper {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 10;
}

.is-inline .spotlight-left-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1 1 0;
  width: 0;
}

.is-inline .spotlight-center-column {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  z-index: 20;
}

.is-inline .spotlight-right-column {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1 1 0;
  width: 0;
}

.is-inline .portal-header-title {
  margin-left: 0;
  /* Aligné à gauche */
  margin-right: 0;
  max-width: none;
  text-align: left;
  margin-bottom: 0;
  margin-top: 0.1rem;
}

.is-inline .hologram-preview {
  width: 180px;
  margin-top: 0.5rem;
  /* Équilibre vertical vignette */
}

.cockpit-portal-card.is-square {
  width: 100%;
  min-height: 280px;
  padding: 0.75rem 1rem !important;
}

.is-square .spotlight-internal-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.is-square .hologram-preview {
  width: 100%;
  max-width: 220px;
  margin-bottom: 0.8rem;
}

.is-square .hologram-meta {
  margin-top: 0.2rem;
  margin-bottom: 0;
}

.is-square .portal-header-title {
  margin-bottom: 0.8rem;
  margin-top: 0.8rem;
}

/* --- TITRAGE --- */
.portal-header-title {
  z-index: 10;
  width: 100%;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.spotlight-player-ghost {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  contain: layout paint;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.spotlight-player-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 14, 23, 0.08) 0%, rgba(13, 14, 23, 0.5) 76%);
}

.spotlight-player-ghost-image {
  position: absolute;
  border-radius: 12px;
  inset: 5px;
  width: calc(100% + 20px);
  height: calc(90% + 20px);
  max-width: none;
  object-fit: cover;
  object-position: calc(50% - 77px) center;
  opacity: 0.66;
  filter: saturate(1.18) contrast(1.08) brightness(1.04);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 33%, rgba(0, 0, 0, 0.54) 66%, rgba(0, 0, 0, 0.54) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 33%, rgba(0, 0, 0, 0.54) 66%, rgba(0, 0, 0, 0.54) 100%);
  transform: translate3d(0, 0, 0) scale(1.02);
  backface-visibility: hidden;
  will-change: opacity, transform;
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cockpit-portal-card:is(:hover, .is-owner-hovered) .spotlight-player-ghost-image {
  opacity: 0.28;
  transform: translate3d(0, 0, 0) scale(1.06);
}

.spotlight-player-signature {
  display: block;
  width: 100%;
  margin-top: 0.22rem;
  font-family: "JetBrains Mono", "Kanit", "Consolas", "Monaco", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a7eaff;
  text-align: center;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 2px #a7eaff,
    0 0 10px #71d9ff,
    0 0 20px #00F0FF;
  opacity: 0.88;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cockpit-portal-card:is(:hover, .is-owner-hovered) .spotlight-player-signature {
  opacity: 1;
  transform: translate3d(0, -8px, 0);
}

.spotlight-guide-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
  pointer-events: none;
  z-index: 220;
  white-space: normal;
  animation: spotlightGuideHintIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.spotlight-guide-hint--top {
  position: absolute;
  left: 50%;
  top: -23px;
  transform: translate3d(-50%, 0, 0);
  transform-origin: center bottom;
  width: max-content;
  max-width: min(320px, calc(100vw - 2rem));
}

.spotlight-guide-mark {
  position: relative;
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: #d61f45;
  pointer-events: none;
  animation: jgtr-pulse-glow-red 2s infinite;
  box-shadow: 0 0 4px rgba(214, 31, 69, 0.75);
  overflow: visible !important;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-8px);
}

.spotlight-guide-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  background: rgba(214, 31, 69, 0.4);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: spotlightSonar 2s ease-out infinite 0.5s;
  z-index: -1;
}

.spotlight-guide-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  background: rgba(214, 31, 69, 0.3);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: spotlightSonar 2s ease-out infinite;
  z-index: -1;
}

.spotlight-guide-panel {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 4px;
  background: #d61f45;
  box-shadow: 0 4px 15px rgba(214, 31, 69, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
  border: none;
}

.spotlight-guide-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.spotlight-guide-copy strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: none;
}

.spotlight-guide-copy small {
  margin-top: 1px;
  font-family: "Kanit", sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: none;
}

.title-word {
  font-family: "Kanit", sans-serif;
  font-size: 1.5rem;
  /* Augmenté */
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(var(--holo-color-rgb), 0.6);
}

.widget-spotlight .portal-header-title .title-word, .widget-spotlight .spotlight-play-card-title .title-word { display: inline-block !important; opacity: 1 !important; transform: none !important; }

.title-word.gradient-text {
  color: var(--holo-color) !important;
  /* Force le CYAN */
  background: none !important;
  -webkit-text-fill-color: var(--holo-color) !important;
  text-shadow: 0 0 10px rgba(var(--holo-color-rgb), 0.8);
}

.widget-spotlight .portal-header-title .title-word.gradient-text, .widget-spotlight .spotlight-play-card-title .title-word.gradient-text { color: var(--holo-color) !important; background: none !important; -webkit-text-fill-color: var(--holo-color) !important; text-shadow: 0 0 10px rgba(var(--holo-color-rgb), 0.8) !important; }

/* --- ÉLÉMENTS COMMUNS --- */
.portal-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 12px;
  z-index: 25;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity;
}

.cockpit-portal-card:is(:hover, .is-owner-hovered) .portal-grid-overlay {
  opacity: 0;
}

.spotlight-xp-callout {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  z-index: 30;
  white-space: nowrap;
  pointer-events: none;
}

.cockpit-portal-card.is-square .spotlight-xp-callout {
  top: 46px;
}

.spotlight-xp-callout-icon {
  height: 22px;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  filter: none;
  object-fit: contain;
  display: block;
}

.spotlight-xp-callout-text {
  font-family: "Kanit", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.18);
}

.cockpit-portal-card.is-square .spotlight-internal-content {
  margin-top: 28px;
}

.cockpit-portal-card.is-square .portal-header-title {
  margin-top: 0.05rem;
  transform: translateY(-3px);
}

.cockpit-portal-card:is(:hover, .is-owner-hovered) .spotlight-xp-callout {
  opacity: 0;
  transform: translate3d(-50%, -6px, 0);
}

.hologram-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-family: "JetBrains Mono", monospace;
  z-index: 10;
  margin-bottom: 0.2rem;
}

.meta-tag {
  color: var(--holo-color);
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.meta-game {
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* --- MODE PLAY : CARTE SOLO COMPACTE --- */
.cockpit-portal-card.is-play-card { width: 100%; min-height: 240px !important; height: 240px !important; padding: 0.7rem 0.85rem !important; display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 0; overflow: visible !important; position: relative; cursor: default !important; background: linear-gradient(180deg, rgba(15, 17, 25, 0.99), rgba(8, 9, 15, 0.99)); border-color: rgba(var(--holo-color-rgb), 0.34); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.52), inset 0 0 22px rgba(var(--holo-color-rgb), 0.035); }
.is-play-card .portal-grid-overlay { z-index: 15; }
.is-play-card .spotlight-xp-callout { display: none !important; }
.is-play-card .spotlight-guide-hint--top { top: -18px; }
.is-play-card .spotlight-guide-panel { padding: 7px 14px; }
.is-play-card .spotlight-guide-copy { align-items: center; }
.is-play-card .portal-hab-haut, .is-play-card .portal-hab-bas { width: 100%; left: 0; transform: none; }
.is-play-card .portal-hab-haut { opacity: 1 !important; top: -8px !important; }
.is-play-card .portal-hab-bas { bottom: -13px; }
.is-play-card .spotlight-player-ghost::after { background: linear-gradient(180deg, rgba(13, 14, 23, 0.28) 0%, rgba(13, 14, 23, 0.72) 76%); }
.is-play-card .spotlight-player-ghost-image { opacity: 0.36; object-position: center center; filter: saturate(1.05) contrast(1.08) brightness(0.95); }
.is-play-card:hover .spotlight-player-ghost-image { opacity: 0.2; transform: translate3d(0, 0, 0) scale(1.05); }
.spotlight-play-card-content { position: relative; z-index: 40; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 0.55rem; }
.spotlight-play-card-mode-icon { position: absolute; top: -25px; left: 97%; width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; z-index: 95; pointer-events: none; transform: translate3d(-50%, 0, 0); backface-visibility: hidden; filter: drop-shadow(0 0 18px rgba(var(--holo-color-rgb), 0.75)); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease; will-change: transform; }
.spotlight-play-card-mode-icon img { width: 100%; height: 100%; object-fit: contain; opacity: 1; }
.is-play-card:hover .spotlight-play-card-mode-icon { transform: translate3d(-50%, -6px, 20px) scale(1.06); filter: drop-shadow(0 0 24px rgba(var(--holo-color-rgb), 0.9)); }
.spotlight-play-card-meta { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; margin-top: 0; margin-bottom: 0.35rem; }
.spotlight-play-card-protocol { font-family: "JetBrains Mono", monospace; font-size: 0.58rem; color: #8b5cf6; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; }
.spotlight-play-card-key { font-family: "JetBrains Mono", monospace; font-size: 0.58rem; color: var(--holo-color); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; text-shadow: 0 0 8px rgba(var(--holo-color-rgb), 0.7); }
.spotlight-play-card-preview-form { width: 100%; display: flex; justify-content: center; margin: 0; }
.spotlight-play-card-preview-btn { max-width: 180px; }
.is-play-card .hologram-preview { width: 180px; max-width: 180px; margin: 0 auto; transform: translate3d(0, 0, 0); border-color: rgba(var(--holo-color-rgb), 0.4); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55), 0 0 12px rgba(var(--holo-color-rgb), 0.12); }
.is-play-card .preview-overlay { display: none; }
.is-play-card:hover .hologram-preview { transform: translate3d(0, -4px, 0) scale(1.02); }
.spotlight-play-card-title { width: 100%; max-width: 205px; margin: 0.28rem auto 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.14rem; }
.spotlight-play-card-title .title-word { font-size: 0.98rem; line-height: 0.95; letter-spacing: 0.04em; }
.spotlight-play-card-player-signature { display: flex; align-items: center; justify-content: center; gap: 0.36rem; width: max-content; max-width: 190px; margin-top: 0; font-size: 9px; letter-spacing: 1.1px; }
.spotlight-play-card-player-avatar { display: block; width: 27px; height: 27px; flex: 0 0 27px; object-fit: cover; object-position: 38% center; border: 1px solid rgba(var(--holo-color-rgb), 0.58); border-radius: 50%; background: #0a0b12; box-shadow: 0 0 8px rgba(var(--holo-color-rgb), 0.28); filter: saturate(1.15) brightness(1.12) contrast(1.05); transform: translate3d(0, 0, 0); backface-visibility: hidden; }
.spotlight-play-card-player-name { min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-play-card-challenge-title { display: inline-flex; align-items: center; justify-content: center; gap: 0.32rem; width: 100%; white-space: nowrap; transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.spotlight-play-card-title-play-icon { display: block; width: 23px; height: 23px; flex: 0 0 23px; object-fit: contain; filter: drop-shadow(0 0 7px rgba(201, 70, 255, 0.52)); transform: translate3d(0, 0, 0); backface-visibility: hidden; }
.spotlight-play-card-challenge-copy { display: inline-flex; align-items: baseline; justify-content: center; gap: 0.22rem; min-width: 0; }
.is-play-card:hover .spotlight-play-card-player-signature { transform: translate3d(0, -2px, 0); }
.is-play-card:hover .spotlight-play-card-challenge-title { opacity: 0; visibility: hidden; transform: translate3d(0, -3px, 0); pointer-events: none; }
.spotlight-play-card-actions { position: static; padding: 0; z-index: 90; }
.spotlight-play-card-launch-form { position: absolute; bottom: 1.5rem; left: 50%; margin: 0; width: auto; z-index: 100; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 20px) translateZ(10px); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s ease !important; will-change: transform, opacity; }
.is-play-card:hover .spotlight-play-card-launch-form { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 45px) translateZ(30px); }
.spotlight-play-card-launch { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 2rem; border-radius: 5px 15px; font-family: "Kanit", sans-serif; font-weight: 900; color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; border: 2px solid var(--holo-color); background: rgba(var(--holo-color-rgb), 0.45); box-shadow: 0 0 25px rgba(var(--holo-color-rgb), 0.5); transition: background 0.25s ease, box-shadow 0.25s ease !important; }
.is-play-card .spotlight-play-card-launch.is-owner-btn { font-size: 0.9rem !important; padding: 0.6rem 2rem !important; }
.is-play-card .spotlight-play-card-launch.is-owner-btn i { font-size: 0.9rem !important; }
.spotlight-play-card-launch:hover:not(:disabled) { background: rgba(var(--holo-color-rgb), 0.5); box-shadow: 0 0 34px rgba(var(--holo-color-rgb), 0.72); }
.spotlight-play-card-launch:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(1); }
.spotlight-play-card-info { position: absolute; top: calc(100% + 2rem); left: 50%; appearance: none; border: 0; background: transparent; color: rgba(226, 246, 255, 0.72); font-family: "JetBrains Mono", monospace; font-size: 0.6rem; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; text-align: center; cursor: pointer; padding: 0; width: max-content; max-width: 250px; text-transform: none; transform: translate3d(-50%, 0, 0); transition: color 0.22s ease, text-shadow 0.22s ease, transform 0.22s ease; }
.spotlight-play-card-info span { color: var(--holo-color); font-weight: 900; text-transform: uppercase; text-shadow: 0 0 8px rgba(var(--holo-color-rgb), 0.5); }
.spotlight-play-card-info:hover { color: #fff; transform: translate3d(-50%, -1px, 0); text-shadow: 0 0 8px rgba(var(--holo-color-rgb), 0.45); }
.is-play-card .spotlight-status-badge { bottom: 46px; font-size: 0.54rem !important; }

/* --- SMART SCALE POUR SIDEBAR --- */
.is-sidebar-context .widget-spotlight {
  zoom: 0.8;
  /* Safari & Chrome */
  transform-origin: top center;
  max-width: 100%;
}

@supports not (zoom: 0.8) {
  .is-sidebar-context .widget-spotlight {
    transform: scale(0.8);
  }
}

.is-sidebar-context .is-square .portal-actions-container {
  gap: 0.4rem;
  max-width: 280px;
  /* Plus serré */
}

.is-sidebar-context .is-square .card-button-style2.play {
  min-width: 100px;
  font-size: 0.7rem;
  padding: 0.5rem 0.6rem;
}

.is-sidebar-context .is-square .btn-propulse-clip {
  min-width: 90px;
  padding: 8px 6px;
}

/* PREVIEW */
.hologram-preview {
  position: relative;
  aspect-ratio: 16/9;
  border: 1px solid rgba(var(--holo-color-rgb), 0.3);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.is-inline .hologram-preview {
  width: 180px;
}

/* Un poil plus grand */
.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: all 0.4s ease;
}

.cockpit-portal-card:is(:hover, .is-owner-hovered) .preview-img {
  opacity: 1;
  transform: scale(1.05);
}

.custom-play-icon {
  width: 36px;
  height: 32px;
  filter: drop-shadow(0 0 5px rgba(var(--holo-color-rgb), 0.8));
}

.custom-play-icon-white-mask {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: white !important;
  /* TOUJOURS BLANC */
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  z-index: 5;
  opacity: 0.9;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.cockpit-portal-card:is(:hover, .is-owner-hovered) .custom-play-icon-white-mask {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: white !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* --- VOILE LUDIQUE (SQUARE ONLY) - REFONTE TOTALE --- */
.cockpit-portal-card.is-square {
  /* Flexbox centré pour l'état de repos */
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  /* Centre verticalement le contenu visible (Titre + Preview) */
  align-items: center;
  gap: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 1.5rem 1rem !important;
  overflow: visible !important;
  /* CRUCIAL pour notif-hab */
  /* STABILISATION DE LA HAUTEUR */
  min-height: 290px !important;
  height: 290px !important;
  position: relative;
  /* Pour les éléments absolus */
}

/* ÉLÉMENTS MASQUÉS AU REPOS (Absolute) */
.is-square .hologram-meta {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  text-align: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
}

.is-square .hologram-meta .meta-tag {
  flex: 0 1 auto !important;
  /* Ne pas forcer l'expansion */
  max-width: none;
}

.is-square .hologram-meta .meta-game {
  max-width: none;
  /* Laisser le texte respirer si possible */
}

.is-square .hologram-actions {
  position: absolute;
  bottom: 20px;
  /* Ajusté selon demande */
  left: 0;
  right: 0;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
}

/* ÉLÉMENTS VISIBLES AU REPOS (Flex Items) */
.is-square .spotlight-internal-content {
  /* Contient la Preview et les Actions (mais actions sont absolues) */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: static;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.is-square .hologram-preview {
  width: 100%;
  max-width: 220px;
  margin-bottom: 0.15rem;
  /* Espace sous la preview */
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(1);
  z-index: 20;
}

.is-square .portal-header-title {
  width: 100%;
  max-width: 220px;
  margin-top: 0.1rem;
  margin-bottom: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(0);
}

/* --- ÉTAT HOVER : RÉVÉLATION --- */
/* 1. Apparition des éléments masqués */
.cockpit-portal-card.is-square:is(:hover, .is-owner-hovered) .hologram-meta {
  opacity: 1;
  transform: translateY(0);
}

.cockpit-portal-card.is-square:is(:hover, .is-owner-hovered) .hologram-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 2. Ajustement des éléments centraux (Léger glissement vers le haut) */
/* On déplace le conteneur ou les éléments individuels pour faire de la place aux actions en bas */
.cockpit-portal-card.is-square:is(:hover, .is-owner-hovered) .hologram-preview {
  transform: translateY(-20px) scale(0.95);
  /* Monte un peu et rétrécit à peine */
}

.cockpit-portal-card.is-square:is(:hover, .is-owner-hovered) .portal-header-title {
  transform: translateY(-20px);
  /* Suit la preview */
}

/* Habillage Haut : Toujours visible en Square, position fixe */
.is-square .portal-hab-haut {
  opacity: 1 !important;
  top: -8px !important;
  transition: top 0.3s ease;
}

.cockpit-portal-card.is-square:is(:hover, .is-owner-hovered) .portal-hab-haut {
  top: -13px !important;
  /* Petit effet au hover */
}

/* BOUTONS */
.portal-actions-container {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.is-square .portal-actions-container {
  flex-direction: row !important;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

.card-button-style2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  transition: all 0.2s ease-out;
  position: relative;
  z-index: 2;
  font-family: "Kanit", sans-serif;
  white-space: nowrap;
}

.card-button-style2.play {
  background-image: linear-gradient(135deg, rgba(108, 99, 255, 0.4) 0%, rgba(176, 102, 255, 0.4) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 8px rgba(123, 114, 255, 0.6);
  border-color: rgba(178, 172, 255, 0.5);
  font-size: 0.95rem;
  font-weight: 800;
  min-width: 150px;
}

.is-inline .card-button-style2.play {
  min-width: 180px;
}

.card-button-style2.play:hover {
  background-image: linear-gradient(145deg, rgb(128, 119, 255), rgb(158, 112, 255));
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 20px rgba(178, 147, 255, 0.6);
  border-color: #fff;
}

.btn-propulse-clip {
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 6px;
  padding: 10px 15px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.is-square .btn-propulse-clip {
  min-width: 130px;
}

.btn-propulse-clip:hover {
  background: rgba(var(--holo-color-rgb), 0.25);
  border-color: rgba(var(--holo-color-rgb), 0.6);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--holo-color-rgb), 0.2);
}

.btn-propulse-clip.is-pulse-alert {
  animation: spotlightPulseHint 4.5s ease-in-out infinite;
}

.shop-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.shop-btn-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

.shop-btn-icon img {
  position: absolute;
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
  height: 100%;
}

.shop-btn-icon .propu-icon-on {
  opacity: 0;
}

.btn-propulse-clip:hover .propu-icon-on {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.8));
}

.btn-propulse-clip:hover .propu-icon-off {
  opacity: 0;
}

.shop-btn-value {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- RESTAURATION ANIMATION GLOW --- */
@keyframes globalPortalGlow {

  0%,
  100% {
    box-shadow: 0 0 0px transparent;
    border-color: rgba(var(--holo-color-rgb), 0.3);
  }

  1.5%,
  2.5% {
    box-shadow: 0 0 30px rgba(var(--holo-color-rgb), 0.4), inset 0 0 20px rgba(var(--holo-color-rgb), 0.2);
    border-color: rgba(var(--holo-color-rgb), 0.8);
  }

  3.5% {
    box-shadow: 0 0 0px transparent;
    border-color: rgba(var(--holo-color-rgb), 0.3);
  }

  4%,
  5% {
    box-shadow: 0 0 30px rgba(var(--holo-color-rgb), 0.4), inset 0 0 20px rgba(var(--holo-color-rgb), 0.2);
    border-color: rgba(var(--holo-color-rgb), 0.8);
  }

  6% {
    box-shadow: 0 0 0px transparent;
    border-color: rgba(var(--holo-color-rgb), 0.3);
  }

  6.5%,
  7.5% {
    box-shadow: 0 0 40px rgba(var(--holo-color-rgb), 0.5), inset 0 0 25px rgba(var(--holo-color-rgb), 0.3);
    border-color: rgba(var(--holo-color-rgb), 1);
  }

  8.5%,
  100% {
    box-shadow: 0 0 0px transparent;
    border-color: rgba(var(--holo-color-rgb), 0.3);
  }
}

@keyframes portalScanner {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

@keyframes spotlightGuideHintIn {
  from {
    opacity: 0;
    transform: translate3d(-50%, 4px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
  }
}

@keyframes jgtr-pulse-glow-red {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 4px #d61f45;
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 10px #ff3b5c;
  }
}

@keyframes spotlightSonar {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  50% {
    transform: scale(2.2);
    opacity: 0;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes spotlightPulseHint {

  0%,
  11%,
  23%,
  35%,
  55%,
  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 8px rgba(123, 114, 255, 0.18);
    border-color: rgba(178, 172, 255, 0.35);
    filter: brightness(1);
  }

  14% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 18px rgba(var(--holo-color-rgb), 0.28);
    border-color: rgba(var(--holo-color-rgb), 0.5);
    filter: brightness(1.06);
  }

  17% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(var(--holo-color-rgb), 0.16);
    border-color: rgba(var(--holo-color-rgb), 0.4);
    filter: brightness(1.02);
  }

  30% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 18px rgba(var(--holo-color-rgb), 0.28);
    border-color: rgba(var(--holo-color-rgb), 0.5);
    filter: brightness(1.06);
  }

  33% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(var(--holo-color-rgb), 0.16);
    border-color: rgba(var(--holo-color-rgb), 0.4);
    filter: brightness(1.02);
  }
}

@media (max-width: 1024px) {
  .cockpit-portal-card.is-inline {
    flex-direction: column !important;
    padding: 1.5rem;
  }
}

.is-owner-btn {
  font-size: 0.75rem !important;
  padding-left: 0.8rem !important;
  padding-right: 0.8rem !important;
}

.is-owner-btn i {
  font-size: 0.8rem;
}

/* --- DFI: ANCRAGE & BADGES HUD --- */
.hologram-preview-btn {
  position: relative;
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: visible !important;
}

/* Badge HUD Spotlight (Standardisé) */
.spotlight-status-badge {
  position: absolute;
  bottom: 25px;
  left: 50%;
  z-index: 200;
  opacity: 0;
  transform: translateX(-50%) translateY(5px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap !important;
  /* Force une seule ligne */
  pointer-events: none;
  /* Harmonisation Cyan (Vitre Spotlight) */
  background: rgba(0, 229, 255, 0.44) !important;
  border: 1px solid rgba(0, 229, 255, 0.5) !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.14) !important;
  text-shadow: 0 0 5px rgba(0, 229, 255, 0.4) !important;
  font-size: 0.65rem !important;
}

/* Affichage uniquement au survol de la carte globale */
.cockpit-portal-card:is(:hover, .is-owner-hovered) .spotlight-status-badge {
  opacity: 1 !important;
  transform: translateY(0);
}

/* --- SQUARE : PRÉSENCE VISUELLE & IDENTITÉ DU JOUEUR --- */
.cockpit-portal-card.is-square {
  background: linear-gradient(180deg, rgba(15, 17, 25, 0.99), rgba(8, 9, 15, 0.99));
  border-color: rgba(var(--holo-color-rgb), 0.34);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.52), inset 0 0 22px rgba(var(--holo-color-rgb), 0.035);
}

.cockpit-portal-card.is-square .portal-grid-overlay {
  background-image: linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
}

.cockpit-portal-card.is-square .spotlight-xp-callout {
  top: 30px;
}

.cockpit-portal-card.is-square .spotlight-xp-callout-text {
  font-size: 0.82rem;
}

.cockpit-portal-card.is-square .spotlight-xp-callout-icon {
  height: 18px;
}

.cockpit-portal-card.is-square .spotlight-internal-content {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cockpit-portal-card.is-square .hologram-preview-link {
  display: block;
  width: 100%;
}

.cockpit-portal-card.is-square .hologram-preview {
  width: calc(100% - 0.5rem);
  max-width: 250px;
  margin: 0 auto 0.4rem;
  border-color: rgba(var(--holo-color-rgb), 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.58), 0 0 12px rgba(var(--holo-color-rgb), 0.12);
}

.cockpit-portal-card.is-square .preview-img.is-loaded {
  opacity: 0.82;
}

.cockpit-portal-card.is-square .preview-overlay {
  display: none;
}

.cockpit-portal-card.is-square .custom-play-icon-white-mask {
  display: none;
}

.cockpit-portal-card.is-square .custom-play-icon {
  display: none;
}

.cockpit-portal-card.is-square .spotlight-square-challenge-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  width: 100%;
  white-space: nowrap;
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cockpit-portal-card.is-square .spotlight-square-title-play-icon {
  display: block;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(201, 70, 255, 0.52));
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.cockpit-portal-card.is-square .spotlight-square-challenge-copy {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.26rem;
  min-width: 0;
}

.cockpit-portal-card.is-square .spotlight-square-challenge-copy .title-word {
  font-size: 1.16rem;
  letter-spacing: 0.035em;
}

.cockpit-portal-card.is-square .spotlight-square-player-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  width: max-content;
  max-width: 210px;
  margin: 0 auto 0.18rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(218, 247, 255, 0.92);
  text-shadow: 0 0 8px rgba(var(--holo-color-rgb), 0.42);
}

.cockpit-portal-card.is-square .spotlight-square-player-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: cover;
  object-position: 38% center;
  border: 1px solid rgba(var(--holo-color-rgb), 0.58);
  border-radius: 50%;
  background: #0a0b12;
  box-shadow: 0 0 9px rgba(var(--holo-color-rgb), 0.28);
  filter: saturate(1.15) brightness(1.12) contrast(1.05);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.cockpit-portal-card.is-square .spotlight-square-player-name {
  min-width: 0;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cockpit-portal-card.is-square.is-vitrine-discovery .spotlight-square-discovery-title {
  margin-top: 0;
  margin-bottom: 0.05rem;
  overflow: visible;
}

.cockpit-portal-card.is-square.is-vitrine-discovery .spotlight-square-player-only {
  margin-top: 0.22rem;
  margin-bottom: 0;
  padding: 0.35rem 0;
  overflow: visible;
}

.cockpit-portal-card.is-square.is-vitrine-discovery .spotlight-internal-content {
  margin-top: 0;
}

.cockpit-portal-card.is-square.is-vitrine-discovery .portal-grid-overlay {
  background-size: 14px 14px;
}

.cockpit-portal-card.is-square.is-vitrine-discovery .spotlight-discovery-preview-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 9px rgba(201,70,255,0.72));
  transform: translate3d(-50%,-50%,0) scale(0.72);
  backface-visibility: hidden;
  will-change: transform,opacity;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.cockpit-portal-card.is-square.is-vitrine-discovery:is(:hover, .is-owner-hovered) .spotlight-discovery-preview-play-icon {
  opacity: 1;
  transform: translate3d(-50%,-50%,0) scale(1);
}

.cockpit-portal-card.is-square.is-vitrine-discovery .spotlight-square-player-signature {
  overflow: visible;
}

.cockpit-portal-card.is-square.is-vitrine-discovery .spotlight-square-player-avatar {
  filter: saturate(1.15) brightness(1.12) contrast(1.05) drop-shadow(0 0 5px rgba(var(--holo-color-rgb), 0.48));
}

.cockpit-portal-card.is-square .spotlight-guide-panel {
  padding: 7px 14px;
}

.cockpit-portal-card.is-square .spotlight-guide-hint--top {
  top: -18px;
}

.cockpit-portal-card.is-square .spotlight-guide-copy {
  align-items: center;
}

.cockpit-portal-card.is-square .hologram-meta {
  top: 8px;
  width: 100%;
  box-sizing: border-box;
  gap: 0.35rem;
  padding: 0 1rem;
  overflow: hidden;
  font-size: 0.58rem;
}

.cockpit-portal-card.is-square .hologram-meta .meta-tag {
  flex: 1 1 auto !important;
  min-width: 0;
  max-width: 62%;
}

.cockpit-portal-card.is-square .hologram-meta .meta-game {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 36%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cockpit-portal-card.is-square .hologram-actions {
  box-sizing: border-box;
}

.cockpit-portal-card.is-square .portal-actions-container {
  max-width: 100%;
}

.cockpit-portal-card.is-square .portal-header-title {
  position: relative;
  z-index: 105;
  opacity: 1;
  visibility: visible;
}

.cockpit-portal-card.is-square:is(:hover, .is-owner-hovered) .portal-header-title {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -20px, 0);
}

.cockpit-portal-card.is-square:is(:hover, .is-owner-hovered) .spotlight-square-challenge-title {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -4px, 0);
  pointer-events: none;
}

.cockpit-portal-card.is-square:is(:hover, .is-owner-hovered) .spotlight-square-player-signature {
  transform: translate3d(0, 0, 0);
}

.cockpit-portal-card.is-square:is(:hover, .is-owner-hovered) .spotlight-status-badge {
  transform: translateX(-50%) translateY(0);
}

.cockpit-portal-card.is-square.is-vitrine-discovery:is(:hover, .is-owner-hovered) .hologram-preview {
  transform: translate3d(0,-8px,0) scale(0.97);
}

.cockpit-portal-card.is-square.is-vitrine-discovery:is(:hover, .is-owner-hovered) .spotlight-square-discovery-title {
  transform: translate3d(0,0,0);
}

.cockpit-portal-card.is-square.is-vitrine-discovery:is(:hover, .is-owner-hovered) .spotlight-square-player-only {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0,0,0);
}
