*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

:root {
  --hv-hud-top-inset: 92px;
  --hv-hud-left-inset: 0px;
  --hv-hud-right-inset: 0px;
}

@media (min-width: 1100px) {
  :root {
    --hv-hud-left-inset: 320px;
    --hv-hud-right-inset: 300px;
  }
}

.hv-home-body {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #05070f;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Heroicons — shared sizing */
.hv-icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.hv-icon-sm {
  width: 1em;
  height: 1em;
}

.hv-icon-xs {
  width: 0.85em;
  height: 0.85em;
}

.hv-nav-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  opacity: 0.9;
}

.hv-nav-diamond-icon {
  width: 14px;
  height: 14px;
  color: #67e8f9;
}

.hv-home-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Migliora lo scaling su browser moderni */
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hv-home-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 18, 0.15) 0%,
    rgba(5, 8, 18, 0.05) 40%,
    rgba(5, 8, 18, 0.35) 100%
  );
  pointer-events: none;
}

.hv-home-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 14px 16px;
  pointer-events: none;
}

.hv-home-header > * {
  pointer-events: auto;
}

@keyframes hvSlideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hv-top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  background: none;
  animation: hvSlideFromLeft 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hv-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.hv-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hv-nav-active {
  color: #fff;
  background: rgba(56, 140, 220, 0.55);
  box-shadow: 0 0 0 1px rgba(120, 200, 255, 0.25);
}

.hv-nav-badge::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5c518;
  box-shadow: 0 0 6px rgba(245, 197, 24, 0.8);
}

.hv-nav-diamonds {
  gap: 6px;
}

.hv-left-panel {
  position: absolute;
  top: 78px;
  left: 20px;
  z-index: 12;
  width: min(300px, 30vw);
  animation: hvSlideFromLeft 0.6s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hv-events-panel {
  width: 100%;
}

.hv-events-carousel {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hv-event-card {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 120px;
  background: rgba(8, 14, 28, 0.85);
}

.hv-event-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hv-event-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.hv-event-title {
  margin: 0;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hv-event-desc {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hv-events-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.hv-event-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.hv-event-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hv-event-dot-active {
  background: #fff;
  transform: scale(1.15);
}

/* Play panel — cyberpunk sci-fi */
.hv-play-group {
  position: absolute;
  bottom: 24px;
  left: 20px;
  z-index: 12;
  display: flex;
  align-items: stretch;
  animation: hvSlideFromLeft 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.12));
}

.hv-play-panel {
  position: relative;
  bottom: auto;
  left: auto;
  z-index: 1;
  width: min(300px, 30vw);
  padding: 18px 16px 16px;
  border-radius: 0;
  border: 1px solid rgba(0, 255, 255, 0.38);
  border-right: 1px solid rgba(0, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 255, 255, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, rgba(8, 20, 36, 0.94) 0%, rgba(4, 10, 20, 0.96) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(0, 255, 255, 0.1),
    inset 0 0 0 1px rgba(0, 255, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  animation: none;
  overflow: visible;
}

.hv-play-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, #00ffff 0%, rgba(0, 255, 255, 0.15) 70%, transparent 100%);
  pointer-events: none;
}

.hv-play-panel::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 6px;
  height: 6px;
  background: #00ffff;
  box-shadow: 0 0 10px #00ffff;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  pointer-events: none;
  opacity: 0.85;
}

.hv-play-heading {
  margin: 0;
  color: #e8f4ff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(15px, 3.8vw, 22px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(0, 255, 255, 0.35), 0 2px 12px rgba(0, 0, 0, 0.5);
  word-break: break-word;
}

.hv-play-head-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}

.hv-play-type-toggle {
  display: flex;
  flex-shrink: 0;
  width: 100%;
  border: 1px solid rgba(0, 255, 255, 0.28);
  border-radius: 0;
  overflow: hidden;
  background: rgba(0, 8, 16, 0.55);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hv-play-type-btn {
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: transparent;
  color: rgba(200, 230, 255, 0.55);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(6px, 1.6vw, 8px);
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 8px 5px;
  text-align: center;
  line-height: 1.15;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, text-shadow 0.15s;
}

.hv-play-type-btn:hover {
  color: #fff;
  background: rgba(0, 255, 255, 0.08);
}

.hv-play-type-btn.hv-play-type-active {
  color: #031018;
  background: linear-gradient(180deg, #7ef9ff 0%, #00d4e8 100%);
  text-shadow: none;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.25);
}

.hv-play-type-btn[data-play-type="ranked"].hv-play-type-active {
  color: #1a1000;
  background: linear-gradient(180deg, #ffe566 0%, #f5c518 45%, #e8a800 100%);
}

.hv-mode-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 255, 255, 0.55);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.22) 0%, rgba(0, 160, 200, 0.12) 100%),
    rgba(4, 18, 32, 0.9);
  color: #7ef9ff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.18), inset 0 0 20px rgba(0, 255, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.hv-mode-btn-queue {
  position: absolute;
  top: 6px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: "Orbitron", sans-serif;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0.85;
  pointer-events: none;
  color: rgba(126, 249, 255, 0.85);
}

.hv-mode-queue-icon {
  opacity: 0.9;
}

.hv-mode-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 255, 0.9);
  color: #b8ffff;
  box-shadow: 0 0 28px rgba(0, 255, 255, 0.32), inset 0 0 24px rgba(0, 255, 255, 0.1);
}

.hv-mode-line {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.hv-mode-line-sub {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}

.hv-play-btn {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 220, 80, 0.65);
  border-radius: 0;
  background:
    linear-gradient(180deg, #ffe566 0%, #f5c518 45%, #e8a800 100%);
  color: #1a1200;
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 0 22px rgba(245, 197, 24, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.hv-play-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 0 32px rgba(245, 197, 24, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hv-play-btn.hv-play-btn-in-progress,
.hv-play-btn.hv-play-btn-in-progress:hover {
  background: linear-gradient(180deg, #2a3544 0%, #1a222e 100%);
  border-color: rgba(120, 150, 180, 0.35);
  color: #a8b8cc;
  cursor: default;
  transform: none;
  filter: none;
  box-shadow: none;
  font-size: 11px;
  letter-spacing: 0.05em;
}

body.hv-match-in-progress .hv-play-group,
body.hv-match-in-progress .hv-home-main {
  filter: blur(4px);
  opacity: 0.62;
  pointer-events: none;
  user-select: none;
}

.hv-match-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hv-match-progress-overlay[hidden] {
  display: none !important;
}

.hv-rejoin-btn {
  pointer-events: auto;
  padding: 16px 48px;
  border: 2px solid rgba(0, 240, 255, 0.75);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 30%, rgba(0, 80, 100, 0.9), rgba(4, 16, 32, 0.95));
  color: #7ef9ff;
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 32px rgba(0, 220, 255, 0.35), inset 0 0 20px rgba(0, 180, 255, 0.12);
  transition: transform 0.15s, box-shadow 0.15s;
}

.hv-rejoin-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.5), inset 0 0 24px rgba(0, 200, 255, 0.18);
}

.hv-ready-btn {
  width: 100%;
  margin-top: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(92, 255, 138, 0.5);
  border-radius: 0;
  background: rgba(8, 28, 18, 0.85);
  color: #5cff8a;
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 14px rgba(92, 255, 138, 0.12);
}

.hv-ready-btn:hover {
  background: rgba(16, 48, 30, 0.95);
  border-color: rgba(92, 255, 138, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(92, 255, 138, 0.28);
}

.hv-ready-btn-active {
  background: rgba(92, 255, 138, 0.2);
  border-color: #5cff8a;
  color: #fff;
  box-shadow: 0 0 22px rgba(92, 255, 138, 0.35);
}

/* Mode selection modal — cyberpunk sci-fi */
.hv-mode-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hv-mode-modal-backdrop[hidden] {
  display: none;
}

.hv-mode-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: min(90vh, 560px);
  overflow-y: auto;
  padding: 20px 22px 22px;
  border-radius: 0;
  border: 1px solid rgba(0, 255, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(0, 255, 255, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, rgba(8, 18, 34, 0.97) 0%, rgba(4, 10, 20, 0.98) 100%);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(0, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 255, 0.35) transparent;
  animation: hvModeModalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hv-mode-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, #00ffff 0%, rgba(0, 255, 255, 0.2) 70%, transparent 100%);
  pointer-events: none;
}

.hv-mode-modal::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 7px;
  height: 7px;
  background: #00ffff;
  box-shadow: 0 0 10px #00ffff;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  pointer-events: none;
  opacity: 0.85;
}

@keyframes hvModeModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hv-mode-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.15);
}

.hv-mode-modal-header h2 {
  margin: 0;
  color: #e8f4ff;
  font-family: "Orbitron", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(0, 255, 255, 0.3);
}

.hv-mode-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  border-radius: 0;
  background: rgba(0, 255, 255, 0.06);
  color: #7ef9ff;
  cursor: pointer;
  padding: 0;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.hv-mode-modal-close .hv-icon {
  width: 18px;
  height: 18px;
}

.hv-mode-modal-close:hover {
  background: rgba(0, 255, 255, 0.14);
  border-color: rgba(0, 255, 255, 0.55);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.25);
}

.hv-mode-section {
  margin-bottom: 18px;
}

.hv-mode-section-title {
  margin: 0 0 10px;
  color: rgba(126, 249, 255, 0.7);
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hv-mode-section-title::before {
  content: "// ";
  color: rgba(0, 255, 255, 0.45);
}

.hv-mode-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hv-mode-chip {
  padding: 8px 14px;
  border: 1px solid rgba(0, 255, 255, 0.22);
  border-radius: 0;
  background: rgba(0, 8, 16, 0.55);
  color: rgba(232, 244, 255, 0.88);
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s, color 0.15s, box-shadow 0.15s, transform 0.12s;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.hv-mode-chip:hover:not(:disabled) {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
}

.hv-mode-chip-active {
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.28) 0%, rgba(0, 160, 200, 0.18) 100%);
  border-color: rgba(0, 255, 255, 0.75);
  color: #7ef9ff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.22), inset 0 0 12px rgba(0, 255, 255, 0.08);
}

.hv-mode-chip:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.hv-mode-confirm {
  width: 100%;
  margin-top: 4px;
  padding: 13px;
  border: 1px solid rgba(255, 220, 80, 0.65);
  border-radius: 0;
  background: linear-gradient(180deg, #ffe566 0%, #f5c518 45%, #e8a800 100%);
  color: #1a1200;
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 22px rgba(245, 197, 24, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.hv-mode-confirm:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(245, 197, 24, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Side rail — menu stretto accanto a Quick Play */
.hv-side-rail-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.hv-side-rail {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  width: 44px;
  padding: 10px 5px;
  border: 1px solid rgba(0, 255, 255, 0.38);
  border-left: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(8, 20, 36, 0.94) 0%, rgba(4, 10, 20, 0.96) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 255, 255, 0.08);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.hv-side-rail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(0, 255, 255, 0.22);
  border-radius: 0;
  background: rgba(0, 255, 255, 0.05);
  color: rgba(232, 244, 255, 0.85);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s, box-shadow 0.15s;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.hv-side-rail-btn:hover {
  background: rgba(0, 255, 255, 0.16);
  border-color: rgba(0, 255, 255, 0.55);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.25);
}

.hv-side-rail-btn-active {
  background: rgba(0, 255, 255, 0.22);
  border-color: rgba(0, 255, 255, 0.7);
  color: #7ef9ff;
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.3);
}

.hv-side-rail-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.hv-side-rail-btn .hv-icon {
  width: 18px;
  height: 18px;
}

/* Shirt drawer — si estende a destra del rail */
.hv-shirt-drawer {
  position: absolute;
  left: calc(100% + 6px);
  top: 0;
  min-width: 148px;
  max-height: min(320px, 50vh);
  padding: 10px 10px 12px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.06) 0%, transparent 28%),
    rgba(6, 14, 28, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 255, 255, 0.12);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  overflow: hidden;
  transform-origin: left center;
  animation: hvShirtDrawerIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hv-shirt-drawer[hidden] {
  display: none;
}

@keyframes hvShirtDrawerIn {
  from {
    opacity: 0;
    transform: translateX(-8px) scaleX(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
}

.hv-shirt-drawer-title {
  margin: 0 0 8px;
  padding: 0 2px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hv-shirt-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(280px, 46vh);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 200, 255, 0.35) transparent;
}

.hv-shirt-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(120, 200, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8f4ff;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.hv-shirt-option:hover {
  background: rgba(56, 140, 220, 0.28);
  border-color: rgba(120, 200, 255, 0.4);
}

.hv-shirt-option-active {
  background: rgba(56, 140, 220, 0.42);
  border-color: rgba(120, 200, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(120, 200, 255, 0.2);
}

.hv-shirt-preview-disc {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #c41e1e;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.hv-shirt-preview-disc-default {
  background-image: linear-gradient(160deg, #ff5a3c 0%, #e82828 45%, #b81212 100%);
}

.hv-shirt-preview-emoji {
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.hv-shirt-option-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.hv-home-profile {
  flex-shrink: 0;
  margin-left: auto;
  z-index: 25;
}

/* Squad lobby avatars — posizioni allineate ai piatti nello sfondo */
.hv-home-main {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hv-squad-stage {
  position: absolute;
  inset: 0;
}

.hv-slot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, 0);
}

.hv-slot-empty {
  gap: 5px;
}

.hv-slot-back {
  gap: 5px;
}

/* 3 slot dietro: piatti 1°, 3° e 4° della fila posteriore */
.hv-slot-back-left {
  left: 37.2%;
  bottom: 37.5%;
}

.hv-slot-back-mid {
  left: 62.2%;
  bottom: 37.5%;
}

.hv-slot-back-right {
  left: 72.9%;
  bottom: 37.5%;
}

/* giocatore sul piatto frontale centrale */
.hv-slot-front {
  left: 50%;
  bottom: 27.5%;
  gap: 8px;
}

.hv-slot-invite {
  pointer-events: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hv-slot-invite .hv-icon {
  width: 16px;
  height: 16px;
}

.hv-slot-invite:hover {
  background: rgba(30, 30, 30, 0.85);
}

.hv-slot-disc {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transform: perspective(500px) rotateX(18deg);
}

.hv-slot-disc-empty {
  width: clamp(50px, 5.2vw, 68px);
  height: clamp(50px, 5.2vw, 68px);
  background: rgba(0, 0, 0, 0.15);
  border: 3px solid #000;
  color: rgba(255, 255, 255, 0.9);
}

.hv-slot-disc-empty .hv-icon {
  width: clamp(22px, 3vw, 30px);
  height: clamp(22px, 3vw, 30px);
}

.hv-player-tag {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  position: relative;
  z-index: 20;
}

.hv-player-name-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  z-index: 30;
}

.hv-player-ready {
  flex-basis: 100%;
  text-align: center;
}

.hv-player-name-wrap.has-nick-picker .hv-player-name {
  cursor: pointer;
}

.hv-nick-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(0, 255, 255, 0.45);
  border-radius: 3px;
  background: rgba(6, 16, 30, 0.9);
  color: #7fdfff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.hv-nick-toggle:hover {
  background: rgba(12, 36, 58, 0.95);
  border-color: rgba(0, 255, 255, 0.85);
  transform: translateY(-1px);
}

.hv-nick-toggle-chevron {
  font-size: 10px;
  line-height: 1;
}

.hv-nick-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  min-width: 148px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.08) 0%, transparent 30%),
    rgba(4, 12, 24, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(0, 255, 255, 0.18);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  z-index: 80;
  pointer-events: auto;
}

.hv-player-name-wrap.is-nick-open {
  z-index: 90;
}

.hv-nick-menu[hidden] {
  display: none !important;
}

.hv-nick-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: #e8f4ff;
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.hv-nick-option:hover,
.hv-nick-option.is-active {
  background: rgba(0, 255, 255, 0.14);
  color: #00ffff;
}

.hv-player-ready[hidden] {
  display: none;
}

.hv-player-ready.hv-player-ready-visible {
  display: block;
  animation: hvReadyIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hvReadyIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hv-player-name {
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(13px, 1.7vw, 17px);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hv-player-ready {
  color: #5cff8a;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hv-slot-disc-red {
  width: clamp(82px, 8.5vw, 104px);
  height: clamp(82px, 8.5vw, 104px);
  background: linear-gradient(160deg, #ff5a3c 0%, #e82828 45%, #b81212 100%);
  border: 4px solid #000;
  overflow: hidden;
  position: relative;
}

.hv-slot-disc-shirt {
  background: #1a1a1a center / cover no-repeat;
}

.hv-slot-avatar-img {
  width: 78%;
  height: 78%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
}

.hv-slot-avatar-emoji {
  color: #fff;
  font-size: clamp(40px, 6vw, 52px);
  line-height: 1;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* Matchmaking overlay */
.hv-matchmaking-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 18, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: hvFadeIn 0.35s ease-out;
}

.hv-matchmaking-overlay[hidden] {
  display: none;
}

@keyframes hvFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hv-matchmaking-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 48px;
  border-radius: 16px;
  border: 1px solid rgba(120, 200, 255, 0.35);
  background: rgba(8, 16, 32, 0.92);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(78, 200, 240, 0.12);
}

.hv-matchmaking-label {
  margin: 0;
  color: rgba(120, 200, 255, 0.85);
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hv-matchmaking-timer {
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 24px rgba(120, 200, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.hv-matchmaking-stop {
  margin-top: 8px;
  padding: 10px 32px;
  border: 1px solid rgba(255, 100, 100, 0.5);
  border-radius: 8px;
  background: rgba(80, 20, 20, 0.5);
  color: #ff8a8a;
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hv-matchmaking-stop:hover {
  background: rgba(120, 30, 30, 0.7);
  border-color: rgba(255, 120, 120, 0.7);
}

.hv-matchmaking-stop.hv-matchmaking-found,
.hv-matchmaking-stop.hv-matchmaking-found:hover {
  border-color: rgba(80, 220, 120, 0.65);
  background: rgba(20, 80, 40, 0.75);
  color: #6dff9a;
  cursor: default;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 0 24px rgba(60, 220, 120, 0.35);
}

.hv-matchmaking-stop:disabled {
  opacity: 1;
}

/* Match loading screen (LoL-style) */
.hv-match-loading {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050810;
}

.hv-match-loading[hidden] {
  display: none !important;
}

.hv-match-loading-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.1);
}

.hv-match-loading-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 10, 24, 0.55) 0%,
    rgba(4, 10, 24, 0.2) 35%,
    rgba(4, 10, 24, 0.2) 65%,
    rgba(4, 10, 24, 0.55) 100%
  );
  pointer-events: none;
}

.hv-match-loading-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1100px, 96vw);
  height: min(720px, 92vh);
  gap: 0;
}

.hv-match-team {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 2vw, 24px);
  flex: 1;
  width: 100%;
  padding: 0 12px;
}

.hv-match-team-top {
  align-items: flex-end;
  padding-bottom: 8px;
}

.hv-match-team-bottom {
  align-items: flex-start;
  padding-top: 8px;
}

.hv-match-vs-divider {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
  padding: 4px 0;
}

.hv-match-vs-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 240, 255, 0.15) 15%,
    rgba(0, 240, 255, 0.85) 50%,
    rgba(0, 240, 255, 0.15) 85%,
    transparent
  );
  box-shadow: 0 0 12px rgba(0, 220, 255, 0.45);
  position: relative;
}

.hv-match-vs-line::before,
.hv-match-vs-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(0, 240, 255, 0.8);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 8px rgba(0, 220, 255, 0.5);
}

.hv-match-vs-line::before {
  left: 0;
}

.hv-match-vs-line::after {
  right: 0;
}

.hv-match-vs-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.9);
  background: radial-gradient(circle at 50% 40%, rgba(0, 60, 80, 0.9), rgba(4, 12, 28, 0.95));
  color: #7ef9ff;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.8);
  box-shadow: 0 0 28px rgba(0, 200, 255, 0.45), inset 0 0 16px rgba(0, 180, 255, 0.15);
}

.hv-match-player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(72px, 12vw, 120px);
  animation: hvMatchCardIn 0.6s ease-out both;
}

.hv-match-player-card:nth-child(2) { animation-delay: 0.08s; }
.hv-match-player-card:nth-child(3) { animation-delay: 0.16s; }
.hv-match-player-card:nth-child(4) { animation-delay: 0.24s; }
.hv-match-player-card:nth-child(5) { animation-delay: 0.32s; }

.hv-match-captain-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 16px;
  padding: 0 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f5d76e 0%, #d4a017 55%, #b8860b 100%);
  color: #2a1d00;
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  box-shadow: 0 0 8px rgba(245, 215, 110, 0.45);
  flex-shrink: 0;
}

.hv-match-card-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  max-width: 100%;
  min-width: 0;
}

.hv-match-loading.hv-teams-settled .hv-match-player-card {
  animation: none;
}

@keyframes hvMatchCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hv-match-card-name {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 700;
  color: #e8f4ff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.04em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.hv-match-card-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(20, 30, 50, 0.9), rgba(8, 12, 22, 0.95));
}

.hv-match-team-top .hv-match-card-frame {
  border: 2px solid rgba(255, 200, 80, 0.75);
  box-shadow: 0 0 20px rgba(255, 180, 60, 0.25), inset 0 0 30px rgba(255, 200, 80, 0.08);
}

.hv-match-team-bottom .hv-match-card-frame {
  border: 2px solid rgba(220, 60, 80, 0.75);
  box-shadow: 0 0 20px rgba(220, 60, 80, 0.25), inset 0 0 30px rgba(220, 60, 80, 0.08);
}

.hv-match-card-emoji {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.hv-match-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv-match-card-progress {
  width: 100%;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hv-match-card-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d4ff, #6dff9a);
  box-shadow: 0 0 10px rgba(0, 220, 255, 0.55);
  transition: width 0.45s ease;
}

.hv-match-card-progress-fill.hv-progress-retry {
  background: linear-gradient(90deg, #ffb347, #ff6b6b);
}

.hv-match-card-progress-fill.hv-progress-connected {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.hv-match-card-status {
  display: block;
  margin-top: 4px;
  font-family: "Rajdhani", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(200, 230, 255, 0.85);
  text-align: center;
  min-height: 14px;
  letter-spacing: 0.03em;
}

.hv-match-game-layer {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: #0a1018;
}

.hv-match-quests-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 50;
  width: max-content;
  max-width: min(440px, calc(100vw - 24px));
  pointer-events: auto;
}

.hv-mq-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, max-content);
  width: max-content;
  max-width: 100%;
}

.hv-match-quests-panel[hidden] {
  display: none !important;
}

.hv-match-quests-panel:not(.is-open) .hv-match-quests-toggle {
  border-radius: 12px;
}

.hv-match-quests-panel.is-open .hv-mq-frame {
  border-radius: 12px;
}

.hv-mq-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(0, 255, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.04) 0%, transparent 28%),
    linear-gradient(135deg, rgba(8, 14, 28, 0.96) 0%, rgba(4, 8, 18, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 0, 128, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hv-mq-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(0, 255, 255, 0.75);
  border-style: solid;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.45));
}

.hv-mq-corner-tl {
  top: 4px;
  left: 4px;
  border-width: 2px 0 0 2px;
}

.hv-mq-corner-tr {
  top: 4px;
  right: 4px;
  border-width: 2px 2px 0 0;
}

.hv-mq-corner-bl {
  bottom: 4px;
  left: 4px;
  border-width: 0 0 2px 2px;
}

.hv-mq-corner-br {
  bottom: 4px;
  right: 4px;
  border-width: 0 2px 2px 0;
}

.hv-mq-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.025) 2px,
    rgba(0, 255, 255, 0.025) 4px
  );
  opacity: 0.55;
  animation: hvMqScan 6s linear infinite;
  pointer-events: none;
}

@keyframes hvMqScan {
  from { transform: translateY(0); }
  to { transform: translateY(8px); }
}

.hv-match-quests-toggle {
  position: relative;
  z-index: 2;
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: #e8f8ff;
  cursor: pointer;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  white-space: nowrap;
}

.hv-match-quests-toggle:hover {
  background: rgba(0, 255, 255, 0.04);
}

.hv-match-quests-toggle:focus-visible {
  outline: 1px solid rgba(0, 255, 255, 0.55);
  outline-offset: 2px;
}

.hv-mq-tag {
  flex-shrink: 0;
  padding: 2px 7px;
  border: 1px solid rgba(255, 0, 128, 0.45);
  border-radius: 3px;
  background: rgba(255, 0, 128, 0.1);
  color: #ff6eb4;
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(255, 0, 128, 0.35);
}

.hv-match-quests-toggle-label {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dffcff;
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.25);
}

.hv-match-quests-toggle-meta {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  border-radius: 999px;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #67e8f9;
  background: rgba(0, 255, 255, 0.06);
}

.hv-match-quests-chevron {
  width: 12px;
  height: 12px;
  color: #67e8f9;
  transition: transform 0.22s ease;
}

.hv-match-quests-panel.is-open .hv-match-quests-chevron {
  transform: rotate(180deg);
}

.hv-match-quests-dropdown {
  position: relative;
  z-index: 2;
  grid-column: 1;
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
  max-height: min(52vh, 380px);
  overflow-x: hidden;
  overflow-y: auto;
  border-top: 1px solid rgba(0, 255, 255, 0.14);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 255, 0.6) rgba(0, 255, 255, 0.08);
}

.hv-match-quests-dropdown::-webkit-scrollbar {
  width: 9px;
}

.hv-match-quests-dropdown::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(0, 14, 24, 0.95), rgba(4, 8, 18, 0.98));
  border-left: 1px solid rgba(0, 255, 255, 0.14);
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.06);
}

.hv-match-quests-dropdown::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.95), rgba(255, 0, 128, 0.7));
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.hv-match-quests-dropdown::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #67e8f9, #f472b6);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.55);
}

.hv-match-quests-dropdown::-webkit-scrollbar-corner {
  background: transparent;
}

.hv-match-quests-dropdown[hidden] {
  display: none !important;
}

.hv-mq-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.12);
  background: rgba(0, 255, 255, 0.04);
  position: sticky;
  top: 0;
  z-index: 1;
}

.hv-mq-head span {
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.hv-mq-head span:nth-child(2),
.hv-mq-head span:nth-child(3) {
  text-align: right;
  min-width: 72px;
}

.hv-match-quests-list {
  display: flex;
  flex-direction: column;
}

.hv-mq-row {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.hv-mq-row:hover {
  background: rgba(0, 255, 255, 0.04);
}

.hv-mq-row.is-done {
  opacity: 0.5;
}

.hv-mq-row.is-done .hv-mq-bar-fill {
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.5), rgba(34, 197, 94, 0.85));
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.35);
}

.hv-mq-row-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 7px;
}

.hv-mq-desc {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #eef6ff;
  overflow-wrap: anywhere;
}

.hv-mq-type {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(165, 180, 252, 0.35);
  background: rgba(99, 102, 241, 0.12);
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
  white-space: nowrap;
}

.hv-mq-row[data-source="event-pass"] .hv-mq-type {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.hv-mq-row[data-source="daily"] .hv-mq-type,
.hv-mq-row[data-source="pack"] .hv-mq-type {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
}

.hv-mq-row[data-source="battlepass"] .hv-mq-type {
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(236, 72, 153, 0.1);
  color: #f9a8d4;
}

.hv-mq-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hv-mq-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35);
}

.hv-mq-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #06b6d4, #22d3ee 45%, #fde047);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
  transition: width 0.35s ease;
}

.hv-mq-nums {
  flex-shrink: 0;
  min-width: 52px;
  text-align: right;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fde047;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.25);
}

.hv-match-quests-empty {
  margin: 0;
  padding: 18px 14px;
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  text-align: center;
}

.hv-quest-toast-stack {
  position: absolute;
  top: 68px;
  right: 12px;
  z-index: 56;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.hv-level-toast-stack {
  /* Slightly below quest toasts to avoid overlap. */
  top: 118px;
}

.hv-quest-toast {
  position: relative;
  width: 100%;
  opacity: 0;
  transform: translateX(calc(100% + 24px)) scale(0.96);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.18));
}

.hv-quest-toast.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hv-quest-toast.is-leaving {
  opacity: 0;
  transform: translateX(36px) scale(0.98);
  transition:
    transform 0.35s ease-in,
    opacity 0.3s ease-in;
}

.hv-quest-toast.hv-quest-toast-bump .hv-quest-toast-inner {
  animation: hvQuestToastBump 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.hv-quest-toast.hv-quest-toast-bump .hv-quest-toast-delta {
  animation: hvQuestToastDeltaPop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hvQuestToastBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes hvQuestToastDeltaPop {
  0% { transform: scale(1); color: #7efcff; }
  40% { transform: scale(1.18); color: #ffffff; }
  100% { transform: scale(1); color: #7efcff; }
}

.hv-quest-toast-inner {
  position: relative;
  overflow: hidden;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(0, 255, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(0, 255, 255, 0.07) 0%, transparent 42%),
    linear-gradient(225deg, rgba(255, 0, 170, 0.08) 0%, transparent 48%),
    rgba(6, 10, 22, 0.94);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(0, 255, 255, 0.12);
}

.hv-quest-toast-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #00ffff 0%, #ff00aa 100%);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.65);
}

.hv-quest-toast-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 255, 0.03) 0px,
    rgba(0, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
  animation: hvQuestToastScan 3s linear infinite;
}

@keyframes hvQuestToastScan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.hv-quest-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.hv-quest-toast-badge {
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.hv-quest-toast-delta {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #00ffff;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.75);
}

.hv-quest-toast-title {
  margin: 0 0 10px;
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #e8f4ff;
}

.hv-quest-toast-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hv-quest-toast-bar {
  flex: 1;
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.hv-quest-toast-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00ffff 0%, #ff00aa 100%);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.55);
  transition: width 0.35s ease;
}

.hv-quest-toast-numbers {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #fcd34d;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hv-quest-toast-complete {
  margin: 8px 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fde047;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.5);
}

.hv-quest-toast.is-complete .hv-quest-toast-inner {
  border-color: rgba(253, 224, 71, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(253, 224, 71, 0.18);
}

.hv-quest-toast.is-complete .hv-quest-toast-inner::before {
  background: linear-gradient(180deg, #fde047 0%, #ff00aa 100%);
}

.hv-quest-toast.is-complete .hv-quest-toast-delta {
  color: #fde047;
  text-shadow: 0 0 14px rgba(253, 224, 71, 0.75);
}

.hv-game-start-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(0, 255, 255, 0.12) 0%, transparent 62%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(255, 0, 170, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, rgba(4, 10, 22, 0.15) 0%, rgba(4, 10, 22, 0.55) 100%);
}

.hv-game-start-overlay[hidden] {
  display: none !important;
}

.hv-game-start-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: min(96vw, 920px);
  opacity: 1;
  transform: scale(1);
}

.hv-game-cooldown-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  animation: hvCooldownIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hv-game-cooldown-label,
.hv-game-cooldown-sub {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hv-game-cooldown-label {
  font-size: 14px;
  font-weight: 700;
  color: #8ef6ff;
  text-shadow:
    0 0 12px rgba(0, 240, 255, 0.85),
    0 0 28px rgba(0, 120, 255, 0.45);
}

.hv-game-cooldown-sub {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 120, 220, 0.85);
  letter-spacing: 0.22em;
  text-shadow: 0 0 10px rgba(255, 0, 170, 0.45);
}

.hv-game-cooldown-ring {
  --hv-cooldown-progress: 1;
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    conic-gradient(
      from -90deg,
      #00f0ff 0deg,
      #7b5cff calc(var(--hv-cooldown-progress) * 270deg),
      #ff00aa calc(var(--hv-cooldown-progress) * 360deg),
      rgba(255, 255, 255, 0.06) calc(var(--hv-cooldown-progress) * 360deg),
      rgba(255, 255, 255, 0.06) 360deg
    );
  box-shadow:
    0 0 24px rgba(0, 240, 255, 0.35),
    0 0 48px rgba(255, 0, 170, 0.18),
    inset 0 0 24px rgba(0, 240, 255, 0.12);
  transition: background 0.35s ease-out, box-shadow 0.35s ease-out;
}

.hv-game-overlay-paused .hv-game-cooldown-ring {
  animation: hvPauseHoldPulse 1.5s ease-in-out infinite;
}

.hv-game-overlay-paused .hv-game-cooldown-label {
  color: #ff8ad8;
  text-shadow:
    0 0 12px rgba(255, 0, 170, 0.85),
    0 0 28px rgba(255, 80, 180, 0.45);
}

.hv-game-overlay-paused .hv-game-cooldown-sub {
  color: rgba(255, 160, 220, 0.9);
}

.hv-game-overlay-countdown .hv-game-cooldown-ring {
  animation: hvCountdownRingPulse 0.65s ease-out;
}

.hv-game-overlay-countdown .hv-game-cooldown-label {
  color: #8ef6ff;
  animation: hvCountdownLabelGlow 0.65s ease-out;
}

.hv-game-cooldown-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(18, 36, 68, 0.96) 0%, rgba(6, 12, 26, 0.98) 72%);
  border: 1px solid rgba(120, 220, 255, 0.22);
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.08);
}

.hv-game-cooldown-time {
  position: relative;
  z-index: 1;
  font-family: "Orbitron", sans-serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #8ef6ff 42%, #ff5fd8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.75)) drop-shadow(0 0 24px rgba(255, 0, 170, 0.35));
}

.hv-game-cooldown-time.hv-game-cooldown-time-pop {
  animation: hvCooldownTick 0.35s ease-out;
}

.hv-game-cooldown-logo {
  position: absolute;
  z-index: 2;
  width: 78%;
  height: 78%;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.25) rotate(-22deg);
  filter:
    drop-shadow(0 0 14px rgba(0, 240, 255, 0.85))
    drop-shadow(0 0 28px rgba(255, 0, 170, 0.35));
  pointer-events: none;
}

.hv-game-cooldown-logo.hv-game-cooldown-logo-in {
  animation: hvLogoBadgeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hv-game-overlay-start .hv-game-start-stage {
  gap: clamp(28px, 5vw, 72px);
}

.hv-game-overlay-start .hv-game-cooldown-panel {
  gap: 0;
  animation: hvBadgeSlideLeft 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hv-game-overlay-start .hv-game-cooldown-label,
.hv-game-overlay-start .hv-game-cooldown-sub {
  display: none;
}

.hv-game-overlay-start .hv-game-cooldown-ring {
  width: 132px;
  height: 132px;
}

.hv-game-start-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 0;
  padding: 0;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
}

.hv-game-overlay-start .hv-game-start-banner {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.hv-game-overlay-fade-out .hv-game-start-stage {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s ease-out;
}

.hv-game-overlay-fade-out .hv-game-cooldown-panel,
.hv-game-overlay-fade-out .hv-game-start-banner,
.hv-game-overlay-fade-out .hv-game-cooldown-ring,
.hv-game-overlay-fade-out .hv-game-cooldown-logo,
.hv-game-overlay-fade-out .hv-game-start-text,
.hv-game-overlay-fade-out .hv-game-start-flash {
  animation: none !important;
}

.hv-game-overlay-fade-out .hv-game-cooldown-panel {
  transform: translateX(0) scale(0.94) !important;
}

.hv-game-overlay-fade-out .hv-game-start-banner {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.hv-game-overlay-fade-out .hv-game-start-text {
  opacity: 1 !important;
  transform: scale(1) !important;
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.8)) drop-shadow(0 0 32px rgba(255, 0, 170, 0.45)) !important;
}

.hv-game-overlay-fade-out .hv-game-cooldown-logo {
  opacity: 1 !important;
  transform: scale(1) rotate(0deg) !important;
  filter:
    drop-shadow(0 0 14px rgba(0, 240, 255, 0.85))
    drop-shadow(0 0 28px rgba(255, 0, 170, 0.35)) !important;
}

.hv-game-overlay-fade-out {
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(0, 255, 255, 0.06) 0%, transparent 62%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(255, 0, 170, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, rgba(4, 10, 22, 0.08) 0%, rgba(4, 10, 22, 0.28) 100%);
  transition: background 0.55s ease-out;
}

.hv-game-start-banner[hidden] {
  display: none !important;
}

.hv-game-start-text {
  position: relative;
  z-index: 2;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00f0ff 0%, #ffffff 35%, #ff00aa 70%, #00f0ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.8)) drop-shadow(0 0 32px rgba(255, 0, 170, 0.45));
}

.hv-game-start-flash {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.28) 0%, rgba(255, 0, 170, 0.12) 35%, transparent 68%);
  opacity: 0;
  pointer-events: none;
}

.hv-game-start-banner.hv-game-start-animate .hv-game-start-text {
  animation: hvGameStartPop 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hv-game-start-banner.hv-game-start-animate .hv-game-start-flash {
  animation: hvGameStartFlash 0.95s ease-out forwards;
}

@keyframes hvCooldownIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hvCooldownPulse {
  0%, 100% {
    box-shadow:
      0 0 24px rgba(0, 240, 255, 0.35),
      0 0 48px rgba(255, 0, 170, 0.18),
      inset 0 0 24px rgba(0, 240, 255, 0.12);
  }
  50% {
    box-shadow:
      0 0 34px rgba(0, 240, 255, 0.55),
      0 0 64px rgba(255, 0, 170, 0.28),
      inset 0 0 28px rgba(0, 240, 255, 0.18);
  }
}

@keyframes hvPauseHoldPulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(255, 0, 170, 0.35),
      0 0 40px rgba(0, 240, 255, 0.15),
      inset 0 0 20px rgba(255, 0, 170, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 32px rgba(255, 0, 170, 0.55),
      0 0 56px rgba(0, 240, 255, 0.25),
      inset 0 0 26px rgba(255, 0, 170, 0.16);
    transform: scale(1.03);
  }
}

@keyframes hvCountdownRingPulse {
  0% { transform: scale(0.92); filter: brightness(1.15); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes hvCountdownLabelGlow {
  0% { letter-spacing: 0.42em; opacity: 0.7; }
  100% { letter-spacing: 0.32em; opacity: 1; }
}

@keyframes hvLogoBadgeIn {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-24deg);
    filter: blur(6px) drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
  }
  55% {
    opacity: 1;
    transform: scale(1.12) rotate(6deg);
    filter: blur(0) drop-shadow(0 0 22px rgba(0, 240, 255, 0.95));
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter:
      drop-shadow(0 0 14px rgba(0, 240, 255, 0.85))
      drop-shadow(0 0 28px rgba(255, 0, 170, 0.35));
  }
}

@keyframes hvBadgeSlideLeft {
  0% {
    transform: translateX(120px) scale(1);
  }
  100% {
    transform: translateX(0) scale(0.94);
  }
}

@keyframes hvCooldownTick {
  0% {
    transform: scale(1.18);
    filter: drop-shadow(0 0 18px rgba(255, 0, 170, 0.9));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.75)) drop-shadow(0 0 24px rgba(255, 0, 170, 0.35));
  }
}

@keyframes hvGameStartPop {
  0% {
    opacity: 0;
    transform: scale(0.35) skewX(-10deg);
    letter-spacing: 0.4em;
  }
  18% {
    opacity: 1;
    transform: scale(1.12) skewX(0deg);
    letter-spacing: 0.12em;
  }
  32% {
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    background-position: 100% 0;
  }
}

@keyframes hvGameStartFlash {
  0% { opacity: 0; transform: scale(0.6); }
  20% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.35; transform: scale(1.15); }
}

@keyframes hvGameStartFlash {
  0% { opacity: 0; transform: scale(0.6); }
  20% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.35; transform: scale(1.15); }
}

.hv-game-pause-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 50% 45%, rgba(255, 0, 170, 0.1) 0%, transparent 62%),
    linear-gradient(180deg, rgba(4, 10, 22, 0.2) 0%, rgba(4, 10, 22, 0.62) 100%);
  transition: opacity 0.45s ease-out;
}

.hv-game-pause-overlay[hidden] {
  display: none !important;
}

.hv-game-pause-overlay.hv-game-pause-fade-out {
  opacity: 0;
}

.hv-game-pause-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.hv-game-pause-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff8ad8;
  text-shadow:
    0 0 16px rgba(255, 0, 170, 0.85),
    0 0 32px rgba(0, 240, 255, 0.35);
  animation: hvManualPauseTitleIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hv-game-pause-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hv-game-pause-ring {
  --hv-pause-progress: 1;
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    conic-gradient(
      from -90deg,
      #ff00aa 0deg,
      #7b5cff calc(var(--hv-pause-progress) * 270deg),
      #00f0ff calc(var(--hv-pause-progress) * 360deg),
      rgba(255, 255, 255, 0.06) calc(var(--hv-pause-progress) * 360deg),
      rgba(255, 255, 255, 0.06) 360deg
    );
  box-shadow:
    0 0 24px rgba(255, 0, 170, 0.35),
    0 0 48px rgba(0, 240, 255, 0.18),
    inset 0 0 24px rgba(255, 0, 170, 0.1);
  animation: hvManualPauseRingIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background 0.35s ease-out;
}

.hv-game-pause-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(28, 18, 48, 0.96) 0%, rgba(8, 10, 24, 0.98) 72%);
  border: 1px solid rgba(255, 120, 220, 0.24);
  box-shadow: inset 0 0 18px rgba(255, 0, 170, 0.08);
}

.hv-game-pause-count {
  position: relative;
  z-index: 1;
  font-family: "Orbitron", sans-serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #ff8ad8 42%, #00f0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 0, 170, 0.75)) drop-shadow(0 0 24px rgba(0, 240, 255, 0.35));
}

.hv-game-pause-count.hv-game-pause-count-pop {
  animation: hvCooldownTick 0.35s ease-out;
}

.hv-game-pause-countdown-active .hv-game-pause-title {
  display: none;
}

.hv-game-pause-panel.hv-game-pause-title-only .hv-game-pause-ring-wrap {
  display: none !important;
}

@keyframes hvManualPauseTitleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
    letter-spacing: 0.32em;
  }
  to {
    opacity: 1;
    transform: scale(1);
    letter-spacing: 0.18em;
  }
}

@keyframes hvManualPauseRingIn {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hv-match-game-layer[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.hv-match-game-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

body.hv-match-game-active .hv-home-header,
body.hv-match-game-active .hv-left-panel,
body.hv-match-game-active .hv-play-group,
body.hv-match-game-active .hv-home-main,
body.hv-match-game-active .hv-home-bg,
body.hv-match-game-active .hv-home-overlay {
  display: none !important;
}

body.hv-match-game-active .hv-match-loading {
  display: none !important;
}

body.hv-match-game-active .hv-match-game-layer {
  z-index: 300;
}

.hv-match-loading {
  z-index: 200;
}

/* Invite player + Search friends modals — cyberpunk sci-fi */
.hv-invite-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: hvFadeIn 0.3s ease-out;
}

.hv-invite-modal-backdrop[hidden] {
  display: none;
}

.hv-invite-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: min(85vh, 560px);
  display: flex;
  flex-direction: column;
  padding: 20px 20px 16px;
  border-radius: 0;
  border: 1px solid rgba(0, 255, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(0, 255, 255, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, rgba(8, 18, 34, 0.97) 0%, rgba(4, 10, 20, 0.98) 100%);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(0, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  animation: hvModeModalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 255, 0.35) transparent;
}

.hv-invite-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, #00ffff 0%, rgba(0, 255, 255, 0.2) 70%, transparent 100%);
  pointer-events: none;
}

.hv-invite-modal::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 7px;
  height: 7px;
  background: #00ffff;
  box-shadow: 0 0 10px #00ffff;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  pointer-events: none;
  opacity: 0.85;
}

.hv-invite-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.15);
  flex-shrink: 0;
}

.hv-invite-modal-header h2 {
  margin: 0;
  color: #e8f4ff;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(0, 255, 255, 0.3);
}

.hv-invite-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  border-radius: 0;
  background: rgba(0, 255, 255, 0.06);
  color: #7ef9ff;
  cursor: pointer;
  padding: 0;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.hv-invite-modal-close .hv-icon {
  width: 18px;
  height: 18px;
}

.hv-invite-modal-close:hover {
  background: rgba(0, 255, 255, 0.14);
  border-color: rgba(0, 255, 255, 0.55);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.25);
}

.hv-invite-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid rgba(0, 255, 255, 0.22);
  background: rgba(0, 8, 16, 0.45);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hv-invite-tab {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(200, 230, 255, 0.55);
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.hv-invite-tab:hover {
  background: rgba(0, 255, 255, 0.08);
  color: #fff;
}

.hv-invite-tab-active {
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.28) 0%, rgba(0, 160, 200, 0.16) 100%);
  border-color: rgba(0, 255, 255, 0.55);
  color: #7ef9ff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.18), inset 0 0 10px rgba(0, 255, 255, 0.06);
}

.hv-invite-search-wrap {
  margin-bottom: 12px;
  flex-shrink: 0;
}

.hv-invite-search-wrap[hidden] {
  display: none;
}

.hv-invite-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  border-radius: 0;
  background: rgba(0, 8, 16, 0.65);
  color: #e8f4ff;
  font-family: "Rajdhani", sans-serif;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hv-invite-search:focus {
  border-color: rgba(0, 255, 255, 0.65);
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.18);
}

.hv-invite-search::placeholder {
  color: rgba(143, 212, 255, 0.4);
}

.hv-invite-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  max-height: 360px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 255, 0.4) rgba(0, 0, 0, 0.2);
}

.hv-invite-list::-webkit-scrollbar {
  width: 6px;
}

.hv-invite-list::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.35);
  border-radius: 0;
}

.hv-invite-list-empty {
  padding: 24px 12px;
  text-align: center;
  color: rgba(143, 212, 255, 0.45);
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hv-invite-user {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 255, 255, 0.16);
  border-radius: 0;
  background: rgba(0, 8, 16, 0.4);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hv-invite-user:hover {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.12);
}

.hv-invite-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.hv-invite-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.12);
}

.hv-invite-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(0, 40, 60, 0.75);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #7ef9ff;
  font-size: 18px;
  font-weight: 700;
}

.hv-invite-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5cff8a;
  border: 2px solid rgba(4, 10, 20, 0.95);
  box-shadow: 0 0 8px rgba(92, 255, 138, 0.7);
}

.hv-invite-user-info {
  flex: 1;
  min-width: 0;
}

.hv-invite-user-name {
  display: block;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-invite-user-sub {
  display: block;
  margin-top: 2px;
  color: rgba(143, 212, 255, 0.55);
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-invite-user-meta {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 0;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.25);
  color: #7ef9ff;
  font-family: "Orbitron", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

.hv-invite-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 0;
  background: rgba(0, 8, 16, 0.4);
  border: 1px solid rgba(0, 255, 255, 0.14);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hv-invite-user-row + .hv-invite-user-row {
  margin-top: 6px;
}

.hv-invite-user-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: default;
}

.hv-invite-action {
  flex-shrink: 0;
  min-width: 72px;
  height: 32px;
  border-radius: 0;
  border: 1px solid rgba(0, 255, 255, 0.45);
  background: rgba(0, 255, 255, 0.08);
  color: #7ef9ff;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.hv-invite-action:hover:not(:disabled) {
  background: rgba(0, 255, 255, 0.18);
  border-color: rgba(0, 255, 255, 0.75);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.25);
}

.hv-invite-action-invited,
.hv-invite-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.hv-host-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #ffd54a;
  filter: drop-shadow(0 0 6px rgba(255, 213, 74, 0.75));
  flex-shrink: 0;
}

.hv-host-crown[hidden] {
  display: none !important;
}

.hv-host-crown .hv-icon,
.hv-host-crown-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.hv-player-tag {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 6px;
}

.hv-slot-player-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  justify-content: center;
  margin-bottom: 4px;
}

.hv-slot-player-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  max-width: 110px;
}

.hv-slot-player-name {
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 700;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hv-slot-player-ready {
  color: #5cff8a;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.hv-slot-player-ready[hidden] {
  display: none;
}

.hv-ready-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  pointer-events: auto;
  animation: hvReadyPopupIn 0.2s ease-out;
}

.hv-ready-popup-backdrop[hidden] {
  display: none;
}

.hv-ready-popup {
  padding: 22px 32px;
  border-radius: 14px;
  background: rgba(12, 18, 32, 0.95);
  border: 1px solid rgba(255, 90, 60, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: min(420px, 90vw);
}

@keyframes hvReadyPopupIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hv-quit-group-wrap {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 35;
  pointer-events: auto;
}

.hv-quit-group-btn {
  padding: 12px 28px;
  border-radius: 10px;
  border: 2px solid rgba(255, 120, 90, 0.55);
  background: rgba(12, 16, 28, 0.88);
  color: rgba(255, 220, 210, 0.95);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hv-quit-group-btn:hover {
  background: rgba(40, 20, 20, 0.92);
  border-color: rgba(255, 90, 60, 0.75);
}

.hv-quit-group-btn[hidden] {
  display: none;
}

.hv-slot-filled .hv-slot-invite {
  display: none;
}

.hv-slot-filled .hv-slot-disc-empty {
  display: none;
}

.hv-right-panel {
  position: fixed;
  top: 132px;
  right: 16px;
  z-index: 18;
  width: min(280px, 28vw);
  max-height: calc(100vh - 148px);
  overflow-y: auto;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hv-social-section {
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.06) 0%, transparent 28%),
    rgba(6, 14, 28, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.hv-social-summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 230, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.12);
}

.hv-social-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hv-friends-search-btn {
  border: 1px solid rgba(0, 255, 255, 0.28);
  border-radius: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 255, 0.08);
  color: #7fdfff;
  cursor: pointer;
  flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.hv-friends-search-btn:hover {
  background: rgba(0, 255, 255, 0.18);
  border-color: rgba(0, 255, 255, 0.55);
}

.hv-friends-search-btn .hv-icon {
  width: 14px;
  height: 14px;
}

.hv-friend-section-label {
  margin: 8px 4px 4px;
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hv-friend-search-btn {
  border: 1px solid rgba(0, 255, 255, 0.35);
  border-radius: 0;
  padding: 5px 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: rgba(0, 255, 255, 0.1);
  color: #7ef9ff;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.hv-friend-search-btn:hover:not(:disabled) {
  background: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.65);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.hv-friend-search-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.hv-friend-search-btn-sent {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.hv-friend-online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
  background: rgba(255, 255, 255, 0.25);
  vertical-align: middle;
}

.hv-friend-online-dot-online {
  background: #5cff8a;
  box-shadow: 0 0 6px rgba(92, 255, 138, 0.55);
}

.hv-social-summary::-webkit-details-marker {
  display: none;
}

.hv-social-body {
  padding: 0 10px 10px;
}

.hv-social-empty {
  margin: 0;
  padding: 8px 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.hv-friend-row,
.hv-invite-inbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.hv-friend-row + .hv-friend-row,
.hv-invite-inbox-row + .hv-invite-inbox-row {
  margin-top: 6px;
}

.hv-social-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hv-social-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
}

.hv-social-info {
  flex: 1;
  min-width: 0;
}

.hv-social-name {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-social-sub {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.hv-invite-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff5a3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hv-invite-inbox-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hv-invite-inbox-btn {
  border: none;
  border-radius: 6px;
  padding: 5px 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.hv-invite-inbox-btn-accept {
  background: rgba(92, 255, 138, 0.2);
  color: #5cff8a;
}

.hv-invite-inbox-btn-decline {
  background: rgba(255, 90, 60, 0.15);
  color: #ff8a78;
}

@media (max-width: 900px) {
  .hv-top-nav { gap: 0; }
  .hv-nav-item { padding: 6px 10px; font-size: 10px; }
  .hv-left-panel { top: 68px; width: min(260px, 42vw); }
  .hv-right-panel { top: 120px; max-height: calc(100vh - 136px); }
  .hv-play-group { bottom: 18px; left: 16px; }
  .hv-play-panel { width: min(260px, 42vw); }
  .hv-play-heading { font-size: 22px; }
  .hv-slot-back-left { left: 32%; bottom: 32%; }
  .hv-slot-back-mid { left: 51%; bottom: 34%; }
  .hv-slot-back-right { left: 69%; bottom: 32%; }
  .hv-slot-front { bottom: 18%; }
}

@media (max-width: 600px) {
  .hv-home-header { flex-wrap: wrap; gap: 8px; }
  .hv-top-nav { max-width: calc(100% - 120px); }
  .hv-left-panel { left: 12px; top: 62px; width: min(220px, 55vw); }
  .hv-right-panel { top: 148px; max-height: calc(100vh - 164px); width: min(240px, 42vw); }
  .hv-play-group { left: 12px; bottom: 14px; }
  .hv-play-panel { width: min(220px, 55vw); padding: 14px 12px 12px; }
  .hv-play-heading { font-size: 18px; margin-bottom: 10px; }
  .hv-play-btn { font-size: 18px; padding: 12px; }
  .hv-slot-back-left { left: 28%; bottom: 30%; }
  .hv-slot-back-mid { left: 50%; bottom: 32%; }
  .hv-slot-back-right { left: 72%; bottom: 30%; }
  .hv-slot-front { bottom: 15%; }
}

/* ── Post-match result overlay ── */
.hv-match-game-layer .hv-match-result-overlay {
  position: absolute;
  inset: 0;
  z-index: 360;
}

.hv-match-result-overlay {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  animation: hvMatchResultFadeIn 0.45s ease;
}

.hv-match-result-overlay[hidden] {
  display: none !important;
}

@keyframes hvMatchResultFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hv-match-result-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.hv-match-result-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 96vw);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(120, 170, 255, 0.22);
  background: linear-gradient(165deg, rgba(12, 22, 42, 0.96) 0%, rgba(8, 14, 28, 0.98) 100%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 22px 24px 18px;
}

.hv-match-result-header {
  text-align: center;
  margin-bottom: 14px;
}

.hv-match-result-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffe082, #ffb300 45%, #ff8f00 100%);
  color: #1a1200;
  margin-bottom: 6px;
  box-shadow: 0 0 24px rgba(255, 193, 7, 0.45);
}

.hv-match-result-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff8e1 0%, #ffc107 55%, #ff8f00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255, 193, 7, 0.35);
}

.hv-match-result-outcome.hv-outcome-defeat .hv-match-result-title {
  background: linear-gradient(180deg, #ffcdd2 0%, #ef5350 55%, #b71c1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hv-match-result-outcome.hv-outcome-draw .hv-match-result-title {
  background: linear-gradient(180deg, #e0e0e0 0%, #9e9e9e 55%, #616161 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hv-match-result-scoreline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 4px;
}

.hv-match-result-score {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
}

.hv-match-result-score-blue { color: #5eb3ff; text-shadow: 0 0 20px rgba(94, 179, 255, 0.5); }
.hv-match-result-score-red { color: #ff6b6b; text-shadow: 0 0 20px rgba(255, 107, 107, 0.45); }

.hv-match-result-duration {
  margin: 8px 0 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(200, 215, 240, 0.75);
  letter-spacing: 0.04em;
}

.hv-match-result-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hv-match-result-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(210, 225, 245, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hv-match-result-legend-item iconify-icon {
  color: #8eb8ff;
  font-size: 15px;
}

.hv-match-result-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hv-match-result-team-head {
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hv-match-result-team-head-blue {
  background: linear-gradient(90deg, rgba(30, 80, 160, 0.55), rgba(20, 50, 110, 0.35));
  color: #9fd0ff;
  border: 1px solid rgba(80, 150, 255, 0.35);
  border-bottom: none;
}

.hv-match-result-team-head-red {
  background: linear-gradient(90deg, rgba(140, 30, 40, 0.55), rgba(90, 20, 30, 0.35));
  color: #ffb0b0;
  border: 1px solid rgba(255, 90, 90, 0.35);
  border-bottom: none;
}

.hv-match-result-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 8px 8px;
  background: rgba(0, 0, 0, 0.22);
}

.hv-match-result-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
}

.hv-match-result-table thead th {
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(180, 200, 230, 0.7);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hv-match-result-table thead th iconify-icon {
  font-size: 16px;
  vertical-align: middle;
}

.hv-match-result-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.hv-match-result-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hv-match-result-table tbody tr.hv-match-result-mvp-row {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.12), rgba(255, 193, 7, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.25);
}

.hv-match-result-table tbody tr.hv-match-result-self-row {
  background: rgba(100, 180, 255, 0.08);
}

.hv-match-result-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-width: 140px;
}

.hv-match-result-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.hv-match-result-name {
  font-weight: 700;
  font-size: 14px;
  color: #eef4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.hv-match-result-team-blue .hv-match-result-name { color: #b8dcff; }
.hv-match-result-team-red .hv-match-result-name { color: #ffb8b8; }

.hv-match-result-stat {
  text-align: center;
  padding: 8px 4px;
  color: rgba(220, 230, 245, 0.92);
  font-weight: 600;
}

.hv-match-result-stat-high {
  color: #ffd54f;
  font-weight: 800;
}

.hv-match-result-stat-good {
  color: #81c784;
  font-weight: 700;
}

.hv-match-result-mvp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffc107;
  font-size: 18px;
}

.hv-match-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hv-match-result-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 12px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hv-match-result-btn:active {
  transform: scale(0.98);
}

.hv-match-result-btn-details {
  background: linear-gradient(135deg, #5c3d99, #7b52c4);
  color: #f3ebff;
  box-shadow: 0 4px 16px rgba(123, 82, 196, 0.35);
}

.hv-match-result-btn-back {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: #e8f5e9;
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(67, 160, 71, 0.35);
}

@media (max-width: 900px) {
  .hv-match-result-boards {
    grid-template-columns: 1fr;
  }

  .hv-match-result-legend {
    gap: 8px 10px;
  }

  .hv-match-result-legend-item {
    font-size: 10px;
  }
}

body.hv-match-result-visible .hv-home-header,
body.hv-match-result-visible .hv-left-panel,
body.hv-match-result-visible .hv-play-group,
body.hv-match-result-visible .hv-right-panel,
body.hv-match-result-visible .hv-home-main {
  filter: blur(4px);
  pointer-events: none;
}

/* Emote catalog panel */
body.hv-emote-open {
  overflow: hidden;
}

.hv-emote-overlay {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hv-emote-overlay[hidden] {
  display: none !important;
}

.hv-emote-panel {
  width: min(920px, 100%);
  max-height: min(640px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(120, 200, 255, 0.35);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(56, 140, 220, 0.08) 0%, transparent 24%),
    linear-gradient(135deg, rgba(10, 18, 34, 0.97) 0%, rgba(6, 10, 22, 0.98) 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(78, 200, 240, 0.12);
}

.hv-emote-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(120, 200, 255, 0.18);
}

.hv-emote-tag {
  padding: 3px 8px;
  border: 1px solid rgba(255, 90, 60, 0.45);
  background: rgba(255, 90, 60, 0.12);
  color: #ff9a84;
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hv-emote-header h2 {
  margin: 0;
  flex: 1;
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8f4ff;
}

.hv-emote-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #e8f4ff;
  cursor: pointer;
  padding: 0;
}

.hv-emote-close:hover {
  border-color: rgba(120, 200, 255, 0.45);
}

.hv-emote-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 0;
  min-height: 0;
  flex: 1;
}

.hv-emote-catalog {
  min-width: 0;
  padding: 16px 18px 18px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 200, 255, 0.35) transparent;
}

.hv-emote-custom {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(120, 200, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.hv-emote-custom-label {
  display: block;
  margin-bottom: 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 230, 255, 0.85);
}

.hv-emote-custom-input {
  width: 100%;
  max-width: 160px;
  padding: 8px 10px;
  border: 1px solid rgba(120, 200, 255, 0.28);
  border-radius: 8px;
  background: rgba(4, 10, 18, 0.96);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  text-align: center;
}

.hv-emote-custom-input:focus {
  outline: none;
  border-color: rgba(120, 200, 255, 0.55);
  box-shadow: 0 0 10px rgba(120, 200, 255, 0.18);
}

.hv-emote-custom-input:disabled,
.hv-emote-custom-input.is-custom-active,
.hv-emote-custom-input.is-texting-locked {
  opacity: 0.55;
  cursor: not-allowed;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hv-emote-texting-lock {
  display: none;
  margin-left: 6px;
  font-size: 11px;
  vertical-align: middle;
}

.hv-emote-custom.is-locked .hv-emote-texting-lock {
  display: inline;
}

.hv-emote-custom.is-locked {
  opacity: 0.72;
  border-color: rgba(255, 180, 80, 0.22);
}

.hv-emote-custom-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(160, 190, 210, 0.7);
}

.hv-emote-section + .hv-emote-section {
  margin-top: 16px;
}

.hv-emote-section-title {
  margin: 0 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(92, 255, 138, 0.85);
}

.hv-emote-section-title-locked {
  color: rgba(255, 138, 120, 0.85);
}

.hv-emote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
}

.hv-emote-cell {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(120, 200, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.hv-emote-cell-selectable:hover {
  background: rgba(56, 140, 220, 0.28);
  border-color: rgba(120, 200, 255, 0.45);
  transform: translateY(-1px);
}

.hv-emote-cell-selectable.is-selected {
  background: rgba(56, 140, 220, 0.42);
  border-color: rgba(120, 200, 255, 0.65);
  box-shadow: inset 0 0 0 1px rgba(120, 200, 255, 0.25), 0 0 12px rgba(78, 200, 240, 0.2);
}

.hv-emote-cell-locked {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.hv-emote-grid-custom {
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
}

.hv-emote-cell-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  overflow: hidden;
}

.hv-emote-custom-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.hv-emote-custom-name {
  font-size: 9px;
  line-height: 1.1;
  color: rgba(200, 230, 255, 0.7);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hv-emote-custom-empty {
  margin: 0;
  font-size: 12px;
  color: rgba(200, 230, 255, 0.45);
}

.hv-emote-section-custom .hv-emote-section-title {
  color: rgba(255, 210, 120, 0.9);
}

.hv-emote-glyph {
  font-size: 24px;
  line-height: 1;
}

.hv-emote-lock {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 10px;
  line-height: 1;
  opacity: 0.85;
}

.hv-emote-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-left: 1px solid rgba(120, 200, 255, 0.14);
  background: rgba(0, 6, 14, 0.35);
  position: relative;
  z-index: 2;
}

.hv-emote-preview-label {
  margin: 0;
  width: 100%;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 230, 255, 0.65);
  text-align: center;
}

.hv-emote-preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  width: 100%;
}

.hv-emote-preview-disc {
  width: 104px;
  height: 104px;
  transform: perspective(500px) rotateX(18deg);
}

.hv-emote-preview-emoji {
  font-size: 52px;
}

.hv-emote-save-status {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(125, 211, 252, 0.75);
  text-align: center;
  min-height: 16px;
}

.hv-emote-save-status.is-saving {
  color: #9ecbff;
}

.hv-emote-save-status.is-success {
  color: #5cff8a;
}

.hv-emote-save-status.is-error {
  color: #ff8a78;
}

.hv-emote-save-btn {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(92, 255, 138, 0.45);
  border-radius: 10px;
  background: rgba(92, 255, 138, 0.12);
  color: #5cff8a;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.hv-emote-save-btn:hover:not(:disabled) {
  background: rgba(92, 255, 138, 0.2);
  box-shadow: 0 0 14px rgba(92, 255, 138, 0.18);
}

.hv-emote-save-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

@media (max-width: 760px) {
  .hv-emote-body {
    grid-template-columns: 1fr;
  }

  .hv-emote-preview {
    border-left: none;
    border-top: 1px solid rgba(120, 200, 255, 0.14);
  }
}

.hv-friend-row-clickable {
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

.hv-friend-row-clickable:hover {
  background: rgba(56, 140, 220, 0.16);
}

.hv-friend-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.hv-friend-row-clickable:hover .hv-friend-row-actions,
.hv-friend-row-clickable:focus-within .hv-friend-row-actions {
  opacity: 1;
  pointer-events: auto;
}

.hv-friend-invite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(92, 255, 138, 0.42);
  border-radius: 50%;
  background: rgba(46, 160, 88, 0.2);
  color: rgba(160, 255, 190, 0.98);
  cursor: pointer;
  padding: 0;
}

.hv-friend-invite-btn .hv-icon {
  width: 16px;
  height: 16px;
}

.hv-friend-invite-btn:hover:not(:disabled) {
  background: rgba(56, 200, 110, 0.38);
  border-color: rgba(120, 255, 170, 0.75);
  box-shadow: 0 0 12px rgba(92, 255, 138, 0.25);
}

.hv-friend-invite-btn.is-invited,
.hv-friend-invite-btn:disabled {
  opacity: 0.45;
  cursor: default;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.hv-friend-invite-slot-label {
  display: none;
}

body.hv-fp-open {
  overflow: hidden;
}

.hv-fp-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(4px);
}

.hv-fp-overlay[hidden] {
  display: none;
}

.hv-fp-panel {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(120, 200, 255, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.98), rgba(4, 10, 18, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hv-fp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(120, 200, 255, 0.14);
}

.hv-fp-toolbar h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 240, 255, 0.92);
}

.hv-fp-close {
  border: none;
  background: transparent;
  color: rgba(220, 240, 255, 0.85);
  cursor: pointer;
  padding: 4px;
}

.hv-fp-content {
  overflow: auto;
  padding: 16px;
}

.hv-fp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hv-fp-avatar,
.hv-fp-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(120, 200, 255, 0.35);
}

.hv-fp-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  font-family: "Orbitron", sans-serif;
}

.hv-fp-tag {
  margin: 0 0 4px;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(120, 200, 255, 0.75);
}

.hv-fp-name {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 22px;
  color: #fff;
}

.hv-fp-status {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.hv-fp-status.is-online {
  color: rgba(92, 255, 138, 0.9);
}

.hv-fp-role {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(255, 210, 120, 0.85);
}

.hv-fp-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hv-fp-mode-tab {
  border: 1px solid rgba(120, 200, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(220, 240, 255, 0.82);
  font-size: 11px;
  padding: 6px 12px;
  cursor: pointer;
}

.hv-fp-mode-tab.is-active {
  background: rgba(56, 140, 220, 0.32);
  border-color: rgba(120, 200, 255, 0.5);
  color: #fff;
}

.hv-fp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.hv-fp-stat {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(120, 200, 255, 0.12);
}

.hv-fp-stat-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(200, 230, 255, 0.62);
}

.hv-fp-stat-value {
  display: block;
  margin-top: 4px;
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  color: #fff;
}

.hv-fp-xp {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 200, 255, 0.12);
}

.hv-fp-xp-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(220, 240, 255, 0.88);
  margin-bottom: 8px;
}

.hv-fp-xp-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hv-fp-xp-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 140, 220, 0.95), rgba(92, 255, 138, 0.85));
}

.hv-fp-xp-next {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(200, 230, 255, 0.62);
}

.hv-fp-chart-section + .hv-fp-chart-section {
  margin-top: 14px;
}

.hv-fp-chart-title {
  margin: 0 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 230, 255, 0.72);
}

.hv-fp-chart-empty {
  margin: 0;
  padding: 10px 4px;
  font-size: 11px;
  color: rgba(200, 230, 255, 0.5);
}

.hv-fp-donut-wrap,
.hv-fp-polar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hv-fp-donut,
.hv-fp-polar {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
}

.hv-fp-donut-legend,
.hv-fp-polar-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.hv-fp-donut-legend-item,
.hv-fp-polar-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(220, 240, 255, 0.82);
}

.hv-fp-donut-legend-item strong,
.hv-fp-polar-legend-item strong {
  margin-left: auto;
  font-weight: 600;
  color: rgba(200, 235, 255, 0.95);
}

.hv-fp-donut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hv-fp-radar-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.hv-fp-radar {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.hv-fp-radar-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.hv-fp-radar-axis {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.hv-fp-radar-fill {
  fill: rgba(78, 200, 240, 0.22);
  stroke: none;
}

.hv-fp-radar-stroke {
  fill: none;
  stroke: rgba(120, 220, 255, 0.9);
  stroke-width: 2;
}

.hv-fp-radar-dot {
  fill: rgba(160, 235, 255, 0.95);
  stroke: rgba(20, 40, 60, 0.8);
  stroke-width: 1;
}

.hv-fp-radar-label {
  fill: rgba(210, 235, 255, 0.78);
  font-size: 9px;
  font-family: "Segoe UI", sans-serif;
}

.hv-fp-polar-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.hv-fp-polar-wedge {
  opacity: 0.82;
}

.hv-fp-polar-center {
  fill: rgba(200, 235, 255, 0.9);
}

.hv-fp-loading,
.hv-fp-empty {
  margin: 0;
  padding: 24px 8px;
  text-align: center;
  color: rgba(200, 230, 255, 0.65);
}

@media (max-width: 760px) {
  .hv-fp-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
