* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  background: #000;
  position: relative;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Параллакс фона */
.background {
  position: fixed;
  inset: 0;
  background-image: url("background-oldfag.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: bg-parallax 12s ease-in-out infinite;
}

/* Логотип + X */
.top-left-wrap {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;

  opacity: 0;
  animation: header-enter 0.7s ease-out 0.1s forwards;
}

/* Логотип дыхание */
.logo-top {
  height: 48px;
  width: auto;
  animation: logo-breathe 3.4s ease-in-out infinite;
}

/* X (Twitter) */
.twitter-btn {
  height: 42px;
  width: auto;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.twitter-btn:hover {
  transform: scale(1.04) rotate(-5deg);
  filter: brightness(1.05);
}

.twitter-btn:active {
  transform: scale(0.92) translateY(2px);
  filter: brightness(0.9);
}

/* PLAY — hover убран, depth-press усилен */
.play-btn {
  position: absolute;
  left: 50%;
  top: 82%;
  transform: translateX(-50%);
  width: 180px;
  height: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 10;

  transition: transform 0.15s cubic-bezier(.2,.7,.3,1),
              filter 0.15s ease,
              box-shadow 0.15s ease;

  opacity: 0;
  animation: play-enter 0.8s ease-out 0.3s forwards;
}

/* УСИЛЕННЫЙ depth-press */
.play-btn:active {
  transform: translateX(-50%) translateY(8px) scale(0.88);
  filter: brightness(0.85);
  box-shadow: none;
}

/* Нижний правый текст */
.rights-text {
  position: absolute;
  bottom: 18px;
  right: 18px;
  height: 34px;
  z-index: 10;
  animation: rights-flicker 6s ease-in-out infinite;
}

/* Адаптация */
@media (max-width: 768px) {
  .logo-top { height: 40px; }
  .twitter-btn { height: 36px; }
  .play-btn { width: 150px; top: 84%; }
  .rights-text { height: 28px; bottom: 14px; right: 14px; }
}

/* ===== Анимации ===== */

@keyframes logo-breathe {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes bg-parallax {
  0% { background-position: center; }
  50% { background-position: calc(50% + 2px) calc(50% + 2px); }
  100% { background-position: center; }
}

@keyframes rights-flicker {
  0%, 93% { filter: none; }
  94% { filter: brightness(0.7) contrast(1.3); }
  96% { filter: brightness(1.1) contrast(0.9); }
  100% { filter: none; }
}

@keyframes header-enter {
  0% { opacity: 0; transform: translateY(-18px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes play-enter {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
