/* $XBOX site — language pulled from xbox.com: black, #107C10, volt pills, Selawik. */
@font-face {
  font-family: Selawik;
  src: url("fonts/Selawik-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Selawik;
  src: url("fonts/Selawik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Selawik;
  src: url("fonts/Selawik-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Selawik;
  src: url("fonts/Selawik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --bg: #0a0a0a;
  --bg-2: #111;
  --card: #141414;
  --line: rgba(255, 255, 255, 0.12);
  --text: #fff;
  --muted: #b3b3b3;
  --dim: #8a8a8a;
  --green: #107c10;
  --green-deep: #0b5a0b;
  --volt: #9bf00b;
  --volt-2: #b6ff2e;
  --radius: 2px;
  --nav-h: 64px;
  --max: 1200px;
  --font: Selawik, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--black); color: var(--text); }
body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--volt); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--volt);
  color: #000;
  padding: 0.6rem 1rem;
  z-index: 10000;
}
.skip:focus { left: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; color: #fff; }
.nav-brand img { width: 28px; height: 28px; }
.nav-toggle {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
  margin-left: 1.5rem;
  font-size: 0.92rem;
}
.nav-links a {
  color: #ddd;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  text-decoration: none;
  border-bottom-color: var(--volt);
}
.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.nav-souv {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ccc;
  font-size: 0.78rem;
  text-decoration: none;
}
.nav-souv:hover { color: #fff; text-decoration: none; }
.nav-souv img { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-volt {
  background: var(--volt);
  color: #111;
}
.btn-volt:hover { background: var(--volt-2); color: #111; }
.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover { background: #159215; color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn .chev { font-size: 1.05em; line-height: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(calc(100svh - var(--nav-h)), 860px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  padding: 3.5rem 5vw 4rem;
  background:
    radial-gradient(80% 70% at 80% 45%, rgba(16, 124, 16, 0.28), transparent 60%),
    radial-gradient(50% 40% at 20% 80%, rgba(155, 240, 11, 0.07), transparent 55%),
    linear-gradient(180deg, #050505 0%, #0b0d0b 50%, #000 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("img/souvenir-swirl.png") right -8% center / 55% no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 36rem; }
.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--volt);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}
.hero-rule {
  width: 3.2rem;
  height: 6px;
  margin: 1.1rem 0 1.15rem;
  background: var(--volt);
}
.hero-lead {
  margin: 0 0 1.4rem;
  color: #e8e8e8;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.hero-sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 32rem;
}

.ca-box {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 0 1.4rem;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.45);
  max-width: 36rem;
}
.ca-box code {
  flex: 1;
  display: block;
  padding: 0.7rem 0.85rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.62rem, 1.5vw, 0.78rem);
  color: #d8d8d8;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.ca-box button {
  flex-shrink: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: #fff;
  padding: 0 1rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.ca-box button:hover { background: var(--green); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-copy, .hero-visual { min-width: 0; }
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  padding: 1.75rem 0.75rem;
  box-sizing: border-box;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,124,16,0.5), rgba(155,240,11,0.1) 45%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.hero-visual img {
  position: relative;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(520px, 58svh);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.5)) drop-shadow(0 0 28px rgba(16,124,16,0.28));
}

/* ---------- Shared sections ---------- */
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }
section { position: relative; scroll-margin-top: calc(var(--nav-h) + 8px); }
#home { scroll-margin-top: 0; }
.section-head { margin-bottom: 1.75rem; }
.section-head h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}
.lead { margin: 0.55rem 0 0; color: var(--muted); max-width: 40rem; }

/* ---------- Prizes ---------- */
.prizes {
  padding: 4.5rem 0 5rem;
  background: #0c0c0c;
  border-top: 1px solid var(--line);
}
.prize-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.prize-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.prize-card:hover {
  text-decoration: none;
  color: inherit;
  border-color: var(--volt);
  transform: translateY(-2px);
}
.prize-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}
.prize-art img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.prize-body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.prize-body--slim {
  padding: 0.7rem 1rem;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--dim);
}
.prize-body--slim strong { color: #fff; }
.prize-kicker {
  color: var(--volt);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.prize-body h3 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em; }
.prize-blurb { margin: 0; color: var(--muted); font-size: 0.92rem; }
.prize-facts {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1.05rem;
  color: #d2d2d2;
  font-size: 0.86rem;
}
.prize-facts li { margin: 0.2rem 0; }
.prize-meta {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: baseline;
  font-size: 0.82rem;
  color: var(--dim);
}
.prize-meta strong { color: #fff; font-weight: 700; }
.prize-more {
  color: var(--volt);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Live draw / winners ---------- */
.draw, .winners, .how {
  padding: 4.25rem 0;
  border-top: 1px solid var(--line);
}
.draw { background: #080808; }
.winners { background: #0c0c0c; }
.how { background: #080808; }

.draw-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.35rem 1.4rem 1.5rem;
}
.panel h3 { margin: 0 0 0.75rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; }
.meter-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.meter {
  height: 10px;
  background: #1b1b1b;
  border: 1px solid var(--line);
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--volt));
  transition: width 0.6s ease;
}
.draw-status { margin: 0.85rem 0 0; color: #ddd; }
.draw-prize { display: flex; gap: 1rem; align-items: center; }
.draw-prize img {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  background: #000;
}
.draw-prize p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.9rem; }
.live-msg { color: var(--muted); margin: 0; }
.ticket-live { margin: 0.8rem 0 0; color: #ccc; font-size: 0.9rem; }

.winners-list { display: grid; gap: 0.7rem; }
.winner-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.winner-row .addr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8rem; color: #ddd; word-break: break-all; }
.winner-row .when { color: var(--dim); font-size: 0.8rem; }

/* ---------- How ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.2rem 1.15rem 1.3rem;
  border-top: 3px solid var(--green);
}
.step-num { color: var(--volt); font-weight: 700; letter-spacing: 0.12em; font-size: 0.78rem; }
.step h3 { margin: 0.45rem 0 0.4rem; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.how-source, .how-discord { margin: 1.4rem 0 0; color: var(--dim); font-size: 0.9rem; }
.how-discord a { display: inline-flex; align-items: center; gap: 0.45rem; color: #fff; }
.how-discord svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: #000;
}
.footer-inner { display: grid; gap: 1.1rem; }
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.2rem;
}
.footer-brand img.word { height: 28px; width: auto; }
.footer-brand img.mark { height: 28px; width: 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer nav a { color: #ccc; font-size: 0.9rem; }
.disclaimer { margin: 0.4rem 0 0; color: var(--dim); font-size: 0.8rem; max-width: 52rem; }

/* ---------- Toast + modal ---------- */
.toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--volt);
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s, opacity 0.25s;
}
.toast.is-on { transform: translateX(-50%) translateY(0); opacity: 1; }

.info-modal[hidden] { display: none; }
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0,0,0,0.72);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.info-sheet {
  position: relative;
  width: min(720px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: #121412;
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.6rem;
}
.info-sheet img.sheet-art {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(420px, 55vh);
  object-fit: contain;
  object-position: center;
  margin: 0 auto 1rem;
}
.sheet-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.info-sheet h2 { margin: 0 0 0.4rem; font-size: 1.5rem; }
.info-sheet .sheet-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem 0 0.8rem;
    background: #000;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 0.7rem 1.25rem; border-bottom: 0; }
  .nav-souv span { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 2.2rem 1.25rem 2.6rem;
  }
  .hero-visual { order: -1; padding: 0.75rem 0 0.4rem; }
  .hero-visual img { max-width: 100%; max-height: min(320px, 46svh); width: auto; height: auto; }
  .draw-grid, .steps { grid-template-columns: 1fr; }
  .prize-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .draw-prize { flex-direction: column; align-items: flex-start; }
  .draw-prize img { width: min(100%, 260px); height: auto; aspect-ratio: 1 / 1; }
  .share-grid { grid-template-columns: 1fr; }
  .gif-card--wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .prize-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prize-card, .meter > span, .toast { transition: none; }
}

/* ---------- Promo banner strip ---------- */
.promo-strip {
  background: #000;
  border-top: 1px solid var(--line);
  padding: 0;
}
.promo-strip-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  background: #050805;
}
.promo-strip img {
  display: block;
  width: 100%;
  max-width: 1800px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* ---------- Share $XBOX / pfp ---------- */
.share {
  padding: 4.5rem 0 5rem;
  background: #0c0c0c;
  border-top: 1px solid var(--line);
}
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: start;
}
.gif-card--wide { grid-column: 1 / -1; }
.gif-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0 0 1rem;
}
.gif-art {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}
.gif-art--wide { aspect-ratio: 3 / 1; }
.gif-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.gif-card .gif-still.is-swapped { opacity: 0; pointer-events: none; }
.gif-card .gif-art img.gif-anim[hidden] { display: none; }
.gif-card .gif-anim { z-index: 1; }
.gif-pfp-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.gif-pfp {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
  flex-shrink: 0;
}
.gif-caption {
  margin: 0.85rem 1rem 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.gif-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem;
}
.gif-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0 0.85rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line);
  color: #fff;
}
.gif-download { background: var(--volt); color: #111; border-color: var(--volt); }
.gif-download:hover, .gif-download:focus-visible { background: #c8ff4a; color: #111; text-decoration: none; }
.gif-share { background: transparent; }
.gif-share:hover, .gif-share:focus-visible { border-color: #fff; color: #fff; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .gif-card .gif-still, .gif-card .gif-anim { transition: none; }
}

/* share mobile overrides (must follow the 2-col share-grid rule) */
@media (max-width: 900px) {
  .share-grid { grid-template-columns: 1fr; }
  .gif-card--wide { grid-column: auto; }
}
