/* ═══════════════════════════════════════════
   DARK MYSTERIOUS THEME
   Deep blacks, purples, mysterious glows
   ═══════════════════════════════════════════ */

:root {
  --site-scale: 0.9;

  /* Darkest blacks for mysterious vibe */
  --bg-dark: #000000;
  --bg-darker: #0a0a0a;
  --bg-darkest: #030303;

  /* Deep text colors */
  --color-primary: #a8a8a8;
  --color-primary-glow: rgba(168, 168, 168, 0.05);

  /* Mysterious purples and deep teals */
  --color-secondary: #2a1a4a;
  --color-secondary-glow: rgba(74, 44, 107, 0.15);

  /* Subtle gold (more mysterious, less bright) */
  --color-accent: #9d7a2a;
  --color-accent-glow: rgba(157, 122, 42, 0.25);

  /* Purple glow instead of white */
  --color-glow-purple: rgba(138, 43, 226, 0.15);
  --color-glow-blue: rgba(25, 118, 210, 0.15);
  --color-glow-cyan: rgba(0, 188, 212, 0.10);

  /* Spacing and typography stay the same */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4px: 64px;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
}

html {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #000000;
  /* Darker, more subtle grid */
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23080808" stroke-width="0.3"/></pattern></defs><rect width="100" height="100" fill="%23000000"/><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  overflow: hidden;
  position: fixed;
  width: calc(100% / var(--site-scale));
  height: calc(100% / var(--site-scale));
  transition: background 3s ease-in-out;
  font-family: 'Inter', 'Space Mono', monospace;
  color: #a8a8a8;
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><text y='24' font-size='24'>🐧</text></svg>") 16 16, auto;
  zoom: var(--site-scale);
}

/* ═══════════════════════════════════════════
   MYSTERIOUS ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes glow-pulse-purple {
  0%, 100% {
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.3), 0 0 30px rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2), inset 0 0 20px rgba(138, 43, 226, 0.05);
  }
  50% {
    text-shadow: 0 0 25px rgba(138, 43, 226, 0.5), 0 0 50px rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3), inset 0 0 30px rgba(138, 43, 226, 0.1);
  }
}

@keyframes mysterious-float {
  0%, 100% { transform: translateY(0px); opacity: 1; }
  50% { transform: translateY(-2px); opacity: 0.95; }
}

@keyframes shadow-flicker {
  0%, 100% { box-shadow: 0 0 20px rgba(138, 43, 226, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: 0 0 30px rgba(138, 43, 226, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.7); }
}

@keyframes slide-up-dark {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes fade-in-dark {
  from { opacity: 0; filter: blur(1px); }
  to { opacity: 1; filter: blur(0px); }
}

@keyframes scale-in-dark {
  from {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

@keyframes pulse-dim {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes mysterious-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.15), 0 0 20px rgba(25, 118, 210, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.25), 0 0 40px rgba(25, 118, 210, 0.15);
  }
}

@keyframes cyan-shimmer {
  0% { text-shadow: 0 0 10px rgba(0, 188, 212, 0.2); }
  50% { text-shadow: 0 0 20px rgba(0, 188, 212, 0.4), 0 0 30px rgba(138, 43, 226, 0.2); }
  100% { text-shadow: 0 0 10px rgba(0, 188, 212, 0.2); }
}

/* ═══════════════════════════════════════════
   INTRO — nonchalant, minimal
   ═══════════════════════════════════════════ */

#intro {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 10000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: opacity 0.3s ease;
}

#intro.glitch {
  animation: intro-glitch-flicker 120ms steps(2) 1;
}

@keyframes intro-glitch-flicker {
  0%   { opacity: 1; filter: none; }
  25%  { opacity: 0.6; filter: brightness(1.8) hue-rotate(20deg); }
  50%  { opacity: 1; filter: none; }
  75%  { opacity: 0.4; filter: brightness(2) hue-rotate(-15deg); }
  100% { opacity: 1; filter: none; }
}

#intro.dim {
  filter: brightness(0.4);
  transition: filter 0.3s ease;
}

#intro.out {
  opacity: 0;
  pointer-events: none;
}

#intro-title {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  color: #fff;
  letter-spacing: 0.12em;
  text-shadow: 0 0 20px rgba(255,255,255,0.06), 0 0 40px rgba(138,43,226,0.08);
  opacity: 0;
  transition: opacity 0.5s ease;
}

#intro-title.on {
  opacity: 1;
}

#intro-sub {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.65rem, 1.4vw, 0.85rem);
  color: rgba(168,168,168,0.6);
  letter-spacing: 0.15em;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#intro-sub.on {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   BACKGROUND VIDEO & IMAGES
   ═══════════════════════════════════════════ */

#intro-video, #bg-video {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: -1 !important;
  opacity: 1 !important;
  transition: transform 0.1s ease-out;
}

#intro-video {
  display: none !important;
}

#intro-video.playing {
  display: block !important;
}

#intro-video.show {
  display: block !important;
}

#bg-video {
  display: block;
  visibility: visible;
  opacity: 1;
  pointer-events: none;
  filter: brightness(0.72) contrast(1.08);
}

#bleach-hover-cover {
  position: absolute;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  opacity: 1;
  background: #050505 url("tumblr_286bdab6edbbe4b07b85ca48313573fa_f6ef2d85_2048.gif") center center / cover no-repeat;
  transition: opacity 0.25s ease;
}

#bleach-intro:hover #bleach-hover-cover {
  opacity: 0;
}

/* Beat-match pulse effect */
#page-socials {
  position: relative;
  width: 100%;
  height: 100vh;
  transition: filter 0.15s ease-out, transform 0.06s ease-out, box-shadow 0.15s ease-out;
  overflow-y: auto;
  z-index: 0;
}

#bg-video {
  transition: transform 0.12s ease-out;
}

#hero-name {
  transition: transform 0.1s ease-out, text-shadow 0.12s ease-out;
}

.orb {
  transition: opacity 0.12s ease-out, filter 0.15s ease-out !important;
}

/* ═══════════════════════════════════════════
   HERO SECTION — NONCHALANT WORDMARK
   ═══════════════════════════════════════════ */

#hero {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 10;
}

#hero.on {
  opacity: 1;
}

/* ── Base wordmark ── */
#hero-name {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: clamp(2.8rem, 11vw, 5.5rem);
  color: #fff;
  letter-spacing: 0.35em;
  margin: 0;
  padding: 1rem 2rem;
  text-transform: lowercase;
  position: relative;
  display: inline-block;
}

/* ── Ambient aura (behind text) ── */
#hero-name::before {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: inherit;
  font: inherit;
  letter-spacing: inherit;
  filter: blur(30px);
  opacity: 0.15;
  color: inherit;
  text-shadow: inherit;
  pointer-events: none;
  z-index: -1;
}

/* ── Micro-glitch (very subtle, every 8s) ── */
@keyframes micro-glitch {
  0%, 97%, 100% { transform: none; text-shadow: inherit; }
  97.5% { transform: translate(-1px, 0); }
  98% { transform: translate(1px, 0); text-shadow: -1px 0 rgba(0,240,255,0.2), 1px 0 rgba(138,43,226,0.2); }
  98.5% { transform: none; text-shadow: inherit; }
}

#hero-name {
  animation: micro-glitch 8s ease-in-out infinite;
}

/* ═══ VARIATION 1: ultra-minimal ═══ */
#hero-name[data-style="ultra-minimal"] {
  font-weight: 100;
  color: rgba(255,255,255,0.85);
  text-shadow: none;
  letter-spacing: 0.5em;
}
#hero-name[data-style="ultra-minimal"]::before {
  opacity: 0.06;
  filter: blur(40px);
}

/* ═══ VARIATION 2: neon-edge ═══ */
#hero-name[data-style="neon-edge"] {
  font-weight: 200;
  color: #fff;
  text-shadow:
    0 0 8px rgba(0,240,255,0.25),
    0 0 30px rgba(0,240,255,0.08);
}
#hero-name[data-style="neon-edge"]::before {
  color: #00f0ff;
  opacity: 0.12;
  filter: blur(35px);
}

/* ═══ VARIATION 3: gotham-coded ═══ */
#hero-name[data-style="gotham-coded"] {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: clamp(2.2rem, 9vw, 4.5rem);
  color: rgba(255,255,255,0.7);
  text-shadow:
    0 0 6px rgba(138,43,226,0.2);
  letter-spacing: 0.4em;
}
#hero-name[data-style="gotham-coded"]::before {
  color: #8a2be2;
  opacity: 0.1;
  filter: blur(28px);
}

/* ═══ VARIATION 4: terminal-calm ═══ */
#hero-name[data-style="terminal-calm"] {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  color: rgba(57,255,20,0.7);
  text-shadow:
    0 0 4px rgba(57,255,20,0.15);
  letter-spacing: 0.45em;
}
#hero-name[data-style="terminal-calm"]::before {
  color: #39ff14;
  opacity: 0.08;
  filter: blur(32px);
}

/* ═══ VARIATION 5: soft-glow (default) ═══ */
#hero-name[data-style="soft-glow"] {
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  text-shadow:
    0 0 15px rgba(138,43,226,0.12),
    0 0 40px rgba(138,43,226,0.06);
}
#hero-name[data-style="soft-glow"]::before {
  color: #8a2be2;
  opacity: 0.1;
  filter: blur(40px);
}

#hero-name.flicker {
  animation: flicker-neon 0.15s ease-in-out;
}

@keyframes flicker-neon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

#hero-line {
  width: 60%;
  max-width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  margin: 1rem auto;
  box-shadow: none;
}

#hero-sub {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  color: rgba(255,255,255,0.35);
  text-shadow: none;
  letter-spacing: 0.18em;
  margin: 0.5rem 0;
  min-height: 1.5rem;
  text-transform: lowercase;
}

#hero-bio {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  color: rgba(255,255,255,0.3);
  text-shadow: none;
  letter-spacing: 0.06em;
  margin: 0.5rem 0;
  min-height: 1.5rem;
  font-style: italic;
  font-weight: 300;
  opacity: 0;
  animation: fade-in-dark 0.6s ease-in-out forwards;
}

.shortlink {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.65rem, 2vw, 0.9rem);
  color: #9d7a2a;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(157, 122, 42, 0.3);
  border: 1px solid rgba(138, 43, 226, 0.2);
  padding: 0.4rem 1rem;
  margin: 0.5rem;
  transition: all 0.3s ease;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(10, 10, 10, 0.5);
  cursor: pointer;
}

.shortlink:hover {
  color: #b8956f;
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
  background: rgba(20, 15, 35, 0.8);
  transform: translateY(-2px);
}

.shortlink-hero {
  margin-top: 1rem;
}

/* Discord Server Embed (chat bar style) */
.dc-server-embed {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: rgba(30, 30, 30, 0.95);
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(60, 60, 60, 0.4);
}

.dc-server-embed:hover {
  background: rgba(40, 40, 40, 0.95);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.2);
  transform: translateY(-2px);
}

/* Discord Icon Button + Hover Stats */
.dc-icon-wrap {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
}

.dc-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(88, 101, 242, 0.25);
  color: #5865F2;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.1);
}

.dc-icon-btn:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.6);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.3), 0 0 40px rgba(88, 101, 242, 0.1);
  transform: scale(1.1);
  color: #7983f5;
}

.dc-icon-svg {
  filter: drop-shadow(0 0 4px rgba(88, 101, 242, 0.4));
  transition: filter 0.3s ease;
}

.dc-icon-btn:hover .dc-icon-svg {
  filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.6));
}

/* Hover Stats Tooltip */
.dc-hover-stats {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  padding: 10px 14px;
  background: rgba(10, 8, 24, 0.95);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(88, 101, 242, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
  font-family: 'Space Mono', monospace;
}

.dc-hover-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

#dc-hover-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(88, 101, 242, 0.45);
}

.dc-hover-meta {
  min-width: 0;
}

.dc-hover-stats::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(88, 101, 242, 0.3);
}

.dc-icon-wrap:hover .dc-hover-stats {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dc-hover-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5865F2;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(88, 101, 242, 0.3);
}

.dc-hover-subtitle {
  font-size: 0.62rem;
  color: rgba(192, 192, 192, 0.78);
  letter-spacing: 0.05em;
}

.dc-hover-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.55rem;
  color: #c0c0c0;
  margin-bottom: 4px;
}

.dc-hover-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dc-hover-dot--members {
  background: #a8a8a8;
  box-shadow: 0 0 4px rgba(168, 168, 168, 0.4);
}

.dc-hover-dot--online {
  background: #3ba55d;
  box-shadow: 0 0 4px rgba(59, 165, 93, 0.5);
}

.dc-hover-join {
  margin-top: 6px;
  font-size: 0.45rem;
  color: rgba(88, 101, 242, 0.6);
  letter-spacing: 0.1em;
}

.dc-embed-input {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  color: rgba(180, 180, 180, 0.6);
  letter-spacing: 0.02em;
}

.dc-embed-emoji {
  width: 28px;
  height: 28px;
  background: rgba(60, 60, 60, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(200, 200, 200, 0.8);
}

/* ═══════════════════════════════════════════
   PENG CHATBOX — collapsible chat pill
   ═══════════════════════════════════════════ */
#peng-chat {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(560px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* collapsed state: just the input bar is visible, log is hidden */
#peng-chat.chat-collapsed #peng-chat-log {
  max-height: 0;
  opacity: 0;
  padding: 0;
  overflow: hidden;
  border-color: transparent;
}

#peng-chat.chat-expanded {
  position: fixed;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 94vw);
  height: 90vh;
  z-index: 9998;
}
#peng-chat.chat-expanded #peng-chat-log {
  flex: 1;
  max-height: none;
  height: 100%;
}

/* chat log */
#peng-chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.9) 0%, rgba(8, 8, 10, 0.92) 100%);
  border: 1px solid rgba(138, 43, 226, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 30px rgba(0, 0, 0, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #c8c8cf;
  transition: max-height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 43, 226, 0.3) transparent;
}
#peng-chat-log::-webkit-scrollbar { width: 6px; }
#peng-chat-log::-webkit-scrollbar-track { background: transparent; }
#peng-chat-log::-webkit-scrollbar-thumb { background: rgba(138, 43, 226, 0.25); border-radius: 3px; }

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: chat-msg-in 0.28s ease;
}
.chat-msg-user { align-items: flex-end; text-align: right; }
.chat-msg-peng { align-items: flex-start; }

@keyframes chat-msg-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-author {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: rgba(157, 122, 42, 0.7);
  margin-bottom: 2px;
}
.chat-msg-user .chat-author { color: rgba(138, 43, 226, 0.75); }

.chat-body {
  display: inline-block;
  max-width: 80%;
  padding: 8px 12px;
  background: rgba(20, 20, 25, 0.85);
  border: 1px solid rgba(138, 43, 226, 0.12);
  border-radius: 10px;
  color: #dcdce0;
  font-size: 0.85rem;
  line-height: 1.45;
  word-wrap: break-word;
}
.chat-msg-user .chat-body {
  background: rgba(138, 43, 226, 0.14);
  border-color: rgba(138, 43, 226, 0.35);
  color: #e8e8ec;
}
.chat-msg-peng .chat-body {
  background: rgba(157, 122, 42, 0.08);
  border-color: rgba(157, 122, 42, 0.2);
}

/* input bar */
#peng-chat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 14px;
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.95) 0%, rgba(8, 8, 12, 0.95) 100%);
  border: 1px solid rgba(138, 43, 226, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 0 0 rgba(138, 43, 226, 0.0);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
#peng-chat-bar:focus-within {
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(138, 43, 226, 0.25);
}

#peng-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e8e8ec;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  padding: 8px 4px;
  letter-spacing: 0.01em;
}
#peng-chat-input::placeholder {
  color: rgba(180, 180, 190, 0.35);
  font-style: italic;
  letter-spacing: 0.02em;
}

#peng-chat-expand,
#peng-chat-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(138, 43, 226, 0.25);
  background: rgba(138, 43, 226, 0.08);
  color: #c8c8cf;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
#peng-chat-expand:hover,
#peng-chat-send:hover {
  background: rgba(138, 43, 226, 0.22);
  border-color: rgba(138, 43, 226, 0.55);
  color: #fff;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}
#peng-chat-send {
  background: rgba(157, 122, 42, 0.12);
  border-color: rgba(157, 122, 42, 0.3);
  color: #d4b76a;
}
#peng-chat-send:hover {
  background: rgba(157, 122, 42, 0.28);
  border-color: rgba(157, 122, 42, 0.6);
  color: #ffeec2;
  box-shadow: 0 0 10px rgba(157, 122, 42, 0.35);
}

@media (max-width: 520px) {
  #peng-chat { top: 48%; width: 94vw; }
  #peng-chat-log { max-height: 200px; font-size: 0.78rem; }
  #peng-chat.chat-expanded { top: 3vh; height: 94vh; width: 94vw; }
}

/* ═══════════════════════════════════════════
   APPLE MAGIC KEYBOARD SPACEBAR — contact pill
   (black / nonchalant — MacBook keycap at 2am)
   ═══════════════════════════════════════════ */
#apple-spacebar {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  min-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 7px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #8a8a90;
  /* matte-black keycap face — faintest graphite gradient */
  background:
    linear-gradient(180deg,
      #1a1a1c 0%,
      #111113 55%,
      #0a0a0c 100%);
  /* bevel + grounded shadow, nothing glowy */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.035) inset,
    0 -1px 0 rgba(0, 0, 0, 0.5) inset,
    0 1px 1px rgba(0, 0, 0, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.55),
    0 10px 22px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    background 0.18s ease,
    color 0.18s ease;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
  isolation: isolate;
}

/* thin top-edge glint — barely there, just enough to read as a key */
#apple-spacebar::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 2;
}

#apple-spacebar:hover {
  color: #b8b8bf;
  background:
    linear-gradient(180deg,
      #1e1e21 0%,
      #141416 55%,
      #0c0c0e 100%);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 -1px 0 rgba(0, 0, 0, 0.5) inset,
    0 2px 2px rgba(0, 0, 0, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.6),
    0 14px 28px rgba(0, 0, 0, 0.55);
}

/* press-down: sink a hair, darken, tighter shadow */
#apple-spacebar:active {
  transform: translateY(1px);
  background:
    linear-gradient(180deg,
      #131314 0%,
      #0d0d0e 55%,
      #07070a 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 -1px 0 rgba(0, 0, 0, 0.55) inset,
    0 1px 1px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.5);
}

.spacebar-inner {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  transition: opacity 0.18s ease;
}

.spacebar-label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: #5a5a60;
  font-weight: 500;
}

.spacebar-sep {
  color: #3a3a40;
  font-size: 0.6rem;
  transform: translateY(-1px);
}

.spacebar-email {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 0.76rem;
  color: #d4d4d9;
  font-weight: 500;
  letter-spacing: 0.01em;
}

#apple-spacebar:hover .spacebar-label { color: #7a7a80; }
#apple-spacebar:hover .spacebar-email { color: #f2f2f5; }

/* "copied" toast — muted, not shouting */
.spacebar-toast {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: #a8a8ae;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
#apple-spacebar.copied .spacebar-inner { opacity: 0; }
#apple-spacebar.copied .spacebar-toast { opacity: 1; transform: translateY(0); }

/* on small screens, shrink a little and tuck in */
@media (max-width: 520px) {
  #apple-spacebar {
    bottom: 14px;
    left: 14px;
    padding: 12px 22px;
    min-width: 0;
  }
  .spacebar-label { display: none; }
  .spacebar-sep   { display: none; }
  .spacebar-email { font-size: 0.72rem; }
}

/* ═══════════════════════════════════════════
   DESKTOP CONTEXT MENU (PC-style right-click)
   ═══════════════════════════════════════════ */
#desktop-context-menu {
  position: fixed;
  z-index: 99999;
  min-width: 200px;
  padding: 4px;
  background: rgba(22, 24, 30, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 210, 230, 0.18);
  border-radius: 6px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.75),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  color: #e6eaf0;
  user-select: none;
  transform-origin: top left;
  transition: opacity 0.08s ease, transform 0.08s ease;
}
#desktop-context-menu.ctx-menu-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}
.ctx-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.08s ease, color 0.08s ease;
  letter-spacing: 0.01em;
}
.ctx-menu-item:hover:not(.ctx-menu-disabled) {
  background: linear-gradient(180deg, #4f8bff 0%, #2967d9 100%);
  color: #fff;
}
.ctx-menu-item.ctx-menu-primary .ctx-menu-label {
  font-weight: 700;
}
.ctx-menu-item.ctx-menu-disabled {
  opacity: 0.4;
  cursor: default;
}
.ctx-menu-icon {
  display: inline-flex;
  width: 16px;
  justify-content: center;
  font-size: 0.78rem;
  opacity: 0.75;
}
.ctx-menu-label {
  flex: 1;
}
.ctx-menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: rgba(200, 210, 230, 0.1);
}

/* Desktop icon "selected" state (single-click highlight, PC-style) */
#tiktok-desktop-icon.selected,
#clip2-desktop-icon.selected,
.desktop-file-icon.selected {
  background: rgba(79, 139, 255, 0.18) !important;
  outline: 1px dotted rgba(200, 210, 230, 0.55);
  outline-offset: -2px;
}
#tiktok-desktop-icon.selected .desktop-icon-img,
#clip2-desktop-icon.selected .desktop-icon-img,
.desktop-file-icon.selected .desktop-icon-img {
  box-shadow: 0 0 0 2px rgba(79, 139, 255, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.5);
}
#tiktok-desktop-icon.selected .desktop-icon-label,
#clip2-desktop-icon.selected .desktop-icon-label,
.desktop-file-icon.selected .desktop-icon-label {
  background: rgba(79, 139, 255, 0.4);
  padding: 1px 4px;
  border-radius: 2px;
  color: #fff;
}

/* Disable text-selection when shift-clicking on the desktop */
.desktop-file-icon, #tiktok-desktop-icon, #clip2-desktop-icon, #clips-folder-icon {
  -webkit-user-select: none;
  user-select: none;
}

/* ═══════════════════════════════════════════
   STREAM STATUS PILL (live / sleeping)
   ═══════════════════════════════════════════ */

.stream-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.8rem;
  padding: 8px 16px;
  background: rgba(4, 2, 12, 0.95);
  border: 1px solid rgba(60, 50, 80, 0.2);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s ease;
  font-family: 'Space Mono', 'Press Start 2P', monospace;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.stream-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.stream-status-text {
  font-size: clamp(0.55rem, 1.5vw, 0.7rem);
  letter-spacing: 0.06em;
  min-height: 1em;
}

.stream-status-cursor {
  font-size: 0.7rem;
  color: rgba(138, 43, 226, 0.6);
  animation: cursor-blink 0.6s step-end infinite;
  margin-left: -2px;
}

.stream-status-cursor.blink-idle {
  animation: cursor-blink-idle-pauses 3.4s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes cursor-blink-slow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0; }
}

@keyframes cursor-blink-idle-pauses {
  0%, 22%, 30%, 58%, 66%, 100% { opacity: 0.4; }
  26%, 62% { opacity: 0; }
}

/* OFFLINE / SLEEPING STATE */
.stream-status-pill.offline {
  background: rgba(4, 2, 12, 0.95);
  border-color: rgba(50, 40, 70, 0.25);
}

.stream-status-pill.offline:hover {
  background: rgba(10, 6, 22, 0.98);
  border-color: rgba(138, 43, 226, 0.3);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.12), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.stream-status-pill.offline .stream-status-dot {
  background: rgba(100, 80, 140, 0.4);
  box-shadow: 0 0 4px rgba(100, 80, 140, 0.3);
  animation: stream-sleep-breathe 3.2s ease-in-out infinite;
}

.stream-status-pill.offline .stream-status-text {
  color: #a7c582;
}

@keyframes stream-sleep-breathe {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.15); }
}

/* LIVE / ONLINE STATE */
.stream-status-pill.live {
  background: rgba(15, 4, 4, 0.96);
  border-color: rgba(255, 50, 50, 0.35);
  box-shadow: 0 0 20px rgba(255, 50, 50, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.stream-status-pill.live:hover {
  background: rgba(25, 6, 6, 0.98);
  border-color: rgba(255, 70, 70, 0.5);
  box-shadow: 0 0 30px rgba(255, 50, 50, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.stream-status-pill.live .stream-status-dot {
  background: #ff3b3b;
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.8), 0 0 16px rgba(255, 59, 59, 0.4);
  animation: stream-live-pulse 1.2s ease-in-out infinite;
}

.stream-status-pill.live .stream-status-text {
  color: rgba(255, 200, 200, 0.7);
  font-weight: 600;
  text-shadow: 0 0 6px rgba(255, 60, 60, 0.3);
}

.stream-status-pill.live .stream-status-cursor {
  color: rgba(255, 60, 60, 0.5);
}

@keyframes stream-live-pulse {
  0%, 100% {
    box-shadow: 0 0 6px rgba(255, 59, 59, 0.6), 0 0 12px rgba(255, 59, 59, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 59, 59, 0.9), 0 0 24px rgba(255, 59, 59, 0.5);
    transform: scale(1.2);
  }
}

/* ═══════════════════════════════════════════
   CARDS & EMBEDS (MYSTERIOUS LOOK)
   ═══════════════════════════════════════════ */

#card-container {
  position: relative;
  z-index: 12;
  width: min(1480px, 94vw);
  margin: 1.6rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 1.5rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.card::before {
  display: none;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: #111;
  box-shadow: none;
}

.card .label,
.card .reveal {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.62rem, 1.6vw, 0.8rem);
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.card .label {
  color: #e0e0e0;
}

.card .reveal {
  color: rgba(255, 255, 255, 0.4);
  text-shadow: none;
}

.card.big {
  min-width: 320px;
}

#discord-column {
  position: fixed;
  top: 118px;
  right: 18px;
  z-index: 16;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.discord-presence {
  background: rgba(12, 13, 18, 0.98);
  border: 1px solid rgba(99, 102, 241, 0.34);
  border-radius: 16px;
  padding: 16px 17px 17px;
  width: 316px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.discord-presence.on {
  opacity: 1;
  transform: none;
}

.discord-presence:hover {
  border-color: rgba(114, 137, 218, 0.52);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.44);
}

.dp-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}

.dp-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.dp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #111318;
  background: #3ba55d;
}

.dp-status-dot.online { background: #3ba55d; box-shadow: 0 0 10px rgba(59,165,93,.45); }
.dp-status-dot.idle { background: #faa61a; box-shadow: 0 0 10px rgba(250,166,26,.45); }
.dp-status-dot.dnd { background: #ed4245; box-shadow: 0 0 10px rgba(237,66,69,.45); }


.dp-info .dp-name {
  font-size: 1.22rem;
  font-weight: 700;
  color: #f4f6fb;
  line-height: 1.05;
  letter-spacing: 0;
}

.dp-info .dp-alias {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #8f96a9;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}

.dp-status-text {
  font-size: 0.96rem;
  color: #d5d9e3;
  line-height: 1.35;
  margin: 12px 0 8px;
  font-style: normal;
  font-weight: 500;
}

.dp-activity {
  font-size: 0.8rem;
  color: #98a0b3;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-activity-label {
  line-height: 1.25;
}

.dp-activity-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.dp-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(67, 78, 203, 0.16);
  color: #8ea0ff;
  border: 1px solid rgba(88, 101, 242, 0.52);
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 10px;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.dp-join-btn:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: #8ea0ff;
  transform: translateY(-1px);
}

.dp-arrow {
  font-size: .82rem;
  line-height: 1;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9d7a2a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 10px rgba(157, 122, 42, 0.3);
}

.card-content {
  font-size: 0.875rem;
  color: #a8a8a8;
  line-height: 1.6;
  text-shadow: 0 0 5px rgba(138, 43, 226, 0.05);
}

/* ═══════════════════════════════════════════
   BUTTONS & INTERACTIVE ELEMENTS
   ═══════════════════════════════════════════ */

.btn-primary {
  background: linear-gradient(135deg, #9d7a2a 0%, #7a6020 100%);
  color: #f0f0f0;
  border: 1px solid #9d7a2a;
  border-radius: 0;
  padding: 12px 32px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(157, 122, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b8956f 0%, #9d7a2a 100%);
  transform: translateY(-2px);
  box-shadow:
    0 0 30px rgba(157, 122, 42, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 5px 20px rgba(138, 43, 226, 0.2);
  border-color: #b8956f;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 20px rgba(157, 122, 42, 0.3), inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════
   TEXT & HEADINGS
   ═══════════════════════════════════════════ */

h1, h2, h3 {
  color: #a8a8a8;
  text-shadow: 0 0 15px rgba(138, 43, 226, 0.15);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 8vw, 4rem); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
  color: #a8a8a8;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   TOP & BOTTOM HUD ELEMENTS
   ═══════════════════════════════════════════ */

#yt-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #1a1a2e 0%, #0f0f23 100%);
  z-index: 100;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

#yt-progress-fill {
  height: 100%;
  width: 67%;
  background: linear-gradient(90deg, #9d7a2a, #b8956f);
  box-shadow: 0 0 15px rgba(157, 122, 42, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2);
  transition: width 0.4s ease;
}

#yt-progress-label {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 15, 35, 0.98) 100%);
  padding: 6px 16px;
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 0;
  color: #9d7a2a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 101;
  white-space: nowrap;
  display: none;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
  text-shadow: 0 0 10px rgba(157, 122, 42, 0.4);
}

#yt-progress-bar:hover #yt-progress-label {
  display: block;
}

/* ═══════════════════════════════════════════
   NOW PLAYING BAR
   ═══════════════════════════════════════════ */
#now-playing-bar {
  position: fixed;
  top: 106px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 9px;
  background: rgba(4, 5, 10, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 64;
  font-family: 'Space Mono', monospace;
  opacity: 0.34;
  pointer-events: auto;
  transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
  max-width: min(560px, calc(100vw - 36px));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

#now-playing-bar.np-visible {
  opacity: 0.48;
  pointer-events: auto;
}

#now-playing-bar:hover,
#now-playing-bar:focus-within {
  opacity: 0.88;
  transform: translateX(-50%) translateY(-1px);
  border-color: rgba(192, 132, 252, 0.18);
}

/* EQ bars animation */
.np-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
  flex-shrink: 0;
}

.np-eq-bar {
  width: 3px;
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.9), rgba(80, 220, 255, 0.35));
  border-radius: 999px;
  transition: height 0.08s ease-out, opacity 0.08s ease-out, filter 0.08s ease-out;
  height: 4px;
  opacity: 0.55;
  filter: drop-shadow(0 0 5px rgba(192, 132, 252, 0.25));
}

/* Paused state — freeze bars */
#now-playing-bar.np-paused .np-eq-bar {
  animation-play-state: paused;
  height: 3px !important;
}

.np-icon {
  font-size: 0.7rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(138, 43, 226, 0.4));
}

.np-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.np-label {
  font-size: 0.35rem;
  letter-spacing: 0.15em;
  color: rgba(138, 43, 226, 0.6);
  font-weight: 700;
}

.np-title {
  font-size: 0.55rem;
  color: #d0c0e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  letter-spacing: 0.03em;
}

.np-time {
  font-size: 0.45rem;
  color: rgba(168, 168, 168, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.np-sep {
  opacity: 0.3;
  margin: 0 1px;
}

.np-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(138, 43, 226, 0.1);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.np-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6a1b9a, #ab47bc);
  box-shadow: 0 0 6px rgba(138, 43, 226, 0.4);
  transition: width 0.5s linear;
}

.np-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#np-toggle,
.np-vibe-btn {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(230, 235, 255, 0.74);
  font-family: 'Space Mono', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

#np-toggle:hover,
.np-vibe-btn:hover,
.np-vibe-btn.is-active {
  color: #fff;
  border-color: rgba(192, 132, 252, 0.24);
}

.np-vibe-btn.is-active {
  background: rgba(157, 122, 42, 0.16);
  border-color: rgba(157, 122, 42, 0.34);
  color: #f1d28a;
}

#np-volume {
  width: 74px;
  height: 4px;
  accent-color: #c084fc;
  opacity: 0.72;
}

@media (max-width: 600px) {
  #now-playing-bar {
    max-width: 300px;
    padding: 3px 10px;
    gap: 6px;
  }
  .np-title { max-width: 120px; }
}

/* ═══════════════════════════════════════════
   LIVE INDICATORS (MYSTERIOUS)
   ═══════════════════════════════════════════ */

#hub-nav-btn {
  position: fixed;
  top: var(--space-lg);
  right: 200px;
  z-index: 19;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  background: transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
#hub-nav-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

#live-indicators {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  z-index: 19;
}

.live-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a8a8a8;
  padding: 8px 12px;
  border: 1px solid rgba(138, 43, 226, 0.15);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 15, 35, 0.9) 100%);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.1);
}

.live-dot .pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: rgba(157, 122, 42, 0.3);
  border-radius: 50%;
  animation: pulse-dim 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(157, 122, 42, 0.3);
}

.live-dot.active {
  background: linear-gradient(135deg, rgba(20, 15, 35, 0.95) 0%, rgba(30, 20, 50, 0.95) 100%);
  border-color: #9d7a2a;
  box-shadow: 0 0 25px rgba(157, 122, 42, 0.3), 0 0 40px rgba(138, 43, 226, 0.15);
}

.live-dot.active .pulse {
  background: #9d7a2a;
  box-shadow: 0 0 15px #9d7a2a, inset 0 0 10px rgba(157, 122, 42, 0.5);
}

/* ═══════════════════════════════════════════
   FORM INPUTS (DARK MYSTERIOUS)
   ═══════════════════════════════════════════ */

input, select, textarea {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(20, 15, 35, 0.9) 100%);
  border: 1px solid rgba(138, 43, 226, 0.1);
  color: #a8a8a8;
  caret-color: #9d7a2a;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 10px rgba(138, 43, 226, 0.05);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow:
    inset 0 0 15px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(138, 43, 226, 0.2),
    0 0 40px rgba(25, 118, 210, 0.1);
  background: linear-gradient(135deg, rgba(15, 10, 30, 0.95) 0%, rgba(25, 15, 45, 0.95) 100%);
}

input::placeholder, textarea::placeholder {
  color: #5a5a5a;
}

/* ═══════════════════════════════════════════
   SCROLLBAR (DARK MYSTERIOUS)
   ═══════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9d7a2a, #6a5020);
  border-radius: 0;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b8956f, #9d7a2a);
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(157, 122, 42, 0.3);
}

/* ═══════════════════════════════════════════
   SELECTION (DARK MYSTERIOUS)
   ═══════════════════════════════════════════ */

::selection {
  background: rgba(138, 43, 226, 0.3);
  color: #a8a8a8;
  text-shadow: 0 0 10px rgba(157, 122, 42, 0.3);
}

::-moz-selection {
  background: rgba(138, 43, 226, 0.3);
  color: #a8a8a8;
  text-shadow: 0 0 10px rgba(157, 122, 42, 0.3);
}

/* ═══════════════════════════════════════════
   OVERALL DARK MYSTERIOUS FEEL
   ═══════════════════════════════════════════ */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(138, 43, 226, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse at 0% 100%, rgba(25, 118, 210, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   5 ESSENTIAL FEATURES (NEW)
   ═══════════════════════════════════════════ */

/* 1. FLOATING BEAT PARTICLES */
.beat-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 5;
}

/* 2. SOCIAL QUICK LINKS SIDEBAR */
#socials-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 15, 35, 0.98) 100%);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-right: none;
  padding: 1rem;
  min-width: 140px;
  z-index: 20;
  transition: all 0.3s ease;
  box-shadow: -0 0 30px rgba(138, 43, 226, 0.2);
}

#socials-sidebar.socials-sidebar-hidden {
  transform: translateX(110%) translateY(-50%);
}

.socials-header {
  font-size: 0.7rem;
  color: #9d7a2a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(157, 122, 42, 0.3);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a8a8a8;
  text-decoration: none;
  padding: 0.6rem;
  margin: 0.4rem 0;
  border: 1px solid rgba(138, 43, 226, 0.2);
  transition: all 0.2s ease;
  font-size: 0.8rem;
  cursor: pointer;
}

.social-link:hover {
  color: #9d7a2a;
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
  transform: translateX(-5px);
}

.social-icon {
  font-size: 1.2rem;
}

.socials-toggle {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(138, 43, 226, 0.3);
  border: 1px solid rgba(138, 43, 226, 0.5);
  color: #9d7a2a;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.socials-toggle:hover {
  background: rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

/* 3. LIVE STATUS BOARD */
#live-board {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 15, 35, 0.98) 100%);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-left: none;
  padding: 1rem;
  min-width: 140px;
  z-index: 20;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
}

#live-board.live-board-hidden {
  transform: translateX(-110%) translateY(-50%);
}

.live-board-title {
  font-size: 0.7rem;
  color: #ff0000;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.live-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem;
  margin: 0.4rem 0;
  border: 1px solid rgba(138, 43, 226, 0.2);
  font-size: 0.75rem;
  color: #a8a8a8;
}

.live-pulse {
  width: 6px;
  height: 6px;
  background: #ff0000;
  border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.live-board-toggle {
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(138, 43, 226, 0.3);
  border: 1px solid rgba(138, 43, 226, 0.5);
  color: #9d7a2a;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.live-board-toggle:hover {
  background: rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

/* 4. MUSIC PLAYER CONTROLS */
#music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 15, 35, 0.95) 100%);
  border: 1px solid rgba(138, 43, 226, 0.3);
  padding: 1rem;
  min-width: 200px;
  z-index: 25;
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
  border-radius: 0;
}

.music-player-title {
  font-size: 0.75rem;
  color: #9d7a2a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  text-align: center;
}

.music-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.music-btn {
  background: rgba(138, 43, 226, 0.2);
  border: 1px solid rgba(138, 43, 226, 0.4);
  color: #9d7a2a;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.music-btn:hover {
  background: rgba(138, 43, 226, 0.4);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.music-btn-play {
  background: rgba(157, 122, 42, 0.3);
  border-color: rgba(157, 122, 42, 0.5);
}

.music-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.75rem;
}

.volume-slider {
  flex: 1;
  height: 4px;
  background: rgba(138, 43, 226, 0.2);
  border: none;
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   DESKTOP TIKTOK SHORTCUT ICON
   ═══════════════════════════════════════════ */
#tiktok-desktop-icon,
#clips-folder-icon {
  position: fixed;
  bottom: auto;
  top: 152px;
  right: 50%;
  transform: translateX(50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
  user-select: none;
  opacity: 0;
  animation: fade-in-dark 0.6s ease forwards 2s;
}
#tiktok-desktop-icon:hover,
#clips-folder-icon:hover {
  background: rgba(57, 255, 20, 0.08);
  transform: translateX(50%) scale(1.05);
}
#tiktok-desktop-icon:active,
#clips-folder-icon:active {
  transform: translateX(50%) scale(0.95);
}

#tiktok-desktop-icon {
  top: auto;
  right: 40px;
  bottom: 100px;
  transform: none;
}

#tiktok-desktop-icon:hover {
  transform: scale(1.05);
}

#tiktok-desktop-icon:active {
  transform: scale(0.95);
}
.desktop-icon-img {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.15), inset 0 0 10px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
#tiktok-desktop-icon:hover .desktop-icon-img,
#clips-folder-icon:hover .desktop-icon-img {
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.3), inset 0 0 15px rgba(57, 255, 20, 0.05);
  border-color: rgba(57, 255, 20, 0.5);
}
.desktop-icon-img--folder {
  border-color: rgba(192, 132, 252, 0.38);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.16), inset 0 0 12px rgba(70, 20, 90, 0.35);
}
#clips-folder-icon:hover .desktop-icon-img--folder {
  box-shadow: 0 0 30px rgba(192, 132, 252, 0.28), inset 0 0 18px rgba(192, 132, 252, 0.08);
  border-color: rgba(192, 132, 252, 0.62);
}
.desktop-icon-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: #c0c0c0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(57, 255, 20, 0.2);
  text-align: center;
  max-width: 80px;
  word-break: break-all;
}

/* ═══════════════════════════════════════════
   TIKTOK EMBED WINDOW (desktop-style popup)
   ═══════════════════════════════════════════ */
#tiktok-embed-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  transition: opacity 0.3s ease;
}
#tiktok-embed-overlay.tiktok-overlay-hidden {
  opacity: 0;
  pointer-events: none;
}

#tiktok-embed-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 520px;
  max-width: 94vw;
  max-height: 88vh;
  background: linear-gradient(180deg, #0a0a0a 0%, #0d0d15 100%);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.15), 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#tiktok-embed-window.tiktok-window-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}

#tiktok-embed-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(57, 255, 20, 0.06);
  border-bottom: 1px solid rgba(57, 255, 20, 0.15);
  cursor: move;
  user-select: none;
}
.tiktok-titlebar-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #39FF14;
  letter-spacing: 0.03em;
}
#tiktok-embed-close {
  background: none;
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff5050;
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
#tiktok-embed-close:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: rgba(255, 80, 80, 0.6);
}

#tiktok-embed-body {
  padding: 12px;
  overflow-y: auto;
  max-height: calc(85vh - 50px);
  display: flex;
  justify-content: center;
}
#tiktok-embed-body blockquote {
  margin: 0;
}

/* ═══════════════════════════════════════════
   TIKTOK INVENTORY (Roblox-style grid)
   ═══════════════════════════════════════════ */
#tiktok-inventory {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 6px 4px;
}

/* Header bar */
.inv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1c1f26 0%, #141720 100%);
  border: 1px solid rgba(120, 130, 150, 0.35);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.5);
}
.inv-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e6eaf0;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}
.inv-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(180, 200, 220, 0.6);
  letter-spacing: 0.05em;
}
.inv-count {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #8adf5e;
  background: rgba(57, 255, 20, 0.1);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid rgba(57, 255, 20, 0.3);
}

/* Grid of slots */
#tiktok-inv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(20,24,32,0.95) 0%, rgba(14,17,24,0.95) 100%),
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 2px,
      transparent 2px, transparent 6px);
  background-blend-mode: normal;
  border: 1px solid rgba(120, 130, 150, 0.3);
  border-radius: 6px;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.7),
    inset 0 -1px 0 rgba(255,255,255,0.05);
}

/* A slot */
.inv-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse at center top, rgba(255,255,255,0.04) 0%, transparent 60%),
    linear-gradient(180deg, #252a35 0%, #171a22 100%);
  border: 2px solid rgba(140, 150, 170, 0.4);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.2s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -2px 4px rgba(0,0,0,0.6),
    0 2px 4px rgba(0,0,0,0.4);
}
.inv-slot:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(200, 210, 230, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -2px 4px rgba(0,0,0,0.6),
    0 4px 12px rgba(0,0,0,0.6),
    0 0 12px rgba(200,210,230,0.2);
  z-index: 2;
}
.inv-slot.active {
  border-color: #39FF14;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -2px 4px rgba(0,0,0,0.6),
    0 0 0 2px rgba(57,255,20,0.3),
    0 0 18px rgba(57,255,20,0.55);
  transform: translateY(-2px);
}

/* Slot thumbnail / icon */
.inv-slot-thumb {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
  transition: transform 0.15s ease;
}
.inv-slot:hover .inv-slot-thumb {
  transform: scale(1.15);
}

/* Slot number corner */
.inv-slot-num {
  position: absolute;
  top: 3px;
  left: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: rgba(220, 230, 245, 0.55);
  font-weight: 700;
  letter-spacing: 0.05em;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}

/* Rarity tags (bottom-right stripe) */
.inv-slot-rarity {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
}
.inv-slot[data-rarity="legendary"] .inv-slot-rarity { background: linear-gradient(90deg, #ff9c00, #ffd96b, #ff9c00); box-shadow: 0 0 8px rgba(255,156,0,0.6); }
.inv-slot[data-rarity="epic"]      .inv-slot-rarity { background: linear-gradient(90deg, #a64dff, #d89dff, #a64dff); box-shadow: 0 0 8px rgba(166,77,255,0.6); }
.inv-slot[data-rarity="rare"]      .inv-slot-rarity { background: linear-gradient(90deg, #3ba6ff, #9dd4ff, #3ba6ff); box-shadow: 0 0 6px rgba(59,166,255,0.5); }
.inv-slot[data-rarity="common"]    .inv-slot-rarity { background: linear-gradient(90deg, #8a8f99, #c0c4cc, #8a8f99); }

.inv-slot[data-rarity="legendary"] { border-color: rgba(255,156,0,0.55); }
.inv-slot[data-rarity="epic"]      { border-color: rgba(166,77,255,0.55); }
.inv-slot[data-rarity="rare"]      { border-color: rgba(59,166,255,0.55); }

/* Locked / empty slot */
.inv-slot.locked {
  cursor: not-allowed;
  background: linear-gradient(180deg, #1a1d24 0%, #0f1218 100%);
  border-color: rgba(80, 90, 110, 0.35);
  opacity: 0.6;
}
.inv-slot.locked:hover {
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -2px 4px rgba(0,0,0,0.6);
  border-color: rgba(80,90,110,0.35);
}
.inv-slot.locked .inv-slot-thumb {
  color: rgba(120, 130, 150, 0.4);
  font-size: 1.4rem;
}

/* Detail panel */
.inv-detail {
  background: linear-gradient(180deg, #141720 0%, #0e1118 100%);
  border: 1px solid rgba(120, 130, 150, 0.3);
  border-radius: 6px;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -1px 0 rgba(0,0,0,0.6);
}
.inv-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
  margin-bottom: 6px;
  border-bottom: 1px dashed rgba(120,130,150,0.25);
}
#inv-detail-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: #e6eaf0;
  letter-spacing: 0.08em;
}
.inv-rarity-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(140,150,170,0.15);
  color: #c0c4cc;
  border: 1px solid rgba(140,150,170,0.3);
}
.inv-rarity-tag[data-rarity="legendary"] { color: #ffd96b; border-color: rgba(255,156,0,0.5); background: rgba(255,156,0,0.1); }
.inv-rarity-tag[data-rarity="epic"]      { color: #d89dff; border-color: rgba(166,77,255,0.5); background: rgba(166,77,255,0.1); }
.inv-rarity-tag[data-rarity="rare"]      { color: #9dd4ff; border-color: rgba(59,166,255,0.5); background: rgba(59,166,255,0.1); }
.inv-rarity-tag[data-rarity="common"]    { color: #c0c4cc; }

#tiktok-gallery-slot {
  width: 100%;
  min-height: 560px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6px;
}
#tiktok-gallery-slot:empty::before {
  content: '[ no slot selected ]';
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: rgba(140,150,170,0.4);
  letter-spacing: 0.1em;
  align-self: center;
  margin: auto;
}
#tiktok-gallery-slot blockquote.tiktok-embed {
  max-width: 325px !important;
  min-width: 325px !important;
  margin: 0 !important;
}

@media (max-width: 520px) {
  #tiktok-inv-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════
   CLIP_02 DESKTOP ICON + VIEWER WINDOW
   (mirrors the TikTok style with gold accents)
   ═══════════════════════════════════════════ */
#clip2-desktop-icon {
  position: fixed;
  bottom: 220px;     /* sits above the tiktok-desktop-icon */
  right: 40px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
  user-select: none;
  opacity: 0;
  animation: fade-in-dark 0.6s ease forwards 2.2s;
}
#clip2-desktop-icon:hover {
  background: rgba(157, 122, 42, 0.08);
  transform: scale(1.05);
}
#clip2-desktop-icon:active {
  transform: scale(0.95);
}
#clip2-desktop-icon .desktop-icon-img {
  border-color: rgba(157, 122, 42, 0.35);
  box-shadow: 0 0 15px rgba(157, 122, 42, 0.15), inset 0 0 10px rgba(0, 0, 0, 0.5);
}
#clip2-desktop-icon:hover .desktop-icon-img {
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.3), inset 0 0 15px rgba(138, 43, 226, 0.06);
  border-color: rgba(138, 43, 226, 0.5);
}

#clip2-embed-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  transition: opacity 0.3s ease;
}
#clip2-embed-overlay.tiktok-overlay-hidden {
  opacity: 0;
  pointer-events: none;
}

#clip2-embed-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 640px;
  max-width: 92vw;
  max-height: 88vh;
  background: linear-gradient(180deg, #0a0a0a 0%, #0d0d15 100%);
  border: 1px solid rgba(138, 43, 226, 0.35);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(138, 43, 226, 0.2), 0 20px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#clip2-embed-window.tiktok-window-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

#clip2-embed-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(138, 43, 226, 0.06);
  border-bottom: 1px solid rgba(138, 43, 226, 0.18);
  cursor: move;
  user-select: none;
}
#clip2-embed-titlebar .tiktok-titlebar-text {
  color: #c9a24a;
}
#clip2-embed-close {
  background: none;
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff5050;
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
#clip2-embed-close:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: rgba(255, 80, 80, 0.6);
}

/* ═══════════════════════════════════════════
   PENG-PET — must not block clicks
   ═══════════════════════════════════════════ */
#peng-pet {
  pointer-events: none;
  position: fixed;
  z-index: 9990;
  font-size: 1.4rem;
  transition: transform 0.1s;
  display: none;
}
#peng-pet.flip { transform: scaleX(-1); }

/* ═══════════════════════════════════════════
   TWITCH CHAT WINDOW
   ═══════════════════════════════════════════ */
#twitch-chat-btn {
  background: rgba(165, 95, 255, 0.1);
  border: 1px solid rgba(165, 95, 255, 0.4);
  color: #c4a0ff;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: block;
  z-index: 100;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}
#twitch-chat-btn:hover {
  color: #c4a0ff;
  border-color: rgba(165, 95, 255, 0.5);
  background: rgba(165, 95, 255, 0.08);
  box-shadow: 0 0 12px rgba(165, 95, 255, 0.15);
}

#twitch-chat-btn.chat-card {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(165, 95, 255, 0.18);
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 15, 35, 0.95) 100%);
  color: inherit;
  box-shadow:
    0 0 20px rgba(165, 95, 255, 0.1),
    inset 0 1px 0 rgba(165, 95, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  font-family: inherit;
  text-align: left;
  min-width: 320px;
}

#twitch-chat-btn.chat-card:hover {
  color: inherit;
  border-color: rgba(165, 95, 255, 0.42);
  box-shadow:
    0 0 30px rgba(165, 95, 255, 0.18),
    inset 0 1px 0 rgba(165, 95, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8);
  background: linear-gradient(135deg, rgba(15, 10, 30, 0.98) 0%, rgba(25, 15, 45, 0.98) 100%);
}

#twitch-chat-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
}

#twitch-chat-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 420px;
  height: 540px;
  max-width: 92vw;
  max-height: 85vh;
  background: linear-gradient(180deg, #080808 0%, #0a0610 100%);
  border: 1px solid rgba(120, 40, 40, 0.3);
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(80, 0, 0, 0.2), 0 20px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#twitch-chat-window.chat-hidden {
  display: none !important;
}
#twitch-chat-overlay.chat-hidden {
  display: none !important;
}

#twitch-chat-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(120, 20, 20, 0.08);
  border-bottom: 1px solid rgba(120, 40, 40, 0.2);
  cursor: move;
  user-select: none;
  flex-shrink: 0;
}
.twitch-chat-title-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #8a6a6a;
  letter-spacing: 0.05em;
}
#twitch-chat-close {
  background: none;
  border: 1px solid rgba(255, 60, 60, 0.25);
  color: #cc4444;
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
#twitch-chat-close:hover {
  background: rgba(255, 60, 60, 0.12);
  border-color: rgba(255, 60, 60, 0.5);
}

#twitch-chat-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
#twitch-chat-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Chat Auth Panel ─────────────────────────── */
#chat-auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
}
.chat-auth-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.chat-form-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: #c4a0a0;
  letter-spacing: 0.08em;
  text-align: center;
}
.chat-form-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: #665555;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* OAuth buttons */
.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 260px;
  margin-top: 6px;
}
.oauth-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.oauth-btn svg { flex-shrink: 0; }
.oauth-btn:hover { transform: translateY(-1px); }

/* Discord */
.oauth-discord {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.3);
  color: #7289da;
}
.oauth-discord:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.15);
  color: #99aaf5;
}

/* Twitch */
.oauth-twitch {
  background: rgba(145, 70, 255, 0.12);
  border-color: rgba(145, 70, 255, 0.3);
  color: #a970ff;
}
.oauth-twitch:hover {
  background: rgba(145, 70, 255, 0.22);
  border-color: rgba(145, 70, 255, 0.5);
  box-shadow: 0 0 16px rgba(145, 70, 255, 0.15);
  color: #c4a0ff;
}

/* YouTube */
.oauth-youtube {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 60, 60, 0.3);
  color: #ff4444;
}
.oauth-youtube:hover {
  background: rgba(255, 0, 0, 0.18);
  border-color: rgba(255, 60, 60, 0.5);
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.12);
  color: #ff6666;
}

/* TikTok */
.oauth-tiktok {
  background: rgba(0, 242, 234, 0.08);
  border-color: rgba(0, 242, 234, 0.25);
  color: #25f4ee;
}
.oauth-tiktok:hover {
  background: rgba(0, 242, 234, 0.16);
  border-color: rgba(0, 242, 234, 0.45);
  box-shadow: 0 0 16px rgba(0, 242, 234, 0.12);
  color: #69f7f2;
}

/* ─── Chat Live Panel ─────────────────────────── */
#chat-live-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 40, 40, 0.3) transparent;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background: rgba(120, 40, 40, 0.3); border-radius: 2px; }
.chat-bubble {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #b0a0a0;
  line-height: 1.45;
  padding: 4px 0;
  word-break: break-word;
}
.chat-bubble .cb-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: #cc8888;
  margin-right: 6px;
}
.chat-bubble .cb-badge {
  display: inline-block;
  font-size: 0.5rem;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
  letter-spacing: 0.04em;
  font-family: 'Space Mono', monospace;
}
.cb-badge-discord  { background: rgba(88,101,242,0.18); color: #7289da; }
.cb-badge-twitch   { background: rgba(145,70,255,0.18); color: #a970ff; }
.cb-badge-youtube  { background: rgba(255,0,0,0.15);   color: #ff4444; }
.cb-badge-tiktok   { background: rgba(0,242,234,0.12);  color: #25f4ee; }
.chat-bubble .cb-time {
  font-size: 0.55rem;
  color: #443333;
  margin-left: 4px;
}
.chat-bubble.cb-self .cb-name {
  color: #88ccaa;
}

#chat-input-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid rgba(120, 40, 40, 0.15);
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
#chat-msg-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 40, 40, 0.2);
  border-radius: 4px;
  padding: 8px 10px;
  color: #d0c0c0;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  outline: none;
  transition: border-color 0.2s;
}
#chat-msg-input:focus {
  border-color: rgba(180, 60, 60, 0.4);
}
#chat-msg-input::placeholder {
  color: #4a3a3a;
}
#chat-msg-send {
  background: rgba(140, 30, 30, 0.2);
  border: 1px solid rgba(180, 50, 50, 0.25);
  color: #cc8888;
  font-size: 0.85rem;
  width: 34px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
#chat-msg-send:hover {
  background: rgba(180, 40, 40, 0.3);
  color: #e09090;
}
#chat-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-top: 1px solid rgba(120, 40, 40, 0.1);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
#chat-user-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: #665555;
  letter-spacing: 0.04em;
}
#chat-logout-btn {
  background: none;
  border: 1px solid rgba(120, 40, 40, 0.2);
  color: #885555;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
#chat-logout-btn:hover {
  color: #cc6666;
  border-color: rgba(180, 50, 50, 0.4);
}

/* ─── Profile Button (in user bar) ────────────── */
#chat-profile-btn {
  background: none;
  border: 1px solid rgba(120, 40, 40, 0.2);
  color: #885555;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
  margin-right: 6px;
}
#chat-profile-btn:hover {
  color: #cc6666;
  border-color: rgba(180, 50, 50, 0.4);
}

/* ─── Profile Settings Panel ──────────────────── */
#profile-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 16px 20px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 40, 40, 0.3) transparent;
}
#profile-panel::-webkit-scrollbar { width: 4px; }
#profile-panel::-webkit-scrollbar-thumb { background: rgba(120, 40, 40, 0.3); border-radius: 2px; }
.profile-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-header .chat-form-title { margin: 0; }
#profile-close-btn {
  background: none;
  border: none;
  color: #665555;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.2s;
}
#profile-close-btn:hover { color: #cc8888; }

#profile-avatar-wrap {
  text-align: center;
}
#profile-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(120, 40, 40, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.profile-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: #665555;
  letter-spacing: 0.06em;
}
.profile-label input,
.profile-label textarea,
.profile-label select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 40, 40, 0.2);
  border-radius: 4px;
  padding: 8px 10px;
  color: #d0c0c0;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.profile-label input:focus,
.profile-label textarea:focus,
.profile-label select:focus {
  border-color: rgba(180, 60, 60, 0.4);
}
.profile-label input::placeholder,
.profile-label textarea::placeholder {
  color: #4a3a3a;
}

.profile-label select {
  appearance: none;
}

#profile-verify-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
}
#profile-verify-status {
  color: #665555;
}
#profile-resend-verify {
  background: none;
  border: 1px solid rgba(0, 200, 180, 0.25);
  color: #25f4ee;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
#profile-resend-verify:hover {
  background: rgba(0, 200, 180, 0.1);
  border-color: rgba(0, 200, 180, 0.45);
}

#profile-save-btn,
#profile-reset-btn,
#site-settings-save-btn {
  background: rgba(140, 30, 30, 0.2);
  border: 1px solid rgba(180, 50, 50, 0.25);
  color: #cc8888;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
#profile-save-btn:hover,
#profile-reset-btn:hover,
#site-settings-save-btn:hover {
  background: rgba(180, 40, 40, 0.3);
  color: #e09090;
}

#profile-msg,
#profile-reset-msg,
#site-settings-msg {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  min-height: 1.2em;
}
.profile-msg-ok { color: #4caf84; }
.profile-msg-err { color: #e06060; }

.profile-section-sep {
  height: 1px;
  background: rgba(120, 40, 40, 0.15);
  margin: 4px 0;
}

#clip2-embed-body {
  padding: 12px;
  overflow-y: auto;
  max-height: calc(88vh - 50px);
  display: flex;
  justify-content: center;
}
#tiktok-watch-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 8px 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #00aaff;
  text-decoration: none;
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 170, 255, 0.06);
  transition: all 0.2s ease;
  cursor: pointer;
}
#tiktok-watch-link:hover {
  color: #33ccff;
  background: rgba(0, 170, 255, 0.12);
  border-color: rgba(0, 170, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 170, 255, 0.2);
}
.tiktok-highlight {
  color: #00eeff;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 238, 255, 0.5), 0 0 20px rgba(0, 238, 255, 0.25);
  animation: tiktok-glow 2s ease-in-out infinite;
}
@keyframes tiktok-glow {
  0%, 100% { text-shadow: 0 0 8px rgba(0, 238, 255, 0.5), 0 0 20px rgba(0, 238, 255, 0.25); color: #00eeff; }
  50% { text-shadow: 0 0 14px rgba(0, 238, 255, 0.8), 0 0 30px rgba(0, 238, 255, 0.4); color: #66ffff; }
}

/* Hero TIKTOK link in typing animation */
.hero-tiktok-link {
  color: #39FF14;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.6), 0 0 25px rgba(57, 255, 20, 0.3), 0 0 50px rgba(57, 255, 20, 0.15);
  animation: hero-tiktok-pulse 2s ease-in-out infinite;
  transition: all 0.2s ease;
  cursor: pointer;
  border-bottom: 1px solid rgba(57, 255, 20, 0.4);
  padding-bottom: 2px;
}
.hero-tiktok-link:hover {
  color: #66ff44;
  text-shadow: 0 0 15px rgba(57, 255, 20, 0.9), 0 0 35px rgba(57, 255, 20, 0.5), 0 0 60px rgba(57, 255, 20, 0.3);
  border-bottom-color: rgba(57, 255, 20, 0.8);
}
@keyframes hero-tiktok-pulse {
  0%, 100% { text-shadow: 0 0 10px rgba(57, 255, 20, 0.6), 0 0 25px rgba(57, 255, 20, 0.3); }
  50% { text-shadow: 0 0 18px rgba(57, 255, 20, 0.9), 0 0 40px rgba(57, 255, 20, 0.5), 0 0 60px rgba(0, 238, 255, 0.2); }
}

.music-track-info {
  text-align: center;
  font-size: 0.75rem;
  color: #a8a8a8;
  text-shadow: 0 0 5px rgba(138, 43, 226, 0.2);
}

/* 5. CLIPS CAROUSEL */
#clips-carousel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 15, 35, 0.95) 100%);
  border: 1px solid rgba(138, 43, 226, 0.3);
  padding: 1rem;
  min-width: 280px;
  max-width: 400px;
  z-index: 25;
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
  transition: all 0.3s ease;
}

#clips-carousel.clips-carousel-hidden {
  transform: translateY(110%);
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #9d7a2a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 10px rgba(157, 122, 42, 0.3);
}

.carousel-close {
  background: none;
  border: none;
  color: #9d7a2a;
  cursor: pointer;
  font-size: 1rem;
}

.carousel-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.carousel-content {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
}

.clip-card {
  flex-shrink: 0;
  width: 80px;
  background: rgba(20, 15, 35, 0.8);
  border: 1px solid rgba(138, 43, 226, 0.2);
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clip-card:hover {
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
  transform: translateY(-3px);
}

.clip-card--floaty {
  animation: clip-floaty 11s ease-in-out infinite;
}

.clip-card--floaty-delayed {
  animation-delay: 3.6s;
}

@keyframes clip-floaty {
  0%, 14%, 100% { transform: translateY(0px); }
  22% { transform: translateY(-2px); }
  38% { transform: translateY(-5px); }
  54% { transform: translateY(-1px); }
  70% { transform: translateY(-4px); }
  84% { transform: translateY(0px); }
}

.clip-thumbnail {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.clip-title {
  font-size: 0.7rem;
  color: #a8a8a8;
  margin-bottom: 0.3rem;
}

.clip-date {
  font-size: 0.65rem;
  color: #5a5a5a;
}

.carousel-nav {
  background: rgba(138, 43, 226, 0.2);
  border: 1px solid rgba(138, 43, 226, 0.3);
  color: #9d7a2a;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.carousel-nav:hover {
  background: rgba(138, 43, 226, 0.4);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.carousel-toggle {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(138, 43, 226, 0.3);
  border: 1px solid rgba(138, 43, 226, 0.5);
  color: #9d7a2a;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-toggle:hover {
  background: rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

@media (max-width: 768px) {
  .card {
    box-shadow:
      0 0 15px rgba(138, 43, 226, 0.08),
      inset 0 1px 0 rgba(138, 43, 226, 0.08);
  }

  .card:hover {
    box-shadow:
      0 0 25px rgba(138, 43, 226, 0.15),
      inset 0 1px 0 rgba(138, 43, 226, 0.15);
  }

  #socials-sidebar, #live-board, #music-player, #clips-carousel {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   PENG-OS FILE EXPLORER
   ═══════════════════════════════════════════ */

/* ── Toggle Button ── */
#explorer-btn {
  position: fixed;
  top: 1.2rem;
  right: 4.5rem;
  z-index: 20;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  display: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#explorer-btn:hover {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.06);
  background: rgba(16, 16, 16, 0.96);
}
#explorer-btn.on { display: block; }
.explorer-btn-icon { font-size: 1rem; line-height: 1; }

/* ── Window Frame ── */
#explorer {
  position: fixed;
  top: 3.5rem;
  right: 1.2rem;
  z-index: 50;
  width: 380px;
  max-height: 560px;
  background: rgba(8, 8, 10, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  font-family: 'Space Mono', monospace;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 30px rgba(0, 240, 255, 0.03),
    0 20px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(-10px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.25s ease;
}
#explorer.explorer-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
#explorer.explorer-closed {
  transform: translateY(-10px) scale(0.96);
  opacity: 0;
  pointer-events: none;
}

/* ── Titlebar ── */
#explorer-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(12, 12, 14, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  user-select: none;
  cursor: move;
}
.explorer-titlebar-left {
  display: flex;
  gap: 7px;
  align-items: center;
}
.explorer-titlebar-right {
  width: 48px;
}
.explorer-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  opacity: 0.35;
}

/* ═══════════════════════════════════════════
   DONATION XP METER
   ═══════════════════════════════════════════ */
#tiktok-stats-widget {
  position: fixed;
  bottom: 560px;
  left: 18px;
  z-index: 901;
  width: 338px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.tiktok-profile-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tiktok-profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.tiktok-profile-copy {
  min-width: 0;
}

.tiktok-stats-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.95);
}

.tiktok-stats-handle-link {
  display: inline-block;
  margin-top: 2px;
  color: rgba(212, 220, 236, 0.78);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.tiktok-stats-handle-link:hover {
  color: #25f4ee;
}

.tiktok-profile-caption {
  margin-top: 3px;
  color: rgba(171, 181, 198, 0.72);
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  line-height: 1.3;
}

.tiktok-caption-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 66px;
}

.tiktok-caption-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(225, 231, 242, 0.86);
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  line-height: 1.25;
}

.tiktok-caption-chip strong {
  color: #ffffff;
  font-weight: 700;
}

.tiktok-caption-footer {
  margin: 8px 0 0 66px;
}

.tiktok-caption-featured {
  color: rgba(189, 197, 211, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  line-height: 1.3;
}

.tiktok-stats-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  margin-left: 66px;
}

.tiktok-stats-play-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: linear-gradient(135deg, #fe2c55 0%, #25f4ee 100%);
  color: #081018;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(254, 44, 85, 0.16);
}

.tiktok-stats-play-btn:hover {
  transform: translateY(-1px);
}

.tiktok-stats-open-link {
  color: rgba(212, 220, 236, 0.72);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
}

.tiktok-stats-open-link:hover {
  color: #25f4ee;
}

#donate-widget {
  position: fixed;
  bottom: 178px;
  left: 18px;
  z-index: 900;
  width: 338px;
  background: linear-gradient(180deg, rgba(18, 14, 36, 0.98) 0%, rgba(9, 8, 18, 0.96) 100%);
  border: 1px solid rgba(138, 43, 226, 0.28);
  border-radius: 16px;
  padding: 18px 20px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38), 0 0 24px rgba(138, 43, 226, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: shadow-flicker 4s ease-in-out infinite;
  font-family: 'Space Mono', 'Press Start 2P', monospace;
  overflow: hidden;
}

#donate-widget::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: radial-gradient(circle at 50% 0%, rgba(206,147,216,.18), transparent 68%);
  pointer-events: none;
}

#donate-widget::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.donate-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.donate-icon {
  font-size: 1.08rem;
  filter: drop-shadow(0 0 4px rgba(138, 43, 226, 0.5));
}

.donate-title {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #d7bbff;
  text-shadow: 0 0 8px rgba(138, 43, 226, 0.28);
}

.donate-lvl {
  margin-left: auto;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffc107;
  text-shadow: 0 0 6px rgba(255, 193, 7, 0.4);
  background: rgba(255, 193, 7, 0.09);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 193, 7, 0.18);
}

/* XP BAR */
.donate-xp-bar {
  position: relative;
  width: 100%;
  height: 30px;
  background: rgba(14, 10, 28, 0.92);
  border: 1px solid rgba(138, 43, 226, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.donate-xp-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6a1b9a, #8e24aa, #ab47bc, #ce93d8);
  border-radius: 999px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.donate-xp-glow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent 60%, rgba(206, 147, 216, 0.3));
  border-radius: 999px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  animation: xp-shimmer 2s ease-in-out infinite;
}

@keyframes xp-shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.donate-xp-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f1eef7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.04em;
  z-index: 2;
  gap: 4px;
}

.donate-xp-sep {
  opacity: 0.4;
  margin: 0 2px;
}

.donate-raised {
  text-align: center;
  font-size: 0.62rem;
  color: rgba(224, 204, 255, 0.72);
  letter-spacing: 0.12em;
  margin-top: 10px;
  font-weight: 600;
}

.donate-visual {
  position: relative;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
}

.donate-orb {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.25), rgba(206,147,216,.2) 28%, rgba(138,43,226,.28) 58%, rgba(20,10,40,.15) 72%, transparent 78%);
  box-shadow: 0 0 30px rgba(138,43,226,.24), inset 0 0 24px rgba(255,255,255,.08);
  animation: donate-orb-pulse 2.8s ease-in-out infinite;
  filter: saturate(1.1);
}

.donate-percent-big {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 3px;
  font-family: 'Press Start 2P', monospace;
  color: #f1dcff;
  text-shadow: 0 0 10px rgba(206,147,216,.5);
}

.donate-percent-big span { font-size: 1.7rem; }
.donate-percent-big small { font-size: 0.68rem; margin-top: 6px; opacity: 0.8; }

@keyframes donate-orb-pulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 22px rgba(138,43,226,.25), inset 0 0 22px rgba(255,255,255,.08); }
  50% { transform: scale(1.06); box-shadow: 0 0 30px rgba(138,43,226,.38), inset 0 0 28px rgba(255,255,255,.12); }
}

/* STRIPE DONATE BUTTON */
.donate-stripe-btn {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 12px 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 50%, #6a1b9a 100%);
  background-size: 200% 200%;
  border: 1px solid rgba(138, 43, 226, 0.4);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(138, 43, 226, 0.2);
  animation: donate-btn-glow 3s ease-in-out infinite;
}

@keyframes donate-btn-glow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.2);
    background-position: 0% 50%;
  }
  50% {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4), 0 0 40px rgba(138, 43, 226, 0.1);
    background-position: 100% 50%;
  }
}

.donate-stripe-btn:hover {
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.5), 0 0 50px rgba(138, 43, 226, 0.15);
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(138, 43, 226, 0.6);
}

.donate-footer {
  text-align: center;
  font-size: 0.56rem;
  color: rgba(190, 191, 205, 0.42);
  margin-top: 10px;
  letter-spacing: 0.08em;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  #tiktok-stats-widget {
    bottom: 474px;
    left: 8px;
    width: 246px;
    padding: 0;
  }
  .tiktok-caption-metrics,
  .tiktok-caption-footer,
  .tiktok-stats-actions {
    margin-left: 0;
  }
  .tiktok-stats-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  #donate-widget {
    bottom: 114px;
    left: 8px;
    width: 246px;
    padding: 14px 14px 12px;
  }
  .donate-xp-bar { height: 22px; }
  .donate-stripe-btn { font-size: 0.6rem; padding: 8px 0; }
}
.explorer-dot--close { background: #ff5f57; }
.explorer-dot--min   { background: #febc2e; }
.explorer-dot--max   { background: #28c840; }
.explorer-dot:hover  { opacity: 1; }
.explorer-dot--close:hover { box-shadow: 0 0 8px rgba(255, 95, 87, 0.4); }
.explorer-dot--min:hover   { box-shadow: 0 0 8px rgba(254, 188, 46, 0.4); }
.explorer-dot--max:hover   { box-shadow: 0 0 8px rgba(40, 200, 64, 0.4); }
#explorer-title {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.08em;
}

/* ── Path Bar ── */
#explorer-path {
  padding: 6px 14px;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  gap: 2px;
  align-items: center;
}
.explorer-path-sep {
  color: rgba(255, 255, 255, 0.1);
  margin: 0 1px;
}
.explorer-path-seg.active {
  color: rgba(0, 240, 255, 0.5);
}

/* ── File List ── */
#explorer-files {
  overflow-y: auto;
  flex: 1;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#explorer-files::-webkit-scrollbar { width: 3px; }
#explorer-files::-webkit-scrollbar-track { background: transparent; }
#explorer-files::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.06); border-radius: 2px; }

/* ── File Item ── */
.ex-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
  position: relative;
}
.ex-file:hover {
  background: rgba(0, 240, 255, 0.03);
  border-color: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.03);
}
.ex-file.active {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.15);
}

/* micro-glitch on hover */
@keyframes ex-glitch {
  0%, 94%, 100% { transform: none; }
  95% { transform: translateX(-1px); }
  96% { transform: translateX(1px); }
  97% { transform: none; }
}
.ex-file:hover { animation: ex-glitch 3s ease-in-out infinite; }

/* ── Thumbnail ── */
.ex-thumb {
  width: 72px;
  min-width: 72px;
  height: 42px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ex-thumb-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ex-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.ex-file:hover .ex-play-icon { opacity: 1; }

/* ── TikTok Thumbnail ── */
.ex-thumb--tt {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.06), rgba(138, 43, 226, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
}
.ex-tt-icon {
  font-size: 1.2rem;
  color: rgba(0, 240, 255, 0.35);
  position: absolute;
}

/* ── File Meta ── */
.ex-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ex-name {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-info {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.05em;
}

/* ── Status Bar ── */
#explorer-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 6px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.45rem;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.05em;
  background: rgba(6, 6, 8, 0.6);
}

/* ═══════════════════════════════════════════
   PENG-OS VIDEO PLAYER OVERLAY
   ═══════════════════════════════════════════ */
#peng-player-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
}
#peng-player-overlay.peng-player-hidden {
  display: none;
}
#peng-player-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#peng-player-window {
  position: relative;
  width: 90%;
  max-width: 720px;
  background: rgba(8, 8, 10, 0.98);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(0, 240, 255, 0.05),
    0 30px 80px rgba(0, 0, 0, 0.9);
  animation: player-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes player-enter {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
#peng-player-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(12, 12, 14, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  user-select: none;
}
#peng-player-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.08em;
}
#peng-player-body {
  padding: 8px;
  background: #000;
}
#peng-player-video {
  width: 100%;
  border-radius: 6px;
  background: #000;
  outline: none;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  #explorer {
    width: calc(100vw - 1.2rem);
    right: 0.6rem;
    max-height: 70vh;
  }
  #explorer-btn { right: 3.5rem; }
  #peng-player-window {
    width: calc(100vw - 2rem);
    max-width: none;
  }
}

/* ═══════════════════════════════════════════
   KILLUA VFX SUBTITLES
   ═══════════════════════════════════════════ */
#killua-head-sub {
  animation: killua-sub-fade 0.4s ease forwards;
}

@keyframes killua-sub-fade {
  from { opacity:0; transform:translateY(4px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ═══ KILLUA INTERRUPT v3 — EXTRA ANIMATIONS ═══ */
@keyframes killua-zap {
  0%   { opacity: 0.95; }
  100% { opacity: 0; }
}

:root {
  --rgb-split: 0;
}

body {
  transition: filter 0.6s;
}

@keyframes rgbShift {
  0%   { filter: hue-rotate(0deg)   saturate(1); }
  50%  { filter: hue-rotate(25deg)  saturate(2.2); }
  100% { filter: hue-rotate(-15deg) saturate(1.6); }
}

/* GOTHAM DARK INTRO STATE */
.intro-dark-mode {
  transition: all 1.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.intro-dark-mode #page-socials,
.intro-dark-mode .card,
.intro-dark-mode .hero,
.intro-dark-mode .ui {
  transform: scale(0.65) translateY(40px);
  opacity: 0.35;
  filter: brightness(0.75) contrast(1.25) saturate(0.85);
}

.intro-dark-mode body {
  background: radial-gradient(circle at center, #0a0a0a 0%, #000 80%);
  filter: contrast(1.15) brightness(0.85);
}

.intro-dark-mode #hero-name {
  text-shadow: 0 0 40px #9d4edd, 0 0 80px #000;
  letter-spacing: 6px;
}

/* ENTER BUTTON */
#enter-chaos-btn {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 99999;
  padding: 22px 68px;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.35rem;
  color: #e0e0e0;
  background: rgba(10,10,15,0.95);
  border: 3px solid #9d4edd;
  box-shadow: 0 0 40px rgba(157,78,221,0.6),
              inset 0 0 30px rgba(0,0,0,0.8);
  text-transform: uppercase;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.4s ease;
  user-select: none;
}

#enter-chaos-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 60px rgba(157,78,221,0.9),
              inset 0 0 40px rgba(157,78,221,0.3);
  color: #fff;
}

#enter-chaos-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* Layout reset: bring the important profile UI into clear rails */
#center-stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 14;
}

#center-stage > * {
  pointer-events: auto;
}

#hero {
  --hero-beat-x: 0px;
  --hero-beat-y: 0px;
  --hero-beat-rotate: 0deg;
  --hero-beat-scale: 1;
  position: relative;
  top: auto;
  left: auto;
  transform: translate(var(--hero-beat-x), var(--hero-beat-y)) rotate(var(--hero-beat-rotate)) scale(var(--hero-beat-scale));
  width: min(700px, calc(100vw - 820px));
  min-width: 360px;
  padding: 2rem 2.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8, 9, 16, 0.78) 0%, rgba(7, 7, 12, 0.58) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(138, 43, 226, 0.08);
  transition:
    transform 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.58s ease,
    border-color 0.58s ease;
  will-change: transform;
}

#hero.beat-nudge {
  border-color: rgba(205, 214, 255, 0.13);
  box-shadow:
    0 30px 86px rgba(0, 0, 0, 0.56),
    0 0 34px rgba(130, 114, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(138, 43, 226, 0.1);
}

#hero-name {
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  letter-spacing: 0.24em;
  padding: 0;
}

#hero-line {
  width: min(260px, 48%);
  margin: 1rem auto 0.9rem;
}

#hero-sub {
  min-height: 1.2rem;
  color: rgba(226, 232, 255, 0.58);
}

#hero-bio {
  color: rgba(210, 216, 234, 0.48);
}

#peng-chat {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: min(620px, calc(100vw - 860px));
  min-width: 360px;
  margin-top: 7.25rem;
  z-index: 3;
}

#peng-chat.chat-expanded {
  position: fixed;
}

#left-rail {
  position: fixed;
  top: 110px;
  left: 24px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(360px, calc(100vw - 48px));
}

#left-rail > * {
  margin: 0;
}

#stats-card-container {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: 100%;
}

#tiktok-stats-widget {
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.92) 0%, rgba(7, 8, 14, 0.86) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(37, 244, 238, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tiktok-profile-strip {
  gap: 14px;
  margin-bottom: 14px;
}

.tiktok-profile-avatar {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.tiktok-stats-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(138, 160, 255, 0.7);
}

.tiktok-stats-handle-link {
  margin-top: 4px;
  font-size: 1.02rem;
  color: #f6f9ff;
}

.tiktok-profile-caption {
  margin-top: 5px;
  font-size: 0.82rem;
  color: rgba(200, 210, 230, 0.7);
}

.tiktok-caption-metrics,
.tiktok-caption-footer,
.tiktok-stats-actions {
  margin-left: 0;
}

.tiktok-caption-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tiktok-caption-chip {
  min-height: 56px;
  padding: 11px 12px;
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.tiktok-caption-chip strong {
  font-size: 1rem;
  margin-bottom: 2px;
}

.tiktok-caption-footer {
  margin-top: 12px;
}

.tiktok-caption-featured {
  font-size: 0.8rem;
}

.tiktok-stats-actions {
  margin-top: 14px;
}

.tiktok-stats-play-btn,
.tiktok-stats-open-link {
  min-height: 40px;
}

#stats-card-container {
  pointer-events: auto;
}

#stats-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(85, 115, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(13, 16, 24, 0.94) 0%, rgba(8, 10, 16, 0.9) 100%);
  border: 1px solid rgba(155, 170, 255, 0.11);
  border-radius: 22px;
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(138, 43, 226, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#stats-card.signal-board::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 84%);
}

#stats-card.signal-board::after {
  content: '';
  position: absolute;
  top: 0;
  left: -45%;
  width: 44%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 220, 255, 0.8), transparent);
  animation: signal-scan 4.2s ease-in-out infinite;
}

@keyframes signal-scan {
  0%, 24% { transform: translateX(0); opacity: 0; }
  34%, 64% { opacity: 1; }
  82%, 100% { transform: translateX(330%); opacity: 0; }
}

.stats-header {
  margin-bottom: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: #f2f5ff;
}

.stat-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.stat-name,
.stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(224, 230, 245, 0.78);
}

.stat-num {
  text-align: right;
}

.stat-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.stat-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(91, 211, 255, 0.95) 0%, rgba(153, 92, 255, 0.95) 100%);
  box-shadow: 0 0 12px rgba(91, 211, 255, 0.24);
}

.likely-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.signal-status-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.signal-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(120, 135, 170, 0.52);
  box-shadow: 0 0 12px rgba(120, 135, 170, 0.36);
  animation: signal-idle-pulse 2.8s ease-in-out infinite;
}

@keyframes signal-idle-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 0.9; transform: scale(1.16); }
}

.signal-status-label,
.signal-status-value {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-status-label {
  color: rgba(214, 220, 238, 0.54);
}

.signal-status-value {
  color: rgba(214, 220, 238, 0.82);
}

.likely-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  color: #f4f6ff;
}

.likely-value {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #8ddcff;
}

.likely-bar {
  height: 14px;
}

.likely-fill {
  background: linear-gradient(90deg, rgba(66, 196, 255, 0.98) 0%, rgba(127, 91, 255, 0.92) 100%);
  box-shadow: 0 0 18px rgba(66, 196, 255, 0.28);
}

.signal-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.signal-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(225, 231, 255, 0.72);
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.signal-actions a:hover {
  color: #f7f9ff;
  border-color: rgba(141, 220, 255, 0.28);
  background: rgba(141, 220, 255, 0.08);
  transform: translateY(-1px);
}

.likely-note {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(214, 220, 238, 0.62);
}

#donate-widget {
  animation: none;
}

#discord-column {
  top: 168px;
  right: 24px;
  width: 320px;
}

.discord-presence {
  position: relative;
  isolation: isolate;
  overflow: visible;
  width: 100%;
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 8%, rgba(88, 101, 242, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(12, 14, 20, 0.97) 0%, rgba(5, 6, 11, 0.93) 100%);
  border-color: rgba(86, 91, 170, 0.32);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.discord-presence::before,
.discord-presence::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 30px;
}

.discord-presence::before {
  inset: -38px -32px -44px;
  background:
    radial-gradient(ellipse at 20% 88%, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.72) 30%, transparent 62%),
    radial-gradient(ellipse at 55% 100%, rgba(0, 0, 0, 0.98) 0%, rgba(18, 18, 32, 0.58) 34%, transparent 66%),
    radial-gradient(ellipse at 86% 82%, rgba(0, 0, 0, 0.9) 0%, rgba(8, 8, 16, 0.5) 28%, transparent 60%);
  filter: blur(18px);
  opacity: 0.98;
  animation: black-flame-aura 3.4s ease-in-out infinite;
}

.discord-presence::after {
  inset: -18px -16px -20px;
  background:
    conic-gradient(from 210deg at 18% 100%, transparent 0 13%, rgba(0, 0, 0, 0.94) 18%, transparent 25% 100%),
    conic-gradient(from 190deg at 56% 100%, transparent 0 16%, rgba(6, 6, 12, 0.92) 22%, transparent 31% 100%),
    conic-gradient(from 220deg at 88% 100%, transparent 0 10%, rgba(0, 0, 0, 0.9) 18%, transparent 28% 100%);
  filter: blur(10px);
  opacity: 0.72;
  mix-blend-mode: screen;
  animation: black-flame-tongues 2.7s ease-in-out infinite alternate;
}

.discord-presence:hover {
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.72),
    0 0 54px rgba(0, 0, 0, 0.88),
    0 0 24px rgba(88, 101, 242, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.discord-bot-card {
  margin-top: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.055), transparent 28%),
    linear-gradient(180deg, rgba(1, 1, 4, 0.98) 0%, rgba(0, 0, 0, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.86),
    0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.discord-bot-card::before {
  inset: -28px -26px -34px;
  background:
    radial-gradient(ellipse at 45% 100%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.76) 40%, transparent 68%),
    radial-gradient(ellipse at 85% 76%, rgba(20, 20, 24, 0.92) 0%, rgba(0, 0, 0, 0.5) 34%, transparent 62%);
  opacity: 0.9;
}

.discord-bot-card::after {
  inset: -12px -10px -16px;
  background:
    conic-gradient(from 205deg at 24% 100%, transparent 0 14%, rgba(0, 0, 0, 0.98) 19%, transparent 28% 100%),
    conic-gradient(from 230deg at 72% 100%, transparent 0 12%, rgba(11, 11, 14, 0.94) 18%, transparent 29% 100%);
  opacity: 0.6;
}

.discord-bot-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 30px 78px rgba(0, 0, 0, 0.92),
    0 0 48px rgba(255, 255, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bot-avatar {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(145deg, #101014, #000);
}

.bot-avatar-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.42);
}

.bot-status-dot {
  background: #111 !important;
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.28) !important;
}

.discord-bot-card .dp-name {
  color: #ffffff;
  letter-spacing: 0.02em;
}

.discord-bot-card .dp-alias {
  color: rgba(255, 255, 255, 0.46);
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
}

.bot-status-text {
  color: rgba(255, 255, 255, 0.86);
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.02em;
}

.bot-activity {
  color: rgba(255, 255, 255, 0.5);
}

.bot-activity-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.bot-invite-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.78);
}

.bot-invite-btn:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

@keyframes black-flame-aura {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.78; }
  45% { transform: translateY(-8px) scale(1.035, 1.08); opacity: 1; }
  70% { transform: translateY(-3px) scale(0.985, 1.03); opacity: 0.86; }
}

@keyframes black-flame-tongues {
  0% { transform: translateY(8px) skewX(-2deg) scaleY(0.96); opacity: 0.5; }
  100% { transform: translateY(-12px) skewX(2deg) scaleY(1.12); opacity: 0.82; }
}

#bleach-intro {
  width: 180px !important;
  height: 112px !important;
  right: 24px !important;
  bottom: 22px !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(0, 0, 0, 0.9) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.44);
  opacity: 0.68;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#bleach-intro:hover {
  opacity: 1;
  transform: translateY(-2px);
}

#vibe-meter,
#days-counter,
#dashboard-access-btn,
.right-stack {
  opacity: 0.76;
}

@media (max-width: 1280px) {
  #hero,
  #peng-chat {
    width: min(560px, calc(100vw - 760px));
    min-width: 320px;
  }

  #hero-name {
    font-size: clamp(3rem, 7vw, 5.8rem);
  }

  #left-rail {
    width: 320px;
  }

  #discord-column {
    width: 290px;
  }
}

@media (max-width: 1040px) {
  body {
    overflow-y: auto;
    position: relative;
    width: 100%;
    height: auto;
    zoom: 1;
  }

  #page-socials {
    min-height: 100vh;
    height: auto;
    padding: 110px 18px 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  #center-stage,
  #left-rail,
  #discord-column {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    right: auto;
    width: min(100%, 720px);
  }

  #center-stage {
    display: contents;
  }

  #hero,
  #peng-chat,
  #left-rail,
  #discord-column {
    min-width: 0;
    margin: 0 auto;
  }

  #hero,
  #peng-chat,
  #left-rail,
  #discord-column,
  .discord-presence {
    width: min(100%, 720px);
  }

  #live-indicators,
  #hub-nav-btn,
  #visit-streak,
  #vibe-meter,
  #days-counter,
  #dashboard-access-btn,
  .right-stack,
  #wisdom,
  #visitor-badge {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 720px);
    margin: 0 auto;
  }

  #live-indicators {
    justify-content: center;
  }

  #bleach-intro {
    width: 150px !important;
    height: 94px !important;
  }
}

@media (max-width: 640px) {
  #page-socials {
    padding: 96px 12px 140px;
  }

  #hero {
    padding: 1.4rem 1rem 1.2rem;
    border-radius: 22px;
  }

  #hero-name {
    font-size: clamp(2.5rem, 14vw, 4rem);
    letter-spacing: 0.18em;
  }

  #peng-chat,
  #left-rail,
  #discord-column,
  .discord-presence {
    width: 100%;
  }

  .tiktok-caption-metrics {
    grid-template-columns: 1fr;
  }

  .tiktok-stats-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #bleach-intro {
    right: 12px !important;
    bottom: 12px !important;
  }
}

/* Social strip + bottom live dock overrides */
#hero-social-strip {
  --hero-strip-x: 0px;
  --hero-strip-y: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 1.1rem;
  transform: translate(var(--hero-strip-x), var(--hero-strip-y));
  touch-action: none;
}

#hero-social-strip.is-dragging {
  cursor: grabbing;
}

#hero-social-strip .dc-icon-wrap,
#hero-social-strip .stream-status-pill,
#hero-social-strip .twitch-icon-btn {
  margin-top: 0;
}

#hero-social-strip .dc-icon-wrap,
#hero-social-strip .twitch-icon-btn,
#hero-social-strip .stream-status-pill {
  cursor: grab;
}

.twitch-icon-btn {
  color: #a970ff;
  border-color: rgba(169, 112, 255, 0.3);
  box-shadow: 0 0 10px rgba(169, 112, 255, 0.12);
}

.twitch-icon-btn:hover {
  background: rgba(169, 112, 255, 0.15);
  border-color: rgba(169, 112, 255, 0.6);
  box-shadow: 0 0 20px rgba(169, 112, 255, 0.3), 0 0 40px rgba(169, 112, 255, 0.1);
  color: #c29aff;
}

.twitch-icon-svg {
  filter: drop-shadow(0 0 6px rgba(169, 112, 255, 0.45));
}

#stream-status-pill {
  margin-top: 0;
}

#live-indicators {
  top: auto;
  right: 50%;
  bottom: 22px;
  transform: translateX(50%);
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(7, 8, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
}

.live-dot,
#notify-bell {
  margin: 0;
}

#notify-bell {
  align-self: stretch;
}

@media (max-width: 1040px) {
  #live-indicators {
    width: auto;
    max-width: calc(100vw - 24px);
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  #hero-social-strip {
    width: 100%;
    gap: 12px;
    flex-wrap: wrap;
  }

  #hero-social-strip .stream-status-pill {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  #live-indicators {
    bottom: 14px;
    padding: 10px 12px;
  }
}

/* Hub CTA + easier drag + upgraded donation card */
#hub-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 16px 20px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(135deg, rgba(11, 12, 22, 0.95) 0%, rgba(21, 18, 38, 0.94) 100%);
  border: 1px solid rgba(140, 164, 255, 0.24);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.36), 0 0 40px rgba(106, 92, 255, 0.12);
}

#center-stage > #hub-nav-btn {
  position: relative;
  top: auto;
  right: auto;
  z-index: 45;
  width: min(340px, calc(100vw - 44px));
  margin: 16px auto 0;
  overflow: visible;
  transform: translateY(0);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#left-rail > #donate-widget {
  position: fixed;
  left: auto;
  right: 24px;
  bottom: 178px;
  width: 320px;
  z-index: 58;
  transform: scale(0.92);
  transform-origin: bottom right;
}

.hub-nav-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(175, 187, 255, 0.64);
}

.hub-nav-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f6f8ff;
}

.hub-nav-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  color: rgba(214, 220, 238, 0.72);
}

#hub-nav-btn:hover {
  transform: translateY(-3px) scale(1.018);
  border-color: rgba(173, 189, 255, 0.46);
  background: linear-gradient(135deg, rgba(17, 18, 32, 0.98) 0%, rgba(31, 26, 52, 0.96) 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42), 0 0 48px rgba(120, 103, 255, 0.18);
}

.hub-hover-preview {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  z-index: 70;
  display: flex;
  width: 286px;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(151, 171, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(111, 96, 255, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(9, 10, 18, 0.96), rgba(5, 6, 11, 0.9));
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.48),
    0 0 46px rgba(72, 61, 200, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(0.95);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#hub-nav-btn:hover .hub-hover-preview,
#hub-nav-btn:focus-visible .hub-hover-preview {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.hub-preview-head {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 6px;
}

.hub-preview-head span,
.hub-preview-grid i {
  display: block;
  min-height: 8px;
  border-radius: 999px;
  background: rgba(170, 184, 255, 0.16);
  box-shadow: inset 0 0 12px rgba(147, 159, 255, 0.12);
}

.hub-preview-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(204, 213, 255, 0.88);
}

.hub-preview-copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(230, 234, 248, 0.72);
}

.hub-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

#hero-social-strip {
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  cursor: grab;
}

#hero-social-strip .dc-icon-wrap,
#hero-social-strip .twitch-icon-btn,
#hero-social-strip .stream-status-pill {
  cursor: inherit;
}

#hero-social-strip.is-dragging {
  transform: translate(var(--hero-strip-x), var(--hero-strip-y)) scale(1.02);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
}

@keyframes hero-aura-sharpen {
  0%, 100% {
    filter: contrast(1.16) saturate(0.92) sepia(0.12);
    transform: translate(var(--hero-beat-x), var(--hero-beat-y)) rotate(var(--hero-beat-rotate)) scale(var(--hero-beat-scale));
  }
  28% {
    filter: contrast(1.42) saturate(1.05) sepia(0.28) brightness(1.04);
    transform: translate(calc(var(--hero-beat-x) + 1px), calc(var(--hero-beat-y) - 1px)) rotate(calc(var(--hero-beat-rotate) - 0.05deg)) scale(calc(var(--hero-beat-scale) + 0.006));
  }
  58% {
    filter: contrast(1.65) saturate(1.02) sepia(0.38) brightness(0.98) drop-shadow(0 0 24px rgba(95, 54, 21, 0.42));
    transform: translate(calc(var(--hero-beat-x) - 1px), calc(var(--hero-beat-y) + 1px)) rotate(calc(var(--hero-beat-rotate) + 0.04deg)) scale(calc(var(--hero-beat-scale) + 0.004));
  }
  82% {
    filter: contrast(1.32) saturate(0.9) sepia(0.24) brightness(1.02);
  }
}

@keyframes aura-room-swim {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  24% { transform: translate3d(-2px, 2px, 0) scale(1.006); }
  52% { transform: translate3d(2px, -1px, 0) scale(1.009); }
  78% { transform: translate3d(-1px, -2px, 0) scale(1.005); }
}

@keyframes aura-smoke-drift {
  0%, 100% { opacity: 0.34; transform: translate3d(-1px, 2px, 0) scale(1); }
  35% { opacity: 0.52; transform: translate3d(2px, -3px, 0) scale(1.015); }
  70% { opacity: 0.42; transform: translate3d(-3px, 1px, 0) scale(1.008); }
}

@keyframes card-flame-aura {
  0%, 100% {
    opacity: 0.42;
    transform: translate3d(0, 7px, 0) scale(0.985, 0.96);
    filter: blur(18px);
  }
  38% {
    opacity: 0.62;
    transform: translate3d(-3px, -12px, 0) scale(1.015, 1.09) skewX(-1.5deg);
    filter: blur(15px);
  }
  68% {
    opacity: 0.5;
    transform: translate3d(4px, -6px, 0) scale(1.03, 1.04) skewX(1.2deg);
    filter: blur(17px);
  }
}

body.hero-aura-surge {
  cursor: crosshair;
}

body.hero-aura-surge::after {
  content: '';
  position: fixed;
  inset: -8%;
  z-index: 9;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0 18%, rgba(63, 33, 12, 0.24) 34%, transparent 54%),
    radial-gradient(circle at 30% 20%, rgba(111, 66, 25, 0.16), transparent 28%),
    radial-gradient(circle at 72% 74%, rgba(28, 17, 8, 0.28), transparent 34%),
    repeating-linear-gradient(90deg, rgba(120, 78, 38, 0.025) 0 1px, transparent 1px 8px);
  mix-blend-mode: soft-light;
  opacity: 0.66;
  animation: aura-smoke-drift 3.2s ease-in-out infinite;
}

body.hero-aura-surge #page-socials > :not(#center-stage),
body.hero-aura-surge #center-stage > :not(#hero) {
  filter: blur(7px) brightness(0.62) contrast(1.38) saturate(0.82) sepia(0.28);
  animation: aura-room-swim 4.2s ease-in-out infinite;
}

body.hero-aura-surge #bg-video {
  filter: blur(10px) contrast(1.55) saturate(0.72) brightness(0.66) sepia(0.36);
  transform: scale(1.028);
}

#hero.hero-aura-surge-card {
  z-index: 20;
  border-color: rgba(156, 102, 47, 0.34);
  background:
    radial-gradient(ellipse at 18% 100%, rgba(72, 40, 16, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(8, 7, 5, 0.95) 0%, rgba(1, 1, 1, 0.82) 100%);
  box-shadow:
    0 38px 120px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(125, 79, 36, 0.18),
    0 0 78px rgba(61, 34, 13, 0.46),
    0 22px 60px rgba(15, 8, 3, 0.62);
  backdrop-filter: blur(4px) saturate(0.92) contrast(1.28) sepia(0.2);
  -webkit-backdrop-filter: blur(4px) saturate(0.92) contrast(1.28) sepia(0.2);
  animation: hero-aura-sharpen 2.4s cubic-bezier(0.22, 0.86, 0.2, 1) infinite;
}

#hero.hero-aura-surge-card > * {
  position: relative;
  z-index: 2;
}

#hero.hero-aura-surge-card::before,
#hero.hero-aura-surge-card::after {
  content: '';
  position: absolute;
  inset: -58px -52px -70px;
  border-radius: inherit;
  pointer-events: none;
}

#hero.hero-aura-surge-card::before {
  z-index: 0;
  background:
    radial-gradient(ellipse at 10% 94%, rgba(0, 0, 0, 0.96) 0 12%, rgba(54, 31, 12, 0.44) 23%, transparent 48%),
    radial-gradient(ellipse at 28% 102%, rgba(13, 8, 3, 0.98) 0 15%, rgba(100, 58, 23, 0.38) 28%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.96) 0 18%, rgba(88, 48, 16, 0.42) 33%, transparent 60%),
    radial-gradient(ellipse at 72% 102%, rgba(18, 10, 4, 0.98) 0 14%, rgba(120, 72, 29, 0.32) 30%, transparent 56%),
    radial-gradient(ellipse at 91% 95%, rgba(0, 0, 0, 0.94) 0 12%, rgba(60, 35, 14, 0.42) 24%, transparent 50%);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: card-flame-aura 2.8s ease-in-out infinite;
}

#hero.hero-aura-surge-card::after {
  z-index: 1;
  inset: -34px -28px -46px;
  background:
    conic-gradient(from 214deg at 15% 102%, transparent 0 12%, rgba(0, 0, 0, 0.82) 17%, rgba(111, 67, 28, 0.22) 23%, transparent 32% 100%),
    conic-gradient(from 198deg at 38% 102%, transparent 0 10%, rgba(20, 11, 4, 0.82) 16%, rgba(125, 76, 31, 0.2) 25%, transparent 35% 100%),
    conic-gradient(from 225deg at 63% 102%, transparent 0 11%, rgba(0, 0, 0, 0.84) 18%, rgba(96, 57, 22, 0.2) 27%, transparent 36% 100%),
    conic-gradient(from 204deg at 85% 102%, transparent 0 12%, rgba(14, 8, 3, 0.82) 18%, rgba(120, 73, 32, 0.18) 26%, transparent 34% 100%);
  opacity: 0.44;
  mix-blend-mode: soft-light;
  animation: card-flame-aura 2.1s ease-in-out infinite reverse;
}

#hero.hero-aura-surge-card #hero-name {
  color: #efe8dc;
  text-shadow:
    0 0 1px rgba(255, 246, 226, 0.72),
    0 0 18px rgba(109, 68, 29, 0.5),
    0 0 42px rgba(0, 0, 0, 0.78);
}

.donate-explainer {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.donate-explainer-title,
.donate-recent-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(221, 210, 255, 0.78);
}

.donate-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.donate-perk {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(206, 147, 216, 0.18);
  background: rgba(206, 147, 216, 0.08);
  font-size: 0.66rem;
  color: #f2e7ff;
}

.donate-supporters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.72rem;
  color: rgba(221, 226, 240, 0.76);
}

.donate-supporters-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
}

.donate-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.donate-amount-btn,
.donate-refresh-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ece8f8;
  border-radius: 12px;
  min-height: 38px;
  font-family: 'Space Mono', monospace;
  font-size: 0.74rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.donate-amount-btn:hover,
.donate-refresh-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(206, 147, 216, 0.3);
  background: rgba(206, 147, 216, 0.12);
}

.donate-amount-btn.is-active {
  border-color: rgba(91, 211, 255, 0.42);
  background: rgba(91, 211, 255, 0.14);
  color: #f8fcff;
}

.donate-refresh-btn {
  width: 100%;
  margin-top: 10px;
}

.donate-recent {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.donate-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.donate-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  color: rgba(236, 240, 248, 0.78);
}

.donate-recent-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donate-recent-amount {
  color: #f3d4ff;
  font-family: 'Space Mono', monospace;
}

.donate-recent-empty {
  font-size: 0.7rem;
  color: rgba(208, 214, 230, 0.48);
}

.donate-status-msg {
  margin-top: 12px;
  min-height: 18px;
  font-size: 0.72rem;
  color: rgba(228, 235, 247, 0.76);
}

.donate-status-msg.is-error {
  color: #ff9b9b;
}

@media (max-width: 1040px) {
  #hub-nav-btn {
    position: relative;
    right: auto;
    top: auto;
    width: min(100%, 720px);
    margin: 0 auto;
  }

  #left-rail > #donate-widget {
    position: static;
    right: auto;
    bottom: auto;
    width: min(100%, 720px);
    transform: none;
  }
}

@media (max-width: 640px) {
  #hub-nav-btn {
    min-width: 0;
    padding: 14px 16px;
  }

  .donate-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Creator-coded landing remap */
#center-stage {
  justify-content: center;
  transform: translateY(-10px);
}

#center-stage > #hub-nav-btn {
  position: fixed;
  top: 22px;
  right: 330px;
  width: 300px;
  margin: 0;
  padding: 14px 18px;
  border-radius: 18px;
}

#card-container {
  position: fixed;
  left: 50%;
  top: calc(50% + 168px);
  z-index: 24;
  width: min(760px, calc(100vw - 760px));
  min-width: 420px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  transform: translateX(-50%);
}

.creator-card,
#twitch-chat-btn.chat-card.creator-card {
  min-width: 0;
  min-height: 76px;
  padding: 14px 15px;
  border-radius: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 244, 238, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(10, 11, 18, 0.9), rgba(4, 4, 8, 0.78));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.creator-card::after {
  content: '';
  position: absolute;
  inset: auto 12px 10px 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 244, 238, 0.5), rgba(254, 44, 85, 0.44), transparent);
  opacity: 0.38;
}

.creator-card:hover,
#twitch-chat-btn.chat-card.creator-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 244, 238, 0.24);
  background:
    radial-gradient(circle at 14% 10%, rgba(37, 244, 238, 0.14), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(254, 44, 85, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(13, 14, 22, 0.96), rgba(5, 5, 10, 0.86));
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.58),
    0 0 28px rgba(37, 244, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.creator-card .card-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: #f6f7fb;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.creator-card .card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.creator-card .label {
  color: rgba(245, 247, 255, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  white-space: normal;
}

.creator-card .card-note {
  color: rgba(190, 198, 215, 0.54);
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  line-height: 1.25;
}

.creator-card .reveal {
  position: absolute;
  top: 14px;
  right: 14px;
  color: rgba(37, 244, 238, 0.68);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.creator-card-primary {
  grid-column: span 1;
  border-color: rgba(37, 244, 238, 0.18);
}

#live-badge {
  top: 12px;
  right: 12px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(254, 44, 85, 0.14);
  border: 1px solid rgba(254, 44, 85, 0.28);
  color: rgba(255, 215, 224, 0.92);
  font-size: 0.52rem;
}

#discord-column {
  top: 96px;
}

#left-rail {
  top: 96px;
  left: 24px;
  right: auto;
}

#left-rail > #donate-widget {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  transform: none;
}

.oauth-google {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}

.oauth-google:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.1);
  color: #fff;
}

#now-playing-bar .np-vibe-btn {
  min-width: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

#now-playing-bar .np-vibe-btn.is-active {
  color: #05060a;
  background: #f6f7fb;
  border-color: #f6f7fb;
}

body.music-filter-lofi #now-playing-bar {
  border-color: rgba(37, 244, 238, 0.28);
  box-shadow: 0 0 22px rgba(37, 244, 238, 0.08);
}

body.music-filter-clean #now-playing-bar {
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1320px) {
  #center-stage > #hub-nav-btn {
    right: 24px;
    top: 22px;
    width: 280px;
  }

  #card-container {
    width: min(640px, calc(100vw - 700px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  #center-stage {
    transform: none;
  }

  #center-stage > #hub-nav-btn,
  #card-container {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: min(100%, 720px);
    min-width: 0;
    transform: none;
    margin: 0 auto;
  }

  #card-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #card-container {
    grid-template-columns: 1fr;
  }
}
