/* PlaySweepstakes.com design system.
   Self-contained: no CSS framework, no webfont, no external request. */

:root {
  --brand-500: #6d3ff5;
  --brand-600: #5a2fe0;
  --brand-700: #4a24bd;
  --brand-050: #f3efff;
  --win-500: #0f9d58;
  --win-600: #0b7f46;
  --win-050: #e8f8f0;
  --hot-500: #f2594b;
  --hot-050: #fff0ee;
  --gold-500: #f5a623;
  --gold-050: #fff6e6;

  --ink-900: #14121c;
  --ink-700: #38344a;
  --ink-500: #625d78;
  --ink-300: #9b96ad;
  --line: #e6e3ef;
  --surface: #ffffff;
  --surface-2: #faf9fd;
  --canvas: #f4f2f9;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 18, 28, .06), 0 2px 8px rgba(20, 18, 28, .04);
  --shadow: 0 2px 6px rgba(20, 18, 28, .07), 0 12px 28px rgba(20, 18, 28, .07);
  --shadow-lg: 0 8px 20px rgba(20, 18, 28, .1), 0 24px 56px rgba(20, 18, 28, .12);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1080px;
  --wrap-narrow: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-500: #9a7bff;
    --brand-600: #8a66ff;
    --brand-700: #7a55f5;
    --brand-050: #241c3d;
    --win-500: #3ddc97;
    --win-600: #2fc285;
    --win-050: #12301f;
    --hot-500: #ff7a6d;
    --hot-050: #35201e;
    --gold-500: #ffc45c;
    --gold-050: #352a16;

    --ink-900: #f2f0f8;
    --ink-700: #c9c5da;
    --ink-500: #9a95ad;
    --ink-300: #6c6781;
    --line: #2b2740;
    --surface: #17152233;
    --surface-2: #1b182a;
    --canvas: #100e18;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 2px 6px rgba(0, 0, 0, .45), 0 12px 28px rgba(0, 0, 0, .4);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .45);
  }
  :root { --surface: #1a1727; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.018em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.85rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand-600); text-decoration-color: color-mix(in srgb, var(--brand-600) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--brand-700); text-decoration-color: currentColor; }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
small { font-size: .84rem; }

:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.1rem; }
.wrap--narrow { max-width: var(--wrap-narrow); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.muted { color: var(--ink-500); }
.tiny { font-size: .82rem; line-height: 1.55; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; color: var(--ink-900); text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-500), var(--hot-500));
  font-size: .95rem;
}
.brand:hover { color: var(--ink-900); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a {
  color: var(--ink-700); text-decoration: none; font-size: .89rem; font-weight: 600;
  padding: .4rem .6rem; border-radius: 999px;
}
.nav a:hover { color: var(--ink-900); background: var(--surface-2); }
.nav a.is-cta {
  background: var(--brand-600); color: #fff; padding-inline: .95rem;
  box-shadow: var(--shadow-sm);
}
.nav a.is-cta:hover { background: var(--brand-700); color: #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; line-height: 1.2;
  padding: .72rem 1.2rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-700); color: #fff; box-shadow: var(--shadow); }
.btn--win { background: var(--win-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--win:hover { background: var(--win-600); color: #fff; box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink-700); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink-900); }
.btn--lg { padding: .95rem 1.6rem; font-size: 1.05rem; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn[disabled]:active { transform: none; }

/* ---------- cards & surfaces ---------- */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card__body { padding: 1.25rem; }
.card__head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.card__foot { padding: .9rem 1.25rem; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--radius-lg); margin-block: 1.4rem;
  background:
    radial-gradient(1100px 380px at 12% -12%, rgba(255,255,255,.26), transparent 60%),
    linear-gradient(135deg, var(--brand-700), var(--brand-500) 48%, var(--hot-500));
  box-shadow: var(--shadow-lg);
}
.hero__inner { padding: clamp(1.8rem, 1.2rem + 3.4vw, 3.4rem); }
.hero h1 { color: #fff; margin-bottom: .45rem; text-wrap: balance; }
.hero p { color: rgba(255,255,255,.92); max-width: 56ch; }
.hero .btn--win { box-shadow: 0 6px 22px rgba(0,0,0,.24); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .76rem; font-weight: 800; letter-spacing: .085em; text-transform: uppercase;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28);
  padding: .32rem .75rem; border-radius: 999px; margin-bottom: .9rem;
}

/* ---------- badges & pills ---------- */

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .74rem; font-weight: 750; letter-spacing: .01em;
  padding: .24rem .6rem; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-700); border: 1px solid var(--line);
}
.badge--win { background: var(--win-050); color: var(--win-600); border-color: color-mix(in srgb, var(--win-500) 28%, transparent); }
.badge--hot { background: var(--hot-050); color: var(--hot-500); border-color: color-mix(in srgb, var(--hot-500) 28%, transparent); }
.badge--gold { background: var(--gold-050); color: #8a5d00; border-color: color-mix(in srgb, var(--gold-500) 34%, transparent); }
@media (prefers-color-scheme: dark) { .badge--gold { color: var(--gold-500); } }
.badge--brand { background: var(--brand-050); color: var(--brand-600); border-color: color-mix(in srgb, var(--brand-500) 28%, transparent); }

/* trust strip under the hero */
.trust { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.trust span {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 650; color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: .34rem .72rem; border-radius: 999px;
}

/* ---------- giveaway grid ---------- */

.section-head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin: 2.2rem 0 .35rem; }
.section-head h2 { margin: 0; }
.section-head .muted { margin: 0; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); margin-top: 1.25rem; }

.sweep {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease;
}
.sweep:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand-500) 35%, var(--line)); }
.sweep__top { height: 5px; background: linear-gradient(90deg, var(--brand-500), var(--hot-500)); }
.sweep__body { padding: 1.05rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.sweep__title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0; }
.sweep__title a { color: var(--ink-900); text-decoration: none; }
.sweep__title a:hover { color: var(--brand-600); }
.sweep__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .5rem; }
.sweep__date { font-size: .78rem; color: var(--ink-300); }

/* ---------- prize tier ladder ---------- */

.ladder { border: 1px solid color-mix(in srgb, var(--win-500) 30%, var(--line)); background: var(--win-050); border-radius: var(--radius); padding: 1.05rem 1.15rem; }
.ladder__title { font-size: .95rem; font-weight: 800; margin: 0 0 .75rem; display: flex; align-items: center; gap: .45rem; }
.ladder__row { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px dashed color-mix(in srgb, var(--win-500) 26%, transparent); }
.ladder__row:first-of-type { border-top: 0; }
.ladder__when { font-variant-numeric: tabular-nums; font-weight: 750; font-size: .86rem; min-width: 5.5rem; color: var(--ink-700); }
.ladder__what { font-size: .9rem; flex: 1; }
.ladder__note { margin: .75rem 0 0; }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: .35rem; }
.field > label, .label { font-size: .85rem; font-weight: 700; color: var(--ink-700); }
.input, .select {
  font: inherit; color: var(--ink-900); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .65rem .8rem; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent);
}
.input:disabled, .select:disabled { background: var(--surface-2); color: var(--ink-300); cursor: not-allowed; }
.hint { font-size: .79rem; color: var(--ink-500); }
.row-2 { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .89rem; line-height: 1.5; }
.check input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--brand-600); }
.check--boxed { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem .95rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- notices ---------- */

.notice { border-radius: var(--radius); padding: 1rem 1.15rem; border: 1px solid var(--line); background: var(--surface-2); }
.notice h2, .notice h3 { margin-top: 0; }
.notice--warn { background: var(--gold-050); border-color: color-mix(in srgb, var(--gold-500) 42%, transparent); }
.notice--error { background: var(--hot-050); border-color: color-mix(in srgb, var(--hot-500) 40%, transparent); }
.notice--win { background: var(--win-050); border-color: color-mix(in srgb, var(--win-500) 34%, transparent); }
.notice--rules {
  background: var(--surface-2); border-left: 3px solid var(--ink-300);
  font-size: .81rem; line-height: 1.6; color: var(--ink-700);
}
.is-hidden { display: none; }

.banner-nopurchase {
  background: var(--ink-900); color: #fff; border-radius: var(--radius);
  padding: 1rem 1.2rem; text-align: center; font-weight: 750; letter-spacing: .012em;
  line-height: 1.5;
}
@media (prefers-color-scheme: dark) { .banner-nopurchase { background: #000; border: 1px solid var(--line); } }

/* ---------- legal documents ---------- */

.doc { font-size: .945rem; }
.doc h2 { font-size: 1.02rem; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; margin-top: 2.1rem; color: var(--ink-900); }
.doc h2:first-of-type { margin-top: 1.4rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .45rem; }

.table-wrap { overflow-x: auto; margin: 1.1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
th { font-weight: 750; color: var(--ink-700); background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tr.is-floor { background: var(--win-050); }

/* ---------- footer ---------- */

.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.site-footer__inner { padding-block: 1.8rem 2.2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; justify-content: center; margin-bottom: .9rem; }
.footer-nav a { font-size: .87rem; font-weight: 600; color: var(--ink-700); text-decoration: none; }
.footer-nav a:hover { color: var(--brand-600); }
.site-footer p { text-align: center; margin: 0 auto; max-width: 62ch; }

/* ---------- misc ---------- */

.verify-key { font-family: var(--mono); font-size: .78rem; word-break: break-all; color: var(--ink-700); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .65rem; display: block; margin-top: .25rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; font-size: .9rem; }
.kv dt { font-weight: 700; color: var(--ink-700); }
.kv dd { margin: 0; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: .1rem .5rem; } .kv dd { margin-bottom: .55rem; } }
