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

html {
  height: 100%;
  overflow: hidden;
  background: #000814;
}

body {
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  color: #000814;
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  flex: none;
  display: flex;
  justify-content: flex-start;
  padding: 0 20px;
  background-color: #000814;
}
.header img {
  display: block;
  height: clamp(56px, 11vmin, 88px);
  width: auto;
}

.stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 15px;
  background-color: #000814;
  background-image: url("../images/slide01.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  animation: bg-change 15s infinite ease-in-out;
}
@media (max-width: 1023px) {
  .stage {
    background-position: left;
  }
}

@keyframes bg-change {
  0% {
    background-image: url("../images/slide01.jpg");
  }
  20% {
    background-image: url("../images/slide02.jpg");
  }
  40% {
    background-image: url("../images/slide03.jpg");
  }
}
.step {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(12px, 3vmin, 32px) 0 clamp(14px, 3.5vmin, 40px);
}
.step.is-active {
  display: flex;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(14px, 2.6vmin, 20px) clamp(14px, 2.6vmin, 20px) clamp(16px, 3vmin, 24px);
  text-align: center;
  background: rgba(255, 214, 10, 0.35);
  border: 3px solid #ffd60a;
  border-radius: 16px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.card__text {
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.card__title {
  font-size: clamp(20px, 1.6vmin + 12px, 26px);
  font-weight: 600;
  margin: clamp(6px, 1.6vmin, 20px) 0 clamp(8px, 1.8vmin, 20px);
}

.card__lead {
  font-size: clamp(16px, 0.8vmin + 12px, 19px);
  line-height: 1.35;
  padding: 0 clamp(0px, 2vmin, 20px);
}

.card__question {
  font-size: clamp(18px, 1vmin + 13px, 22px);
  line-height: 1.35;
  margin: clamp(4px, 1.6vmin, 18px) 0;
  padding: 0 clamp(0px, 2vmin, 20px);
}

.buttons {
  flex: none;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10%;
  margin-top: 12px;
}
@media (max-width: 480px) {
  .buttons {
    flex-direction: column-reverse;
    gap: clamp(10px, 2.4vmin, 15px);
  }
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: clamp(48px, 4vmin + 26px, 60px);
  padding: 10px 20px;
  font-family: Roboto, Arial, sans-serif;
  font-size: clamp(17px, 0.6vmin + 14px, 20px);
  font-weight: 600;
  color: #000814;
  text-decoration: none;
  background: linear-gradient(175deg, #ffd60a 20%, #f4a261 89%);
  border: 2px solid #f4a261;
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(244, 162, 97, 0.45);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}
.btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 24px rgba(244, 162, 97, 0.6);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus {
  outline: none;
}
.btn:focus-visible {
  outline: 2px solid #000814;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .btn {
    width: 100%;
  }
}

.btn--no {
  color: #fff;
  background: linear-gradient(45deg, #000, rgba(5, 21, 69, 0.81));
  box-shadow: #0c1f34 0 0 0 3px inset, 0 6px 18px rgba(0, 8, 20, 0.35);
}
.btn--no:hover {
  box-shadow: #0c1f34 0 0 0 3px inset, 0 8px 24px rgba(0, 8, 20, 0.5);
}

.card--final {
  max-width: 390px;
  background-color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
}

.hearts {
  display: block;
  width: clamp(56px, 10vmin, 80px);
  height: auto;
  aspect-ratio: 1;
}

.card__status {
  font-size: clamp(16px, 0.8vmin + 12px, 19px);
  margin-top: 8px;
}

.match-text {
  font-size: clamp(20px, 1.6vmin + 12px, 24px);
  margin: clamp(8px, 1.8vmin, 16px) 0;
}
.match-text .count {
  color: #ffd60a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 8, 20, 0.35);
}

.btn--continue {
  width: 100%;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, box-shadow 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}
.btn--continue.is-ready {
  visibility: visible;
  opacity: 1;
}

@keyframes step-fade-down {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.step.is-active .anim {
  animation: step-fade-down 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.step.is-active .anim--2 {
  animation-delay: 0.08s;
}
.step.is-active .anim--3 {
  animation-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  .stage,
  .step.is-active .anim {
    animation: none;
  }
}
