:root {
  --navy: #070d1a;
  --navy-2: #0e1830;
  --pitch: #16633b;
  --pitch-line: rgba(255, 255, 255, 0.10);
  --chalk: #f6f9ff;
  --gold: #ffd11a;
  --gold-2: #ffae00;
  --pink: #ff2d77;
  --pink-2: #ff5fa2;
  --purple: #7c3cff;
  --cyan: #19e3ff;
  --silver: #cdd7e6;
  --blue: #3ea0ff;
  --ink: #eaf1fb;
  --muted: #95a8c2;
  --card-bg: #0b1426;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 18px rgba(255, 209, 26, .55);
  --glow-pink: 0 0 18px rgba(255, 45, 119, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(124, 60, 255, .22), transparent 60%),
    radial-gradient(900px 500px at 88% -6%, rgba(255, 45, 119, .20), transparent 60%),
    radial-gradient(1200px 800px at 50% 0%, #15244a 0%, var(--navy) 52%, #04070f 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* shared hype animations */
@keyframes hypeGradient { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes glowPulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes sheen { 0% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(220%) skewX(-18deg); } }

/* Floodlit pitch markings + drifting glow behind everything */
.pitch-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(50% - 1px), var(--pitch-line) 50%, transparent calc(50% + 1px)),
    radial-gradient(900px 500px at 50% 0%, rgba(255, 209, 26, 0.08), transparent 70%);
}
.pitch-bg::before {
  /* center circle */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(48vw, 520px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid var(--pitch-line);
  border-radius: 50%;
}
.pitch-bg::after {
  /* center spot */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  background: var(--pitch-line);
  border-radius: 50%;
}

.wrap { width: min(1180px, 92vw); margin: 0 auto; position: relative; z-index: 1; }

/* ---------- header (sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 13, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 66px; height: 66px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,.55), 0 0 0 2px rgba(255,209,26,.5), var(--glow-gold);
  flex-shrink: 0;
}
.nav { display: flex; gap: 6px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 999px; }
.nav-btn {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px;
  transition: all .15s ease;
}
.nav-btn:hover { color: var(--ink); }
.nav-btn.is-active { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1205; box-shadow: var(--glow-gold); }
.nav-link { text-decoration: none; display: inline-flex; align-items: center; }
/* hamburger (mobile only) */
.nav-toggle { display: none; flex-direction: column; gap: 4px; width: 38px; height: 38px;
  align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.header-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
/* professional wallet button (sits top-right) */
.wallet-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 13px;
  color: var(--ink); background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.wallet-btn:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.09); }
.wallet-ico { flex-shrink: 0; opacity: .85; }
.wallet-btn.connected {
  border-color: rgba(54,211,153,.5); color: #36d399; background: rgba(54,211,153,.1);
}
.wallet-btn.connected .wallet-ico { opacity: 1; }
.view[hidden] { display: none; }
.brand-emoji { font-size: 40px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.logo {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(34px, 5.4vw, 52px);
  letter-spacing: 2px;
  margin: 0;
  line-height: 0.92;
  text-transform: uppercase;
  background: linear-gradient(95deg, var(--gold) 0%, #fff5c2 25%, var(--pink) 55%, var(--purple) 80%, var(--gold) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 10px rgba(255,209,26,.35));
  animation: hypeGradient 6s linear infinite;
}
.logo .dot { -webkit-text-fill-color: var(--pink); }
.tagline { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; }
.brand-logo { animation: floatY 4s ease-in-out infinite; }

/* ---------- disclaimer ---------- */
.disclaimer {
  margin: 16px auto;
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(255, 61, 127, 0.06);
  border: 1px solid rgba(255, 61, 127, 0.25);
  border-radius: 10px;
}
.disclaimer strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  position: relative; z-index: 1; margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(10,19,32,0), rgba(7,13,26,.7));
  padding: 28px 0 36px;
}
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 24px; letter-spacing: 1px; text-transform: uppercase; color: var(--chalk); }
.footer-brand img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,209,26,.4); }
.footer-brand .dot { color: var(--pink); }
.footer-legal { color: var(--muted); font-size: 12.5px; margin: 0; }
.footer-legal a { color: var(--gold); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* ---------- legal page ---------- */
.legal { max-width: 820px; padding: 24px 0 80px; }
.legal-title { font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(30px,5vw,48px);
  letter-spacing: 1px; text-transform: uppercase; color: var(--chalk); margin: 18px 0 4px; }
.legal-updated { color: var(--muted); font-size: 12.5px; margin: 0 0 22px; }
.legal h2 { font-size: 17px; color: var(--gold); margin: 26px 0 8px; }
.legal p { color: var(--ink); font-size: 14.5px; line-height: 1.7; margin: 0 0 12px; opacity: .92; }
.legal strong { color: var(--chalk); opacity: 1; }
.legal-foot { background: rgba(255,209,26,.08); border: 1px solid rgba(255,209,26,.3);
  border-radius: 12px; padding: 14px 16px; margin-top: 26px !important; }
.legal-back { color: var(--gold); text-decoration: none; font-weight: 700; }
.legal-back:hover { text-decoration: underline; }
.rules-list { margin: 0 0 12px; padding-left: 20px; }
.rules-list li { color: var(--ink); font-size: 14.5px; line-height: 1.7; margin-bottom: 8px; opacity: .92; }
.rules-list strong { color: var(--chalk); opacity: 1; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--gold); }
.reward-table {
  width: 100%; border-collapse: collapse; margin: 8px 0 14px;
  background: linear-gradient(180deg, var(--card-bg), #0a1422);
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px; overflow: hidden;
}
.reward-table th, .reward-table td { text-align: left; padding: 11px 16px; font-size: 14px; }
.reward-table thead th { background: rgba(255,255,255,.05); color: var(--muted);
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.reward-table tbody tr { border-top: 1px solid rgba(255,255,255,.07); }
.reward-table td { color: var(--ink); }
.reward-table td b { color: var(--gold); }
.reward-note { color: var(--muted); font-size: 13px; margin: 0 0 12px; }

/* matches */
.match-tab {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; transition: all .15s ease;
}
.match-tab:hover { color: var(--ink); }
.match-tab.is-active { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1205; box-shadow: var(--glow-gold); }
.match-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding-bottom: 50px; }
.match-card {
  background: linear-gradient(180deg, var(--card-bg), #0a1422);
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px;
}
.match-card.is-live { border-color: rgba(255,45,119,.5); box-shadow: 0 0 0 1px rgba(255,45,119,.25) inset; }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.m-league { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-live { font-size: 11px; font-weight: 800; color: var(--pink); white-space: nowrap; }
.m-status { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.m-team { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.m-team + .m-team { border-top: 1px solid rgba(255,255,255,.06); }
.m-team-name { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink); font-weight: 600; font-size: 14px; }
.m-team-name img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.m-team.m-win .m-team-name { color: var(--chalk); font-weight: 800; }
.m-score { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 22px; color: var(--gold); }
/* prediction */
.m-pred-btn {
  margin-top: 10px; width: 100%; padding: 8px; border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); color: var(--muted);
  font: inherit; font-weight: 700; font-size: 12px; transition: all .15s ease;
}
.m-pred-btn:hover { color: var(--ink); border-color: rgba(255,255,255,.3); }
.m-pred-box { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.m-pred-row { display: grid; grid-template-columns: 18px 1fr 38px; align-items: center; gap: 8px; }
.m-pred-label { font-weight: 800; font-size: 12px; color: var(--muted); text-align: center; }
.m-pred-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.m-pred-fill { display: block; height: 100%; border-radius: 999px; }
.m-pred-fill.home { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.m-pred-fill.draw { background: rgba(255,255,255,.4); }
.m-pred-fill.away { background: linear-gradient(90deg, var(--blue), #1c5fb0); }
.m-pred-pct { font-size: 12px; font-weight: 700; color: var(--ink); text-align: right; }
.m-pred-advice { font-size: 12px; color: var(--gold); font-weight: 600; margin-top: 4px;
  padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.m-pred-none { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0; }
.m-sec-title { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); margin: 8px 0 4px; }
.m-sec-title:first-child { margin-top: 0; }
.m-odds { display: flex; gap: 10px; flex-wrap: wrap; }
.m-odds span { flex: 1; min-width: 60px; text-align: center; font-size: 12.5px; color: var(--ink);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 6px 4px; }
.m-odds b { color: var(--gold); margin-right: 4px; }
.m-team-right { display: inline-flex; align-items: center; gap: 8px; }
.m-squad-link { background: transparent; border: 0; cursor: pointer; font-size: 14px; padding: 2px 4px;
  border-radius: 6px; opacity: .65; }
.m-squad-link:hover { opacity: 1; background: rgba(255,255,255,.08); }

/* squad modal */
.squad-list { max-height: 60vh; overflow-y: auto; margin-top: 6px; }
.squad-pos { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  color: var(--gold); margin: 12px 0 6px; }
.squad-player { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; }
.squad-player:hover { background: rgba(255,255,255,.04); }
.squad-player img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.06); }
.squad-noimg { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; background: rgba(255,255,255,.06); font-size: 15px; }
.squad-name { flex: 1; font-size: 13.5px; color: var(--ink); }
.squad-num { color: var(--muted); font-weight: 700; font-size: 12px; }

/* group standings */
.groups-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding-bottom: 50px; }
.group-card { background: linear-gradient(180deg, var(--card-bg), #0a1422);
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; }
.group-title { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 20px; letter-spacing: 1px;
  color: var(--gold); margin-bottom: 8px; }
.group-table { width: 100%; border-collapse: collapse; }
.group-table th, .group-table td { padding: 7px 5px; font-size: 12.5px; text-align: center; color: var(--ink); }
.group-table thead th { color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; }
.group-table .g-team-h, .group-table .g-team { text-align: left; }
.group-table .g-team { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.group-table .g-team img { width: 18px; height: 18px; object-fit: contain; }
.group-table .g-rank { color: var(--muted); width: 18px; }
.group-table .g-pts { font-weight: 800; color: var(--gold); }
.group-table .g-gd { color: var(--muted); }
.group-table tbody tr { border-top: 1px solid rgba(255,255,255,.06); }
.group-table tr.qualifies .g-rank { color: #36d399; font-weight: 800; }
.group-table tr.qualifies { background: rgba(54,211,153,.05); }

/* bounties empty state */
.bounty-empty {
  text-align: center; padding: 56px 24px; margin-top: 20px; border-radius: 16px;
  background: linear-gradient(180deg, var(--card-bg), #0a1422);
  border: 1px dashed rgba(255,255,255,.18);
}
.bounty-empty-ico { font-size: 44px; margin-bottom: 10px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.bounty-empty h3 { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 26px; letter-spacing: 1px;
  color: var(--chalk); margin: 0 0 8px; text-transform: uppercase; }
.bounty-empty p { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 460px; margin: 0 auto; }
.usd-col { color: #36d399 !important; }
.reward-table .usd-cell { color: #36d399; font-weight: 700; white-space: nowrap; }
/* fixed layout = header and body columns share identical widths (perfectly aligned) */
.reward-table-usd { table-layout: fixed; }
.reward-table-usd th:first-child, .reward-table-usd td:first-child { width: 90px; }       /* Rank */
.reward-table-usd th:nth-child(2), .reward-table-usd td:nth-child(2) { width: 30%; }       /* award */
.reward-table-usd .usd-col, .reward-table-usd .usd-cell { text-align: right; }

/* ---------- toolbar ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 18px auto 10px; flex-wrap: wrap;
}
.search-wrap {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-wrap:focus-within { border-color: var(--gold); box-shadow: var(--glow-gold); }
.search-icon { font-size: 14px; opacity: .7; }
#search {
  flex: 1; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 14px; outline: none;
}
#search::placeholder { color: var(--muted); }
.count { font-weight: 700; color: var(--chalk); font-size: 14px; margin: 0 auto 22px; }
.sort { display: flex; gap: 6px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 999px; }
.sort-btn {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 13px; transition: all .15s ease;
}
.sort-btn:hover { color: var(--ink); }
.sort-btn.is-active { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1205; box-shadow: var(--glow-gold); }

/* ---------- board grid ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  padding-bottom: 60px;
}
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- pagination ---------- */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 8px 0 60px;
}
.pager-info { color: var(--muted); font-size: 13.5px; font-weight: 600; min-width: 150px; text-align: center; }
.pager-btn { padding: 9px 16px; }
.pager-btn:disabled { opacity: .4; cursor: default; }

/* ---------- site socials (header + footer) ---------- */
.socials { display: flex; gap: 8px; align-items: center; }
.socials:empty { display: none; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 10px; text-decoration: none; font-size: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); color: var(--ink);
  transition: all .15s ease;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); box-shadow: var(--glow-gold); }

/* ---------- About $FIFADOG (top) ---------- */
.about {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin: 22px auto 6px; padding: 26px 30px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(255,209,26,.12), rgba(255,45,119,.10) 55%, rgba(124,60,255,.12) 100%);
  border: 1px solid transparent; box-shadow: 0 14px 44px rgba(0,0,0,.4);
}
.about::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1.5px;
  background: linear-gradient(120deg, var(--gold), var(--pink), var(--purple), var(--cyan), var(--gold));
  background-size: 300% auto;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hypeGradient 5s linear infinite; pointer-events: none;
}
.about-logo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 6px 22px rgba(0,0,0,.5), 0 0 0 2px rgba(255,209,26,.5), var(--glow-gold);
  animation: floatY 4s ease-in-out infinite; }
.about-text { flex: 1; min-width: 260px; }
.about-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.about-title { font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(28px,4vw,44px);
  letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 8px; color: var(--chalk);
  text-shadow: 0 0 18px rgba(255,209,26,.3); }
.about-toggle {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); color: var(--muted);
  font: inherit; font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 999px;
  transition: all .15s ease;
}
.about-toggle:hover { color: var(--ink); border-color: rgba(255,255,255,.3); }
.about-chevron { transition: transform .2s ease; }
.about.collapsed .about-chevron { transform: rotate(-90deg); }
/* collapsible body */
.about-collapse { overflow: hidden; transition: max-height .3s ease, opacity .25s ease, margin .25s ease; max-height: 1200px; }
.about.collapsed .about-collapse { max-height: 0; opacity: 0; margin-top: -4px; }
.about-body { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 760px; }
.about-body strong { color: var(--ink); }
.about-how {
  list-style: none; margin: 0 0 16px; padding: 0; max-width: 760px;
  display: flex; flex-direction: column; gap: 8px;
}
.about-how li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--muted); font-size: 13.5px; line-height: 1.5;
}
.about-how strong { color: var(--ink); }
.about-how .nav-jump { color: var(--gold); text-decoration: none; font-weight: 700; white-space: nowrap; }
.about-how .nav-jump:hover { text-decoration: underline; }
.how-ico {
  flex-shrink: 0; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; border-radius: 7px; background: rgba(255,209,26,.12); border: 1px solid rgba(255,209,26,.3);
}
.about-cta { display: flex; gap: 10px; flex-wrap: wrap; }
/* $FIFADOG CA pill (from FIFADOG_MINT) */
.fd-ca {
  display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 12px; cursor: pointer;
  padding: 8px 12px; border-radius: 10px; font: inherit;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: var(--ink);
  transition: all .15s ease; max-width: 100%;
}
.fd-ca:hover { border-color: var(--gold); background: rgba(255,209,26,.08); }
.fd-ca-label { font-size: 10px; font-weight: 800; letter-spacing: .5px; color: var(--gold); text-transform: uppercase; }
.fd-ca-mint { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.fd-ca-copy { font-size: 13px; color: var(--muted); }

.btn-buy-fd { background: rgba(45,212,134,.14); color: #36d399; border: 1px solid rgba(45,212,134,.4);
  display: inline-flex; align-items: center; text-decoration: none; }
.btn-buy-fd:hover { background: rgba(45,212,134,.24); }

/* live $FIFADOG stats bar */
.fd-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.fd-stat {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); min-width: 110px;
}
.fd-label { font-size: 10px; font-weight: 800; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
.fd-val { font-size: 16px; font-weight: 800; color: var(--gold); }
.fd-sub { font-size: 11px; font-weight: 600; color: var(--muted); }
.fd-stat-holding { border-color: rgba(54,211,153,.4); background: rgba(54,211,153,.08); }
.fd-stat-holding .fd-val { color: #36d399; }

/* leaderboard tabs */
.lb-tabs { display: inline-flex; gap: 6px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 999px; margin: 12px 0; }
.lb-tab {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; transition: all .15s ease;
}
.lb-tab:hover { color: var(--ink); }
.lb-tab.is-active { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1205; box-shadow: var(--glow-gold); }
.leaderboard[hidden] { display: none; }

/* token row in the token leaderboard */
.lb-token { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-token-img { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(255,255,255,.06); }
.lb-token-img img { width: 100%; height: 100%; object-fit: cover; }
.lb-token-meta { display: flex; flex-direction: column; min-width: 0; }
.lb-token-meta b { color: var(--chalk); font-size: 14px; }
.lb-token-meta small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- legacy hero (unused, kept harmless) ---------- */
.hero {
  position: relative; overflow: hidden;
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 26px 28px; margin-bottom: 6px;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(255,209,26,.14), rgba(255,45,119,.12) 55%, rgba(124,60,255,.12) 100%);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
/* animated gradient ring around the hero */
.hero::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1.5px;
  background: linear-gradient(120deg, var(--gold), var(--pink), var(--purple), var(--cyan), var(--gold));
  background-size: 300% auto;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hypeGradient 5s linear infinite;
  pointer-events: none;
}
.hero-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,.5), 0 0 0 1px rgba(255,206,58,.5); flex-shrink: 0; }
.hero-text { flex: 1; min-width: 240px; }
.hero-title { font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(28px,4vw,42px);
  margin: 0 0 6px; color: var(--chalk); letter-spacing: 1.5px; text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255,209,26,.3); }
.hero-sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 640px; }
.hero-sub strong { color: var(--gold); }
.hero-cta { flex-shrink: 0; }

/* ---------- FUT card ---------- */
.card {
  position: relative;
  border-radius: var(--radius);
  padding: 3px; /* room for metallic border */
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: rise .35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-7px) scale(1.015); box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 24px rgba(255,209,26,.18); }
/* sheen sweep across the card on hover */
.card::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent);
  opacity: 0; pointer-events: none; z-index: 3; border-radius: var(--radius);
}
.card:hover::after { animation: sheen .7s ease; }

/* tier metallic borders */
.card.tier-gold   { background: linear-gradient(145deg, #ffe79a, #ffce3a 40%, #b8860b 70%, #ffe79a); }
.card.tier-blue   { background: linear-gradient(145deg, #bfe0ff, #4ea3ff 45%, #1c5fb0 75%, #bfe0ff); }
.card.tier-silver { background: linear-gradient(145deg, #ffffff, #c7d0db 45%, #8b95a3 75%, #ffffff); }
.card.tier-pink   { background: linear-gradient(145deg, #ffc2da, #ff3d7f 45%, #b01b53 78%, #ffc2da); }

.card-inner {
  position: relative;
  background: linear-gradient(180deg, var(--card-bg), #0a1422 85%);
  border-radius: calc(var(--radius) - 3px);
  padding: 16px 16px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* faint pitch lines inside the card */
.card-inner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120px 120px at 50% 30%, rgba(255,255,255,.05), transparent 70%),
    linear-gradient(to bottom, transparent calc(40% - 1px), rgba(255,255,255,.05) 40%, transparent calc(40% + 1px));
  pointer-events: none;
}

.card-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }

/* organic score (top-left) */
.score-block { text-align: left; line-height: 1; }
.score-val {
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 44px; color: var(--muted);
  text-shadow: 0 2px 0 rgba(0,0,0,.5);
}
.score-cap { font-size: 8.5px; font-weight: 800; letter-spacing: 1px; color: var(--muted); margin-top: 1px; }
.score-block.score-high .score-val   { color: #36d399; text-shadow: 0 0 14px rgba(54,211,153,.5); }
.score-block.score-medium .score-val { color: var(--gold); text-shadow: 0 0 14px rgba(255,209,26,.45); }
.score-block.score-low .score-val    { color: var(--pink); text-shadow: 0 0 14px rgba(255,45,119,.4); }

/* bones badge (top-right) — distinct-wallet poster count */
.bones-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(255,209,26,.12); border: 1px solid rgba(255,209,26,.4);
  color: var(--gold); font-weight: 800; font-size: 13px;
}
.bones-emoji { font-size: 14px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.ovr-block { text-align: center; line-height: 1; }
.ovr {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 50px; color: var(--gold); line-height: .9;
  text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 16px rgba(255,209,26,.45);
}
.tier-blue .ovr { color: var(--blue); }
.tier-silver .ovr { color: var(--silver); }
.tier-pink .ovr { color: var(--pink); }
.pos { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--chalk); margin-top: 2px; }
.emblem { font-size: 30px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); }

/* token image */
.card-photo { display: flex; justify-content: center; margin: 4px 0 2px; position: relative; z-index: 1; }
.card-img {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 6px 16px rgba(0,0,0,.5), 0 0 16px rgba(255,209,26,.18);
  background: #0a1422;
}
.card-img.placeholder { display: flex; align-items: center; justify-content: center; font-size: 38px; }
.tier-gold .card-img   { border-color: rgba(255,209,26,.6); }
.tier-blue .card-img   { border-color: rgba(62,160,255,.6); }
.tier-silver .card-img { border-color: rgba(205,215,230,.7); }
.tier-pink .card-img   { border-color: rgba(255,45,119,.6); }

/* market cap + price row */
.card-market {
  display: flex; gap: 8px; margin: 0 0 10px; position: relative;
}
.card-market .mc {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 4px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.mc-label { font-size: 9px; font-weight: 800; letter-spacing: 1px; color: var(--muted); }
.mc-val { font-size: 13px; font-weight: 800; color: var(--gold); }
.tier-blue .mc-val { color: var(--blue); }
.tier-silver .mc-val { color: var(--silver); }
.tier-pink .mc-val { color: var(--pink); }

.card-name-block { text-align: center; margin: 6px 0 10px; position: relative; }
.ticker {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 30px; letter-spacing: 1px; color: var(--chalk);
}
.token-name { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px;
  word-break: break-word; }

.pitch {
  font-size: 12.5px; line-height: 1.45; color: var(--ink);
  text-align: center; min-height: 54px; margin: 0 0 12px; position: relative;
  word-break: break-word;
}

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  font-size: 12px; padding: 10px 6px; margin: 0 0 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.stat { display: flex; justify-content: space-between; }
.stat b { color: var(--gold); font-weight: 800; }
.tier-blue .stat b { color: var(--blue); }
.tier-silver .stat b { color: var(--silver); }
.tier-pink .stat b { color: var(--pink); }
.stat span { color: var(--muted); font-weight: 700; letter-spacing: .5px; }

/* contract address row */
.ca-row {
  position: relative; display: flex; align-items: center; gap: 7px; width: 100%;
  margin: 0 0 8px; padding: 7px 10px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: var(--muted); font: inherit; font-size: 11.5px; text-align: left;
}
.ca-row:hover { border-color: rgba(255,255,255,.22); color: var(--ink); }
.ca-label { font-weight: 800; color: var(--gold); letter-spacing: .5px; }
.ca-mint { font-family: ui-monospace, Menlo, Consolas, monospace; flex: 1; }
.ca-copy { font-size: 13px; }

/* token socials row — sits directly under the CA row */
.card-socials { display: flex; gap: 7px; margin: 0 0 10px; }
.card-socials:empty { display: none; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 8px; background: rgba(255,255,255,.05); color: var(--muted);
  border: 1px solid rgba(255,255,255,.12); text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.social-btn svg { display: block; }
.social-btn:hover { color: var(--ink); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.09); }

/* primary action buttons (Buy / Share) — equal width, restrained, pro */
.card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 8px; border-radius: 10px; text-decoration: none;
  font: inherit; font-weight: 700; font-size: 12.5px; letter-spacing: .2px;
  border: 1px solid transparent; transition: all .15s ease; white-space: nowrap;
}
.btn-action svg { flex-shrink: 0; }
.btn-action:active { transform: translateY(1px); }

/* Buy — solid, confident pump.fun green, not neon */
.btn-buy {
  background: rgba(45,212,134,.12); color: #36d399; border-color: rgba(45,212,134,.35);
}
.btn-buy:hover { background: rgba(45,212,134,.2); border-color: rgba(45,212,134,.6); }

/* Share — subtle X/Twitter blue */
.btn-share {
  background: rgba(255,255,255,.05); color: var(--muted); border-color: rgba(255,255,255,.14);
}
.btn-share:hover { background: rgba(29,155,240,.14); color: #1d9bf0; border-color: rgba(29,155,240,.45); }

/* Feed bones — full-width gold action under Buy/Share */
.btn-feed {
  margin-top: 8px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px; border-radius: 10px; cursor: pointer; text-decoration: none;
  background: rgba(255,209,26,.12); color: var(--gold); border: 1px solid rgba(255,209,26,.4);
  font: inherit; font-weight: 800; font-size: 13px; transition: all .15s ease;
}
.btn-feed:hover { background: rgba(255,209,26,.22); box-shadow: var(--glow-gold); }
.feed-bone { font-size: 14px; }

/* wallet picker */
.modal-sm { width: min(400px, 100%); }
.wallet-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.wallet-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-decoration: none;
  padding: 12px 14px; border-radius: 12px; cursor: pointer; font: inherit;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: var(--ink);
  transition: all .15s ease;
}
.wallet-opt:hover { border-color: var(--gold); background: rgba(255,209,26,.08); }
.wallet-opt-ico { font-size: 22px; width: 30px; text-align: center; }
.wallet-opt-name { font-weight: 700; font-size: 14px; flex: 1; text-align: left; }
.wallet-opt-tag { font-size: 11px; font-weight: 700; color: #36d399; }
.wallet-opt-install { opacity: .8; }
.wallet-opt-install .wallet-opt-tag { color: var(--muted); }
.wallet-connected {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(54,211,153,.1); border: 1px solid rgba(54,211,153,.35); margin-bottom: 4px;
}
.wallet-connected .wallet-opt-name { display: flex; flex-direction: column; }
.wallet-connected .wallet-opt-name small { color: var(--muted); font-weight: 600; font-size: 11.5px;
  font-family: ui-monospace, Menlo, Consolas, monospace; }
.wallet-opt-disconnect { justify-content: flex-start; }
.wallet-opt-disconnect:hover { border-color: var(--pink); background: rgba(255,45,119,.1); color: var(--pink); }

/* connect-wallet prompt in the post modal */
.wallet-prompt {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 16px; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; text-align: left; font: inherit;
  background: rgba(255,209,26,.1); border: 1px solid rgba(255,209,26,.4); color: var(--ink);
  transition: all .15s ease;
}
.wallet-prompt:hover { background: rgba(255,209,26,.18); }
.wallet-prompt svg { color: var(--gold); flex-shrink: 0; }
.wallet-prompt span:nth-child(2) { flex: 1; font-size: 13px; line-height: 1.4; color: var(--muted); }
.wallet-prompt strong { color: var(--ink); }
.wallet-prompt-cta { color: var(--gold); font-weight: 800; font-size: 13px; white-space: nowrap; }

/* already-on-board panel (in the post modal lookup step) */
.exists-panel {
  margin-top: 16px; padding: 16px; border-radius: 12px;
  background: rgba(54,211,153,.08); border: 1px solid rgba(54,211,153,.35);
}
.exists-head { font-weight: 800; color: #36d399; font-size: 15px; margin-bottom: 6px; }
.exists-body { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; }
.exists-body strong { color: var(--ink); }
.exists-panel .btn { width: 100%; }

/* feed modal bits */
.feed-token { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 14px;
  border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.feed-token-img { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(255,255,255,.06); }
.feed-token-img img { width: 100%; height: 100%; object-fit: cover; }
.feed-token-name { font-weight: 800; color: var(--chalk); font-size: 16px; }
.feed-token-bones { color: var(--gold); font-weight: 700; font-size: 13px; }
/* feed success screen */
#feed-success { text-align: center; padding: 8px 0 4px; }
.feed-success-burst { font-size: 40px; margin-bottom: 6px; animation: rise .35s ease both; }
.feed-success-title { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 38px; letter-spacing: 1px;
  color: var(--gold); text-shadow: var(--glow-gold); margin: 0 0 8px; }
.feed-success-line { color: var(--ink); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.feed-success-line b { color: #36d399; }
.feed-success-stats { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.fs-stat { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px;
  border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.fs-stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.fs-stat b { color: var(--gold); font-size: 16px; }
.feed-success-actions { justify-content: stretch; gap: 10px; }
.feed-success-actions .btn-share, .feed-success-actions .btn { flex: 1; justify-content: center; }
.feed-success-actions .btn-share { text-decoration: none; }

.feed-quota { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 14px;
  padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.feed-quota strong { color: var(--ink); }
.feed-need { color: var(--pink); font-weight: 700; }
.burn-addr { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--gold); }
.feed-amount-row { display: flex; gap: 8px; }
.feed-amount-row input { flex: 1; }

/* poster wallet line on the card */
.card-poster {
  font-size: 10.5px; color: var(--muted); text-align: center; margin: -4px 0 10px;
  position: relative; letter-spacing: .3px;
}
.card-poster .pts { color: var(--gold); font-weight: 800; }

/* ---------- leaderboard ---------- */
.lb-head { margin: 18px 0 22px; }
.lb-title { font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(26px,4vw,40px);
  margin: 0 0 4px; color: var(--chalk); letter-spacing: .5px; }
.lb-sub { color: var(--muted); font-size: 14px; margin: 0; max-width: 640px; }
.lb-sub strong { color: var(--gold); }
.lb-rules-link { display: inline-block; margin-top: 8px; color: var(--gold); text-decoration: none;
  font-weight: 700; font-size: 13px; }
.lb-rules-link:hover { text-decoration: underline; }

/* per-tab reward summary box */
.lb-reward-box {
  margin: 14px 0 20px; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(255,209,26,.1), rgba(255,45,119,.06));
  border: 1px solid rgba(255,209,26,.3);
}
.lb-reward-head { font-weight: 800; color: var(--gold); font-size: 15px; margin-bottom: 6px; }
.lb-reward-body { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; }
.lb-reward-body strong { color: var(--ink); }
.lb-reward-link { color: var(--gold); text-decoration: none; font-weight: 700; font-size: 13px; }
.lb-reward-link:hover { text-decoration: underline; }
.leaderboard { list-style: none; margin: 0 0 60px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lb-row {
  display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 12px;
  background: linear-gradient(180deg, var(--card-bg), #0a1422);
  border: 1px solid rgba(255,255,255,.08);
}
.lb-row.top1 { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255,206,58,.3) inset; }
.lb-row.top2 { border-color: var(--silver); }
.lb-row.top3 { border-color: #cd7f32; }
.lb-rank { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 26px; color: var(--muted); text-align: center; }
.lb-row.top1 .lb-rank { color: var(--gold); }
.lb-row.top2 .lb-rank { color: var(--silver); }
.lb-row.top3 .lb-rank { color: #cd7f32; }
.lb-wallet { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; color: var(--ink); word-break: break-all;
  display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-wallet b { font-size: 14px; }
.lb-wallet small { font-family: 'Inter', sans-serif; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-posts { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.lb-points { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 22px; color: var(--gold); }

/* prize column (rank, identity, prize) */
.lb-row-prize { grid-template-columns: 52px 1fr auto; }
.lb-prize { text-align: right; min-width: 120px; }
.lb-prize-none { color: var(--muted); font-size: 13px; }
.lb-prize-amt { font-weight: 800; font-size: 13.5px; color: var(--gold); white-space: nowrap; }
.lb-prize-usd { display: flex; flex-direction: column; gap: 1px; margin-top: 3px; }
.lb-prize-usd .pu { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.lb-prize-usd .pu b { color: #36d399; font-weight: 700; margin-right: 3px; }

/* ---------- preview card (in modal) ---------- */
.preview-card {
  display: flex; gap: 14px; align-items: center; padding: 14px; margin-bottom: 16px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.preview-card.themed { border-color: var(--gold); }
.preview-card.unthemed { border-color: var(--pink); }
.preview-icon { width: 52px; height: 52px; border-radius: 10px; object-fit: cover;
  background: rgba(255,255,255,.06); flex-shrink: 0; }
.preview-icon.placeholder { display: flex; align-items: center; justify-content: center; font-size: 26px; }
.preview-meta { min-width: 0; flex: 1; }
.preview-name { font-weight: 700; color: var(--chalk); font-size: 15px; word-break: break-word; }
.preview-symbol { color: var(--muted); font-size: 12.5px; }
.preview-desc { color: var(--ink); font-size: 12px; line-height: 1.4; margin-top: 6px;
  opacity: .85; }
.preview-badge { font-size: 11.5px; font-weight: 800; margin-top: 6px; display: inline-block;
  padding: 3px 9px; border-radius: 999px; }
.preview-badge.ok { background: rgba(255,206,58,.16); color: var(--gold); }
.preview-badge.no { background: rgba(255,61,127,.16); color: var(--pink); }

/* ---------- wallet status line ---------- */
.wallet-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  color: var(--muted); margin-bottom: 14px; }
.ws-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); flex-shrink: 0; }
.wallet-status.connected .ws-dot { background: #36d399; }
.wallet-status.connected { color: var(--ink); }

.lookup-row { display: flex; gap: 8px; }
.lookup-row input { flex: 1; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 800; border-radius: 11px; cursor: pointer;
  padding: 11px 18px; border: 0; letter-spacing: .3px;
  transition: transform .12s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1a1205; box-shadow: var(--glow-gold);
  text-transform: uppercase; font-size: 13px;
}
.btn-gold:hover { box-shadow: 0 0 26px rgba(255,209,26,.7); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--ink); border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- modal ---------- */
/* The `hidden` attribute must always win over component display rules below.
   Without this, `.modal-backdrop { display:flex }` would override [hidden]
   and the modal/pager/empty state would show on load. */
[hidden] { display: none !important; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(3, 8, 16, .72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: min(520px, 100%);
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  padding: 26px 24px 22px; box-shadow: var(--shadow);
}
.modal h2 { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 28px; margin: 0 0 4px; color: var(--chalk); letter-spacing: .5px; }
.modal-sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.modal-close {
  position: absolute; top: 12px; right: 14px; background: transparent; border: 0;
  color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.modal-close:hover { color: var(--ink); }

.field { margin-bottom: 14px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--pink); }
.field input, .field select {
  font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 9px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field input.invalid { border-color: var(--pink); }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; min-height: 14px; }
.hint.error { color: var(--pink); }

.form-errors {
  background: rgba(255,61,127,.1); border: 1px solid rgba(255,61,127,.4);
  color: #ffd0e0; border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
}
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.16);
  color: var(--ink); padding: 12px 18px; border-radius: 10px; z-index: 60;
  box-shadow: var(--shadow); font-weight: 600; font-size: 14px;
  animation: rise .25s ease both;
}
.toast.err { border-color: var(--pink); }
.toast.ok { border-color: var(--gold); }

/* ---------- focus visibility ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- responsive ---------- */

/* tablet / small laptop — switch nav to a hamburger dropdown */
@media (max-width: 880px) {
  .wrap { width: 92vw; }
  /* two-line header: logo (left) + menu toggle (top-right) on line 1,
     action buttons wrap onto line 2 */
  .header-inner { gap: 10px 12px; flex-wrap: wrap; align-items: center; }
  .brand { order: 1; flex: 1 1 auto; min-width: 0; }
  .nav-toggle { display: flex; order: 2; margin-left: auto; flex-shrink: 0; }
  /* line 2: Post-a-token and wallet share the width 50/50 */
  .header-actions { order: 3; flex-basis: 100%; margin-left: 0; justify-content: flex-end; gap: 8px; }
  #open-modal { flex: 1 1 0; text-align: center; }
  .header-actions .wallet-btn { flex: 1 1 0; justify-content: center; }
  /* nav becomes a dropdown panel under the header */
  .nav {
    order: 4;
    position: absolute; top: 100%; right: 0; left: 0; z-index: 45;
    flex-direction: column; gap: 4px; padding: 10px; margin-top: 1px;
    background: rgba(8,13,26,.98); border-bottom: 1px solid rgba(255,255,255,.1);
    border-radius: 0;                       /* full-width panel, not a rounded pill */
    box-shadow: 0 16px 32px rgba(0,0,0,.5);
    backdrop-filter: blur(12px); display: none;
  }
  .nav.open { display: flex; }
  .nav-btn { width: 100%; text-align: left; padding: 11px 14px; font-size: 14px; }
  .about { padding: 22px; gap: 18px; }
  .about-logo { width: 84px; height: 84px; }
  .lb-row, .lb-row-prize { grid-template-columns: 44px 1fr auto; gap: 10px; }
  .lb-prize { min-width: 96px; }
}

/* phones — two-line header: logo + menu toggle on top, actions below */
@media (max-width: 600px) {
  .site-header { padding: 10px 0; }
  .header-inner { gap: 10px 8px; align-items: center; }
  .brand { gap: 8px; min-width: 0; }
  .brand-logo { width: 40px; height: 40px; }
  .logo { font-size: clamp(18px, 6vw, 26px); letter-spacing: .5px; }
  .tagline { display: none; }              /* tagline hidden on phones to keep line 1 tight */
  .header-actions { gap: 6px; }
  .header-actions .socials { display: none; }
  #open-modal { padding: 10px 8px; font-size: 12px; }
  /* both line-2 buttons are equal halves; show labels so neither looks empty */
  .wallet-btn { padding: 10px 8px; min-width: 0; }
  .wallet-btn .wallet-label { display: inline; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wallet-btn.connected .wallet-label { font-size: 12.5px; }

  /* About hero — logo + small 2-line heading on top row, body full width below */
  .about {
    display: grid; grid-template-columns: auto 1fr;
    grid-template-areas: "logo head" "body body";
    align-items: start; gap: 8px 12px;
    text-align: left; padding: 18px 16px; margin: 14px auto 4px;
  }
  .about-logo { grid-area: logo; width: 52px; height: 52px; align-self: start; }
  .about-text { display: contents; }
  .about-head { grid-area: head; align-items: center; min-height: 52px; }
  .about-collapse { grid-area: body; }
  .about-title { font-size: clamp(16px, 5vw, 21px); line-height: 1.12; letter-spacing: .5px; margin: 0; }
  .about-body { font-size: 13px; }
  .about-how li { font-size: 12.5px; }
  .about-cta { width: 100%; }
  .about-cta .btn { flex: 1; justify-content: center; }
  .fd-stats { gap: 8px; }
  .fd-stat { flex: 1 1 calc(50% - 4px); min-width: 0; }

  .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .sort { justify-content: center; overflow-x: auto; }
  .sort-btn { white-space: nowrap; }
  .search-wrap { width: 100%; }

  .board { grid-template-columns: 1fr; gap: 12px; }
  .card-actions { grid-template-columns: 1fr; }
  .score-val { font-size: 34px; }
  .ticker { font-size: 24px; }

  .lb-title { font-size: clamp(24px, 8vw, 34px); }
  /* tabs wrap onto multiple lines instead of scrolling sideways */
  .lb-tabs { width: 100%; justify-content: flex-start; flex-wrap: wrap; border-radius: 18px; }
  .lb-tab, .match-tab { white-space: nowrap; }
  .lb-token-meta small { max-width: 44vw; }
  .match-list { grid-template-columns: 1fr; }

  .modal { padding: 22px 18px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .lookup-row { flex-direction: column; }
  .lookup-row .btn { width: 100%; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* rewards / legal pages */
  .legal { padding: 16px 0 60px; }
  .legal-title { font-size: clamp(26px, 9vw, 38px); }
  .legal p, .rules-list li { font-size: 13.5px; }
  .reward-table th, .reward-table td { padding: 9px 10px; font-size: 12.5px; }
  /* token table (3 cols) fits the screen — every column visible, text wraps */
  #token-reward-table { width: 100%; table-layout: fixed; }
  #token-reward-table th, #token-reward-table td { white-space: normal; word-break: break-word; }
  #token-reward-table th:first-child, #token-reward-table td:first-child { width: 52px; }
  #token-reward-table th:nth-child(2), #token-reward-table td:nth-child(2) { width: auto; }
  #token-reward-table th:nth-child(3), #token-reward-table td:nth-child(3) { width: 78px; }
  /* only the wide wallet table (many green USD columns) scrolls sideways */
  #wallet-reward-table { display: block; overflow-x: auto; table-layout: auto; -webkit-overflow-scrolling: touch; }
  #wallet-reward-table thead, #wallet-reward-table tbody { display: table; width: 100%; min-width: 520px; }
  #wallet-reward-table::after {                                           /* subtle "scroll →" hint */
    content: "→ scroll"; display: block; text-align: right; color: var(--muted);
    font-size: 10px; padding: 2px 4px 0;
  }
  .bounty-empty { padding: 40px 18px; }
  .fd-stat { min-width: 80px; padding: 8px 10px; }
  .fd-val { font-size: 14px; }
}

/* very small phones */
@media (max-width: 380px) {
  .board { grid-template-columns: 1fr; gap: 10px; }
  .nav-btn { padding: 7px 10px; font-size: 11.5px; }
  .lb-token-meta small { max-width: 30vw; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
