:root {
  --accent: #a78bfa;
  --card-bg: rgba(16, 18, 26, 0.52);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius: 24px;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #06080e;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
body.gate-active { overflow: hidden; }
img, svg { -webkit-user-drag: none; pointer-events: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hintergrund ---------- */
.spark-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; }
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58vmax 58vmax at 16% 18%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%),
    radial-gradient(52vmax 52vmax at 84% 82%, rgba(56, 189, 248, 0.2), transparent 62%),
    radial-gradient(42vmax 42vmax at 68% 14%, rgba(99, 102, 241, 0.16), transparent 62%),
    #06080e;
  background-size: 180% 180%;
  animation: bgShift 20s ease-in-out infinite alternate;
}
.bg-layer.has-media { background: #000; animation: none; }
.bg-layer img, .bg-layer video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.68); }
@keyframes bgShift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }

.bg-effect { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.bg-effect.crt { background: linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,0.12) 50%); background-size: 100% 4px; opacity: 0.28; }
.bg-effect.snow, .bg-effect.stars {
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80px 120px, rgba(255,255,255,.8), transparent),
    radial-gradient(2px 2px at 140px 60px, #fff, transparent),
    radial-gradient(1px 1px at 170px 170px, #fff, transparent);
  background-size: 200px 200px;
}
.bg-effect.snow { animation: snow 10s linear infinite; }
.bg-effect.stars { animation: twinkle 4s ease-in-out infinite alternate; }
.bg-effect.rain {
  background-image: linear-gradient(to bottom, transparent, rgba(255,255,255,.25));
  background-size: 2px 60px; opacity: .35; animation: rain .5s linear infinite;
}
@keyframes snow { to { background-position: 0 200px; } }
@keyframes rain { to { background-position: 0 60px; } }
@keyframes twinkle { from { opacity: .3; } to { opacity: .9; } }

/* ---------- Enter-Overlay ---------- */
.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 13, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity .65s var(--ease), visibility .65s;
}
.enter-overlay.gone { opacity: 0; visibility: hidden; }
.enter-views {
  position: fixed;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.enter-text {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-shadow: 0 0 18px rgba(255,255,255,.5);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- Lautstärke ---------- */
.vol-widget {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px;
  border-radius: 999px;
  background: rgba(16, 18, 26, 0.62);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: gap .3s var(--ease), padding .3s var(--ease), opacity .5s var(--ease);
}
body.gate-active .vol-widget { opacity: 0; pointer-events: none; }
body.entered .vol-widget { opacity: 1; pointer-events: auto; }
.vol-btn { width: 24px; height: 24px; display: grid; place-items: center; color: rgba(255,255,255,.88); }
.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 4px;
  opacity: 0;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff var(--vol-pct, 55%),
    rgba(255, 255, 255, 0.2) var(--vol-pct, 55%),
    rgba(255, 255, 255, 0.2) 100%
  );
  outline: none;
  cursor: pointer;
  transition: width .3s var(--ease), opacity .25s;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.vol-widget:hover, .vol-widget:focus-within { gap: 8px; padding-right: 14px; }
.vol-widget:hover .vol-slider, .vol-widget:focus-within .vol-slider { width: 92px; opacity: 1; }

/* ---------- Layout & Staggered Reveal ---------- */
.wrapper {
  width: 100%;
  max-width: 476px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.wrapper .card,
.wrapper .player,
.wrapper .footer {
  opacity: 0;
  transform: translateY(16px) scale(.985);
}
.wrapper .card {
  transition: opacity .75s var(--ease) .08s, transform .75s var(--ease) .08s;
}
.wrapper .player {
  transition: opacity .75s var(--ease) .18s, transform .75s var(--ease) .18s;
}
.wrapper .footer {
  transition: opacity .75s var(--ease) .28s, transform .75s var(--ease) .28s;
}
body.entered .wrapper .card,
body.entered .wrapper .player,
body.entered .wrapper .footer {
  opacity: 1;
  transform: none;
}

/* ---------- Karte ---------- */
.card {
  position: relative;
  width: 100%;
  padding: 38px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 28px 75px -18px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform-style: preserve-3d;
  will-change: transform;
}
.card-beam {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(from var(--beam-angle, 0deg), transparent 0 72%, var(--accent) 86%, #fff 91%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: beam 6s linear infinite;
  opacity: 0.72;
}
@property --beam-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes beam { to { --beam-angle: 360deg; } }
.card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.08), transparent 46%);
}

.views-badge {
  position: absolute;
  top: 15px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background .2s, color .2s;
  z-index: 5;
}
.copy-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.tooltip {
  position: absolute;
  top: calc(100% + 6px);
  bottom: auto;
  right: 0;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(12, 14, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.copy-btn:hover .tooltip { opacity: 1; transform: none; }

/* Avatar */
.avatar-wrap {
  position: relative;
  width: 98px;
  height: 98px;
  margin-bottom: 14px;
  transition: transform .3s var(--ease);
}
.avatar-wrap:hover { transform: scale(1.04); }
.avatar-halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 55%, transparent) 0%,
    rgba(56, 189, 248, 0.25) 48%,
    transparent 74%
  );
  filter: blur(14px);
  opacity: 0.72;
  animation: haloPulse 4s ease-in-out infinite alternate;
}
@keyframes haloPulse {
  0%   { transform: scale(0.95); opacity: 0.55; }
  100% { transform: scale(1.08); opacity: 0.85; }
}
.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  image-rendering: pixelated;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  background: #111;
}

/* Name */
.name-row { display: flex; align-items: center; gap: 7px; }
.name {
  position: relative;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.025em;
  background: linear-gradient(120deg, #ffffff 15%, color-mix(in srgb, var(--accent) 35%, #ffffff) 50%, #ffffff 85%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 45%, transparent));
  animation: nameShimmer 6s ease-in-out infinite;
  transition: transform .25s var(--ease), filter .25s var(--ease);
}
.name:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 20px color-mix(in srgb, var(--accent) 75%, transparent));
}
@keyframes nameShimmer {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}
.verified {
  color: #38bdf8;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.55));
  animation: badgeGlow 3s ease-in-out infinite alternate;
}
@keyframes badgeGlow {
  0%   { filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.4)); transform: scale(0.98); }
  100% { filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.85)); transform: scale(1.03); }
}

.location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: .84rem;
  color: var(--muted);
}
.bio {
  margin-top: 11px;
  min-height: 1.45em;
  font-size: .92rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
  line-height: 1.45;
}
.caret { margin-left: 1px; animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* Discord */
.discord-card {
  width: 100%;
  margin-top: 18px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border-radius: 15px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.085);
  transition: background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.discord-card:hover {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.35);
  box-shadow: 0 10px 24px -10px rgba(88, 101, 242, 0.45);
  transform: translateY(-2px);
}
.dc-avatar-wrap { position: relative; width: 42px; height: 42px; flex-shrink: 0; }
.dc-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  image-rendering: auto;
  background: #14161f;
}
.dc-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2.5px solid #15171e;
}
.dc-dot.online  { background: #23a55a; animation: dcPulse 2.4s ease-in-out infinite; }
.dc-dot.idle    { background: #f0b232; }
.dc-dot.dnd     { background: #f23f43; }
.dc-dot.offline { background: #80848e; }
@keyframes dcPulse {
  0%   { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(35, 165, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0); }
}
.dc-info { flex: 1; min-width: 0; }
.dc-name { font-weight: 700; font-size: .92rem; color: #f3f4f6; }
.dc-activity { font-size: .79rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.dc-highlight { color: #c4b5fd; font-weight: 600; }
.dc-right { display: flex; align-items: center; gap: 7px; margin-left: 4px; flex-shrink: 0; }
.dc-tag {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.24);
  color: rgba(199, 210, 254, 0.9);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.dc-logo {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: rgba(129, 140, 248, 0.8);
  transition: color .22s var(--ease), transform .22s var(--ease);
}
.discord-card:hover .dc-logo {
  color: #5865F2;
  transform: scale(1.06);
}

/* ---------- Links Section (Socials & Websites) ---------- */
.links-section {
  width: 100%;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.socials {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 8px;
}
.social-pill {
  height: 36px;
  padding: 0 10px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
  text-decoration: none;
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease), color .22s var(--ease);
}
.social-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.72);
  transition: color .22s var(--ease), filter .22s var(--ease);
}
.social-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-pill:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: color-mix(in srgb, var(--brand, var(--accent)) 50%, transparent);
  box-shadow: 0 8px 20px -8px var(--brand, var(--accent));
}
.social-pill:hover svg {
  color: var(--brand, #fff);
  filter: drop-shadow(0 0 6px var(--brand, #fff));
}

.websites {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 8px;
}
.site-card {
  padding: 10px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.site-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.075);
  border-color: color-mix(in srgb, var(--brand, var(--accent)) 42%, transparent);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand, var(--accent)) 55%, transparent);
}
.site-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand, var(--accent)) 28%, transparent);
  color: var(--brand, var(--accent));
}
.site-icon svg { width: 17px; height: 17px; }
.site-meta { flex: 1; min-width: 0; }
.site-name { font-size: 0.86rem; font-weight: 700; color: #f8fafc; line-height: 1.25; }
.site-domain { font-size: 0.73rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.38);
  transition: transform .22s var(--ease), color .22s var(--ease);
}
.site-card:hover .site-arrow {
  color: rgba(255, 255, 255, 0.88);
  transform: translate(2px, -2px);
}

/* ---------- Player ---------- */
.player {
  width: 100%;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
}
.track-cover { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.player.playing .track-cover { animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); } }
.player-center { flex: 1; min-width: 0; }
.track-meta { display: flex; align-items: center; gap: 6px; font-size: .85rem; white-space: nowrap; overflow: hidden; }
.track-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.track-artist { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.sep { color: var(--muted); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq span { width: 2px; height: 3px; background: var(--accent); border-radius: 1px; }
.player.playing .eq span { animation: eq .9s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: .2s !important; }
.eq span:nth-child(3) { animation-delay: .4s !important; }
.eq span:nth-child(4) { animation-delay: .1s !important; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 12px; } }

.timeline { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.t-lbl { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 28px; }
.progress { position: relative; flex: 1; height: 14px; display: flex; align-items: center; cursor: pointer; }
.progress::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.15);
  transition: height .15s;
}
.progress:hover::after { height: 5px; }
.progress-fill {
  position: relative;
  z-index: 1;
  height: 4px;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffffff 0%, color-mix(in srgb, var(--accent) 45%, #ffffff) 100%);
  transition: height .15s;
}
.progress:hover .progress-fill { height: 5px; }
.progress-knob {
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
  transform: translateY(-50%) scale(0);
  transition: transform .2s;
}
.progress:hover .progress-knob { transform: translateY(-50%) scale(1); }

.controls { display: flex; align-items: center; gap: 2px; }
.ctrl {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.8);
  transition: background .2s, color .2s, transform .15s;
}
.ctrl:hover { background: rgba(255,255,255,.08); color: #fff; }
.ctrl:active { transform: scale(.92); }
.ctrl-play { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #000; }
.ctrl-play:hover { background: #fff; color: #000; transform: scale(1.06); }
.ctrl.active { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: rgba(255,255,255,.5); }
.legal-link { color: inherit; transition: color .2s; }
.legal-link:hover { color: #fff; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade .25s var(--ease);
}
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: rgba(18, 20, 27, 0.94);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  animation: pop .3s var(--ease);
}
@keyframes pop { from { transform: scale(.95); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.seg { display: flex; background: rgba(255,255,255,.06); border-radius: 10px; padding: 3px; }
.seg-btn { padding: 6px 14px; border-radius: 8px; font-size: .85rem; color: var(--muted); transition: all .2s; }
.seg-btn.active { background: rgba(255,255,255,.14); color: #fff; }
.modal-close { font-size: 1.6rem; line-height: 1; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
.modal-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
  padding: 18px 20px;
  overflow-y: auto;
  font-size: .88rem;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  user-select: text;
}
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 999px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }
.modal-legal-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}
.modal-body h4 { color: #fff; margin: 16px 0 4px; font-size: .95rem; }
.modal-body h4:first-child,
.modal-legal-box h4 { margin-top: 0; }
.modal-body p { margin-bottom: 10px; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-body ul { margin: 6px 0 12px 18px; display: flex; flex-direction: column; gap: 5px; }
.modal-body li::marker { color: var(--accent); }
.modal-body strong { color: #f8fafc; font-weight: 600; }
.modal-body a { color: var(--accent); text-decoration: none; }
.modal-body a:hover { text-decoration: underline; }
.modal-note { color: rgba(255, 255, 255, 0.55); font-style: italic; }
.modal-foot {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.legal-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}
.modal-ok { padding: 8px 18px; border-radius: 10px; background: #fff; color: #000; font-weight: 600; font-size: .85rem; }

@media (max-width: 480px) {
  .card { padding: 38px 18px 20px; }
  .name { font-size: 1.65rem; }
  .socials { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
  #rw-btn, #ff-btn { display: none; }
}
@media (max-width: 380px) {
  .websites { grid-template-columns: 1fr; }
  .dc-tag { display: none; }
  .modal-tags { display: none; }
  .modal-foot { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
