:root {
  --accent: #a78bfa; --text: #f4f4f5; --bgc: #07060b;
  --card-op: .28; --card-blur: 20px; --shade: .45; --bg-blur: 0px;
  --font: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bgc); color: var(--text); font-family: var(--font);
  -webkit-font-smoothing: antialiased; overflow: hidden; min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }

#bg { position: fixed; inset: calc(var(--bg-blur) * -2); z-index: 0; background: var(--bgc) center / cover no-repeat; filter: blur(var(--bg-blur)); transform: scale(1.02); }
#bg video { width: 100%; height: 100%; object-fit: cover; }
#bg.empty { background: var(--bgc); }
#shade { position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, var(--shade)); pointer-events: none; }
#fx, #trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#fx { z-index: 2; }
#trail { z-index: 50; }

/* enter screen */
#enter {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; cursor: pointer;
  background: rgba(0, 0, 0, .7); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transition: opacity .8s ease, backdrop-filter .8s ease;
}
#enter[hidden] { display: none; }
#enter span { font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: lowercase; animation: breathe 2.4s ease-in-out infinite; color: #ddd; }
#enter.out { opacity: 0; backdrop-filter: blur(0); pointer-events: none; }
@keyframes breathe { 50% { opacity: .45; transform: scale(.97); } }

/* stage + card */
#stage { position: relative; z-index: 5; min-height: 100dvh; display: grid; place-items: center; padding: 30px 18px 110px; perspective: 1200px; overflow-y: auto; height: 100dvh; }
#card {
  position: relative; width: 100%; max-width: 440px; padding: 38px 30px 28px; border-radius: 28px; text-align: center;
  background: rgba(10, 10, 14, var(--card-op));
  backdrop-filter: blur(var(--card-blur)) saturate(1.3); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .09);
  transform-style: preserve-3d; transition: transform .2s ease-out, opacity 1s ease, translate 1s cubic-bezier(.2, 1, .3, 1);
  will-change: transform;
}
body.pre #card { opacity: 0; translate: 0 26px; }
body.glow #card { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 30px 90px -25px color-mix(in srgb, var(--accent) 55%, transparent); }
#card.minimal { background: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none !important; }
#card.wide { max-width: 640px; display: grid; grid-template-columns: auto 1fr; gap: 0 28px; text-align: left; align-items: center; }
#card.wide .av { margin: 0; }
#card.wide .meta { justify-content: flex-start; }
#card.wide .links, #card.wide .row { justify-content: flex-start; }
#card.wide .links, #card.wide .row.stats { grid-column: 1 / -1; }
@media (max-width: 560px) { #card.wide { grid-template-columns: 1fr; text-align: center; } #card.wide .av { margin: 0 auto 16px; grid-row: auto; } #card.wide .meta, #card.wide .links, #card.wide .row { justify-content: center; } }

.av { width: 112px; height: 112px; margin: 0 auto 18px; position: relative; transform: translateZ(50px); }
.av img, .av .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: grid; place-items: center; font-size: 46px; font-weight: 800; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 20%, #000)); }
.av.rounded img, .av.rounded .ph { border-radius: 26px; } .av.square img, .av.square .ph { border-radius: 6px; }
body.glow .av img, body.glow .av .ph { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 40px color-mix(in srgb, var(--accent) 60%, transparent); }

.name { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0; transform: translateZ(40px); overflow-wrap: anywhere; position: relative; display: inline-block; }
.meta { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 6px; transform: translateZ(30px); flex-wrap: wrap; }
.handle { opacity: .6; font-size: 14.5px; }
.badges { display: inline-flex; gap: 5px; }
.bdg { position: relative; width: 20px; height: 20px; display: grid; place-items: center; cursor: default; opacity: .85; }
.bdg svg { width: 16px; height: 16px; }
[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50%; white-space: nowrap;
  padding: 5px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgba(12, 12, 16, .92); color: #fff;
  border: 1px solid rgba(255, 255, 255, .12); pointer-events: none; z-index: 10; font-family: Inter, sans-serif; letter-spacing: 0;
}
.bio { margin: 18px 0 0; font-size: 15.5px; line-height: 1.55; opacity: .92; min-height: 1.55em; white-space: pre-line; transform: translateZ(25px); overflow-wrap: anywhere; }
.bio.tw::after { content: '▍'; color: var(--accent); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; opacity: .7; transform: translateZ(20px); }
.row span { display: inline-flex; align-items: center; gap: 6px; }
.row svg { width: 15px; height: 15px; }

.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; transform: translateZ(35px); }
.links a, .links button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
.links a:hover, .links button:hover { transform: translateY(-4px) scale(1.08); background: rgba(255, 255, 255, .08); }
.links img, .links .svgico svg { width: 24px; height: 24px; display: block; }
body.glow .links img, body.glow .links .svgico { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 80%, transparent)); }
.links.buttons { display: grid; gap: 10px; }
.links.buttons a, .links.buttons button { width: 100%; height: auto; grid-template-columns: 24px 1fr 24px; gap: 12px; padding: 13px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); font-weight: 600; font-size: 15px; text-align: center; }
.links.buttons a:hover, .links.buttons button:hover { transform: translateY(-2px) scale(1.015); background: color-mix(in srgb, var(--accent) 20%, transparent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

/* name effects */
.fx-gradient { background: linear-gradient(100deg, var(--text), var(--accent), var(--text)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 4s linear infinite; }
.fx-rainbow { background: linear-gradient(90deg, #f87171, #fbbf24, #4ade80, #38bdf8, #a78bfa, #f472b6, #f87171); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 3s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }
.fx-neon { color: #fff; text-shadow: 0 0 5px var(--accent), 0 0 15px var(--accent), 0 0 35px var(--accent), 0 0 60px var(--accent); animation: flick 4s infinite; }
@keyframes flick { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .55; } }
.fx-shimmer { background: linear-gradient(110deg, var(--text) 40%, #fff 50%, var(--text) 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.6s linear infinite; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 60%, transparent)); }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.fx-chrome { background: linear-gradient(180deg, #fff 0%, #d4d4dc 42%, #4a4a5a 50%, #e8e8f0 72%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.fx-glitch::before, .fx-glitch::after { content: attr(data-t); position: absolute; inset: 0; }
.fx-glitch::before { color: #ff2d75; clip-path: inset(0 0 58% 0); animation: g1 2.4s infinite steps(1); }
.fx-glitch::after { color: #22d3ee; clip-path: inset(52% 0 0 0); animation: g2 2.9s infinite steps(1); }
@keyframes g1 { 0%, 86%, 100% { transform: none; opacity: 0; } 87% { transform: translate(-4px, -1px); opacity: .9; } 90% { transform: translate(3px, 1px); opacity: .9; } 93% { transform: translate(-1px, 0); opacity: .9; } }
@keyframes g2 { 0%, 80%, 100% { transform: none; opacity: 0; } 81% { transform: translate(4px, 1px); opacity: .9; } 85% { transform: translate(-3px, 0); opacity: .9; } }

/* music player */
#player {
  position: fixed; z-index: 40; left: 50%; bottom: 22px; translate: -50% 0; width: min(440px, calc(100% - 28px));
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: rgba(10, 10, 14, .5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .09); transition: opacity 1s, translate 1s cubic-bezier(.2, 1, .3, 1);
}
#player[hidden] { display: none; }
body.pre #player { opacity: 0; translate: -50% 20px; }
#pp { width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer; flex: none; display: grid; place-items: center; background: var(--accent); color: #000; transition: transform .15s; }
#pp:active { transform: scale(.92); }
#pp svg { width: 18px; height: 18px; fill: #0a0a0a; }
.pmeta { flex: 1; min-width: 0; }
.ptitle { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.ptitle span { display: inline-block; }
.ptitle.scroll span { animation: marquee 12s linear infinite; padding-right: 40px; }
@keyframes marquee { 0%, 15% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.pbar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); margin-top: 7px; cursor: pointer; position: relative; }
.pbar::before { content: ''; position: absolute; inset: -8px 0; }
.pbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.ptime { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; font-family: 'JetBrains Mono', monospace; }
.pvol { display: flex; align-items: center; gap: 4px; }
.pvol svg { width: 18px; height: 18px; fill: currentColor; opacity: .7; flex: none; }
.pvol input { width: 70px; accent-color: var(--accent); }
@media (max-width: 420px) { .pvol input { display: none; } }

#brand { position: fixed; z-index: 30; right: 18px; top: 16px; font-weight: 800; font-size: 14px; opacity: .35; transition: opacity .2s; font-family: Syne, Inter, sans-serif; }
#brand:hover { opacity: .9; }
body.preview #brand { display: none; }

@media (prefers-reduced-motion: reduce) { #card { transition: none; } .fx-glitch::before, .fx-glitch::after { animation: none; display: none; } }

.links button { border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }

/* entrance animations */
body.pre[data-entrance="fade"] #card { translate: none; }
body.pre[data-entrance="zoom"] #card { translate: none; scale: .85; }
body.pre[data-entrance="flip"] #card { translate: none; rotate: x 70deg; }
body.pre[data-entrance="glitch"] #card { translate: none; }
#card { transition: transform .2s ease-out, opacity 1s ease, translate 1s cubic-bezier(.2,1,.3,1), scale 1s cubic-bezier(.2,1,.3,1), rotate 1.1s cubic-bezier(.2,1,.3,1); }
body[data-entrance="glitch"]:not(.pre) #card { animation: cardglitch .6s steps(2) 1; }
@keyframes cardglitch { 0% { clip-path: inset(10% 0 60% 0); translate: -12px 0; } 25% { clip-path: inset(50% 0 20% 0); translate: 10px 0; } 50% { clip-path: inset(0 0 80% 0); translate: -6px 0; } 75% { clip-path: inset(70% 0 0 0); translate: 6px 0; } 100% { clip-path: none; translate: none; } }

/* glare */
.glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; z-index: 3; mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.35), transparent 55%); transition: opacity .3s; }

/* avatar decorations */
.av { transition: scale .08s linear; }
.av.decor-ring::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid var(--accent); border-top-color: transparent; border-left-color: transparent; animation: spin 3s linear infinite; }
.av.rounded.decor-ring::after { border-radius: 32px; } .av.square.decor-ring::after { border-radius: 12px; }
.av.decor-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ripple 2.2s ease-out infinite; }
.av .orbit { position: absolute; inset: -12px; animation: spin 6s linear infinite; pointer-events: none; }
.av .orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); top: 50%; left: -3px; }
.av .orbit i:nth-child(2) { left: auto; right: -3px; width: 4px; height: 4px; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }

/* name effects */
.fx-wave span { display: inline-block; animation: wave 1.8s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-7px); } }

/* stats row extras */
.like { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0; transition: color .2s; }
.like:hover { color: #fff; }
.like.on svg { fill: #ff4d6d; stroke: #ff4d6d; }
.like.pop svg { animation: pop .4s cubic-bezier(.3,1.8,.5,1); }
@keyframes pop { 50% { transform: scale(1.5); } }
.row .clock b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.row { opacity: 1; } .row > * { opacity: .7; } .row > .like.on { opacity: 1; }

/* discord presence */
.discord { display: flex; align-items: center; gap: 12px; margin: 18px auto 0; padding: 10px 12px; max-width: 340px; text-align: left; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); transform: translateZ(22px); }
#card.wide .discord { margin-left: 0; grid-column: 1 / -1; }
.dc-av { position: relative; width: 40px; height: 40px; flex: none; }
.dc-av img { width: 100%; height: 100%; border-radius: 50%; }
.dc-av i { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; border: 3px solid #111; background: #80848e; }
.dc-av i.dc-online { background: #23a55a; } .dc-av i.dc-idle { background: #f0b232; } .dc-av i.dc-dnd { background: #f23f43; }
.dc-info { min-width: 0; flex: 1; } .dc-info b { display: block; font-size: 14px; }
.dc-info span { display: block; font-size: 12.5px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-art { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.dc-miss { font-size: 12.5px; opacity: .6; }

/* visualizer */
.viz { display: block; width: 100%; height: 34px; margin-top: 18px; grid-column: 1 / -1; }

/* toast */
.note { position: fixed; left: 50%; top: 22px; translate: -50% 0; z-index: 70; padding: 9px 14px; border-radius: 10px; font-size: 13px; background: rgba(10,10,10,.9); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); transition: opacity .3s, translate .3s; animation: notein .25s ease-out; }
.note.out { opacity: 0; translate: -50% -8px; }
@keyframes notein { from { opacity: 0; translate: -50% -8px; } }

/* screen overlays */
#overlay { position: fixed; inset: 0; z-index: 55; pointer-events: none; display: none; }
body[data-overlay="scanlines"] #overlay, body[data-overlay="vhs"] #overlay, body[data-overlay="crt"] #overlay { display: block; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }
body[data-overlay="noise"] #overlay, body[data-overlay="vhs"] #overlay::after { display: block; content: ''; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
  opacity: .09; animation: noise .5s steps(4) infinite; }
body[data-overlay="noise"] #overlay { inset: -50%; }
@keyframes noise { 0% { transform: translate(0,0); } 25% { transform: translate(-4%,3%); } 50% { transform: translate(3%,-4%); } 75% { transform: translate(-2%,-2%); } }
body[data-overlay="vignette"] #overlay, body[data-overlay="crt"] #overlay::before { display: block; content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.75) 100%); }
body[data-overlay="crt"] #overlay { animation: crtflicker 4s infinite; }
@keyframes crtflicker { 0%, 100% { opacity: 1; } 48% { opacity: .92; } 50% { opacity: 1; } 52% { opacity: .95; } }
body[data-overlay="vhs"] #stage { animation: vhs 5s infinite steps(1); }
@keyframes vhs { 0%, 91%, 100% { filter: none; transform: none; } 92% { filter: drop-shadow(3px 0 0 rgba(255,0,60,.6)) drop-shadow(-3px 0 0 rgba(0,200,255,.6)); transform: translateX(4px); } 95% { filter: drop-shadow(-2px 0 0 rgba(255,0,60,.6)) drop-shadow(2px 0 0 rgba(0,200,255,.6)); transform: translateX(-3px) skewX(2deg); } }
@media (prefers-reduced-motion: reduce) { body[data-overlay] #stage, #overlay, #overlay::after { animation: none !important; } }

/* embeds */
.embeds { display: grid; gap: 10px; width: 100%; margin-top: 18px; }
.embed { width: 100%; border: 0; border-radius: 14px; display: block; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.embed.youtube { aspect-ratio: 16 / 9; height: auto; }
.embed.spotify { border-radius: 12px; }

/* ---------- second accent ---------- */
.fx-gradient { background-image: linear-gradient(100deg, var(--accent), var(--accent2), var(--accent)); }

/* ---------- banner ---------- */
#card.has-banner { padding-top: 0; overflow: visible; }
.banner { height: 128px; margin: 0 -30px 0; border-radius: 27px 27px 0 0; background: center / cover no-repeat; position: relative; transform: translateZ(10px);
  mask-image: linear-gradient(#000 55%, transparent); -webkit-mask-image: linear-gradient(#000 55%, transparent); }
#card.has-banner .av { margin-top: -56px; }
#card.wide.has-banner .banner { grid-column: 1 / -1; margin-bottom: 18px; }
#card.wide.has-banner .av { margin-top: -70px; }
#card.minimal .banner { border-radius: 22px; mask-image: none; -webkit-mask-image: none; margin: 0 0 0; }

/* ---------- terminal layout ---------- */
#card.terminal { max-width: 560px; text-align: left; padding: 0 22px 22px; border-radius: 16px; font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: rgba(8, 8, 10, max(var(--card-op), .72)); border-color: rgba(255,255,255,.12); }
.term-bar { display: flex; align-items: center; gap: 7px; margin: 0 -22px 14px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: auto; margin-right: auto; translate: -24px 0; font-size: 12px; opacity: .5; }
.prompt { font-size: 13px; color: var(--accent); margin: 14px 0 8px; opacity: .9; }
.prompt:first-of-type { margin-top: 4px; }
.term-top { display: flex; align-items: center; gap: 18px; }
#card.terminal .av { width: 76px; height: 76px; margin: 0; flex: none; }
#card.terminal .name { font-size: 26px; }
#card.terminal .meta, #card.terminal .row, #card.terminal .links { justify-content: flex-start; }
#card.terminal .bio { margin: 0; text-align: left; }
#card.terminal .bio::before { content: '> '; opacity: .5; }

/* ---------- player: playlist ---------- */
.pskip { display: none; width: 30px; height: 30px; border: 0; border-radius: 9px; background: none; cursor: pointer; color: var(--text); opacity: .7; place-items: center; flex: none; }
.pskip:hover { opacity: 1; background: rgba(255,255,255,.08); }
.pskip svg { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
#player.multi .pskip { display: grid; }
.ptime em { font-style: normal; opacity: .5; margin-left: 6px; }

/* ---------- share ---------- */
#share { position: fixed; z-index: 30; left: 16px; top: 14px; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(10,10,14,.4); backdrop-filter: blur(12px); color: var(--text); cursor: pointer; display: grid; place-items: center; opacity: .6; transition: opacity .2s, transform .15s; }
#share:hover { opacity: 1; transform: translateY(-1px); }
#share[hidden] { display: none; }
#share svg { width: 17px; height: 17px; }
#shareSheet { border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 18px; background: rgba(14,14,18,.95); color: var(--text); width: 260px; text-align: center; font-family: var(--font); }
#shareSheet::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
#shQr { width: 200px; height: 200px; margin: 0 auto 12px; border-radius: 14px; overflow: hidden; background: #fff; padding: 6px; }
#shQr svg { width: 100%; height: 100%; display: block; }
#shLink { font-size: 13px; opacity: .7; margin-bottom: 14px; word-break: break-all; }
.shbtns { display: flex; gap: 8px; }
.shbtns button { flex: 1; padding: 10px; border-radius: 12px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 13.5px; background: var(--accent); color: #000; }
.shbtns button + button { background: rgba(255,255,255,.08); color: var(--text); }
.shbtns button[hidden] { display: none; }

/* ---------- like burst ---------- */
.heart-burst { position: fixed; z-index: 60; pointer-events: none; color: var(--accent); font-size: calc(16px * var(--s)); translate: -50% -50%; animation: hb .85s cubic-bezier(.2,.8,.3,1) forwards; text-shadow: 0 0 10px var(--accent); }
@keyframes hb { to { transform: translate(var(--dx), var(--dy)) scale(.6); opacity: 0; } }
#player svg[hidden], #player [hidden] { display: none !important; }
#stage { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }

/* ---------------- extras ---------------- */
/* card borders */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
#card[data-border="none"] { border-color: transparent; }
#card[data-border="accent"] { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
body #card[data-border="neon"] { border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 16px color-mix(in srgb, var(--accent) 75%, transparent), 0 0 70px -12px var(--accent), inset 0 0 26px color-mix(in srgb, var(--accent) 30%, transparent); }
#card[data-border="spin"] { border-color: transparent; }
#card[data-border="spin"]::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 4;
  background: conic-gradient(from var(--ang), var(--accent), var(--accent2, var(--accent)), transparent 35%, transparent 50%, var(--accent2, var(--accent)), var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: angspin 4s linear infinite; }
@keyframes angspin { to { --ang: 360deg; } }

/* halo + heart avatar */
.av.decor-halo::before { content: ''; position: absolute; left: 50%; top: -20px; width: 62%; height: 20px; translate: -50% 0; border-radius: 50%; z-index: 2;
  border: 3px solid #fde68a; box-shadow: 0 0 14px #fbbf24, inset 0 0 8px #fbbf24; animation: halo 3.2s ease-in-out infinite; }
@keyframes halo { 50% { translate: -50% -6px; } }
.av.heart img, .av.heart .ph { border-radius: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.6 10.3 20C4.2 14.5.2 10.9.2 6.5.2 2.9 3 .2 6.6.2c2 0 4 1 5.4 2.5C13.4 1.2 15.4.2 17.4.2 21 .2 23.8 2.9 23.8 6.5c0 4.4-4 8-10.1 13.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.6 10.3 20C4.2 14.5.2 10.9.2 6.5.2 2.9 3 .2 6.6.2c2 0 4 1 5.4 2.5C13.4 1.2 15.4.2 17.4.2 21 .2 23.8 2.9 23.8 6.5c0 4.4-4 8-10.1 13.5Z'/%3E%3C/svg%3E") center / contain no-repeat; }
body.glow .av.heart img, body.glow .av.heart .ph { box-shadow: none; }
body.glow .av.heart { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 70%, transparent)); }

/* status + tags */
.status { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 12px; padding: 5px 13px 5px 10px; border-radius: 99px; font-size: 13px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); transform: translateZ(30px); overflow-wrap: anywhere; }
.status::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.head .status { display: flex; width: fit-content; margin-inline: auto; }
#card.terminal .head .status, #card.wide .head .status { margin-inline: 0; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; transform: translateZ(25px); }
.tags span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: color-mix(in srgb, var(--accent) 65%, var(--text)); }
#card.terminal .tags, #card.wide .tags { justify-content: flex-start; }

/* countdown + Discord server */
.countdown, .invite { display: flex; align-items: center; gap: 12px; margin: 14px auto 0; max-width: 340px; padding: 10px 12px; border-radius: 14px; text-align: left; transform: translateZ(22px); }
.countdown { justify-content: space-between; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: 13.5px; }
.countdown span { opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.countdown b { flex: none; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; color: var(--accent); }
.invite { background: rgba(88,101,242,.1); border: 1px solid rgba(88,101,242,.32); }
.invite img, .invite .gi { width: 42px; height: 42px; border-radius: 12px; flex: none; background: #5865f2; display: grid; place-items: center; font-weight: 800; object-fit: cover; }
.invite .inf { flex: 1; min-width: 0; }
.invite b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invite span { display: block; font-size: 12px; opacity: .7; white-space: nowrap; }
.invite span i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #23a55a; margin-right: 5px; }
.invite a { flex: none; padding: 7px 15px; border-radius: 9px; background: #23a55a; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: filter .15s; }
.invite a:hover { filter: brightness(1.1); }
.weather svg { color: var(--accent); }

/* sticker wall */
.wallbox { margin: 22px auto 0; max-width: 360px; text-align: left; transform: translateZ(20px); }
.wall-h { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.wall-h em { font-style: normal; }
.wall { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; cursor: crosshair; outline: none;
  background: rgba(0,0,0,.28) radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.4px) 0 0 / 14px 14px; border: 1px dashed rgba(255,255,255,.16); transition: border-color .2s, box-shadow .2s; }
.wall.armed, .wall:focus-visible { border-color: var(--accent); box-shadow: inset 0 0 34px color-mix(in srgb, var(--accent) 20%, transparent); }
.stk { position: absolute; width: 30px; height: 30px; translate: -50% -50%; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.55)); }
.stk.new { animation: stkpop .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes stkpop { from { scale: 0; } }
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.palette button { aspect-ratio: 1; padding: 7px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: inherit;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); transition: transform .15s, background .15s, border-color .15s; }
.palette button:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); }
.palette button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); transform: translateY(-2px); }
.palette svg, .stk svg { width: 100%; height: 100%; display: block; }
.wall-hint { margin-top: 8px; text-align: center; font-size: 12px; opacity: .5; }

/* pet */
#card.has-pet { padding-bottom: 62px; }
.pet { position: absolute; left: 0; bottom: 14px; width: 42px; height: 24px; z-index: 5; cursor: pointer; outline: none; }
.pet.pet-ghost, .pet.pet-frog { width: 36px; }
.pet svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)); }
.pet svg + svg, .pet.f1 svg:first-child { display: none; }
.pet.f1 svg + svg { display: block; }
.pet.flip svg { scale: -1 1; }
.pet.jump { animation: petjump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes petjump { 45% { bottom: 40px; } }
.pet-heart { position: absolute; left: 50%; top: -8px; color: #f43f5e; font-size: 15px; pointer-events: none; animation: petheart .9s ease-out forwards; }
@keyframes petheart { to { opacity: 0; translate: -50% -28px; scale: 1.4; } }

/* wide layout: extras span both columns */
#card.wide > .countdown, #card.wide > .invite, #card.wide > .wallbox { grid-column: 1 / -1; }

/* low detail mode */
body.lowfx #card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(10,10,14,.86); }
body.lowfx #bg { filter: none !important; }
body.lowfx #card[data-border="spin"]::after { animation: none; }
.lowfx-ask { position: fixed; left: 50%; bottom: 100px; translate: -50% 0; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 14px; border-radius: 14px; font-size: 13px;
  background: rgba(12,12,16,.94); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 50px -20px #000; animation: stkpop .35s cubic-bezier(.2,1,.3,1); }
.lowfx-ask button { border: 0; cursor: pointer; padding: 6px 12px; border-radius: 9px; font: inherit; font-weight: 600; color: inherit; background: rgba(255,255,255,.08); }
.lowfx-ask button.on { background: #fff; color: #000; }
@media (prefers-reduced-motion: reduce) { #card[data-border="spin"]::after, .av.decor-halo::before { animation: none; } }
/* the card may never be wider than the screen, whatever is inside it */
#stage { grid-template-columns: minmax(0, 1fr); }
#card { min-width: 0; }
.invite span { overflow: hidden; text-overflow: ellipsis; }
.tags span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* follows & friends */
.social { display: flex; align-items: center; justify-content: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; transform: translateZ(20px); }
#card.wide .social, #card.terminal .social { justify-content: flex-start; }
#card.wide .social, #card.wide .friends { grid-column: 1 / -1; }
.fc { border: 0; background: none; color: inherit; font: inherit; font-size: 13.5px; cursor: pointer; padding: 0; opacity: .7; transition: opacity .2s; }
.fc b { font-weight: 700; }
.fc:hover:not(:disabled) { opacity: 1; } .fc:disabled { cursor: default; }
.follow { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 13.5px; padding: 8px 20px; border-radius: 99px; background: var(--accent); color: #000; transition: transform .15s, background .2s, color .2s, box-shadow .2s; }
.follow:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px var(--accent); }
.follow:disabled { opacity: .6; cursor: wait; }
.follow.on { background: rgba(255,255,255,.08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.follow .h { display: none; }
.follow.on:hover .t { display: none; } .follow.on:hover .h { display: inline; } .follow.on:hover { color: #ff6b81; }
.friends { margin-top: 18px; transform: translateZ(20px); }
.friends-h { display: flex; justify-content: space-between; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 10px; }
.friends-h button { border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 0; }
.friends-h button:hover { text-decoration: underline; }
.friends-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px 6px; }
.fr { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; color: inherit; text-decoration: none; }
.fr i { font-style: normal; font-size: 11.5px; opacity: .7; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr:hover i { opacity: 1; }
.fr-av, .pav { display: grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.08); font-weight: 700; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.fr-av { width: 44px; height: 44px; font-size: 16px; transition: transform .2s, box-shadow .2s; }
.fr:hover .fr-av { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--accent); }
.fr-av img, .pav img { width: 100%; height: 100%; object-fit: cover; display: block; }
dialog.people { border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 16px; background: rgba(14,14,18,.96); color: var(--text); width: min(360px, calc(100vw - 32px)); font-family: var(--font); }
dialog.people::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.pclose { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: inherit; font-size: 22px; cursor: pointer; opacity: .6; }
.pclose:hover { opacity: 1; }
.ptabs { display: flex; gap: 4px; margin: 0 30px 12px 0; }
.ptabs button { border: 0; background: none; color: inherit; font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 10px; cursor: pointer; opacity: .55; }
.ptabs button.on { opacity: 1; background: rgba(255,255,255,.08); }
.plist { max-height: min(420px, 60vh); overflow-y: auto; display: grid; gap: 2px; scrollbar-width: thin; }
.prow { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.prow:hover { background: rgba(255,255,255,.05); }
.prow div { display: grid; min-width: 0; flex: 1; }
.prow b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow span { font-size: 12.5px; opacity: .55; }
.prow em { font-style: normal; font-size: 11px; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.07); opacity: .8; }
.pav { width: 40px; height: 40px; font-size: 15px; }
.pempty { padding: 26px 8px; text-align: center; opacity: .5; font-size: 13.5px; }
.pclose:focus:not(:focus-visible) { outline: none; }
