:root {
  --bg-top: #ffb45c;
  --bg-mid: #ff7a4d;
  --bg-sea: #12b3c4;
  --bg-deep: #0a7f93;
  --card: rgba(255, 248, 236, 0.88);
  --line: rgba(255, 255, 255, 0.55);
  --gold: #d97706;
  --mango: #ffb703;
  --coral: #ff5d3a;
  --teal: #0ea5a8;
  --text: #3b2416;
  --muted: rgba(59, 36, 22, 0.68);
  --yes: #3b2416;
  --shadow: 0 28px 70px rgba(14, 70, 82, 0.28);
  --radius: 30px;
}

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

html,
body {
  min-height: 100%;
  max-width: 100%;
  background: var(--bg-sea);
  color: var(--text);
  font-family: Outfit, system-ui, sans-serif;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

[hidden] {
  display: none !important;
}

.sky,
.sun,
.glow,
.wave,
.palm,
.flower,
.noise {
  pointer-events: none;
  position: fixed;
}

.sky {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 108%, #0b6e86 0%, transparent 46%),
    linear-gradient(180deg, #ffd27a 0%, #ff8a4a 28%, #ff6b57 46%, #2ec4d4 72%, #0e8fa8 100%);
}

.sun {
  z-index: 1;
  width: min(42vw, 340px);
  height: min(42vw, 340px);
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff4c4 0%, #ffcf5a 38%, rgba(255, 122, 61, 0.15) 70%, transparent 72%);
  box-shadow: 0 0 80px 20px rgba(255, 196, 84, 0.45);
  animation: pulse 6s ease-in-out infinite;
}

.glow {
  inset: 0;
  z-index: 1;
  filter: blur(70px);
}

.glow-a {
  background: radial-gradient(circle at 12% 78%, rgba(47, 214, 140, 0.45), transparent 34%);
}

.glow-b {
  background: radial-gradient(circle at 90% 18%, rgba(255, 79, 120, 0.38), transparent 32%);
}

.wave {
  z-index: 2;
  left: -10%;
  right: -10%;
  bottom: -2%;
  height: 28vh;
  background:
    radial-gradient(120% 90% at 10% 100%, rgba(8, 140, 160, 0.95) 36%, transparent 37%),
    radial-gradient(90% 80% at 50% 120%, rgba(14, 168, 186, 0.9) 42%, transparent 43%),
    radial-gradient(110% 90% at 88% 100%, rgba(7, 110, 132, 0.95) 38%, transparent 39%);
}

.palm {
  z-index: 3;
  width: min(48vw, 380px);
  height: min(70vh, 640px);
  background-repeat: no-repeat;
  background-size: contain;
}

.palm-left {
  left: -48px;
  bottom: -30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 480'%3E%3Cpath fill='%230b6b4f' d='M142 480c-6-90-8-180 4-268 38 18 86 22 128 8-38 8-78-2-108-28 48 4 96-14 128-48-44 18-90 8-122-18 52-10 92-42 112-86-48 28-100 28-140 8 28-36 42-82 38-132-18 48-52 86-96 108 8-42-2-88-28-124-8 52-2 104 22 148-48-10-92 4-128 36 42-8 86 8 114 42-52-2-96 22-124 62 48-18 98-12 138 12-36 14-62 46-72 84 38-22 84-24 126-8z'/%3E%3Cpath fill='%230a5a42' d='M148 480c2-110 8-210 22-304 34 22 72 18 108-4-46 22-86 14-112-10 56 12 94-8 122-40-50 24-92 16-118-8 44-8 78-38 94-78-40 30-86 36-122 18 18-34 20-76 8-116-8 44-32 80-70 100 18-38 14-82-4-118 2 48 18 92 48 126-42-18-86-12-122 12 38 0 74 18 96 48-44-10-84 8-108 42 40-8 84 4 114 28-28 18-46 48-50 82 32-16 72-14 108 2z'/%3E%3C/svg%3E");
}

.palm-right {
  right: -72px;
  top: -20px;
  transform: scaleX(-1) rotate(18deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 480'%3E%3Cpath fill='%230c7454' d='M142 480c-6-90-8-180 4-268 38 18 86 22 128 8-38 8-78-2-108-28 48 4 96-14 128-48-44 18-90 8-122-18 52-10 92-42 112-86-48 28-100 28-140 8 28-36 42-82 38-132-18 48-52 86-96 108 8-42-2-88-28-124-8 52-2 104 22 148-48-10-92 4-128 36 42-8 86 8 114 42-52-2-96 22-124 62 48-18 98-12 138 12-36 14-62 46-72 84 38-22 84-24 126-8z'/%3E%3C/svg%3E");
  opacity: 0.92;
}

.flower {
  z-index: 3;
  width: 86px;
  height: 86px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='8' fill='%23f4d35e'/%3E%3Cpath fill='%23fff4e0' d='M40 12c6 10 8 18 0 28-8-10-6-18 0-28z'/%3E%3Cpath fill='%23ffd6c0' d='M68 40c-10 6-18 8-28 0 10-8 18-6 28 0z'/%3E%3Cpath fill='%23fff4e0' d='M40 68c-6-10-8-18 0-28 8 10 6 18 0 28z'/%3E%3Cpath fill='%23ffd6c0' d='M12 40c10-6 18-8 28 0-10 8-18 6-28 0z'/%3E%3Cpath fill='%23ffb4c8' d='M60 20c-2 12-8 18-20 12 10-8 16-16 20-12z'/%3E%3Cpath fill='%23ffc9a8' d='M60 60c-12-2-18-8-12-20 8 10 16 16 12 20z'/%3E%3Cpath fill='%23ffb4c8' d='M20 60c2-12 8-18 20-12-10 8-16 16-20 12z'/%3E%3Cpath fill='%23ffc9a8' d='M20 20c12 2 18 8 12 20-8-10-16-16-12-20z'/%3E%3C/svg%3E");
  filter: drop-shadow(0 8px 12px rgba(90, 40, 20, 0.18));
}

.flower-a {
  left: 7%;
  top: 16%;
  animation: float 7s ease-in-out infinite;
}

.flower-b {
  right: 9%;
  bottom: 18%;
  width: 72px;
  height: 72px;
  animation: float 8s ease-in-out infinite reverse;
}

.noise {
  inset: 0;
  z-index: 4;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.stage {
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.card {
  width: min(520px, 100%);
  padding: 44px 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 245, 228, 0.78)),
    var(--card);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  text-align: center;
  animation: rise 0.7s ease both;
}

.card-denied {
  animation: fade 0.4s ease both;
}

.card-handoff {
  animation: fade 0.25s ease both;
}

.telegram-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #229ed9;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  transform: rotate(-35deg);
  box-shadow: 0 12px 28px rgba(34, 158, 217, 0.3);
}

.badge {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.badge-ring {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #f2c14e;
  color: #b45309;
  background: radial-gradient(circle at 35% 30%, #fff7d6, #ffe08a 58%, #ffbf69);
  font-family: Fraunces, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(180, 83, 9, 0.22), inset 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.badge-muted {
  color: var(--muted);
  font-family: Fraunces, serif;
  font-size: 28px;
  font-weight: 700;
}

.kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  font-family: Fraunces, serif;
  font-size: clamp(30px, 7.2vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 14px;
  overflow-wrap: break-word;
  color: #3b2416;
}

.lead,
.fineprint {
  color: var(--muted);
}

.lead {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 28px;
}

.actions {
  display: grid;
  gap: 12px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  min-height: 64px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.985);
}

.btn-yes {
  background: linear-gradient(135deg, #ffdd57 0%, #ff9f1c 42%, #ff5d3a 100%);
  color: var(--yes);
  box-shadow: 0 14px 28px rgba(255, 93, 58, 0.32);
}

.btn-yes:hover {
  box-shadow: 0 18px 34px rgba(255, 93, 58, 0.42);
}

.btn-no {
  background: rgba(255, 255, 255, 0.42);
  color: #7a5340;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-no:hover {
  background: rgba(255, 255, 255, 0.62);
}

.btn-label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-hint {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.78;
}

.btn.is-busy {
  pointer-events: none;
  opacity: 0.75;
}

.telegram-link {
  min-height: 72px;
}

.fineprint {
  margin-top: 18px;
  font-size: 12px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.04); }
}

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

@media (max-width: 420px) {
  .card {
    padding: 32px 18px 22px;
  }

  h1 {
    font-size: 30px;
  }

  .palm-left {
    width: 210px;
    height: 360px;
    left: -70px;
  }

  .palm-right {
    width: 180px;
    height: 300px;
    right: -64px;
  }

  .flower-a,
  .flower-b {
    width: 56px;
    height: 56px;
  }
}
