/* Profile page look. Values the owner controls arrive as custom properties on .ds-root. */
.ds-root {
  --accent: #fff;
  --font: "Satoshi", system-ui, sans-serif;
  --glass: 0.35;
  --blur: 18px;
  --radius: 22px;
  --ink: #f4f4f6;
  --mute: rgba(244, 244, 246, 0.62);
  position: relative;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
html.ds-nocursor, html.ds-nocursor * { cursor: none !important; }

.ds-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #050507; }
.ds-root.ds-contained .ds-bg { position: absolute; }
.ds-bg-canvas, .ds-bg-media, .ds-bg-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-bg-canvas { filter: blur(var(--bg-blur, 0px)); }
.ds-bg-media > * { filter: blur(var(--bg-blur, 0px)); transform: scale(1.04); }
.ds-bg-shade { position: absolute; inset: 0; pointer-events: none; }
.ds-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ds-stage { display: grid; place-items: start center; min-height: 100svh; padding: clamp(28px, 8vh, 96px) 16px 48px; }
.ds-col { width: min(560px, 100%); display: grid; gap: 14px; perspective: 1200px; }
.ds-root[data-layout="left"] .ds-card { text-align: left; justify-items: start; }

.ds-panel {
  position: relative;
  background: rgba(14, 14, 18, var(--glass));
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

.ds-card {
  display: grid; justify-items: center; text-align: center; gap: 10px;
  padding: 34px 26px 26px; overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}
.ds-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.10), transparent 60%);
}
.ds-card:hover::before { opacity: 1; }
.ds-card.has-banner { padding-top: 0; }
.ds-banner { width: calc(100% + 52px); height: 150px; margin: 0 -26px -54px; background: center/cover; mask-image: linear-gradient(#000 55%, transparent); }

.ds-avatar {
  width: 104px; height: 104px; border-radius: 50%; background: #1a1a1f center/cover; display: grid; place-items: center;
  font-size: 40px; font-weight: 700; position: relative; z-index: 1;
}
.ds-avatar.ring { box-shadow: 0 0 0 3px rgba(5, 5, 7, 0.9), 0 0 0 5px var(--accent); }
.ds-name { margin: 6px 0 0; font-size: clamp(30px, 7vw, 42px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; position: relative; }
.ds-name[data-fx="glow"] { text-shadow: 0 0 18px var(--accent), 0 0 42px color-mix(in srgb, var(--accent) 50%, transparent); }
.ds-name[data-fx="rainbow"] { background: linear-gradient(90deg, #ff4d4d, #ffb84d, #f5ff4d, #4dff88, #4dc3ff, #b84dff, #ff4d4d) 0/200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ds-slide 4s linear infinite; }
.ds-name[data-fx="shine"] { background: linear-gradient(110deg, var(--ink) 40%, var(--accent) 50%, var(--ink) 60%) 0/250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ds-slide 3s linear infinite; }
.ds-name[data-fx="glitch"]::before, .ds-name[data-fx="glitch"]::after { content: attr(data-text); position: absolute; inset: 0; }
.ds-name[data-fx="glitch"]::before { color: #ff2a6d; transform: translate(2px, 0); clip-path: inset(0 0 55% 0); animation: ds-glitch 2.4s steps(1) infinite; mix-blend-mode: screen; }
.ds-name[data-fx="glitch"]::after { color: #05d9e8; transform: translate(-2px, 0); clip-path: inset(50% 0 0 0); animation: ds-glitch 1.9s steps(1) infinite reverse; mix-blend-mode: screen; }
@keyframes ds-slide { to { background-position: -200% 0; } }
@keyframes ds-glitch { 0%, 86%, 100% { transform: translate(0); } 88% { transform: translate(-4px, 1px); } 92% { transform: translate(4px, -1px); } 96% { transform: translate(-2px, 0); } }

.ds-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ds-root[data-layout="left"] .ds-tags { justify-content: flex-start; }
.ds-tag { font-size: 12.5px; color: var(--mute); padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.07); display: inline-flex; align-items: center; gap: 4px; }
.ds-tag.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11.5px; letter-spacing: 0.02em; }
.ds-eye { width: 13px; height: 13px; display: inline-block; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6 5 2 12 2 12s4 7 10 7 10-7 10-7-4-7-10-7zm0 11a4 4 0 110-8 4 4 0 010 8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.ds-type { margin: 2px 0 0; min-height: 1.5em; font-size: 17px; font-weight: 500; }
.ds-type::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: ds-blink 1s steps(1) infinite; }
@keyframes ds-blink { 50% { opacity: 0; } }
.ds-bio { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.55; max-width: 44ch; white-space: pre-line; }

.ds-links { display: grid; gap: 8px; width: 100%; margin-top: 10px; }
.ds-links.icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ds-link {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: calc(var(--radius) * 0.6);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: inherit; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s, border-color 0.2s;
}
.ds-link:hover { transform: translateY(-2px) scale(1.01); background: rgba(255, 255, 255, 0.1); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.ds-links.icons .ds-link { padding: 12px; border-radius: 14px; }
.ds-ico { width: 20px; height: 20px; flex: none; background: var(--accent); mask: var(--i) center/contain no-repeat; -webkit-mask: var(--i) center/contain no-repeat; }
.ds-ico.link { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M10 14a5 5 0 007 0l3-3a5 5 0 00-7-7l-1 1'/%3E%3Cpath d='M14 10a5 5 0 00-7 0l-3 3a5 5 0 007 7l1-1'/%3E%3C/svg%3E"); }
.ds-ico.mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }

.ds-discord { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.ds-dav { width: 48px; height: 48px; border-radius: 50%; background: #5865f2 center/cover; position: relative; flex: none; }
.ds-dst { position: absolute; right: -2px; bottom: -2px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid #0e0e12; background: #80848e; }
.ds-dst.online { background: #23a55a; } .ds-dst.idle { background: #f0b232; } .ds-dst.dnd { background: #f23f43; }
.ds-dname { font-weight: 700; } .ds-dact { color: var(--mute); font-size: 13.5px; }

.ds-player { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; }
.ds-art { width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, #222, #111) center/cover; }
.ds-player.playing .ds-art { animation: ds-pulse 1.6s ease-in-out infinite; }
@keyframes ds-pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); } }
.ds-tmeta { min-width: 0; }
.ds-ttitle { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-tartist { color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); margin-top: 8px; cursor: pointer; }
.ds-fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); }
.ds-times { font: 11px "Geist Mono", ui-monospace, monospace; color: var(--mute); margin-top: 5px; }
.ds-ctr { display: flex; gap: 2px; }
.ds-ib { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: grid; place-items: center; }
.ds-ib::before { content: ""; width: 16px; height: 16px; background: currentColor; mask: var(--m) center/contain no-repeat; -webkit-mask: var(--m) center/contain no-repeat; }
.ds-ib:hover { background: rgba(255, 255, 255, 0.08); }
.ds-ib.play { background: var(--ink); color: #000; }
.ds-ib.play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l13 8-13 8z'/%3E%3C/svg%3E"); }
.playing .ds-ib.play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 4h4v16H6zM14 4h4v16h-4z'/%3E%3C/svg%3E"); }
.ds-ib.prev { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 5h2v14H6zM20 5v14L9 12z'/%3E%3C/svg%3E"); }
.ds-ib.next { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 5h2v14h-2zM4 5v14l11-7z'/%3E%3C/svg%3E"); }

.ds-h { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mute); font-weight: 600; }
.ds-projects { padding: 6px 2px 0; }
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ds-proj { display: block; padding: 8px 8px 12px; color: inherit; text-decoration: none; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
a.ds-proj:hover { transform: translateY(-3px); }
.ds-cover { aspect-ratio: 16/10; border-radius: calc(var(--radius) * 0.55); background: rgba(255, 255, 255, 0.06) center/cover; margin-bottom: 10px; }
.ds-ptitle { font-weight: 700; padding: 0 4px; }
.ds-pdesc { color: var(--mute); font-size: 13px; padding: 2px 4px 0; line-height: 1.45; }
.ds-block { padding: 18px 20px; }
.ds-btext { margin: 0; line-height: 1.6; white-space: pre-line; color: rgba(244, 244, 246, 0.86); }

.ds-made { justify-self: center; margin-top: 10px; font: 12px "Geist Mono", ui-monospace, monospace; color: rgba(255, 255, 255, 0.45); text-decoration: none; letter-spacing: 0.02em; }
.ds-made:hover { color: #fff; }

/* entrance */
.ds-root .ds-in { opacity: 0; }
.ds-root.ds-live .ds-in { animation: ds-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) both; }
.ds-root.ds-live[data-entrance="fade"] .ds-in { animation-name: ds-fade; }
.ds-root.ds-live[data-entrance="zoom"] .ds-in { animation-name: ds-zoom; }
.ds-root[data-entrance="none"] .ds-in { opacity: 1; animation: none !important; }
@keyframes ds-rise { from { opacity: 0; transform: translateY(26px) scale(0.98); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ds-zoom { from { opacity: 0; transform: scale(0.85); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* enter screen */
.ds-enter {
  position: fixed; inset: 0; z-index: 50; border: 0; color: #fff; background: rgba(4, 4, 6, 0.55);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); display: grid; place-items: center;
  font: 600 clamp(15px, 2vw, 18px) var(--font); letter-spacing: 0.3em; text-transform: lowercase;
  transition: opacity 0.8s, backdrop-filter 0.8s, transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}
.ds-root.ds-contained .ds-enter { position: absolute; }
.ds-enter span { position: relative; animation: ds-breathe 2.4s ease-in-out infinite; }
@keyframes ds-breathe { 50% { opacity: 0.45; } }
.ds-enter.gone { opacity: 0; pointer-events: none; backdrop-filter: blur(0); }
.ds-enter.a-zoom.gone { transform: scale(1.6); }
.ds-enter.a-fade.gone { transition-duration: 1.2s; }
.ds-enter.a-slide.gone { transform: translateY(-100%); opacity: 1; }
.ds-enter.a-glitch span::before, .ds-enter.a-glitch span::after { content: attr(data-text); position: absolute; inset: 0; mix-blend-mode: screen; }
.ds-enter.a-glitch span::before { color: #ff2a6d; animation: ds-glitch 1.3s steps(1) infinite; }
.ds-enter.a-glitch span::after { color: #05d9e8; animation: ds-glitch 1.1s steps(1) infinite reverse; }

/* cursor */
.ds-trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9998; }
.ds-cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; --c: #fff; will-change: transform; }
.ds-cursor.off { display: none; }
.ds-cursor.t-dot::before { content: ""; position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--c); transition: transform 0.15s; }
.ds-cursor.t-ring::before { content: ""; position: absolute; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 1.5px solid var(--c); transition: transform 0.2s; }
.ds-cursor.t-ring::after { content: ""; position: absolute; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--c); }
.ds-cursor.t-cross::before, .ds-cursor.t-cross::after { content: ""; position: absolute; background: var(--c); }
.ds-cursor.t-cross::before { width: 22px; height: 1.5px; margin: -0.75px -11px; }
.ds-cursor.t-cross::after { width: 1.5px; height: 22px; margin: -11px -0.75px; }
.ds-cursor.t-blend::before { content: ""; position: absolute; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: transform 0.2s; }
.ds-cursor.t-image img { position: absolute; width: 32px; height: 32px; object-fit: contain; }
.ds-cursor.down::before { transform: scale(0.6); }

@media (max-width: 520px) {
  .ds-card { padding: 28px 18px 20px; }
  .ds-banner { width: calc(100% + 36px); margin: 0 -18px -54px; }
  .ds-player { grid-template-columns: 48px 1fr; }
  .ds-art { width: 48px; height: 48px; }
  .ds-ctr { grid-column: 1 / -1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-root .ds-in { opacity: 1; animation: none !important; }
  .ds-card { transform: none !important; }
}

/* skeletons */
.ds-sk { background-image: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 70%) !important; background-size: 300% 100% !important; animation: ds-shimmer 1.3s ease-in-out infinite; }
.ds-skl { border-radius: 6px; height: 0.95em; width: 9em; max-width: 100%; color: transparent; background: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 255, 255, 0.05) 70%) 0/300% 100%; animation: ds-shimmer 1.3s ease-in-out infinite; margin: 3px 0; }
.ds-skl.short { width: 14em; height: 0.8em; }
@keyframes ds-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .ds-sk, .ds-skl { animation: none; } }
