/* Champions Invitational (#/invitational) and Wall of Fame (#/wall-of-fame), public/invitational.js.
   The Wall of Fame art is placeholder CSS (marble wall, spotlights, brass plates) until Levi's artwork is ready:
   swap in background images at the ART HOOK comments below. */
.inv-page { max-width: 1080px; margin: 0 auto; }
.inv-hero { position: relative; overflow: hidden; display: flex; gap: 18px; align-items: center; margin: 12px 0 14px; padding: 24px 22px;
  border-radius: var(--radius); border: 1px solid rgba(242,193,78,.45);
  background: radial-gradient(120% 140% at 0% 0%, rgba(242,193,78,.22), transparent 55%), linear-gradient(135deg, #17140a, #0f1411 60%, #141a16); }
.inv-hero h1 { font-size: 30px; margin: 4px 0 8px; color: #fff3cf; }
.inv-hero p { margin: 0; color: #d6cfb8; max-width: 640px; }
.inv-hero a { color: var(--gold); font-weight: 700; }
.inv-kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.inv-hero-trophy { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(242,193,78,.45)); flex: none; position: relative; }
.inv-hero-glow { position: absolute; inset: -40% auto auto -10%; width: 340px; height: 340px; background: radial-gradient(circle, rgba(242,193,78,.25), transparent 65%); pointer-events: none; }

.inv-stages { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0; margin: 0 0 14px; counter-reset: st; }
.inv-stages li { counter-increment: st; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 10px 36px; position: relative; font-size: 12px; color: var(--muted); }
.inv-stages li::before { content: counter(st); position: absolute; left: 10px; top: 10px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.inv-stages li b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.inv-stages li.past::before { content: '✓'; background: var(--turf-dim); color: #fff; border-color: var(--turf-dim); }
.inv-stages li.now { border-color: var(--gold); background: linear-gradient(180deg, rgba(242,193,78,.12), var(--panel)); }
.inv-stages li.now::before { background: var(--gold); color: #1b1404; border-color: var(--gold); }

.inv-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.inv-me h2, .inv-prizes h2 { margin-top: 0; }
.inv-me.ok { border-color: var(--turf-dim); }
.inv-me.invite { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,193,78,.12); }
.inv-me.win { border-color: var(--gold); background: linear-gradient(160deg, rgba(242,193,78,.14), var(--panel) 50%); margin-bottom: 10px; }
.inv-me-badge { display: inline-block; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: rgba(242,193,78,.16); color: var(--gold); margin-bottom: 8px; }
.inv-ticket { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; margin-bottom: 4px;
  background: repeating-linear-gradient(90deg, rgba(242,193,78,.18) 0 10px, rgba(242,193,78,.1) 10px 20px); border: 1px dashed var(--gold); }
.inv-me .chk { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; margin: 8px 0 0; }
.inv-me .chk input { width: auto; margin: 0; }
.inv-mine, .inv-field-list { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-chip { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); }
.inv-chip small { color: var(--muted); margin-left: 3px; }
.inv-seg { margin-top: 6px; }
.ghost-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.inv-page .pill.warn { color: #f6a35c; border-color: #5a3a1c; }

.inv-prize { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.inv-prize:last-of-type { border-bottom: 0; }
.inv-medal { flex: none; min-width: 44px; text-align: center; font-weight: 800; font-size: 14px; padding: 6px 8px; border-radius: 8px; color: #1b1404; background: var(--gold); }
.inv-prize:nth-of-type(2) .inv-medal { background: #c8cdd2; color: #1f2327; }
.inv-amt { font-weight: 800; color: var(--gold); font-size: 17px; }
.inv-field { margin-bottom: 14px; }
.inv-field h2 { margin-top: 0; }

.inv-race h2 { font-size: 18px; }
.inv-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px 0 4px; padding-bottom: 2px; }
.inv-cats button { flex: none; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 700; }
.inv-cats button.on { background: var(--gold); color: #1b1404; border-color: var(--gold); }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.inv-table td { padding: 7px 8px; border-bottom: 1px solid var(--line2); }
.inv-table td.num { font-variant-numeric: tabular-nums; }
.inv-table tr.inv-in td { background: rgba(242,193,78,.07); }
.inv-table tr.inv-in td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.inv-table tr.me-row td { background: rgba(47,191,113,.12); }
.inv-table tr.inv-gap td { text-align: center; color: var(--muted); padding: 2px; }
.inv-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--gold); color: #1b1404; margin-right: 6px; vertical-align: 1px; }
.inv-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.inv-link { display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.inv-link:hover { border-color: var(--gold); }

@media (max-width: 760px) {
  .inv-top, .inv-links { grid-template-columns: 1fr; }
  .inv-stages { grid-template-columns: 1fr; }
  .inv-stages li { padding: 8px 10px 8px 36px; }
  .inv-stages li:not(.now) span { display: none; }
  .inv-hero { flex-direction: column; text-align: center; padding: 20px 16px; }
  .inv-hero h1 { font-size: 24px; }
  .inv-hero-trophy { width: 72px; height: 72px; }
}

/* ---------- Wall of Fame: a museum hall ---------- */
/* ART HOOK: .wof background = marble wall texture (wall-of-fame/wall.jpg). */
.wof { max-width: 1100px; margin: 0 auto; padding-bottom: 20px;
  --wof-wall: #1d1a17; --wof-brass: #c9a24a; --wof-brass2: #8a6a22; --wof-silver: #c8cdd2; --wof-silver2: #7d858c; }
.wof-head { position: relative; text-align: center; padding: 44px 16px 30px; margin: 10px 0 20px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid #3a322a;
  background: radial-gradient(60% 90% at 50% 0%, rgba(255,236,190,.18), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 2px, transparent 2px 120px),
    linear-gradient(180deg, #2a241e, #15120f); }
.wof-head h1 { font-family: 'Cinzel', Georgia, 'Times New Roman', serif; font-size: 44px; letter-spacing: .08em; text-transform: uppercase; margin: 0;
  background: linear-gradient(180deg, #fff1c4, #d8ae4b 55%, #9c7425); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wof-head p { color: #c9bfae; max-width: 560px; margin: 10px auto 0; }
.wof-kicker { font-size: 12px; letter-spacing: .3em; color: #c9a24a; font-weight: 800; }
.wof-lights { position: absolute; inset: 0; pointer-events: none; display: flex; justify-content: space-around; }
.wof-lights i { width: 2px; height: 0; }
.wof-lights i::after { content: ''; position: absolute; top: 0; width: 220px; height: 260px; transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 0%, rgba(255,240,200,.16), transparent 75%); }

.wof-year { margin: 0 0 30px; }
.wof-year h2 { display: flex; align-items: center; gap: 14px; text-align: center; font-family: 'Cinzel', Georgia, serif; font-size: 18px; letter-spacing: .06em; color: #e7d6a8; }
.wof-year h2::before, .wof-year h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #6b5a3a, transparent); }
.wof-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; padding: 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--wof-wall), #121010); border: 1px solid #2e2822; box-shadow: inset 0 20px 60px rgba(0,0,0,.45); }

/* ART HOOK: .wof-plaque background = wood plaque frame (wall-of-fame/plaque-gold.png, plaque-silver.png). */
.wof-plaque { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px 18px; border-radius: 14px;
  background: linear-gradient(160deg, #3b2a1a, #24180e 60%, #2f2114); border: 3px solid var(--wof-brass2);
  box-shadow: 0 14px 30px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,220,150,.08); }
.wof-plaque.silver { border-color: var(--wof-silver2); }
.wof-plaque.empty { opacity: .6; border-style: dashed; }
.wof-spot { position: absolute; top: -18px; left: 50%; width: 240px; height: 200px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 80% at 50% 0%, rgba(255,240,200,.22), transparent 75%); }
.wof-frame { position: relative; width: 150px; height: 170px; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
  border: 6px solid var(--wof-brass); box-shadow: 0 0 0 2px #2a1d10, 0 8px 18px rgba(0,0,0,.5); background: #1a1410; }
.wof-plaque.silver .wof-frame { border-color: var(--wof-silver); }
.wof-frame img { width: 100%; height: 100%; object-fit: cover; }
.wof-avatar { width: 100%; height: 100%; display: grid; place-items: center; font-family: 'Cinzel', Georgia, serif; font-size: 52px; font-weight: 700;
  color: #2a1d08; background: radial-gradient(circle at 35% 30%, #fff0bf, #d6aa45 55%, #8f6820); }
.wof-plaque.silver .wof-avatar { color: #23272b; background: radial-gradient(circle at 35% 30%, #ffffff, #c4cad0 55%, #6f777e); }
.wof-pending { position: absolute; bottom: 0; left: 0; right: 0; font-size: 11px; background: rgba(0,0,0,.7); color: #fff; padding: 3px; }
.wof-trophy { width: 64px; height: 64px; object-fit: contain; margin: -26px 0 2px; position: relative; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
/* ART HOOK: .wof-plate background = engraved brass nameplate (wall-of-fame/nameplate.png). */
.wof-plate { width: 100%; padding: 12px 12px 10px; border-radius: 6px; color: #2a1d08;
  background: linear-gradient(180deg, #f0d48a, #c9a24a 45%, #a8822f); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 0 #5a4116; }
.wof-plaque.silver .wof-plate { color: #1f2327; background: linear-gradient(180deg, #f1f3f5, #c8cdd2 45%, #9aa2a9); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 0 #4d5359; }
.wof-title { font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.wof-name { font-family: 'Cinzel', Georgia, serif; font-size: 22px; font-weight: 700; line-height: 1.15; margin-top: 2px; word-break: break-word; }
.wof-team { font-size: 13px; font-style: italic; opacity: .85; }
.wof-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(0,0,0,.2); }
.wof-stats div { display: flex; flex-direction: column; }
.wof-stats b { font-size: 14px; font-variant-numeric: tabular-nums; }
.wof-stats small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.wof-q { font-size: 11px; margin-top: 6px; opacity: .8; }
.wof-plate blockquote { margin: 8px 0 0; font-style: italic; font-size: 13px; }
@media (max-width: 600px) {
  .wof-head h1 { font-size: 32px; }
  .wof-row { padding: 14px 10px; gap: 30px; }
}

/* Leaderboard honors badges (public/app.js renderLeaderboards). */
.hon { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.hon.champion { background: rgba(242,193,78,.18); color: var(--gold); border: 1px solid rgba(242,193,78,.5); }
.hon.runnerup { background: rgba(200,205,210,.14); color: #d5dade; border: 1px solid rgba(200,205,210,.4); }
.hon.invited { background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }
.inv-lb-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
/* Home page strip: the live leaderboard, the Invitational and the Wall of Fame. */
.inv-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.inv-home a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.inv-home a:hover { border-color: var(--gold); }
.inv-home a.lead { border-color: rgba(242,193,78,.55); background: linear-gradient(135deg, rgba(242,193,78,.16), var(--panel) 70%); }
.inv-home small { display: block; color: var(--muted); font-size: 12px; }
.inv-home .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 5px; animation: invpulse 1.4s infinite; vertical-align: 1px; }
@keyframes invpulse { 50% { opacity: .3; } }
@media (max-width: 760px) { .inv-home { grid-template-columns: 1fr; gap: 8px; } .inv-home a { padding: 10px 12px; } }
.legal-callout { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--gold); background: rgba(242,193,78,.1); }
/* Admin › Invitational (public/admin-invitational.js). */
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 12px; }
.ai-prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ai-prize { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ai-prize .money { display: flex; align-items: center; gap: 6px; }
.ai-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.ai-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px; border-bottom: 1px solid var(--line); }
.ai-table td { padding: 6px; border-bottom: 1px solid var(--line2); }
.ai-table .pill.ok, .ai-win .pill.ok { color: var(--turf); } .ai-table .pill.warn { color: #f6a35c; }
.ai-win { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.ai-win-pic { width: 64px; height: 72px; flex: none; border-radius: 6px; overflow: hidden; background: var(--panel2); display: grid; place-items: center; font-size: 11px; color: var(--muted); text-align: center; }
.ai-win-pic img { width: 100%; height: 100%; object-fit: cover; }
.ai-note { max-width: 240px; padding: 5px 8px; font-size: 13px; }
.ai-art { margin: 0; padding-left: 18px; } .ai-art li { margin: 4px 0; }
.inv-pfp { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); margin: 6px 0 4px; }
.inv-pfp > img, .inv-pfp > span { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 800; background: var(--gold); color: #1b1404; }
.inv-pfp > div { flex: 1; min-width: 0; }
/* Profile picture (account menu › Profile picture) and the account button. */
.avatar.has-pic { background: none; overflow: hidden; }
.avatar.has-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pfp-box { display: flex; gap: 16px; align-items: center; margin: 8px 0 14px; }
.pfp-big { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font-size: 38px; font-weight: 800; background: var(--turf); color: var(--on-accent); }
.pfp-big img { width: 100%; height: 100%; object-fit: cover; }
.btn-like { display: inline-block; margin: 0; cursor: pointer; }
.btn-like .button-look { display: inline-block; border-radius: 8px; padding: 9px 14px; background: var(--turf); color: var(--on-accent); font-weight: 700; font-size: 15px; }
.ai-pics { display: flex; flex-wrap: wrap; gap: 12px; }
.ai-pic { display: flex; flex-direction: column; gap: 6px; align-items: center; width: 140px; text-align: center; font-size: 13px; }
.ai-pic img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--panel2); }
