:root {
  color-scheme: dark;
  --page: #09090b;
  --text: #f7f7f8;
  --muted: #aaa9ae;
  --soft: #77767d;
  --glass: rgba(25, 25, 28, 0.34);
  --line: rgba(255, 255, 255, 0.2);
  --accent: #c9c7d0;
  --discord: #9c9ad8;
  --green: #67d391;
  font-family: "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
}

button,
a,
input {
  font: inherit;
}

a {
  color: inherit;
}

.scene-backdrop,
#starfield,
.floating-sakura {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene-backdrop {
  z-index: 0;
  background:
    linear-gradient(140deg, rgba(25, 9, 18, 0.35), rgba(0, 0, 0, 0.48)),
    url("angeh.png") center 42% / cover no-repeat;
}

.background-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.scene-backdrop.video-fallback .background-video {
  display: none;
}

.scene-backdrop::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(39, 12, 27, 0.13), rgba(6, 5, 9, 0.34)),
    radial-gradient(ellipse at 50% 45%, rgba(244, 151, 185, 0.08), rgba(0, 0, 0, 0.45) 100%);
  content: "";
}

#starfield {
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.58;
}

.floating-sakura {
  z-index: 1;
  overflow: hidden;
}

.floating-sakura span {
  position: absolute;
  top: -12vh;
  left: var(--petal-left);
  width: var(--petal-size);
  height: calc(var(--petal-size) * 1.35);
  opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 27'%3E%3Cpath fill='%23f2a9c2' fill-opacity='.78' d='M10 26C8 20 1 17 1 10 1 4 5 1 10 1s9 3 9 9c0 7-7 10-9 16Z'/%3E%3Cpath fill='none' stroke='%23ffe4ed' stroke-opacity='.55' stroke-width='.7' d='M10 24c0-7 0-13 0-20'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: sakura-fall var(--petal-duration) linear var(--petal-delay) infinite;
  will-change: transform, opacity;
}

.floating-sakura span:nth-child(1) { --petal-left: 4%; --petal-size: 9px; --petal-duration: 17s; --petal-delay: -11s; --petal-drift: 44px; }
.floating-sakura span:nth-child(2) { --petal-left: 12%; --petal-size: 13px; --petal-duration: 23s; --petal-delay: -4s; --petal-drift: -58px; }
.floating-sakura span:nth-child(3) { --petal-left: 19%; --petal-size: 8px; --petal-duration: 19s; --petal-delay: -16s; --petal-drift: 70px; }
.floating-sakura span:nth-child(4) { --petal-left: 27%; --petal-size: 11px; --petal-duration: 25s; --petal-delay: -8s; --petal-drift: -38px; }
.floating-sakura span:nth-child(5) { --petal-left: 34%; --petal-size: 14px; --petal-duration: 21s; --petal-delay: -19s; --petal-drift: 62px; }
.floating-sakura span:nth-child(6) { --petal-left: 41%; --petal-size: 8px; --petal-duration: 18s; --petal-delay: -2s; --petal-drift: -76px; }
.floating-sakura span:nth-child(7) { --petal-left: 48%; --petal-size: 10px; --petal-duration: 24s; --petal-delay: -13s; --petal-drift: 42px; }
.floating-sakura span:nth-child(8) { --petal-left: 55%; --petal-size: 13px; --petal-duration: 20s; --petal-delay: -6s; --petal-drift: -52px; }
.floating-sakura span:nth-child(9) { --petal-left: 62%; --petal-size: 9px; --petal-duration: 26s; --petal-delay: -21s; --petal-drift: 74px; }
.floating-sakura span:nth-child(10) { --petal-left: 68%; --petal-size: 12px; --petal-duration: 18s; --petal-delay: -9s; --petal-drift: -42px; }
.floating-sakura span:nth-child(11) { --petal-left: 74%; --petal-size: 8px; --petal-duration: 22s; --petal-delay: -15s; --petal-drift: 58px; }
.floating-sakura span:nth-child(12) { --petal-left: 80%; --petal-size: 14px; --petal-duration: 27s; --petal-delay: -3s; --petal-drift: -68px; }
.floating-sakura span:nth-child(13) { --petal-left: 86%; --petal-size: 10px; --petal-duration: 19s; --petal-delay: -18s; --petal-drift: 36px; }
.floating-sakura span:nth-child(14) { --petal-left: 91%; --petal-size: 12px; --petal-duration: 24s; --petal-delay: -7s; --petal-drift: -48px; }
.floating-sakura span:nth-child(15) { --petal-left: 96%; --petal-size: 8px; --petal-duration: 20s; --petal-delay: -12s; --petal-drift: 64px; }
.floating-sakura span:nth-child(16) { --petal-left: 38%; --petal-size: 11px; --petal-duration: 28s; --petal-delay: -24s; --petal-drift: -60px; }

body.background-inactive .floating-sakura span {
  animation-play-state: paused;
}

body:not(.site-entered) {
  overflow: hidden;
}

.entry-screen {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: opacity 380ms ease, visibility 380ms ease;
}

.entry-screen[hidden] {
  display: none;
}

body.site-entered .entry-screen {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.entry-label {
  padding: 0;
  background: transparent;
  font-size: 3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff4fa;
  text-shadow:
    0 0 5px rgba(255, 220, 239, 0.95),
    0 0 12px rgba(255, 132, 196, 0.82),
    0 0 26px rgba(255, 89, 175, 0.58);
  transition: opacity 180ms ease, text-shadow 180ms ease;
}

.entry-screen:hover .entry-label {
  opacity: 1;
  text-shadow:
    0 0 6px rgba(255, 235, 246, 1),
    0 0 16px rgba(255, 132, 196, 0.95),
    0 0 34px rgba(255, 89, 175, 0.76);
}

.entry-screen:focus-visible {
  outline: none;
}

.entry-screen:focus-visible .entry-label {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.profile-page {
  position: relative;
  z-index: 2;
  width: min(100% - 56px, 760px);
  margin: auto;
  padding: 12px 0;
  zoom: 1.0625;
  visibility: hidden;
  opacity: 0;
}

body.site-entered .profile-page {
  visibility: visible;
  opacity: 1;
  animation: card-arrive 650ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.profile-card {
  width: 94%;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 222, 237, 0.9);
  border-radius: 22px;
  background: var(--glass);
  transition: transform 160ms ease-out;
  box-shadow:
    0 0 14px rgba(255, 154, 204, 0.2),
    0 0 34px rgba(255, 122, 190, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 20px 70px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
}

.profile-card.is-tilting {
  transform:
    perspective(900px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}

.profile-banner {
  position: relative;
  display: flex;
  min-height: 202px;
  align-items: flex-end;
  overflow: hidden;
  padding: 28px clamp(19px, 4.2vw, 38px) 18px;
  background: transparent;
}

.profile-banner::before,
.profile-banner::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.profile-banner::before {
  background: none;
}

.profile-banner::after {
  background: none;
}

.identity-row {
  position: relative;
  top: 6px;
  z-index: 1;
  display: grid;
  width: 100%;
  justify-items: center;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.avatar-frame {
  position: relative;
  width: clamp(96px, 13vw, 118px);
  height: clamp(96px, 13vw, 118px);
  flex: 0 0 auto;
  margin-bottom: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 12px rgba(255, 165, 211, 0.15), 0 0 24px rgba(255, 125, 192, 0.08);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 35%;
}

.identity-copy {
  min-width: 0;
  padding-bottom: 0;
  text-align: center;
}

.name-and-badges {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 13px;
}

.name-and-badges h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.6vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 169, 213, 0.28), 0 2px 16px rgba(0, 0, 0, 0.6);
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-badge {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #f2a0d4;
  filter: drop-shadow(0 0 3px rgba(242, 160, 212, 0.75))
    drop-shadow(0 0 9px rgba(242, 110, 185, 0.5));
}

.profile-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.bunny-badge .bunny-inner-ear {
  fill: #ffc2e4;
}

.bunny-badge .bunny-face {
  fill: #6d3155;
}

.profile-status,
.profile-handle {
  margin: 3px 0 0;
  color: #e4e1e6;
  font-size: 0.88rem;
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.8);
}

.profile-role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 4px 0 0;
  color: #ffd1e9;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-shadow: 0 0 9px rgba(255, 116, 190, 0.62);
}

.developer-mark {
  display: inline-block;
  color: #ff78bb;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.08em;
  text-shadow: 0 0 7px rgba(255, 103, 180, 0.72);
}

.profile-status span {
  color: #d3b86f;
}

.profile-handle {
  margin-top: 2px;
  color: #c3c0c6;
  font-size: 0.73rem;
}

.presence-dot[hidden],
.status-dot[hidden] {
  display: none;
}

.status-dot,
.presence-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(103, 211, 145, 0.52);
}

.presence-online { background: #43d581; }
.presence-idle { background: #f0b64a; box-shadow: 0 0 10px rgba(240, 182, 74, 0.5); }
.presence-dnd { background: #ed6464; box-shadow: 0 0 10px rgba(237, 100, 100, 0.5); }
.presence-offline { background: #7d7c83; box-shadow: none; }

.profile-body {
  padding: 14px clamp(15px, 3.1vw, 26px) 11px;
}

.widget-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "discord"
    "social";
  gap: 6px;
}

.glass-widget {
  position: relative;
  min-width: 0;
  min-height: 148px;
  padding: 13px 14px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(233, 232, 239, 0.055), rgba(47, 46, 52, 0.2));
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  -webkit-backdrop-filter: blur(17px);
  backdrop-filter: blur(17px);
}

.discord-widget,
.social-widget {
  min-height: 0;
  padding: 13px 14px 11px;
  border: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.discord-widget {
  grid-area: discord;
}

.social-widget {
  grid-area: social;
  padding-top: 5px;
  padding-bottom: 12px;
}

.discord-widget:hover,
.social-widget:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.glass-widget:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 9px 30px rgba(0, 0, 0, 0.32), 0 0 17px rgba(255, 255, 255, 0.08);
}

.glass-widget.discord-widget:hover,
.glass-widget.social-widget:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.widget-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.widget-label h2 {
  margin: 0;
  color: #e8e7eb;
  font-size: 0.68rem;
  font-weight: 600;
}

.widget-kicker {
  margin-left: auto;
  color: rgba(222, 220, 228, 0.56);
  font-size: 0.53rem;
  letter-spacing: 0.08em;
}

.discord-mark {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #bab8ed;
}

.discord-mark svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.discord-profile {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 102px;
  min-height: 102px;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  padding: 11px 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 235, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 0 12px rgba(255, 167, 205, 0.14);
}

.discord-avatar-wrap {
  position: relative;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  isolation: isolate;
}

.discord-avatar {
  display: block;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  object-fit: cover;
}

.discord-avatar-decoration {
  position: absolute;
  z-index: 1;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  max-width: none;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
}

.discord-avatar-decoration[hidden] {
  display: none;
}

.discord-info {
  min-width: 0;
  flex: 1 1 auto;
  max-height: 100%;
  overflow: hidden;
}

.discord-name-line {
  min-width: 0;
}

.discord-name-line h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-avatar[hidden],
.discord-custom-status[hidden] {
  display: none;
}

.discord-custom-status {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.presence-dot {
  z-index: 2;
  position: absolute;
  right: -1px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border: 3px solid #35343a;
}

.discord-name-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.discord-name-line h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.discord-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.discord-badges[hidden] {
  display: none;
}

.discord-badge {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(218, 215, 241, 0.2);
  border-radius: 50%;
  background: rgba(182, 179, 238, 0.09);
  color: #d3d1f6;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.discord-badge:hover {
  transform: translateY(-2px);
  background: rgba(182, 179, 238, 0.2);
  color: #fff;
}

.discord-badge svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.discord-tag {
  color: #aaa8b0;
  font-size: 0.8rem;
}

.discord-server-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 216, 235, 0.24);
  border-radius: 6px;
  background: rgba(255, 190, 220, 0.1);
  color: #f2c8dc;
  font-size: 0.62rem;
  line-height: 1.3;
}

.discord-server-tag-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  object-fit: contain;
}

.discord-server-tag-icon[hidden] {
  display: none;
}

.discord-server-tag[hidden] {
  display: none;
}

.discord-custom-status {
  margin: 7px 0 0;
  color: #c5c3c9;
  font-size: 0.69rem;
}

.discord-custom-status {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #c4c1cb;
  font-size: 0.72rem;
  transition: opacity 220ms ease, transform 220ms ease;
}

.discord-custom-status.is-changing {
  transform: translateY(2px);
  opacity: 0;
}

.discord-custom-status-emoji {
  flex: 0 0 auto;
  color: #e7c77b;
}

img.discord-custom-status-emoji {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.discord-widget .presence-dot[data-presence="online"] { background: #43d581; }
.discord-widget .presence-dot[data-presence="idle"] {
  background: #f0b64a;
  box-shadow: 0 0 10px rgba(240, 182, 74, 0.5);
}
.discord-widget .presence-dot[data-presence="dnd"] {
  background: #ed6464;
  box-shadow: 0 0 10px rgba(237, 100, 100, 0.5);
}
.discord-widget .presence-dot[data-presence="offline"] {
  background: #7d7c83;
  box-shadow: none;
}

.discord-spotify {
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  gap: 11px;
  margin: 9px 0 0 72px;
  padding: 7px 13px 7px 8px;
  border: 1px solid rgba(30, 215, 96, 0.18);
  border-radius: 999px;
  background: rgba(30, 215, 96, 0.055);
}

.discord-spotify[hidden] {
  display: none;
}

.discord-spotify-art {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.discord-spotify-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.discord-spotify-copy strong,
.discord-spotify-copy > span:not(.discord-spotify-label),
.discord-spotify-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-spotify-label {
  color: #8edba8;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.discord-spotify-copy strong {
  color: #f0eef2;
  font-size: 0.72rem;
}

.discord-spotify-copy > span:not(.discord-spotify-label) {
  color: #c5c3c9;
  font-size: 0.63rem;
}

.discord-spotify-copy small {
  color: #99969f;
  font-size: 0.54rem;
}

.social-mark {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #e1dfe5;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  line-height: 1;
}

.social-widget-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.social-widget-link {
  display: grid;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  padding: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.social-widget-link:hover {
  transform: translateY(-3px) scale(1.09);
  filter: brightness(1.2);
}

.social-widget-link:focus-visible {
  outline: 2px solid rgba(255, 214, 235, 0.9);
  outline-offset: 3px;
  filter: brightness(1.2);
}

.social-widget-icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f1eff4;
  filter: drop-shadow(0 0 5px currentColor) drop-shadow(0 0 13px currentColor);
  transition: filter 180ms ease;
}

.social-widget-icon svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.pinterest-link .social-widget-icon,
.telegram-link .social-widget-icon,
.tiktok-link .social-widget-icon,
.instagram-link .social-widget-icon { color: #f2a0d4; }
.tiktok-link .social-widget-icon svg { overflow: visible; }
.tiktok-link .tiktok-cyan,
.tiktok-link .tiktok-magenta,
.tiktok-link .tiktok-center { fill: #f2a0d4; }

.social-widget-heart {
  display: none;
}

.profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-meta,
.view-count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cfccd3;
  font-size: 0.72rem;
  font-weight: 600;
}

.view-count svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.meta-separator {
  color: #77747e;
}

.location-mark {
  color: #d4d1d8;
  font-size: 1rem;
}

.reaction-buttons {
  display: flex;
  gap: 8px;
}

.reaction-button {
  display: inline-flex;
  min-width: 40px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #d2cfd6;
  font-size: 0.68rem;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.reaction-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.reaction-button[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.reaction-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.reaction-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.interaction-feedback {
  min-height: 0;
  margin: 0;
  color: #d5d3d9;
  font-size: 0.64rem;
  text-align: right;
}

.interaction-feedback:not(:empty) {
  min-height: 16px;
  margin-top: 5px;
}

.music-card {
  display: grid;
  grid-template-columns: 50px minmax(90px, 1fr) minmax(155px, 1.5fr) minmax(92px, auto);
  align-items: center;
  gap: 8px;
  width: 94%;
  margin: 6px auto 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 222, 237, 0.86);
  border-radius: 18px;
  background: rgba(28, 27, 31, 0.34);
  box-shadow:
    0 0 13px rgba(255, 154, 204, 0.18),
    0 0 30px rgba(255, 122, 190, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 13px 40px rgba(0, 0, 0, 0.39);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: card-arrive 720ms 110ms both;
}

#audioPlayer {
  display: none;
}

.album-cover {
  display: block;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  object-fit: cover;
}

.track-info {
  min-width: 0;
}

.track-title {
  overflow: hidden;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-artist {
  margin: 3px 0 0;
  color: #aaa8b0;
  font-size: 0.75rem;
}

.player-message {
  min-height: 0;
  margin: 3px 0 0;
  color: #e7a4a4;
  font-size: 0.62rem;
}

.player-message:not(:empty) {
  min-height: 14px;
}

.player-controls {
  min-width: 0;
}

.transport-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 7px;
}

.transport-button,
.play-button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dedce2;
  cursor: pointer;
  transition: color 150ms ease, transform 150ms ease;
}

.transport-button:hover,
.play-button:hover {
  transform: scale(1.1);
  color: #fff;
}

.transport-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.play-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f4f3f5;
  color: #1e1d21;
}

.play-button:hover {
  background: #fff;
  color: #111;
}

.play-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.pause-icon,
.play-button.is-playing .play-icon {
  display: none;
}

.play-button.is-playing .pause-icon {
  display: block;
}

.timeline {
  display: grid;
  grid-template-columns: 35px minmax(40px, 1fr) 35px;
  align-items: center;
  gap: 8px;
}

.time-label {
  color: #c5c2ca;
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

#seekBar {
  width: 100%;
  height: 4px;
  margin: 0;
  appearance: none;
  border-radius: 99px;
  background: linear-gradient(90deg, #f3f2f4 var(--progress, 0%), rgba(255, 255, 255, 0.28) var(--progress, 0%));
  cursor: pointer;
}

#seekBar::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.48);
}

#seekBar::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.48);
}

.player-caption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin: 0;
  color: #d7d4da;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.equalizer {
  display: flex;
  height: 17px;
  align-items: center;
  gap: 2px;
  color: #d6d3db;
}

.equalizer i {
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
}

.music-card.is-playing .equalizer i {
  animation: equalize 700ms ease-in-out infinite alternate;
}

.music-card.is-playing .equalizer i:nth-child(2) { animation-delay: -350ms; }
.music-card.is-playing .equalizer i:nth-child(3) { animation-delay: -180ms; }

.spotify-extra {
  margin: 13px 4px 0;
  color: #c1bec6;
  font-size: 0.72rem;
}

.spotify-extra summary {
  width: fit-content;
  padding: 6px 4px;
  cursor: pointer;
  list-style: none;
}

.spotify-extra summary::-webkit-details-marker {
  display: none;
}

.spotify-dot {
  color: #1ed760;
  font-size: 0.85rem;
}

.spotify-player {
  overflow: hidden;
  margin-top: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: rgba(18, 18, 19, 0.8);
}

.spotify-placeholder {
  margin: 0;
  padding: 14px 16px;
  color: #aaa8b0;
  font-size: 0.7rem;
}

.spotify-placeholder code {
  color: #d4d1d9;
}

.spotify-embed {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
}

.page-note {
  margin: 15px 0 0;
  color: rgba(220, 218, 223, 0.57);
  font-size: 0.67rem;
  text-align: center;
}

.page-note span {
  color: #c6b8bf;
}

:focus-visible {
  outline: 2px solid #e8e6eb;
  outline-offset: 3px;
}

@keyframes card-arrive {
  from { transform: translateY(11px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes equalize {
  from { height: 4px; }
  to { height: 15px; }
}

@keyframes sakura-fall {
  0% { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 0; }
  9% { opacity: 0.68; }
  48% { transform: translate3d(var(--petal-drift), 48vh, 0) rotate(210deg); opacity: 0.62; }
  91% { opacity: 0.52; }
  100% { transform: translate3d(calc(var(--petal-drift) * -0.75), 112vh, 0) rotate(470deg); opacity: 0; }
}

@media (max-width: 760px) {
  .widget-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "discord"
      "social";
  }

  .profile-page {
    width: min(100% - 44px, 500px);
    padding: 12px 0;
  }

  .discord-profile {
    height: 90px;
    min-height: 90px;
    gap: 12px;
    padding: 9px 13px;
  }

  .discord-avatar-wrap,
  .discord-avatar {
    width: 62px;
    height: 62px;
  }

  .profile-banner {
    min-height: 190px;
    padding: 22px 18px 16px;
  }

  .identity-row {
    top: 5px;
  }

  .glass-widget {
    min-height: 0;
  }

  .music-card {
    grid-template-columns: 50px minmax(90px, 1fr) minmax(150px, 1.4fr);
    gap: 9px;
  }

  .album-cover {
    width: 50px;
    height: 50px;
  }

  .player-caption {
    display: none;
  }
}

@media (max-width: 520px) {
  .profile-page {
    width: calc(100% - 36px);
    padding: 8px 0;
  }

  .profile-card {
    border-radius: 17px;
  }

  .profile-banner {
    min-height: 184px;
    padding: 18px 12px 14px;
    background-position: 45% center;
  }

  .identity-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .avatar-frame {
    width: 84px;
    height: 84px;
  }

  .name-and-badges {
    gap: 7px;
  }

  .name-and-badges h1 {
    font-size: 1.95rem;
  }

  .profile-status {
    font-size: 0.74rem;
  }

  .profile-handle {
    font-size: 0.67rem;
  }

  .badge-row {
    gap: 2px;
    padding: 3px 5px;
  }

  .profile-badge {
    width: 17px;
    height: 17px;
  }

  .profile-badge svg {
    width: 15px;
    height: 15px;
  }

  .profile-body {
    padding: 9px 8px 8px;
  }

  .discord-spotify {
    margin-left: 0;
  }

  .glass-widget {
    padding: 11px 10px 9px;
    border-radius: 15px;
  }

  .discord-widget {
    min-height: 0;
    padding: 11px 10px 9px;
  }

  .discord-avatar-wrap,
  .discord-avatar {
    width: 54px;
    height: 54px;
  }

  .discord-profile {
    height: 82px;
    min-height: 82px;
    gap: 10px;
    padding: 7px 11px;
  }

  .discord-spotify {
    min-height: 58px;
    gap: 9px;
    padding: 6px 10px 6px 7px;
  }

  .discord-spotify-art {
    width: 40px;
    height: 40px;
  }

  .social-widget-link {
    min-height: 52px;
    padding: 4px;
  }

  .social-widget-links {
    gap: 10px;
  }

  .social-widget-icon {
    width: 43px;
    height: 43px;
  }

  .social-widget-icon svg {
    width: 32px;
    height: 32px;
  }

  .profile-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-top: 10px;
  }

  .profile-meta {
    font-size: 0.68rem;
  }

  .reaction-buttons {
    align-self: flex-end;
    margin-top: -36px;
  }

  .interaction-feedback {
    text-align: left;
  }

  .music-card {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px;
    border-radius: 15px;
  }

  .album-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .track-title {
    font-size: 0.82rem;
  }

  .track-artist {
    font-size: 0.69rem;
  }

  .player-controls {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .transport-controls {
    gap: 18px;
    margin-bottom: 8px;
  }

  .timeline {
    grid-template-columns: 34px minmax(30px, 1fr) 34px;
  }

  .page-note {
    margin-top: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
