/* aaleaf v6 — cinematic profile */

:root {
  --bg: #00010a;
  --ink: #f7f9ff;
  --muted: #9eb0cc;
  --faint: #5a6a88;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(6, 8, 18, var(--card-alpha, 0.35));
  --card-alpha: 0.35;
  --ice: #67e8f9;
  --sky: #7dd3fc;
  --indigo: #818cf8;
  --rose: #fb7185;
  --ok: #34d399;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --card: min(430px, calc(100vw - 1.4rem));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; background: var(--bg); }

body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; height: 100dvh; }

body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor input { cursor: none; }

img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }
button, input, a { font: inherit; color: inherit; }
button { background: none; border: 0; }
::selection { background: rgba(103, 232, 249, 0.35); color: #fff; }

/* —— Ambient —— */
.noise {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.vignette {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 25%, rgba(0,0,0,.85) 100%);
}

.bg-photo {
  position: fixed; inset: -12%; z-index: 0;
  background: url("../img/bg.jpg") center/cover no-repeat, #00010a;
  filter: saturate(1.35) brightness(0.28) contrast(1.05);
  animation: drift 40s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1.08) translate(-1.5%, -1%); }
  to { transform: scale(1.16) translate(1.5%, 1%); }
}

.mesh {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  transition: transform 0.7s var(--ease);
}

.mesh span {
  position: absolute; border-radius: 50%; filter: blur(80px); mix-blend-mode: screen;
  will-change: transform;
}

.mesh span:nth-child(1) {
  width: 55vmax; height: 55vmax; top: -20%; left: 5%;
  background: radial-gradient(circle, rgba(129,140,248,.55), transparent 70%);
  animation: m1 18s ease-in-out infinite;
}
.mesh span:nth-child(2) {
  width: 45vmax; height: 45vmax; bottom: -15%; right: -10%;
  background: radial-gradient(circle, rgba(103,232,249,.4), transparent 70%);
  animation: m2 22s ease-in-out infinite;
}
.mesh span:nth-child(3) {
  width: 35vmax; height: 35vmax; top: 45%; left: -15%;
  background: radial-gradient(circle, rgba(125,211,252,.3), transparent 70%);
  animation: m3 16s ease-in-out infinite;
}
.mesh span:nth-child(4) {
  width: 28vmax; height: 28vmax; top: 15%; right: 15%;
  background: radial-gradient(circle, rgba(251,113,133,.18), transparent 70%);
  animation: m1 26s ease-in-out infinite reverse;
}

@keyframes m1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(8%,12%) scale(1.15)} }
@keyframes m2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-12%,-8%) scale(1.1)} }
@keyframes m3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(14%,-10%)} }

.fx-canvas, .viz-canvas, .weather-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.fx-canvas { z-index: 2; }
.viz-canvas { z-index: 2; opacity: 0.25; }
.weather-canvas { z-index: 3; }

.scanlines {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0.06;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0,0,0,.45) 3px
  );
}

/* Cursor */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  opacity: 0; transition: opacity .3s; mix-blend-mode: difference;
}
body.has-cursor .cursor.is-on { opacity: 1; }
.cursor__dot {
  position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: #fff;
}
.cursor__ring {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.55);
  transition: transform .2s var(--ease), background .2s;
}
.cursor.is-hover .cursor__ring { transform: scale(1.55); background: rgba(255,255,255,.1); }
.cursor.is-down .cursor__ring { transform: scale(.7); }

/* —— Enter —— */
.enter {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  transition: opacity 1s var(--ease), visibility 1s, filter 1s var(--ease), transform 1s var(--ease);
}
.enter.is-gone {
  opacity: 0; visibility: hidden; pointer-events: none;
  filter: blur(20px); transform: scale(1.04);
}

.enter__veil {
  position: absolute; inset: 0;
  background: rgba(0,1,10,.78);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
}

.enter__beam {
  position: absolute; width: 140%; height: 2px; top: 42%; left: -20%;
  background: linear-gradient(90deg, transparent, var(--ice), var(--indigo), transparent);
  opacity: .35; filter: blur(1px);
  animation: beam 5s ease-in-out infinite;
}
@keyframes beam {
  0%,100% { transform: translateY(-40px) rotate(-8deg); opacity: .2; }
  50% { transform: translateY(40px) rotate(8deg); opacity: .45; }
}

.enter__btn {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  padding: 2.4rem 2.6rem 2rem;
  border-radius: 36px;
  background: rgba(8,10,22,.55);
  border: 1px solid rgba(125,211,252,.18);
  box-shadow:
    0 40px 100px rgba(0,0,0,.55),
    0 0 80px rgba(103,232,249,.08),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  min-width: min(320px, 88vw);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s;
}
.enter__btn:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(103,232,249,.4);
  box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 0 100px rgba(103,232,249,.15);
}

.enter__halo {
  position: absolute; top: 28px; left: 50%; width: 160px; height: 160px;
  margin-left: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(103,232,249,.35), transparent 70%);
  filter: blur(20px); animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(.9); opacity: .5; }
  50% { transform: scale(1.15); opacity: 1; }
}

.enter__avatar-wrap { position: relative; z-index: 2; }
.enter__avatar {
  width: 120px; height: 120px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  box-shadow: 0 0 0 8px rgba(103,232,249,.08), 0 24px 60px rgba(0,0,0,.5);
  transition: transform .5s var(--ease);
}
.enter__btn:hover .enter__avatar { transform: scale(1.06); }

.enter__copy {
  display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; z-index: 2;
}
.enter__kicker {
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--faint);
}
.enter__title {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 5vw, 1.75rem);
  letter-spacing: -.02em; line-height: 1;
  background: linear-gradient(120deg, #fff, var(--sky) 50%, var(--indigo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.enter__sub { font-size: .8rem; color: var(--muted); }
.enter__views {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .2rem; padding: .45rem 1rem; border-radius: 999px;
  font-size: .78rem; color: var(--muted);
  background: linear-gradient(135deg, rgba(103,232,249,.14), rgba(129,140,248,.12));
  border: 1px solid rgba(103,232,249,.28);
  box-shadow: 0 0 40px rgba(103,232,249,.15);
}
.enter__views strong {
  font-family: var(--display); font-weight: 800; font-size: 1rem; color: #fff;
}
.enter__views svg { color: var(--ice); }

.enter__cta {
  z-index: 2; display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .35rem; padding: .65rem 1.4rem; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: #00010a;
  background: linear-gradient(135deg, var(--ice), var(--sky) 40%, var(--indigo));
  box-shadow: 0 10px 30px rgba(103,232,249,.35);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.enter__btn:hover .enter__cta {
  transform: scale(1.04);
  box-shadow: 0 14px 40px rgba(103,232,249,.45);
}
.enter__cta i {
  width: 6px; height: 6px; border-radius: 50%; background: #00010a;
  animation: blink 1.2s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* —— Stage —— */
.stage {
  position: relative; z-index: 5; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 2.5rem 1rem 2rem;
  opacity: 0; transform: translateY(32px) scale(.96); filter: blur(10px);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease), filter 1.05s var(--ease);
}
.stage.is-in { opacity: 1; transform: none; filter: none; }
.stage[hidden] { display: none !important; }

.stage__glow {
  position: absolute; width: min(480px, 90vw); height: 280px;
  bottom: 18%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(103,232,249,.22), transparent 70%);
  filter: blur(40px); pointer-events: none;
}

.stage__inner {
  width: var(--card);
  display: flex; flex-direction: column; align-items: center; gap: 1.35rem;
  position: relative;
}

/* —— Card —— */
.card {
  position: relative; width: 100%; border-radius: 30px; overflow: hidden;
  background:
    linear-gradient(165deg, rgba(255,255,255,.07), transparent 35%),
    var(--glass);
  border: 1px solid rgba(125,211,252,.16);
  box-shadow:
    0 50px 120px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 1px 0 rgba(255,255,255,.1) inset;
  backdrop-filter: blur(36px) saturate(1.6);
  -webkit-backdrop-filter: blur(36px) saturate(1.6);
  transform-style: preserve-3d;
  will-change: transform;
  animation: cardFloat 7s ease-in-out infinite;
}
@keyframes cardFloat {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 10;
  background: linear-gradient(140deg, rgba(103,232,249,.5), transparent 30%, transparent 70%, rgba(129,140,248,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.card__shine {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,20%), rgba(255,255,255,.14), transparent 40%);
  opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light;
}
.card:hover .card__shine { opacity: 1; }

.card__banner { position: relative; height: 158px; overflow: hidden; }
.card__banner-img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 10s var(--ease);
}
.card:hover .card__banner-img { transform: scale(1.14); }
.card__banner-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(6,8,18,.98) 0%, transparent 55%),
    linear-gradient(120deg, rgba(103,232,249,.12), transparent 50%);
}

.icon-btn, .card__share {
  position: absolute; top: .85rem; right: .85rem; z-index: 4;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.14); color: #fff;
  backdrop-filter: blur(12px); transition: transform .25s, background .25s;
}
.icon-btn:hover, .card__share:hover {
  transform: scale(1.08); background: rgba(103,232,249,.2);
}

.card__body { position: relative; z-index: 2; padding: 0 1.4rem 1.55rem; }

/* Avatar */
.avatar-block { margin-top: -64px; margin-bottom: 1rem; }
.avatar-block__frame { position: relative; width: 118px; height: 118px; }
.avatar-block__img {
  width: 118px; height: 118px; border-radius: 50%;
  border: 5px solid #060812; position: relative; z-index: 3;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.avatar-block__ring {
  position: absolute; inset: -6px; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 180deg, var(--ice), var(--indigo), transparent 45%, var(--sky), var(--ice));
  animation: spin 7s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  opacity: .85;
  filter: drop-shadow(0 0 12px rgba(103,232,249,.4));
}
@keyframes spin { to { transform: rotate(360deg); } }

.presence {
  position: absolute; right: 4px; bottom: 6px; z-index: 4;
  width: 22px; height: 22px; border-radius: 50%; background: #060812;
  display: grid; place-items: center; border: 4px solid #060812;
}
.presence__core { width: 12px; height: 12px; border-radius: 50%; background: #94a3b8; }
.presence.is-online .presence__core { background: var(--ok); box-shadow: 0 0 12px rgba(52,211,153,.8); }
.presence.is-idle .presence__core { background: #fbbf24; }
.presence.is-dnd .presence__core { background: var(--rose); box-shadow: inset 0 -3px 0 2px #060812; }
.presence.is-offline .presence__core {
  background: transparent; border: 2.5px solid #94a3b8; box-sizing: border-box;
}

/* Who */
.who { margin-bottom: 1rem; }
.who__row { display: flex; align-items: center; gap: .4rem; }
.who__name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.85rem, 7vw, 2.25rem); letter-spacing: -.04em; line-height: 1;
}
/* legacy single-span name — disabled when .name-fx is active */
.who__name:not(.name-fx) span {
  background: linear-gradient(115deg, #fff 0%, var(--sky) 30%, #c4b5fd 55%, var(--ice) 85%, #fff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s ease-in-out infinite;
  filter: drop-shadow(0 0 32px rgba(103,232,249,.4));
}
@keyframes shimmer {
  0%,100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.chip {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ice), var(--indigo)); color: #00010a;
  box-shadow: 0 0 20px rgba(103,232,249,.5);
}

.who__handle { margin-top: .25rem; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.92); }
.who__type {
  margin-top: .55rem; min-height: 1.4em; font-size: .88rem; color: var(--muted); font-weight: 400;
}
.who__type::after {
  content: ""; display: inline-block; width: .45em; height: 1em; margin-left: 3px;
  vertical-align: -.1em; background: var(--ice); border-radius: 1px;
  animation: blink 1s step-end infinite;
}

.who__meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; color: var(--muted); padding: .38rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.pill--status {
  color: #fecdd3; border-color: rgba(251,113,133,.3); background: rgba(251,113,133,.1);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--rose);
  box-shadow: 0 0 0 0 rgba(251,113,133,.55); animation: live 1.6s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(251,113,133,.5); }
  70% { box-shadow: 0 0 0 8px transparent; }
}

.bio {
  position: relative; font-size: .9rem; line-height: 1.65; color: rgba(247,249,255,.8);
  padding: 1.05rem 1.1rem 1.05rem 1.2rem; border-radius: 18px; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(103,232,249,.06), rgba(129,140,248,.05)), rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.bio::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--ice), var(--indigo));
  box-shadow: 0 0 12px rgba(103,232,249,.5);
}

/* Metrics */
.metrics {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: .55rem; margin-bottom: 1.1rem;
}
.metric {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .15rem; padding: 1rem .4rem; border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.metric:hover {
  transform: translateY(-4px);
  border-color: rgba(103,232,249,.35);
  box-shadow: 0 16px 36px rgba(0,0,0,.35), 0 0 24px rgba(103,232,249,.08);
}
.metric--hero {
  background:
    radial-gradient(100% 90% at 50% 110%, rgba(103,232,249,.3), transparent 55%),
    linear-gradient(160deg, rgba(103,232,249,.16), rgba(129,140,248,.1));
  border-color: rgba(103,232,249,.35);
}
.metric__glow {
  position: absolute; inset: auto 5% -50%; height: 90%;
  background: radial-gradient(circle, rgba(103,232,249,.45), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.metric__ico {
  color: var(--ice); margin-bottom: .15rem;
  filter: drop-shadow(0 0 8px rgba(103,232,249,.6));
}
.metric__value {
  position: relative; font-family: var(--display); font-weight: 800;
  font-size: 1.3rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.metric--hero .metric__value {
  font-size: 1.75rem;
  background: linear-gradient(180deg, #fff, var(--ice));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(103,232,249,.45));
}
.metric__label {
  font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.metric__badge {
  position: absolute; top: 7px; right: 8px; font-size: .62rem; font-weight: 700;
  color: #86efac; background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.35);
  padding: .12rem .4rem; border-radius: 999px;
  animation: pop .5s var(--ease), fade 2.5s ease 1.2s forwards;
}
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes fade { to { opacity: 0; transform: translateY(-8px); } }

/* Player */
.player {
  display: grid; grid-template-columns: 54px 1fr; gap: .95rem;
  padding: 1rem; border-radius: 20px; margin-bottom: 1.15rem;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(103,232,249,.16), transparent 50%),
    linear-gradient(135deg, rgba(103,232,249,.08), rgba(129,140,248,.12));
  border: 1px solid rgba(103,232,249,.2);
  transition: border-color .4s, box-shadow .4s;
}
.player.is-playing {
  border-color: rgba(103,232,249,.45);
  box-shadow: 0 0 60px rgba(103,232,249,.14), inset 0 0 40px rgba(103,232,249,.04);
}

.player__art { position: relative; width: 54px; height: 54px; }
.player__art img {
  width: 54px; height: 54px; border-radius: 14px; object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,.45); position: relative; z-index: 2;
}
.player__disc {
  position: absolute; inset: -4px; border-radius: 16px; opacity: 0;
  border: 1.5px solid transparent;
  border-top-color: var(--ice); border-right-color: var(--indigo);
}
.player.is-playing .player__disc { opacity: 1; animation: spin 1.2s linear infinite; }

.player__main { min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.player__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.player__meta { display: flex; flex-direction: column; min-width: 0; }
.player__now {
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ice);
  margin-bottom: .1rem;
}
.player__title {
  font-weight: 650; font-size: .95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player__artist { font-size: .74rem; color: var(--muted); }

.player__play {
  display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice), var(--indigo));
  color: #00010a;
  box-shadow: 0 8px 24px rgba(103,232,249,.35);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.player__play:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(103,232,249,.5);
}

.player__wave {
  height: 32px; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.25);
}
.player__wave canvas { width: 100%; height: 100%; display: block; }

.player__scrub { display: flex; flex-direction: column; gap: .2rem; }
.player__times {
  display: flex; justify-content: space-between;
  font-size: .62rem; color: var(--faint); font-variant-numeric: tabular-nums;
}
.player__vol { display: flex; align-items: center; gap: .45rem; color: var(--muted); }

.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 999px; background: rgba(255,255,255,.12); outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 0; cursor: pointer;
  box-shadow: 0 0 14px rgba(103,232,249,.7);
}
.range::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; cursor: pointer;
}
.range--vol { max-width: 88px; }

/* Socials */
.socials { display: flex; justify-content: center; gap: .55rem; }
.social {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted);
  text-decoration: none;
  transition: .3s var(--ease);
}
.social:hover, .social:focus-visible {
  color: #fff; background: rgba(103,232,249,.14);
  border-color: rgba(103,232,249,.4); transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,.4), 0 0 24px rgba(103,232,249,.15);
}
.social::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px); padding: .28rem .55rem; border-radius: 8px;
  font-size: .65rem; white-space: nowrap; background: rgba(6,8,18,.95);
  border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: .2s;
}
.social:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

.cred {
  display: flex; align-items: center; gap: .5rem;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(158,176,204,.4);
}
.cred__mark {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ice), var(--indigo));
  box-shadow: 0 0 12px rgba(103,232,249,.5);
}

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 80;
  transform: translateX(-50%) translateY(24px);
  padding: .75rem 1.25rem; border-radius: 999px;
  background: rgba(8,10,22,.95); border: 1px solid rgba(103,232,249,.25);
  font-size: .84rem; opacity: 0; pointer-events: none;
  backdrop-filter: blur(16px);
  transition: .4s var(--ease);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.trail-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; mix-blend-mode: screen; }
.trail-dot {
  position: absolute; top: 0; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103,232,249,.9), transparent 70%);
  opacity: 0;
}

.who__name span.is-glitch {
  text-shadow: -2px 0 rgba(251,113,133,.75), 2px 0 rgba(103,232,249,.75);
  transform: translateX(1px);
}

body.is-party .mesh span:nth-child(1) {
  background: radial-gradient(circle, rgba(255,80,180,.55), transparent 70%);
}
body.is-party .mesh span:nth-child(2) {
  background: radial-gradient(circle, rgba(80,255,160,.4), transparent 70%);
}
body.is-party .who__name span {
  background: linear-gradient(90deg, #ff6bcb, #ffe66d, #7afcff, #c084fc, #ff6bcb);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text;
  animation: shimmer 1.1s linear infinite;
}

.reveal {
  animation: up .8s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 420px) {
  .card__banner { height: 128px; }
  .avatar-block__frame, .avatar-block__img { width: 100px; height: 100px; }
  .avatar-block { margin-top: -52px; }
  .metric--hero .metric__value { font-size: 1.4rem; }
  .enter__btn { padding: 1.8rem 1.5rem 1.5rem; }
  .player { grid-template-columns: 48px 1fr; }
  .player__art, .player__art img { width: 48px; height: 48px; }
}

@media (hover: none), (pointer: coarse) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor input { cursor: auto; }
  .cursor, .trail-layer { display: none !important; }
  .card { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .bg-photo, .card { animation: none; }
  .stage { filter: none; }
}

@supports (padding: max(0px)) {
  .stage { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
  .toast { bottom: max(1.5rem, env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   guns.lol aggressive layer (v7)
   ========================================================================== */

.card--guns {
  background:
    linear-gradient(165deg, rgba(255,255,255,.06), transparent 40%),
    rgba(8, 10, 22, var(--card-alpha, 0.35));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

.badges {
  display: flex;
  gap: .4rem;
  margin: .55rem 0 .35rem;
}

.badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #c4d4f0;
  transition: transform .25s, box-shadow .25s;
}

.badge:hover {
  transform: translateY(-2px) scale(1.08);
}

.badge--verified {
  color: #67e8f9;
  background: rgba(103,232,249,.12);
  border-color: rgba(103,232,249,.35);
  box-shadow: 0 0 16px rgba(103,232,249,.25);
}

.badge--nitro {
  color: #f0abfc;
  background: rgba(240,171,252,.12);
  border-color: rgba(240,171,252,.35);
  box-shadow: 0 0 16px rgba(240,171,252,.2);
}

.badge--booster {
  color: #fb7185;
  background: rgba(251,113,133,.12);
  border-color: rgba(251,113,133,.35);
}

.badge--early {
  color: #fbbf24;
  background: rgba(251,191,36,.12);
  border-color: rgba(251,191,36,.35);
}

/* Username effects */
.name-fx {
  display: inline-flex;
  flex-wrap: wrap;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 7.5vw, 2.4rem);
  letter-spacing: -.04em;
  line-height: 1;
}

.name-fx__char {
  display: inline-block;
  position: relative;
}

/* GLOW — hard neon like guns.lol */
.name-fx--glow .name-fx__char {
  color: #e8f7ff;
  text-shadow:
    0 0 8px rgba(103,232,249,.95),
    0 0 18px rgba(103,232,249,.75),
    0 0 36px rgba(129,140,248,.55),
    0 0 60px rgba(103,232,249,.35);
  animation: nameGlowPulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes nameGlowPulse {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(103,232,249,.9),
      0 0 18px rgba(103,232,249,.7),
      0 0 36px rgba(129,140,248,.5);
    transform: translateY(0);
  }
  50% {
    text-shadow:
      0 0 12px rgba(103,232,249,1),
      0 0 28px rgba(103,232,249,.9),
      0 0 52px rgba(129,140,248,.7),
      0 0 80px rgba(103,232,249,.4);
    transform: translateY(-1px);
  }
}

/* RAINBOW */
.name-fx--rainbow .name-fx__char {
  background: linear-gradient(
    90deg,
    #ff6bcb,
    #ffe66d,
    #7afcff,
    #c084fc,
    #ff6bcb
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowShift 2.2s linear infinite;
  animation-delay: calc(var(--i, 0) * -120ms);
  filter: drop-shadow(0 0 10px rgba(255,107,203,.45));
}

@keyframes rainbowShift {
  to { background-position: 300% center; }
}

/* GLITCH */
.name-fx--glitch {
  position: relative;
  color: #fff;
}

.name-fx--glitch .name-fx__char {
  animation: glitchChar 3s steps(2, end) infinite;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.name-fx--glitch::before,
.name-fx--glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.name-fx--glitch::before {
  color: #67e8f9;
  animation: glitchA 2.5s infinite linear alternate-reverse;
  clip-path: inset(0 0 55% 0);
}

.name-fx--glitch::after {
  color: #fb7185;
  animation: glitchB 2.1s infinite linear alternate-reverse;
  clip-path: inset(45% 0 0 0);
}

@keyframes glitchChar {
  0%, 92%, 100% { transform: none; }
  93% { transform: translate(2px, -1px); }
  95% { transform: translate(-2px, 1px); }
  97% { transform: translate(1px, 2px); }
}

@keyframes glitchA {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 1px); }
  40% { transform: translate(3px, -1px); }
  60% { transform: translate(-2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitchB {
  0% { transform: translate(0); }
  25% { transform: translate(3px, 0); }
  50% { transform: translate(-3px, 1px); }
  75% { transform: translate(2px, -1px); }
  100% { transform: translate(0); }
}

/* SPARKLE name */
.name-fx--sparkle .name-fx__char {
  color: #fff;
  text-shadow: 0 0 12px rgba(255,255,255,.8), 0 0 28px rgba(103,232,249,.6);
  animation: sparklePop 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 90ms);
}

@keyframes sparklePop {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.name-sparks {
  position: absolute;
  inset: -12px -20px;
  pointer-events: none;
  overflow: visible;
}

.name-sparks i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #67e8f9, 0 0 14px #fff;
  animation: sparkFly .9s ease-out forwards;
}

@keyframes sparkFly {
  from { opacity: 1; transform: scale(1) translate(0, 0); }
  to { opacity: 0; transform: scale(0) translate(0, -18px); }
}

/* Hide old single-span name styles conflict */
.who__name.name-fx span:not(.name-fx__char) {
  background: none;
  color: inherit;
  -webkit-background-clip: unset;
  background-clip: unset;
  animation: none;
  filter: none;
}

.who__row .chip { display: none; }

/* Stronger weather visibility cue */
.fx-bg-snow .weather-canvas { opacity: 1; }
.fx-bg-rain .weather-canvas { opacity: .9; }
.fx-bg-stars .weather-canvas { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .weather-canvas, .scanlines, .name-sparks { display: none !important; }
  .name-fx--glow .name-fx__char,
  .name-fx--rainbow .name-fx__char,
  .name-fx--glitch .name-fx__char,
  .name-fx--sparkle .name-fx__char {
    animation: none !important;
  }
}

