:root {
  color-scheme: dark;
  --bg: #08080b;
  --panel: #111116;
  --panel-soft: #18171c;
  --ink: #f5f4f7;
  --muted: #96939f;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #c7fa65;
  --accent-ink: #11150b;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.52) 50%, transparent 100%),
    radial-gradient(1px 1px at 82% 16%, rgba(255,255,255,.38) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 66%, rgba(255,255,255,.3) 50%, transparent 100%),
    radial-gradient(ellipse at 50% 20%, rgba(117, 86, 181, 0.1), transparent 34rem), var(--bg);
  color: var(--ink);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { color: inherit; }
svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.grain {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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)' opacity='.16'/%3E%3C/svg%3E");
}
.topbar { position: absolute; top: 0; left: 0; display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 26px 4.2vw; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -.7px; text-decoration: none; }
.wordmark-mark { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent); border-radius: 9px; color: var(--accent); transform: rotate(-8deg); }
.top-note, .eyebrow, .footer-note { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.top-note { display: flex; align-items: center; gap: 9px; margin: 0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 72%, transparent); }
main { display: grid; min-height: 100vh; place-items: center; padding: 90px 20px 45px; }
.shell { width: min(100%, 690px); }
.lock-card {
  padding: 42px 40px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(24, 24, 33, .96), rgba(15, 15, 21, .98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .04);
  text-align: center;
  animation: arrive 600ms cubic-bezier(.2, .8, .2, 1) both;
}
.lock-glyph { display: grid; width: 54px; height: 54px; margin: 0 auto 25px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); }
.lock-glyph svg { width: 23px; height: 23px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
.lock-card h1 { margin-bottom: 11px; font-size: clamp(27px, 6vw, 34px); letter-spacing: -1.8px; line-height: 1.13; }
.intro { max-width: 290px; margin: 0 auto 27px; color: var(--muted); font-size: 13px; line-height: 1.7; }
form > label, .fields label { display: block; margin-bottom: 7px; color: #d7d5dd; font-size: 11px; font-weight: 700; }
.lock-card form { text-align: left; }
.input-wrap { position: relative; }
.input-wrap input, .fields input, .link-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0d12;
  color: var(--ink);
  transition: border-color 150ms ease, background 150ms ease;
}
.input-wrap input { height: 48px; padding: 0 45px 0 14px; font-size: 13px; }
input::placeholder { color: #696773; }
.input-wrap input:focus, .fields input:focus, .link-row input:focus { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: #101016; outline: none; }
.icon-button { position: absolute; top: 50%; right: 12px; display: grid; width: 26px; height: 26px; padding: 4px; place-items: center; border: 0; background: none; color: #85838f; cursor: pointer; transform: translateY(-50%); }
.primary-button { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-size: 12px; font-weight: 800; transition: filter 150ms ease, transform 150ms ease; }
.lock-card .primary-button { margin-top: 11px; }
.primary-button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.primary-button svg { width: 15px; height: 15px; }
.form-message { min-height: 16px; margin: 8px 0 0; color: #ff9099; font-size: 10px; }
.security-note { margin: 17px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: #85838f; font-size: 10px; line-height: 1.65; }

.profile { animation: arrive 500ms cubic-bezier(.2, .8, .2, 1) both; }
.profile-card { overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 25px; background: rgba(12, 12, 15, .92); box-shadow: 0 28px 90px rgba(0, 0, 0, .48); }
.cover { position: relative; height: 172px; overflow: hidden; background: radial-gradient(ellipse at 50% 115%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 48%), radial-gradient(ellipse at 18% 100%, rgba(110, 79, 161, .2), transparent 46%), linear-gradient(180deg, #09090c, #111116); }
.cover::before { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 10% 28%, rgba(255,255,255,.8) 50%, transparent 100%), radial-gradient(1px 1px at 29% 67%, rgba(255,255,255,.45) 50%, transparent 100%), radial-gradient(1px 1px at 78% 31%, rgba(255,255,255,.7) 50%, transparent 100%), radial-gradient(1px 1px at 90% 72%, rgba(255,255,255,.5) 50%, transparent 100%); content: ""; }
.cover::after { position: absolute; right: 50%; bottom: -125px; width: 370px; height: 210px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; content: ""; transform: translateX(50%) rotate(-14deg); }
.cover > span { position: absolute; top: 22px; left: 20px; color: rgba(255, 255, 255, .58); font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.profile-content { padding: 0 25px 25px; }
.profile-topline { position: relative; display: flex; align-items: flex-end; justify-content: center; margin-top: -49px; }
.avatar { display: grid; width: 94px; height: 94px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 4px solid #101014; border-radius: 50%; background: linear-gradient(145deg, var(--accent), #8872ed); color: #101014; font-size: 27px; font-weight: 800; letter-spacing: -1.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.actions { position: absolute; top: -103px; right: 0; display: flex; gap: 7px; }
.quiet-button, .small-button { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(12, 12, 17, .7); color: #c1bfca; cursor: pointer; font-size: 10px; font-weight: 700; transition: border-color 150ms ease, color 150ms ease, transform 150ms ease; }
.quiet-button:hover, .small-button:hover { border-color: rgba(255, 255, 255, .22); color: white; }
.quiet-button svg { width: 13px; height: 13px; }
.heading { margin-top: 16px; text-align: center; }
.heading h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.15; overflow-wrap: anywhere; text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 18%, transparent); }
.handle { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 7px 0 0; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.verified { display: inline-grid; width: 14px; height: 14px; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--sans); font-size: 10px; font-weight: 900; }
.bio { max-width: 480px; margin: 14px auto 27px; color: #b0aeba; font-size: 12px; line-height: 1.8; text-align: center; overflow-wrap: anywhere; }
.links-heading, .link-editor-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.links-heading h3, .link-editor-heading h3 { margin: 0; color: #d5d3db; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
#linkCount { color: #777581; font-family: var(--mono); font-size: 9px; }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.social-link { position: relative; display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; column-gap: 10px; overflow: hidden; padding: 0 12px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: #101014; color: var(--ink); text-decoration: none; transition: transform 170ms ease, border-color 170ms ease, background 170ms ease; }
.social-link:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 42%, transparent); background: #15151a; }
.social-art { position: relative; display: grid; height: 105px; grid-column: 1 / -1; margin: 0 -12px 10px; overflow: hidden; place-items: center; background: radial-gradient(ellipse at 52% 110%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 48%), linear-gradient(135deg, #201a31, #111116 68%); }
.social-art::before, .social-art::after { position: absolute; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.12); border-radius: 42% 58% 63% 37% / 41% 42% 58% 59%; content: ""; transform: rotate(25deg); }
.social-art::after { width: 106px; height: 106px; border-color: color-mix(in srgb, var(--accent) 34%, transparent); transform: rotate(-22deg); }
.social-art-mark { z-index: 1; color: rgba(255,255,255,.82); font-size: 40px; font-weight: 800; letter-spacing: -3px; text-shadow: 0 0 26px color-mix(in srgb, var(--accent) 56%, transparent); }
.social-link--spotify .social-art { background: radial-gradient(ellipse at 50% 110%, rgba(29,185,84,.35), transparent 56%), linear-gradient(145deg,#141d19,#101014 70%); }
.social-link--soundcloud .social-art { background: radial-gradient(ellipse at 65% 110%, rgba(255,111,0,.34), transparent 55%), linear-gradient(145deg,#21170f,#101014 70%); }
.social-link--instagram .social-art { background: radial-gradient(ellipse at 68% 105%, rgba(210,67,143,.34), transparent 52%), linear-gradient(145deg,#201426,#101014 70%); }
.social-link--tiktok .social-art { background: radial-gradient(ellipse at 55% 110%, rgba(62,202,203,.3), transparent 55%), linear-gradient(145deg,#111c20,#101014 70%); }
.social-link--youtube .social-art { background: radial-gradient(ellipse at 50% 110%, rgba(255,54,54,.34), transparent 55%), linear-gradient(145deg,#241414,#101014 70%); }
.social-link--discord .social-art { background: radial-gradient(ellipse at 50% 110%, rgba(88,101,242,.36), transparent 55%), linear-gradient(145deg,#17182a,#101014 70%); }
.social-icon { display: none; }
.social-copy { min-width: 0; }
.social-copy strong, .social-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-copy strong { font-size: 12px; font-weight: 750; }
.social-copy small { margin-top: 4px; color: #85838f; font-size: 10px; }
.link-arrow { width: 14px; height: 14px; color: #777581; }
.empty-state { margin: 0; padding: 17px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); font-size: 11px; text-align: center; }
.profile-foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 17px 0 0; color: #777581; font-family: var(--mono); font-size: 9px; }
.profile-foot span { color: var(--accent); }
.footer-note { margin: 18px 0 0; color: #696773; font-size: 9px; text-align: center; }

.backdrop { position: fixed; z-index: 5; inset: 0; display: flex; overflow-y: auto; align-items: flex-start; justify-content: center; padding: 5vh 16px; background: rgba(5, 5, 8, .78); backdrop-filter: blur(10px); animation: fade-in 160ms ease both; }
.editor { width: min(100%, 520px); max-height: 90vh; overflow-y: auto; padding: 23px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: #14141b; box-shadow: 0 30px 100px rgba(0, 0, 0, .6); animation: arrive 200ms ease both; }
.editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.editor-header h2 { margin: 0; font-size: 20px; letter-spacing: -.8px; }
.editor-header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.close-button { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #1a1a22; color: #c4c2cc; cursor: pointer; font-size: 22px; line-height: 1; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.fields label { font-size: 10px; }
.fields label span { color: var(--muted); font-weight: 400; }
.fields input { height: 38px; padding: 0 10px; font-size: 11px; }
.fields input[type="color"] { width: 52px; padding: 4px; cursor: pointer; }
.wide { grid-column: 1 / -1; }
.link-editor { display: grid; gap: 9px; margin-top: 20px; }
.link-editor-heading { margin-bottom: 0; }
.small-button { min-height: 28px; background: #1b1b23; }
.link-row { display: grid; grid-template-columns: minmax(78px, .7fr) minmax(0, 1.35fr) minmax(75px, .8fr) 30px; gap: 6px; margin-top: 7px; }
.link-row input { height: 35px; padding: 0 8px; font-size: 10px; }
.remove-link { display: grid; width: 30px; height: 35px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #1a151b; color: #e18e96; cursor: pointer; }
.remove-link svg { width: 14px; height: 14px; }
.editor-actions { display: flex; gap: 8px; margin-top: 12px; }
.editor-actions .primary-button { min-height: 40px; }
.reset-button { padding: 0 12px; }
.toast { position: fixed; z-index: 9; right: 20px; bottom: 20px; max-width: calc(100vw - 40px); padding: 11px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); color: var(--ink); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@keyframes arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 520px) {
  .topbar { padding: 19px 20px; }
  .top-note { font-size: 8px; letter-spacing: .04em; }
  main { padding: 78px 15px 32px; }
  .lock-card { padding: 33px 24px 26px; border-radius: 20px; }
  .profile-content { padding-right: 15px; padding-left: 15px; }
  .cover { height: 150px; }
  .profile-topline { margin-top: -45px; }
  .avatar { width: 86px; height: 86px; }
  .actions { top: -91px; right: 0; }
  .quiet-button { min-height: 29px; padding: 0 8px; font-size: 9px; }
  .heading { margin-top: 19px; }
  .bio { margin-bottom: 23px; }
  .links { grid-template-columns: 1fr; gap: 9px; }
  .social-link { grid-template-columns: minmax(0, 1fr) 16px; column-gap: 8px; padding: 0 10px 10px; }
  .social-art { height: 82px; margin: 0 -8px 8px; }
  .social-art::before { width: 116px; height: 116px; }
  .social-art::after { width: 82px; height: 82px; }
  .social-art-mark { font-size: 32px; }
  .social-copy strong { font-size: 10px; }
  .social-copy small { font-size: 8px; }
  .editor { padding: 18px 15px; }
  .link-row { grid-template-columns: minmax(70px, .7fr) minmax(0, 1.2fr) 30px; }
  .link-row input:last-of-type { grid-column: 1 / 3; }
  .link-row .remove-link { grid-column: 3; grid-row: 1; }
  .editor-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
