*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text: #f5e9e2;
  --text-dim: rgba(245, 233, 226, 0.5);
  --text-muted: rgba(245, 233, 226, 0.65);
  --bg: #080808;
  --icon: #8a92a8;
  --container: rgba(27, 27, 27, 0);
  --badge-bg: rgba(27, 27, 27, 0.2);
  --badge-border: rgba(27, 27, 27, 0.04);
  --volume-bg: rgba(27, 27, 27, 0.2);
  --volume-border: rgba(27, 27, 27, 0.05);
  --glow: 0 0 16.5px #f5e9e2;
  --icon-glow: drop-shadow(#8a92a8 1px 0 7px);
  --radius: 20px;
  --font: "Onest", system-ui, sans-serif;
}

::selection {
  background: #f5e9e2;
  color: #080808;
}

html {
  font-size: 16px;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
}

body:not(.is-entered) {
  overflow: hidden;
  height: 100dvh;
}

.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.is-gone {
  display: none;
}

/* ── Background videos ── */

.bg-videos {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  filter: blur(8px) brightness(0.7);
  transform: scale(1.06);
  transition:
    opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1),
    filter 1.4s ease;
}

.bg-video.is-active {
  opacity: 1;
  filter: blur(0) brightness(0.55);
  animation: ken-burns 30s ease-out forwards;
}

@keyframes ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.bg-video.is-leaving {
  opacity: 0;
  filter: blur(6px) brightness(0.4);
  animation: none;
  transform: scale(1.05);
}

.bg-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(132, 167, 174, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 70% 70%, rgba(107, 149, 158, 0.12) 0%, transparent 50%),
    var(--bg);
  pointer-events: none;
  transition: opacity 1s ease;
}

.bg-fallback.is-hidden {
  opacity: 0;
}

/* TV static — как на veher */
.tv-effect {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: tv-flicker 0.12s steps(4) infinite;
}

@keyframes tv-flicker {
  0%   { opacity: 0.035; }
  50%  { opacity: 0.055; }
  100% { opacity: 0.04; }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.35) 0%, transparent 30%, transparent 70%, rgba(8, 8, 8, 0.5) 100%),
    radial-gradient(ellipse 75% 65% at 50% 45%, transparent 30%, rgba(0, 0, 0, 0.78) 100%);
}

/* ── Start screen ── */

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(6px);
  cursor: pointer;
  outline: none;
  overflow: hidden;
}

.start-screen.dismissed {
  pointer-events: none;
  animation: start-exit 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.start-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: start-float 4s ease-in-out infinite;
}

.start-brand {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(245, 233, 226, 0.25);
  opacity: 0;
  animation: start-brand-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.start-text {
  font-size: clamp(0.95rem, 3.5vw, 1.15rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: lowercase;
  user-select: none;
  opacity: 0;
  animation:
    start-text-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards,
    start-pulse 2.2s ease-in-out 1.35s infinite;
}

.start-hint {
  margin-top: 20px;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: start-hint-in 0.8s ease 0.9s forwards;
}

.start-hint kbd {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(245, 233, 226, 0.06);
  border: 1px solid rgba(245, 233, 226, 0.1);
}

.start-hint span {
  margin: 0 6px;
  opacity: 0.4;
}

.start-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 233, 226, 0.15), transparent);
  box-shadow: 0 0 20px rgba(245, 233, 226, 0.2);
  animation: start-scan 3.5s linear infinite;
  pointer-events: none;
}

.start-screen.is-pressing .start-inner {
  animation: start-press 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes start-brand-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes start-text-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes start-hint-in {
  to { opacity: 1; }
}

@keyframes start-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes start-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@keyframes start-scan {
  0%   { top: -2px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes start-press {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.96); }
  100% { transform: scale(1.04); }
}

@keyframes start-exit {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.015);
    visibility: hidden;
  }
}

.enter-flash {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(245, 233, 226, 0.35), transparent 65%);
  opacity: 0;
}

.enter-flash.is-active {
  animation: enter-flash 0.55s ease forwards;
}

@keyframes enter-flash {
  0%   { opacity: 0; }
  30%  { opacity: 0.75; }
  100% { opacity: 0; }
}

body.is-entering .tv-effect {
  animation: tv-power-on 0.5s ease forwards;
}

@keyframes tv-power-on {
  0%   { opacity: 0.04; }
  30%  { opacity: 0.14; }
  100% { opacity: 0.04; }
}

body.is-entered .bg-video.is-active {
  filter: blur(0) brightness(0.58) !important;
  transition: filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-entered .vignette {
  opacity: 0.92;
  transition: opacity 1s ease;
}

/* ── Volume ── */

.volume-control {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 50px;
  background: var(--volume-bg);
  border: 2px solid var(--volume-border);
  backdrop-filter: blur(8px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mute-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
  line-height: 0;
}

.mute-btn:hover {
  color: var(--text);
}

.mute-btn .icon-volume-off {
  display: none;
}

.mute-btn.is-muted .icon-volume-on {
  display: none;
}

.mute-btn.is-muted .icon-volume-off {
  display: block;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  border-radius: 4px;
  background: var(--text-dim);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 6px rgba(245, 233, 226, 0.5);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
}

/* ── Profile block ── */

.profile-block {
  position: relative;
  z-index: 10;
  width: min(40rem, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 20px 32px;
  text-align: center;
}

.profile-block.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
}

.profile-block.is-visible .reveal {
  animation: reveal-up 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-block.is-visible .reveal:nth-child(2) { animation-delay: 0.12s; }
.profile-block.is-visible .reveal:nth-child(3) { animation-delay: 0.2s; }
.profile-block.is-visible .reveal:nth-child(4) { animation-delay: 0.28s; }
.profile-block.is-visible .reveal:nth-child(5) { animation-delay: 0.36s; }
.profile-block.is-visible .reveal:nth-child(6) { animation-delay: 0.44s; }
.profile-block.is-visible .reveal:nth-child(7) { animation-delay: 0.52s; }

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.is-entered .reveal {
  opacity: 1;
  transform: none;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ── Avatar + hover popouts ── */

.avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 18px;
  z-index: 5;
  outline: none;
  cursor: pointer;
}

.avatar-wrap:hover,
.avatar-wrap:focus-visible {
  z-index: 30;
}

.avatar-main {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 35px;
  object-fit: cover;
  border: 2px solid rgba(27, 27, 27, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.avatar-wrap:hover .avatar,
.avatar-wrap:focus-visible .avatar {
  transform: scale(1.06);
  border-color: rgba(245, 233, 226, 0.25);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(245, 233, 226, 0.12);
}

.avatar-popouts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.popout {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(245, 233, 226, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translate(0, 0) scale(0.4) rotate(0deg);
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #0a0a0a;
}

.popout img,
.popout video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popout-photo {
  z-index: 1;
  transition-delay: 0.02s;
}

.popout-video {
  z-index: 0;
  transition-delay: 0.1s;
}

.avatar-wrap:hover .popout-photo,
.avatar-wrap:focus-visible .popout-photo {
  opacity: 1;
  transform: translate(-78px, -28px) scale(1) rotate(-14deg);
}

.avatar-wrap:hover .popout-video,
.avatar-wrap:focus-visible .popout-video {
  opacity: 1;
  transform: translate(72px, -22px) scale(1) rotate(12deg);
}

.popout::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(245, 233, 226, 0.08), transparent 50%);
  pointer-events: none;
}

.avatar-fallback {
  object-fit: contain;
  padding: 24px;
  background: rgba(27, 27, 27, 0.5);
}

.status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  z-index: 3;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3dd68c;
  border: 3px solid var(--bg);
  box-shadow: 0 0 10px rgba(61, 214, 140, 0.6);
}

/* ── Username + sparkle ── */

.profile-info {
  width: 100%;
}

.name-row {
  margin-bottom: 10px;
}

.username {
  position: relative;
  display: inline-block;
  font-size: clamp(2rem, 7vw, 2.47rem);
  font-weight: 600;
  color: var(--text);
  text-shadow: var(--glow);
  letter-spacing: 0.02em;
  line-height: 1.1;
  animation: username-float 5s ease-in-out infinite;
}

@keyframes username-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.username::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: url("https://assets.guns.lol/sparkle_white.gif") center / cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ── Bio ── */

.bio {
  font-size: clamp(0.9rem, 2.5vw, 1.19rem);
  font-weight: 500;
  color: var(--text-muted);
  min-height: 1.5em;
  margin-bottom: 10px;
  line-height: 1.5;
}

.cursor {
  color: var(--text-dim);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── Location ── */

.location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 450;
  color: var(--text-dim);
  margin-bottom: 24px;
  padding: 7px 16px;
  border-radius: 50px;
  cursor: default;
  transition: color 0.35s, background 0.35s, box-shadow 0.35s;
}

.location:hover {
  color: var(--text);
  background: rgba(27, 27, 27, 0.28);
  box-shadow: 0 0 20px rgba(245, 233, 226, 0.04);
}

.location-icon {
  position: relative;
  width: 22px;
  height: 15px;
  flex-shrink: 0;
  overflow: hidden;
}

.location-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.7;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s;
}

.location-flag {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  overflow: hidden;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.location-flag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000 33.33%, #dd0000 33.33%, #dd0000 66.66%, #ffce00 66.66%);
}

.location:hover .location-pin {
  transform: translate(-50%, -160%);
  opacity: 0;
}

.location:hover .location-flag {
  transform: translateY(0);
  opacity: 1;
}

.location-text {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.location:hover .location-text {
  transform: translateX(2px);
}

/* ── Social links ── */

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding: 14px 28px;
  border-radius: 50px;
  background: rgba(27, 27, 27, 0.18);
  border: 1px solid rgba(245, 233, 226, 0.05);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.social-links:hover {
  border-color: rgba(245, 233, 226, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.social-item {
  position: relative;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon);
  filter: var(--icon-glow);
  text-decoration: none;
  padding: 8px;
  border-radius: 50%;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.3s ease,
    filter 0.3s ease,
    background 0.3s ease;
}

.social-link svg {
  display: block;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover {
  transform: scale(1.2) translateY(-3px);
  color: var(--text);
}

.social-link--telegram:hover {
  color: #2aabee;
  filter: drop-shadow(#2aabee 0 0 10px);
  background: rgba(42, 171, 238, 0.1);
}

.social-link--telegram:hover svg {
  animation: icon-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link--steam:hover {
  color: #66c0f4;
  filter: drop-shadow(#66c0f4 0 0 10px);
  background: rgba(102, 192, 244, 0.1);
}

.social-link--steam:hover svg {
  animation: icon-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-pop {
  0%   { transform: scale(1) rotate(0); }
  40%  { transform: scale(1.15) rotate(-6deg); }
  70%  { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ── Steam recent activity ── */

.steam-activity {
  width: 100%;
  margin-top: 4px;
  text-align: left;
}

.steam-activity .section-head {
  margin-bottom: 16px;
}

.steam-panel {
  padding: 10px;
  border-radius: 18px;
  background: rgba(245, 233, 226, 0.03);
  border: 1px solid rgba(245, 233, 226, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(245, 233, 226, 0.05),
    0 12px 40px rgba(0, 0, 0, 0.18);
}

.steam-games {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steam-game {
  --bar-pct: 50%;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: rgba(245, 233, 226, 0.04);
  border: 1px solid rgba(245, 233, 226, 0.08);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.35s,
    background 0.35s,
    box-shadow 0.35s;
}

.steam-game:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(245, 233, 226, 0.2);
  background: rgba(245, 233, 226, 0.07);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(245, 233, 226, 0.06);
}

.steam-game-thumb {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
}

.steam-game-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(245, 233, 226, 0.08);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.steam-game:hover .steam-game-icon {
  transform: scale(1.06) rotate(-2deg);
}

.steam-game-thumb-glow {
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 60%, rgba(245, 233, 226, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: -1;
}

.steam-game:hover .steam-game-thumb-glow {
  opacity: 1;
}

.steam-game-info {
  flex: 1;
  min-width: 0;
}

.steam-game-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.steam-game-hours {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.steam-game-bar {
  height: 2px;
  border-radius: 2px;
  background: rgba(245, 233, 226, 0.06);
  overflow: hidden;
}

.steam-game-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: rgba(245, 233, 226, 0.28);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.steam-games.is-loaded .steam-game-bar span {
  width: var(--bar-pct);
}

.steam-game-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.35s,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.3s;
}

.steam-game:hover .steam-game-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--text-muted);
}

.steam-game-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 233, 226, 0.06), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.steam-game:hover .steam-game-shine {
  animation: steam-shine-sweep 0.75s ease forwards;
}

@keyframes steam-shine-sweep {
  to { left: 150%; }
}

.steam-game--skeleton {
  min-height: 92px;
  pointer-events: none;
  grid-template-columns: 1fr;
  background: linear-gradient(
    90deg,
    rgba(245, 233, 226, 0.03) 0%,
    rgba(245, 233, 226, 0.08) 50%,
    rgba(245, 233, 226, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: steam-shimmer 1.4s ease-in-out infinite;
  border-color: rgba(245, 233, 226, 0.04);
}

@keyframes steam-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.steam-games.is-loaded .steam-game {
  animation: steam-card-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.steam-games.is-loaded .steam-game:nth-child(1) { animation-delay: 0.08s; }
.steam-games.is-loaded .steam-game:nth-child(2) { animation-delay: 0.18s; }
.steam-games.is-loaded .steam-game:nth-child(3) { animation-delay: 0.28s; }

@keyframes steam-card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 420px) {
  .steam-game {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px 14px;
  }

  .steam-game-thumb {
    width: 56px;
    height: 56px;
  }

  .steam-game-icon {
    width: 56px;
    height: 56px;
  }

  .steam-game-arrow {
    display: none;
  }

  .steam-game-name {
    font-size: 0.88rem;
  }
}

/* ── Yandex Music playlist ── */

.music-section {
  width: 100%;
  margin-top: 4px;
  text-align: left;
  overflow: hidden;
}

.music-section .section-head {
  margin-bottom: 16px;
}

.music-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 50px;
  background: rgba(245, 233, 226, 0.05);
  border: 1px solid rgba(245, 233, 226, 0.1);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.3s,
    background 0.3s,
    border-color 0.3s;
}

.music-open-link:hover {
  color: var(--text);
  background: rgba(245, 233, 226, 0.1);
  border-color: rgba(245, 233, 226, 0.2);
  transform: translateY(-2px);
}

.music-panel {
  padding: 0;
  border-radius: 18px;
  background: rgba(245, 233, 226, 0.03);
  border: 1px solid rgba(245, 233, 226, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(245, 233, 226, 0.05),
    0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

/* ── Custom playlist widget ── */

.music-widget {
  position: relative;
}

.music-tracks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 10px 10px 8px;
}

.music-tracks .steam-game {
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(8px);
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.music-tracks .steam-game .steam-game-bar,
.music-tracks .steam-game .steam-game-arrow,
.music-tracks .steam-game .steam-game-shine {
  display: none;
}

.profile-block.is-visible .music-tracks .music-track {
  animation: music-track-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) var(--track-delay, 0s) forwards;
}

body.is-entered .music-tracks .music-track {
  opacity: 1;
  transform: none;
}

@keyframes music-track-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.music-track-thumb {
  overflow: hidden;
}

.music-track-cover {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(245, 233, 226, 0.08);
}

.music-track-cover--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      145deg,
      hsl(var(--track-hue) 35% 42%),
      hsl(var(--track-hue) 45% 28%)
    );
}

.music-track-cover--fallback span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(245, 233, 226, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.music-track-play {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 50%;
  color: var(--text);
  background: rgba(245, 233, 226, 0.08);
  border: 1px solid rgba(245, 233, 226, 0.12);
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.25s,
    transform 0.25s,
    background 0.25s;
}

.music-track:hover .music-track-play,
.music-track.is-active .music-track-play {
  opacity: 1;
  transform: scale(1);
}

.music-track.is-active {
  background: rgba(245, 233, 226, 0.07);
  border-color: rgba(245, 233, 226, 0.14);
}

.music-now {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(245, 233, 226, 0.05), rgba(8, 8, 8, 0.2)),
    rgba(8, 8, 8, 0.55);
  border-top: 1px solid rgba(245, 233, 226, 0.08);
}

.music-now.is-live .music-eq--now span {
  animation-play-state: running;
}

.music-now-cover {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(245, 233, 226, 0.08);
}

.music-now-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-now-cover--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      145deg,
      hsl(var(--track-hue, 24) 35% 42%),
      hsl(var(--track-hue, 24) 45% 28%)
    );
}

.music-now-cover--fallback span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(245, 233, 226, 0.92);
}

.music-now-info {
  min-width: 0;
}

.music-now-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-now-artist {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-eq--now {
  opacity: 0.55;
}

.music-eq--now span {
  animation-play-state: paused;
}

.music-now-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  padding: 0;
  color: #080808;
  background: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s,
    background 0.3s;
}

.music-now-play:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.music-player-wrap {
  height: 88px;
  overflow: hidden;
  background: #080808;
  border-top: 1px solid rgba(245, 233, 226, 0.06);
}

.music-player-wrap.is-hidden {
  display: none;
}

.music-player {
  display: block;
  width: 100%;
  height: 132px;
  border: none;
  background: #080808;
  margin-top: -8px;
}

.music-player-hint {
  margin: 0;
  padding: 6px 14px 10px;
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
  background: rgba(8, 8, 8, 0.45);
  border-top: 1px solid rgba(245, 233, 226, 0.04);
}

.music-player-hint.is-hidden {
  display: none;
}

.music-fallback-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(245, 233, 226, 0.04);
  border: 1px solid rgba(245, 233, 226, 0.08);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.35s,
    background 0.35s,
    box-shadow 0.35s;
}

.music-fallback-card:not(.is-hidden) {
  display: grid;
}

.music-fallback-card.is-hidden {
  display: none;
}

.music-fallback-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 233, 226, 0.2);
  background: rgba(245, 233, 226, 0.07);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.music-fallback-visual {
  position: relative;
  width: 64px;
  height: 64px;
}

.music-fallback-disc {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  background: linear-gradient(145deg, rgba(245, 233, 226, 0.12), rgba(8, 8, 8, 0.5));
  border: 1px solid rgba(245, 233, 226, 0.1);
}

.music-fallback-body {
  min-width: 0;
  text-align: left;
}

.music-fallback-tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.music-fallback-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.music-fallback-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.music-fallback-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 233, 226, 0.1);
  border: 1px solid rgba(245, 233, 226, 0.12);
  color: var(--text);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-fallback-card:hover .music-fallback-play {
  transform: scale(1.08);
}

.music-eq {
  position: absolute;
  right: -2px;
  bottom: 2px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.music-eq span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--text);
  opacity: 0.65;
  animation: music-bar 0.9s ease-in-out infinite;
}

.music-eq span:nth-child(1) { animation-delay: 0s; }
.music-eq span:nth-child(2) { animation-delay: 0.15s; }
.music-eq span:nth-child(3) { animation-delay: 0.3s; }
.music-eq span:nth-child(4) { animation-delay: 0.1s; }
.music-eq span:nth-child(5) { animation-delay: 0.25s; }

@keyframes music-bar {
  0%, 100% { height: 4px; }
  50%       { height: 14px; }
}

@keyframes music-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 420px) {
  .music-tracks {
    padding: 8px 8px 6px;
    gap: 4px;
  }

  .music-tracks .steam-game {
    padding: 10px 12px;
    gap: 12px;
  }

  .music-now {
    gap: 10px;
    padding: 10px 12px;
  }

  .music-now-play {
    width: 38px;
    height: 38px;
  }
}

/* ── Section divider ── */

.section-divider {
  width: 100%;
  max-width: 280px;
  border: none;
  height: 1px;
  margin: 28px 0 24px;
  background: linear-gradient(90deg, transparent, rgba(245, 233, 226, 0.14), transparent);
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, opacity 0.6s ease 0.15s;
}

.profile-block.is-visible .section-divider {
  transform: scaleX(1);
  opacity: 1;
}

/* ── Projects ── */

.projects {
  width: 100%;
  text-align: left;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.section-hint {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 3px;
  opacity: 0.7;
}

.section-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.section-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(27, 27, 27, 0.25);
  border: 1px solid rgba(245, 233, 226, 0.06);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  border-radius: 16px;
  background: rgba(245, 233, 226, 0.04);
  border: 1px solid rgba(245, 233, 226, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    background 0.5s ease;
}

.project-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card.is-open {
  border-color: rgba(245, 233, 226, 0.22);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(245, 233, 226, 0.06),
    inset 0 1px 0 rgba(245, 233, 226, 0.06);
  background: rgba(245, 233, 226, 0.07);
}

.project-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  position: relative;
  font-family: inherit;
}

.project-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 233, 226, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.project-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 233, 226, 0.06), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.project-card.is-open .project-glow,
.project-toggle:hover .project-glow {
  opacity: 1;
}

.project-toggle:hover .project-shine {
  animation: shine-sweep 0.7s ease forwards;
}

@keyframes shine-sweep {
  to { left: 140%; }
}

.project-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  z-index: 1;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-toggle:hover .project-thumb img {
  transform: scale(1.06);
}

.project-body {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.project-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.project-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.2;
}

.project-desc {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

.project-chevron {
  flex-shrink: 0;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 233, 226, 0.05);
  z-index: 1;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.3s,
    background 0.3s;
}

.project-card.is-open .project-chevron {
  transform: rotate(180deg);
  color: var(--text);
  background: rgba(245, 233, 226, 0.12);
}

.project-toggle:hover .project-chevron {
  color: var(--text);
  background: rgba(245, 233, 226, 0.08);
}

/* ── Project expand ── */

.project-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-details-inner {
  padding: 0 16px 18px;
  border-top: 1px solid rgba(245, 233, 226, 0.1);
}

.project-details-content {
  padding-top: 14px;
}

.project-details-text {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.project-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.project-features li {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
  line-height: 1.45;
}

.project-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.4;
  box-shadow: 0 0 8px rgba(245, 233, 226, 0.35);
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: rgba(245, 233, 226, 0.12);
  border: 1px solid rgba(245, 233, 226, 0.16);
  transition:
    transform 0.25s,
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}

.project-cta:hover {
  transform: translateY(-2px);
  background: rgba(245, 233, 226, 0.22);
  border-color: rgba(245, 233, 226, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.project-cta:active {
  transform: translateY(0);
}

/* ── Footer & views ── */

.page-footer {
  width: 100%;
  margin-top: 36px;
  padding-top: 4px;
  display: flex;
  justify-content: center;
}

.views-counter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text-dim);
  padding: 9px 18px;
  border-radius: 50px;
  background: rgba(27, 27, 27, 0.28);
  border: 1px solid rgba(245, 233, 226, 0.08);
  backdrop-filter: blur(6px);
  cursor: default;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.views-counter:hover {
  color: var(--text);
  border-color: rgba(245, 233, 226, 0.16);
  background: rgba(27, 27, 27, 0.4);
}

.views-counter svg {
  opacity: 0.7;
}

.views-label {
  font-weight: 400;
  opacity: 0.65;
}

/* ── Tooltips ── */

[data-tip] {
  position: relative;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid rgba(26, 26, 26, 0.2);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.views-counter[data-tip]::after {
  bottom: calc(100% + 8px);
  top: auto;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .profile-block {
    padding: 64px 16px 40px;
    justify-content: flex-start;
    padding-top: max(64px, 12dvh);
  }

  .avatar-wrap {
    width: 96px;
    height: 96px;
  }

  .avatar {
    border-radius: 30px;
  }

  .popout {
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
  }

  .avatar-wrap:hover .popout-photo,
  .avatar-wrap:focus-visible .popout-photo {
    transform: translate(-58px, -18px) scale(1) rotate(-12deg);
  }

  .avatar-wrap:hover .popout-video,
  .avatar-wrap:focus-visible .popout-video {
    transform: translate(54px, -14px) scale(1) rotate(10deg);
  }

  .social-links {
    padding: 12px 20px;
    gap: 18px;
  }

  .volume-control {
    top: 12px;
    left: 12px;
    padding: 6px 10px 6px 8px;
  }

  .volume-slider {
    width: 64px;
  }

  .project-thumb {
    width: 64px;
    height: 64px;
  }

  .project-toggle {
    padding: 12px 14px;
    gap: 12px;
  }

  .page-footer {
    margin-top: 28px;
  }
}

/* ── Mobile performance (animations kept, GPU-friendly) ── */

html.is-mobile .bg-videos,
html.is-mobile .bg-video.is-active {
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

html.is-mobile .bg-video {
  filter: none;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

html.is-mobile .bg-video.is-active {
  filter: brightness(0.55);
  animation: ken-burns-mobile 45s ease-out forwards;
}

html.is-mobile .bg-video.is-leaving {
  filter: brightness(0.4);
  animation: none;
}

@keyframes ken-burns-mobile {
  from { transform: scale(1) translateZ(0); }
  to   { transform: scale(1.04) translateZ(0); }
}

html.is-mobile body.is-entered .bg-video.is-active {
  filter: brightness(0.58) !important;
  transition: filter 0.8s ease;
}

html.is-mobile .tv-effect {
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: tv-flicker 0.28s steps(2) infinite;
}

html.is-mobile .start-screen {
  backdrop-filter: none;
  background: rgba(8, 8, 8, 0.92);
}

html.is-mobile .volume-control {
  backdrop-filter: none;
  background: rgba(20, 20, 20, 0.88);
}

html.is-mobile .views-counter {
  backdrop-filter: none;
  background: rgba(20, 20, 20, 0.75);
}

html.is-mobile .start-brand {
  animation-name: start-brand-in-mobile;
}

@keyframes start-brand-in-mobile {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

html.is-mobile .steam-games.is-loaded .steam-game {
  animation-name: steam-card-in-mobile;
}

@keyframes steam-card-in-mobile {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

html.is-mobile .steam-activity,
html.is-mobile .projects {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

html.is-mobile .profile-block .reveal {
  will-change: transform, opacity;
}

html.is-mobile body.is-entered .profile-block .reveal {
  will-change: auto;
}

html.is-mobile .avatar-wrap.is-touched .popout-photo {
  transform: translate(-58px, -18px) scale(1) rotate(-12deg);
  opacity: 1;
}

html.is-mobile .avatar-wrap.is-touched .popout-video {
  transform: translate(54px, -14px) scale(1) rotate(10deg);
  opacity: 1;
}

@media (max-width: 768px) {
  .profile-block {
    padding: 64px 16px 36px;
    justify-content: flex-start;
    padding-top: max(56px, 10dvh);
  }

  .start-scanline {
    animation-duration: 5s;
  }

  .username {
    animation-duration: 6s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg-video {
    transition-duration: 0.01ms !important;
  }

  .username {
    animation: none;
  }
}
