@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --bg: #000000;
  --text: #ffffff;
  --line: rgba(255, 255, 255, 0.92);
  --panel: rgba(0, 0, 0, 0.16);
  --accent: #8f92ff;
  --success: #21a357;
  --idle: #ca8a04;
  --muted: #7f838d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 146, 255, 0.12), transparent 34rem),
    #000;
  overflow-x: hidden;
}

body::selection {
  color: #000;
  background: #fff;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

svg {
  display: block;
  fill: currentColor;
}

#sparkles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  transition: opacity 180ms ease, transform 180ms ease;
}

.page-shell.is-page-transitioning {
  opacity: 0.25;
  transform: translateY(0.35rem);
  pointer-events: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.page-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.loader-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
}

.loader-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 760ms linear infinite;
}

.profile-stack {
  width: min(100%, 42rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform-style: preserve-3d;
  transition: transform 400ms cubic-bezier(0.03, 0.98, 0.52, 0.99);
  will-change: transform;
}

.profile-stack.is-tilt-locked {
  transition: none;
}

.panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
}

.intro-panel {
  position: relative;
  padding: 1rem;
  border-right-width: 0;
  border-bottom-width: 0;
  border-left-width: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.view-count {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
}

.view-count svg {
  width: 1rem;
  height: 1rem;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-height: 8.8rem;
  padding-top: 0.25rem;
}

.profile-photo {
  width: 7rem;
  height: 7rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 1.6rem rgba(143, 146, 255, 0.35);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.name-row h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  color: transparent;
  background:
    linear-gradient(90deg, #fff, #8f92ff, #fff, #73ffd8, #fff),
    #fff;
  background-size: 280% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shimmer 4s linear infinite;
}

.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 1.6rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
}

.badge svg {
  width: 1.25rem;
  height: 1.25rem;
  filter: drop-shadow(0 0 3.5px #fff);
}

.typewriter {
  min-height: 1.5rem;
  margin: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.typewriter::after {
  content: "|";
  animation: cursor 1.1s infinite step-start;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.5rem;
  color: #fff;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.social-item:hover,
.social-item:focus-visible {
  filter: brightness(0.58);
  border-color: #fff;
  outline: none;
}

.social-item:active {
  transform: translateY(1px);
}

.social-item svg {
  width: 1.75rem;
  height: 1.75rem;
  filter: drop-shadow(0 0 3.5px #fff);
}

.tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.45rem);
  z-index: 10;
  padding: 0.25rem 0.45rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  transform: translate(-50%, -0.35rem) scale(0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.badge .tooltip {
  top: calc(100% + 0.35rem);
}

.social-item:hover .tooltip,
.social-item:focus-visible .tooltip,
.badge:hover .tooltip,
.badge:focus-visible .tooltip,
.social-item.copied .tooltip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.site-tab {
  width: min(100%, 34rem);
  margin: 0.9rem auto 0;
}

.site-tab-label {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 0.4rem 0.4rem 0 0;
}

.site-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0 0.4rem 0.4rem 0.4rem;
  background: rgba(0, 0, 0, 0.16);
}

.site-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0.4rem;
  transition: border-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.site-link:hover,
.site-link:focus-visible {
  border-color: #fff;
  filter: brightness(1.18);
  outline: none;
}

.site-link:active {
  transform: translateY(1px);
}

.site-link svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
}

.site-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-panel,
.server-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.account-copy,
.server-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
}

.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.avatar-wrap img,
.server-copy img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.status-dot {
  position: absolute;
  right: -0.2rem;
  bottom: 0.15rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid #000;
  border-radius: 999px;
}

.idle {
  background: var(--idle);
}

.account-copy h2,
.server-copy h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-copy p,
.server-copy p {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.tiny-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
}

.online {
  background: var(--success);
}

.muted {
  background: var(--muted);
}

.action-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.45rem;
  padding: 0.35rem 0.45rem 0.35rem 0.75rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  transition: filter 180ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  filter: brightness(1.25);
  outline: none;
}

.action-button svg {
  width: 1.75rem;
  height: 1.75rem;
  transition: transform 180ms ease;
}

.action-button:hover svg,
.action-button:focus-visible svg {
  transform: translateX(0.18rem);
}

.about-shell {
  align-items: flex-start;
}

.about-stack {
  max-width: 46rem;
}

.about-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.about-avatar {
  position: relative;
  flex: 0 0 auto;
}

.about-avatar img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.about-hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.15rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-hero h1 {
  margin: 0;
  color: transparent;
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  background:
    linear-gradient(90deg, #fff, #8f92ff, #fff, #73ffd8, #fff),
    #fff;
  background-size: 280% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shimmer 4s linear infinite;
}

.about-section {
  padding: 1rem;
}

.about-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

.about-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.75;
  word-break: keep-all;
}

.info-list {
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.info-list div:first-child {
  border-top: 0;
  padding-top: 0.1rem;
}

.info-list div:last-child {
  padding-bottom: 0.1rem;
}

.info-list dt,
.info-list dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.info-list dt {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 700;
}

.info-list dd {
  color: #fff;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.skill-list {
  display: grid;
  gap: 0.85rem;
}

.skill-meter {
  --level: 0%;
}

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.skill-row span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

.skill-track {
  height: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.skill-track span {
  display: block;
  width: var(--level);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff, var(--accent), #73ffd8);
  box-shadow: 0 0 1rem rgba(143, 146, 255, 0.48);
}

.focus-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  position: relative;
  padding-left: 1rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: keep-all;
}

.focus-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0.7rem rgba(143, 146, 255, 0.9);
}

.about-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem;
}

.error-shell {
  align-items: center;
}

.error-stack {
  max-width: 38rem;
}

.error-panel {
  padding: 1.25rem;
  text-align: center;
}

.error-code {
  margin: 0;
  color: transparent;
  font-size: clamp(3rem, 13vw, 5.6rem);
  line-height: 0.95;
  font-weight: 700;
  background:
    linear-gradient(90deg, #fff, #8f92ff, #fff, #73ffd8, #fff),
    #fff;
  background-size: 280% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shimmer 4s linear infinite;
}

.error-panel h1 {
  margin: 0.65rem 0 0;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.1;
  font-weight: 700;
}

.error-panel p:not(.error-code) {
  margin: 0.5rem auto 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-media-panel {
  padding: 0.55rem;
  overflow: hidden;
}

.footer-media-panel img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.28rem;
}

.site-footer {
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.55;
}

.timeline {
  display: grid;
  grid-template-columns: 3.1rem 1fr 3.1rem;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.timeline span {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.timeline input {
  width: 100%;
  height: 1.25rem;
  margin: 0;
  accent-color: #fff;
  cursor: pointer;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.55rem;
}

.player-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.player-controls button:hover,
.player-controls button:focus-visible {
  opacity: 0.82;
  outline: none;
}

.player-controls button:active {
  transform: scale(0.96);
}

.player-controls svg {
  width: 2rem;
  height: 2rem;
}

.play-button {
  width: 2.75rem;
  height: 2.75rem;
}

.play-button svg {
  width: 2.35rem;
  height: 2.35rem;
}

.pause-icon,
.is-playing .play-icon {
  display: none;
}

.is-playing .pause-icon {
  display: block;
}

@keyframes shimmer {
  to {
    background-position: 280% 0;
  }
}

@keyframes cursor {
  50% {
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .profile-stack {
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .page-shell {
    align-items: flex-start;
    padding-block: 2rem;
  }

  .account-panel,
  .server-panel,
  .about-hero,
  .about-actions,
  .error-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .action-button {
    width: 100%;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .site-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .view-count {
    position: static;
    margin-bottom: 0.55rem;
  }

  .identity {
    min-height: auto;
  }

  .name-row h1 {
    font-size: 1.85rem;
  }

  .social-list {
    gap: 0.55rem;
  }

  .social-item {
    width: 2.65rem;
    height: 2.65rem;
  }

  .timeline {
    grid-template-columns: 2.8rem 1fr 2.8rem;
    gap: 0.4rem;
  }

  .timeline span {
    font-size: 0.78rem;
  }
}
