:root {
  --bg: #040506;
  --panel-border: rgba(210, 226, 255, 0.12);
  --profile-glass-top-alpha: 0.357;
  --profile-glass-bottom-alpha: 0.205;
  --profile-glass-border-alpha: 0.142;
  --profile-glass-shadow-alpha: 0.243;
  --profile-glass-glow-alpha: 0.087;
  --profile-glass-sheen-alpha: 0.062;
  --presence-accent-rgb: 190, 212, 255;
  --presence-accent-alpha: 0.07;
  --text-main: #f4f7fb;
  --text-soft: rgba(226, 233, 245, 0.74);
  --text-muted: rgba(203, 212, 226, 0.52);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --blur: 26px;
  --content-width: min(90vw, 620px);
  --mouse-x: 0px;
  --mouse-y: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Outfit", sans-serif;
  background: linear-gradient(180deg, #030405 0%, #090b10 46%, #040506 100%);
  color: var(--text-main);
}

body:not(.is-entered) {
  overflow: hidden;
}

body[data-presence-mood="spotify"] {
  --presence-accent-rgb: 74, 214, 132;
  --presence-accent-alpha: 0.095;
}

body[data-presence-mood="game"] {
  --presence-accent-rgb: 214, 87, 92;
  --presence-accent-alpha: 0.105;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 34%, rgba(206, 221, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(1, 2, 4, 0.82), rgba(1, 3, 5, 0.95)),
    radial-gradient(circle at center, rgba(120, 139, 177, 0.045), transparent 34%);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  transition: opacity 780ms cubic-bezier(.22, .84, .28, 1), visibility 780ms ease;
}

.enter-screen::before,
.enter-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.enter-screen::before {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.045), transparent 28%),
    radial-gradient(circle at 50% 18%, rgba(173, 194, 255, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 20%);
  opacity: 0.78;
  mix-blend-mode: screen;
  transition: opacity 820ms ease;
}

.enter-screen::after {
  inset: 18px;
  border-radius: 34px;
  border: 1px solid rgba(218, 230, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(8, 11, 16, 0.24);
  opacity: 0.72;
}

.enter-screen__content {
  position: relative;
  text-align: center;
  user-select: none;
  padding: 34px 42px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(18, 22, 28, 0.18), rgba(8, 10, 14, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 80px rgba(0, 0, 0, 0.3);
  transition:
    opacity 560ms cubic-bezier(.22, .84, .28, 1),
    transform 820ms cubic-bezier(.22, .84, .28, 1),
    filter 820ms cubic-bezier(.22, .84, .28, 1);
}

.enter-screen__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.7rem, 8vw, 4.5rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 18px rgba(239, 246, 255, 0.08),
    0 8px 28px rgba(0, 0, 0, 0.42);
  animation: enter-breathe 5.4s ease-in-out infinite;
}

body.is-entering .enter-screen__content {
  opacity: 0;
  filter: blur(18px);
  transform: translateY(-16px) scale(0.972);
}

body.is-entering .enter-screen::before {
  opacity: 0.12;
}

body.is-entered .enter-screen {
  opacity: 0;
  visibility: hidden;
}

.site-tools {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.corner-control {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 20px;
  pointer-events: auto;
}

.corner-control--left {
  top: 18px;
  left: 18px;
}

.corner-control--right {
  top: 18px;
  right: 18px;
  gap: 8px;
}

.center-control {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 246px;
  padding: 10px 14px;
  border-radius: 20px;
  pointer-events: auto;
}

.glass-slider {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.glass-slider span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.glass-slider input {
  width: 100%;
  accent-color: #cfddff;
  cursor: pointer;
}

.glass-value {
  min-width: 44px;
  color: var(--text-soft);
  font-size: 0.86rem;
  text-align: right;
}

.bio-dock {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 19;
  width: min(252px, calc(100vw - 36px));
  padding: 10px;
  border-radius: 24px;
  display: grid;
  gap: 10px;
}

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene__video,
.scene__overlay,
.scene__particles {
  position: absolute;
  inset: -4%;
}

.scene__video {
  width: 108%;
  height: 108%;
  object-fit: cover;
  opacity: 0.9;
  filter: brightness(0.6) saturate(0.92) contrast(1.02);
  transform: translate3d(calc(var(--mouse-x) * -0.035), calc(var(--mouse-y) * -0.035), 0) scale(1.08);
}

.scene__overlay {
  background:
    linear-gradient(180deg, rgba(1, 2, 3, 0.16), rgba(2, 4, 6, 0.58)),
    radial-gradient(circle at center, rgba(12, 17, 24, 0.06), rgba(2, 4, 5, 0.58) 70%);
}

.scene__particles {
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.floating-katana {
  position: absolute;
  right: max(8vw, 32px);
  bottom: 14vh;
  width: 340px;
  height: 38px;
  transform: rotate(-18deg) translate3d(calc(var(--mouse-x) * 0.04), calc(var(--mouse-y) * 0.04), 0);
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.42));
  animation: float-weapon 7.5s ease-in-out infinite;
}

.floating-katana__blade,
.floating-katana__guard,
.floating-katana__handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
}

.floating-katana__blade {
  left: 0;
  width: 250px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(248, 251, 255, 0.08), rgba(232, 242, 255, 0.88), rgba(147, 172, 210, 0.55));
  box-shadow: 0 0 28px rgba(211, 225, 255, 0.2);
}

.floating-katana__guard {
  left: 244px;
  width: 30px;
  height: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(77, 82, 92, 0.96), rgba(18, 20, 26, 0.92));
}

.floating-katana__handle {
  left: 264px;
  width: 78px;
  height: 12px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(135deg, rgba(218, 226, 240, 0.18) 0 8px, rgba(40, 45, 52, 0.84) 8px 16px),
    linear-gradient(90deg, rgba(28, 31, 38, 0.95), rgba(10, 12, 16, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  transition: filter 420ms ease, transform 420ms ease;
}

body:not(.is-entered) .layout {
  filter: blur(6px);
  transform: scale(0.985);
}

body.is-entering .layout {
  filter: blur(0);
  transform: scale(1);
  transition-duration: 860ms;
  transition-timing-function: cubic-bezier(.22, .84, .28, 1);
}

body.is-entering .profile-card,
body.is-entering .discord,
body.is-entering .actions,
body.is-entering .corner-control,
body.is-entering .bio-dock {
  animation-play-state: running;
}

.glass {
  background: linear-gradient(180deg, rgba(20, 24, 30, 0.58), rgba(10, 13, 17, 0.38));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)) saturate(1.08);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.08);
}

.glass--inner {
  background: linear-gradient(180deg, rgba(16, 19, 24, 0.54), rgba(11, 14, 18, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 40px rgba(0, 0, 0, 0.24);
}

.profile-card {
  width: var(--content-width);
  padding: clamp(20px, 3.2vw, 24px);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.profile-card.glass {
  background:
    linear-gradient(
      180deg,
      rgba(20, 24, 30, var(--profile-glass-top-alpha)),
      rgba(10, 13, 17, var(--profile-glass-bottom-alpha))
    );
  border-color: rgba(210, 226, 255, var(--profile-glass-border-alpha));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, var(--profile-glass-shadow-alpha)),
    0 0 80px rgba(var(--presence-accent-rgb), calc(var(--presence-accent-alpha) * 0.55));
  transition:
    background 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
  backdrop-filter: saturate(1.03);
  -webkit-backdrop-filter: saturate(1.03);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, var(--profile-glass-sheen-alpha)), transparent 30%),
    radial-gradient(circle at top, rgba(190, 212, 255, var(--profile-glass-glow-alpha)), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(var(--presence-accent-rgb), var(--presence-accent-alpha)), transparent 34%);
  pointer-events: none;
  transition: background 240ms ease;
}

.profile-card__topline,
.profile-card__content,
.discord,
.actions,
.profile-card__hover-stat {
  position: relative;
  z-index: 1;
}

.profile-card__hover-stat {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 116px;
  height: 48px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.profile-card__hover-stat svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-card__hover-stat-label,
.profile-card__hover-stat-value {
  white-space: nowrap;
  opacity: 1;
}

.profile-card__hover-stat-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-card__hover-stat-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 2.45ch;
  text-align: right;
  letter-spacing: 0;
}

.profile-card__hover-stat:hover,
.profile-card__hover-stat:focus-within {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(214, 225, 255, 0.16);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.profile-card__hover-stat:hover .profile-card__hover-stat-value,
.profile-card__hover-stat:focus-within .profile-card__hover-stat-value {
  opacity: 1;
}

.profile-card__topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-right: 132px;
  margin-bottom: 22px;
}

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.badge {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #eef5ff, #a7c1f0);
  box-shadow: 0 0 12px rgba(214, 228, 255, 0.7);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(204, 220, 252, 0.24);
  background: rgba(189, 212, 255, 0.08);
  box-shadow: 0 10px 24px rgba(125, 145, 181, 0.14);
}

.icon-button.is-active {
  color: #0d131a;
  background: linear-gradient(180deg, rgba(225, 235, 255, 0.94), rgba(187, 207, 238, 0.88));
  box-shadow: 0 14px 40px rgba(188, 206, 236, 0.28);
}

.volume-slider {
  display: grid;
  gap: 4px;
  min-width: 150px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.volume-slider span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.volume-slider input {
  width: 100%;
  accent-color: #cfddff;
  cursor: pointer;
}

.volume-value {
  min-width: 52px;
  color: var(--text-soft);
  font-size: 0.9rem;
  text-align: right;
}

.lang-toggle {
  min-width: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(214, 225, 255, 0.18);
}

.lang-toggle.is-active {
  background: rgba(217, 228, 252, 0.14);
  border-color: rgba(214, 225, 255, 0.22);
  color: var(--text-main);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.nickname {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 8.3vw, 5.7rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}

.bio {
  width: min(92%, 500px);
  margin: 16px auto 0;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 2.25vw, 1.05rem);
  line-height: 1.74;
}

[data-i18n] {
  transition: opacity 220ms ease, filter 220ms ease, text-shadow 220ms ease, transform 220ms ease;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}

body.is-language-scrambling [data-i18n] {
  filter: blur(0.35px) brightness(1.06);
  text-shadow: 0 0 20px rgba(210, 224, 255, 0.16);
}

.bio-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: left;
  text-decoration: none;
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(18, 22, 28, 0.48), rgba(10, 13, 18, 0.28)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 36px rgba(0, 0, 0, 0.16);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.bio-link:hover,
.bio-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(214, 225, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(24, 30, 38, 0.58), rgba(12, 16, 22, 0.34)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 38px rgba(0, 0, 0, 0.2);
}

.bio-link__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(207, 221, 255, 0.08);
  color: #eaf1ff;
}

.bio-link__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.bio-link__content {
  min-width: 0;
}

.bio-link__title,
.bio-link__meta {
  display: block;
}

.bio-link__title {
  font-size: 0.96rem;
  font-weight: 500;
}

.bio-link__meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.discord {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  text-align: left;
}

.discord__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-label {
  margin: 0 0 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

.discord__header h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 500;
}

.status-pill {
  font-size: 0.8rem;
}

.status-pill--online {
  color: #dffbea;
  background: rgba(57, 153, 104, 0.15);
  border-color: rgba(134, 247, 194, 0.2);
}

.status-pill--idle {
  color: #fff2d3;
  background: rgba(173, 124, 44, 0.15);
  border-color: rgba(245, 212, 142, 0.2);
}

.status-pill--offline,
.status-pill--loading {
  color: rgba(225, 231, 241, 0.74);
  background: rgba(114, 123, 139, 0.12);
  border-color: rgba(156, 166, 181, 0.16);
}

.status-pill--dnd {
  color: #ffd5d7;
  background: rgba(162, 61, 73, 0.18);
  border-color: rgba(255, 139, 152, 0.18);
}

.discord__body {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}

.discord__avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.discord__info {
  min-width: 0;
}

.discord__identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.discord__identity strong {
  font-size: 1.05rem;
}

.discord__identity span {
  color: var(--text-muted);
}

.discord__activity {
  margin: 7px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.discord__media {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.discord__media[hidden] {
  display: none !important;
}

.discord__media-image {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  will-change: transform, opacity, filter;
}

.discord__media-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.discord__media-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.discord__media-tabs[hidden] {
  display: none !important;
}

.discord__media-tab {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.discord__media-tab:hover,
.discord__media-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(214, 225, 255, 0.16);
  color: rgba(244, 248, 255, 0.92);
}

.discord__media-tab.is-active {
  color: #edf5ff;
  background: rgba(207, 221, 255, 0.08);
  border-color: rgba(214, 225, 255, 0.18);
}

.discord__media-tab.is-active:hover,
.discord__media-tab.is-active:focus-visible {
  transform: none;
}

.discord__media-app {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(239, 245, 255, 0.86);
  background: rgba(207, 221, 255, 0.08);
  border: 1px solid rgba(214, 225, 255, 0.12);
}

.discord__media-app[hidden],
.discord__media-title[hidden],
.discord__media-subtitle[hidden] {
  display: none !important;
}

.discord__media-title,
.discord__media-subtitle {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord__media-title {
  font-size: 0.96rem;
}

.discord__media-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.discord__media-progress[hidden] {
  display: none !important;
}

.discord__media-progress[data-mode="live"] .discord__media-progress-bar {
  display: none;
}

.discord__media-progress[data-mode="live"] {
  margin-top: 2px;
  display: inline-flex;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
}

.discord__media-progress[data-mode="live"] .discord__media-progress-track {
  display: none;
}

.discord__media-progress[data-mode="live"] .discord__media-time:first-child {
  color: rgba(208, 226, 255, 0.9);
}

.discord__media-progress[data-mode="live"] .discord__media-time:last-child {
  letter-spacing: 0.04em;
  color: rgba(208, 226, 255, 0.62);
}

.discord__media-time {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.discord__media-progress-track {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.discord__media-progress-bar {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(195, 233, 212, 0.88), rgba(29, 185, 84, 0.94) 55%, rgba(102, 244, 153, 0.92));
  box-shadow: 0 0 18px rgba(58, 214, 116, 0.28);
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
}

.discord__recent {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.discord__recent[hidden] {
  display: none !important;
}

.discord__recent-label {
  color: var(--text-muted);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.discord__recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.discord__recent-item {
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(226, 233, 245, 0.74);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
}

.actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.action-button {
  min-width: 168px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  color: var(--text-main);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(218, 229, 255, 0.14), rgba(122, 140, 173, 0.1)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(214, 225, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    filter 220ms ease,
    background 220ms ease;
}

.action-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.action-button__icon--spotify {
  width: 20px;
  height: 20px;
}

.action-button__icon--spotify circle {
  fill: #1db954;
}

.action-button__icon--spotify path {
  fill: none;
  stroke: rgba(7, 13, 9, 0.88);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(214, 225, 255, 0.24);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 14px 38px rgba(162, 192, 255, 0.16);
  filter: brightness(1.08);
}

.action-button--secondary {
  background:
    linear-gradient(180deg, rgba(194, 255, 220, 0.12), rgba(94, 174, 121, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-up 820ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.profile-card.reveal {
  animation-delay: 80ms;
}

.discord.reveal {
  animation-delay: 230ms;
}

.actions.reveal {
  animation-delay: 380ms;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes enter-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
    text-shadow:
      0 0 18px rgba(239, 246, 255, 0.08),
      0 8px 28px rgba(0, 0, 0, 0.42);
  }
  50% {
    transform: translateY(-2px) scale(1.01);
    text-shadow:
      0 0 28px rgba(239, 246, 255, 0.12),
      0 10px 36px rgba(0, 0, 0, 0.48);
  }
}


@keyframes float-weapon {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

@media (max-width: 1200px) {
  .layout {
    padding-bottom: 108px;
  }

  .bio-dock {
    top: auto;
    right: auto;
    bottom: 18px;
    left: 50%;
    width: min(560px, calc(100vw - 28px));
    transform: translateX(-50%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .enter-screen,
  .enter-screen__content,
  .enter-screen__title {
    transition: none;
    animation: none;
  }
}

@media (max-width: 780px) {
  .center-control {
    display: none;
  }

  .enter-screen {
    padding: 18px;
  }

  .enter-screen::after {
    inset: 12px;
    border-radius: 28px;
  }

  .enter-screen__content {
    width: min(100%, 420px);
    padding: 26px 24px;
    border-radius: 26px;
  }

  .enter-screen__title {
    font-size: clamp(2.35rem, 13vw, 3.9rem);
    line-height: 0.98;
  }

  .corner-control {
    padding: 8px 10px;
  }

  .corner-control--left,
  .corner-control--right {
    top: 12px;
  }

  .corner-control--left {
    left: 12px;
    max-width: calc(100vw - 108px);
  }

  .corner-control--right {
    right: 12px;
  }

  .bio-dock {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 12px;
    width: min(520px, calc(100vw - 24px));
    transform: translateX(-50%);
  }

  .floating-katana {
    width: 260px;
    right: -24px;
    bottom: 12vh;
    opacity: 0.6;
  }

  .floating-katana__blade {
    width: 190px;
  }

  .floating-katana__guard {
    left: 186px;
  }

  .floating-katana__handle {
    left: 206px;
    width: 56px;
  }

  .profile-card {
    padding: 20px 16px;
  }

  .profile-card__topline {
    padding-right: 118px;
    min-height: 48px;
  }

  .discord__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .discord__body {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
  }

  .discord__media {
    width: 100%;
  }

  .discord__avatar {
    width: 64px;
    height: 64px;
  }

  .action-button {
    min-height: 54px;
  }

  .action-button {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .layout {
    padding: 92px 12px 128px;
  }

  .corner-control--left {
    max-width: calc(100vw - 106px);
  }

  .corner-control--right {
    padding-inline: 6px;
    gap: 6px;
  }

  .bio-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    margin: 0;
    transform: none;
    grid-template-columns: 1fr;
  }

  .volume-slider {
    width: min(28vw, 112px);
    min-width: 96px;
  }

  .volume-value {
    min-width: 42px;
    font-size: 0.82rem;
  }

  .lang-toggle {
    min-width: 42px;
    padding: 9px 10px;
  }

  .nickname {
    font-size: clamp(2.8rem, 17vw, 4.2rem);
  }

  .profile-card__hover-stat {
    min-width: 102px;
    top: 14px;
    right: 14px;
    height: 44px;
    padding-inline: 11px 12px;
  }

  .profile-card__topline {
    padding-right: 108px;
    min-height: 58px;
    margin-bottom: 20px;
  }

  .badge {
    max-width: calc(100% - 112px);
    padding: 9px 12px;
    font-size: 0.69rem;
    letter-spacing: 0.07em;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    text-align: left;
    line-height: 1.2;
    align-items: flex-start;
  }

  .badge__dot {
    margin-top: 4px;
  }

  .bio {
    width: 100%;
    font-size: 0.96rem;
  }

  .discord {
    padding: 18px 16px;
  }

  .discord__identity {
    gap: 6px;
  }

  .discord__identity strong {
    font-size: 1rem;
  }

  .discord__identity span {
    font-size: 0.84rem;
  }

  .discord__activity {
    line-height: 1.5;
  }

  .discord__media {
    grid-template-columns: 52px 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px;
  }

  .discord__media-image {
    width: 52px;
    height: 52px;
  }

  .discord__media-copy {
    gap: 4px;
  }

  .discord__media-tabs {
    gap: 6px;
  }

  .discord__media-tab {
    padding: 4px 9px;
    font-size: 0.7rem;
  }

  .discord__media-title {
    font-size: 0.92rem;
  }

  .discord__media-subtitle {
    font-size: 0.8rem;
  }

  .discord__recent-list {
    gap: 5px;
  }

  .discord__recent-item {
    max-width: 100%;
    font-size: 0.68rem;
  }

  .status-pill {
    padding: 8px 12px;
  }

  .actions {
    gap: 12px;
  }

  .action-button {
    min-width: 0;
    padding: 13px 16px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scene__video,
  .floating-katana {
    transform: none !important;
  }
}
