:root {
  --accent: #dfe9ff;
  --accent-rgb: 223, 233, 255;
  --text: #f7f9ff;
  --muted: #c3cee7;
  --panel: rgba(12, 20, 41, 0.56);
  --line: rgba(232, 240, 255, 0.18);
  --shadow: 0 30px 110px rgba(0, 0, 0, 0.56);
  --radius: 28px;
  --bg-dim: 0.24;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #060914;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  position: relative;
  isolation: isolate;
  transition: background-color 1s ease;
}

body.flipped-mode {
  --bg-dim: 0.53;
  background-color: #02040a;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input[type="range"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(230, 240, 255, 0.9);
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: rgba(var(--accent-rgb), 0.3);
}

.bg-art,
.flip-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: opacity, transform, filter;
}

.bg-art {
  background-image:
    linear-gradient(rgba(4, 10, 24, 0.08), rgba(5, 9, 22, 0.34)),
    url("assets/site-bg.png");
  opacity: 1;
  filter: saturate(1.04) contrast(1.02) brightness(0.98);
  transform: scale(1);
  transition: opacity 1s ease, transform 1.15s cubic-bezier(.2,.75,.2,1), filter 1s ease;
}

.flip-bg {
  background-image:
    linear-gradient(rgba(2, 5, 14, 0.08), rgba(2, 5, 14, 0.28)),
    url("assets/flip-bg.png");
  opacity: 0;
  filter: brightness(0.78) saturate(1.04) contrast(1.05);
  transform: scale(1.04);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.2,.75,.2,1), filter 1s ease;
}

body.flipped-mode .bg-art {
  opacity: 0;
  filter: brightness(0.54) saturate(0.72);
  transform: scale(1.025);
}

body.flipped-mode .flip-bg {
  opacity: 1;
  filter: brightness(0.9) saturate(1.08) contrast(1.05);
  transform: scale(1);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(219, 232, 255, 0.16), transparent 30%),
    radial-gradient(circle at 80% 72%, rgba(194, 218, 255, 0.1), transparent 26%),
    linear-gradient(rgba(4, 8, 18, var(--bg-dim)), rgba(3, 5, 12, calc(var(--bg-dim) + 0.12)));
  transition: background 1s ease;
}

.ambient-field,
.film-dots,
.sparkle-film,
.noise,
.scanlines,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-field {
  z-index: -2;
  overflow: hidden;
  opacity: 0.58;
  background:
    radial-gradient(circle at 16% 28%, rgba(255,255,255,.52) 0 1px, transparent 1.7px),
    radial-gradient(circle at 78% 21%, rgba(255,255,255,.46) 0 1px, transparent 1.7px),
    radial-gradient(circle at 65% 76%, rgba(255,255,255,.3) 0 1px, transparent 1.7px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.045), transparent 58%);
  background-size: 180px 180px, 250px 250px, 330px 330px, 100% 100%;
}

.ambient-field::before,
.ambient-field::after {
  content: "DOFI CARD   CATS   DINOSAURS   SOFT SPACE";
  position: absolute;
  left: -8vw;
  color: rgba(255,255,255,.032);
  font-size: clamp(56px, 9vw, 154px);
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-8deg);
}

.ambient-field::before {
  top: 9vh;
}

.ambient-field::after {
  right: -22vw;
  bottom: 3vh;
  left: auto;
  color: rgba(223,233,255,.036);
  transform: rotate(8deg);
}

.film-dots {
  z-index: 80;
  opacity: .12;
  background-image: radial-gradient(circle, rgba(205,225,255,.3) 0 .85px, rgba(0,0,0,.18) 1.1px 1.45px, transparent 1.65px);
  background-size: 16px 16px;
  mix-blend-mode: screen;
  animation: dotShift 24s steps(12, end) infinite;
}

.sparkle-film {
  z-index: 81;
  opacity: .05;
  background: url("assets/dots.gif") 0 0 / 270px auto repeat;
  mix-blend-mode: screen;
  animation: sparkleDrift 28s linear infinite;
}

.noise {
  z-index: 82;
  opacity: .045;
  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='.8'/%3E%3C/svg%3E");
}

.scanlines {
  z-index: 83;
  opacity: .16;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0,0,0,.15) 3px 4px);
  mix-blend-mode: multiply;
}

.vignette {
  z-index: 79;
  box-shadow: inset 0 0 150px 24px rgba(0,0,0,.68);
  transition: box-shadow 1s ease;
}

body.flipped-mode .vignette {
  box-shadow: inset 0 0 190px 46px rgba(0,0,0,.8);
}

/* Entry screen */

.reveal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 9, 22, .36);
  backdrop-filter: blur(19px) saturate(1.08);
  transition: opacity .65s ease, visibility .65s ease;
}

.reveal.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.reveal-card {
  text-align: center;
  animation: float 3.8s ease-in-out infinite;
}

.reveal-logo {
  display: grid;
  width: 94px;
  height: 94px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 29px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 72px rgba(192,215,255,.16), inset 0 0 26px rgba(255,255,255,.04);
}

.reveal-logo span {
  font-size: 42px;
  filter: drop-shadow(0 0 15px rgba(255,255,255,.24));
}

.reveal h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 7vw, 60px);
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.reveal p {
  margin: 0 0 27px;
  color: #d8e3fb;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.reveal-btn {
  padding: 14px 25px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(13,20,38,.58);
  box-shadow: 0 12px 46px rgba(0,0,0,.35);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.reveal-btn:hover {
  border-color: rgba(var(--accent-rgb), .72);
  background: rgba(28,42,72,.65);
  box-shadow: 0 14px 48px rgba(var(--accent-rgb), .17);
  transform: translateY(-2px);
}

/* Profile card */

.page {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  padding: 16px 14px 82px;
  overflow: hidden;
  place-items: center;
}

.shell {
  width: min(100%, 414px);
  perspective: 1350px;
  transform: scale(var(--card-scale, 1));
  transform-origin: center center;
  transition: transform .2s ease;
  will-change: transform;
}

.profile {
  position: relative;
  border-radius: var(--radius);
  transform-style: preserve-3d;
  transition: transform .18s ease-out, filter .25s ease;
  will-change: transform;
}

.profile-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .82s cubic-bezier(.2,.75,.2,1);
  will-change: transform;
}

.profile.flipped .profile-inner {
  transform: rotateY(180deg);
}

.profile-face {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), .23);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.22);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.profile-face::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.1), transparent 31%, transparent 68%, rgba(255,255,255,.045));
  opacity: .82;
}

.profile-face::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px rgba(255,255,255,.13), inset 0 0 0 1px rgba(var(--accent-rgb),.045);
}

.profile-front {
  position: relative;
}

.profile-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #07090f;
  transform: rotateY(180deg);
}

.back-full {
  position: absolute;
  inset: 0;
}

.back-full img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.9) contrast(1.03) saturate(1.08);
}

.back-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1), transparent 34%, rgba(2,2,5,.18) 60%, rgba(0,0,0,.78) 100%);
}

.back-actions {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 18px;
}

.view-pill {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 58px;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(7,13,27,.3);
  color: #eff5ff;
  backdrop-filter: blur(18px);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.view-pill svg {
  width: 16px;
  fill: #ebf2ff;
}

.banner {
  position: relative;
  height: 148px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
  transform: scale(1.025);
}

.banner::before,
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
}

.banner::before {
  background: radial-gradient(circle at 50% 16%, rgba(255,255,255,.18), transparent 38%);
}

.banner::after {
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent 38%, rgba(5,9,19,.78) 100%);
}

.content {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  padding: 0 22px 22px;
}

.avatar-wrap {
  display: flex;
  justify-content: center;
}

.avatar {
  display: block;
  width: 112px;
  height: 112px;
  border: 2px solid rgba(255,255,255,.84);
  border-radius: 25px;
  object-fit: cover;
  object-position: center 35%;
  box-shadow: 0 16px 50px rgba(0,0,0,.56), 0 0 0 8px rgba(255,255,255,.065), 0 0 34px rgba(190,216,255,.14);
}

.identity {
  margin-top: 14px;
  text-align: center;
}

.name {
  position: relative;
  display: inline-block;
  margin: 0;
  color: transparent;
  background: url("assets/dots.gif") center / 180px auto repeat, linear-gradient(180deg,#fff,#d9e7ff);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 30px;
  font-weight: 760;
  letter-spacing: .07em;
  line-height: 1.04;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255,255,255,.09), 0 0 32px rgba(var(--accent-rgb),.1);
}

.name::before {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 4px;
  left: -8px;
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  opacity: .55;
}

.handle {
  margin: 11px 0 0;
  color: #d8e2f6;
  font-size: 9.5px;
  font-weight: 620;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-kicker {
  margin: 16px 0 8px;
  color: #aebbd7;
  font-size: 9px;
  letter-spacing: .24em;
  text-align: center;
  text-transform: uppercase;
}

.badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.badge {
  display: flex;
  min-height: 33px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
  background: rgba(255,255,255,.045);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.badge:hover {
  border-color: rgba(var(--accent-rgb),.48);
  background: rgba(var(--accent-rgb),.075);
  transform: translateY(-2px);
}

.badge svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: #f4f7ff;
}

.badge span {
  color: #eef3ff;
  font-size: 9.5px;
  white-space: nowrap;
}

.bio {
  max-width: 308px;
  margin: 0 auto 17px;
  color: #eff4ff;
  font-size: 13px;
  font-style: italic;
  line-height: 1.58;
  letter-spacing: .01em;
  text-align: center;
}

.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.link-card {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 17px;
  background: rgba(255,255,255,.045);
  cursor: pointer;
  text-align: left;
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,transparent,rgba(255,255,255,.06),transparent);
  transform: translateX(-125%);
  transition: transform .6s ease;
}

.link-card:hover {
  border-color: rgba(var(--accent-rgb),.46);
  background: rgba(var(--accent-rgb),.07);
  transform: translateY(-2px);
}

.link-card:hover::before {
  transform: translateX(125%);
}

.link-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: rgba(255,255,255,.04);
}

.link-icon svg {
  width: 23px;
  height: 23px;
  fill: #f2f6ff;
}

.link-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.link-copy strong,
.link-copy small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-copy strong {
  color: #f7f9ff;
  font-size: 12px;
}

.link-copy small {
  color: #bfcae3;
  font-size: 10.5px;
}

.arrow {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: #edf3ff;
  opacity: .9;
}

.flip-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(11,16,29,.48);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.content > .flip-action {
  margin-top: 11px;
}

.flip-action:hover {
  border-color: rgba(255,255,255,.54);
  background: rgba(255,255,255,.105);
  transform: translateY(-2px);
}

/* SoundCloud player */

.player {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  width: min(92vw, 352px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 22px;
  background: rgba(11,17,31,.78);
  box-shadow: 0 20px 64px rgba(0,0,0,.4);
  backdrop-filter: blur(26px) saturate(1.12);
}

.player-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
}

.pulse {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  background: rgba(255,255,255,.055);
}

.pulse svg {
  width: 18px;
  height: 18px;
  fill: #eff4ff;
}

.track-meta {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.track-meta strong,
.track-meta small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.track-meta strong {
  font-size: 12.5px;
}

.track-meta small {
  color: #bfcae2;
  font-size: 10.5px;
}

.player-toggle {
  display: grid;
  width: 31px;
  height: 31px;
  margin-left: auto;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease;
}

.player-toggle:hover {
  background: rgba(255,255,255,.07);
}

.player-toggle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  transition: transform .3s ease;
}

.player.open .player-toggle svg {
  transform: rotate(180deg);
}

.player-body {
  display: grid;
  max-height: 0;
  gap: 13px;
  overflow: hidden;
  padding: 0 15px;
  opacity: 0;
  visibility: hidden;
  transition: max-height .36s ease, padding .36s ease, opacity .22s ease, visibility .36s ease;
}

.player.open .player-body {
  max-height: min(560px, calc(100dvh - 105px));
  padding: 4px 15px 15px;
  opacity: 1;
  visibility: visible;
}

.progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.time {
  color: #c7d3e9;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid rgba(7,12,23,.88);
  border-radius: 50%;
  background: #eef4ff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.1);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(7,12,23,.88);
  border-radius: 50%;
  background: #eef4ff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.1);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.control-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;
  background: rgba(255,255,255,.05);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.control-btn:hover {
  border-color: rgba(255,255,255,.29);
  background: rgba(255,255,255,.09);
  transform: translateY(-2px);
}

.control-btn.primary {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: rgba(255,255,255,.11);
}

.control-btn svg {
  width: 20px;
  height: 20px;
  fill: #f4f7ff;
}

.track-counter {
  min-width: 45px;
  color: #cfdaed;
  font-size: 10.5px;
  text-align: right;
}

.volume-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.volume-row svg {
  width: 18px;
  height: 18px;
  fill: #eef4ff;
}

.volume-row output {
  min-width: 30px;
  color: #c8d4e8;
  font-size: 10.5px;
  text-align: right;
}

.playlist-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c8d4e8;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.playlist {
  display: grid;
  max-height: 184px;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.playlist::-webkit-scrollbar {
  width: 7px;
}

.playlist::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255,255,255,.11);
}

.playlist-item {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, background .2s ease;
}

.playlist-item:hover,
.playlist-item.active {
  border-color: rgba(var(--accent-rgb),.41);
  background: rgba(var(--accent-rgb),.07);
}

.playlist-number {
  color: #afbdd6;
  font-size: 10.5px;
}

.playlist-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.playlist-copy strong,
.playlist-copy small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.playlist-copy strong {
  font-size: 11.5px;
}

.playlist-copy small {
  color: #b8c5dd;
  font-size: 10.5px;
}

.playing-bars {
  display: flex;
  height: 16px;
  align-items: flex-end;
  gap: 2px;
  opacity: 0;
  transition: opacity .2s ease;
}

.playing-bars i {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: #edf3ff;
  animation: bars .75s ease-in-out infinite;
}

.playing-bars i:nth-child(2) { animation-delay: .12s; }
.playing-bars i:nth-child(3) { animation-delay: .24s; }

.playlist-item.playing .playing-bars {
  opacity: 1;
}

.player-error,
.music-note {
  margin: 0;
  color: #bdc9e0;
  font-size: 10.5px;
  line-height: 1.5;
}

.player-error {
  display: none;
  color: #ffd0d8;
}

.player-error.show {
  display: block;
}

#soundcloudPlayer {
  position: fixed;
  left: -20px;
  bottom: -20px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 500;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: rgba(8,12,22,.92);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
  transform: translateX(-50%) translateY(18px);
  transition: opacity .22s ease, transform .22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Custom cursor */

.cursor-layer {
  position: fixed;
  inset: 0;
  z-index: 2500;
  pointer-events: none;
}

.cursor-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 17px;
  opacity: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.92)) drop-shadow(0 0 4px rgba(255,255,255,.36));
  transition: opacity .18s ease;
  will-change: transform;
}

.cursor-main {
  z-index: 5;
}

.cursor-ghost.trail {
  z-index: 1;
}

.cursor-ghost img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (pointer: fine) {
  html,
  body,
  a,
  button,
  input {
    cursor: none !important;
  }
}

@keyframes float {
  50% { transform: translateY(-7px); }
}

@keyframes sparkleDrift {
  to { background-position: 140px 90px; }
}

@keyframes dotShift {
  50% { background-position: 7px 7px; }
}

@keyframes bars {
  0%, 100% { height: 6px; }
  50% { height: 16px; }
}

@media (max-width: 840px) {
  .player {
    right: 12px;
    bottom: 12px;
    width: min(calc(100vw - 24px), 360px);
  }

  .page {
    padding-bottom: 90px;
  }
}

@media (max-width: 560px) {
  html,
  body {
    overflow: auto;
  }

  .page {
    height: auto;
    min-height: 100dvh;
    align-items: start;
    padding: 16px 12px 96px;
  }

  .shell {
    width: min(100%, 390px);
  }

  .content {
    padding: 0 18px 18px;
  }

  .links {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 104px;
    height: 104px;
  }

  .name {
    font-size: 27px;
  }

  .handle {
    font-size: 9px;
    letter-spacing: .14em;
  }

  .badge {
    padding: 0 9px;
  }

  .badge span {
    font-size: 9px;
  }

  .view-pill {
    top: 12px;
    right: 12px;
  }

  .player {
    right: 12px;
    left: 12px;
    width: auto;
  }

  .player.open .player-body {
    max-height: calc(100dvh - 96px);
  }

  .cursor-layer {
    display: none;
  }
}

@media (max-height: 650px) and (min-width: 561px) {
  .page {
    padding-top: 10px;
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .cursor-layer {
    display: none;
  }
}
