:root {
  --primary-color: #ff1a1a;
  --secondary-color: #ffffff;
  --background-dark: #050505;
  --card-bg: rgba(10, 10, 10, 0.85);
  --text-color: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Mono', 'Retro Gaming', monospace;
  background: var(--background-dark);
  color: var(--text-color);
  overflow: hidden;
  min-height: 100vh;
}

@font-face {
  font-family: 'Angel Wish';
  src: url('assets/Angel_wish.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body:not(.touch-device) {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  background: url('assets/custom_cursor.png') no-repeat center center / contain;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

.mute-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mute-toggle:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.55);
}

.mute-toggle svg {
  width: 22px;
  height: 22px;
}

.page-view-counter {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  z-index: 500;
}

.page-view-counter svg {
  width: 20px;
  height: 20px;
}

.container {
  width: 100%;
  height: 100vh;
  position: relative;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5) saturate(0.6);
}

.glitch-overlay,
#hacker-overlay,
#snow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch-overlay {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s;
}

.hidden {
  display: none !important;
}

#start-screen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  cursor: pointer;
  letter-spacing: 0.2em;
}

#start-text {
  color: #f5f5f5;
  font-size: 22px;
  text-transform: uppercase;
  font-family: 'Space Mono', monospace;
}

.controls,
.top-controls,
#skills-block,
#results-button-container {
  display: none !important;
}

#profile-block {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  min-height: 520px;
  padding: 40px 32px 32px;
  border-radius: 40px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  opacity: 1;
}

.profile-shell {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

.profile-avatar-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-ring {
  position: absolute;
  width: 185px;
  height: 185px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.35);
  animation: pulseRing 6s linear infinite;
}

.profile-container::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 10px 10px, var(--primary-color) 15%, transparent 25%);
  animation: orbit 3s linear infinite;
  z-index: -1;
  filter: blur(2px);
  box-shadow: 0 0 10px var(--primary-color);
}

.profile-container.fast-orbit::after {
  animation: fast-orbit 0.5s linear forwards;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid rgba(0, 0, 0, 0.8);
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease;
}

.profile-picture:hover {
  transform: translateY(-6px);
}

.profile-name-block {
  text-align: center;
}

#profile-name,
.glow-text {
  font-family: 'Angel Wish', sans-serif;
  font-size: 42px;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
}

.profile-subname {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.status-avatar-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-picture {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
}

.status-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.status-handle {
  font-size: 20px;
  font-weight: 600;
}

.status-muted {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.status-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.badge-box {
  padding: 4px 6px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
}

.badge-box-inner {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-container {
  position: relative;
}

.badge-container .tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}

.badge-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.badge {
  width: 26px;
  height: 26px;
}

.badge-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0e0ff;
}

.badge-placeholder {
  opacity: 0.8;
  font-style: italic;
}

.profile-footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: none;
  opacity: 0.9;
  transition: transform 0.3s, opacity 0.3s;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.05);
  opacity: 1;
}

@media (max-width: 600px) {
  #profile-block {
    width: 90vw;
    padding: 32px 24px;
  }

  .profile-avatar-wrapper {
    width: 140px;
    height: 140px;
  }

  .profile-picture {
    width: 120px;
    height: 120px;
  }

  .status-top {
    flex-direction: column;
  }
}
@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fast-orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(720deg);
  }
}
