/* XTREMEX — hologram profile UI. Load after the existing stylesheets. */

.player-modal__visual.xh-on,
.player-panel__visual.xh-on {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #05070a;
  perspective: none;
}

/* hide the flat monogram / photo plate once the hologram is running */
.xh-on > .p3d__plate,
.xh-on > .p3d__tag,
.xh-on > .player-modal__portrait,
.xh-on > .player-modal__glow,
.xh-on > .player-modal__monogram,
.xh-on > .player-panel__monogram,
.xh-on > .player-panel__scan { display: none !important; }

.xh-on > .player-modal__index,
.xh-on > .player-panel__index { position: absolute; z-index: 6; top: 16px; bottom: auto; left: auto; right: 22px; pointer-events: none; }

.xh { position: absolute; inset: 0; z-index: 5; color: #f1f0e8; font-family: var(--mono, ui-monospace, monospace); }

.xh__canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}
.xh__canvas:active { cursor: grabbing; }
.xh__canvas:focus-visible { box-shadow: inset 0 0 0 2px #d8ff3f; }

.xh__status {
  position: absolute; top: 18px; left: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.2em; pointer-events: none;
}
.xh__status i {
  width: 6px; height: 6px; border-radius: 50%; background: #d8ff3f;
  box-shadow: 0 0 10px #d8ff3f; animation: xh-blink 1.8s ease-in-out infinite;
}

.xh__corner { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(216, 255, 63, 0.7); pointer-events: none; }
.xh__corner--tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.xh__corner--tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; }
.xh__corner--bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.xh__corner--br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }

.xh__hint {
  position: absolute; left: 20px; top: 40px;
  white-space: nowrap; font-size: 10px; letter-spacing: 0.22em; opacity: 0.55;
  pointer-events: none; transition: opacity 0.4s;
}
.xh.is-touched .xh__hint { opacity: 0; }

.xh__bar {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  pointer-events: none;
}
.xh__group {
  display: flex; gap: 4px; padding: 4px;
  border: 1px solid rgba(241, 240, 232, 0.18); border-radius: 100px;
  background: rgba(5, 7, 10, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}
.xh__btn {
  min-width: 34px; height: 34px; padding: 0 12px;
  border: 0; border-radius: 100px; background: transparent; color: #f1f0e8;
  font: inherit; font-size: 10px; letter-spacing: 0.14em; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.xh__btn--tool { padding: 0; width: 34px; font-size: 13px; letter-spacing: 0; }
.xh__btn:hover { background: rgba(241, 240, 232, 0.12); }
.xh__btn[aria-pressed="true"] { background: #d8ff3f; color: #08090a; }
.xh__btn:focus-visible { outline: 2px solid #d8ff3f; outline-offset: 2px; }

/* profile details */
.player-modal__stats > div,
.player-panel__stats > div {
  position: relative;
  padding-left: 14px;
}
.player-modal__stats > div::before,
.player-panel__stats > div::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 2px;
  background: linear-gradient(#d8ff3f, rgba(137, 219, 255, 0.15));
}
.player-modal__stats strong,
.player-panel__stats strong { overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .player-modal__visual.xh-on,
  .player-panel__visual.xh-on { min-height: min(440px, 62vh); }
  .xh__bar { left: 8px; right: 8px; bottom: 8px; justify-content: center; gap: 6px; }
  .xh__group { gap: 0; padding: 3px; }
  .xh__btn { height: 36px; padding: 0 8px; font-size: 10px; letter-spacing: 0.04em; }
  .xh__btn--tool { width: 34px; min-width: 34px; padding: 0; }
}

@keyframes xh-blink { 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  .xh__status i { animation: none; }
}
