/* Hoopss Giveaway Tracker: one stylesheet for every page.
   Look: a printed game program. Paper, ink, one hardwood-orange accent, hard edges. */

:root {
  --paper: #f3ede2;
  --paper-2: #ebe3d4;
  --card: #fffdf8;
  --ink: #17140f;
  --ink-2: #4a443a;
  --muted: #7b7366;
  --line: #17140f;
  --hair: #d6ccba;
  --accent: #e2561b;
  --accent-ink: #fff;
  --good: #1f7a4a;
  --good-bg: #dcefe2;
  --warn: #a86400;
  --warn-bg: #f7e6c4;
  --open: #2557a7;
  --open-bg: #dce6f6;
  --off: #8a8376;
  --off-bg: #e7e1d6;
  --shadow: 4px 4px 0 var(--ink);
  --radius: 4px;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16130f; --paper-2: #1e1a15; --card: #211d17; --ink: #f1eadc; --ink-2: #cfc6b5; --muted: #998f7e;
    --line: #f1eadc; --hair: #3a342b; --accent: #f26a2e; --good: #5fd08f; --good-bg: #183324; --warn: #f0b04f;
    --warn-bg: #3a2c14; --open: #8fb4f5; --open-bg: #1b2740; --off: #8f8778; --off-bg: #2a251e;
    --shadow: 4px 4px 0 #000; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #16130f; --paper-2: #1e1a15; --card: #211d17; --ink: #f1eadc; --ink-2: #cfc6b5; --muted: #998f7e;
  --line: #f1eadc; --hair: #3a342b; --accent: #f26a2e; --good: #5fd08f; --good-bg: #183324; --warn: #f0b04f;
  --warn-bg: #3a2c14; --open: #8fb4f5; --open-bg: #1b2740; --off: #8f8778; --off-bg: #2a251e;
  --shadow: 4px 4px 0 #000; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body);
  background-image: radial-gradient(var(--hair) 0.6px, transparent 0.6px); background-size: 14px 14px;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 82px); font-weight: 800; }
h2 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 7px 12px; border-radius: var(--radius); }
.nav-links a:hover { background: var(--paper-2); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.theme-btn { border: 2px solid var(--line); background: var(--card); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; display: grid; place-items: center; }

/* ---------- shared bits ---------- */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--mono); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before, .kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 56ch; margin-top: 18px; }
.section-sub { color: var(--ink-2); max-width: 60ch; margin-top: 12px; font-size: 17px; }
section { padding: 72px 0; }
section + section { border-top: 2px solid var(--line); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 2px solid var(--line);
  border-radius: var(--radius); font-weight: 700; text-decoration: none; cursor: pointer; font-size: 16px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 0; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); width: fit-content; max-width: 100%; }
.hero-facts li { padding: 12px 18px; font-size: 14px; color: var(--ink-2); }
.hero-facts li + li { border-left: 2px solid var(--line); }
.hero-facts b { display: block; font: 700 24px/1.1 var(--mono); color: var(--ink); letter-spacing: -0.03em; }
.court { position: absolute; right: -180px; top: -120px; width: 620px; opacity: .09; pointer-events: none; color: var(--ink); }

/* the "ticket" showing the latest giveaway */
.ticket { position: relative; transform: rotate(1.2deg); }
.ticket-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 2px dashed var(--line); font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ticket-top .live { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); }
.ticket-top .live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.ticket-body { padding: 18px; }
.ticket-body q { display: block; font: 600 19px/1.35 var(--display); letter-spacing: -0.01em; quotes: "“" "”"; }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--line); align-items: end; }
.ticket-row .prize { font: 700 30px/1 var(--mono); letter-spacing: -0.04em; }
.ticket-stub { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px dashed var(--line); }
.ticket-stub div { padding: 10px 14px; font-size: 12px; color: var(--muted); }
.ticket-stub div + div { border-left: 2px dashed var(--line); }
.ticket-stub b { display: block; font: 700 16px/1.2 var(--mono); color: var(--ink); }
.ticket-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- big numbers ---------- */
.board { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--line); border-radius: var(--radius); background: var(--ink); gap: 2px; overflow: hidden; box-shadow: var(--shadow); }
.board > div { background: var(--card); padding: 22px 20px; }
.board .label { font: 700 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.board .value { font: 700 clamp(30px, 4vw, 44px)/1.05 var(--mono); letter-spacing: -0.05em; margin-top: 10px; }
.board .sub { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.board .hot .value { color: var(--accent); }
.board .good .value { color: var(--good); }
.gap-bar { margin-top: 28px; }
.gap-bar .track { display: flex; height: 26px; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.gap-bar .track span { display: block; height: 100%; }
.gap-bar .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.gap-bar .legend i { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); margin-right: 6px; vertical-align: -1px; }

/* ---------- accounts ---------- */
.acct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.acct { padding: 0; display: flex; flex-direction: column; }
.acct-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; border-bottom: 2px solid var(--line); }
.acct-av { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font: 800 18px/1 var(--display); color: #fff; flex: none; }
.acct-head h3 { font-size: 21px; }
.acct-head .was { font-size: 13px; color: var(--muted); }
.acct-stats { display: grid; grid-template-columns: 1fr 1fr; }
.acct-stats div { padding: 14px 18px; border-bottom: 2px solid var(--hair); }
.acct-stats div:nth-child(odd) { border-right: 2px solid var(--hair); }
.acct-stats b { display: block; font: 700 22px/1.1 var(--mono); letter-spacing: -0.04em; }
.acct-stats span { font-size: 13px; color: var(--muted); }
.acct-foot { padding: 14px 18px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.acct-foot a { font-weight: 700; text-decoration: none; }
.acct-foot a:hover { color: var(--accent); }
.meter { height: 8px; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--paper-2); flex: 1; }
.meter i { display: block; height: 100%; background: var(--good); }

/* ---------- giveaway cards ---------- */
.feed { display: grid; gap: 14px; margin-top: 28px; }
.gw { display: grid; grid-template-columns: 74px 1fr auto; gap: 0; padding: 0; overflow: hidden; }
.gw-date { border-right: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; background: var(--paper-2); text-align: center; }
.gw-date b { font: 800 30px/1 var(--display); }
.gw-date span { font: 700 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.gw-main { padding: 14px 18px; min-width: 0; }
.gw-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 5px 7px; border-radius: 3px; border: 1.5px solid currentColor; white-space: nowrap; }
.tag.acct-tag { color: var(--paper); border-color: transparent; }
.tag.plain { color: var(--ink-2); }
.gw-text { font-size: 16px; font-weight: 500; }
.gw-note { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.gw-note[hidden] { display: none; }
.gw-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font: 500 13px/1.3 var(--mono); color: var(--muted); align-items: center; }
.gw-meta a { color: var(--ink); font-weight: 700; text-decoration: none; }
.gw-meta a:hover { color: var(--accent); }
.gw-meta button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gw-side { border-left: 2px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 8px; min-width: 168px; text-align: right; }
.gw-prize { font: 700 22px/1.1 var(--mono); letter-spacing: -0.04em; }
.gw-prize-note { font-size: 12px; color: var(--muted); }
.gw.is-off .gw-prize { color: var(--off); text-decoration: line-through; text-decoration-thickness: 2px; }

.st { font: 700 12px/1.15 var(--body); padding: 6px 9px; border-radius: 3px; border: 1.5px solid; display: inline-block; max-width: 180px; }
.st-paid, .st-winner { color: var(--good); background: var(--good-bg); }
.st-unverified, .st-unknown { color: var(--warn); background: var(--warn-bg); }
.st-pending { color: var(--open); background: var(--open-bg); }
.st-notmet, .st-missing, .st-unchecked { color: var(--off); background: var(--off-bg); }

/* ---------- giveaways page ---------- */
.toolbar { position: sticky; top: 62px; z-index: 10; background: var(--paper); padding: 14px 0; border-bottom: 2px solid var(--line); }
.toolbar .wrap { display: grid; gap: 10px; }
.search { display: flex; gap: 10px; flex-wrap: wrap; }
.search input, .search select {
  font: 500 15px var(--body); padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); min-height: 44px;
}
.search input { flex: 1 1 240px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: 700 13px/1 var(--body); padding: 8px 11px; border: 2px solid var(--line); border-radius: 99px; background: var(--card);
  color: var(--ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 36px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip .n { font-family: var(--mono); opacity: .7; }
.result-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 26px; font: 600 14px var(--mono); color: var(--muted); }
.result-line b { color: var(--ink); }
.year-head { display: flex; align-items: baseline; gap: 14px; margin: 34px 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.year-head h2 { font-size: 34px; }
.year-head span { font: 600 14px var(--mono); color: var(--muted); }
.empty { padding: 40px; text-align: center; color: var(--ink-2); }
.more { display: flex; justify-content: center; margin-top: 26px; }

/* ---------- steps / method ---------- */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { padding: 22px; position: relative; }
.step-n { font: 800 56px/1 var(--display); color: var(--accent); display: block; margin-bottom: 10px; }
.step p { color: var(--ink-2); margin-top: 8px; }
.legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 30px; }
.legend-grid div { padding: 16px; }
.legend-grid p { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* ---------- scorecard ---------- */
.chart-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin-top: 22px; }
.chart-grid.even { grid-template-columns: 1fr 1fr; }
.chart-card { padding: 20px; }
.chart-card .hint { font-size: 14px; color: var(--muted); margin-top: 4px; }
.chart-box { position: relative; height: 300px; margin-top: 14px; }
.chart-box.short { height: 240px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 11px 12px; text-align: right; border-bottom: 2px solid var(--hair); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid var(--line); }
.tbl td { font-family: var(--mono); }
.tbl td:first-child { font-family: var(--body); font-weight: 700; }
.tbl-wrap { overflow-x: auto; margin-top: 14px; }

/* ---------- footer ---------- */
.foot { border-top: 2px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--ink-2); background: var(--paper-2); }
.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot p { max-width: 62ch; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .ticket-top .live i { animation: none; } html { scroll-behavior: auto; } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero-grid, .chart-grid, .chart-grid.even { grid-template-columns: 1fr; }
  .acct-grid, .steps { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .ticket { transform: none; }
}
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 40px 0 52px; }
  .hero-facts { width: 100%; }
  .hero-facts li { flex: 1; padding: 10px 12px; }
  .hero-facts b { font-size: 20px; }
  .nav .wrap { gap: 8px; padding: 8px 0; }
  .nav-links { margin-left: 0; width: 100%; order: 3; }
  .nav-links a { padding: 6px 9px; font-size: 14px; }
  .theme-btn { margin-left: auto; }
  .toolbar { position: static; }
  .gw { grid-template-columns: 58px 1fr; }
  .gw-side { grid-column: 1 / -1; border-left: 0; border-top: 2px solid var(--line); flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; text-align: left; }
  .gw-date b { font-size: 24px; }
  .board .value { font-size: 28px; }
}
