:root {
  --text: rgba(248, 248, 248, 0.88);
  --muted: rgba(248, 248, 248, 0.54);
  --dim: rgba(248, 248, 248, 0.3);
  --glass: rgba(255, 255, 255, 0.11);
  --glass-strong: rgba(255, 255, 255, 0.17);
  --glass-line: rgba(255, 255, 255, 0.16);
  --green: #48ef89;
  --yellow: #f5d86d;
  --red: #ff7272;
  --white-glow: rgba(255, 255, 255, 0.72);
  --profile-bg: none;
  --shadow: 0 30px 110px rgba(0, 0, 0, 0.68);
}

* {
  box-sizing: border-box;
}

.anti-copy-enabled,
.anti-copy-enabled * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.anti-copy-enabled img,
.anti-copy-enabled video,
.anti-copy-enabled canvas,
.anti-copy-enabled svg {
  -webkit-user-drag: none;
  user-drag: none;
}

html {
  min-height: 100%;
  background: #070707;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  background: #070707;
  isolation: isolate;
  cursor: none;
}

body.entry-locked {
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(rgba(255, 255, 255, 0.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.019) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 34rem),
    #070707;
  background-size: 42px 42px, 42px 42px, auto, auto;
  animation: gridFloat 18s ease-in-out infinite alternate;
}

body.has-custom-bg::before {
  background:
    linear-gradient(rgba(5, 5, 5, 0.58), rgba(5, 5, 5, 0.72)),
    var(--profile-bg) center / cover fixed,
    #070707;
}

body.has-video-bg::before {
  background:
    linear-gradient(rgba(5, 5, 5, 0.46), rgba(5, 5, 5, 0.68)),
    #070707;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.06), transparent 24rem),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.55)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 5px);
  backdrop-filter: blur(1px);
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button {
  color: inherit;
  font: inherit;
  cursor: none;
}

input,
label {
  cursor: none;
}

svg {
  display: block;
}

.custom-cursor,
.cursor-trail {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

.cursor-active .custom-cursor,
.cursor-active .cursor-trail {
  opacity: 1;
}

.custom-cursor {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  transition: opacity 140ms ease;
}

.custom-cursor img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 15px rgba(255, 50, 50, 0.62))
    drop-shadow(0 0 30px rgba(255, 255, 255, 0.24));
  animation: cursorSpin 2.2s linear infinite, cursorFloat 1.6s ease-in-out infinite;
}

.cursor-glow {
  position: absolute;
  inset: -8px;
  z-index: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.38), rgba(255, 34, 34, 0.22) 38%, transparent 68%);
  filter: blur(8px);
  animation: cursorGlowPulse 1.5s ease-in-out infinite;
}

.cursor-trail {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 32, 32, 0.12) 36%, transparent 70%);
  filter: blur(8px);
  transition: opacity 180ms ease;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -4;
  overflow: hidden;
}

.background-video {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  opacity: 0;
  filter: blur(2.5px) brightness(0.3) contrast(1.08) saturate(0.82);
  transform: scale(1.025);
  transition: opacity 720ms ease;
  animation: videoMotionBlur 9s ease-in-out infinite alternate;
}

body.has-video-bg .background-video {
  opacity: 0.64;
}

.background::before {
  content: "";
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.2), transparent 16rem),
    radial-gradient(circle at 82% 20%, rgba(180, 180, 180, 0.14), transparent 18rem),
    radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.13), transparent 21rem);
  filter: blur(9px) grayscale(1);
  transform: scale(1.05);
  animation: backgroundBreath 8s ease-in-out infinite;
  mix-blend-mode: screen;
}

.mist {
  position: absolute;
  width: 42vw;
  min-width: 260px;
  height: 74vh;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  filter: blur(72px);
  animation: drift 13s ease-in-out infinite alternate;
}

.mist-one {
  left: -14vw;
  top: -10vh;
}

.mist-two {
  right: -18vw;
  top: 14vh;
  animation-delay: -4s;
}

.mist-three {
  left: 34vw;
  bottom: -32vh;
  animation-delay: -8s;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 18%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.065), transparent);
  filter: blur(10px);
  animation: scan 5.5s linear infinite;
}

.katana-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  perspective: 900px;
  pointer-events: none;
}

.katana-scene.webgl-ready .katana-orbit {
  display: none;
}

#katanaCanvas {
  width: min(118vw, 1280px);
  height: min(58vw, 520px);
  min-height: 360px;
  display: block;
  opacity: 0.32;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.82))
    drop-shadow(0 0 32px rgba(255, 255, 255, 0.4))
    drop-shadow(0 0 82px rgba(0, 220, 220, 0.2));
}

.katana-scene::before {
  content: "";
  position: absolute;
  width: min(88vw, 780px);
  height: 170px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07) 38%, transparent 72%);
  filter: blur(22px);
  animation: haloPulse 2.7s ease-in-out infinite;
}

.katana-orbit {
  width: min(92vw, 860px);
  height: 260px;
  position: relative;
  transform-style: preserve-3d;
  animation: katanaOrbit 5.8s cubic-bezier(0.75, 0, 0.22, 1) infinite;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.92))
    drop-shadow(0 0 34px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 90px rgba(255, 255, 255, 0.22));
  opacity: 1;
}

.katana {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88vw, 820px);
  height: 118px;
  transform: translate(-50%, -50%) rotate(-13deg) rotateX(42deg);
  transform-style: preserve-3d;
}

.katana span {
  position: absolute;
  display: block;
}

.blade {
  left: 23%;
  top: 50px;
  width: 70%;
  height: 18px;
  clip-path: polygon(0 18%, 91% 0, 100% 50%, 91% 100%, 0 82%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.98) 46%, rgba(255, 255, 255, 0.34)),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.54), transparent);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.96),
    0 0 42px rgba(255, 255, 255, 0.8),
    0 0 110px rgba(255, 255, 255, 0.38);
}

.edge {
  left: 25%;
  width: 62%;
  height: 1px;
  background: rgba(255, 255, 255, 0.86);
}

.edge-top {
  top: 43px;
  transform: rotate(-1deg);
}

.edge-bottom {
  top: 72px;
  transform: rotate(1deg);
}

.guard {
  left: 18%;
  top: 35px;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 58%);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.66);
}

.handle {
  left: 2%;
  top: 51px;
  width: 18%;
  height: 18px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.2) 0 8px, rgba(255, 255, 255, 0.7) 8px 10px),
    rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.58);
}

.pommel {
  left: 0;
  top: 47px;
  width: 20px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.82);
}

.katana::before,
.katana::after {
  content: "";
  position: absolute;
  left: 16%;
  top: 44px;
  width: 78%;
  height: 1px;
  background: rgba(255, 255, 255, 0.46);
  transform: translateZ(-28px) rotate(3deg);
  opacity: 0.55;
}

.katana::after {
  transform: translateZ(28px) rotate(-3deg);
  opacity: 0.32;
}

.sound-control {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: enterTop 620ms ease both;
}

.sound-toggle {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.12), transparent 42%),
    rgba(0, 0, 0, 0.22);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  cursor: none;
  transition: transform 160ms ease, background 160ms ease;
}

.volume-panel {
  display: grid;
  gap: 6px;
  width: 132px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  backdrop-filter: blur(18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.sound-control:hover .volume-panel,
.sound-control:focus-within .volume-panel {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.volume-panel span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.volume-panel input {
  width: 100%;
  accent-color: rgba(255, 255, 255, 0.86);
  cursor: none;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  border: 0;
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.045), transparent 18rem),
    rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(16px) brightness(0.34);
  cursor: none;
  transition: opacity 420ms ease, visibility 420ms ease, transform 420ms ease;
}

.entry-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.035), transparent 24rem),
    radial-gradient(circle at 68% 68%, rgba(255, 255, 255, 0.026), transparent 22rem),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 7px);
  opacity: 0.72;
}

.entry-gate::after {
  display: none;
}

.entry-orb {
  display: none;
}

.entry-gate strong {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  letter-spacing: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.32),
    0 0 28px rgba(255, 255, 255, 0.12);
  animation: entryTextPulse 2.4s ease-in-out infinite;
}

.entry-gate small,
.entry-gate i {
  display: none;
}

body.entry-opened .entry-gate,
body:not(.entry-locked) .entry-gate {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

body.entry-locked .bio-stage,
body.entry-locked .sound-control,
body.entry-locked .clock-widget {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  filter: blur(8px);
}

.bio-stage,
.sound-control,
.clock-widget {
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
}

.clock-widget {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  min-width: 136px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  text-align: right;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.1), transparent 52%),
    rgba(0, 0, 0, 0.26);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  animation: enterTop 620ms ease 120ms both;
}

.clock-widget span,
.clock-widget small {
  display: block;
}

.clock-widget span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  font-weight: 700;
}

.clock-widget small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  transform: translateY(-2px) scale(1.03);
  background-color: rgba(255, 255, 255, 0.24);
  outline: none;
}

.sound-toggle svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.sound-toggle.is-muted svg path:nth-child(n + 2) {
  opacity: 0.22;
}

.bio-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.profile {
  position: relative;
  width: min(520px, 100%);
  margin-top: 26px;
  padding: 0 0 4px;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
  animation: profileIn 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile::before {
  content: "";
  position: absolute;
  inset: -28px -36px;
  z-index: -1;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.1), transparent 62%);
  filter: blur(22px);
  opacity: 0.7;
}

.avatar-shell {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 12px;
  animation: floatAvatar 3.2s ease-in-out infinite;
}

.avatar-shell::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background:
    conic-gradient(from 90deg, transparent, rgba(225, 255, 255, 0.7), transparent 38%, rgba(255, 255, 255, 0.48), transparent 74%);
  filter: blur(10px);
  opacity: 0.72;
  animation: snowAura 4.8s linear infinite;
}

.main-avatar {
  position: relative;
  z-index: 2;
  width: 94px;
  height: 94px;
  object-fit: cover;
  margin: 7px;
  border-radius: 50%;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.08);
  filter: grayscale(1) drop-shadow(0 0 24px rgba(255, 255, 255, 0.2));
}

.avatar-ring {
  display: none;
}

.avatar-frost {
  position: absolute;
  inset: 3px;
  z-index: 4;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 13%, rgba(255, 255, 255, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 18%, rgba(220, 255, 255, 0.75) 0 1.5px, transparent 3px),
    radial-gradient(circle at 84% 68%, rgba(255, 255, 255, 0.6) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 77%, rgba(230, 255, 255, 0.62) 0 1.5px, transparent 3px);
  box-shadow:
    inset 0 0 18px rgba(225, 255, 255, 0.18),
    0 0 20px rgba(225, 255, 255, 0.22);
  mask-image: radial-gradient(circle, transparent 56%, #000 58%);
  animation: frostTwinkle 2.2s ease-in-out infinite;
}

.avatar-snow {
  position: absolute;
  inset: -18px;
  z-index: 5;
  overflow: hidden;
  border-radius: 50%;
  pointer-events: none;
}

.avatar-snow i {
  position: absolute;
  top: -8px;
  width: var(--snow-size, 3px);
  height: var(--snow-size, 3px);
  left: var(--snow-left, 50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(220, 255, 255, 0.72);
  opacity: 0;
  animation: avatarSnowFall var(--snow-speed, 2.8s) linear var(--snow-delay, 0s) infinite;
}

.avatar-snow i:nth-child(1) {
  --snow-left: 14%;
  --snow-size: 2px;
  --snow-speed: 2.6s;
}

.avatar-snow i:nth-child(2) {
  --snow-left: 27%;
  --snow-size: 3px;
  --snow-speed: 3.1s;
  --snow-delay: 0.2s;
}

.avatar-snow i:nth-child(3) {
  --snow-left: 38%;
  --snow-size: 2px;
  --snow-speed: 2.4s;
  --snow-delay: 0.6s;
}

.avatar-snow i:nth-child(4) {
  --snow-left: 51%;
  --snow-size: 4px;
  --snow-speed: 3.4s;
  --snow-delay: 0.1s;
}

.avatar-snow i:nth-child(5) {
  --snow-left: 64%;
  --snow-size: 2px;
  --snow-speed: 2.8s;
  --snow-delay: 0.8s;
}

.avatar-snow i:nth-child(6) {
  --snow-left: 78%;
  --snow-size: 3px;
  --snow-speed: 3s;
  --snow-delay: 0.45s;
}

.avatar-snow i:nth-child(7) {
  --snow-left: 88%;
  --snow-size: 2px;
  --snow-speed: 2.5s;
  --snow-delay: 1.1s;
}

.avatar-snow i:nth-child(8) {
  --snow-left: 33%;
  --snow-size: 3px;
  --snow-speed: 3.6s;
  --snow-delay: 1.35s;
}

.avatar-snow i:nth-child(9) {
  --snow-left: 70%;
  --snow-size: 2px;
  --snow-speed: 2.9s;
  --snow-delay: 1.6s;
}

.avatar-snow i:nth-child(10) {
  --snow-left: 47%;
  --snow-size: 2px;
  --snow-speed: 3.2s;
  --snow-delay: 1.9s;
}

.name-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  perspective: 760px;
  transform-style: preserve-3d;
}

h1 {
  position: relative;
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.1rem, 8vw, 3rem);
  line-height: 1;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  transform-style: preserve-3d;
  animation: nameGlow 3.4s ease-in-out infinite;
}

h1.typing::after {
  content: "";
  display: inline-block;
  width: 0.52em;
  height: 0.08em;
  margin-left: 0.12em;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.72);
  vertical-align: 0.1em;
  animation: cursorBlink 520ms steps(1) infinite;
}

.name-digit {
  position: relative;
  display: inline-block;
  min-width: 0.62em;
  padding: 0 0.015em;
  color: rgba(255, 255, 255, 0.9);
  transform-origin: 50% 80%;
  transform-style: preserve-3d;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.72),
    0 0 18px rgba(180, 255, 255, 0.3);
  transition: opacity 140ms ease, filter 140ms ease, transform 140ms ease;
  animation:
    digitFloat3d 1.45s ease-in-out var(--delay) infinite,
    digitHolo 2.3s linear var(--delay) infinite;
}

.name-digit::before,
.name-digit::after {
  content: attr(data-value);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.name-digit::before {
  color: rgba(104, 255, 255, 0.28);
  transform: translate3d(-0.045em, -0.03em, -0.12em);
  filter: blur(0.5px);
}

.name-digit::after {
  color: rgba(255, 255, 255, 0.2);
  transform: translate3d(0.055em, 0.05em, -0.2em);
  filter: blur(1px);
}

.name-digit.is-visible {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.name-digit.is-rolling {
  opacity: 0.78;
  transform: translateY(-0.18em) rotateX(68deg) rotateY(-20deg) translateZ(0.24em) scale(1.14);
  filter: blur(0.25px) drop-shadow(0 0 18px rgba(195, 255, 255, 0.72));
}

.name-digit.is-hidden {
  opacity: 0.2;
  transform: translateY(0.22em) rotateX(-60deg) translateZ(-0.28em) scale(0.86);
  filter: blur(1px);
}

.name-particles {
  position: absolute;
  inset: -18px -28px;
  z-index: -1;
  pointer-events: none;
}

.name-particles i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(220, 255, 255, 0.86);
  box-shadow: 0 0 12px rgba(220, 255, 255, 0.78);
  animation: holoParticle 2.8s ease-in-out infinite;
}

.name-particles i:nth-child(1) {
  left: 8%;
  top: 20%;
}

.name-particles i:nth-child(2) {
  left: 25%;
  bottom: 8%;
  animation-delay: 0.35s;
}

.name-particles i:nth-child(3) {
  left: 48%;
  top: 0;
  animation-delay: 0.7s;
}

.name-particles i:nth-child(4) {
  right: 32%;
  bottom: 2%;
  animation-delay: 1.05s;
}

.name-particles i:nth-child(5) {
  right: 12%;
  top: 28%;
  animation-delay: 1.4s;
}

.name-particles i:nth-child(6) {
  right: 4%;
  bottom: 24%;
  animation-delay: 1.75s;
}

.badges {
  display: inline-flex;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 26px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.badges span {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 3px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
  animation: badgePulse 2.8s ease-in-out infinite;
}

.badges .badge-dma {
  min-width: 42px;
  border: 1px solid rgba(230, 205, 116, 0.45);
  border-radius: 999px;
  color: rgba(255, 232, 151, 0.95);
  background:
    linear-gradient(135deg, rgba(255, 230, 145, 0.22), rgba(20, 20, 20, 0.72)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 14px rgba(230, 190, 86, 0.18);
  letter-spacing: 0;
}

.badges .badge-image {
  width: 34px;
  min-width: 34px;
  padding: 0;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 0 14px rgba(230, 190, 86, 0.16);
}

.badges .badge-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badges .badge-crown {
  min-width: 24px;
  color: #050505;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.28), transparent 48%),
    linear-gradient(145deg, rgba(18, 18, 18, 0.98), rgba(0, 0, 0, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.82),
    0 0 10px rgba(255, 255, 255, 0.48),
    0 0 18px rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 16px rgba(255, 255, 255, 0.22);
}

.badges span:nth-child(2) {
  animation-delay: 0.3s;
}

.badges span:nth-child(3) {
  animation-delay: 0.6s;
}

.tagline,
.joined {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 3vw, 1.12rem);
}

.joined {
  margin-top: 12px;
}

.cards {
  display: grid;
  gap: 12px;
  margin: 38px 0 28px;
}

.glass-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 92px;
  gap: 14px;
  padding: 13px 18px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  text-align: left;
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.22), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--shadow);
  backdrop-filter: blur(24px);
  animation: cardIn 760ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
  transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.18), transparent 62% 100%);
  transform: translateX(-120%);
  animation: sheen 5.8s ease-in-out infinite;
}

.glass-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.26);
}

.small-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  background: #030303;
  filter: grayscale(1);
}

.glass-card strong {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.07rem;
}

.glass-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-dot {
  align-self: end;
  width: 14px;
  height: 14px;
  margin-bottom: 8px;
  border: 3px solid rgba(0, 0, 0, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.24);
}

.status-online {
  background: var(--green);
  box-shadow: 0 0 18px rgba(72, 239, 137, 0.9);
}

.status-idle {
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(245, 216, 109, 0.78);
}

.status-dnd {
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 114, 114, 0.82);
}

.status-offline {
  background: rgba(255, 255, 255, 0.42);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 28px;
}

.socials a,
.socials button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.18), transparent 45%),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: none;
  opacity: 0.78;
  backdrop-filter: blur(14px);
  animation: iconIn 580ms ease both;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.socials a:nth-child(2),
.socials button:nth-child(2) {
  animation-delay: 0.08s;
}

.socials a:nth-child(3),
.socials button:nth-child(3) {
  animation-delay: 0.16s;
}

.socials a:nth-child(4),
.socials button:nth-child(4) {
  animation-delay: 0.24s;
}

.socials a:hover,
.socials button:hover,
.socials a:focus-visible,
.socials button:focus-visible {
  opacity: 1;
  transform: translateY(-3px) scale(1.07);
  border-color: rgba(255, 255, 255, 0.22);
  outline: none;
}

.socials svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.76);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.stats {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
  animation: statsIn 680ms ease 300ms both;
}

.stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.stats svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  transform: translate(-50%, 18px);
  padding: 10px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(10, 10, 10, 0.74);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(18px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes katanaOrbit {
  0% {
    transform: rotateX(48deg) rotateY(0deg) rotateZ(-5deg) scale(0.98);
  }
  18% {
    transform: rotateX(48deg) rotateY(720deg) rotateZ(-5deg) scale(1.08);
  }
  44% {
    transform: rotateX(48deg) rotateY(935deg) rotateZ(-5deg) scale(1.03);
  }
  72% {
    transform: rotateX(48deg) rotateY(1030deg) rotateZ(-5deg) scale(1);
  }
  100% {
    transform: rotateX(48deg) rotateY(1080deg) rotateZ(-5deg) scale(0.98);
  }
}

@keyframes entryScan {
  to {
    transform: translateY(18px);
  }
}

@keyframes entryRing {
  to {
    transform: rotate(360deg);
  }
}

@keyframes entryOrb {
  50% {
    transform: translateY(-6px) scale(1.06);
    filter: brightness(1.16);
  }
}

@keyframes entryTextPulse {
  50% {
    opacity: 0.74;
    filter: blur(0.2px);
  }
}

@keyframes cursorSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cursorFloat {
  50% {
    scale: 1.08;
  }
}

@keyframes cursorGlowPulse {
  50% {
    opacity: 0.62;
    transform: scale(1.18);
  }
}

@keyframes haloPulse {
  50% {
    opacity: 0.48;
    transform: scale(1.08);
  }
}

@keyframes profileIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes iconIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.9);
  }
  to {
    opacity: 0.78;
    transform: translateY(0) scale(1);
  }
}

@keyframes statsIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes enterTop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  to {
    transform: translate3d(8vw, 4vh, 0) scale(1.08);
  }
}

@keyframes scan {
  to {
    top: 112%;
  }
}

@keyframes backgroundBreath {
  50% {
    opacity: 0.72;
    transform: scale(1.08);
  }
}

@keyframes videoMotionBlur {
  0% {
    transform: scale(1.03) translate3d(-0.18%, -0.12%, 0);
    filter: blur(2.2px) brightness(0.29) contrast(1.08) saturate(0.82);
  }
  50% {
    transform: scale(1.04) translate3d(0.2%, 0.14%, 0);
    filter: blur(3.4px) brightness(0.32) contrast(1.1) saturate(0.86);
  }
  100% {
    transform: scale(1.032) translate3d(0.1%, -0.16%, 0);
    filter: blur(2.6px) brightness(0.3) contrast(1.08) saturate(0.84);
  }
}

@keyframes gridFloat {
  to {
    background-position: 18px 20px, 18px 20px, center, center;
  }
}

@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes snowAura {
  to {
    transform: rotate(360deg);
  }
}

@keyframes frostTwinkle {
  50% {
    opacity: 0.56;
    filter: brightness(1.25);
  }
}

@keyframes avatarSnowFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -4px, 0) scale(0.7);
  }
  15% {
    opacity: 1;
  }
  82% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--snow-drift, 9px), 132px, 0) scale(1.05);
  }
}

@keyframes floatAvatar {
  50% {
    transform: translateY(-5px);
  }
}

@keyframes nameGlow {
  50% {
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.34);
  }
}

@keyframes badgePulse {
  50% {
    transform: translateY(-1px) scale(1.08);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.72));
  }
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

@keyframes digitFloat3d {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg) translateZ(0);
  }
  50% {
    transform: translateY(-0.13em) rotateX(16deg) rotateY(-9deg) translateZ(0.16em);
  }
}

@keyframes digitHolo {
  0%,
  86%,
  100% {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.72),
      0 0 18px rgba(180, 255, 255, 0.3);
  }
  88% {
    text-shadow:
      -2px 0 6px rgba(120, 255, 255, 0.72),
      2px 0 8px rgba(255, 255, 255, 0.34);
    transform: translateY(-0.04em) rotateY(14deg);
  }
  91% {
    transform: translateY(0.03em) rotateY(-12deg);
  }
}

@keyframes holoParticle {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 8px, -20px) scale(0.5);
  }
  35% {
    opacity: 1;
  }
  70% {
    opacity: 0.28;
    transform: translate3d(10px, -18px, 30px) scale(1.35);
  }
}

@keyframes sheen {
  42%,
  100% {
    transform: translateX(125%);
  }
}

@media (max-width: 560px) {
  body {
    overflow-y: auto;
  }

  .sound-toggle {
    width: 58px;
    height: 58px;
  }

  .volume-panel {
    width: 112px;
  }

  .bio-stage {
    place-items: start center;
    padding-top: 112px;
    padding-bottom: 28px;
  }

  .profile {
    margin-top: 0;
  }

  .katana-orbit {
    width: 126vw;
    opacity: 0.82;
  }

  .clock-widget {
    min-width: 122px;
    padding: 10px 11px;
  }

  .glass-card {
    min-height: 84px;
    padding: 12px 14px;
  }

  .small-avatar {
    width: 56px;
    height: 56px;
  }

  .stats {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
