/* =====================================================================
   Win a Feature — Official Rules. Loaded after legal.css; only this
   page uses it. Calm, editorial dark: solid surfaces, 1px borders, one
   accent (orange). No gradient borders, glows, stickers or looping motion.
   The only motion is a quick fill of the judging bars when they scroll in;
   prefers-reduced-motion switches it off.
   ===================================================================== */

.rules {
  --orange: #fc7208; --lime: #b0ea42; --peach: #fcd5a3; --coral: #fd6f65;
  --bg: #0b0b0a; --panel: #141412; --panel2: #1c1b18; --line: #2a2824; --line2: #3a3732;
  --text: #f7f5f0; --body: #d9d4ca; --muted: #a39d93; --dim: #6f6a62; --ink: #0b0b0a;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 30px -18px rgba(0, 0, 0, .8);
  padding: 20px 16px 56px; overflow-x: clip;
}
.rules main { max-width: 880px; }
.rules a { color: var(--orange); text-underline-offset: 3px; }
.rules a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.rules svg { width: 1em; height: 1em; }
.eyebrow, .kicker { font-size: 11px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; }

/* ---------- top bar ---------- */
.rules .top { margin-bottom: 8px; }
.rules .wm { transform: none; }
.rules .top a.back { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 20px 0 0; }

/* the hero card ("ticket"): flat panel, 1px border */
.ticket { position: relative; margin: 0; padding: 24px 20px 20px; border-radius: 20px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sticker { position: absolute; top: 22px; right: 20px; padding: 6px 10px; border-radius: 999px; line-height: 1;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line2); }

.t-top { display: flex; align-items: center; gap: 12px; }
@media (max-width: 559px) { .sticker { display: none; } }   /* the h1 already says Official Rules */
.trophy { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; font-size: 19px; border-radius: 50%;
  background: var(--panel2); border: 1px solid var(--line); }
.kicker { margin: 0; color: var(--orange); }

.rules h1 { margin: 22px 0 0; font-family: var(--display); font-weight: 400; line-height: .95; color: var(--text); }
.h-big { display: block; font-size: clamp(42px, 13vw, 96px); text-transform: uppercase; letter-spacing: -1px; max-width: 7.5ch; }
.h-sub { display: block; margin-top: 12px; font-size: clamp(19px, 5vw, 26px); line-height: 1.1; color: var(--orange); letter-spacing: -.2px; }
.h-sub .dash { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ticket .updated { margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .3px; }

.t-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; counter-reset: s; }
.t-steps li { position: relative; margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 13px; border-radius: 14px;
  background: var(--panel2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text); }
.t-steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 14px; right: 12px;
  font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-steps i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: var(--orange);
  background: var(--bg); border: 1px solid var(--line); }

/* divider + handles/hashtags + actions */
.t-stub { position: relative; margin: 20px -20px 0; padding: 18px 20px 0; border-top: 1px solid var(--line); }
.t-stub::before, .t-stub::after { content: none; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { margin: 0; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; color: var(--text);
  background: var(--panel2); border: 1px solid var(--line); white-space: nowrap; }
.tags li.ht { color: var(--orange); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 800; letter-spacing: .2px; text-decoration: none;
  transition: translate .2s var(--ease), background .2s, border-color .2s; }
.rules a.btn.go { color: var(--ink); background: var(--orange); border: 1px solid var(--orange); }
.rules a.btn.ghost { color: var(--text); background: transparent; border: 1px solid var(--line2); }
.btn span { transition: transform .2s var(--ease); }
@media (hover: hover) {
  .rules a.btn.go:hover { translate: 0 -1px; background: #ff8126; }
  .rules a.btn:hover span { transform: translateX(2px); }
  .rules a.btn.ghost:hover { border-color: var(--muted); background: var(--panel2); }
  .rules a.btn.ghost:hover span { transform: translateY(2px); }
}
.btn:active { scale: .98; }

/* ---------- NO PURCHASE NECESSARY + Instagram release ---------- */
.rules .box.npn { position: relative; margin: 16px 0 0; padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--panel); box-shadow: var(--shadow); }
.npn p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body); }
.npn p + p { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.npn p:first-of-type b { display: block; margin: 0 0 8px; padding-right: 96px; font-family: var(--display); font-weight: 400;
  font-size: clamp(20px, 5.6vw, 26px); line-height: 1.1; letter-spacing: -.2px; color: var(--text); }
.npn-stamp { position: absolute; top: 18px; right: 18px; padding: 7px 10px 6px; border-radius: 12px; text-align: center;
  font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; line-height: 1.2; color: var(--lime);
  border: 1px solid rgba(176, 234, 66, .4); background: rgba(176, 234, 66, .06); }
.npn-stamp b { display: block; font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: .5px; color: var(--lime); }

/* ---------- sticky section chips ---------- */
.toc { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; margin: 22px -16px 0; padding: 10px 16px;
  overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 16px;
  background: rgba(11, 11, 10, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 22px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 22px), transparent); }
.toc::-webkit-scrollbar { display: none; }
.rules .toc a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 6px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap;
  background: var(--panel); border: 1px solid var(--line); transition: background .15s, border-color .15s, color .15s; }
.toc a b { min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); background: var(--panel2); }
.rules .toc a:hover { border-color: var(--line2); color: var(--text); }
.rules .toc a[aria-current] { color: var(--text); border-color: var(--orange); background: var(--panel2); }
.toc a[aria-current] b { background: var(--orange); color: var(--ink); }

/* ---------- section cards ---------- */
.sections { display: grid; gap: 14px; margin-top: 22px; }
.card { position: relative; padding: 20px 20px 18px; border-radius: 18px; background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 70px; min-width: 0; color: var(--body); }
.card > :last-child { margin-bottom: 0; }
.rules .card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 0; border: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(20px, 5.4vw, 24px); line-height: 1.15; letter-spacing: -.2px; color: var(--text); }
.card h2 .n { flex: 0 0 auto; min-width: 38px; height: 38px; padding: 0 8px; display: grid; place-items: center; border-radius: 11px;
  font-family: var(--ui, Inter, system-ui, sans-serif); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .2px;
  background: var(--panel2); color: var(--orange); border: 1px solid var(--line); }
.card p { margin: 0 0 12px; }
.card .lead { font-weight: 700; color: var(--text); margin-bottom: 8px; }
.card ul, .card ol { margin: 0 0 12px; }
.card b.hl { color: var(--text); text-decoration: underline; text-decoration-color: rgba(252, 114, 8, .7); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.note { padding: 13px 15px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; }
.note.warn { border-color: rgba(252, 114, 8, .45); }

/* check / cross lists */
.checks, .dots { list-style: none; padding: 0; }
.checks > li, .dots > li { position: relative; margin: 0; padding: 11px 0 11px 36px; border-top: 1px solid var(--line); }
.checks > li:first-child, .dots > li:first-child { border-top: 0; padding-top: 4px; }
.checks > li::before { content: ""; position: absolute; left: 0; top: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23b0ea42' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid var(--line2); }
.checks > li:first-child::before { top: 5px; }
.checks > li.no::before { background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 7 10 10M17 7 7 17' fill='none' stroke='%23fd6f65' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.dots > li::before { content: ""; position: absolute; left: 8px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.dots > li:first-child::before { top: 14px; }
.xs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 2px; }
.xs li { margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--body); }

/* 1. sponsor */
.sponsor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.sponsor .sep { color: var(--muted); }
.rules a.mail { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  color: var(--text); text-decoration: none; background: var(--panel2); border: 1px solid var(--line2); word-break: break-all; transition: border-color .15s; }
.rules a.mail:hover { border-color: var(--orange); }
.mail svg { flex: 0 0 auto; color: var(--orange); }

/* 3. how to enter: numbered tiles */
.steps { list-style: none; padding: 0; display: grid; gap: 10px; counter-reset: st; }
.steps li { position: relative; margin: 0; display: flex; gap: 14px; align-items: flex-start; padding: 15px 15px 15px 14px; border-radius: 14px;
  background: var(--panel2); border: 1px solid var(--line); counter-increment: st; }
.steps li::after { content: "0" counter(st); position: absolute; top: 15px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: 1px; line-height: 1;
  color: var(--muted); font-variant-numeric: tabular-nums; }
.steps li > span { padding-right: 26px; min-width: 0; }
.steps i { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px;
  color: var(--orange); background: var(--bg); border: 1px solid var(--line); }
.pill { display: inline-block; padding: 0 8px; border-radius: 999px; font-weight: 700; font-family: inherit; font-size: .93em;
  color: var(--text); background: #26241f; border: 1px solid var(--line2); white-space: nowrap; }
.rules code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.rules code.pill.ht { color: var(--orange); background: rgba(252, 114, 8, .08); border: 1px solid rgba(252, 114, 8, .35); font-family: inherit; }

/* 5. facts */
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.facts > span { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; align-items: center; padding: 10px 16px 10px 12px; border-radius: 14px;
  background: var(--panel2); border: 1px solid var(--line); }
.facts svg { grid-row: span 2; width: 22px; height: 22px; color: var(--orange); }
.facts small { font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.facts b { font-size: 15.5px; font-weight: 800; line-height: 1.25; color: var(--text); }

/* 6. judging weights */
.weights { list-style: none; padding: 0; display: grid; gap: 16px; margin: 8px 0 18px; }
.weights li { margin: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px; row-gap: 8px; }
.weights .lbl { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--text); }
.weights .lbl::first-letter { text-transform: uppercase; }
.weights .pct { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.par { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.weights .bar { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; }
.weights .fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%); background: var(--orange); border-radius: 999px;
  transform-origin: left; transition: transform .6s var(--ease); }
.weights li:nth-child(2) .fill { transition-delay: .06s; } .weights li:nth-child(3) .fill { transition-delay: .12s; } .weights li:nth-child(4) .fill { transition-delay: .18s; }
.js .weights:not(.in) .fill { transform: scaleX(0); }

/* 7. the prize */
.card.prize { border-color: rgba(252, 114, 8, .5); }
.rules .card.prize h2 { padding-right: 56px; }
.prize h2 .n { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.p-trophy { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; display: grid; place-items: center; font-size: 19px; border-radius: 50%;
  background: var(--panel2); border: 1px solid var(--line); }
.p-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.p-list li { position: relative; margin: 0; padding: 12px 15px 12px 40px; border-radius: 14px; font-size: 15px; line-height: 1.55; color: var(--body);
  background: var(--panel2); border: 1px solid var(--line); }
.p-list li::before { content: "★"; position: absolute; left: 15px; top: 12px; color: var(--orange); font-size: 14px; }
.p-list li:first-child { color: var(--text); font-size: 15.5px; }
.p-list b { color: var(--text); font-weight: 800; white-space: nowrap; }

/* 8. notification */
.notify { list-style: none; padding: 0; display: grid; gap: 12px; }
.notify > li { margin: 0; display: flex; gap: 14px; align-items: flex-start; }
.notify > li > span { min-width: 0; padding-top: 6px; }
.notify > li > i { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 17px;
  color: var(--orange); background: var(--panel2); border: 1px solid var(--line); }
.confirm { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.confirm li { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--text); background: var(--panel2); border: 1px solid var(--line); }
.confirm li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--muted); flex: 0 0 auto; }
.notify > li.scam { margin-top: 6px; padding: 16px 16px; border-radius: 14px; color: var(--body);
  background: rgba(253, 111, 101, .06); border: 1px solid rgba(253, 111, 101, .4); }
.notify > li.scam > i { width: 40px; height: 40px; font-size: 22px; color: var(--coral); background: rgba(253, 111, 101, .1); border-color: rgba(253, 111, 101, .3); }
.notify > li.scam > span { padding-top: 0; }
.scam-tag { display: inline-block; margin: 0 0 8px; padding: 4px 9px; border-radius: 6px; font-size: 10.5px; font-weight: 800; line-height: 1;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink); background: var(--coral); }
.scam-tag + b { display: block; color: var(--text); }

/* ---------- outro CTA ---------- */
.outro { position: relative; margin: 28px 0 0; padding: 28px 20px; border-radius: 20px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.faces { display: inline-flex; margin-bottom: 14px; }
.faces img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--panel); background: var(--panel2); }
.faces img + img { margin-left: -12px; }
.o-big { margin: 0 0 20px; font-family: var(--display); font-size: clamp(32px, 9.5vw, 52px); line-height: 1; letter-spacing: -.5px; text-transform: uppercase; color: var(--text); }
.o-big span { display: inline-block; }
.o-hi { color: var(--orange); }

/* ---------- footer ---------- */
.rules footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  font-weight: 600; color: var(--muted); }
.rules footer a { margin: 0; padding: 6px 13px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 13.5px;
  background: var(--panel); border: 1px solid var(--line); }
.rules footer a:hover { border-color: var(--line2); color: var(--text); }
.rules footer a:nth-child(3) { color: var(--text); border-color: var(--line2); margin-right: 6px; }

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .rules { padding: 24px 24px 64px; }
  .toc { margin-inline: -24px; padding-inline: 24px; }
  .ticket { padding: 30px 30px 26px; }
  .sticker { top: 30px; right: 30px; }
  .t-top { padding-right: 130px; }
  .t-stub { margin-inline: -30px; padding-inline: 30px; }
  .t-steps { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 24px 26px 22px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .npn p { font-size: 15.5px; }
  .rules .box.npn { padding: 24px 128px 22px 26px; }
  .npn p:first-of-type b { padding-right: 0; }
  .npn-stamp { top: 24px; right: 24px; }
  .p-trophy { top: 24px; right: 26px; }
}
@media (min-width: 860px) {
  .sections { grid-template-columns: 1fr 1fr; gap: 16px; }
  .sections > .card { grid-column: 1 / -1; }
  .sections > #s12, .sections > #s13 { grid-column: auto; }
  .card { padding: 28px 32px 26px; }
  .p-trophy { top: 28px; right: 32px; }
  .checks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .checks > li:nth-child(2) { border-top: 0; padding-top: 4px; }
  .checks > li:nth-child(2)::before { top: 5px; }
  .dots { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .dots > li:nth-child(2) { border-top: 0; padding-top: 4px; }
  .dots > li:nth-child(2)::before { top: 14px; }
  .sponsor { font-size: 18px; }
  .hero { padding-top: 28px; }
  .ticket { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 36px; padding: 38px 38px 28px; }
  .sticker { top: 38px; right: 38px; }
  .h-big { font-size: 76px; }
  .ticket > .t-top, .ticket > h1, .ticket > .updated { grid-column: 1; }
  .t-steps { grid-column: 2; grid-row: 1 / span 3; align-self: end; grid-template-columns: 1fr 1fr; margin: 0; }
  .t-stub { grid-column: 1 / -1; margin: 26px -38px 0; padding: 22px 38px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .t-stub .ctas { margin-top: 0; flex: 0 0 auto; }
  .outro { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; text-align: left; padding: 28px 32px; }
  .outro .faces, .o-big { margin: 0; }
}

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .rules *, .rules *::before, .rules *::after { animation: none !important; transition: none !important; }
  .js .weights:not(.in) .fill { transform: none; }
  .toc { scroll-behavior: auto; }
}
