:root {
  --bg: #070707;
  --yellow: #fed813;
  --yellow-hot: #ffe84a;
  --text: #f5f5f5;
  --muted: #9b9b9b;
  --logo-icon-bg: #fed813;
  --logo-icon-fg: #131314;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a1608 0%, transparent 55%),
    linear-gradient(180deg, #0c0c0c 0%, var(--bg) 45%, #050505 100%);
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(254, 216, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254, 216, 19, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 20%, transparent 75%);
}

.glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.glow-a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(254, 216, 19, 0.16);
  animation: breathe 5s ease-in-out infinite;
}

.glow-b {
  width: 280px;
  height: 280px;
  bottom: 8%;
  right: 12%;
  background: rgba(254, 216, 19, 0.07);
  animation: breatheB 7s ease-in-out infinite;
}

.scan {
  position: fixed;
  left: 0;
  right: 0;
  height: 18%;
  top: -20%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(254, 216, 19, 0.05) 45%,
    transparent 100%
  );
  animation: scanMove 7.5s ease-in-out infinite;
}

/* живая лента подарков сверху */
.gift-tape {
  position: relative;
  z-index: 3;
  width: 100%;
  overflow: hidden;
  padding: 12px 0 10px;
  border-bottom: 1px solid rgba(254, 216, 19, 0.08);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 100%);
}

.gift-tape-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: tapeScroll 55s linear infinite;
  will-change: transform;
}

.gift-tape:hover .gift-tape-track {
  animation-play-state: paused;
}

.gift-tape-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.gift-tape-fade-l {
  left: 0;
  background: linear-gradient(90deg, #070707 0%, transparent 100%);
}

.gift-tape-fade-r {
  right: 0;
  background: linear-gradient(270deg, #070707 0%, transparent 100%);
}

.tape-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tape-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #1a1a1a;
  display: block;
}

.tape-item.is-fallback .tape-img {
  opacity: 0.25;
}

.tape-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.tape-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.tape-id {
  font-size: 10px;
  color: #6e6e6e;
  letter-spacing: 0.02em;
}

.tape-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 2px;
}

@keyframes tapeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scanMove {
  0% { top: -20%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 0.7; }
  100% { top: 110%; opacity: 0; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@keyframes breatheB {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.12); }
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px 0;
}

.lang {
  display: inline-flex;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn:focus,
.lang-btn:focus-visible,
.lang-btn:active {
  outline: none;
  box-shadow: none;
}

.lang-btn.active {
  background: var(--yellow);
  color: #111;
}

.screen {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 24px 80px;
}

.mark {
  margin-bottom: 28px;
  animation: rise 0.7s ease both;
}

.logo {
  width: 78px;
  height: 56px;
  filter: drop-shadow(0 0 18px rgba(254, 216, 19, 0.4));
  animation: pulse 3.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(254, 216, 19, 0.3)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 22px rgba(254, 216, 19, 0.55)); transform: scale(1.03); }
}

.brand {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(254, 216, 19, 0.22);
  animation: rise 0.75s ease 0.08s both;
}

h1 {
  margin: 0 0 14px;
  max-width: 540px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  letter-spacing: -0.02em;
  color: var(--text);
  animation: rise 0.75s ease 0.16s both;
}

.lead {
  margin: 0 0 32px;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  animation: rise 0.75s ease 0.24s both;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: rise 0.75s ease 0.32s both;
}

.btn-enter {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #111;
  background: var(--yellow);
  padding: 14px 28px;
  border-radius: 999px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  animation: glowBtn 2.8s ease-in-out 1s infinite;
}

.btn-enter:hover {
  background: var(--yellow-hot);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(254, 216, 19, 0.35);
}

.btn-enter:active {
  transform: translateY(0);
}

.btn-enter:disabled,
.btn-enter.is-loading {
  cursor: wait;
  opacity: 0.85;
  transform: none;
  box-shadow: none;
  animation: none;
  pointer-events: none;
}

.btn-enter.is-loading .tg-icon {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.note {
  margin: 0;
  max-width: 280px;
  font-size: 12px;
  line-height: 1.4;
  color: #6e6e6e;
  letter-spacing: 0.02em;
}

@keyframes glowBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(254, 216, 19, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(254, 216, 19, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.powered {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 16px 28px;
  color: var(--muted);
  font-size: 14px;
}

.powered em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .logo {
    width: 64px;
    height: 46px;
  }

  .btn-enter {
    width: min(100%, 300px);
  }
}
