:root {
  --bg: #07070b;
  --panel: #111214;
  --card: #1e1f22;
  --text: #f2f3f5;
  --muted: #b5bac1;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #5eead4;
  --accent-soft: rgba(94, 234, 212, 0.16);
  --accent-warm: #e8c07a;
  --mx: 50%;
  --my: 35%;
  --glow-a: 168;
  --glow-b: 198;
  --font-display: "Outfit", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font-display);
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(45, 78, 82, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(232, 192, 122, 0.06), transparent 50%),
    linear-gradient(180deg, #0a0c10 0%, #050507 48%, #030306 100%);
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  cursor: none;
}

/* Start/gate view: no page scrollbar — content must fit the viewport */
html.gated-root,
body.gated {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }
}

body.protected img {
  -webkit-user-drag: none;
  user-drag: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      180px 180px at var(--mx) var(--my),
      hsla(var(--glow-a), 85%, 62%, 0.14),
      transparent 70%
    ),
    radial-gradient(
      120px 120px at calc(var(--mx) + 3%) calc(var(--my) - 2%),
      hsla(var(--glow-b), 80%, 58%, 0.08),
      transparent 72%
    ),
    linear-gradient(180deg, #0b0b12 0%, #050507 55%, #030306 100%);
}

.cursor-dot {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(0.6);
  transition: opacity 0.2s ease, transform 0.05s linear;
  will-change: transform;
}

.cursor-dot.is-active {
  opacity: 1;
  transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0) scale(1);
}

.cursor-trails {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 79;
  overflow: hidden;
}

.cursor-trail {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: hsla(var(--trail-h, 210), 90%, 70%, var(--trail-a, 0.55));
  box-shadow: 0 0 10px hsla(var(--trail-h, 210), 90%, 65%, 0.35);
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(var(--ts, 1));
  opacity: var(--trail-a, 0.55);
  will-change: transform, opacity;
}

.shield {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.topbar,
.stage {
  position: relative;
  z-index: 2;
}

.site-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.gated) .site-shell {
  opacity: 1;
  transform: translateY(0);
}

body.gated .site-shell {
  visibility: hidden;
  pointer-events: none;
}

.stage-atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 20%, rgba(94, 234, 212, 0.08), transparent 62%),
    radial-gradient(ellipse 45% 35% at 15% 85%, rgba(232, 192, 122, 0.05), transparent 55%);
  animation: atmosphereDrift 18s ease-in-out infinite alternate;
}

@keyframes atmosphereDrift {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) 1.25rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(94, 234, 212, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.94) 0%, rgba(5, 5, 7, 0.97) 100%);
}

body:not(.gated) .enter-gate {
  display: none;
}

.enter-gate-inner {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  text-align: center;
  width: min(100%, 380px);
  max-height: calc(100dvh - 1.5rem);
  padding: 0.25rem 0;
  overflow: hidden;
  animation: rise 0.55s ease both;
}

.profile-slot {
  width: 100%;
  display: flex;
  justify-content: center;
}

.profile-slot--gate .profile-card-shell {
  width: min(100%, 340px);
}

.profile-slot--gate .discord-card {
  width: 100%;
  text-align: left;
}

.profile-slot--main:empty {
  display: none;
}

.enter-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #f2f3f5 0%,
    #f2f3f5 38%,
    #93c5fd 48%,
    #3b82f6 50%,
    #93c5fd 52%,
    #f2f3f5 62%,
    #f2f3f5 100%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShine 3.2s linear infinite;
}

@keyframes brandShine {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

/* Start: always-on rainbow glow (Blau / Rot / Lila / Türkis) */
.enter-btn.glow-on-hover {
  appearance: none;
  position: relative;
  z-index: 0;
  border: none;
  outline: none;
  background: #17181c;
  color: #fff;
  border-radius: 0.85rem;
  padding: 0.95rem 2.6rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  min-width: 10rem;
  min-height: 3.1rem;
  touch-action: manipulation;
  overflow: visible;
}

.enter-btn.glow-on-hover .enter-btn-label {
  position: relative;
  z-index: 1;
}

.enter-btn.glow-on-hover::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  z-index: -1;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: inherit;
  background: linear-gradient(
    45deg,
    #2563eb,
    #3b82f6,
    #ef4444,
    #a855f7,
    #8b5cf6,
    #14b8a6,
    #22d3ee,
    #2563eb,
    #ef4444,
    #a855f7,
    #14b8a6,
    #2563eb
  );
  background-size: 400%;
  filter: blur(5px);
  animation: glowing 20s linear infinite;
  opacity: 1;
}

.enter-btn.glow-on-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #2a2d36, #17181c);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.enter-btn.glow-on-hover:hover,
.enter-btn.glow-on-hover:focus-visible {
  outline: none;
}

.enter-btn.glow-on-hover:hover::after,
.enter-btn.glow-on-hover:focus-visible::after {
  background: linear-gradient(180deg, #343843, #1c1e24);
}

.enter-btn.glow-on-hover:active {
  transform: scale(0.98);
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.topbar {
  position: relative;
  z-index: 3;
  padding: 1.15rem 1.25rem 0.35rem;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.site-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #f2f3f5 0%,
    #f2f3f5 38%,
    #93c5fd 48%,
    #3b82f6 50%,
    #93c5fd 52%,
    #f2f3f5 62%,
    #f2f3f5 100%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    brandIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
    brandShine 3.2s linear 0.7s infinite;
}

@keyframes brandIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 920px;
  margin: 0 auto;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  animation: rise 0.55s ease both;
}

.link-btn .beta-pill {
  display: inline-block;
  margin: 0;
  padding: 0.08rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0b232;
  background: rgba(240, 178, 50, 0.12);
  border: 1px solid rgba(240, 178, 50, 0.35);
  line-height: 1.2;
}

.link-btn .admin-pill {
  display: inline-block;
  margin: 0;
  padding: 0.08rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ff6b6b;
  background: rgba(220, 60, 60, 0.14);
  border: 1px solid rgba(220, 60, 60, 0.45);
  line-height: 1.2;
}

.link-btn--beta {
  border-color: rgba(240, 178, 50, 0.35);
}

.link-btn--admin {
  color: #ff7a7a;
  border-color: rgba(220, 60, 60, 0.55);
  background: rgba(220, 60, 60, 0.1);
}

.link-btn:hover,
.link-btn:focus-visible {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.link-btn--admin:hover,
.link-btn--admin:focus-visible {
  color: #ff8f8f;
  border-color: rgba(255, 100, 100, 0.75);
  background: rgba(220, 60, 60, 0.18);
}

.stage {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0 2.5rem;
  display: grid;
  gap: 1.75rem;
  justify-items: stretch;
}

.media-panel {
  width: 100%;
  display: grid;
  animation: mediaReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.media-panel[hidden] {
  display: none;
}

@keyframes mediaReveal {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.video-frame {
  position: relative;
  width: 100%;
  min-height: min(72vh, 780px);
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, #12161c 0%, #050507 75%);
  border: 0;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
  image-rendering: auto;
}

.video-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.35) 0%, transparent 28%, transparent 58%, rgba(5, 5, 7, 0.78) 100%),
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 40%, rgba(5, 5, 7, 0.45) 100%);
}

.video-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.video-fallback[hidden] {
  display: none;
}

.transport {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 1.1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-radius: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 8, 10, 0.55) 35%, rgba(6, 8, 10, 0.88) 100%);
  border: 0;
  backdrop-filter: blur(8px);
  animation: transportUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes transportUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ctrl-btn {
  appearance: none;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ctrl-btn:hover,
.ctrl-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(94, 234, 212, 0.12);
  outline: none;
}

.now-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.now-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(181, 186, 193, 0.85);
}

.now-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 8.5rem;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 7.5rem;
  height: 0.3rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) var(--vol, 55%),
    rgba(255, 255, 255, 0.14) var(--vol, 55%)
  );
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.22);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 0.9rem;
  height: 0.9rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.profile-slot--main {
  justify-self: center;
  width: min(100%, 340px);
  padding: 0 1rem 1rem;
  animation: rise 0.65s ease 0.2s both;
}

.profile-card-shell {
  position: relative;
  width: min(100%, 340px);
  border-radius: 1.05rem;
  padding: 3px;
  overflow: hidden;
  isolation: isolate;
  animation: rise 0.7s ease 0.05s both;
}

/* CodePen-style rotating blue/red glow border around Discord card */
.profile-card-shell::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: 0;
  background: linear-gradient(180deg, #2563eb 0%, #60a5fa 35%, #ef4444 70%, #f87171 100%);
  animation: dcGlowSpin 3.2s linear infinite;
  filter: blur(10px);
  opacity: 0.9;
  pointer-events: none;
}

.dc-glow-spin {
  position: absolute;
  inset: -40%;
  z-index: 0;
  background: linear-gradient(180deg, #2563eb 0%, #3b82f6 40%, #ef4444 100%);
  animation: dcGlowSpin 3.2s linear infinite;
  pointer-events: none;
}

@keyframes dcGlowSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.discord-card {
  width: 100%;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.dc-effect-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
}

.dc-effect-layer[hidden] {
  display: none;
}

.dc-effect-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.dc-nameplate {
  position: relative;
  z-index: 1;
}

.dc-nameplate-img {
  display: block;
  width: 100%;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.35rem;
  border-radius: 0.35rem;
}

.dc-nameplate-img[hidden] {
  display: none;
}

.dc-display--neon {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35))
    drop-shadow(0 0 14px rgba(120, 160, 255, 0.45));
}


.dc-banner {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #5865f2;
}

.dc-avatar-wrap {
  padding: 0 1rem;
  margin-top: -46px;
  position: relative;
  z-index: 3;
}

.dc-avatar-stack {
  position: relative;
  width: 92px;
  height: 92px;
}

.dc-avatar {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 6px solid var(--card);
  background: #111;
  object-fit: cover;
  display: block;
}

.dc-decoration {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  pointer-events: none;
  object-fit: contain;
  z-index: 3;
}

.dc-status {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 5px solid var(--card);
  background: #80848e;
  z-index: 4;
}

.dc-status.status-online {
  background: #23a559;
}
.dc-status.status-idle {
  background: #f0b232;
}
.dc-status.status-dnd {
  background: #f23f43;
}
.dc-status.status-offline {
  background: #80848e;
}

.dc-body {
  padding: 0.75rem 1rem 1rem;
  display: grid;
  gap: 0.75rem;
  position: relative;
  z-index: 3;
}

.dc-display {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameflow 5s linear infinite;
}

@keyframes nameflow {
  to {
    background-position: 200% center;
  }
}

.dc-userline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.dc-username {
  color: var(--muted);
  font-size: 0.9rem;
}

.dc-clan {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.4rem;
  background: #2b2d31;
  color: #dbdee1;
  font-size: 0.78rem;
  font-weight: 600;
}

.dc-clan[hidden] {
  display: none;
}

.dc-clan-badge {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.dc-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.45rem;
  background: #2b2d31;
  color: #dbdee1;
  font-size: 0.78rem;
}

.dc-custom[hidden] {
  display: none;
}

.dc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.4rem;
  border-radius: 0.55rem;
  background: #111214;
  min-height: 1.8rem;
  align-items: center;
}

.dc-badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: inline-block;
  border-radius: 0;
  background: transparent;
}

.dc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  border-radius: 0.7rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(180deg, #4e5058, #383a40);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.dc-cta:hover,
.dc-cta:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  outline: none;
}

.audio-gate {
  display: none;
}

.audio-gate[hidden] {
  display: none;
}

.audio-gate-btn {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 760px) {
  body.gated .profile-slot--gate .profile-card-shell {
    width: min(100%, 300px);
  }

  body.gated .dc-banner {
    height: 88px;
  }

  body.gated .enter-gate-inner {
    gap: 0.75rem;
  }

  body.gated .enter-brand {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
  }

  body.gated .enter-btn {
    min-height: 2.7rem;
    padding: 0.75rem 2.1rem;
  }
}

@media (max-height: 620px) {
  body.gated .profile-slot--gate .profile-card-shell {
    transform: scale(0.88);
    transform-origin: top center;
  }

  body.gated .enter-gate-inner {
    gap: 0.55rem;
  }
}

@media (max-width: 900px) {
  .stage {
    width: 100%;
    padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
    gap: 1.25rem;
  }

  .media-panel {
    width: 100%;
  }

  .topbar {
    padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 0.75rem 0.25rem;
  }

  .link-row {
    gap: 0.5rem;
    padding: 0 0.25rem;
  }

  .link-btn {
    min-height: 2.65rem;
    padding: 0.6rem 0.95rem;
    font-size: 0.88rem;
    touch-action: manipulation;
  }

  .profile-card-shell {
    width: min(100%, 420px);
  }

  .discord-card {
    width: 100%;
  }

  .video-frame {
    min-height: min(58vh, 520px);
    border-radius: 0;
  }

  .ctrl-btn {
    width: 2.85rem;
    height: 2.85rem;
    touch-action: manipulation;
  }

  .volume-slider {
    min-height: 1.5rem;
    touch-action: none;
  }
}

@media (max-width: 640px) {
  .stage {
    width: 100%;
    padding: 0 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .media-panel {
    width: 100%;
  }

  .video-frame {
    min-height: min(52vh, 420px);
    aspect-ratio: 16 / 10;
  }

  .media-video {
    object-fit: cover;
  }

  .transport {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "play next meta"
      "vol vol vol";
    gap: 0.55rem;
    padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  #player-toggle {
    grid-area: play;
  }
  #player-next {
    grid-area: next;
  }
  .now-meta {
    grid-area: meta;
    min-width: 0;
  }
  .now-title {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .volume-box {
    grid-area: vol;
    width: 100%;
    min-width: 0;
    justify-content: stretch;
  }
  .volume-slider {
    width: 100%;
    flex: 1;
  }

  .profile-card-shell {
    width: 100%;
    max-width: 100%;
  }

  .discord-card {
    width: 100%;
    max-width: 100%;
    border-radius: 1rem;
  }

  .dc-banner {
    height: 96px;
  }

  .link-btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
  }

  .profile-slot--main {
    width: min(100%, 100%);
    padding: 0 0.75rem 1rem;
  }
}

@media (max-width: 380px) {
  .link-btn {
    flex: 1 1 100%;
  }

  .transport {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "play next"
      "meta meta"
      "vol vol";
  }

  .now-meta {
    text-align: center;
  }
}

@media (hover: none) and (pointer: coarse) {
  .link-btn:hover {
    transform: none;
  }

  .cursor-glow,
  .cursor-dot,
  .cursor-trails {
    display: none !important;
  }

  body {
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
  }

  .media-video {
    object-fit: contain;
    background: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-glow-spin,
  .profile-card-shell::before,
  .enter-btn.glow-on-hover::before,
  .enter-brand,
  .site-brand,
  .stage-atmosphere,
  .dc-display {
    animation: none !important;
  }

  .enter-btn.glow-on-hover::before {
    opacity: 1;
    background-position: 0 0;
    filter: blur(5px);
  }

  .dc-glow-spin,
  .profile-card-shell::before {
    transform: rotate(25deg);
  }
}
