:root {
  --bg: #e8eefe;
  --paper: #ffffff;
  --ink: #0b1836;
  --muted: #5b6b8a;
  --line: #d5def5;
  --red: #e11d48;
  --red-dark: #be123c;
  --red-soft: #ffe4ea;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --navy: #0b1836;
  --sky: #dbe7ff;
  --shadow: 0 18px 40px rgba(11, 24, 54, .1);
}

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

html, body {
  min-height: 100%;
  background:
    radial-gradient(900px 380px at 0% -10%, rgba(225, 29, 72, .18), transparent 52%),
    radial-gradient(800px 360px at 100% 0%, rgba(37, 99, 235, .22), transparent 50%),
    linear-gradient(#dfe7fb, var(--bg));
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
  width: min(760px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(110deg, var(--navy) 0%, #12306e 58%, #7f1d1d 140%);
  color: #fff;
  border-radius: 8px 8px 0 0;
  border-bottom: 4px solid var(--red);
}

.brand { display: grid; gap: 2px; min-width: 0; }
.brand-kicker {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #93c5fd;
}
.brand strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
.topnav a {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 999px;
  color: #c7d7ff;
}
.topnav a.on { background: var(--blue); color: #fff; }
.topnav a.tg { background: var(--red); color: #fff; }

.hero {
  background: var(--paper);
  padding: 28px 22px 22px;
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: var(--shadow);
}
.hero.compact { padding-bottom: 18px; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.8px;
}
.lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 58ch;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.stats div {
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.stats div:nth-child(2) { background: var(--red-soft); }
.stats b {
  display: block;
  font-family: Fraunces, serif;
  font-size: 22px;
}
.stats span { font-size: 11px; color: var(--muted); }

.rank {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.rank-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  grid-template-areas:
    "n logo cta"
    "n copy cta";
  gap: 6px 14px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 14px 10px;
  box-shadow: var(--shadow);
}
.rank-1 {
  background: linear-gradient(180deg, #fff1f4, var(--paper));
  border-color: #fda4af;
  box-shadow: 0 18px 40px rgba(225, 29, 72, .16);
}
.rank-2, .rank-4 {
  border-color: #93c5fd;
}
.rank-3, .rank-5 {
  border-color: #fda4af;
}
.rank-n {
  grid-area: n;
  font-family: Fraunces, serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  text-align: center;
}
.rank-2 .rank-n,
.rank-4 .rank-n { color: var(--blue); }
.rank-logo {
  grid-area: logo;
  height: 46px;
  display: flex;
  align-items: center;
}
.rank-logo img {
  max-height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  object-position: left center;
}
.rank-copy { grid-area: copy; min-width: 0; }
.rank-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rank-copy h2 {
  font-size: 16px;
  font-weight: 800;
}
.score {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-dark);
  background: var(--sky);
  padding: 2px 8px;
  border-radius: 999px;
}
.rank-1 .score,
.rank-3 .score,
.rank-5 .score {
  color: var(--red-dark);
  background: var(--red-soft);
}
.offer { font-size: 15px; font-weight: 700; margin-top: 2px; }
.sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}
.rank-1 .cta,
.rank-3 .cta,
.rank-5 .cta {
  background: var(--red);
  box-shadow: 0 8px 18px rgba(225, 29, 72, .28);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}
.panel h2 {
  font-family: Fraunces, serif;
  font-size: 22px;
  margin-bottom: 8px;
}
.panel p { color: var(--muted); font-size: 14px; line-height: 1.65; }

.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--red); font-size: 11px; letter-spacing: .6px; text-transform: uppercase; }
td a { color: var(--blue-dark); font-weight: 700; }

.faq details { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.faq details:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 8px 0 4px; }

.winners { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.winners li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.av {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-weight: 800;
}
.winners li:nth-child(odd) .av { background: var(--red); }
.winners li:nth-child(even) .av { background: var(--blue); }
.who { display: grid; gap: 2px; }
.who small { color: var(--muted); }
.amt { margin-left: auto; font-family: Fraunces, serif; font-weight: 800; color: var(--red); }

.wheel-box { text-align: center; padding: 8px 0 20px; }
.wheel-wrap { position: relative; width: min(280px, 80vw); height: min(280px, 80vw); margin: 8px auto 18px; }
.wheel {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 10px solid var(--navy);
  box-shadow: 0 0 0 6px #93c5fd, var(--shadow);
  transition: transform 4.6s cubic-bezier(.17,.67,.12,1);
  background: conic-gradient(
    #e11d48 0 12.5%, #2563eb 0 25%,
    #be123c 0 37.5%, #1d4ed8 0 50%,
    #e11d48 0 62.5%, #2563eb 0 75%,
    #be123c 0 87.5%, #1d4ed8 0 100%
  );
}
.pointer {
  position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--red);
  z-index: 2;
}
.spin-btn {
  border: 0;
  background: linear-gradient(90deg, var(--blue), var(--red));
  color: #fff;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
}
.spin-result { min-height: 24px; margin-top: 12px; font-weight: 800; color: var(--blue-dark); }
.prizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.prizes span {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.give {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.ticket {
  position: relative;
  background: repeating-linear-gradient(-45deg, #ffffff, #ffffff 12px, #eef3ff 12px, #eef3ff 24px);
  border: 1px dashed #93c5fd;
  border-radius: 18px;
  padding: 18px 16px 16px;
}
.ticket:nth-child(odd) { border-color: #fda4af; background: repeating-linear-gradient(-45deg, #ffffff, #ffffff 12px, #fff1f4 12px, #fff1f4 24px); }
.ticket-n {
  position: absolute; top: 12px; right: 14px;
  font-family: Fraunces, serif;
  color: var(--red);
  font-weight: 800;
}
.ticket:nth-child(even) .ticket-n { color: var(--blue); }
.ticket img { max-height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.ticket h2 { margin: 10px 0 4px; font-size: 18px; }
.ticket p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

.foot {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

@media (min-width: 640px) {
  .rank-card {
    grid-template-columns: 64px 150px 1fr auto;
    grid-template-areas: "n logo copy cta";
  }
  .give { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .mast { flex-direction: column; align-items: stretch; }
  .topnav { justify-content: flex-start; }
  .rank-card { grid-template-columns: 40px 1fr auto; }
  .cta { min-width: 72px; height: 40px; }
}
