:root {
  --bg-deep: #0c0b12;
  --acid: #c8ff00;
  --hot: #ff2d6a;
  --ice: #6ef3ff;
  --lilac: #b794f6;
  --card: rgba(18, 16, 28, 0.85);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #f4f0ff;
  --muted: #9a92b0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: "Rubik", system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

/* Фон: сетка + градиенты + шум */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-layer::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255, 45, 106, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(110, 243, 255, 0.25), transparent 45%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(200, 255, 0, 0.12), transparent 40%);
  animation: drift 18s ease-in-out infinite alternate;
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, black 20%, transparent 70%);
}

@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-4%, 3%) rotate(3deg); }
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
}

/* «Стикеры» */
.stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.sticker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.4);
  animation: floaty 4s ease-in-out infinite;
}

.sticker:nth-child(1) { animation-delay: 0s; border-color: var(--acid); color: var(--acid); }
.sticker:nth-child(2) { animation-delay: 0.5s; border-color: var(--ice); color: var(--ice); }
.sticker:nth-child(3) { animation-delay: 1s; border-color: var(--hot); color: var(--hot); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: clamp(1.75rem, 5vw, 2.25rem);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(255, 45, 106, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-3deg) translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 32px 100px rgba(0, 0, 0, 0.6),
    0 0 140px rgba(110, 243, 255, 0.12);
}

.card-corner {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  color: var(--muted);
  opacity: 0.8;
}

.glitch-title {
  font-size: clamp(1.85rem, 8vw, 2.35rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  position: relative;
}

.glitch-title span {
  display: inline-block;
  background: linear-gradient(105deg, var(--text) 0%, var(--lilac) 45%, var(--ice) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.subtitle strong {
  color: var(--acid);
  font-weight: 700;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
  margin: 1.25rem 0 1.5rem;
}

.quests-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.quest-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.quest:hover {
  border-color: rgba(200, 255, 0, 0.45);
  background: rgba(200, 255, 0, 0.06);
  transform: translateX(4px);
}

.quest:nth-child(2):hover {
  border-color: rgba(110, 243, 255, 0.5);
  background: rgba(110, 243, 255, 0.06);
}

.quest-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.quest-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.quest-flavor {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

.quest-arrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
  color: var(--acid);
  flex-shrink: 0;
}

.quest:nth-child(2) .quest-arrow {
  color: var(--ice);
}

.footer-bar {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.footer-bar .blink {
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0.35; }
}

/* Уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
  .bg-layer::before,
  .sticker,
  .footer-bar .blink {
    animation: none;
  }
  .card:hover {
    transform: none;
  }
}
