:root {
  --accent: #ffffff;
  --accent2: #71717a;
  --accent-rgb: 255, 255, 255;
  --bg-color: #030303;
  --card-alpha: 0.35;
  --card-blur: 16px;
  --card-width: 540px;
  --card-radius: 26px;
  --card-pad: 34px;
  --bass-glow: 0px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --text: #f4f4f6;
  --muted: rgba(244, 244, 246, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading #stage,
body.loading #scroll-bar,
body.loading .hud-top-left,
body.loading .hud-top-right,
body.loading .marquee-bar,
body.loading .player.pos-floating {
  opacity: 0 !important;
  pointer-events: none !important;
}
body.custom-cursor, body.custom-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%23ffffff'/%3E%3Ccircle cx='10' cy='10' r='8' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E") 10 10, auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Scroll progress bar */
#scroll-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px var(--accent);
}

/* Marquee Ticker */
.marquee-bar {
  position: fixed; left: 0; right: 0; z-index: 90; height: 28px;
  background: rgba(8, 8, 12, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.25);
  overflow: hidden; display: flex; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.marquee-bar.top { top: 0; }
.marquee-bar.bottom { bottom: 0; border-bottom: 0; border-top: 1px solid rgba(var(--accent-rgb), 0.25); }
.marquee-track { white-space: nowrap; display: inline-block; padding-left: 100%; animation: ticker 22s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Background & Screen Overlays ---------- */
#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
#bg-gradient, #bg-image, #bg-video, #bg-shader, #bg-yt-wrap {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover; filter: blur(var(--bg-blur, 0px));
  transition: transform 0.25s ease-out;
}
#bg-yt-wrap { pointer-events: none; overflow: hidden; }
#bg-yt-wrap iframe, #bg-yt {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100vh; min-width: 177.78vh;
  transform: translate(-50%, -50%) scale(1.06);
  pointer-events: none; border: 0;
}
body.ken-burns #bg-image { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.12) translate(-1.5%, -1%); } }

#bg-gradient {
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(var(--accent-rgb), 0.36), transparent 60%),
    radial-gradient(50% 50% at 85% 75%, color-mix(in srgb, var(--accent2) 30%, transparent), transparent 60%),
    radial-gradient(40% 40% at 60% 10%, rgba(var(--accent-rgb), 0.22), transparent 60%),
    var(--bg-color);
  background-size: 200% 200%;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
#bg-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, var(--bg-dim, 0.4)); }
#bg-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, var(--vig-alpha, 0.65)) 100%);
}
#bg-scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.28) 3px, rgba(0, 0, 0, 0.28) 4px);
}
#bg-noise {
  position: absolute; inset: -100px; pointer-events: none;
  opacity: var(--noise-alpha, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noiseShift 0.35s steps(2) infinite;
}
@keyframes noiseShift { 50% { transform: translate(20px, -15px); } }

/* Color grading presets */
body.grade-cyberpunk #bg { filter: saturate(1.4) contrast(1.12) hue-rotate(-10deg); }
body.grade-noir #bg { filter: grayscale(1) contrast(1.25); }
body.grade-vaporwave #bg { filter: saturate(1.5) hue-rotate(25deg) contrast(1.08); }
body.grade-emerald #bg { filter: hue-rotate(85deg) saturate(1.2); }
body.grade-crimson #bg { filter: sepia(0.35) hue-rotate(-35deg) saturate(1.6); }
body.grade-sepia #bg { filter: sepia(0.75) contrast(1.1); }
body.chromatic h1, body.chromatic .link { text-shadow: -1.5px 0 #00f0ff, 1.5px 0 #ff0055; }

#particles, #fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#particles { z-index: 1; }
#fx { z-index: 150; }

/* ---------- Floating HUD Corners ---------- */
.hud-top-left, .hud-top-right {
  position: fixed; top: 16px; z-index: 80; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.hud-top-left { left: 16px; }
.hud-top-right { right: 16px; }
.hud-pill, .action-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  font-family: var(--mono);
  background: rgba(12, 12, 18, 0.72); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09); color: var(--text);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.action-pill:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.35); }
.action-pill.liked { color: #f43f5e; border-color: rgba(244, 63, 94, 0.55); box-shadow: 0 0 18px rgba(244, 63, 94, 0.35); }
.action-pill .ico, .hud-pill .ico { width: 14px; height: 14px; }

/* ---------- Enter Screen ---------- */
#enter {
  position: fixed; inset: 0; z-index: 140;
  display: grid; place-items: center;
  background: rgba(3, 3, 6, calc(var(--enter-dim, 80) / 100));
  backdrop-filter: blur(var(--enter-blur, 22px)); -webkit-backdrop-filter: blur(var(--enter-blur, 22px));
  cursor: pointer;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none; -webkit-user-select: none;
}
#enter.fade-out { opacity: 0; pointer-events: none; }
#enter.vault-exit { transform: scale(1.24); filter: blur(10px); opacity: 0; }
.enter-inner {
  text-align: center; padding: 28px; max-width: min(580px, 92vw);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform 0.4s ease;
}
.enter-icon {
  margin-bottom: 14px;
  display: inline-flex; justify-content: center; align-items: center;
  color: var(--enter-color, var(--accent));
  filter: drop-shadow(0 0 16px var(--enter-color, var(--accent)));
  animation: enterIconFloat 2.8s ease-in-out infinite;
}
.enter-icon svg { width: 34px; height: 34px; }
@keyframes enterIconFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.08); }
}

#enter-text {
  font-family: var(--enter-font, inherit);
  font-size: clamp(1.15rem, 3.2vw, 1.6rem); letter-spacing: 0.32em; text-transform: lowercase;
  font-weight: 700; color: var(--enter-color, var(--text));
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.9), 0 0 40px rgba(var(--accent-rgb), 0.45);
  animation: pulse 2.2s ease-in-out infinite;
  transition: color 0.2s, font-size 0.2s, font-family 0.2s;
  line-height: 1.35;
}

/* Enter font sizes */
#enter.size-small #enter-text { font-size: clamp(0.95rem, 2.2vw, 1.15rem); letter-spacing: 0.22em; }
#enter.size-medium #enter-text { font-size: clamp(1.15rem, 3.2vw, 1.6rem); letter-spacing: 0.32em; }
#enter.size-large #enter-text { font-size: clamp(1.45rem, 4.4vw, 2.25rem); letter-spacing: 0.36em; }
#enter.size-huge #enter-text { font-size: clamp(1.85rem, 6vw, 3.2rem); letter-spacing: 0.42em; font-weight: 800; }

/* Enter casing */
#enter.case-lowercase #enter-text { text-transform: lowercase; }
#enter.case-uppercase #enter-text { text-transform: uppercase; }
#enter.case-capitalize #enter-text { text-transform: capitalize; }
#enter.case-none #enter-text { text-transform: none; }

/* Enter style presets */
#enter.style-terminal #enter-text {
  font-family: var(--mono); color: var(--enter-color, #22c55e);
  text-shadow: 0 0 14px var(--enter-color, #22c55e), 0 0 28px rgba(34, 197, 94, 0.4);
}
#enter.style-terminal #enter-text::after {
  content: ' _';
  animation: blink 1s step-end infinite;
}
#enter.style-glitch #enter-text { animation: glitchText 1.6s infinite; }
#enter.style-glass .enter-inner {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 34px 44px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--accent-rgb), 0.2);
}
#enter.style-neon #enter-text {
  color: #ffffff;
  text-shadow:
    0 0 7px #fff,
    0 0 16px var(--enter-color, var(--accent)),
    0 0 36px var(--enter-color, var(--accent)),
    0 0 72px var(--enter-color, var(--accent));
}
#enter.style-portal .enter-inner { position: relative; }
#enter.style-portal .enter-inner::before {
  content: ''; position: absolute; inset: -40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.35) 0%, transparent 70%);
  animation: portalPulse 3s ease-in-out infinite; z-index: -1; pointer-events: none;
}
@keyframes portalPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.95; }
}
#enter.style-lockscreen .enter-icon { margin-bottom: 12px; animation: floatLock 2s ease-in-out infinite; }
@keyframes floatLock {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
#enter.style-simple #enter-text {
  animation: pulseSimple 3s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}
@keyframes pulseSimple {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.45; }
}

.enter-subtext {
  margin-top: 12px; font-family: var(--mono); font-size: 0.74rem; color: var(--muted);
  letter-spacing: 0.18em; opacity: 0.85;
}
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Stage & Card ---------- */
#stage {
  position: relative; z-index: 2;
  min-height: 100vh; display: grid; place-items: center;
  padding: 64px 16px; perspective: 1200px;
  transition: opacity 0.8s ease;
}
#card {
  position: relative; overflow: hidden;
  width: min(var(--card-width), 100%);
  padding: var(--card-pad);
  border-radius: var(--card-radius);
  background: rgba(12, 12, 18, var(--card-alpha));
  backdrop-filter: blur(var(--card-blur)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.1),
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 calc(70px + var(--bass-glow)) rgba(var(--accent-rgb), 0.18);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.12s ease-out;
  animation: rise 0.75s cubic-bezier(.2, .8, .2, 1);
}
#card.align-left { text-align: left; }
#card.align-left .avatar-wrap { margin-left: 0; }
#card.align-left .meta, #card.align-left .socials, #card.align-left .name-row, #card.align-left .handle-row { justify-content: flex-start; }
#card.float-idle { animation: cardFloat 5s ease-in-out infinite; }
@keyframes cardFloat { 50% { translate: 0 -8px; } }
@keyframes rise { from { translate: 0 18px; } to { translate: 0 0; } }

/* Card glare & ambient surface */
.card-glare, .card-ambient { position: absolute; inset: 0; pointer-events: none; z-index: 0; border-radius: inherit; overflow: hidden; }
#card > *:not(.card-glare):not(.card-ambient):not(.card-banner) { position: relative; z-index: 1; }

/* Card Hover Modes */
#card.hover-lift { transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease; }
#card.hover-lift:hover {
  transform: translateY(-7px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72), 0 0 42px rgba(var(--accent-rgb), 0.35);
}
#card.hover-zoom { transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease; }
#card.hover-zoom:hover {
  transform: scale(1.022);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.75), 0 0 38px rgba(var(--accent-rgb), 0.3);
}
#card.hover-cyberGlitch:hover {
  animation: cardGlitchHover 0.35s steps(2) infinite;
  border-color: var(--accent);
}
@keyframes cardGlitchHover {
  0%, 100% { box-shadow: -2px 0 0 rgba(0, 240, 255, 0.45), 2px 0 0 rgba(255, 0, 85, 0.45), 0 24px 80px rgba(0, 0, 0, 0.6); }
  50% { box-shadow: 2px 0 0 rgba(0, 240, 255, 0.45), -2px 0 0 rgba(255, 0, 85, 0.45), 0 24px 80px rgba(0, 0, 0, 0.6); }
}

/* Card Ambient Surface Effects */
.card-ambient.ambient-aurora {
  background:
    radial-gradient(65% 55% at 15% 10%, rgba(var(--accent-rgb), 0.2), transparent 65%),
    radial-gradient(60% 55% at 88% 90%, color-mix(in srgb, var(--accent2) 22%, transparent), transparent 65%);
  animation: drift 10s ease-in-out infinite alternate;
}
.card-ambient.ambient-scanline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 75px;
  background: linear-gradient(to bottom, transparent, rgba(var(--accent-rgb), 0.14), transparent);
  animation: cardScanSweep 4.2s linear infinite;
}
@keyframes cardScanSweep {
  from { top: -80px; }
  to { top: 100%; }
}
.card-ambient.ambient-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, #000 45%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at center, #000 45%, transparent 95%);
}
.card-ambient.ambient-frostedNoise {
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.card-ambient.ambient-pulseGlow {
  box-shadow: inset 0 0 36px rgba(var(--accent-rgb), 0.22);
  animation: pulse 2.6s ease-in-out infinite;
}

/* Card Border Variants */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
#card.border-glow {
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.24), inset 0 0 22px rgba(var(--accent-rgb), 0.06), 0 24px 80px rgba(0, 0, 0, 0.6);
}
#card.border-rainbow::before,
#card.border-laser::before,
#card.border-dualLaser::before,
#card.border-gold::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.8px; pointer-events: none; z-index: 2;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
#card.border-rainbow::before {
  background: conic-gradient(from var(--border-angle), #ff0055, #ff9900, #ffee00, #22c55e, #00f0ff, #a855f7, #ff0055);
  animation: rotateBorderAngle 4s linear infinite;
}
#card.border-laser::before {
  background: conic-gradient(from var(--border-angle), transparent 68%, var(--accent), #fff, var(--accent2));
  animation: rotateBorderAngle 3s linear infinite;
}
#card.border-dualLaser::before {
  background: conic-gradient(from var(--border-angle), transparent 32%, var(--accent) 46%, #fff 50%, transparent 51%, transparent 82%, var(--accent2) 96%, #fff 100%);
  animation: rotateBorderAngle 3.2s linear infinite;
}
#card.border-gold::before {
  background: linear-gradient(135deg, #fde047, #ca8a04, #fef08a, #854d0e, #fde047);
}
@keyframes rotateBorderAngle { to { --border-angle: 360deg; } }
#card.border-electric {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 18px var(--accent), inset 0 0 14px rgba(var(--accent-rgb), 0.25), 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: flicker 3.5s infinite;
}
#card.border-brutal {
  border: 2px solid var(--text);
  box-shadow: 7px 7px 0 var(--accent), 0 24px 80px rgba(0, 0, 0, 0.6);
}
#card.border-dashed { border: 1.5px dashed rgba(var(--accent-rgb), 0.55); }
#card.border-cyber {
  border: 1.5px solid var(--accent);
  clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px));
}
#card.border-none { border: 0; }

/* Card Banner */
.card-banner {
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) -52px;
  height: var(--banner-h, 115px); overflow: hidden; position: relative; z-index: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.card-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(12, 12, 18, 0.92));
}
.card-banner img { width: 100%; height: 100%; object-fit: cover; }

/* Announcement Pill */
.announcement {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 14px; padding: 5px 13px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600;
  background: rgba(var(--accent-rgb), 0.16); border: 1px solid rgba(var(--accent-rgb), 0.45);
  color: var(--text); box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.25);
}

/* ---------- Avatar ---------- */
.avatar-wrap { position: relative; width: 118px; height: 118px; margin: 0 auto 16px; }
.avatar-wrap.float { animation: avatarBob 3.6s ease-in-out infinite; }
@keyframes avatarBob { 50% { transform: translateY(-6px); } }
.avatar-wrap.spin-hover:hover #avatar { transform: rotate(360deg); }
#avatar {
  position: relative; z-index: 1; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; background: #15151c;
  border: 3px solid rgba(12, 12, 18, 0.9);
  transition: transform 0.65s cubic-bezier(.2, .8, .2, 1);
}
.avatar-wrap.shape-squircle #avatar, .avatar-wrap.shape-squircle .avatar-ring { border-radius: 28%; }
.avatar-wrap.shape-hex #avatar, .avatar-wrap.shape-hex .avatar-ring { clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%); border-radius: 0; }
.avatar-wrap.shape-diamond #avatar, .avatar-wrap.shape-diamond .avatar-ring { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); border-radius: 0; }
.avatar-wrap.shape-octagon #avatar, .avatar-wrap.shape-octagon .avatar-ring { clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%); border-radius: 0; }

.avatar-ring {
  position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), transparent 30%, var(--accent2) 50%, transparent 80%, var(--accent));
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.75));
  animation: spin 4s linear infinite;
}
.avatar-wrap.ring-rainbow .avatar-ring {
  background: conic-gradient(#ff0055, #ff9900, #ffee00, #22c55e, #00f0ff, #a855f7, #ff0055);
}
.avatar-wrap.ring-neon .avatar-ring {
  background: none; border: 2.5px solid var(--accent);
  box-shadow: 0 0 18px var(--accent), inset 0 0 14px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
.avatar-wrap.ring-dashed .avatar-ring {
  background: none; border: 2.5px dashed var(--accent);
  animation: spin 10s linear infinite;
}
.avatar-wrap.ring-double .avatar-ring {
  background: none; border: 2px solid var(--accent); outline: 2px solid var(--accent2); outline-offset: 4px;
}
.avatar-wrap.ring-fire .avatar-ring {
  background: conic-gradient(#ef4444, #f97316, #eab308, #ef4444);
  filter: blur(2px) drop-shadow(0 0 16px #ef4444);
}
.avatar-wrap.no-ring .avatar-ring,
.avatar-wrap.no-border .avatar-ring { display: none !important; }
.avatar-wrap.no-ring #avatar,
.avatar-wrap.no-border #avatar { border: none !important; box-shadow: none !important; }
@keyframes spin { to { transform: rotate(1turn); } }

/* Avatar Decoration */
.avatar-deco {
  position: absolute; z-index: 3; left: 50%; top: -22px; transform: translateX(-50%);
  width: 76px; pointer-events: none; color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.6));
}
.avatar-deco.deco-wings { width: 175px; top: 24px; z-index: 0; }
.avatar-deco.deco-glitchFrame { width: 132px; top: -7px; }
.avatar-deco.deco-discord { width: 142px; height: 142px; top: -12px; left: -12px; transform: none; filter: none; }
.avatar-deco.deco-discord img { width: 100%; height: 100%; object-fit: contain; }

/* Status bubble */
.status-bubble {
  position: absolute; z-index: 4; bottom: -2px; right: -8px;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 4px 10px; border-radius: 999px; font-size: 0.71rem; font-weight: 600;
  font-family: var(--mono);
  background: rgba(11, 11, 15, 0.94); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
}
.status-dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 8px #22c55e; flex-shrink: 0;
}

/* ---------- Name & Effects ---------- */
.name-row { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
#name { font-size: clamp(1.75rem, 5vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; word-break: break-word; position: relative; }
.verified-check { width: 21px; height: 21px; color: var(--accent); display: inline-grid; place-items: center; filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.75)); }
.verified-check svg { width: 100%; height: 100%; }

/* Name Effect Modes */
#name.fx-glow { text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.85), 0 0 28px rgba(var(--accent-rgb), 0.5); animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { text-shadow: 0 0 6px rgba(var(--accent-rgb), 0.6), 0 0 16px rgba(var(--accent-rgb), 0.3); } }

#name.fx-rainbow {
  background: linear-gradient(90deg, #ff0055, #ff9900, #ffee00, #22c55e, #00f0ff, #a855f7, #ff0055);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbowText 3.5s linear infinite;
}
@keyframes rainbowText { to { background-position: 200% center; } }

#name.fx-chrome {
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 48%, #475569 52%, #f8fafc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.35));
}

#name.fx-fire {
  background: linear-gradient(0deg, #dc2626, #f97316, #fde047);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 -3px 12px rgba(249, 115, 22, 0.85));
}

#name.fx-glitch { animation: glitchText 2.2s infinite; }
@keyframes glitchText {
  0%, 90%, 100% { text-shadow: none; transform: none; }
  92% { text-shadow: -3px 0 #00f0ff, 3px 0 #ff0055; transform: skewX(-6deg); }
  95% { text-shadow: 3px 0 #00f0ff, -3px 0 #ff0055; transform: skewX(6deg); }
}

#name.fx-neonFlicker {
  color: #fff;
  text-shadow: 0 0 7px #fff, 0 0 16px var(--accent), 0 0 34px var(--accent), 0 0 60px var(--accent);
  animation: flicker 4s infinite;
}
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.4; text-shadow: none; }
}

#name.fx-3d {
  text-shadow: 0 1px 0 #888, 0 2px 0 #777, 0 3px 0 #555, 0 4px 0 #333, 0 8px 20px rgba(var(--accent-rgb), 0.7);
}

#name.fx-wave span { display: inline-block; animation: waveChar 1.6s ease-in-out infinite; }
@keyframes waveChar { 50% { transform: translateY(-6px); color: var(--accent); } }

/* Handle + pronouns */
.handle-row { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 4px; }
.username { color: var(--muted); font-size: 0.94rem; cursor: pointer; font-family: var(--mono); }
.username:hover { color: var(--accent); }
.username:empty { display: none; }
.pronouns { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }

/* Badges */
.badges { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }
.badges:empty { display: none; }
.badge { position: relative; width: 22px; height: 22px; display: grid; place-items: center; color: var(--accent); filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.6)); transition: transform 0.2s; }
.badge:hover { transform: translateY(-2px) scale(1.18); }
.badge .ico { width: 18px; height: 18px; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  background: rgba(10, 10, 14, 0.96); color: var(--text); font-size: 0.72rem; font-weight: 500; white-space: nowrap;
  padding: 5px 9px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0; pointer-events: none; transition: 0.15s; filter: none; z-index: 20;
}
[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* Bio & Quote */
.bio { margin: 16px auto 0; min-height: 1.6em; max-width: 44ch; font-size: 1.02rem; line-height: 1.6; color: rgba(244, 244, 246, 0.9); }
.caret { color: var(--accent); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.quote {
  margin: 12px auto 0; padding: 8px 14px; max-width: 42ch;
  font-size: 0.84rem; font-style: italic; color: var(--muted);
  border-left: 2px solid var(--accent); background: rgba(255, 255, 255, 0.03); border-radius: 0 10px 10px 0;
}

.meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 0.83rem; color: var(--muted); font-family: var(--mono); }
.meta-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-item:empty { display: none; }
.meta-item .ico { width: 14px; height: 14px; color: var(--accent); }

/* Icons */
.ico { display: inline-grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; }
.ico svg, .ico img { width: 100%; height: 100%; object-fit: contain; }
.ico-mask { background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

/* Stats Grid Widget */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px;
  margin-top: 18px;
}
.stat-box {
  padding: 10px 8px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}
.stat-box b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--accent); font-family: var(--mono); }
.stat-box span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Discord Presence */
.discord {
  display: flex; align-items: center; gap: 14px; text-align: left;
  margin-top: 18px; padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07);
}
.dc-avatar { position: relative; width: 50px; height: 50px; flex-shrink: 0; }
.dc-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #222; }
.dc-status { position: absolute; right: -1px; bottom: -1px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid #121218; background: #747f8d; }
.dc-status.online { background: #23a55a; box-shadow: 0 0 8px #23a55a; }
.dc-status.idle { background: #f0b232; }
.dc-status.dnd { background: #f23f43; }
.dc-info { min-width: 0; flex: 1; }
.dc-name { font-weight: 700; display: flex; gap: 6px; align-items: baseline; }
.dc-name .muted { font-weight: 400; font-size: 0.8rem; }
.dc-activity { font-size: 0.83rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-spotify-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); margin-top: 6px; overflow: hidden; }
#dc-spotify-fill { height: 100%; width: 0%; background: #1db954; transition: width 1s linear; }
.dc-art { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.dc-join { padding: 6px 12px; border-radius: 10px; background: #5865F2; color: #fff; font-size: 0.78rem; font-weight: 700; }

/* Socials Row & Shapes */
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.socials:empty { display: none; }
.social {
  position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.socials.shape-circle .social { border-radius: 50%; }
.socials.shape-pill .social { width: 54px; border-radius: 999px; }
.socials.shape-hex .social { clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%); border-radius: 0; }
.socials.shape-minimal .social { background: transparent; border-color: transparent; }
.social:hover, .social:focus-visible {
  transform: translateY(-3px); color: var(--brand, var(--accent));
  background: rgba(var(--accent-rgb), 0.14); border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.45); outline: none;
}

/* Links & Variants */
.links { display: grid; gap: 10px; margin-top: 18px; }
.links:empty { display: none; }
.link {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600; text-align: left;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.link.featured {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.18);
}
.links.shimmer .link::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-20deg); transition: left 0.65s ease; pointer-events: none;
}
.links.shimmer .link:hover::after { left: 160%; }

.links.variant-neon .link { border-color: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.3), inset 0 0 10px rgba(var(--accent-rgb), 0.12); }
.links.variant-solid .link { background: var(--accent); color: #fff; border-color: transparent; }
.links.variant-solid .link .ico { color: #fff; }
.links.variant-outline .link { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.22); }
.links.variant-brutal .link { border-radius: 4px; border: 2px solid var(--text); box-shadow: 4px 4px 0 var(--accent); background: #0d0d12; }
.links.variant-cyber .link { border-radius: 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); border-left: 3px solid var(--accent); }
.links.variant-minimal .link { background: rgba(255, 255, 255, 0.025); border-color: transparent; }

.link .ico { width: 20px; height: 20px; color: var(--accent); }
.link-body { flex: 1; min-width: 0; }
.link .t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link .sub { display: block; font-size: 0.76rem; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.link-badge { padding: 2px 7px; border-radius: 999px; font-size: 0.66rem; font-weight: 800; font-family: var(--mono); background: var(--accent); color: #fff; text-transform: uppercase; }
.link-clicks { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); }
.link .arrow { width: 16px; height: 16px; opacity: 0.45; transition: 0.2s; }
.link:hover, .link:focus-visible { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), 0.65); background: rgba(var(--accent-rgb), 0.12); box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.28); outline: none; }
.link:hover .arrow { opacity: 1; transform: translate(2px, -2px); }

/* ---------- Extra Widgets (Skills, Countdown, Crypto, Embed, Gallery, Guestbook) ---------- */
.widget-box {
  margin-top: 18px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}
.widget-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; font-family: var(--mono); }

/* Skills */
.skills-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 9px;
  font-size: 0.78rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.16s, transform 0.16s, background 0.16s;
}
.skill-pill:hover {
  border-color: color-mix(in srgb, var(--sc, var(--accent)) 55%, transparent);
  background: color-mix(in srgb, var(--sc, var(--accent)) 10%, rgba(255, 255, 255, 0.03));
  transform: translateY(-1px);
}
.skill-ico { width: 14px; height: 14px; color: var(--sc, var(--accent)); flex-shrink: 0; }
.skills-bars { display: grid; gap: 9px; }
.skill-bar-row { font-size: 0.79rem; }
.skill-bar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; font-weight: 600; }
.skill-bar-label { display: inline-flex; align-items: center; gap: 7px; }
.skill-bar-track { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 999px; background: var(--sc, var(--accent)); }

/* Countdown */
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.cd-cell { padding: 10px 6px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.06); }
.cd-cell b { display: block; font-size: 1.25rem; font-family: var(--mono); color: var(--accent); }
.cd-cell span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; }

/* Crypto Wallets */
.crypto-list { display: grid; gap: 7px; }
.crypto-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 11px; border-radius: 11px; background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06); cursor: pointer; transition: 0.15s;
}
.crypto-row:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }
.crypto-coin { font-weight: 800; font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.crypto-addr { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }

/* Embed */
.embed-box { padding: 0; overflow: hidden; }
.embed-box iframe { width: 100%; height: 152px; border: 0; display: block; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 8px; }
.gallery-item { position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.08); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.08); }

/* ================= Music Player ================= */
.player {
  display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 14px;
  border-radius: 18px; text-align: left;
  background: rgba(18, 18, 24, 0.58);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}

/* Vinyl Disc */
.pl-disc {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background:
    radial-gradient(circle at center, #0a0a0e 16%, #222 18%, #111 20%, var(--accent) 22%, #14141c 52%, #08080c 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 0 4px rgba(255, 255, 255, 0.2);
  animation: spin 3.5s linear infinite; animation-play-state: paused;
  position: relative;
}
.pl-disc::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 45%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}
.player.playing .pl-disc { animation-play-state: running; }

/* Buttons */
.pl-btn {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  color: var(--text); opacity: 0.82; transition: all 0.16s ease; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}
.pl-btn:hover { opacity: 1; color: var(--accent); background: rgba(255, 255, 255, 0.1); transform: scale(1.06); }
.pl-btn svg { width: 14px; height: 14px; }
.pl-main {
  width: 36px; height: 36px; background: var(--accent); color: #fff; opacity: 1;
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.55);
}
.pl-main:hover { color: #fff; background: var(--accent); transform: scale(1.08); box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.8); }
.pl-main svg { width: 16px; height: 16px; }

/* Body */
.pl-body { flex: 1; min-width: 0; margin: 0 4px; }
.pl-title-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pl-title { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; flex: 1; color: var(--text); }
.pl-title span { display: inline-block; }
.pl-title.scroll span { animation: marquee 10s linear infinite; padding-left: 100%; }
.pl-time { font-size: 0.68rem; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.pl-vis { width: 100%; height: 20px; display: block; margin-top: 3px; border-radius: 2px; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Progress Bar */
.pl-bar {
  height: 4px; margin-top: 6px; border-radius: 9999px; background: rgba(255, 255, 255, 0.14);
  cursor: pointer; overflow: hidden; transition: height 0.15s ease;
}
.pl-bar:hover { height: 6px; }
#pl-progress {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 10px var(--accent); border-radius: 9999px; transition: width 0.1s linear;
}

/* Volume Control */
.pl-vol { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
#pl-volume {
  width: 58px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18);
  outline: none; -webkit-appearance: none; appearance: none; cursor: pointer; transition: 0.15s;
}
#pl-volume::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent); cursor: pointer; transition: transform 0.15s;
}
#pl-volume::-webkit-slider-thumb:hover { transform: scale(1.25); }
#pl-volume::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: none;
  box-shadow: 0 0 8px var(--accent); cursor: pointer;
}

/* ================= Distinct Player Styles ================= */

/* 1. Frosted Glassmorphism */
.player.style-glass {
  background: rgba(18, 18, 26, 0.52);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  border-radius: 20px;
}

/* 2. Compact Pill Capsule (e-z.bio modern capsule) */
.player.style-pill {
  border-radius: 9999px;
  padding: 8px 14px;
  background: rgba(12, 12, 18, 0.76);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  gap: 8px;
}
.player.style-pill .pl-disc { width: 30px; height: 30px; }
.player.style-pill .pl-main { width: 32px; height: 32px; }
.player.style-pill .pl-btn { width: 26px; height: 26px; }
.player.style-pill .pl-bar { height: 3px; }
.player.style-pill #pl-volume { width: 48px; }

/* 3. Retro Vinyl Turntable */
.player.style-vinyl {
  border-radius: 20px;
  padding: 13px 15px;
  background: linear-gradient(135deg, rgba(26, 26, 32, 0.88), rgba(12, 12, 16, 0.96));
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65), inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.player.style-vinyl .pl-disc {
  width: 42px; height: 42px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.player.style-vinyl .pl-badge {
  display: inline-block; font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; color: #d4af37; background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 4px; padding: 2px 6px;
  margin-right: 4px; text-transform: uppercase;
}

/* 4. Ultra-Clean Borderless */
.player.style-minimal {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 8px 2px;
  border-radius: 0;
}
.player.style-minimal .pl-main {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}
.player.style-minimal .pl-main:hover {
  transform: scale(1.15);
  color: var(--accent);
}
.player.style-minimal .pl-btn { background: transparent; }
.player.style-minimal .pl-bar {
  background: rgba(255, 255, 255, 0.08);
  height: 2px;
}
.player.style-minimal .pl-bar:hover { height: 4px; }

/* 5. Cyberpunk HUD Deck */
.player.style-cyber {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background: rgba(6, 12, 22, 0.92);
  border: 1px solid var(--accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.35), inset 0 0 14px rgba(var(--accent-rgb), 0.12);
  font-family: var(--mono);
  border-radius: 0;
}
.player.style-cyber .pl-title { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.player.style-cyber .pl-main {
  border-radius: 3px; background: var(--accent);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.player.style-cyber .pl-btn { border-radius: 3px; }
.player.style-cyber .pl-badge {
  display: inline-block; font-family: var(--mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--accent); background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid var(--accent); border-radius: 2px; padding: 1px 5px; margin-right: 4px;
}

/* 6. Floating Docked Bottom Bar */
.player.pos-floating, .player.style-floating {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  width: min(460px, calc(100vw - 32px));
  margin-top: 0;
  border-radius: 9999px;
  padding: 8px 16px;
  background: rgba(10, 10, 16, 0.82);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 28px rgba(var(--accent-rgb), 0.25);
}

/* Guestbook */
.gb-form { display: flex; gap: 6px; margin-bottom: 10px; }
.gb-form input {
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px; padding: 7px 10px; color: var(--text); font: inherit; font-size: 0.8rem; outline: none;
}
.gb-form input:focus { border-color: var(--accent); }
#gb-name { width: 95px; }
#gb-msg { flex: 1; min-width: 0; }
.gb-send { padding: 7px 13px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 700; }
.gb-list { max-height: 150px; overflow-y: auto; display: grid; gap: 6px; padding-right: 4px; }
.gb-item { font-size: 0.79rem; padding: 6px 9px; border-radius: 9px; background: rgba(0, 0, 0, 0.25); }
.gb-item b { color: var(--accent); margin-right: 6px; font-family: var(--mono); }

/* Card Footer */
.card-footer { margin-top: 18px; font-size: 0.72rem; color: var(--muted); font-family: var(--mono); opacity: 0.75; }
.card-footer:empty { display: none; }

/* ---------- Modals (QR / Secret Terminal / Lightbox) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 180; display: grid; place-items: center;
  padding: 16px; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(12px);
}
.modal-card {
  width: min(320px, 100%); padding: 24px; border-radius: 22px;
  background: #101018; border: 1px solid rgba(var(--accent-rgb), 0.4);
  text-align: center; display: grid; gap: 14px; justify-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.term-card {
  width: min(560px, 100%); border-radius: 16px; overflow: hidden;
  background: rgba(8, 8, 12, 0.96); border: 1px solid rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(var(--accent-rgb), 0.2);
  font-family: var(--mono);
}
.term-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px; color: var(--muted);
}
.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.term-dots span:nth-child(2) { background: #eab308; }
.term-dots span:nth-child(3) { background: #22c55e; }
.term-out { height: 250px; overflow-y: auto; padding: 14px; font-size: 12.5px; line-height: 1.55; color: #d4d4d8; white-space: pre-wrap; }
.term-in { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.term-prompt { color: var(--accent); font-weight: 700; }
#term-input { flex: 1; background: none; border: 0; color: #fff; font: inherit; font-size: 13px; outline: none; }

/* Toast */
#toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 220; transform: translate(-50%, 20px);
  padding: 10px 18px; border-radius: 12px; font-size: 0.88rem;
  background: rgba(15, 15, 20, 0.95); border: 1px solid rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.35);
  opacity: 0; pointer-events: none; transition: 0.25s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
  #card { padding: 26px 16px 20px; border-radius: 22px; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  #pl-volume { width: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
