* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Mulish', sans-serif;
  background:
    linear-gradient(
      135deg,
      rgba(10, 10, 20, 0.55) 0%,
      rgba(180, 30, 60, 0.25) 100%
    ),
    url("bg.jpeg");
  background-size: cover;
  background-position: center top;
}

/* Зернистость поверх */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.card {
  position: relative;
  z-index: 1;
  width: min(90vw, 480px);
  padding: 44px 32px;
  text-align: center;
  background: rgba(8, 8, 12, 0.72);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(200, 30, 60, 0.2),
    0 32px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  animation: fadeIn 0.8s ease both;
}

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

/* Декоративная красная линия сверху */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c1192e, transparent);
  border-radius: 4px 4px 0 0;
}

h1 {
  margin: 0 0 36px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 6vw, 38px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 20px rgba(200, 25, 50, 0.4);
}

.buttons {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

button {
  padding: 14px 36px;
  border-radius: 2px;
  font-family: 'Mulish', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.15s;
}

#yes {
  background: #c1192e;
  color: white;
  box-shadow: 0 4px 20px rgba(193, 25, 46, 0.5);
}

#yes:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 30px rgba(193, 25, 46, 0.7);
}

#no {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  will-change: transform;
  font-size: 15px;
}

#no:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.35);
}

.final {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 8vw, 64px);
  font-weight: 900;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  padding: 24px;
  line-height: 1.3;
}
