/* ALTS — public profile styles (also used by dashboard preview + landing demo) */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: #06080d; -webkit-font-smoothing: antialiased; }

.lp {
  --accent: #a5b8e0; --accent-rgb: 165,184,224; --text: #e8ecf5; --muted: #8e99b0; --card-rgb: 14,21,36; --card-a: .55;
  --card-blur: 16px; --radius: 22px; --card-w: 460px; --glow: 0px; --avatar: 104px; --icon: 22px; --name: 30px; --name2: #c7d2fe;
  --icon-color: var(--accent);
  color: var(--text);
  min-height: 100vh; min-height: 100dvh;
  position: relative; overflow-x: hidden;
  cursor: var(--cursor, auto);
}
.lp a, .lp button { cursor: var(--cursor-pointer, pointer); }
.lp-has-cursor * { cursor: var(--cursor) !important; }
.lp-has-cursor a, .lp-has-cursor button, .lp-has-cursor [role="button"] { cursor: var(--cursor-pointer) !important; }

.lp-bg, .lp-dim, .lp-fx { position: fixed; inset: 0; }
.lp-bg { z-index: 0; overflow: hidden; }
.lp-bg-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-dim { z-index: 1; pointer-events: none; }
.lp-fx { z-index: 2; width: 100%; height: 100%; pointer-events: none; }

.lp-stage {
  position: relative; z-index: 3;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 16px 24px;
}
.lp-stage.is-waiting .lp-card, .lp-stage.is-waiting .lp-watermark { visibility: hidden; }

/* ---------- card ---------- */
.lp-card {
  position: relative;
  width: min(var(--card-w), 100%);
  padding: 32px 26px 20px;
  border-radius: var(--radius);
  transition: transform .18s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
.lp-card.style-glass { background: rgba(var(--card-rgb), var(--card-a)); backdrop-filter: blur(var(--card-blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(140%); }
.lp-card.style-solid { background: rgba(var(--card-rgb), var(--card-a)); }
.lp-card.style-outline { background: transparent; border: 1px solid rgba(var(--accent-rgb), .45); }
.lp-card.style-none { background: none; padding-left: 8px; padding-right: 8px; }
.lp-card.has-border.style-glass, .lp-card.has-border.style-solid { border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.lp-card.has-glow { box-shadow: 0 0 var(--glow) rgba(var(--accent-rgb), .42), inset 0 1px 0 rgba(255,255,255,.04); }
.lp-card.anim-fade { animation: lpFade .8s cubic-bezier(.2,.8,.2,1) backwards; }
.lp-card.anim-zoom { animation: lpZoom .7s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes lpFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lpZoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* header */
.lp-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px; }
.align-left .lp-head { flex-direction: row; align-items: center; text-align: left; gap: 16px; }
.lp-id { min-width: 0; }
.lp-avatar { width: var(--avatar); height: var(--avatar); flex: none; border-radius: 50%; overflow: hidden; position: relative; background: rgba(var(--accent-rgb), .12); }
.lp-avatar.shape-rounded { border-radius: 26%; }
.lp-avatar.shape-square { border-radius: 10px; }
.lp-avatar.ring { overflow: visible; box-shadow: 0 0 0 3px rgba(var(--card-rgb), 1), 0 0 0 5px var(--accent), 0 0 28px rgba(var(--accent-rgb), .35); }
.lp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.lp-avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 700; font-size: calc(var(--avatar) * .42); color: var(--accent); }

.lp-name { position: relative; display: inline-block; margin: 0; font-size: var(--name); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.lp-handle { margin-top: 3px; font-size: 13.5px; color: var(--muted); letter-spacing: -0.01em; }

.fx-glow { text-shadow: 0 0 18px rgba(var(--accent-rgb), .55), 0 0 2px rgba(var(--accent-rgb), .35); }
.fx-gradient, .fx-rainbow, .fx-shimmer { -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-gradient { background-image: linear-gradient(90deg, var(--accent), var(--name2)); }
.fx-rainbow { background-image: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1, #ff9ff3, #ff6b6b); background-size: 200% auto; animation: lpShift 4s linear infinite; }
.fx-shimmer { background-image: linear-gradient(110deg, var(--accent) 30%, #ffffff 48%, var(--name2) 66%, var(--accent) 90%); background-size: 250% auto; animation: lpShift 3.2s linear infinite; }
@keyframes lpShift { to { background-position: -200% center; } }
.fx-glitch::before, .fx-glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.fx-glitch::before { color: var(--accent); animation: lpGlitchA 2.6s infinite steps(1); }
.fx-glitch::after { color: #ff3d81; animation: lpGlitchB 2.6s infinite steps(1); }
@keyframes lpGlitchA {
  0%, 86%, 100% { transform: none; clip-path: inset(0 0 100% 0); }
  88% { transform: translate(-3px, -1px); clip-path: inset(10% 0 55% 0); }
  91% { transform: translate(3px, 1px); clip-path: inset(60% 0 8% 0); }
  94% { transform: translate(-2px, 0); clip-path: inset(30% 0 40% 0); }
}
@keyframes lpGlitchB {
  0%, 87%, 100% { transform: none; clip-path: inset(0 0 100% 0); }
  89% { transform: translate(3px, 1px); clip-path: inset(50% 0 20% 0); }
  92% { transform: translate(-3px, -1px); clip-path: inset(5% 0 70% 0); }
  95% { transform: translate(2px, 0); clip-path: inset(70% 0 5% 0); }
}
.lp-spark { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--accent); pointer-events: none;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: lpTwinkle 2.4s ease-in-out infinite; opacity: 0; }
@keyframes lpTwinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.lp-typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: var(--accent); animation: lpBlink 1s steps(1) infinite; }
@keyframes lpBlink { 50% { opacity: 0; } }

/* badges */
.lp-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 11px; }
.align-left .lp-badges { justify-content: flex-start; }
.lp-badge { position: relative; display: inline-flex; align-items: center; justify-content: center; outline: none; color: var(--bc); }
.lp-badges.tone-accent .lp-badge { color: var(--accent); }
.lp-badges.tone-mono .lp-badge { color: var(--text); opacity: .85; }
.lp-badges.is-icons { gap: 4px; padding: 5px 9px; border-radius: 999px; width: fit-content; margin-inline: auto;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); }
.align-left .lp-badges.is-icons { margin-inline: 0; }
.lp-badges.is-icons.no-box { padding: 0; background: none; border: 0; gap: 6px; }
.lp-badges.is-icons .lp-badge { width: 22px; height: 22px; }
.lp-badges.is-icons .lp-badge .ic { width: 17px; height: 17px; }
.lp-badges.is-icons .lp-badge:hover { transform: translateY(-1px); }
.lp-badge { transition: transform .15s ease; }
.lp-badges.has-glow .lp-badge .ic { filter: drop-shadow(0 0 5px currentColor); }
.lp-badges.is-chips .lp-badge { gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: -0.01em;
  background: color-mix(in srgb, currentColor 12%, transparent); border: 1px solid color-mix(in srgb, currentColor 26%, transparent); }
.lp-badges.is-chips .ic { width: 14px; height: 14px; }
.lp-badges.is-chips.no-box { gap: 4px 12px; }
.lp-badges.is-chips.no-box .lp-badge { padding: 0; background: none; border: 0; }
.lp-badge-img { width: 17px; height: 17px; object-fit: contain; border-radius: 3px; }
.lp-badges.is-chips .lp-badge-img { width: 15px; height: 15px; }

/* tooltips */
.lp [data-tip] { position: relative; }
.lp [data-tip]:hover::after, .lp [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: rgba(8,10,9,.94); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; padding: 7px 9px; border-radius: 8px;
  white-space: nowrap; pointer-events: none; z-index: 20; border: 1px solid rgba(255,255,255,.08); font-family: inherit;
  animation: lpTip .12s ease-out;
}
@keyframes lpTip { from { opacity: 0; transform: translate(-50%, 3px); } }

/* bio + meta */
.lp-bio { margin: 16px 0 0; font-size: 14.5px; line-height: 1.6; white-space: pre-line; color: var(--text); opacity: .82; overflow-wrap: anywhere; }
.lp-bio.is-typewriter { min-height: 1.55em; }
.align-center .lp-bio { text-align: center; }
.lp-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 13px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.align-left .lp-meta { justify-content: flex-start; }
.lp-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.lp-meta-item .ic { width: 14px; height: 14px; }

/* icons */
.ic { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; }

/* socials */
.lp-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 20px; }
.align-left .lp-socials { justify-content: flex-start; margin-left: -8px; }
.lp-social { display: grid; place-items: center; width: calc(var(--icon) + 18px); height: calc(var(--icon) + 18px); border-radius: 12px;
  color: var(--icon-color); background: transparent; border: 0; padding: 0; text-decoration: none; transition: transform .18s ease, background .18s ease; font: inherit; }
.lp-social .ic { width: var(--icon); height: var(--icon); }
.lp-social:hover, .lp-social:focus-visible { background: rgba(var(--accent-rgb), .12); color: var(--accent); transform: translateY(-2px); outline: none; }
.lp-socials.has-glow .ic { filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 55%, transparent)); }

/* link buttons */
.lp-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; }
.lp-link { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: max(10px, calc(var(--radius) * .55));
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); color: var(--text); text-decoration: none;
  font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; width: 100%; transition: background .18s, border-color .18s, transform .18s; }
.lp-link:hover, .lp-link:focus-visible { background: rgba(var(--accent-rgb), .1); border-color: rgba(var(--accent-rgb), .35); transform: translateY(-1px); outline: none; }
.lp-link-ic { color: var(--icon-color); width: 19px; height: 19px; }
.lp-link-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-link-sub { color: var(--muted); font-weight: 400; font-size: 13px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-link-arrow { color: var(--muted); width: 16px; height: 16px; }

/* discord */
.lp-discord { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; border-radius: 14px; text-align: left;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); }
.lp-discord-empty { font-size: 12.5px; color: var(--muted); }
.lp-dc-av { position: relative; width: 42px; height: 42px; flex: none; }
.lp-dc-av img { width: 42px; height: 42px; border-radius: 50%; display: block; }
.lp-dc-status { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid rgb(var(--card-rgb)); background: #80848e; }
.lp-dc-status.s-online { background: #23a55a; } .lp-dc-status.s-idle { background: #f0b232; } .lp-dc-status.s-dnd { background: #f23f43; }
.lp-dc-info { flex: 1; min-width: 0; }
.lp-dc-name { font-size: 14px; font-weight: 700; }
.lp-dc-act { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.lp-dc-art { width: 42px; height: 42px; border-radius: 8px; flex: none; }

/* player — docked at the bottom of the page, not inside the card */
.lp-player { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40;
  width: min(360px, calc(100vw - 28px)); border-radius: 999px; overflow: hidden;
  background: rgba(var(--card-rgb), .76); border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.9);
  animation: lpPlayerIn .55s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: .3s; }
@keyframes lpPlayerIn { from { opacity: 0; transform: translate(-50%, 16px); } }
.lp.has-player .lp-stage { padding-bottom: 104px; }

/* the progress quietly fills the pill */
.lp-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(var(--accent-rgb), .12);
  border-right: 1px solid rgba(var(--accent-rgb), .5); transition: width .25s linear; pointer-events: none; }
.lp-seek { position: absolute; inset: 0; border: 0; background: none; padding: 0; cursor: pointer; }
.lp-body { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 14px 9px 9px; pointer-events: none; }
.lp-body > * { pointer-events: auto; }
.lp-play { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(var(--accent-rgb), .16); color: var(--accent); transition: background .15s, transform .15s; }
.lp-player.is-playing .lp-play { background: var(--accent); color: rgb(var(--card-rgb)); }
.lp-play:hover { transform: scale(1.06); }
.lp-play-ic { width: 14px; height: 14px; margin-left: 1px; }
.lp-player.is-playing .lp-play-ic { margin-left: 0; }
.lp-track { flex: 1; min-width: 0; }
.lp-track-title { font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-track-sub { display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.lp-cap { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lp-time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-eq { display: none; align-items: flex-end; gap: 2px; height: 8px; }
.lp-player.is-playing .lp-eq { display: inline-flex; }
.lp-eq i { width: 2px; height: 3px; border-radius: 1px; background: var(--accent); animation: lpEq .9s ease-in-out infinite; }
.lp-eq i:nth-child(2) { animation-delay: .25s; }
.lp-eq i:nth-child(3) { animation-delay: .5s; }
@keyframes lpEq { 0%, 100% { height: 3px; } 50% { height: 8px; } }
.lp-mute { width: 26px; height: 26px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 8px; flex: none; }
.lp-mute .ic { width: 15px; height: 15px; }
.lp-mute:hover { color: var(--text); background: rgba(255,255,255,.07); }

/* mini: a round button with the progress as a ring */
.lp-player.is-mini { width: 52px; height: 52px; left: auto; right: 20px; transform: none; border-radius: 50%;
  display: grid; place-items: center; padding: 0; background: rgba(var(--card-rgb), .8); overflow: visible;
  animation-name: lpPlayerInMini; }
@keyframes lpPlayerInMini { from { opacity: 0; transform: translateY(14px); } }
.lp-player.is-mini .lp-play { width: 40px; height: 40px; grid-area: 1 / 1; }
.lp-ring { grid-area: 1 / 1; width: 52px; height: 52px; transform: rotate(-90deg); }
.lp-ring-track { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 2.5; }
.lp-ring-prog { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }

/* footer */
.lp-foot { display: flex; justify-content: center; margin-top: 18px; padding-top: 14px; font-size: 12px; color: var(--muted); opacity: .85;
  border-top: 1px solid rgba(255,255,255,.09); }
.lp-card.style-none .lp-foot, .lp-card.style-outline .lp-foot { border-top-color: rgba(var(--accent-rgb), .22); }
.align-left .lp-foot { justify-content: flex-start; }
.lp-foot.is-corner { position: absolute; top: 14px; right: 14px; z-index: 2; margin: 0; padding: 0; border: 0; opacity: .9; }
.lp-foot.is-corner.has-box { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.lp-foot.is-corner.has-box .lp-views .ic { width: 14px; height: 14px; }
.lp-views { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.lp-views .ic { width: 15px; height: 15px; }
.lp-watermark { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.42); text-decoration: none; font-family: 'Instrument Sans', system-ui, sans-serif; transition: color .2s; }
.lp-watermark .ic { width: 15px; height: 10px; }
.lp-watermark:hover { color: var(--accent); }

/* enter screen */
.lp-enter { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; transition: opacity .6s ease, backdrop-filter .6s ease; outline: none; }
.lp-enter.style-blur { background: rgba(0,0,0,.3); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.lp-enter.style-dark { background: #000; }
.lp-enter.style-minimal { background: rgba(0,0,0,.55); }
.lp-enter.out { opacity: 0; pointer-events: none; }
.lp-enter-text { font-size: 17px; letter-spacing: .03em; color: var(--text); text-shadow: 0 0 18px rgba(var(--accent-rgb), .55); animation: lpPulse 2.2s ease-in-out infinite; user-select: none; padding: 0 24px; text-align: center; }
@keyframes lpPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* toast + cursor fx */
.lp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: rgba(10,14,11,.94); color: #fff; border: 1px solid rgba(255,255,255,.08); padding: 10px 14px; border-radius: 10px; font-size: 13px;
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-toast.show { opacity: 1; transform: translate(-50%, 0); }
.lp-cursor-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
.lp-cursor-glow { position: fixed; left: 0; top: 0; width: 320px; height: 320px; border-radius: 50%; pointer-events: none; z-index: 2; }

@media (max-width: 520px) {
  .lp-card { padding: 24px 18px 18px; }
  .align-left .lp-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-card.anim-fade, .lp-card.anim-zoom, .fx-rainbow, .fx-shimmer, .lp-enter-text, .lp-spark, .fx-glitch::before, .fx-glitch::after { animation: none !important; }
}

/* =========================================================
   Screen effects (scanlines / vignette)
   ========================================================= */
.lp-screen { position: fixed; inset: 0; z-index: 45; pointer-events: none; --fx-a: .5; }
.lp-screen.fx-none { display: none; }
.lp-screen::before, .lp-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; }

/* scanlines */
.fx-scanlines::before {
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.42) 0 1px, transparent 1px 3px);
  opacity: calc(var(--fx-a) * .9);
  mix-blend-mode: multiply;
}

/* vignette */
.fx-vignette::before {
  background: radial-gradient(ellipse 75% 65% at 50% 50%, transparent 40%, rgba(0,0,0,.85) 100%);
  opacity: var(--fx-a);
}
