/* The HoLT World Cup Sweepstake — HoLT brand first (white canvas, chunky black
   type, hot pink #fd0d97, acid yellow #e5e045), NotLuck riding shotgun. */

:root {
  --holt-pink:   #fd0d97;
  --holt-pink-2: #ff91dc;
  --holt-yellow: #e5e045;
  --holt-black:  #0c0c0c;
  --holt-paper:  #ffffff;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--holt-paper);
  color: var(--holt-black);
  font-family: 'Red Hat Text', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap { width: min(1060px, 92vw); margin: 0 auto; }
.wrap.narrow { width: min(580px, 92vw); }
.centred, .actions.centred { text-align: center; }

/* header */
header { padding: 22px 0 14px; }
.headrow { display: flex; align-items: center; gap: 16px; }
.head-holt { height: 42px; }
.head-x { color: var(--holt-pink); font-weight: 800; font-size: 20px; }
.head-notluck { height: 15px; opacity: 0.85; }

/* yellow ticker ribbon */
.ticker { background: var(--holt-black); overflow: hidden; padding: 10px 0; }
.ticker-track {
  display: inline-block; white-space: nowrap;
  animation: ticker 22s linear infinite;
  font-family: 'Red Hat Mono', monospace; font-weight: 600;
  font-size: 13px; letter-spacing: 0.14em; color: var(--holt-yellow);
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stage { flex: 1; display: flex; align-items: center; padding: 64px 0 96px; }

h1, h2 {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 900; line-height: 0.95; letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--holt-black); /* token CSS assumes dark canvas; we're on white */
  margin: 0 0 28px;
}
h1 { font-size: clamp(52px, 9.5vw, 96px); }
h2 { font-size: clamp(36px, 6vw, 60px); }
.pinkdot { color: var(--holt-pink); }

.lede { font-size: 19px; line-height: 1.55; color: #3a3a3a; margin: 0 0 32px; }

/* scrolling flag wall under the headline */
.flagwall {
  white-space: nowrap; overflow: hidden;
  font-size: 34px; line-height: 1.3;
  margin: 0 0 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.flagwall span { display: inline-block; animation: ticker 60s linear infinite; }

/* forms */
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 22px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field span em { color: #8a8a8a; font-style: normal; font-weight: 400; }
.field input {
  width: 100%; padding: 15px 16px;
  background: #fff; color: var(--holt-black);
  border: 3px solid var(--holt-black); border-radius: 0;
  font: inherit; font-size: 16px;
}
.field input:focus { outline: none; border-color: var(--holt-pink); }

.btn {
  display: inline-block; padding: 16px 32px;
  background: var(--holt-pink); color: #fff;
  border: 3px solid var(--holt-black); border-radius: 0;
  box-shadow: 5px 5px 0 var(--holt-black);
  cursor: pointer;
  font-family: 'Red Hat Display', sans-serif; font-weight: 800; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--holt-black); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--holt-black); }
.btn.ghost { background: #fff; color: var(--holt-black); }
.btn:disabled { opacity: 0.5; cursor: wait; }

.error { color: #d40000; font-size: 14px; font-weight: 600; margin-top: 12px; }
.smallprint { font-size: 13px; color: #7a7a7a; line-height: 1.5; margin: 16px 0 24px; }

/* reveal */
.reveal-label {
  font-family: 'Red Hat Mono', monospace; font-weight: 600;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--holt-pink); margin: 0 0 8px;
}
.spinner { font-size: 120px; margin: 40px 0; min-height: 150px; }
#spin-flag { display: inline-block; }
.spinning #spin-flag { animation: flick 0.09s linear infinite; }
@keyframes flick { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-5px) rotate(2deg); } }

#card {
  width: min(430px, 86vw); height: auto;
  border: 3px solid var(--holt-black);
  box-shadow: 10px 10px 0 var(--holt-pink);
  margin: 8px 0 28px;
}
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* confetti */
.confetto {
  position: fixed; top: -20px; z-index: 50;
  width: 10px; height: 16px; pointer-events: none;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0.9; }
}

/* tracker */
.groups {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  margin: 36px 0;
}
.group { background: #fff; border: 3px solid var(--holt-black); padding: 16px; }
.group h3 {
  font-family: 'Red Hat Display', sans-serif; font-weight: 900; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--holt-yellow); display: inline-block; padding: 3px 8px;
  margin: 0 0 12px;
}
.team { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 15px; font-weight: 500; }
.team.out { opacity: 0.4; }
.team.out .tname { text-decoration: line-through; text-decoration-color: var(--holt-pink); text-decoration-thickness: 2px; }
.team .taken {
  margin-left: auto; font-family: 'Red Hat Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  background: var(--holt-pink); color: #fff; padding: 2px 6px;
}

/* ───── day strip — live tournament band on reveal + tracker ───── */
.daystrip { border-bottom: 3px solid var(--holt-black); padding: 26px 0 28px; }
.day-head {
  font-family: 'Red Hat Display', sans-serif; font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(22px, 4.5vw, 32px); margin: 0 0 16px;
  color: var(--holt-black); /* token CSS paints p white for the dark canvas */
}
.day-badge {
  display: inline-block; background: var(--holt-pink); color: #fff;
  padding: 1px 12px 3px; margin-right: 8px;
  box-shadow: 4px 4px 0 var(--holt-black);
}
.day-next {
  display: inline-block; background: var(--holt-yellow); color: var(--holt-black);
  border: 3px solid var(--holt-black); box-shadow: 5px 5px 0 var(--holt-black);
  padding: 12px 16px; margin: 0 0 20px;
  font-family: 'Red Hat Display', sans-serif; font-weight: 800;
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em;
}
.day-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.day-col h4 {
  font-family: 'Red Hat Mono', monospace; font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--holt-pink); margin: 0 0 8px;
}
.day-match { display: flex; align-items: center; gap: 9px; margin: 0 0 7px; font-size: 14px; font-weight: 600; color: var(--holt-black); }
.dm-score {
  background: var(--holt-black); color: #fff; padding: 1px 8px 2px;
  font-family: 'Red Hat Mono', monospace; font-weight: 700; font-size: 13px;
}
.dm-v { color: #9a9a9a; font-family: 'Red Hat Mono', monospace; font-size: 12px; }
.dm-ko { margin-left: auto; font-family: 'Red Hat Mono', monospace; font-weight: 700; font-size: 12px; }
.day-highlights { margin-top: 14px; border-top: 2px solid #ededed; padding-top: 12px; }
.day-highlights p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: #3a3a3a; }
.day-highlights p::before { content: '▸ '; color: var(--holt-pink); font-weight: 800; }

/* ───── tracker leaderboards ───── */
.hub { display: grid; gap: 28px; margin: 12px 0 48px; }
.hub-intro { margin-top: 8px; }
.hub-kicker {
  font-family: 'Red Hat Mono', monospace; font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--holt-pink); margin: 0 0 6px;
}
.hub-title {
  font-family: 'Red Hat Display', sans-serif; font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.95;
  font-size: clamp(32px, 5.5vw, 48px); margin: 0;
  color: var(--holt-black);
}

.board {
  background: #fff; border: 3px solid var(--holt-black);
  padding: 22px 20px 14px;
  box-shadow: 9px 9px 0 var(--acc, var(--holt-pink));
}
.acc-pink  { --acc: var(--holt-pink); }
.acc-yellow{ --acc: var(--holt-yellow); }
.acc-black { --acc: var(--holt-black); }
.acc-pink2 { --acc: var(--holt-pink-2); }
.board-head h3 {
  display: inline-block;
  font-family: 'Red Hat Display', sans-serif; font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(22px, 4.5vw, 30px); margin: 0 0 8px; padding: 0 6px 2px;
  background: linear-gradient(transparent 58%, var(--acc) 58%);
  color: var(--holt-black);
}
.acc-black .board-head h3 { background: none; padding: 0; border-bottom: 5px solid var(--holt-black); }
.board-head p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #5a5a5a; }

.brows { list-style: none; margin: 0; padding: 0; counter-reset: pos; }
.brow {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 2px solid #ededed;
  counter-increment: pos;
}
.brows > .brow:first-child { border-top: 0; }
.brow::before {
  content: counter(pos, decimal-leading-zero);
  font-family: 'Red Hat Mono', monospace; font-weight: 700; font-size: 11px;
  color: #b5b5b5; min-width: 22px;
}
.brow-flag { font-size: 25px; line-height: 1; }
.brow-main { flex: 1; min-width: 0; }
.brow-team {
  display: block;
  font-family: 'Red Hat Display', sans-serif; font-weight: 800;
  text-transform: uppercase; font-size: 15px; line-height: 1.2;
}
.brow-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Red Hat Mono', monospace; font-weight: 600; font-size: 10px;
  background: #f4f4f0; border: 1px solid var(--holt-black);
  padding: 1px 6px 2px; white-space: nowrap;
}
.chip i { font-style: normal; font-size: 9px; background: var(--holt-black); color: #fff; padding: 0 4px 1px; }
.chip--free { opacity: 0.55; border-style: dashed; }
.brow-sub { display: block; font-size: 12px; color: #6a6a6a; margin-top: 3px; line-height: 1.4; }
.brow-stat { text-align: right; font-family: 'Red Hat Mono', monospace; white-space: nowrap; }
.brow-stat b { display: block; font-size: 16px; font-weight: 800; }
.brow-stat i { font-style: normal; font-size: 11px; color: #8a8a8a; }
/* spoon leader gets the full yellow carpet */
.brow--lead { background: var(--holt-yellow); margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.brow--lead + .brow { border-top-color: transparent; }
.brow--lead .brow-stat i { color: #5a5a3a; }

.board-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.grid-title {
  font-family: 'Red Hat Display', sans-serif; font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(24px, 4.5vw, 32px); margin: 0;
  color: var(--holt-black);
}

@media (max-width: 680px) {
  .day-cols { grid-template-columns: 1fr; }
  .board-pair { grid-template-columns: 1fr; }
  .board { padding: 18px 14px 10px; box-shadow: 6px 6px 0 var(--acc, var(--holt-pink)); }
  .brow { gap: 8px; }
  .brow::before { min-width: 18px; }
  .day-next { font-size: 13px; padding: 10px 12px; }
  /* stop "CUP" orphaning on a second line */
  .day-badge { display: block; width: max-content; margin: 0 0 10px; }
}

footer { border-top: 3px solid var(--holt-black); padding: 22px 0; }
.footrow { display: flex; align-items: center; justify-content: center; gap: 14px; }
.foot-holt { height: 30px; }
.foot-note { font-size: 13px; color: #8a8a8a; }
.foot-notluck { height: 13px; opacity: 0.85; }
