


:root {
  --bg: #000000;
  --card: #000000;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f5f3;
  --muted: #8b8e98;

  --layout-time: 620ms;
  --theme-wipe-time: 760ms;
  --motion-reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --camera-travel-time: 2400ms;
  --layout-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}


html.theme-light,
body.theme-light {
  --bg: #f2f2ef;
  --card: #f8f8f5;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.18);
  --text: #121316;
  --muted: #666a72;
}

* {
  box-sizing: border-box;
}

html,
body,
body * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  overflow-x: hidden;

  color: var(--text);

  font-family:
    "Inter",
    sans-serif;

  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 255, 255, 0.022),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #090a0c 0%,
      #08090b 55%,
      #07080a 100%
    );
}

body.theme-light {
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(0, 0, 0, 0.022),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #f7f7f4 0%,
      #f1f1ee 55%,
      #ecece8 100%
    );
}

html.theme-light {
  background: #ecece8;
}

body::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  opacity: 0.045;

  background-image:
    radial-gradient(
      rgba(255, 255, 255, 0.24) 0.45px,
      transparent 0.45px
    );

  background-size:
    22px 22px;

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.35),
      transparent 78%
    );
}

body.theme-light::before {
  opacity: 0.038;

  background-image:
    radial-gradient(
      rgba(0, 0, 0, 0.30) 0.45px,
      transparent 0.45px
    );
}
.theme-world-curtain {
  position: fixed;
  inset: 0;

  z-index: 2;

  pointer-events: none;

  opacity: 0;

  clip-path:
    inset(0 0 0 0);

  will-change:
    clip-path, opacity;
}

.theme-world-curtain.from-dark {
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 255, 255, 0.022),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #090a0c 0%,
      #08090b 55%,
      #07080a 100%
    );
}

.theme-world-curtain.from-light {
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(0, 0, 0, 0.022),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #f7f7f4 0%,
      #f1f1ee 55%,
      #ecece8 100%
    );
}

.theme-world-curtain.is-ready {
  opacity: 1;
}

.theme-world-curtain.is-revealing {
  animation:
    themeWorldReveal 860ms
    cubic-bezier(0.16, 1, 0.3, 1)
    forwards;
}

@keyframes themeWorldReveal {
  from {
    clip-path:
      inset(0 0 0 0);
  }

  to {
    clip-path:
      inset(0 0 0 100%);
  }
}
.home-theme-wash {
  position: fixed;
  inset: 0;

  pointer-events: none;

  z-index: 0;

  opacity: 0;

  background:
    radial-gradient(
      circle at 54% 30%,
      rgba(111, 157, 207, 0.095),
      transparent 38%
    ),
    radial-gradient(
      circle at 82% 76%,
      rgba(54, 87, 126, 0.11),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(3, 8, 13, 0.98) 0%,
      rgba(4, 10, 16, 0.985) 54%,
      rgba(3, 8, 13, 0.995) 100%
    );

  transition:
    opacity 2200ms
    cubic-bezier(0.45, 0, 0.20, 1);

  will-change:
    opacity;
}

body.view-home .home-theme-wash {
  opacity: 1;
}

body.theme-light .home-theme-wash {
  background:
    radial-gradient(
      circle at 54% 30%,
      rgba(99, 139, 177, 0.085),
      transparent 38%
    ),
    radial-gradient(
      circle at 82% 76%,
      rgba(80, 114, 146, 0.075),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(233, 240, 246, 0.96) 0%,
      rgba(225, 234, 241, 0.975) 54%,
      rgba(218, 228, 236, 0.99) 100%
    );
}
body::before {
  transition:
    opacity 1800ms ease;
}

body.view-home::before {
  opacity: 0.028;
}

#snowCanvas,

/* ============================================================
   WEATHER CANVAS (SNOW / RAIN)
   ============================================================ */
#rainCanvas {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  pointer-events: none;

  z-index: 1;

  transition:
    opacity 1700ms
    cubic-bezier(0.45, 0, 0.55, 1);

  will-change:
    opacity;
}

#snowCanvas {
  opacity: 0.72;
}

#rainCanvas {
  opacity: 0;
}

body.view-home #snowCanvas {
  opacity: 0;
}

body.view-home #rainCanvas {
  opacity: 0.76;
}

@media (prefers-reduced-motion: reduce) {
  .expanded-home-link {
    animation:
      none;
  }

  #snowCanvas,
  #rainCanvas {
    transition:
      none;
  }
}
.page {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100svh;
  min-height: 100svh;

  overflow: hidden;
}

.stage {
  width: 100%;
  max-width: 540px;

  perspective: 1150px;

  opacity: 0;

  transform:
    translateY(14px)
    scale(0.985);

  transition:
    opacity 720ms ease,
    transform 760ms var(--layout-ease);
}

body.page-ready .stage {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

.stage.idle-floating {
  animation:
    idleFloat
    4.8s
    ease-in-out
    infinite;
}

@keyframes idleFloat {
  0%,
  100% {
    transform:
      translateY(0);
  }

  50% {
    transform:
      translateY(-2px);
  }
}
.profile-card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;

  position: relative;

  width: 100%;
  max-width: 540px;

  margin: 0 auto;

  padding:
    22px 22px 20px;

  overflow: hidden;

  border:
    1px solid
    var(--line);

  border-radius:
    30px 14px 30px 30px;

  background:
    #000000;

  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  transform:
    rotateX(var(--rx))
    rotateY(var(--ry))
    translateY(var(--lift));

  transform-style:
    preserve-3d;

  transition:
    max-width var(--layout-time) var(--layout-ease),
    padding var(--layout-time) var(--layout-ease),
    border-radius var(--layout-time) var(--layout-ease),
    transform 180ms var(--ease),
    border-color 900ms ease,
    box-shadow 220ms ease;
}
.theme-card-wipe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;

  z-index: 7;

  width: 0;

  border-radius: inherit;

  pointer-events: none;

  opacity: 0;

  transform: none;

  will-change:
    width, opacity;
}

.theme-card-wipe.is-running {
  opacity: 1;

  animation:
    themeCardSweep 590ms
    cubic-bezier(0.16, 1, 0.3, 1)
    forwards;
}

.theme-card-wipe.is-fading {
  opacity: 0;

  transition:
    opacity 170ms ease;
}

@keyframes themeCardSweep {
  from {
    transform:
      scaleX(0);
  }

  to {
    transform:
      scaleX(1);
  }
}
.theme-corner-toggle {
  position: absolute;
  top: 6px;
  left: 7px;

  z-index: 10;

  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 9px;

  color:
    rgba(255, 255, 255, 0.20);

  background:
    transparent;

  font-family:
    "Space Grotesk",
    sans-serif;

  font-size: 12px;
  line-height: 1;

  cursor: pointer;

  opacity: 0.72;

  transition:
    color 180ms ease,
    background 180ms ease,
    opacity 180ms ease,
    transform 180ms var(--ease);
}

.theme-corner-toggle:hover,
.theme-corner-toggle:focus-visible {
  color:
    rgba(255, 255, 255, 0.72);

  background:
    rgba(255, 255, 255, 0.032);

  opacity: 1;

  transform:
    scale(1.06);
}

.theme-corner-toggle:focus-visible {
  outline:
    2px solid
    rgba(255, 255, 255, 0.18);

  outline-offset:
    1px;
}
body.theme-light .profile-card {
  background: #f8f8f5;

  border-color:
    rgba(0, 0, 0, 0.11);

  box-shadow:
    0 24px 72px rgba(31, 33, 36, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.theme-light .profile-card::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(0, 0, 0, 0.035);
}

body.theme-light .profile-card.hovered {
  border-color:
    rgba(0, 0, 0, 0.16);

  box-shadow:
    0 30px 92px rgba(31, 33, 36, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}
body.theme-light .theme-corner-toggle {
  color:
    rgba(0, 0, 0, 0.24);
}

body.theme-light .theme-corner-toggle:hover,
body.theme-light .theme-corner-toggle:focus-visible {
  color:
    rgba(0, 0, 0, 0.76);

  background:
    rgba(0, 0, 0, 0.035);
}
.profile-card::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  pointer-events: none;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(255, 255, 255, 0.01);
}

.profile-card.hovered {
  border-color:
    rgba(255, 255, 255, 0.12);

  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.identity {
  position: relative;
  z-index: 2;

  height: 132px;

  padding:
    6px 10px 18px;

  display: grid;
  grid-template-columns:
    auto
    1fr;

  align-items: center;

  gap: 18px;

  transition:
    height var(--layout-time) var(--layout-ease),
    padding var(--layout-time) var(--layout-ease),
    gap var(--layout-time) var(--layout-ease);
}
.avatar-wrap {
  appearance: none;

  display: block;

  width: 88px;
  height: 88px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;

  cursor: pointer;

  transition:
    transform 180ms var(--ease);
}

.avatar-ring {
  position: relative;

  width: 100%;
  height: 100%;

  display: block;

  padding: 2px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(183, 188, 198, 0.62) 46%,
      rgba(245, 247, 250, 0.9) 72%,
      rgba(145, 150, 160, 0.55)
    );

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 14px rgba(235, 240, 248, 0.07);

  transition:
    box-shadow 260ms ease,
    filter 260ms ease,
    transform 260ms var(--ease);

  will-change:
    opacity, transform;
}

.avatar-ring::after {
  content: "";

  position: absolute;
  inset: 2px;

  border-radius: inherit;

  box-shadow:
    inset 0 0 0 1px
    rgba(255, 255, 255, 0.07);

  pointer-events: none;
}

.avatar-ring img {
  width: 100%;
  height: 100%;

  display: block;

  border-radius: 50%;

  object-fit: cover;
  object-position: center 36%;

  border:
    2px solid
    #101116;

  user-select: none;
  pointer-events: none;
}

@keyframes avatarWhiteGlowPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 0 8px rgba(255, 255, 255, 0.08),
      0 0 18px rgba(235, 240, 248, 0.04);

    filter:
      brightness(1);

    transform:
      scale(1);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.24),
      0 0 14px rgba(255, 255, 255, 0.34),
      0 0 30px rgba(235, 240, 248, 0.18);

    filter:
      brightness(1.08);

    transform:
      scale(1.025);
  }
}

.avatar-wrap:hover .avatar-ring,
.avatar-wrap:focus-visible .avatar-ring {
  animation:
    avatarWhiteGlowPulse
    1.45s
    ease-in-out
    infinite;
}

.avatar-wrap:focus-visible {
  outline:
    2px solid
    rgba(255, 255, 255, 0.26);

  outline-offset:
    5px;
}
.identity-copy {
  min-width: 0;

  transition:
    transform 180ms var(--ease);
}

.name {
  width: fit-content;

  margin:
    0 0 6px;

  font-family:
    "Space Grotesk",
    sans-serif;

  font-size: 29px;
  font-weight: 700;
  line-height: 1;

  letter-spacing:
    -0.035em;

  color:
    transparent;

  background-image:
    url(
      "https://cdn.7tv.app/paint/01KNA91M442MJHKC3RR4WFFFXZ/layer/01KNA91M44412EBRYX4K82E3G4/4x.webp"
    );

  background-size:
    145% auto;

  background-position:
    50% 50%;

  background-repeat:
    no-repeat;

  background-color:
    #bfbfbf;

  -webkit-background-clip:
    text;

  background-clip:
    text;

  -webkit-text-fill-color:
    transparent;

  filter:
    drop-shadow(
      0 0 0.2px
      rgba(255, 255, 255, 0.3)
    );

  transition:
    font-size var(--layout-time) var(--layout-ease),
    margin var(--layout-time) var(--layout-ease),
    filter 180ms ease;
}

@keyframes namePaintShift {
  from {
    background-position:
      30% 50%;
  }

  to {
    background-position:
      70% 50%;
  }
}

.name:hover {
  animation:
    namePaintShift
    2.2s
    ease-in-out
    infinite
    alternate;

  filter:
    brightness(1.13)
    drop-shadow(
      0 0 2px
      rgba(255, 255, 255, 0.16)
    );
}

.handle {
  margin: 0;

  color: var(--muted);

  font-size: 13px;
  font-weight: 500;

  letter-spacing:
    -0.01em;

  transition:
    font-size var(--layout-time) var(--layout-ease);
}




.expanded-socials-slot,

/* ============================================================
   SOCIAL CARD (COMPACT)
   ============================================================ */
.social-card-slot {
  display: grid;

  transition:
    grid-template-rows var(--layout-time) var(--layout-ease),
    opacity 260ms ease;
}
.expanded-socials-slot {
  grid-template-rows: 0fr;

  opacity: 0;

  pointer-events: none;
}
.social-card-slot {
  grid-template-rows: 1fr;

  opacity: 1;
}

.slot-inner {
  min-height: 0;

  overflow: hidden;
}
.expanded-socials {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  padding:
    4px 3px 6px;

  transform:
    translateY(-10px);

  opacity: 0;

  transition:
    transform var(--layout-time) var(--layout-ease),
    opacity 260ms ease;
}

.expanded-socials a {
  width: 76px;
  min-width: 76px;
  min-height: 58px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 6px;

  padding: 8px;

  border:
    1px solid
    transparent;

  border-radius:
    12px;

  color:
    var(--muted);

  text-decoration:
    none;

  line-height: 1;

  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms var(--ease);
}

.expanded-socials a:hover,
.expanded-socials a:focus-visible {
  color: var(--text);

  border-color: var(--line);

  background:
    rgba(255, 255, 255, 0.026);

  transform:
    translateY(-2px);
}

.expanded-socials a:focus-visible {
  outline:
    2px solid
    rgba(255, 255, 255, 0.26);

  outline-offset:
    2px;
}




.expanded-home-link {
  width: max-content;

  margin:
    8px auto 2px;

  padding:
    5px 9px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border:
    1px solid
    transparent;

  border-radius:
    7px;

  color:
    rgba(255, 255, 255, 0.46);

  background:
    transparent;

  text-decoration:
    none;

  font-size:
    8px;

  font-weight:
    700;

  line-height:
    1;

  letter-spacing:
    0.10em;

  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms var(--ease);

  animation:
    homeButtonGlow 2s ease-in-out infinite;

  will-change:
    color,
    text-shadow;
}


@keyframes homeButtonGlow {
  0%,
  100% {
    color:
      rgba(255, 255, 255, 0.46);

    text-shadow:
      0 0 0 rgba(255, 255, 255, 0);
  }

  45%,
  55% {
    color:
      rgba(255, 255, 255, 0.92);

    text-shadow:
      0 0 7px rgba(242, 247, 255, 0.55),
      0 0 14px rgba(230, 240, 255, 0.20);
  }
}

.expanded-home-link:hover,
.expanded-home-link:focus-visible {
  color:
    rgba(255, 255, 255, 0.92);

  border-color:
    rgba(255, 255, 255, 0.08);

  background:
    rgba(255, 255, 255, 0.025);

  transform:
    translateY(-1px);
}

.expanded-home-link:focus-visible {
  outline:
    2px solid
    rgba(255, 255, 255, 0.22);

  outline-offset:
    2px;
}

.expanded-socials svg {
  width: 19px;
  height: 19px;

  display: block;
}

.expanded-socials span {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;

  letter-spacing:
    0.05em;

  text-transform:
    uppercase;

  white-space:
    nowrap;
}
.social-card {
  min-height: 68px;

  margin-top:
    14px;

  padding:
    11px 11px 11px 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  border:
    1px solid
    var(--line);

  border-radius:
    16px;

  background:
    rgba(255, 255, 255, 0.022);

  transform:
    translateY(0);

  transition:
    transform var(--layout-time) var(--layout-ease),
    border-color 220ms ease,
    background 220ms ease;
}

.social-card:hover {
  border-color:
    rgba(255, 255, 255, 0.16);

  background:
    rgba(255, 255, 255, 0.03);
}

.social-card-main {
  min-width: 0;
  flex: 1;

  display: flex;
  align-items: center;

  gap: 11px;

  color: inherit;

  text-decoration:
    none;

  will-change:
    transform,
    opacity;
}

.social-card-icon {
  flex: 0 0 auto;

  width: 39px;
  height: 39px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  border-radius:
    12px;

  color:
    #e7e9ee;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    );
}

.social-card-icon svg {
  width: 20px;
  height: 20px;

  display: block;
}

.social-card-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;

  text-align: left;
}

.social-card-title {
  font-family:
    "Space Grotesk",
    sans-serif;

  font-size: 13px;
  font-weight: 600;

  color: var(--text);
}

.social-card-sub {
  overflow: hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  color: var(--muted);

  font-size: 11px;
}

.social-card-right {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 10px;
}

.social-dots {
  display: flex;
  align-items: center;

  gap: 4px;
}

.social-dot {
  width: 6px;
  height: 6px;

  padding: 0;

  border: 0;
  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.16);

  cursor: pointer;

  transition:
    width 180ms var(--ease),
    background 180ms ease,
    transform 150ms var(--ease);
}

.social-dot:hover,
.social-dot:focus-visible {
  background:
    rgba(255, 255, 255, 0.42);

  transform:
    scale(1.12);
}

.social-dot:focus-visible {
  outline:
    2px solid
    rgba(255, 255, 255, 0.28);

  outline-offset:
    3px;
}

.social-dot.active {
  width: 11px;

  background:
    rgba(255, 255, 255, 0.55);
}


.compact-social-icon {
  width: 20px;
  height: 20px;

  display: block;

  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.social-card:hover .compact-social-icon,
.social-card:focus-within .compact-social-icon {
  transform: none !important;
  animation: none !important;
}

.visit-button {
  flex: 0 0 auto;

  min-width: 54px;
  height: 34px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  border:
    1px solid
    rgba(255, 255, 255, 0.09);

  border-radius:
    10px;

  color:
    rgba(255, 255, 255, 0.72);

  background:
    rgba(255, 255, 255, 0.018);

  text-decoration:
    none;

  font-size: 11px;
  font-weight: 600;

  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.visit-button:hover,
.visit-button:focus-visible {
  color: var(--text);

  border-color:
    rgba(255, 255, 255, 0.16);

  background:
    rgba(255, 255, 255, 0.03);
}
.layout-toggle {
  position: absolute;
  top: 14px;
  right: 14px;

  z-index: 8;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  padding: 0;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  border-radius:
    10px;

  color:
    rgba(255, 255, 255, 0.58);

  background:
    rgba(255, 255, 255, 0.018);

  cursor: pointer;

  transition:
    top var(--layout-time) var(--layout-ease),
    right var(--layout-time) var(--layout-ease),
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms var(--ease);
}

.layout-toggle:hover,
.layout-toggle:focus-visible {
  color: var(--text);

  border-color:
    rgba(255, 255, 255, 0.16);

  background:
    rgba(255, 255, 255, 0.035);

  transform:
    translateY(-1px);
}

.layout-toggle:focus-visible {
  outline:
    2px solid
    rgba(255, 255, 255, 0.26);

  outline-offset:
    2px;
}

.toggle-icon {
  position: absolute;

  width: 17px;
  height: 17px;

  transition:
    opacity 180ms ease,
    transform 240ms var(--ease);
}

.icon-expand {
  opacity: 1;

  transform:
    scale(1);
}

.icon-restore {
  opacity: 0;

  transform:
    scale(0.72)
    rotate(-8deg);
}
.profile-card.expanded {
  max-width: 460px;

  padding:
    30px 28px 24px;

  border-radius:
    24px;
}
.profile-card.expanded .layout-toggle {
  top: 16px;
  right: 16px;
}
.profile-card.expanded .icon-expand {
  opacity: 0;

  transform:
    scale(0.72)
    rotate(8deg);
}

.profile-card.expanded .icon-restore {
  opacity: 1;

  transform:
    scale(1)
    rotate(0);
}
.profile-card.expanded .identity {
  height: 178px;

  padding:
    18px 10px 8px;

  grid-template-columns:
    1fr;

  justify-items:
    center;

  text-align:
    center;

  gap:
    14px;
}
.profile-card.expanded .avatar-wrap {
  width: 94px;
  height: 94px;
}
.profile-card.expanded .identity-copy {
  display: flex;
  flex-direction: column;

  align-items:
    center;
}

.profile-card.expanded .name {
  margin-bottom: 6px;

  font-size: 24px;
}

.profile-card.expanded .handle {
  font-size: 12px;
}
.profile-card.expanded .expanded-socials-slot {
  grid-template-rows: 1fr;

  opacity: 1;

  pointer-events: auto;
}

.profile-card.expanded .expanded-socials {
  opacity: 1;

  transform:
    translateY(0);
}
.profile-card.expanded .social-card-slot {
  grid-template-rows: 0fr;

  opacity: 0;

  pointer-events: none;
}

.profile-card.expanded .social-card {
  transform:
    translateY(-8px);
}
.avatar-modal {
  position: fixed;
  inset: 0;

  z-index: 50;

  visibility: hidden;
  pointer-events: none;
}

.avatar-modal.active {
  visibility: visible;
  pointer-events: auto;
}

.avatar-modal-backdrop {
  position: absolute;
  inset: 0;

  border: 0;

  background:
    transparent;

  cursor: pointer;
}

.avatar-shared-viewer {
  position: fixed;
  z-index: 1;

  left: 0;
  top: 0;

  width: 88px;
  height: 88px;

  box-sizing: border-box;

  visibility: hidden;
  pointer-events: none;

  border-radius: 50%;

  background:
    #0e0f12;

  box-shadow:
    0 0 0 2px rgba(235, 240, 248, 0.72),
    0 0 18px rgba(255, 255, 255, 0.10);

  will-change:
    left,
    top,
    width,
    height,
    border-radius,
    box-shadow;

  contain:
    layout;

  overflow:
    visible;
}

.avatar-modal.active .avatar-shared-viewer {
  visibility: visible;
}

.avatar-modal.ready .avatar-shared-viewer {
  pointer-events: auto;
}

.avatar-shared-viewer img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center 36%;

  border-radius: inherit;

  user-select: none;
  pointer-events: none;
}

.avatar-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;

  z-index: 4;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius:
    11px;

  color:
    rgba(255, 255, 255, 0.78);

  background:
    #111216;

  font:
    500 20px/1
    "Inter",
    sans-serif;

  cursor: pointer;

  opacity: 0;

  transform:
    scale(0.94);

  pointer-events: none;

  transition:
    opacity 120ms ease,
    transform 180ms var(--layout-ease);
}

.avatar-modal.active .avatar-modal-close {
  opacity: 1;

  transform:
    scale(1);
}

.avatar-modal.ready .avatar-modal-close {
  pointer-events: auto;
}

.avatar-modal.transitioning .avatar-modal-close {
  pointer-events: none;
}

.avatar-modal.closing .avatar-modal-close {
  opacity: 0;

  transform:
    scale(0.94);
}
.card-cursor {
  --cx: -100px;
  --cy: -100px;
  --cursor-scale: 1;

  position: fixed;
  top: 0;
  left: 0;

  z-index: 100;

  width: 22px;
  height: 22px;

  display: grid;
  place-items: center;

  color:
    rgba(255, 255, 255, 0.9);

  opacity: 0;

  pointer-events: none;

  transform:
    translate3d(var(--cx), var(--cy), 0)
    translate(-50%, -50%)
    scale(var(--cursor-scale));

  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.12));

  will-change:
    transform, opacity;

  transition:
    opacity 90ms ease,
    color 90ms ease,
    filter 90ms ease;
}

.plus-cursor-icon {
  width: 100%;
  height: 100%;

  display: block;
}

.card-cursor.visible {
  opacity: 1;
}

.card-cursor.interactive {
  --cursor-scale: 1.14;

  color:
    rgba(255, 255, 255, 1);

  filter:
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.18));
}

.card-cursor.pressed {
  --cursor-scale: 0.84;
}
.toggle-icon {
  overflow: visible;
}

.expand-corner,
.restore-corner,
.restore-center {
  transform-box:
    fill-box;

  transform-origin:
    center;

  transition:
    transform 340ms
    cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease;
}

.layout-toggle:hover .icon-expand .tl {
  transform:
    translate(-1.4px, -1.4px);
}

.layout-toggle:hover .icon-expand .tr {
  transform:
    translate(1.4px, -1.4px);
}

.layout-toggle:hover .icon-expand .bl {
  transform:
    translate(-1.4px, 1.4px);
}

.layout-toggle:hover .icon-expand .br {
  transform:
    translate(1.4px, 1.4px);
}

.layout-toggle:hover .icon-restore .tl {
  transform:
    translate(1.15px, 1.15px);
}

.layout-toggle:hover .icon-restore .tr {
  transform:
    translate(-1.15px, 1.15px);
}

.layout-toggle:hover .icon-restore .bl {
  transform:
    translate(1.15px, -1.15px);
}

.layout-toggle:hover .icon-restore .br {
  transform:
    translate(-1.15px, -1.15px);
}

.layout-toggle:hover .restore-center {
  transform:
    scale(0.86);

  opacity:
    0.78;
}

.social-svg {
  transform-box:
    fill-box;

  transform-origin:
    center;

  transition:
    transform 380ms
    cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease;
}

.expanded-socials a:hover .social-svg-twitch,

/* ============================================================
   EXPANDED SOCIALS PANEL
   ============================================================ */
.expanded-socials a:focus-visible .social-svg-twitch {
  animation:
    twitchIconNod
    560ms
    cubic-bezier(0.16, 1, 0.3, 1)
    both;
}

@keyframes twitchIconNod {
  0% {
    transform:
      translateY(0)
      rotate(0deg)
      scale(1);
  }

  36% {
    transform:
      translateY(-2px)
      rotate(-4deg)
      scale(1.06);
  }

  70% {
    transform:
      translateY(0.5px)
      rotate(2deg)
      scale(0.99);
  }

  100% {
    transform:
      translateY(0)
      rotate(0deg)
      scale(1);
  }
}

.expanded-socials a:hover .social-svg-x,
.expanded-socials a:focus-visible .social-svg-x {
  animation:
    xIconSnap
    520ms
    cubic-bezier(0.16, 1, 0.3, 1)
    both;
}

@keyframes xIconSnap {
  0% {
    transform:
      rotate(0deg)
      scale(1);
  }

  42% {
    transform:
      rotate(8deg)
      scale(1.08);
  }

  72% {
    transform:
      rotate(-3deg)
      scale(0.995);
  }

  100% {
    transform:
      rotate(0deg)
      scale(1);
  }
}

.expanded-socials a:hover .social-svg-tiktok-original,
.expanded-socials a:focus-visible 
.social-svg-x-original {
  transition:
    transform 240ms var(--layout-ease),
    opacity 160ms ease;
}

.animated-social-link[data-social="x"]:hover .social-svg-x-original,
.animated-social-link[data-social="x"]:focus-visible .social-svg-x-original {
  transform:
    scale(1.08);

  opacity:
    1;
}

.social-svg-tiktok-original {
  transform-box:
    fill-box;

  transform-origin:
    center;

  transition:
    transform 240ms var(--layout-ease);
}

.animated-social-link[data-social="tiktok"]:hover .social-svg-tiktok-original,
.animated-social-link[data-social="tiktok"]:focus-visible .social-svg-tiktok-original {
  animation:
    tiktokOriginalBounce
    520ms
    var(--layout-ease)
    both;
}

@keyframes tiktokOriginalBounce {
  0%,
  100% {
    transform:
      translateY(0)
      rotate(0deg)
      scale(1);
  }

  38% {
    transform:
      translateY(-2px)
      rotate(-3deg)
      scale(1.06);
  }

  72% {
    transform:
      translateY(0.6px)
      rotate(1.5deg)
      scale(0.99);
  }
}
.visit-button {
  gap:
    5px;
}

.visit-arrow {
  width:
    13px;

  height:
    13px;

  flex:
    0 0 auto;

  opacity:
    0.68;

  transform:
    translateX(0);

  transition:
    transform 240ms var(--layout-ease),
    opacity 160ms ease;
}

.visit-button:hover .visit-arrow,
.visit-button:focus-visible .visit-arrow {
  transform:
    translateX(3px);

  opacity:
    1;
}

@media (prefers-reduced-motion: reduce) {


  .expand-corner,
  .restore-corner,
  .restore-center,
  .animated-social-icon,
  .social-svg-twitch .twitch-shell,
  .social-svg-twitch .twitch-line,
  .social-svg-x .x-stroke,
  .social-svg-tiktok-original,
  
  .visit-arrow {
    animation:
      none !important;

    transition:
      none !important;

    transform:
      none !important;
  }
}


@media (hover: hover) and (pointer: fine) {
  .profile-card.cursor-active,
  .profile-card.cursor-active *,
  .profile-card.cursor-active a,
  .profile-card.cursor-active button,
  .profile-card.cursor-active svg {
    cursor:
      none !important;
  }
}


@media (max-width: 560px) {
  .page {
    padding: 18px;
  }

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

  .identity {
    height: 176px;

    grid-template-columns:
      1fr;

    justify-items:
      center;

    text-align:
      center;

    gap: 12px;

    padding:
      12px 8px 14px;
  }

  .identity-copy {
    display: flex;
    flex-direction: column;

    align-items:
      center;
  }

  .profile-card.expanded {
    padding:
      26px 18px 20px;
  }

  .profile-card.expanded .identity {
    height:
      178px;
  }

  .expanded-socials {
    gap: 6px;
  }

  .expanded-socials a {
    width: 70px;
    min-width: 70px;

    min-height: 56px;

    padding:
      8px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #snowCanvas {
    display: none;
  }

  .stage,
  .profile-card,
  .identity,
  .avatar-ring,
  .name,
  .handle,
  .expanded-socials-slot,
  .social-card-slot,
  .expanded-socials,
  .social-card,
  .layout-toggle,
  .toggle-icon,
  .avatar-modal,
  .avatar-shared-viewer {
    transition:
      none !important;

    animation:
      none !important;
  }

  .profile-card {
    transform:
      none !important;
  }

  .avatar-wrap:hover .avatar-ring,
  .avatar-wrap:focus-visible .avatar-ring {
    animation: none;

    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.16),
      0 0 16px rgba(255, 255, 255, 0.16);

    transform:
      scale(1.01);
  }

  .name:hover,
  .expanded-socials a:hover .social-svg,
  .expanded-socials a:focus-visible .social-svg,
  .social-card-icon.icon-pop {
    animation: none !important;
  }

  .expand-corner,
  .restore-corner,
  .restore-center,
  .social-svg,
  .visit-arrow {
    transition: none !important;
  }

  .card-cursor {
    display: none;
  }
}
.camera-world {
  --camera-x: clamp(150px, 22vw, 320px);

  position: absolute;
  inset: 0;

  display: grid;
  grid-template-rows:
    100svh
    100svh;

  transform:
    translate3d(0, -100svh, 0);

  transition:
    transform var(--camera-travel-time)
    cubic-bezier(0.76, 0, 0.24, 1);

  will-change:
    transform;
}

.camera-scene {
  width: 100%;
  height: 100svh;

  display: grid;
  place-items: center;

  padding: 28px;

  overflow: visible;
}

.camera-scene-profile {
  position: relative;
}

.camera-scene-home {
  position: relative;

  transform:
    translate3d(var(--camera-x), 0, 0);
}

body.view-profile .camera-world {
  transform:
    translate3d(0, -100svh, 0);
}

body.view-home .camera-world {
  transform:
    translate3d(calc(0px - var(--camera-x)), 0, 0);
}
.home-environment {
  position: relative;

  width:
    min(1180px, 100%);

  height:
    min(650px, calc(100svh - 56px));

  min-height:
    520px;

  display: grid;
  grid-template-columns:
    minmax(360px, 1.2fr)
    minmax(290px, 0.8fr);

  align-items: center;

  gap:
    clamp(44px, 8vw, 120px);

  padding:
    clamp(28px, 5vw, 64px);
}
body.theme-light .avatar-ring {
  background:
    linear-gradient(
      135deg,
      rgba(40, 42, 46, 0.94),
      rgba(121, 126, 134, 0.64) 46%,
      rgba(49, 52, 57, 0.88) 72%,
      rgba(151, 155, 162, 0.58)
    );

  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 0 14px rgba(0, 0, 0, 0.045);
}

body.theme-light .avatar-ring img {
  border-color:
    #e6e6e2;
}

body.theme-light .expanded-socials a:hover,

/* ============================================================
   EXPANDED SOCIALS PANEL
   ============================================================ */
body.theme-light .expanded-socials a:focus-visible {
  background:
    rgba(0, 0, 0, 0.030);
}

body.theme-light .expanded-home-link {
  color:
    rgba(0, 0, 0, 0.48);

  animation:
    homeButtonGlowLight 2s ease-in-out infinite;
}

@keyframes homeButtonGlowLight {
  0%,
  100% {
    color:
      rgba(0, 0, 0, 0.48);

    text-shadow:
      0 0 0 rgba(0, 0, 0, 0);
  }

  45%,
  55% {
    color:
      rgba(0, 0, 0, 0.90);

    text-shadow:
      0 0 7px rgba(0, 0, 0, 0.14),
      0 0 13px rgba(0, 0, 0, 0.07);
  }
}

body.theme-light .expanded-home-link:hover,
body.theme-light .expanded-home-link:focus-visible {
  color:
    rgba(0, 0, 0, 0.90);

  border-color:
    rgba(0, 0, 0, 0.08);

  background:
    rgba(0, 0, 0, 0.025);
}
body.theme-light .social-card {
  border-color:
    rgba(0, 0, 0, 0.10);

  background:
    rgba(0, 0, 0, 0.030);
}

body.theme-light .social-card:hover {
  border-color:
    rgba(0, 0, 0, 0.16);

  background:
    rgba(0, 0, 0, 0.045);
}

body.theme-light .social-card-icon {
  color:
    #292b30;

  border-color:
    rgba(0, 0, 0, 0.10);

  background:
    linear-gradient(
      145deg,
      rgba(0, 0, 0, 0.040),
      rgba(0, 0, 0, 0.012)
    );
}

body.theme-light .social-dot {
  background:
    rgba(0, 0, 0, 0.17);
}

body.theme-light .social-dot:hover,
body.theme-light .social-dot:focus-visible {
  background:
    rgba(0, 0, 0, 0.44);
}

body.theme-light .social-dot.active {
  background:
    rgba(0, 0, 0, 0.58);
}

body.theme-light .visit-button,

/* ============================================================
   LAYOUT EXPAND / RESTORE TOGGLE
   ============================================================ */
body.theme-light .layout-toggle {
  color:
    rgba(0, 0, 0, 0.68);

  border-color:
    rgba(0, 0, 0, 0.09);

  background:
    rgba(0, 0, 0, 0.018);
}

body.theme-light .visit-button:hover,
body.theme-light .visit-button:focus-visible,
body.theme-light .layout-toggle:hover,
body.theme-light .layout-toggle:focus-visible {
  color:
    #111216;

  border-color:
    rgba(0, 0, 0, 0.16);

  background:
    rgba(0, 0, 0, 0.038);
}
body.theme-light .card-cursor {
  color:
    rgba(10, 11, 13, 0.90);

  filter:
    drop-shadow(0 0 4px rgba(0, 0, 0, 0.10));
}

body.theme-light .card-cursor.interactive {
  color:
    rgba(0, 0, 0, 1);

  filter:
    drop-shadow(0 0 7px rgba(0, 0, 0, 0.15));
}
body.theme-light .home-menu-card {
  border-color:
    rgba(52, 73, 91, 0.18);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.60),
      rgba(219, 229, 237, 0.22) 44%,
      rgba(199, 214, 226, 0.20)
    ),
    #e9eff3;

  box-shadow:
    0 30px 96px rgba(52, 64, 74, 0.18),
    0 0 46px rgba(82, 112, 139, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

body.theme-light .home-menu-card:hover {
  border-color:
    rgba(40, 58, 73, 0.24);
}

body.theme-light .home-back-link {
  color:
    rgba(21, 31, 40, 0.48);
}

body.theme-light .home-back-link:hover,
body.theme-light .home-back-link:focus-visible {
  color:
    rgba(14, 20, 26, 0.92);

  border-color:
    rgba(0, 0, 0, 0.08);

  background:
    rgba(0, 0, 0, 0.025);
}

.home-environment.home-environment-solo {
  grid-template-columns:
    1fr;

  justify-items:
    center;

  gap:
    0;
}

.home-environment.home-environment-solo .home-menu-card {
  justify-self:
    center;
}


.home-menu-card {
  position: relative;

  overflow: hidden;

  justify-self: end;

  width:
    min(360px, 100%);

  min-height:
    390px;

  padding:
    30px 30px 26px;

  border:
    1px solid
    rgba(169, 198, 224, 0.21);

  border-radius:
    24px;

  background:
    linear-gradient(
      145deg,
      rgba(126, 169, 208, 0.040),
      rgba(39, 72, 103, 0.018) 44%,
      rgba(8, 18, 28, 0.12)
    ),
    #050d14;

  box-shadow:
    0 36px 112px rgba(0, 0, 0, 0.58),
    0 0 56px rgba(119, 169, 215, 0.075),
    inset 0 1px 0 rgba(216, 232, 246, 0.045);

  opacity: 0;

  transform:
    translate3d(26px, 14px, 0)
    scale(0.985);

  transition:
    opacity 900ms ease 1500ms,
    transform 1500ms var(--layout-ease) 1280ms,
    border-color 220ms ease,
    box-shadow 260ms ease;
}

body.view-home .home-menu-card::before {
  content: "";

  position: absolute;
  inset: -1px;

  border-radius: inherit;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(179, 211, 238, 0.055),
      transparent 42%
    );
}

body.view-home .home-menu-card {
  opacity: 1;

  transform:
    translate3d(0, 0, 0)
    scale(1);
}

.home-menu-card:hover {
  border-color:
    rgba(255, 255, 255, 0.16);

  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.56),
    0 0 52px rgba(235, 242, 255, 0.038),
    inset 0 1px 0 rgba(255, 255, 255, 0.038);
}

.home-menu-empty {
  position: absolute;
  inset:
    86px 30px 30px;

  border-radius:
    15px;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(255, 255, 255, 0.012),
      transparent 62%
    );

  pointer-events: none;
}

.home-back-link {
  position: relative;
  z-index: 2;

  padding:
    8px 9px;

  display:
    inline-flex;

  align-items:
    center;

  gap:
    8px;

  border:
    1px solid
    transparent;

  border-radius:
    9px;

  color:
    rgba(255, 255, 255, 0.38);

  background:
    transparent;

  text-decoration:
    none;

  font-size:
    10px;

  font-weight:
    600;

  letter-spacing:
    0.04em;

  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 180ms var(--ease);
}

.home-back-link:hover,
.home-back-link:focus-visible {
  color:
    rgba(255, 255, 255, 0.90);

  border-color:
    rgba(255, 255, 255, 0.08);

  background:
    rgba(255, 255, 255, 0.02);

  transform:
    translateX(-2px);
}

.home-back-link:focus-visible {
  outline:
    2px solid
    rgba(255, 255, 255, 0.18);

  outline-offset:
    2px;
}

.home-back-link:focus-visible {
  outline:
    2px solid
    rgba(255, 255, 255, 0.22);

  outline-offset:
    2px;
}
body.view-profile .camera-scene-profile {
  pointer-events:
    auto;
}

body.view-profile .camera-scene-home {
  pointer-events:
    none;
}

body.view-home .camera-scene-profile {
  pointer-events:
    none;
}

body.view-home .camera-scene-home {
  pointer-events:
    auto;
}

@media (max-width: 820px) {
  .camera-world {
    --camera-x: clamp(72px, 16vw, 120px);
  }

  .home-environment {
    width: 100%;
    height: calc(100svh - 32px);
    min-height: 520px;

    grid-template-columns:
      1fr 0.82fr;

    gap: 18px;

    padding:
      28px 20px;
  }

  .home-menu-card {
    width: 100%;
    min-height: 350px;

    padding:
      24px 22px;
  }
}


  .home-environment.home-environment-solo {
    grid-template-columns:
      1fr;
  }

  .home-environment.home-environment-solo .home-menu-card {
    justify-self:
      center;
  }

@media (max-width: 620px) {
  .home-environment {
    grid-template-columns:
      1fr;

    align-items: end;

    padding:
      18px;
  }

  .home-menu-card {
    align-self: center;
    justify-self: center;

    width:
      min(330px, 92vw);

    min-height:
      330px;

    backdrop-filter:
      blur(1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .camera-world,
  .home-menu-card {
    transition:
      none !important;
  }
}



.animated-social-link[data-social="discord"] .social-svg-discord {
  transform-box:
    fill-box;

  transform-origin:
    center;

  transition:
    transform 240ms var(--layout-ease),
    filter 180ms ease;
}

.animated-social-link[data-social="discord"]:hover .social-svg-discord,
.animated-social-link[data-social="discord"]:focus-visible .social-svg-discord {
  transform:
    translateY(-1px)
    scale(1.07);

  filter:
    drop-shadow(
      0 0 5px
      rgba(238, 244, 255, 0.22)
    );
}
.social-card[data-social="discord"] .visit-arrow {
  display:
    none;
}

.social-card[data-social="discord"] .visit-button {
  min-width:
    54px;
}

.social-card.copied .visit-button {
  color:
    rgba(255, 255, 255, 0.96);

  border-color:
    rgba(255, 255, 255, 0.18);

  text-shadow:
    0 0 7px
    rgba(238, 244, 255, 0.34);
}

@media (max-width: 520px) {
  .expanded-socials {
    gap:
      4px;
  }

  .expanded-socials a {
    width:
      68px;

    min-width:
      68px;
  }
}
































@media (hover: none), (pointer: coarse) {
  .card-cursor {
    display: none !important;
  }

  .profile-card,
  .profile-card * {
    cursor: auto !important;
  }

  .layout-toggle,
  .expanded-home-link,
  .home-back-link,
  .social-dot,
  .animated-social-link,
  .social-card-main,
  .visit-button,
  .avatar-wrap {
    touch-action: manipulation;
  }

  .layout-toggle {
    width: 44px;
    height: 44px;

    top: 10px;
    right: 10px;
  }

  .social-dot {
    position: relative;

    width: 8px;
    height: 8px;

    margin: 0 5px;
  }

  .social-dot::before {
    content: "";

    position: absolute;
    inset: -14px -10px;
  }

  .expanded-home-link {
    min-width: 44px;
    min-height: 44px;

    padding: 10px 12px;
  }

  .home-back-link {
    min-height: 44px;

    padding: 11px 12px;
  }

  
}

@media (max-width: 760px) {
  .camera-world {
    --camera-x: clamp(42px, 11vw, 74px);
  }

  .camera-scene {
    padding:
      calc(18px + env(safe-area-inset-top))
      calc(16px + env(safe-area-inset-right))
      calc(18px + env(safe-area-inset-bottom))
      calc(16px + env(safe-area-inset-left));
  }

  .page {
    padding:
      env(safe-area-inset-top)
      env(safe-area-inset-right)
      env(safe-area-inset-bottom)
      env(safe-area-inset-left);
  }

  .profile-card {
    width: min(100%, 520px);
  }

  .home-environment {
    padding:
      calc(20px + env(safe-area-inset-top))
      calc(18px + env(safe-area-inset-right))
      calc(20px + env(safe-area-inset-bottom))
      calc(18px + env(safe-area-inset-left));
  }
}

@media (max-width: 560px) {
  .page {
    padding:
      env(safe-area-inset-top)
      env(safe-area-inset-right)
      env(safe-area-inset-bottom)
      env(safe-area-inset-left);
  }

  .camera-scene {
    padding:
      calc(14px + env(safe-area-inset-top))
      calc(14px + env(safe-area-inset-right))
      calc(14px + env(safe-area-inset-bottom))
      calc(14px + env(safe-area-inset-left));
  }

  .profile-card {
    max-width: calc(100vw - 28px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }

  .social-card {
    gap: 8px;
  }

  .social-card-right {
    gap: 6px;
  }

  .social-dots {
    gap: 0;
  }
}

@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  .camera-scene {
    padding:
      calc(10px + env(safe-area-inset-top))
      calc(18px + env(safe-area-inset-right))
      calc(10px + env(safe-area-inset-bottom))
      calc(18px + env(safe-area-inset-left));
  }

  .stage {
    max-width: 500px;

    transform: scale(0.90);
  }

  body.page-ready .stage {
    transform: scale(0.90);
  }

  .home-environment {
    min-height: 0;
    height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .home-menu-card {
    min-height: min(330px, calc(100svh - 34px));
  }
}
body.view-home .home-menu-empty {
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(120, 168, 210, 0.038),
      transparent 62%
    );
}

body.view-home .home-back-link {
  color:
    rgba(210, 226, 240, 0.48);
}

body.view-home .home-back-link:hover,
body.view-home .home-back-link:focus-visible {
  color:
    rgba(244, 249, 255, 0.94);

  border-color:
    rgba(168, 199, 225, 0.12);

  background:
    rgba(128, 171, 207, 0.035);
}
body.view-home #rainCanvas {
  filter:
    saturate(1.08) brightness(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .home-theme-wash {
    transition: none !important;
  }
}


@media (prefers-reduced-motion: reduce) {
  .theme-card-wipe,
  .theme-world-curtain {
    animation: none !important;
    transition: none !important;
  }
}


html.theme-light,

/* ============================================================
   RESET & THEME TOKENS
   ============================================================ */
body.theme-light {
  --bg: #5d5c58;
  --card: #85837c;
  --line: rgba(16, 18, 19, 0.18);
  --line-strong: rgba(12, 14, 15, 0.28);
  --text: #171918;
  --muted: #343836;
}

html.theme-light {
  background: #5d5c58;
}

body.theme-light {
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(0, 0, 0, 0.035),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #76756f 0%,
      #696863 54%,
      #5d5c58 100%
    );
}

body.theme-light::before {
  opacity: 0.04;
  background-image:
    radial-gradient(
      rgba(0, 0, 0, 0.32) 0.45px,
      transparent 0.45px
    );
}
.theme-world-curtain.from-light {
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(0, 0, 0, 0.035),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #76756f 0%,
      #696863 54%,
      #5d5c58 100%
    );
}
body.theme-light .home-theme-wash {
  background:
    radial-gradient(
      circle at 54% 30%,
      rgba(34, 50, 61, 0.16),
      transparent 40%
    ),
    radial-gradient(
      circle at 82% 76%,
      rgba(22, 37, 48, 0.13),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      rgba(91, 104, 112, 0.98) 0%,
      rgba(79, 92, 101, 0.985) 54%,
      rgba(67, 79, 87, 0.995) 100%
    );
}
.theme-corner-toggle {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  z-index: 120;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.44);
  background: rgba(7, 8, 10, 0.30);
  backdrop-filter: blur(7px);
  opacity: 0.84;
}

.theme-corner-toggle:hover,
.theme-corner-toggle:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(14, 16, 19, 0.48);
  opacity: 1;
}

body.theme-light .theme-corner-toggle {
  color: rgba(18, 21, 20, 0.76);
  border-color: rgba(12, 14, 13, 0.20);
  background: rgba(139, 137, 130, 0.78);
}

body.theme-light .theme-corner-toggle:hover,
body.theme-light .theme-corner-toggle:focus-visible {
  color: #101211;
  border-color: rgba(10, 12, 11, 0.30);
  background: rgba(158, 155, 147, 0.94);
}
body.theme-light .profile-card {
  background: #85837c;
  border-color: rgba(17, 19, 18, 0.20);
  box-shadow:
    0 24px 72px rgba(15, 16, 16, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

body.theme-light .profile-card::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

body.theme-light .profile-card.hovered {
  border-color: rgba(10, 12, 12, 0.28);
  box-shadow:
    0 30px 92px rgba(14, 15, 15, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
body.theme-light .avatar-ring img {
  border-color: #77756f;
}
body.theme-light .expanded-socials a {
  color: rgba(30, 33, 31, 0.78);
}

body.theme-light .expanded-socials a:hover,
body.theme-light .expanded-socials a:focus-visible {
  color: #111312;
  border-color: rgba(10, 12, 11, 0.18);
  background: rgba(18, 21, 20, 0.07);
}

body.theme-light .expanded-home-link {
  color: rgba(20, 22, 21, 0.64);
}

body.theme-light .expanded-home-link:hover,
body.theme-light .expanded-home-link:focus-visible {
  color: rgba(12, 14, 13, 0.96);
  border-color: rgba(10, 12, 11, 0.18);
  background: rgba(18, 21, 20, 0.07);
}
body.theme-light .social-card {
  border-color: rgba(13, 15, 14, 0.18);
  background: rgba(26, 29, 28, 0.085);
}

body.theme-light .social-card:hover {
  border-color: rgba(10, 12, 11, 0.28);
  background: rgba(20, 23, 22, 0.13);
}

body.theme-light .social-card-icon {
  color: #171918;
  border-color: rgba(12, 14, 13, 0.20);
  background:
    linear-gradient(
      145deg,
      rgba(18, 20, 19, 0.12),
      rgba(18, 20, 19, 0.045)
    );
}

body.theme-light .social-card-title {
  color: #151716;
}

body.theme-light .social-card-sub {
  color: rgba(40, 43, 41, 0.82);
}

body.theme-light .social-dot {
  background: rgba(12, 14, 13, 0.26);
}

body.theme-light .social-dot:hover,
body.theme-light .social-dot:focus-visible {
  background: rgba(8, 10, 9, 0.58);
}

body.theme-light .social-dot.active {
  background: rgba(7, 9, 8, 0.72);
}

body.theme-light .visit-button,

/* ============================================================
   LAYOUT EXPAND / RESTORE TOGGLE
   ============================================================ */
body.theme-light .layout-toggle {
  color: rgba(19, 21, 20, 0.86);
  border-color: rgba(13, 15, 14, 0.20);
  background: rgba(25, 28, 27, 0.07);
}

body.theme-light .visit-button:hover,
body.theme-light .visit-button:focus-visible,
body.theme-light .layout-toggle:hover,
body.theme-light .layout-toggle:focus-visible {
  color: #101211;
  border-color: rgba(10, 12, 11, 0.30);
  background: rgba(19, 22, 21, 0.13);
}
body.theme-light .social-card.copied .visit-button {
  color: #101211;
  border-color: rgba(10, 12, 11, 0.30);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.10);
}
body.theme-light .card-cursor {
  color: rgba(10, 11, 11, 0.94);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.14));
}

body.theme-light .card-cursor.interactive {
  color: #050606;
  filter: drop-shadow(0 0 7px rgba(0, 0, 0, 0.18));
}
body.theme-light .home-menu-card {
  border-color: rgba(20, 29, 34, 0.24);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.07),
      rgba(20, 29, 34, 0.08) 44%,
      rgba(15, 23, 28, 0.10)
    ),
    #69757d;
  box-shadow:
    0 30px 96px rgba(15, 22, 27, 0.28),
    0 0 46px rgba(35, 53, 64, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.theme-light .home-menu-card:hover {
  border-color: rgba(13, 21, 26, 0.34);
}

body.theme-light .home-back-link {
  color: rgba(17, 23, 27, 0.72);
}

body.theme-light .home-back-link:hover,
body.theme-light .home-back-link:focus-visible {
  color: rgba(9, 13, 15, 0.98);
  border-color: rgba(10, 14, 16, 0.20);
  background: rgba(10, 14, 16, 0.07);
}

@media (max-width: 620px) {
  .theme-corner-toggle {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    width: 34px;
    height: 34px;
  }
}

html.theme-light,

/* ============================================================
   RESET & THEME TOKENS
   ============================================================ */
body.theme-light {
  --bg: #4a423b;
  --card: #74675c;
  --line: rgba(38, 28, 21, 0.20);
  --line-strong: rgba(31, 23, 18, 0.32);
  --text: #17130f;
  --muted: #3e3731;
}

html.theme-light {
  background: #4a423b;
}

body.theme-light {
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 231, 207, 0.045),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #65594f 0%,
      #574c43 54%,
      #4a423b 100%
    );
}

body.theme-light::before {
  opacity: 0.038;
  background-image:
    radial-gradient(
      rgba(30, 22, 17, 0.38) 0.45px,
      transparent 0.45px
    );
}
.theme-world-curtain.from-light {
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 231, 207, 0.045),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #65594f 0%,
      #574c43 54%,
      #4a423b 100%
    );
}
body.theme-light .home-theme-wash {
  background:
    radial-gradient(
      circle at 54% 30%,
      rgba(119, 91, 70, 0.18),
      transparent 40%
    ),
    radial-gradient(
      circle at 82% 76%,
      rgba(82, 63, 50, 0.15),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      rgba(101, 86, 74, 0.985) 0%,
      rgba(86, 72, 62, 0.99) 54%,
      rgba(71, 60, 52, 0.995) 100%
    );
}
.theme-corner-toggle {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  z-index: 120;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.44);
  background: rgba(7, 8, 10, 0.30);
  backdrop-filter: blur(7px);
  opacity: 0.84;
}

.theme-corner-toggle:hover,
.theme-corner-toggle:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(14, 16, 19, 0.48);
  opacity: 1;
}

body.theme-light .theme-corner-toggle {
  color: rgba(31, 23, 18, 0.82);
  border-color: rgba(35, 25, 19, 0.24);
  background: rgba(126, 110, 96, 0.82);
}

body.theme-light .theme-corner-toggle:hover,
body.theme-light .theme-corner-toggle:focus-visible {
  color: #17130f;
  border-color: rgba(31, 22, 17, 0.34);
  background: rgba(146, 127, 111, 0.96);
}
body.theme-light .profile-card {
  background: #74675c;
  border-color: rgba(40, 29, 22, 0.24);
  box-shadow:
    0 24px 72px rgba(27, 20, 16, 0.28),
    inset 0 1px 0 rgba(255, 240, 225, 0.13);
}

body.theme-light .profile-card::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 225, 0.16),
    inset 0 -1px 0 rgba(29, 21, 16, 0.10);
}

body.theme-light .profile-card.hovered {
  border-color: rgba(34, 24, 18, 0.32);
  box-shadow:
    0 30px 92px rgba(25, 18, 14, 0.34),
    inset 0 1px 0 rgba(255, 240, 225, 0.16);
}
body.theme-light .avatar-ring img {
  border-color: #675b51;
}
body.theme-light .expanded-socials a {
  color: rgba(35, 27, 21, 0.82);
}

body.theme-light .expanded-socials a:hover,
body.theme-light .expanded-socials a:focus-visible {
  color: #18130f;
  border-color: rgba(34, 24, 18, 0.20);
  background: rgba(38, 28, 21, 0.08);
}

body.theme-light .expanded-home-link {
  color: rgba(32, 24, 19, 0.68);
}

body.theme-light .expanded-home-link:hover,
body.theme-light .expanded-home-link:focus-visible {
  color: rgba(23, 18, 14, 0.98);
  border-color: rgba(34, 24, 18, 0.20);
  background: rgba(38, 28, 21, 0.08);
}
body.theme-light .social-card {
  border-color: rgba(37, 27, 20, 0.20);
  background: rgba(47, 35, 27, 0.09);
}

body.theme-light .social-card:hover {
  border-color: rgba(34, 24, 18, 0.30);
  background: rgba(45, 33, 25, 0.14);
}

body.theme-light .social-card-icon {
  color: #17130f;
  border-color: rgba(35, 25, 19, 0.22);
  background:
    linear-gradient(
      145deg,
      rgba(39, 28, 21, 0.13),
      rgba(39, 28, 21, 0.05)
    );
}

body.theme-light .social-card-title {
  color: #1a1511;
}

body.theme-light .social-card-sub {
  color: rgba(49, 39, 31, 0.84);
}

body.theme-light .social-dot {
  background: rgba(35, 25, 19, 0.28);
}

body.theme-light .social-dot:hover,
body.theme-light .social-dot:focus-visible {
  background: rgba(29, 21, 16, 0.60);
}

body.theme-light .social-dot.active {
  background: rgba(25, 18, 14, 0.76);
}

body.theme-light .visit-button,

/* ============================================================
   LAYOUT EXPAND / RESTORE TOGGLE
   ============================================================ */
body.theme-light .layout-toggle {
  color: rgba(31, 23, 18, 0.90);
  border-color: rgba(36, 26, 20, 0.22);
  background: rgba(46, 34, 26, 0.08);
}

body.theme-light .visit-button:hover,
body.theme-light .visit-button:focus-visible,
body.theme-light .layout-toggle:hover,
body.theme-light .layout-toggle:focus-visible {
  color: #17130f;
  border-color: rgba(31, 22, 17, 0.32);
  background: rgba(40, 29, 22, 0.14);
}
body.theme-light .social-card.copied .visit-button {
  color: #17130f;
  border-color: rgba(31, 22, 17, 0.32);
  text-shadow: 0 0 6px rgba(22, 16, 12, 0.10);
}
body.theme-light .card-cursor {
  color: rgba(25, 18, 14, 0.96);
  filter: drop-shadow(0 0 4px rgba(26, 19, 14, 0.16));
}

body.theme-light .card-cursor.interactive {
  color: #0e0b09;
  filter: drop-shadow(0 0 7px rgba(25, 18, 14, 0.20));
}
body.theme-light .home-menu-card {
  border-color: rgba(46, 34, 26, 0.27);
  background:
    linear-gradient(
      145deg,
      rgba(255, 235, 217, 0.07),
      rgba(45, 33, 25, 0.09) 44%,
      rgba(36, 27, 21, 0.11)
    ),
    #65584f;
  box-shadow:
    0 30px 96px rgba(32, 24, 19, 0.30),
    0 0 46px rgba(86, 66, 51, 0.11),
    inset 0 1px 0 rgba(255, 235, 217, 0.12);
}

body.theme-light .home-menu-card:hover {
  border-color: rgba(37, 27, 21, 0.37);
}

body.theme-light .home-back-link {
  color: rgba(31, 23, 18, 0.76);
}

body.theme-light .home-back-link:hover,
body.theme-light .home-back-link:focus-visible {
  color: rgba(19, 14, 11, 0.99);
  border-color: rgba(32, 23, 18, 0.22);
  background: rgba(36, 27, 21, 0.08);
}

@media (max-width: 620px) {
  .theme-corner-toggle {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    width: 34px;
    height: 34px;
  }
}


html.theme-light,

/* ============================================================
   RESET & THEME TOKENS
   ============================================================ */
body.theme-light {
  --bg: #1d2024;
  --card: #30343a;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.19);
  --text: #eceef2;
  --muted: #a3a8b0;
}

html.theme-light {
  background: #1d2024;
}

body.theme-light {
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 255, 255, 0.028),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #2b2f34 0%,
      #25282d 54%,
      #1d2024 100%
    );
}

body.theme-light::before {
  opacity: 0.04;
  background-image:
    radial-gradient(
      rgba(255, 255, 255, 0.22) 0.45px,
      transparent 0.45px
    );
}
.theme-world-curtain.from-light {
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 255, 255, 0.028),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #2b2f34 0%,
      #25282d 54%,
      #1d2024 100%
    );
}
body.theme-light .home-theme-wash {
  background:
    radial-gradient(
      circle at 54% 30%,
      rgba(133, 159, 190, 0.10),
      transparent 40%
    ),
    radial-gradient(
      circle at 82% 76%,
      rgba(76, 99, 125, 0.10),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      rgba(36, 42, 48, 0.985) 0%,
      rgba(31, 36, 42, 0.99) 54%,
      rgba(26, 30, 35, 0.995) 100%
    );
}
body.theme-light .theme-corner-toggle {
  color: rgba(236, 239, 244, 0.68);
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(39, 43, 48, 0.78);
}

body.theme-light .theme-corner-toggle:hover,
body.theme-light .theme-corner-toggle:focus-visible {
  color: #f4f5f7;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(51, 55, 62, 0.94);
}
body.theme-light .profile-card {
  background: #30343a;
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body.theme-light .profile-card::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

body.theme-light .profile-card.hovered {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}
body.theme-light .expanded-socials a {
  color: rgba(235, 238, 243, 0.80);
}

body.theme-light .expanded-socials a:hover,
body.theme-light .expanded-socials a:focus-visible,
body.theme-light .expanded-home-link:hover,
body.theme-light .expanded-home-link:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

body.theme-light .expanded-home-link {
  color: rgba(222, 226, 233, 0.68);
}
body.theme-light .social-card {
  border-color: rgba(255, 255, 255, 0.095);
  background: rgba(255, 255, 255, 0.028);
}

body.theme-light .social-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.045);
}

body.theme-light .social-card-icon {
  color: #eef0f4;
  border-color: rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.018)
    );
}

body.theme-light .social-card-title {
  color: #f0f2f5;
}

body.theme-light .social-card-sub {
  color: rgba(206, 211, 219, 0.68);
}

body.theme-light .social-dot {
  background: rgba(255, 255, 255, 0.20);
}

body.theme-light .social-dot:hover,
body.theme-light .social-dot:focus-visible {
  background: rgba(255, 255, 255, 0.45);
}

body.theme-light .social-dot.active {
  background: rgba(255, 255, 255, 0.62);
}

body.theme-light .visit-button,

/* ============================================================
   LAYOUT EXPAND / RESTORE TOGGLE
   ============================================================ */
body.theme-light .layout-toggle {
  color: rgba(235, 238, 243, 0.82);
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.025);
}

body.theme-light .visit-button:hover,
body.theme-light .visit-button:focus-visible,
body.theme-light .layout-toggle:hover,
body.theme-light .layout-toggle:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.055);
}
body.theme-light .social-card.copied .visit-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 7px rgba(255, 255, 255, 0.16);
}





body.theme-light .card-cursor,

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
body.theme-light .card-cursor.interactive {
  color: rgba(247, 248, 250, 0.94);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}
body.theme-light .home-menu-card {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.028),
      rgba(255, 255, 255, 0.006) 44%,
      rgba(255, 255, 255, 0.015)
    ),
    #353a41;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.42),
    0 0 46px rgba(168, 193, 220, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-light .home-menu-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

body.theme-light .home-back-link {
  color: rgba(225, 230, 237, 0.70);
}

body.theme-light .home-back-link:hover,
body.theme-light .home-back-link:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}
.theme-card-wipe {
  z-index: 1;
  mix-blend-mode: normal;
}

.profile-card > :not(.theme-card-wipe),
.home-menu-card > :not(.theme-card-wipe) {
  position: relative;
  z-index: 2;
}

.theme-card-wipe.is-running {
  opacity: 1;
}

.theme-card-wipe.is-fading {
  opacity: 0;
  transition: opacity 140ms ease;
}
.layout-toggle {
  position: absolute !important;
  top: 14px;
  right: 14px;
  left: auto;
}

@media (hover: none), (pointer: coarse) {
  .layout-toggle {
    top: 10px;
    right: 10px;
  }
}
.layout-toggle {
  position: absolute !important;
  inset: 14px 14px auto auto !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none;
  z-index: 20 !important;
  pointer-events: auto;
  touch-action: manipulation;
}

.layout-toggle:hover,
.layout-toggle:focus-visible,
.profile-card.expanded .layout-toggle {
  transform: none;
}

.layout-toggle .toggle-icon,
.layout-toggle svg,
.layout-toggle path {
  pointer-events: none;
}

@media (hover: none), (pointer: coarse) {
  .layout-toggle {
    inset: 10px 10px auto auto !important;
    top: 10px !important;
    right: 10px !important;
  }
}
.theme-card-wipe.is-running {
  opacity: 1;
  width: 100%;
  animation: none;
  transition: none;
}

.theme-card-wipe.is-running.is-fading {
  opacity: 1;
  transition: none;
  animation:
    themeCardSyncReveal var(--theme-wipe-time)
    var(--motion-reveal-ease)
    forwards;
}

@keyframes themeCardSyncReveal {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}
.theme-world-curtain.is-revealing {
  animation:
    themeWorldReveal var(--theme-wipe-time)
    var(--motion-reveal-ease)
    forwards;
}
body.theme-light.view-home #rainCanvas {
  opacity: 0.82;
  filter:
    saturate(0.92)
    brightness(1.10)
    contrast(1.04);
}
body.theme-light.view-home #rainCanvas {
  opacity: 0.96;
  filter: none;
}
.theme-card-wipe.is-running {
  width: 100%;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 100%,
    0% 100%,
    0% 0%,
    0% 0%
  );
  will-change: clip-path, opacity;
}

.theme-card-wipe.is-running.is-fading {
  width: 100%;
  animation:
    themeCardSyncReveal var(--theme-wipe-time)
    var(--motion-reveal-ease)
    forwards;
}

@keyframes themeCardSyncReveal {
  0% {
    clip-path: polygon(
      0% 0%,
      100% 0%,
      100% 100%,
      0% 100%,
      0% 0%,
      0% 0%
    );
  }

  50% {
    clip-path: polygon(
      100% 0%,
      100% 0%,
      100% 100%,
      0% 100%,
      0% 100%,
      100% 0%
    );
  }

  100% {
    clip-path: polygon(
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%
    );
  }
}
.theme-world-curtain.is-ready {
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 100%,
    0% 100%,
    0% 0%,
    0% 0%
  );
}

.theme-world-curtain.is-revealing {
  animation:
    themeWorldReveal var(--theme-wipe-time)
    var(--motion-reveal-ease)
    forwards;
}

@keyframes themeWorldReveal {
  0% {
    clip-path: polygon(
      0% 0%,
      100% 0%,
      100% 100%,
      0% 100%,
      0% 0%,
      0% 0%
    );
  }

  50% {
    clip-path: polygon(
      100% 0%,
      100% 0%,
      100% 100%,
      0% 100%,
      0% 100%,
      100% 0%
    );
  }

  100% {
    clip-path: polygon(
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%
    );
  }
}
.theme-card-wipe.is-running,

/* ============================================================
   CARD THEME-SWITCH WIPE
   ============================================================ */
.theme-card-wipe.is-running.is-fading {
  width: 100% !important;
  animation: none !important;
  transition: none !important;
  transform: none !important;
  opacity: 1;
  will-change: clip-path, opacity;
}

.theme-world-curtain.is-ready,

/* ============================================================
   THEME TRANSITION CURTAIN
   ============================================================ */
.theme-world-curtain.is-revealing {
  animation: none !important;
  transition: none !important;
  opacity: 1;
  will-change: clip-path, opacity;
}
body.theme-light .avatar-ring {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(183, 188, 198, 0.62) 46%,
      rgba(245, 247, 250, 0.9) 72%,
      rgba(145, 150, 160, 0.55)
    ) !important;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 14px rgba(235, 240, 248, 0.07) !important;
}

body.theme-light .avatar-ring::after {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07) !important;
}

body.theme-light .avatar-ring img {
  border-color: #101116 !important;
}
body.theme-light .avatar-modal-close {
  color: rgba(239, 242, 246, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
  background: #353a41;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body.theme-light .avatar-modal-close:hover,
body.theme-light .avatar-modal-close:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.20);
  background: #3d4249;
}
.home-menu-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-menu-list {
  position: relative;
  z-index: 3;

  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 7px;
}

.home-menu-item {
  appearance: none;
  -webkit-appearance: none;

  width: 100%;
  min-height: 44px;

  display: grid;
  grid-template-columns:
    18px
    minmax(84px, 0.95fr)
    24px
    minmax(94px, 1.05fr);
  align-items: center;

  padding: 0 12px 0 10px;

  border: 1px solid transparent;
  border-radius: 12px;

  background: transparent;

  color: inherit;
  text-decoration: none;
  font: inherit;
  text-align: left;

  cursor: pointer;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    color 180ms ease;
}

.home-menu-marker {
  width: 6px;
  height: 6px;

  justify-self: start;

  border: 1px solid rgba(226, 234, 242, 0.48);
  border-radius: 1.5px;

  opacity: 0;

  transform: rotate(45deg) scale(0.55);

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.015),
    0 0 10px rgba(198, 218, 236, 0.05);

  transition:
    opacity 150ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.home-menu-label {
  color: rgba(237, 242, 247, 0.79);

  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.055em;
}

.home-menu-dash {
  justify-self: center;

  color: rgba(215, 225, 235, 0.22);

  font-size: 11px;
  font-weight: 500;
}

.home-menu-note {
  color: rgba(198, 210, 222, 0.38);

  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.home-menu-item:hover,
.home-menu-item:focus-visible,
.home-menu-item.is-selected {
  border-color: rgba(214, 228, 240, 0.085);

  background:
    linear-gradient(
      90deg,
      rgba(213, 228, 242, 0.030),
      rgba(197, 218, 237, 0.012) 62%,
      rgba(177, 207, 232, 0.020)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.018),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

.home-menu-item:hover .home-menu-marker,
.home-menu-item:focus-visible .home-menu-marker,
.home-menu-item.is-selected .home-menu-marker {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.home-menu-item:hover .home-menu-label,
.home-menu-item:focus-visible .home-menu-label,
.home-menu-item.is-selected .home-menu-label {
  color: rgba(255, 255, 255, 0.96);
}

.home-menu-item:hover .home-menu-note,
.home-menu-item:focus-visible .home-menu-note,
.home-menu-item.is-selected .home-menu-note {
  color: rgba(224, 233, 242, 0.58);
}

.home-menu-item:focus-visible {
  outline: 2px solid rgba(210, 226, 240, 0.12);
  outline-offset: 2px;
}
.home-menu-card .home-back-link,
.home-menu-card .home-back-link:hover,
.home-menu-card .home-back-link:focus-visible {
  position: relative;
  top: auto;
  left: auto;
  z-index: auto;

  display: grid;

  padding: 0 12px 0 10px;

  gap: 0;

  transform: none;

  border-radius: 12px;
}

body.theme-light .home-menu-label {
  color: rgba(236, 240, 245, 0.78);
}

body.theme-light .home-menu-dash {
  color: rgba(230, 235, 241, 0.24);
}

body.theme-light .home-menu-note {
  color: rgba(225, 231, 238, 0.42);
}

body.theme-light .home-menu-marker {
  border-color: rgba(244, 247, 250, 0.52);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.018),
    0 0 9px rgba(255, 255, 255, 0.045);
}

body.theme-light .home-menu-item:hover,
body.theme-light .home-menu-item:focus-visible,
body.theme-light .home-menu-item.is-selected {
  color: inherit;
  border-color: rgba(255, 255, 255, 0.115);

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018) 62%,
      rgba(255, 255, 255, 0.026)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.024),
    0 8px 24px rgba(0, 0, 0, 0.075);
}

body.theme-light .home-menu-item:hover .home-menu-label,
body.theme-light .home-menu-item:focus-visible .home-menu-label,
body.theme-light .home-menu-item.is-selected .home-menu-label {
  color: #ffffff;
}

body.theme-light .home-menu-item:hover .home-menu-note,
body.theme-light .home-menu-item:focus-visible .home-menu-note,
body.theme-light .home-menu-item.is-selected .home-menu-note {
  color: rgba(245, 247, 250, 0.64);
}

@media (max-width: 560px) {
  .home-menu-list {
    gap: 6px;
  }

  .home-menu-item {
    min-height: 46px;

    grid-template-columns:
      16px
      minmax(76px, 0.9fr)
      18px
      minmax(88px, 1.1fr);

    padding: 0 9px 0 8px;
  }

  .home-menu-label {
    font-size: 10px;
  }

  .home-menu-note {
    font-size: 9px;
  }
}
.home-menu-card {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-menu-card {
  z-index: 3;
}

.home-environment.home-environment-solo {
  overflow: hidden;
}




@keyframes homeCloudDriftMain99 {
  0%   { translate: -14px 8px; }
  40%  { translate: 2px 0; }
  100% { translate: 24px -10px; }
}

@keyframes homeCloudDriftEcho99 {
  0%   { translate: 15px -4px; }
  52%  { translate: 0 4px; }
  100% { translate: -22px 12px; }
}







@keyframes homeCloudWispDrift99 {
  0% {
    transform: translate3d(-8px, 2px, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.62;
  }
  60% {
    opacity: 0.38;
  }
  100% {
    transform: translate3d(72px, 20px, 0);
    opacity: 0;
  }
}
.layout-toggle {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.56);
  width: 34px;
  height: 34px;
}

.layout-toggle:hover,
.layout-toggle:focus-visible,
.profile-card.expanded .layout-toggle {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.92);
}

.layout-toggle:hover .toggle-icon,
.layout-toggle:focus-visible .toggle-icon {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.14));
}

.layout-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.22);
  outline-offset: 2px;
}

body.theme-light .layout-toggle {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(16, 18, 22, 0.54);
}

body.theme-light .layout-toggle:hover,
body.theme-light .layout-toggle:focus-visible,
body.theme-light .profile-card.expanded .layout-toggle {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(10, 12, 16, 0.90);
}

body.theme-light .layout-toggle:hover .toggle-icon,
body.theme-light .layout-toggle:focus-visible .toggle-icon {
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.10));
}

body.theme-light .layout-toggle:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.16);
}
.social-card,
.social-card:hover,
body.theme-light .social-card,

/* ============================================================
   SOCIAL CARD (COMPACT)
   ============================================================ */
body.theme-light .social-card:hover {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.social-card {
  border-radius: 0 !important;
}
.home-theme-wash,
body.theme-light .home-theme-wash {
  background: transparent !important;
}
.home-menu-card {
  display: block !important;
  border-color: var(--line) !important;
  background: #000000 !important;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

body.view-home .home-menu-card::before {
  background: transparent !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(255, 255, 255, 0.01) !important;
}

.home-menu-card:hover {
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.theme-light .home-menu-card {
  border-color: rgba(255, 255, 255, 0.11) !important;
  background: #30343a !important;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

body.theme-light.view-home .home-menu-card::before {
  background: transparent !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .home-menu-card:hover {
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

.camera-scene-home {
  padding: 24px !important;
}

.home-environment.home-environment-solo {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: calc(100svh - 48px) !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
}
.home-menu-card {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 390px !important;
  padding: 30px 34px 28px !important;
}

.home-coming-soon {
  position: relative;
  z-index: 3;
  margin: 0;
  color: rgba(235, 241, 247, 0.62);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
}

body.theme-light .home-coming-soon {
  color: rgba(248, 250, 252, 0.72);
}

@media (max-width: 560px) {
  .home-menu-card {
    padding: 28px 26px 26px !important;
  }
}












body.theme-light .expanded-home-link {
  color: rgba(245, 247, 250, 0.86);
  animation-name: none;
}

body.theme-light .expanded-home-link:hover,
body.theme-light .expanded-home-link:focus-visible {
  color: rgba(250, 251, 253, 0.98);
  border-color: rgba(245, 247, 250, 0.22);
  background: rgba(245, 247, 250, 0.06);
}

body.theme-light .layout-toggle {
  color: rgba(245, 247, 250, 0.86);
  border-color: rgba(245, 247, 250, 0.18);
  background: rgba(245, 247, 250, 0.045);
}

body.theme-light .layout-toggle:hover,
body.theme-light .layout-toggle:focus-visible,
body.theme-light .profile-card.expanded .layout-toggle {
  color: rgba(250, 251, 253, 0.98);
  border-color: rgba(245, 247, 250, 0.30);
  background: rgba(245, 247, 250, 0.075);
}

body.theme-light .layout-toggle:focus-visible,
body.theme-light .expanded-home-link:focus-visible {
  outline-color: rgba(245, 247, 250, 0.55);
}
.home-menu-card > .home-corner-return {
  appearance: none;
  -webkit-appearance: none;

  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;

  width: 44px;
  height: 44px;
  padding: 0;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 10px;
  background: transparent;

  color: rgba(235, 241, 247, 0.66);
  cursor: pointer;
  opacity: 0.62;

  transition:
    opacity 160ms ease,
    color 160ms ease,
    transform 180ms var(--ease),
    background 160ms ease;
}

.home-corner-return-icon {
  width: 17px;
  height: 17px;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .home-menu-card > .home-corner-return:hover {
    opacity: 0.96;
    color: rgba(248, 250, 252, 0.96);
    transform: translateX(-2px);
    background: rgba(255, 255, 255, 0.018);
  }
}

.home-menu-card > .home-corner-return:focus-visible {
  opacity: 0.98;
  color: rgba(250, 251, 253, 0.98);
  outline: 2px solid rgba(235, 241, 247, 0.36);
  outline-offset: 1px;
  background: rgba(255, 255, 255, 0.022);
}

body.theme-light .home-menu-card > .home-corner-return {
  color: rgba(250, 251, 253, 0.86);
  opacity: 0.80;
}

body.theme-light .home-menu-card > .home-corner-return:hover,
body.theme-light .home-menu-card > .home-corner-return:focus-visible {
  color: rgba(255, 255, 255, 0.99);
  opacity: 1;
  background: rgba(255, 255, 255, 0.045);
}

body.theme-light .home-menu-card > .home-corner-return:focus-visible {
  outline-color: rgba(250, 251, 253, 0.60);
}

@media (max-width: 560px) {
  .home-menu-card > .home-corner-return {
    left: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-menu-card > .home-corner-return {
    transition: opacity 160ms ease, color 160ms ease, background 160ms ease !important;
  }

  .home-menu-card > .home-corner-return:hover {
    transform: none;
  }
}
