@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;1,700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --red: #e1141c;
  --red-bright: #ff2632;
  --text: #f2f2f3;
  --muted: #99999f;
  --font-display: "Barlow Condensed", Impact, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  padding: 58px 20px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--text);
  background: #060607;
  font-family: var(--font-body);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

body::before {
  inset: -25%;
  z-index: -2;
  background:
    radial-gradient(circle at 24% 28%, rgba(222, 12, 25, 0.2), transparent 24%),
    radial-gradient(circle at 77% 72%, rgba(142, 5, 15, 0.17), transparent 27%),
    radial-gradient(circle at 52% 48%, rgba(75, 3, 9, 0.16), transparent 33%);
  filter: blur(24px);
  animation: ambient-drift 16s ease-in-out infinite alternate;
}

body::after {
  inset: -64px;
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
  animation: grid-drift 22s linear infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.youtube-player {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 200px;
  height: 200px;
  opacity: 0;
  pointer-events: none;
}

.page-stack {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  display: grid;
  gap: 12px;
}

.link-hub {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 44px 42px 30px;
  text-align: center;
  border: 0;
  background: var(--red-bright);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  filter: drop-shadow(0 0 6px rgba(255, 38, 50, 0.42));
  border-radius: 10px;
  animation: arrive 0.65s ease-out both;
}

.link-hub::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: linear-gradient(145deg, #151517, #080809);
  border-radius: 9px;
}

.link-hub::after {
  content: none;
}

.logo-frame {
  width: 78px;
  height: 78px;
  margin: 0 auto 19px;
  padding: 4px;
  border: 1px solid rgba(255, 52, 63, 0.65);
  background: #090909;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(225, 20, 28, 0.32);
}

.logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #bababe;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 2px;
  background: var(--red-bright);
  box-shadow: 0 0 9px var(--red);
}

p {
  margin-top: 0;
}

.wordmark {
  display: block;
  width: calc(100% + 18px);
  max-width: 480px;
  height: auto;
  margin: -39px auto -32px;
  filter: drop-shadow(0 7px 10px rgba(225, 20, 28, 0.24));
}

.intro {
  max-width: 390px;
  margin: 14px auto 27px;
  color: #b7b7bc;
  font-size: 14px;
  line-height: 1.65;
}

.intro-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #dedee1;
  font-weight: 600;
}

.intro-subtitle {
  display: block;
  margin-top: 3px;
}

.service-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  color: var(--red-bright);
  border: 1px solid rgba(255, 38, 50, 0.38);
  border-radius: 6px;
  background: rgba(225, 20, 28, 0.07);
  box-shadow: 0 0 12px rgba(225, 20, 28, 0.15);
}

.service-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.quick-links {
  display: grid;
  gap: 10px;
  text-align: left;
}

.quick-link {
  min-height: 64px;
  padding: 11px 17px 11px 12px;
  display: grid;
  grid-template-columns: 43px 1fr auto;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.quick-link:hover,
.quick-link:focus-visible {
  transform: translateX(4px);
  background: rgba(225, 20, 28, 0.11);
  border-color: rgba(255, 41, 53, 0.55);
  outline: none;
}

.link-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--red-bright), #9d080f);
  box-shadow: 0 7px 18px rgba(174, 0, 10, 0.27);
}

.discord .link-icon {
  background: linear-gradient(145deg, #6c78e9, #4048a2);
}

.link-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.project-divider {
  margin: 5px 0 1px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #a9a9ae;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-divider > span {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 38, 50, 0.2);
}

.project-divider > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  filter: drop-shadow(0 0 5px var(--red));
  transform: translateX(-110%);
  animation: divider-scan 2.2s ease-in-out infinite;
}

.project-divider > span:last-child::after {
  animation-delay: 0.25s;
}

.project-icon {
  padding: 0;
  overflow: hidden;
  background: #100405;
}

.project-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vscripts .project-icon {
  background: #100d12;
}

.quick-link strong,
.quick-link small {
  display: block;
}

.quick-link strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.quick-link small {
  color: var(--muted);
  font-size: 11px;
}

.arrow {
  color: #e1e1e3;
  font-size: 19px;
}

.music-panel {
  width: 100%;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 38, 50, 0.4);
  border-radius: 10px;
  background: rgba(9, 9, 10, 0.88);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45), 0 0 18px rgba(225, 20, 28, 0.1);
  backdrop-filter: blur(12px);
}

.music-toggle {
  min-height: 40px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 38, 50, 0.35);
  border-radius: 9px;
  color: #b9b9be;
  background: rgba(10, 10, 11, 0.86);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(225, 20, 28, 0.08);
  font: 600 10px var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.music-toggle:disabled {
  opacity: 0.55;
  cursor: wait;
}

.music-toggle:hover,
.music-toggle:focus-visible,
.music-toggle.is-playing {
  color: #f2f2f3;
  border-color: rgba(255, 38, 50, 0.72);
  background: rgba(37, 8, 11, 0.9);
  outline: none;
}

.music-bars {
  height: 15px;
  display: flex;
  align-items: end;
  gap: 2px;
}

.music-bars i {
  width: 2px;
  height: 5px;
  display: block;
  border-radius: 2px;
  background: var(--red-bright);
  box-shadow: 0 0 5px var(--red);
}

.music-toggle.is-playing .music-bars i {
  animation: music-level 0.75s ease-in-out infinite alternate;
}

.music-toggle.is-playing .music-bars i:nth-child(2) {
  animation-delay: -0.25s;
}

.music-toggle.is-playing .music-bars i:nth-child(3) {
  animation-delay: -0.5s;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #85858b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.volume-control input {
  width: 110px;
  height: 3px;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-bright) 0 32%, #343438 32% 100%);
  cursor: pointer;
}

.volume-control input:disabled {
  opacity: 0.5;
  cursor: wait;
}

.volume-control input::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  appearance: none;
  border: 2px solid #ff737b;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 9px rgba(255, 38, 50, 0.75);
}

.volume-control input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #ff737b;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 9px rgba(255, 38, 50, 0.75);
}

.volume-control output {
  min-width: 31px;
  color: #c9c9cc;
  text-align: right;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes divider-scan {
  0%, 18% { transform: translateX(-110%); opacity: 0; }
  42%, 58% { opacity: 1; }
  82%, 100% { transform: translateX(110%); opacity: 0; }
}

@keyframes ambient-drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.04); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.01); }
}

@keyframes grid-drift {
  to { transform: translate3d(64px, 64px, 0); }
}

@keyframes music-level {
  from { height: 4px; opacity: 0.65; }
  to { height: 15px; opacity: 1; }
}

@media (max-width: 600px) {
  body {
    padding: 56px 15px 32px;
  }

  .link-hub {
    padding: 38px 19px 26px;
  }

  .logo-frame {
    width: 72px;
    height: 72px;
  }

  .wordmark {
    width: calc(100% + 12px);
    margin-top: -30px;
    margin-bottom: -25px;
  }

  .intro {
    font-size: 13px;
  }

  .quick-link {
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    padding-right: 12px;
  }

  .link-icon {
    width: 40px;
    height: 40px;
  }

  .music-panel {
    padding: 10px;
  }
}

@media (max-width: 450px) {
  .music-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .music-toggle,
  .volume-control {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
