* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  background: #0a0a0a;
  background-image:
    repeating-linear-gradient(45deg, #0a0a0a 0px, #0a0a0a 40px, #1a1a1a 40px, #1a1a1a 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #000;
  padding: 16px;
}

.card {
  background: #c9c9c9;
  border: 6px dashed #ff9100;
  border-radius: 3px;
  padding: 28px 22px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 12px 12px 0px #000;
  position: relative;
  z-index: 2;
  transform: rotate(-1deg);
}

.stamp {
  position: absolute;
  top: -22px;
  right: -18px;
  background: #ff9100;
  color: #000;
  font-weight: bold;
  padding: 6px 12px;
  border: 3px solid #000;
  transform: rotate(12deg);
  font-size: 0.8rem;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #000;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.3;
  margin: 6px 0 4px;
  color: #111;
  text-shadow: 2px 2px 0 #39ff14, -2px -2px 0 #000;
  animation: wiggle 0.6s infinite alternate;
}

@keyframes wiggle {
  from { transform: rotate(-2deg); }
  to { transform: rotate(2deg); }
}

.subtitle {
  font-size: 0.95rem;
  margin-bottom: 22px;
  font-weight: bold;
  color: #222;
}

marquee {
  font-size: 0.85rem;
  font-weight: bold;
  color: #ff9100;
  margin-bottom: 16px;
  border-top: 2px dotted #000;
  border-bottom: 2px dotted #000;
  padding: 4px 0;
}

.buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-height: 70px;
}

button {
  outline: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  padding: 16px 30px;
  font-size: 1.1rem;
  border: 4px solid #000;
  box-shadow: 5px 5px 0 #000;
  -webkit-tap-highlight-color: transparent;
  text-transform: uppercase;
  transition: background-color 0.5s ease, color 0.5s ease;
}

#yesBtn,
#noBtn.converted {
  background: #39ff14;
  color: #000;
  transition: transform 0.25s ease, background-color 0.5s ease;
}

#noBtn.converted {
  position: static !important;
}

#yesBtn:hover,
#noBtn.converted:hover {
  transform: scale(1.1) rotate(-3deg);
  background: #2be000;
}

#yesBtn:active,
#noBtn.converted:active {
  transform: scale(0.9) rotate(3deg);
}

#noBtn {
  background: #555;
  color: #fff;
  position: relative;
  z-index: 10;
  touch-action: none; /* убираем задержку/скролл-жесты на мобиле при тапе */
  will-change: transform, background-color;
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1),
              background-color 0.6s ease,
              color 0.6s ease;
}

#noBtn.fixed-fly {
  position: fixed;
  left: 0;
  top: 0;
}

.result-screen {
  display: none;
  flex-direction: column;
  align-items: center;
}

.result-screen.show {
  display: flex;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translate(0,0) rotate(-1deg); }
  25% { transform: translate(-4px,2px) rotate(1deg); }
  50% { transform: translate(4px,-2px) rotate(-2deg); }
  75% { transform: translate(-3px,1px) rotate(2deg); }
}

.result-emoji {
  font-size: 4rem;
  margin-bottom: 6px;
}

.result-text {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.35;
  color: #111;
}

.result-sub {
  font-size: 0.9rem;
  margin-top: 10px;
  font-weight: bold;
  color: #444;
}

.counter {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #ff9100;
  min-height: 18px;
}

.confetti-piece {
  position: fixed;
  top: -10px;
  width: 12px;
  height: 12px;
  z-index: 999;
  pointer-events: none;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(900deg);
    opacity: 0.9;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  .card { padding: 22px 16px; }
  button { padding: 14px 22px; font-size: 0.95rem; }
  .stamp { font-size: 0.7rem; top: -18px; right: -10px; }
}
