/* Easter eggs EXI-ARC — EximmaTV */
.exi-secret-404-hit {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
  opacity: 0.1;
  cursor: default;
  user-select: none;
  transition: opacity 0.25s ease, color 0.25s ease;
  vertical-align: middle;
}
.exi-secret-404-hit:hover,
.exi-secret-404-hit:focus {
  opacity: 0.55;
  color: #f97316;
  outline: none;
}
.exi-secret-404-hit.exi-secret-done {
  opacity: 0.35;
  color: #22c55e;
}

/* Cartes rituel — pas de flip / overlay / admirer qui bloquent */
.card-container.exi-secret-ritual-card {
  cursor: default;
  touch-action: manipulation;
}

.card-container.exi-secret-ritual-card .card-overlay,
.card-container.exi-secret-ritual-card .card-content,
.card-container.exi-secret-ritual-card .card-holo-stack {
  pointer-events: none;
}

/* ── Mèche rebelle — ancrée sur le ratio FACE (pas le conteneur + recycle) ── */
.card-container.exi-follicle-card {
  overflow: visible !important;
  position: relative;
}
.card-container.exi-follicle-card .card-flipper,
.card-container.exi-follicle-card .card-face,
.card-container.exi-follicle-card .card-image-container {
  overflow: visible !important;
  clip-path: none !important;
}
.card-container.exi-follicle-card .card-flipper {
  z-index: 1;
  pointer-events: none !important;
}
.card-container.exi-follicle-card .card-tools {
  display: none !important;
}
.card-motion-wrap:has(.exi-follicle-card) {
  overflow: visible !important;
}
.card-motion-wrap:has(.exi-follicle-card):hover {
  transform: none !important;
}

/* Couche = exactement la face carte (ignore le bouton Recycler en dessous) */
.exi-secret-meche-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  aspect-ratio: 333 / 455;
  height: auto;
  bottom: auto;
  z-index: 200;
  pointer-events: none;
}

.exi-secret-meche-hit {
  position: absolute;
  /* zone large sur la meche peinte (crane → tip haut-droite) */
  top: 1%;
  left: 42%;
  width: 38%;
  height: 34%;
  z-index: 201;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  overflow: visible;
  opacity: 1;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.exi-secret-meche-hit::before,
.exi-secret-meche-hit::after {
  display: none !important;
  content: none !important;
}
.exi-secret-meche-hit:hover,
.exi-secret-meche-hit:focus {
  outline: none;
}
.exi-secret-meche-hit.exi-secret-done {
  opacity: 0.45;
}
.exi-secret-meche-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform-origin: 28% 96%;
  animation: exi-meche-sway 5s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.75));
}
.exi-secret-meche-hit:hover .exi-secret-meche-svg,
.exi-secret-meche-hit:focus .exi-secret-meche-svg {
  animation-duration: 2.5s;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.95));
}
.exi-secret-meche-hit.exi-secret-done .exi-secret-meche-svg {
  animation: none;
  opacity: 0.4;
}
@keyframes exi-meche-sway {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.8deg) translateX(1px); }
}
@keyframes exi-meche-sway-a { 0%, 100% { transform: none; } 50% { transform: none; } }
@keyframes exi-meche-sway-b { 0%, 100% { transform: none; } 50% { transform: none; } }

.card-face.card-front,
.card-container .card-face.card-front {
  overflow: visible;
}
.card-container:has(.exi-secret-meche-hit) .card-image-container {
  overflow: visible;
}
.card-container:has(.exi-secret-meche-hit) .card-front {
  clip-path: none;
}

.card-container.exi-secret-ritual-card .card-tools {
  z-index: 130;
}
/* Orbit ritual — ZINZIN SINGULARITY #190 */
.card-container.exi-zinzin-orbit-card .card-holo-stack {
  display: none !important;
}

.card-container.exi-zinzin-orbit-card .card-flipper {
  position: relative;
  z-index: 1;
}

.card-container.exi-zinzin-orbit-card .card-image-container {
  pointer-events: none;
}

.card-motion-wrap:has(.exi-zinzin-orbit-card):hover {
  transform: none;
}

.exi-secret-orbit-wrap {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.card-container.exi-zinzin-orbit-card > .exi-secret-orbit-wrap {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  aspect-ratio: 333 / 455;
  height: auto;
  bottom: auto;
  z-index: 100;
}
.exi-secret-orbit-hit {
  position: absolute;
  width: 28%;
  height: 20%;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.exi-secret-orbit-hit::after {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  pointer-events: none;
}
.exi-secret-orbit-hit:hover::after,
.exi-secret-orbit-hit:focus::after,
.exi-secret-orbit-hit:active::after,
.exi-secret-orbit-hit.is-orbit-step::after {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
  outline: none;
}
.exi-secret-orbit-hit.is-orbit-step::after {
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.12);
  animation: exi-orbit-pulse 0.5s ease;
}
.exi-secret-orbit-hit.is-orbit-fail::after {
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.45);
  animation: exi-orbit-shake 0.35s ease;
}
.exi-secret-orbit-hit.pos-sourcil { top: 16%; left: 3%; }
.exi-secret-orbit-hit.pos-boule  { top: 16%; right: 3%; }
.exi-secret-orbit-hit.pos-waza   { top: 40%; left: 3%; }
.exi-secret-orbit-hit.pos-neurone { top: 40%; right: 3%; }

.card-container.exi-zinzin-orbit-card .exi-secret-orbit-hit {
  width: 32%;
  height: 22%;
  min-width: 48px;
  min-height: 48px;
}

.card-container.exi-zinzin-orbit-card .exi-secret-orbit-hit.pos-boule,
.card-container.exi-zinzin-orbit-card .exi-secret-orbit-hit.pos-neurone {
  width: 36%;
  right: 0;
  min-width: 56px;
}

.card-container.exi-zinzin-orbit-card .exi-secret-orbit-hit.pos-boule { top: 12%; }
.card-container.exi-zinzin-orbit-card .exi-secret-orbit-hit.pos-neurone { top: 36%; }

@keyframes exi-orbit-pulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes exi-orbit-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.exi-secret-orbit-42 {
  position: absolute;
  top: 33%;
  left: 18%;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(251, 191, 36, 0.08);
  pointer-events: none;
  user-select: none;
  transform: rotate(-12deg);
}
.exi-secret-orbit-wrap.is-complete .exi-secret-orbit-hit {
  pointer-events: none;
  opacity: 0.35;
}

/* Signal Zero — fréquence → 0 (#171) */
.card-container.exi-signal-zero-card .card-holo-stack {
  display: none !important;
}

.card-container.exi-signal-zero-card .card-flipper {
  position: relative;
  z-index: 1;
}

.card-container.exi-signal-zero-card .card-image-container {
  pointer-events: none;
}

.card-motion-wrap:has(.exi-signal-zero-card):hover {
  transform: none;
}

.exi-secret-signal-zero-wrap {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.card-container.exi-signal-zero-card > .exi-secret-signal-zero-wrap {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  aspect-ratio: 333 / 455;
  height: auto;
  bottom: auto;
  z-index: 100;
}

.exi-secret-freq-hit {
  position: absolute;
  left: 50%;
  bottom: 27%;
  transform: translateX(-50%);
  width: 26%;
  height: 11%;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.card-container.exi-signal-zero-card .exi-secret-freq-hit {
  width: 34%;
  height: 16%;
  min-width: 56px;
  min-height: 56px;
  bottom: 24%;
}

.card-container.exi-signal-zero-card .exi-secret-freq-hit:active .exi-secret-freq-shell,
.card-container.exi-signal-zero-card .exi-secret-freq-hit:focus .exi-secret-freq-shell {
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.35);
}

.exi-secret-freq-shell {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(251, 146, 60, 0.15);
  background: radial-gradient(circle at 50% 40%, rgba(251, 146, 60, 0.12) 0%, rgba(15, 23, 42, 0.55) 70%);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  pointer-events: none;
}
.exi-secret-freq-hit:hover .exi-secret-freq-shell,
.exi-secret-freq-hit:focus .exi-secret-freq-shell {
  border-color: rgba(251, 146, 60, 0.45);
  box-shadow: 0 0 14px rgba(251, 146, 60, 0.25);
  outline: none;
}
.exi-secret-freq-value {
  font-size: clamp(9px, 1.6vw, 13px);
  font-weight: 800;
  color: #fb923c;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s, text-shadow 0.2s;
}
.exi-secret-freq-label {
  margin-top: 2px;
  font-size: clamp(5px, 0.9vw, 7px);
  letter-spacing: 0.12em;
  color: rgba(251, 146, 60, 0.65);
  text-transform: uppercase;
}
.exi-secret-freq-waves {
  position: absolute;
  left: -18%;
  right: -18%;
  top: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(251,146,60,0.5) 20%, rgba(251,146,60,0.8) 50%, rgba(251,146,60,0.5) 80%, transparent);
  opacity: 0.35;
  pointer-events: none;
}
.exi-secret-freq-logo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.exi-secret-freq-logo-e {
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid #fb923c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(10px, 2vw, 16px);
  color: #fb923c;
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.55);
  margin-bottom: 4%;
}
.exi-secret-freq-logo-text {
  font-size: clamp(6px, 1.1vw, 9px);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fdba74;
  text-shadow: 0 0 8px rgba(251, 146, 60, 0.6);
}
.exi-secret-freq-hit.is-freq-glitch .exi-secret-freq-shell {
  animation: exi-freq-glitch 0.18s steps(2, end);
}
.exi-secret-freq-hit.is-freq-zero .exi-secret-freq-shell {
  border-color: rgba(251, 146, 60, 0.85);
  box-shadow: 0 0 22px rgba(251, 146, 60, 0.55);
  background: radial-gradient(circle at 50% 45%, rgba(251, 146, 60, 0.35) 0%, rgba(15, 23, 42, 0.8) 75%);
}
.exi-secret-freq-hit.is-freq-zero .exi-secret-freq-value {
  color: #fff7ed;
  text-shadow: 0 0 10px rgba(251, 146, 60, 0.9);
}
.exi-secret-freq-hit.is-freq-zero .exi-secret-freq-logo {
  opacity: 1;
}
.exi-secret-freq-hit.is-freq-zero .exi-secret-freq-waves {
  opacity: 1;
  animation: exi-freq-wave 1.2s ease-in-out infinite;
}
.exi-secret-signal-zero-wrap.is-complete .exi-secret-freq-hit {
  pointer-events: none;
}
@keyframes exi-freq-glitch {
  0% { transform: translate(0, 0); filter: hue-rotate(0deg); }
  50% { transform: translate(-1px, 1px); filter: hue-rotate(20deg); }
  100% { transform: translate(1px, -1px); filter: hue-rotate(-10deg); }
}
@keyframes exi-freq-wave {
  0%, 100% { transform: scaleX(1); opacity: 0.6; }
  50% { transform: scaleX(1.08); opacity: 1; }
}


/* ——— Vague secrets (hotspots discrets) ——— */
.exi-secret-hit {
  position: absolute;
  z-index: 40;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.01;
}
.exi-secret-hit:focus { outline: none; opacity: 0.08; }
.exi-secret-reagis-hit { top: 20%; left: 39%; width: 22%; height: 16%; }
.exi-secret-kernel-hit { top: 44%; left: 40%; width: 20%; height: 16%; border-radius: 50%; }
.exi-secret-sourcil-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 100; }
.exi-secret-sourcil-wrap button { pointer-events: auto; position: absolute; border: none; background: transparent; cursor: pointer; opacity: 0.01; }
/* cœur orange au milieu du front */
.exi-secret-sourcil-wrap .pos-heart {
  top: 26%;
  left: 44%;
  width: 14%;
  height: 10%;
  border-radius: 50%;
}
.card-container.exi-sourcil-card > .exi-secret-sourcil-wrap {
  top: 0; left: 0; right: 0;
  width: 100%;
  aspect-ratio: 333 / 455;
  height: auto;
  bottom: auto;
}
.exi-secret-timer-hit { top: 30%; left: 30%; width: 40%; height: 18%; }
.exi-secret-hein-hit { bottom: 18%; left: 35%; width: 30%; height: 14%; }
.exi-secret-null-hit {
  position: absolute; top: 46%; left: 46%; width: 12%; height: 10%;
  z-index: 45; opacity: 0; pointer-events: none; border: none; background: transparent; cursor: pointer;
  transition: opacity 0.15s ease;
}
.exi-secret-null-hit.is-visible { opacity: 0.15; pointer-events: auto; }
.exi-secret-palier-hit { top: 8%; right: 8%; width: 18%; height: 10%; font-size: 0; }
.exi-secret-ach-question {
  display: inline-block; margin-left: 0.35rem; font-size: 0.75rem; opacity: 0.12;
  cursor: default; user-select: none; color: #94a3b8;
}
.exi-secret-ach-question:hover { opacity: 0.35; color: #f97316; }

/* Coeur wishlist : jamais masqué par les zones secrètes */
.card-motion-wrap .wishlist-toggle-btn {
  z-index: 140;
}

.card-motion-wrap:has(.exi-follicle-card) {
  overflow: visible !important;
}
.card-motion-wrap:has(.exi-follicle-card):hover {
  transform: none;
}

/* ——— Overlay protocole spectral (boule citrouille, pas la carte) ——— */
.exi-spectral-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.exi-spectral-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.exi-spectral-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(249, 115, 22, 0.22), transparent 70%),
    rgba(6, 4, 8, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.exi-spectral-stage {
  position: relative;
  z-index: 2;
  width: min(92vw, 22rem);
  height: min(70vh, 22rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.exi-spectral-webs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fdba74' stroke-width='1.2' opacity='0.55'%3E%3Cpath d='M0 0 L120 0 M0 0 L0 120'/%3E%3Cpath d='M0 0 L110 35 M0 0 L90 70 M0 0 L55 100 M0 0 L25 115'/%3E%3Cpath d='M18 6 Q40 28 70 22 M12 22 Q36 48 62 50 M8 42 Q30 68 48 78 M4 68 Q22 88 36 98'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fdba74' stroke-width='1.2' opacity='0.55'%3E%3Cpath d='M0 0 L120 0 M0 0 L0 120'/%3E%3Cpath d='M0 0 L110 35 M0 0 L90 70 M0 0 L55 100 M0 0 L25 115'/%3E%3Cpath d='M18 6 Q40 28 70 22 M12 22 Q36 48 62 50 M8 42 Q30 68 48 78 M4 68 Q22 88 36 98'/%3E%3C/g%3E%3C/svg%3E");
  background-position: top left, top right;
  background-repeat: no-repeat, no-repeat;
  background-size: 7rem 7rem, 7rem 7rem;
  transform: scaleX(1);
}
.exi-spectral-webs::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 7rem; height: 7rem;
  background: inherit;
  transform: scaleX(-1);
  opacity: 0; /* corner already via second bg */
}
.exi-spectral-ball {
  position: relative;
  width: 12rem;
  height: 12rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  animation: exiSpectralFloat 3.2s ease-in-out infinite;
  outline: none;
  filter: drop-shadow(0 0 28px rgba(168, 85, 247, 0.45)) drop-shadow(0 0 18px rgba(249, 115, 22, 0.35));
  padding: 0;
}
.exi-spectral-ball:hover,
.exi-spectral-ball:focus-visible {
  transform: scale(1.06);
  filter: drop-shadow(0 0 36px rgba(168, 85, 247, 0.65)) drop-shadow(0 0 24px rgba(249, 115, 22, 0.5));
}
.exi-spectral-ball-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.exi-spectral-hint {
  margin-top: 1.4rem;
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  color: rgba(253, 186, 116, 0.55);
  text-shadow: 0 0 12px rgba(249, 115, 22, 0.35);
  user-select: none;
}
@keyframes exiSpectralFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes exiSpectralPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes exiSpectralSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 640px) {
  .exi-spectral-ball {
    width: 9rem;
    height: 9rem;
  }
}
