:root {
  --bg: #050505;
  --panel: rgba(10, 10, 10, 0.92);
  --line: rgba(255, 214, 141, 0.22);
  --gold-1: #b57d2e;
  --gold-2: #f3cf84;
  --gold-3: #d39b44;
  --green-1: #47b73d;
  --green-2: #6ae348;
  --text: #f7f2e7;
  --muted: #ded3bf;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(215, 168, 75, 0.16), transparent 24%),
    linear-gradient(180deg, #050505 0%, #020202 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.28;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.poster-page {
  width: min(100%, 470px);
  min-height: 100svh;
  padding: 12px;
  position: relative;
}

.poster-card {
  min-height: calc(100svh - 24px);
  padding: 14px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(255, 214, 141, 0.08), transparent 22%),
    linear-gradient(
      180deg,
      rgba(14, 14, 14, 0.84) 0%,
      rgba(10, 10, 10, 0.9) 36%,
      rgba(5, 5, 5, 0.97) 58%,
      rgba(2, 2, 2, 0.99) 100%
    );
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.poster-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 36%;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.34) 28%, rgba(0, 0, 0, 0.62) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.poster-topbar,
.poster-headline,
.amount-banner,
.poster-visual,
.poster-cta,
.poster-contact-note,
.poster-footnote {
  position: relative;
  z-index: 1;
}

.number-grid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-content: start;
  overflow: hidden;
  opacity: 0.40;
  pointer-events: none;
  z-index: 0;
}

.number-grid-bg span {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 200, 200, 0.28);
  color: rgba(220, 220, 220, 0.38);
  font-size: clamp(0.92rem, 2.4vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
}

.poster-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-block img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(215, 168, 75, 0.2);
}

.brand-block span,
.brand-block strong,
.poster-mark,
.poster-headline p,
.poster-headline h1,
.amount-banner strong,
.amount-banner span {
  text-transform: uppercase;
}

.brand-block span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f7d48f;
}

.brand-block strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.poster-mark {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 141, 0.2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f1cf89;
}

.poster-headline {
  margin-top: 14px;
  text-align: center;
}

.poster-headline p {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.9rem, 13vw, 4.6rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
}

.poster-headline h1 {
  margin: 8px auto 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.55rem, 6.4vw, 2.15rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.amount-banner {
  width: min(100%, 330px);
  margin: 16px auto 0;
  padding: 11px 15px;
  border-radius: 22px;
  background: linear-gradient(105deg, #7f4f1d 0%, #c98e39 32%, #f2d08a 52%, #c98e39 72%, #7f4f1d 100%);
  background-size: 220% 100%;
  animation: winners-metal-shine 2.6s linear infinite;
  border: 1px solid rgba(255, 225, 162, 0.3);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  text-align: center;
  color: #101010;
  overflow: hidden;
  isolation: isolate;
}

.amount-banner::before {
  content: none;
}

.amount-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.03) 24%,
    rgba(0, 0, 0, 0.06) 100%
  );
  transform: none;
  animation: none;
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
}

.amount-banner-payment {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.05;
}

.amount-banner-prize {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 15vw, 4.6rem);
  line-height: 0.88;
  letter-spacing: 0.05em;
}

.amount-banner-payment,
.amount-banner-prize {
  position: relative;
  z-index: 2;
}

.poster-visual {
  display: grid;
  place-items: center;
  margin-top: 14px;
}

.poster-logo {
  width: min(100%, 330px);
  filter: brightness(0.92) contrast(1.08) drop-shadow(0 16px 28px rgba(0, 0, 0, 0.42));
}

.poster-cta {
  display: block;
  width: min(100%, 360px);
  margin: 10px auto 0;
  transition: transform 180ms ease, filter 180ms ease;
}

.poster-cta-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  filter: brightness(0.95);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 520ms ease;
}

.poster-cta-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: brightness(1);
  animation: cta-float 2.4s ease-in-out 560ms infinite;
}

.poster-cta:hover,
.poster-cta:focus-visible {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.04);
}

.poster-footnote {
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.poster-footnote-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.poster-footnote-line span {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  letter-spacing: 0.06em;
  color: #f1deb2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
}

.poster-footnote-icon {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.poster-contact-note {
  margin: 1px 0 0;
  text-align: center;
  color: rgba(235, 226, 210, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.poster-contact-note a {
  color: #f3cf84;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.build-version {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.55rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(255, 239, 201, 0.45);
}

.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes banner-shine {
  0% {
    transform: translateX(-140%);
  }

  55% {
    transform: translateX(140%);
  }

  100% {
    transform: translateX(140%);
  }
}

@keyframes cta-float {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-6px) scale(1.01);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes winners-metal-shine {
  0% {
    background-position: -120% 50%;
  }

  100% {
    background-position: 120% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amount-banner,
  .amount-banner::before,
  .amount-banner::after,
  .poster-cta-reveal.is-visible,
  .winners-title {
    animation: none;
  }

  .poster-cta-reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ── Winners carousel ── */
.winners-carousel {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.winners-title {
  margin: 0 0 12px;
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.15rem, 5.2vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff8df 0%, #f3cf84 38%, #a66d1d 50%, #f3cf84 62%, #fff8df 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: winners-metal-shine 2.1s linear infinite;
  text-shadow: 0 1px 0 rgba(255, 232, 187, 0.45), 0 8px 18px rgba(0, 0, 0, 0.35);
}

.winners-track-wrapper {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.winners-track {
  display: flex;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.winners-slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.winners-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.winners-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.winners-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 214, 141, 0.28);
  cursor: pointer;
  padding: 0;
  transition: background 250ms ease, transform 250ms ease;
}

.winners-dot.is-active {
  background: var(--gold-2);
  transform: scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
  .winners-track {
    transition: none;
  }
}

@media (min-width: 700px) {
  .poster-page {
    width: min(100%, 980px);
    padding: 24px;
  }

  .poster-card {
    min-height: auto;
    max-width: 420px;
    margin: 0 auto;
  }

  .poster-headline p {
    font-size: 4.8rem;
  }

  .poster-headline h1 {
    font-size: 2.2rem;
  }
}
