:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #9aa0ab;
  --panel: #050505;
  --panel-border: #2a2a2a;
  --chip: #151a23;
  --link: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body {
  min-height: 100vh;
}

.site {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #000000;
  animation: none;
}

.ambient-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: none;
  opacity: 0;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  z-index: -1;
  opacity: 0;
  background-image: radial-gradient(#fff 0.55px, transparent 0.55px);
  background-size: 3px 3px;
  animation: grainShift 0.28s steps(2) infinite;
}

.intro-screen,
.bio {
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

.intro-screen {
  display: grid;
  place-items: center;
}

.intro-screen {
  background: radial-gradient(circle at center, rgba(17, 17, 20, 0.8) 0%, rgba(5, 5, 6, 0.95) 62%);
  transition: opacity 500ms ease, visibility 500ms ease;
}

.intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.enter-btn {
  border: 0;
  background: transparent;
  color: #babcc2;
  letter-spacing: 0.22em;
  font-size: clamp(0.65rem, 1.1vw, 0.9rem);
  cursor: pointer;
  font-family: inherit;
  opacity: 0.65;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.16);
  transition: opacity 220ms ease, transform 220ms ease, text-shadow 220ms ease;
}

.enter-btn:hover,
.enter-btn:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.bio.visible {
  opacity: 1;
  transform: translateY(0);
}

.bio.hidden {
  display: none;
}

.profile-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(228, 236, 255, 0.24);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
}

.presence-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 3px solid #0b0b10;
}

.presence-dot.online {
  background: #43b581;
}

.presence-dot.idle {
  background: #faa61a;
}

.presence-dot.dnd {
  background: #ed4245;
}

.presence-dot.offline {
  background: #747f8d;
}

h1 {
  margin: 0.65rem 0 0;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(1.25rem, 3.2vw, 1.8rem);
}

.tagline {
  margin: 0;
  color: #c7d1e6;
  font-size: 0.96rem;
}

.status-line {
  margin: 0.2rem 0 0;
}

.status-chip {
  border: 1px solid rgba(98, 214, 159, 0.4);
  border-radius: 999px;
  padding: 0.24rem 0.64rem;
  font-size: 0.78rem;
  color: #c7f4df;
  background: rgba(67, 181, 129, 0.12);
}

.console-card {
  width: min(760px, 94vw);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 26px 70px rgba(0, 0, 0, 0.85);
}

.console-topbar {
  height: 36px;
  border-bottom: 1px solid #252525;
  background: #0b0b0b;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.9rem;
}

.topbar-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.console-topbar p {
  margin: 0;
  color: #bcc6dd;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.console-body {
  padding: 0.95rem 1.05rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #e1e6f2;
}

.console-body p {
  margin: 0;
}

.line-number {
  display: inline-block;
  width: 2.2ch;
  color: #4f5768;
  user-select: none;
}

.key {
  color: #ffffff;
}

.console-body a {
  color: var(--link);
  text-decoration: none;
}

.console-body a:hover {
  color: #e4ecff;
}

.muted-value {
  color: #c2c9da;
}

.spacer {
  opacity: 0.45;
}

.console-footer {
  border-top: 1px solid var(--panel-border);
  padding: 0.7rem 1.05rem;
  background: rgba(255, 255, 255, 0.015);
}

.console-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.96), rgba(8, 8, 8, 0.96));
  border: 1px solid #2f2f2f;
  border-radius: 999px;
  padding: 0.48rem 0.78rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.audio-controls label {
  color: #d6d8de;
  letter-spacing: 0.02em;
}

#volumeControl {
  width: 136px;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2f2f2 0%, #cecece 100%);
  outline: none;
}

#volumeControl::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #1f1f1f;
  background: radial-gradient(circle at 35% 35%, #ffffff, #b9b9b9 72%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.65), 0 0 12px rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

#volumeControl::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2f2f2 0%, #cecece 100%);
}

#volumeControl::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #1f1f1f;
  background: radial-gradient(circle at 35% 35%, #ffffff, #b9b9b9 72%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.65), 0 0 12px rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

#volumeValue {
  color: #f1f2f5;
  min-width: 3.2ch;
  font-weight: 600;
}

.audio-controls-floating {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10;
}

.audio-hidden {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(141, 238, 141, 0.48);
  }
  80% {
    box-shadow: 0 0 0 8px rgba(141, 238, 141, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(141, 238, 141, 0);
  }
}

@keyframes grainShift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(8%, -8%);
  }
}

@keyframes drift {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1.04) rotate(0.8deg);
  }
}

@media (max-width: 640px) {
  .audio-controls-floating {
    top: 10px;
    right: 10px;
    transform: scale(0.95);
    transform-origin: top right;
  }

  .console-body {
    font-size: 0.88rem;
    line-height: 1.72;
    padding: 0.85rem 0.85rem;
  }

  .console-footer {
    padding: 0.6rem 0.85rem;
  }
}
