:root {
  --bg1: #06122a;
  --bg2: #070a16;
  --stroke: rgba(255, 255, 255, .14);
  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .72);
  --btn: #ff2d55;
  --btn2: #d81c41;
  --max: 980px;
  --r: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 600px at 15% 18%, rgba(80, 150, 255, .28), transparent 55%),
    radial-gradient(900px 600px at 82% 22%, rgba(255, 70, 140, .22), transparent 55%),
    radial-gradient(900px 600px at 55% 95%, rgba(140, 70, 255, .18), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x: hidden;
}

.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.stage {
  width: min(var(--max), 100%);
  position: relative;
}

/* Исправленный код для .circle */
.circle {
  position: absolute;
  width: 190px;
  height: 190px;
  left: 50%;
  top: -55px;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .14);
  background-image: url('pic.jpg'); /* Убедитесь, что путь к изображению правильный */
  background-size: cover; /* Заставляем изображение покрывать круг */
  background-position: center; /* Центрируем изображение */
  box-shadow: 0 12px 46px rgba(0, 0, 0, .55);
  filter: saturate(1.08) contrast(1.05);
}

.circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .10), rgba(0, 0, 0, .35) 70%);
}

/* Main card */
.card {
  position: relative;
  margin-top: 150px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 260px at 20% 15%, rgba(255, 255, 255, .10), transparent 60%),
    radial-gradient(900px 420px at 80% 10%, rgba(255, 255, 255, .08), transparent 62%);
  opacity: .55;
}

.inner {
  position: relative;
  padding: 34px 28px 30px;
  text-align: center;
}

.h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 14px;
}

.p {
  font-size: 16px;
  color: var(--muted);
  margin: 8px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(420px, 100%);
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0)), var(--btn);
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 14px 45px rgba(255, 45, 85, .26);
  transition: transform .12s ease, background .12s ease;
}

.btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0)), var(--btn2);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0px) scale(.99);
}

.btn.secondary {
  margin-top: 10px;
  background: rgba(255, 255, 255, .10);
  box-shadow: none;
}

.small {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, .52);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.rules {
  text-align: left;
  margin: 18px auto 0;
  width: min(640px, 100%);
}

.rules li {
  margin: 12px 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.35;
  font-size: 16px;
}

@media (max-width: 700px) {
  .circle {
    width: 160px;
    height: 160px;
    top: -45px;
  }
  .card {
    margin-top: 130px;
  }
  .h1 {
    font-size: 21px;
  }
  .p {
    font-size: 16px;
  }
}
