:root {
  color-scheme: dark;
  --bg: #07130f;
  --panel: rgba(8, 27, 21, 0.78);
  --text: #f5fff9;
  --muted: #b9cfc4;
  --line: rgba(255, 255, 255, 0.18);
  --accent: #22c55e;
  --accent-strong: #16a34a;
  --yellow: #facc15;
  --danger: #ef4444;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
}

.hero {
  position: relative;
  width: min(100%, 1120px);
  min-height: min(760px, calc(100vh - 36px));
  display: grid;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(110deg, rgba(3, 11, 8, 0.94), rgba(3, 11, 8, 0.62) 52%, rgba(3, 11, 8, 0.28)),
    radial-gradient(circle at 75% 35%, rgba(34, 197, 94, 0.26), transparent 34%),
    linear-gradient(135deg, #123d2c, #07130f 56%, #07130f);
}

.pitch {
  position: absolute;
  inset: -8%;
  opacity: 0.62;
  transform: rotate(-9deg) scale(1.1);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(31, 120, 70, 0.9) 0 92px,
      rgba(21, 94, 57, 0.9) 92px 184px
    );
}

.line {
  position: absolute;
  border: 3px solid rgba(255, 255, 255, 0.58);
}

.line.center {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
}

.line.center::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 3px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  left: -110px;
  top: calc(50% - 110px);
}

.line.box {
  left: 50%;
  width: 360px;
  height: 170px;
  transform: translateX(-50%);
}

.line.box.top {
  top: 0;
}

.line.box.bottom {
  bottom: 0;
}

.content {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  margin: 0;
  padding: clamp(26px, 5vw, 64px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  color: #dcfce7;
  font-size: 14px;
  font-weight: 800;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.16);
}

h1 {
  max-width: 11ch;
  margin: 22px 0 16px;
  font-size: clamp(42px, 9vw, 86px);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.45;
}

.giveaway {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(250, 204, 21, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(8, 27, 21, 0.76));
  backdrop-filter: blur(14px);
}

.giveaway-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff7cc;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.giveaway-head strong {
  min-width: 72px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--yellow);
  text-align: center;
}

.prize {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.cup {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--yellow);
  color: #1a1200;
  font-size: 26px;
  font-weight: 900;
}

.prize strong {
  display: block;
  color: var(--text);
  font-size: 19px;
  line-height: 1.15;
}

.prize p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.rules span {
  min-height: 44px;
  display: grid;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: #e7fff0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.actions {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.primary {
  display: inline-grid;
  place-items: center;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--accent);
  color: #03130a;
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.28);
}

.primary:active {
  transform: translateY(1px);
}

.link-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.link-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 8px;
}

input,
button {
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  font: inherit;
}

input {
  width: 100%;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: 1px solid rgba(255, 255, 255, 0.08);
}

button {
  cursor: pointer;
  background: var(--yellow);
  color: #1a1200;
  font-weight: 900;
}

.steps {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin: 22px 0 0;
  padding-left: 24px;
  color: #e7fff0;
  font-weight: 700;
}

.steps li::marker {
  color: var(--yellow);
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  transform: translate(-50%, 20px);
  padding: 12px 16px;
  border-radius: 8px;
  background: #f5fff9;
  color: #07130f;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 680px) {
  .page {
    padding: 0;
  }

  .hero {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .content {
    align-self: end;
    padding: 24px 18px 32px;
  }

  h1 {
    max-width: 10ch;
  }

  .copy-row {
    grid-template-columns: 1fr 78px;
  }

  .rules {
    grid-template-columns: 1fr;
  }

  .prize strong {
    font-size: 17px;
  }
}
