@font-face {
  font-family: "Inter Fallback";
  src: local("Inter"), local("SF Pro Display"), local("Segoe UI Variable Display");
}

:root {
  color-scheme: dark;
  font-family: "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.65);
  --glass: rgba(255, 255, 255, 0.095);
  --glass-edge: rgba(255, 255, 255, 0.25);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: #111719;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

.background,
.background video,
.background-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background {
  z-index: -2;
  overflow: hidden;
  background: url("assets/poster.jpg") center / cover no-repeat;
}

.background video {
  object-fit: cover;
  object-position: center;
  transform: scale(1.035);
}

.background-shade {
  background:
    radial-gradient(circle at 50% 43%, transparent 0%, rgba(5, 11, 13, 0.07) 48%, rgba(5, 9, 11, 0.4) 100%),
    linear-gradient(180deg, rgba(6, 10, 12, 0.16), transparent 35%, rgba(6, 10, 12, 0.2));
}

[hidden] {
  display: none !important;
}

.sound-gate {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  padding: 24px;
  border: 0;
  background: rgba(8, 13, 15, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  place-items: center;
}

.sound-gate-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 22px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 550;
}

.sound-gate-button svg {
  width: 21px;
  height: 21px;
}

.page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
}

.glass-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 410px);
  padding: 42px 30px 30px;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035) 45%, rgba(255, 255, 255, 0.08)),
    rgba(17, 23, 25, 0.15);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(32px) saturate(150%);
  backdrop-filter: blur(32px) saturate(150%);
  animation: card-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.glass-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 16% -10%, rgba(255, 255, 255, 0.17), transparent 52%);
  content: "";
  pointer-events: none;
}

.glass-highlight {
  position: absolute;
  top: -35px;
  left: 12%;
  width: 76%;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(20px);
  pointer-events: none;
}

.profile {
  text-align: center;
}

.avatar-shell {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 auto 20px;
  padding: 3px;
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.38));
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.avatar-shell::after {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  content: "";
  pointer-events: none;
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  background: rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.title-dot {
  color: rgba(255, 255, 255, 0.55);
}

.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 34px;
}

.glass-button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.glass-button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.14) 48%, transparent 70%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-60%);
  transition: transform 0.5s ease, opacity 0.25s ease;
}

.glass-button:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.glass-button:hover::before {
  opacity: 1;
  transform: translateX(60%);
}

.glass-button:active {
  transform: scale(0.975);
}

.glass-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
}

.social-link {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 12px;
  border-radius: 19px;
  font-size: 0.94rem;
  font-weight: 540;
  letter-spacing: -0.025em;
}

.social-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.telegram-icon {
  color: #c6ebff;
}

.tiktok-icon {
  color: #fff;
  filter: drop-shadow(-0.6px 0.6px 0 rgba(113, 243, 238, 0.7)) drop-shadow(0.6px -0.6px 0 rgba(255, 102, 139, 0.65));
}

.project-block {
  margin-top: 30px;
}

.project-label {
  margin: 0 0 10px 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 520;
  letter-spacing: 0.045em;
}

.project-link {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
}

.project-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.project-name {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(0.84rem, 3.6vw, 1rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.project-users {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: -0.01em;
}

.users-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b4e5d1;
  box-shadow: 0 0 8px rgba(180, 229, 209, 0.45);
}

.arrow-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.65);
  transition: transform 0.25s ease;
}

.project-link:hover .arrow-icon {
  transform: translate(2px, -2px);
}

.audio-controls {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  animation: controls-in 0.8s 0.4s ease both;
}

.sound-button {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  place-items: center;
}

.sound-button svg {
  width: 20px;
  height: 20px;
}

.sound-on {
  display: none;
}

.sound-button[aria-pressed="true"] .sound-off {
  display: none;
}

.sound-button[aria-pressed="true"] .sound-on {
  display: block;
}

#sound-hint {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

.audio-controls.is-on #sound-hint {
  opacity: 0;
  pointer-events: none;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes controls-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 480px) {
  .page {
    padding-right: 16px;
    padding-left: 16px;
  }

  .glass-card {
    width: min(100%, 352px);
    padding: 28px 22px 22px;
    border-radius: 32px;
  }

  .avatar-shell {
    width: 106px;
    height: 106px;
    margin-bottom: 18px;
    border-radius: 34px;
  }

  .avatar {
    border-radius: 31px;
  }

  .avatar-shell::after {
    border-radius: 30px;
  }

  h1 {
    font-size: 2.15rem;
  }

  .socials {
    gap: 10px;
    margin-top: 26px;
  }

  .project-block {
    margin-top: 24px;
  }

  .social-link {
    min-height: 56px;
    border-radius: 18px;
    font-size: 0.88rem;
  }

  .project-link {
    padding: 18px;
  }

  .audio-controls {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (max-height: 680px) {
  body {
    overflow-y: auto;
  }

  .page {
    padding-top: 22px;
    padding-bottom: 80px;
  }

  .glass-card {
    padding-top: 26px;
  }

  .avatar-shell {
    width: 90px;
    height: 90px;
    margin-bottom: 14px;
    border-radius: 30px;
  }

  .avatar {
    border-radius: 27px;
  }

  .avatar-shell::after {
    border-radius: 26px;
  }

  .socials {
    margin-top: 24px;
  }

  .project-block {
    margin-top: 22px;
  }
}

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