:root {
  --background: #10191b;
  --foreground: #fff6ed;
  --muted: #b8d1d0;
  --accent: #ffd1bc;
  --accent-strong: #9fd8d7;
  --accent-soft: rgba(255, 209, 188, 0.2);
  --panel: rgba(16, 25, 27, 0.58);
  --line: rgba(255, 246, 237, 0.24);
  --shadow: rgba(13, 22, 24, 0.46);
  --ink: #0b0e10;
  --sand: #e9bba7;
  --cursor-file: auto;
  --audio-energy: 0;
  --audio-glow: 18px;
  --audio-opacity: 0.2;
  --audio-scale: 1;
}

* {
  box-sizing: border-box;
}

*::selection {
  color: var(--ink);
  background: var(--accent);
}

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

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--foreground);
  background: var(--background);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  line-height: 1.5;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
}

button,
a,
.enter-gate {
  cursor: pointer;
}

a {
  text-decoration: none;
}

body.custom-cursor,
body.custom-cursor * {
  cursor: var(--cursor-file);
}

body.cursor-ready,
body.cursor-ready * {
  cursor: none;
}

.background-video,
.shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background-video {
  z-index: 0;
  object-fit: cover;
  opacity: 1;
}

.background-video.media-missing {
  opacity: 0;
}

.shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 14, 16, 0.54), transparent 22%, transparent 78%, rgba(9, 14, 16, 0.54)),
    linear-gradient(180deg, rgba(9, 14, 16, 0.32), transparent 38%, rgba(9, 14, 16, 0.5));
}

.site-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  min-height: 100svh;
  padding: clamp(1.25rem, 4vw, 3rem) 1rem;
  place-items: end center;
}

.profile-box {
  position: relative;
  display: flex;
  width: min(100%, 45rem);
  min-height: auto;
  margin: 0 auto;
  padding: 0;
  flex-direction: column;
  justify-content: flex-end;
  background: transparent;
}

.video-progress {
  width: min(100%, 45rem);
  margin-top: 0.75rem;
  padding: 0.58rem 0.7rem 0.48rem;
  border: 1px solid rgba(255, 246, 237, 0.16);
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 246, 237, 0.1), rgba(159, 216, 215, 0.08)),
    rgba(16, 25, 27, 0.44);
  box-shadow: 0 14px 34px rgba(10, 14, 16, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(0.9rem);
}

.audio-visualizer {
  display: grid;
  height: 2.1rem;
  margin-bottom: 0.62rem;
  align-items: end;
  gap: 0.22rem;
  grid-template-columns: repeat(24, minmax(0, 1fr));
}

.visualizer-bar {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 2px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 246, 237, 0.98), rgba(255, 209, 188, 0.9) 42%, rgba(159, 216, 215, 0.82)),
    var(--accent);
  box-shadow: 0 0 14px rgba(159, 216, 215, 0.22);
  opacity: 0.46;
  transform: scaleY(var(--bar-level));
  transform-origin: bottom center;
  transition: transform 80ms linear, opacity 160ms ease;
  animation: visualizerIdle 1.25s ease-in-out infinite;
  animation-delay: var(--bar-delay);
}

body.visualizer-live .visualizer-bar {
  animation: none;
  opacity: 0.76;
}

body.visualizer-fallback.visualizer-live .visualizer-bar {
  animation: visualizerIdle 1.25s ease-in-out infinite;
  animation-delay: var(--bar-delay);
}

.progress-track {
  position: relative;
  height: 0.38rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 246, 237, 0.16);
}

.progress-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 209, 188, 0.95), rgba(159, 216, 215, 0.95)),
    var(--accent);
  box-shadow: 0 0 22px rgba(255, 209, 188, 0.28);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms linear;
}

.progress-fill::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  content: "";
  transform: translateX(-100%);
  animation: progressSheen 2.8s ease-in-out infinite;
}

.progress-time {
  display: flex;
  justify-content: space-between;
  margin-top: 0.34rem;
  color: rgba(255, 246, 237, 0.68);
  font-size: 0.72rem;
  line-height: 1;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.social-links:empty {
  display: none;
}

.social-item {
  position: relative;
  width: 2.9rem;
  height: 2.9rem;
  opacity: 0;
  transform: translateY(0.75rem) scale(0.92);
}

.social-link {
  position: relative;
  display: flex;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 246, 237, 0.16);
  color: var(--accent-strong);
  background:
    linear-gradient(135deg, rgba(255, 246, 237, 0.16), rgba(159, 216, 215, 0.1)),
    rgba(16, 25, 27, 0.42);
  box-shadow: 0 10px 26px rgba(10, 14, 16, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(255, 209, 188, 0.46);
  color: var(--brand-hover, var(--accent));
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(10, 14, 16, 0.38), 0 0 24px rgba(255, 209, 188, 0.16);
}

.social-link[data-icon="discord"] {
  color: #aeb7ff;
  --brand-hover: #cdd3ff;
}

.social-link[data-icon="spotify"] {
  color: #8ee6a6;
  --brand-hover: #baf4c8;
}

.social-link[data-icon="steam"] {
  color: #b8c7d9;
  --brand-hover: #d8e7f7;
}

.social-link svg {
  display: block;
  width: 1.52rem;
  height: 1.52rem;
  flex: 0 0 1.52rem;
  filter: drop-shadow(0 0 10px rgba(159, 216, 215, 0.46));
}

.link-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.65rem);
  z-index: 4;
  min-width: max-content;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 246, 237, 0.2);
  border-radius: 999px;
  color: var(--foreground);
  background:
    linear-gradient(135deg, rgba(255, 246, 237, 0.22), rgba(159, 216, 215, 0.14)),
    rgba(16, 25, 27, 0.56);
  box-shadow: 0 14px 34px rgba(10, 14, 16, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(1.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(-50%) translateY(0.35rem) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  visibility: hidden;
}

.link-tooltip::after {
  position: absolute;
  left: 50%;
  bottom: -0.32rem;
  width: 0.58rem;
  height: 0.58rem;
  border-right: 1px solid rgba(255, 246, 237, 0.18);
  border-bottom: 1px solid rgba(255, 246, 237, 0.18);
  background: rgba(48, 61, 62, 0.72);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.social-item:hover .link-tooltip,
.social-link:hover + .link-tooltip,
.social-link:focus-visible + .link-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  visibility: visible;
}

.profile-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 246, 237, 0.2);
  border-radius: 8px;
  color: var(--foreground);
  background:
    linear-gradient(135deg, rgba(255, 209, 188, 0.2), rgba(159, 216, 215, 0.13) 44%, rgba(10, 14, 16, 0.7)),
    var(--panel);
  box-shadow: 0 18px 60px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translateY(1rem) scale(0.985);
}

.profile-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(circle at 14% 18%, rgba(159, 216, 215, 0.28), transparent 30%),
    radial-gradient(circle at 86% 86%, rgba(255, 209, 188, 0.28), transparent 34%);
  content: "";
  opacity: 0.68;
  pointer-events: none;
}

.profile-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
}

.discord-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}

.discord-avatar-wrap {
  position: relative;
  flex: 0 0 5.2rem;
  width: 5.2rem;
  height: 5.2rem;
}

.avatar-button {
  position: relative;
  display: block;
  flex-shrink: 0;
  transition: filter 180ms ease, transform 180ms ease;
}

.avatar-button::before {
  position: absolute;
  inset: -0.48rem;
  z-index: 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 246, 237, 0.44), transparent 34%),
    radial-gradient(circle at 50% 64%, rgba(255, 209, 188, 0.54), transparent 58%),
    radial-gradient(circle at 78% 74%, rgba(159, 216, 215, 0.54), transparent 52%);
  box-shadow:
    0 0 var(--audio-glow) rgba(255, 209, 188, 0.28),
    0 0 34px rgba(159, 216, 215, 0.2);
  content: "";
  opacity: var(--audio-opacity);
  pointer-events: none;
  transform: scale(var(--audio-scale));
  transition: opacity 120ms linear, transform 120ms linear, box-shadow 120ms linear;
}

.avatar-button > * {
  position: relative;
  z-index: 1;
}

body.entered .avatar-button::before {
  animation: avatarGlow 1.7s ease-in-out infinite;
}

.avatar-button:hover,
.avatar-button:focus-visible {
  outline: 0;
  filter: brightness(1.08);
  transform: translateY(-1px) scale(1.02);
}

.discord-avatar,
.discord-avatar-fallback {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 8px;
}

.discord-avatar {
  display: block;
  border: 1px solid rgba(255, 246, 237, 0.24);
  object-fit: cover;
  box-shadow: 0 10px 32px rgba(11, 14, 16, 0.42);
}

.discord-avatar.media-missing {
  display: none;
}

.discord-avatar-fallback {
  display: none;
  border: 1px solid rgba(255, 246, 237, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 209, 188, 0.2), rgba(159, 216, 215, 0.16)),
    #10191b;
}

.discord-avatar-fallback.is-visible {
  display: block;
}

.presence-dot {
  position: absolute;
  right: -0.2rem;
  bottom: -0.2rem;
  width: 1rem;
  height: 1rem;
  border: 3px solid rgba(16, 25, 27, 0.94);
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 16px rgba(159, 216, 215, 0.72);
}

.discord-copy {
  min-width: 0;
}

.discord-copy h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  overflow-wrap: anywhere;
  color: transparent;
  background:
    linear-gradient(90deg, var(--foreground), var(--accent), var(--accent-strong), var(--foreground));
  background-size: 260% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(10, 14, 16, 0.72);
  animation: nameShimmer 4.8s ease-in-out infinite;
}

.discord-copy h1::after {
  position: absolute;
  inset: 0;
  color: rgba(159, 216, 215, 0.42);
  content: attr(data-text);
  opacity: calc(0.22 + var(--audio-energy));
  pointer-events: none;
  text-shadow: 0 0 18px rgba(159, 216, 215, 0.42);
  transform: translate(0.04rem, 0.03rem);
  mix-blend-mode: screen;
}

.discord-copy p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.discord-copy p.is-changing {
  opacity: 0;
  transform: translateY(0.22rem);
}

.profile-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.discord-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  height: 2.75rem;
  gap: 0.5rem;
  padding: 0 0.45rem 0 0.85rem;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: 0.875rem;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(255, 209, 188, 0.22);
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.discord-cta:hover,
.discord-cta:focus-visible {
  outline: 0;
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(159, 216, 215, 0.28);
}

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

.discord-cta:hover svg,
.discord-cta:focus-visible svg {
  transform: translateX(0.2rem);
}

.sound-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: grid;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  place-items: center;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(255, 209, 188, 0.42));
  transition: color 160ms ease, filter 160ms ease;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  color: var(--foreground);
  outline: 0;
}

.sound-toggle svg {
  width: 1.7rem;
  height: 1.7rem;
}

.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  color: var(--foreground);
  background: #10191b;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.enter-gate h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  text-align: center;
  animation: gatePulse 1.6s ease-in-out infinite;
}

body.entered .enter-gate {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.entered .social-item {
  animation: enterLift 520ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  animation-delay: var(--enter-delay);
}

body.entered .profile-card {
  animation: enterLift 620ms cubic-bezier(0.2, 0.9, 0.2, 1) 310ms forwards;
}

body.entered .video-progress {
  animation: enterLift 620ms cubic-bezier(0.2, 0.9, 0.2, 1) 470ms forwards;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  padding: 1.25rem;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 209, 188, 0.16), transparent 32rem),
    rgba(8, 12, 13, 0.74);
  backdrop-filter: blur(20px) saturate(1.08);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.image-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-image {
  display: block;
  width: min(78vmin, 34rem);
  max-height: 82vh;
  border: 1px solid rgba(255, 246, 237, 0.22);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.52), 0 0 44px rgba(255, 209, 188, 0.18);
  transform: translateY(0.5rem) scale(0.96);
  transition: transform 220ms ease;
}

.image-modal.is-open .modal-image {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 41;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 246, 237, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 246, 237, 0.18), rgba(159, 216, 215, 0.1)),
    rgba(16, 25, 27, 0.58);
  box-shadow: 0 14px 34px rgba(10, 14, 16, 0.36);
  backdrop-filter: blur(16px);
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--foreground);
  content: "";
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover,
.modal-close:focus-visible {
  outline: 0;
  border-color: rgba(255, 209, 188, 0.46);
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.cursor-ring,
.cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid rgba(255, 209, 188, 0.78);
  box-shadow: 0 0 18px rgba(159, 216, 215, 0.26), inset 0 0 10px rgba(255, 246, 237, 0.12);
  transition: width 160ms ease, height 160ms ease, border-color 160ms ease;
}

.cursor-dot {
  width: 0.34rem;
  height: 0.34rem;
  background: var(--accent-strong);
  box-shadow: 0 0 12px rgba(159, 216, 215, 0.72);
}

body.cursor-ready .custom-cursor {
  opacity: 1;
}

.custom-cursor.is-interactive .cursor-ring {
  width: 2.25rem;
  height: 2.25rem;
  border-color: rgba(159, 216, 215, 0.86);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 30;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: var(--foreground);
  background: rgba(0, 0, 0, 0.82);
  font-size: 0.875rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.35rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes gatePulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(-0.2rem);
  }

  50% {
    opacity: 1;
    transform: translateY(0.2rem);
  }
}

@keyframes progressSheen {
  0%,
  45% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes visualizerIdle {
  0%,
  100% {
    transform: scaleY(0.18);
  }

  50% {
    transform: scaleY(0.72);
  }
}

@keyframes avatarGlow {
  0%,
  100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.24) brightness(1.08);
  }
}

@keyframes nameShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes enterLift {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.965);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 1rem 0.75rem 1.25rem;
    place-items: end center;
  }

  .profile-box {
    padding: 0;
  }

  .social-links {
    gap: 0.6rem;
    min-height: 2.65rem;
    margin-bottom: 0.65rem;
  }

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

  .social-link svg {
    width: 1.42rem;
    height: 1.42rem;
    flex-basis: 1.42rem;
  }

  .profile-card-top {
    padding: 0.8rem;
  }

  .discord-avatar-wrap,
  .discord-avatar,
  .discord-avatar-fallback {
    width: 4.5rem;
    height: 4.5rem;
    flex-basis: 4.5rem;
  }

  .discord-identity {
    gap: 0.8rem;
  }

  .discord-copy h1 {
    font-size: 1.35rem;
  }

  .discord-copy p {
    display: -webkit-box;
    max-width: 18.5rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
  }

  .video-progress {
    margin-top: 0.65rem;
    padding: 0.5rem 0.58rem 0.42rem;
  }

  .audio-visualizer {
    height: 1.55rem;
    margin-bottom: 0.48rem;
    gap: 0.16rem;
  }

  .link-tooltip {
    bottom: calc(100% + 0.55rem);
  }

  body.cursor-ready,
  body.cursor-ready * {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }
}

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

  .progress-fill::after,
  .custom-cursor,
  .visualizer-bar,
  .avatar-button::before {
    display: none;
  }

  .discord-copy h1 {
    animation: none;
  }

  .social-item,
  .profile-card,
  .video-progress {
    opacity: 1;
    transform: none;
  }
}
