/* Leaderboards page, "Hall of Destruction" (leaderboards.html, es/leaderboards.html). Draft, branch leaderboard-ticker.
   Site palette and fonts (style.css) plus one accent per board. Art: the card-safe character portraits already on
   the site (img/characters), never purchased Asset Store content. All motion stops under prefers-reduced-motion. */
.lbp { --silver: #d9dde6; --bronze: #e39a5f; --up: #7fe0a6; --down: #ff6b7d; position: relative; isolation: isolate; overflow-x: clip; }
.lbp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* starfield: two drifting layers of points, fixed behind the page */
.lbp::before, .lbp::after { content: ""; position: absolute; inset: -200px 0 0; z-index: -1; pointer-events: none; }
.lbp::before {
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8, transparent 60%), radial-gradient(1px 1px at 68% 8%, #fff6, transparent 60%),
    radial-gradient(1.5px 1.5px at 40% 62%, #ffd27a88, transparent 60%), radial-gradient(1px 1px at 86% 44%, #fff7, transparent 60%),
    radial-gradient(1px 1px at 24% 88%, #8fc8ff88, transparent 60%), radial-gradient(1.5px 1.5px at 58% 30%, #fff5, transparent 60%);
  background-size: 320px 320px; opacity: .7; animation: lbp-drift 140s linear infinite;
}
.lbp::after {
  background-image:
    radial-gradient(1px 1px at 30% 40%, #fff5, transparent 60%), radial-gradient(1px 1px at 76% 70%, #ffb15c77, transparent 60%),
    radial-gradient(1px 1px at 8% 66%, #fff4, transparent 60%), radial-gradient(1px 1px at 50% 12%, #c9b8ff77, transparent 60%);
  background-size: 190px 190px; opacity: .55; animation: lbp-drift 90s linear infinite reverse;
}
@keyframes lbp-drift { from { transform: translateY(0); } to { transform: translateY(320px); } }

/* hero */
.lbp-hero { padding: 64px 0 34px; background:
  radial-gradient(ellipse 60% 90% at 85% 0%, rgba(255,90,20,.22), transparent 70%),
  radial-gradient(ellipse 50% 70% at 0% 100%, rgba(120,80,255,.12), transparent 70%); border-bottom: 1px solid var(--line); }
.lbp-hero h1 { font-family: "Orbitron", "Inter", sans-serif; font-weight: 800; font-size: clamp(34px, 7.4vw, 88px); line-height: .98; letter-spacing: .04em; margin: 0 0 18px; max-width: 12ch;
  background: linear-gradient(180deg, #fff6e8 0%, #ffd27a 45%, #ff7a2e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(255,110,30,.45)); overflow-wrap: anywhere; }
.lbp-hero .lead { font-size: clamp(17px, 2.2vw, 20px); max-width: 640px; margin: 0 0 22px; color: #eadfd6; }
.lbp-live { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(18,15,23,.85); border: 1px solid var(--line); font-size: 15px; color: var(--text); }
.lbp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(127,224,166,.6); flex: none; animation: lbp-pulse 2s ease-out infinite; }
.lbp-live.lbp-wait .lbp-dot { background: var(--dim); animation: none; }
.lbp-live.lbp-off .lbp-dot { background: var(--ember2); animation: none; }
.lbp-live.lbp-off { border-color: #4a2a14; }
@keyframes lbp-pulse { 0% { box-shadow: 0 0 0 0 rgba(127,224,166,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(127,224,166,0); } }
.lbp-abs { display: block; margin-top: 10px; color: var(--dim); font-size: 14px; }

/* layout: boards + Discord */
.lbp-main { padding: 36px 0 80px; }
.lbp-layout { display: grid; gap: 24px; }
.lbp-boards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); align-content: start; }
/* five boards: the last one spans the row when it would sit alone in a two-column grid */
.lbp-board:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 1180px) { .lbp-layout { grid-template-columns: minmax(0, 1fr) 340px; } .lbp-side { position: sticky; top: 80px; align-self: start; } }

/* a board */
.lbp-board { --c: var(--ember); position: relative; min-width: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--panel)) 0%, var(--panel) 220px); border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line)); border-radius: 18px; padding: 18px; }
.lbp-board[data-k="damage"] { --c: #ff7a2e; }
.lbp-board[data-k="planets"] { --c: #6fc3ff; }
.lbp-board[data-k="stars"] { --c: #4fe3c1; }
.lbp-board[data-k="celestials"] { --c: #b49bff; }
.lbp-board[data-k="rampage"] { --c: #ff4767; }
.lbp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lbp-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #0d0b11); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 30%, transparent); }
.lbp-icon svg { width: 24px; height: 24px; }
.lbp-head h2 { font-family: "Orbitron", "Inter", sans-serif; font-size: clamp(17px, 2.2vw, 20px); letter-spacing: .04em; line-height: 1.2; margin: 0; color: var(--text); overflow-wrap: anywhere; }
.lbp-head p { margin: 2px 0 0; color: var(--dim); font-size: 14px; line-height: 1.35; }

/* #1: the throne */
.lbp-throne { position: relative; overflow: hidden; border-radius: 14px; min-height: 168px; padding: 18px 18px 16px; display: grid; align-content: end; gap: 2px;
  background: linear-gradient(90deg, #0d0a10 0%, rgba(13,10,16,.92) 42%, rgba(13,10,16,.25) 100%), var(--art) right center / auto 130% no-repeat, #0d0a10;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); box-shadow: 0 0 0 1px rgba(255,210,122,.08) inset, 0 10px 40px color-mix(in srgb, var(--c) 22%, transparent); }
.lbp-crown { position: absolute; top: 14px; left: 16px; display: flex; align-items: center; gap: 8px; color: var(--gold); font: 800 14px/1 "Orbitron", "Inter", sans-serif; letter-spacing: .06em; }
.lbp-crown svg { width: 26px; height: 20px; filter: drop-shadow(0 0 8px rgba(255,210,122,.7)); }
.lbp-t-name { font-size: 16px; font-weight: 600; color: #f6e9d6; margin-top: 30px; }
.lbp-t-score { font: 800 clamp(34px, 5.4vw, 52px)/1.05 "Orbitron", "Inter", sans-serif; letter-spacing: .01em; color: #fff; text-shadow: 0 0 22px color-mix(in srgb, var(--c) 80%, transparent), 0 0 2px #000; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lbp-throne .lbp-move { position: absolute; top: 14px; right: 14px; }
.lbp-rec { position: absolute; right: 14px; bottom: 14px; padding: 4px 9px; border-radius: 999px; font: 700 12px/1.2 "Inter", sans-serif; color: #1a0a02; background: var(--gold); box-shadow: 0 0 16px rgba(255,210,122,.6); }
.lbp-rec[hidden] { display: none; }
.lbp-throne.lbp-shine::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255,240,200,.38) 48%, rgba(255,255,255,.55) 50%, rgba(255,240,200,.38) 52%, transparent 70%); transform: translateX(-120%); animation: lbp-shimmer 1.6s ease-out 2; }
@keyframes lbp-shimmer { to { transform: translateX(120%); } }

/* #2 and #3 */
.lbp-pod { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lbp-pod li { position: relative; min-width: 0; border-radius: 12px; padding: 12px 12px 10px; background: #0f0c13; border: 1px solid var(--line); }
.lbp-pod li.lbp-r2 { border-color: color-mix(in srgb, var(--silver) 45%, transparent); box-shadow: 0 0 18px rgba(217,221,230,.08); }
.lbp-pod li.lbp-r3 { border-color: color-mix(in srgb, var(--bronze) 50%, transparent); box-shadow: 0 0 18px rgba(227,154,95,.10); }
.lbp-medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 800 13px/1 "Orbitron", "Inter", sans-serif; color: #15110a; }
.lbp-r2 .lbp-medal { background: radial-gradient(circle at 35% 30%, #fff, var(--silver) 60%, #8f949e); }
.lbp-r3 .lbp-medal { background: radial-gradient(circle at 35% 30%, #ffe0c2, var(--bronze) 60%, #8c5226); }
.lbp-p-name { display: block; margin-top: 6px; font-size: 14px; color: #e8dde4; overflow-wrap: anywhere; }
.lbp-p-score { display: block; font: 800 clamp(20px, 2.6vw, 24px)/1.15 "Orbitron", "Inter", sans-serif; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lbp-pod .lbp-move { position: absolute; top: 12px; right: 10px; }

/* 4 to 10 */
.lbp-list { list-style: none; margin: 10px 0 0; padding: 0; }
.lbp-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 40px; align-items: center; gap: 8px; padding: 8px 6px; border-top: 1px solid rgba(42,34,48,.8); font-size: 15px; }
.lbp-row:first-child { border-top: 0; }
.lbp-rank { color: var(--dim); font: 700 13px/1 "Orbitron", "Inter", sans-serif; }
.lbp-name { min-width: 0; overflow-wrap: anywhere; color: #e8dde4; }
.lbp-score { font-weight: 700; color: var(--c); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lbp-row .lbp-move { justify-self: end; }

/* rank change */
.lbp-move { font: 700 12px/1 "Inter", sans-serif; white-space: nowrap; }
.lbp-move.up { color: var(--up); }
.lbp-move.down { color: var(--down); }
.lbp-move.new { color: #1a0a02; background: var(--c); padding: 3px 6px; border-radius: 6px; font-size: 11px; }
.lbp-in { animation: lbp-in .6s ease-out both; }
@keyframes lbp-in { from { opacity: 0; transform: translateY(8px); } }

/* empty */
.lbp-empty { display: grid; place-items: center; text-align: center; gap: 4px; min-height: 168px; padding: 20px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--c) 35%, var(--line));
  background: linear-gradient(90deg, rgba(13,10,16,.94), rgba(13,10,16,.7)), var(--art) right center / auto 130% no-repeat, #0d0a10; }
.lbp-empty b { font: 800 20px/1.2 "Orbitron", "Inter", sans-serif; color: var(--text); letter-spacing: .03em; }
.lbp-empty span { color: var(--dim); font-size: 15px; }

/* Discord */
.lbp-side { min-width: 0; }
.lbp-discord { background: linear-gradient(160deg, rgba(88,101,242,.24), rgba(88,101,242,.05) 60%), var(--panel); border: 1px solid #5865F2; border-radius: 18px; padding: 20px; }
.lbp-discord h2 { font-family: "Orbitron", "Inter", sans-serif; font-size: 20px; letter-spacing: .04em; margin: 0 0 8px; }
.lbp-discord p { margin: 0 0 14px; color: #d8cdd3; font-size: 15px; }
.lbp-discord .btn.discord { margin: 0; display: block; text-align: center; }
.lbp-discord .discord-widget { max-width: 100%; margin: 16px 0 0; height: 460px; }
@media (min-width: 760px) and (max-width: 1179px) {
  .lbp-discord { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: center; }
  .lbp-discord .discord-widget { margin: 0; }
}
.lbp-note { margin: 24px 0 0; color: var(--dim); font-size: 14px; max-width: 760px; }

/* small screens */
@media (max-width: 480px) {
  .lbp-hero { padding: 40px 0 26px; }
  .lbp-wrap { padding: 0 16px; }
  .lbp-board { padding: 14px; border-radius: 16px; }
  .lbp-throne { padding: 14px; min-height: 150px; }
  .lbp-row { grid-template-columns: 28px minmax(0, 1fr) auto 34px; gap: 6px; font-size: 14px; padding: 8px 2px; }
}
@media (max-width: 360px) { .lbp-pod { grid-template-columns: 1fr; } }

/* "Show top 100" button and its scrollable panel */
.lbp-more { display: block; width: 100%; margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; cursor: pointer; font: 700 14px/1.2 "Inter", sans-serif; letter-spacing: .02em;
  color: var(--text); background: color-mix(in srgb, var(--c) 12%, #0f0c13); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); transition: background .2s, border-color .2s; }
.lbp-more:hover { background: color-mix(in srgb, var(--c) 22%, #0f0c13); border-color: var(--c); }
.lbp-more:focus-visible, .lbp-all-close:focus-visible, .lbp-all-scroll:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.lbp-more[aria-expanded="true"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.lbp-more[hidden], .lbp-all[hidden] { display: none; }
.lbp-all { border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); border-top: 0; border-radius: 0 0 12px 12px; background: #0d0a10; padding: 10px 10px 8px; }
.lbp-all-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 8px; }
.lbp-all-head h3 { margin: 0; font: 800 15px/1.25 "Orbitron", "Inter", sans-serif; letter-spacing: .03em; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.lbp-all-close { flex: none; padding: 7px 12px; border-radius: 8px; cursor: pointer; font: 700 13px/1 "Inter", sans-serif; color: var(--text); background: #1a1520; border: 1px solid var(--line); }
.lbp-all-close:hover { border-color: var(--c); }
.lbp-all-scroll { max-height: min(440px, 60vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: color-mix(in srgb, var(--c) 55%, #333) transparent; border-radius: 8px; }
.lbp-all-list { list-style: none; margin: 0; padding: 0; }
.lbp-all-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border-top: 1px solid rgba(42,34,48,.8); font-size: 14px; }
.lbp-all-row:first-child { border-top: 0; }
.lbp-all-row:nth-child(even) { background: rgba(255,255,255,.02); }
.lbp-all-top .lbp-rank { color: var(--gold); }
.lbp-all-msg { margin: 0; padding: 14px 8px; color: var(--dim); font-size: 14px; }

/* "New records" strip under the boards */
.lbp-news { --dur: 40s; position: relative; display: flex; align-items: stretch; margin: 26px 0 0; border-radius: 14px; overflow: hidden; background: linear-gradient(90deg, rgba(255,122,46,.12), rgba(18,15,23,.92) 30%), var(--panel); border: 1px solid #4a2a14; }
.lbp-news[hidden] { display: none; }
.lbp-news-badge { flex: none; display: flex; align-items: center; padding: 0 16px; font: 800 13px/1.2 "Orbitron", "Inter", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #1a0a02; background: linear-gradient(180deg, var(--gold), #ff9a3c); }
.lbp-news-track { flex: 1; min-width: 0; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.lbp-news-run { list-style: none; margin: 0; padding: 0 0 0 20px; display: flex; flex: none; gap: 34px; align-items: center; white-space: nowrap; }
.lbp-news-moving .lbp-news-run { animation: lbp-news var(--dur) linear infinite; }
.lbp-news-track:hover .lbp-news-run, .lbp-news-track:focus-within .lbp-news-run { animation-play-state: paused; }
@keyframes lbp-news { to { transform: translateX(-100%); } }
.lbp-news-item { padding: 13px 0; font-size: 15px; color: #e8dde4; }
.lbp-news-item b { color: #fff; font-weight: 700; }
.lbp-news-item em { font-style: normal; font-weight: 700; color: var(--k, var(--gold)); }
.lbp-news-item[data-k="damage"] { --k: #ff7a2e; }
.lbp-news-item[data-k="planets"] { --k: #6fc3ff; }
.lbp-news-item[data-k="stars"] { --k: #4fe3c1; }
.lbp-news-item[data-k="celestials"] { --k: #b49bff; }
.lbp-news-item[data-k="rampage"] { --k: #ff4767; }
.lbp-news-item small { margin-left: 8px; color: var(--dim); font-size: 13px; }
.lbp-news-item::before { content: "\2605"; margin-right: 8px; color: var(--k, var(--gold)); }

/* The Omniseers: four vast watchers behind the page, faded at the edges, slow glow and drift */
.lbp-seers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.lbp-seer { position: absolute; width: clamp(380px, 42vw, 760px); height: auto; opacity: .5; mix-blend-mode: screen; user-select: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 100%); mask-image: radial-gradient(closest-side, #000 50%, transparent 100%);
  animation: lbp-seer-glow 9s ease-in-out infinite alternate, lbp-seer-drift 26s ease-in-out infinite alternate; }
/* hero: Solvane (golden eye) faint behind the title, Ysmera (pale blue eye) between the text and Thraken */
.lbp-seer-1 { left: -8vw; top: -60px; --o1: .32; --o2: .46; }
.lbp-seer-2 { left: 38vw; top: -40px; width: clamp(320px, 32vw, 540px); --o1: .4; --o2: .58; animation-delay: -3s, -8s; }
/* beside the boards: Nyxara (violet eye) left, Aurelune right, half off the page edge */
.lbp-seer-3 { left: -15vw; top: 820px; --o1: .5; --o2: .68; animation-delay: -6s, -15s; }
.lbp-seer-4 { right: -14vw; top: 1420px; --o1: .46; --o2: .64; animation-delay: -1s, -4s; }
@keyframes lbp-seer-glow { from { opacity: var(--o1, .2); filter: saturate(.9) brightness(.9); } to { opacity: var(--o2, .35); filter: saturate(1.2) brightness(1.15) drop-shadow(0 0 40px rgba(255,210,122,.25)); } }
@keyframes lbp-seer-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(0, -26px, 0) scale(1.04); } }
.lbp-watch { margin: 12px 0 0; font-size: 14px; }
.lbp-watch a { display: inline-flex; align-items: center; gap: 8px; color: #cdb8ff; text-decoration: none; letter-spacing: .03em; font-style: italic; }
.lbp-watch a:hover { color: #fff; text-decoration: underline; }
.lbp-watch svg { width: 18px; height: 18px; flex: none; filter: drop-shadow(0 0 6px rgba(180,155,255,.7)); }
/* small screens: two smaller watchers in the hero only, never wider than the page */
@media (max-width: 760px) {
  .lbp-seer { width: 300px; --o1: .3; --o2: .44; }
  .lbp-seer-1 { left: -90px; top: -10px; }
  .lbp-seer-2 { right: -90px; left: auto; top: 250px; width: 280px; }
  /* the other two watch from the edges further down, half off the page (the .lbp-seers box clips them) */
  .lbp-seer-3 { display: block; left: -150px; top: 1500px; width: 280px; --o1: .34; --o2: .48; }
  .lbp-seer-4 { display: block; right: -150px; left: auto; top: 3300px; width: 280px; --o1: .34; --o2: .48; }
  .lbp-news-badge { padding: 0 10px; font-size: 11px; }
  .lbp-news-item { font-size: 14px; }
}

/* reduced motion: nothing moves */
@media (prefers-reduced-motion: reduce) {
  .lbp::before, .lbp::after, .lbp-dot, .lbp-in, .lbp-throne.lbp-shine::after, .lbp-seer, .lbp-news-run { animation: none !important; }
  .lbp-throne.lbp-shine::after { display: none; }
  .lbp-more { transition: none; }
  .lbp-seer { opacity: var(--o2, .3); }
  /* the new-records strip wraps instead of scrolling */
  .lbp-news { flex-direction: column; }
  .lbp-news-badge { padding: 8px 16px; }
  .lbp-news-track { -webkit-mask-image: none; mask-image: none; }
  .lbp-news-run { flex-wrap: wrap; white-space: normal; gap: 0 28px; padding: 4px 16px; }
  .lbp-news-item { padding: 6px 0; }
}

/* fixes after the first screenshots */
.lbp-boards { padding: 0; align-items: start; }   /* style.css gives every <section> 72px padding */
.lbp-hero .lbp-wrap { position: relative; }
.lbp-hero-art { position: absolute; right: 10px; top: -48px; width: min(420px, 38vw); height: auto; pointer-events: none; z-index: -1;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%); mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
  filter: drop-shadow(0 0 40px rgba(255,210,122,.25)) saturate(1.1); }
@media (max-width: 860px) { .lbp-hero-art { display: none; } }

/* ---- Nov 6, 2026: readable boards over brighter Omniseers ---- */
/* a dark scrim behind each board and behind the hero text, so names and scores stay easy to read */
.lbp-board { box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 18px 60px rgba(4,3,8,.75); }
.lbp-hero .lbp-wrap::before { content: ""; position: absolute; z-index: -1; left: -40px; top: -40px; width: min(760px, 100%); height: calc(100% + 80px); pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(7,6,10,.78), rgba(7,6,10,.45) 60%, transparent 100%); }
.lbp-hero .lead { text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.lbp-news, .lbp-discord { box-shadow: 0 14px 50px rgba(4,3,8,.7); }

/* ---- every player is clickable: the name is a button, its ::after covers the card or row ---- */
.lbp-who { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.lbp-who::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.lbp-who:focus { outline: none; }
.lbp-who:focus-visible::after { outline: 2px solid var(--c, var(--gold)); outline-offset: -2px; }
.lbp-row, .lbp-all-row { position: relative; border-radius: 8px; transition: background .15s; }
.lbp-row:hover, .lbp-all-row:hover { background: color-mix(in srgb, var(--c) 12%, transparent); }
.lbp-pod li { transition: border-color .15s, transform .15s; }
.lbp-pod li:hover { border-color: var(--c); }
.lbp-pod li:hover .lbp-p-name, .lbp-row:hover .lbp-name, .lbp-all-row:hover .lbp-name, .lbp-throne:hover .lbp-t-name { text-decoration: underline; text-underline-offset: 3px; }
.lbp-news-item { position: relative; }
.lbp-news-who { color: #fff; font-weight: 700; }
.lbp-news-who::after { inset: 6px -4px; }
.lbp-news-who:hover { text-decoration: underline; }
/* board titles and icons open the top 100 */
.lbp-h-btn { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.lbp-h-btn:hover { color: var(--c); }
.lbp-h-btn:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; border-radius: 4px; }
.lbp-icon-btn { cursor: pointer; }

/* ---- #1: the Reigning Champion's throne ---- */
.lbp-throne { min-height: 214px; isolation: isolate; border: 1px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(255,210,122,.25) inset, 0 0 22px rgba(255,210,122,.35), 0 12px 44px color-mix(in srgb, var(--c) 28%, transparent);
  animation: lbp-throne-glow 3.2s ease-in-out infinite alternate; }
@keyframes lbp-throne-glow {
  from { box-shadow: 0 0 0 1px rgba(255,210,122,.2) inset, 0 0 14px rgba(255,210,122,.28), 0 12px 44px color-mix(in srgb, var(--c) 22%, transparent); }
  to { box-shadow: 0 0 0 1px rgba(255,226,160,.45) inset, 0 0 34px rgba(255,200,100,.6), 0 12px 54px color-mix(in srgb, var(--c) 40%, transparent); } }
.lbp-t-seer { position: absolute; z-index: -1; left: 34%; top: 50%; width: 260px; height: auto; transform: translate(-50%, -50%); opacity: .2; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); }
.lbp-crown { font-size: 15px; gap: 10px; top: 16px; text-transform: uppercase; text-shadow: 0 0 12px rgba(255,190,90,.6); }
.lbp-crown svg { width: 36px; height: 28px; }
.lbp-rules { position: absolute; top: 50px; left: 16px; padding: 3px 9px; border-radius: 999px; font: 700 12px/1.3 "Inter", sans-serif; color: #1a0a02;
  background: linear-gradient(180deg, #ffe7a8, var(--gold)); box-shadow: 0 0 12px rgba(255,210,122,.5); }
.lbp-t-name { font-size: 18px; font-weight: 700; color: #fff3df; margin-top: 54px; text-shadow: 0 1px 3px #000; position: static; }
.lbp-t-score { text-shadow: 0 0 22px color-mix(in srgb, var(--c) 80%, transparent), 0 1px 3px #000; }
/* slow sparkles drifting up through the throne */
.lbp-sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lbp-sparks i { position: absolute; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: #ffe3a0; box-shadow: 0 0 8px 2px rgba(255,190,90,.7); opacity: 0;
  animation: lbp-spark 5.5s linear infinite; }
.lbp-sparks i:nth-child(1) { left: 8%; animation-delay: 0s; }
.lbp-sparks i:nth-child(2) { left: 22%; animation-delay: -1.6s; animation-duration: 6.4s; }
.lbp-sparks i:nth-child(3) { left: 39%; animation-delay: -3.1s; }
.lbp-sparks i:nth-child(4) { left: 55%; animation-delay: -.8s; animation-duration: 7s; width: 3px; height: 3px; }
.lbp-sparks i:nth-child(5) { left: 70%; animation-delay: -4.2s; }
.lbp-sparks i:nth-child(6) { left: 84%; animation-delay: -2.4s; animation-duration: 6s; width: 3px; height: 3px; }
.lbp-sparks i:nth-child(7) { left: 94%; animation-delay: -5s; }
@keyframes lbp-spark { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translateY(-230px); opacity: 0; } }
.lbp-pod li { min-height: 0; }
@media (max-width: 480px) {
  .lbp-throne { min-height: 196px; }
  .lbp-t-seer { width: 210px; }
  .lbp-crown { font-size: 13px; }
  .lbp-crown svg { width: 30px; height: 23px; }
  .lbp-rules { top: 46px; }
  .lbp-t-name { margin-top: 50px; }
}

/* ---- the player card: a modal on desktop, a bottom sheet on small screens ---- */
html.lbp-noscroll { overflow: hidden; }
.lbp-pc { --c: var(--gold); width: min(480px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 40px)); padding: 0; border: 1px solid #3a2f44; border-radius: 20px; color: var(--text);
  background: linear-gradient(180deg, #1a1420, #0e0b12 60%); box-shadow: 0 30px 90px rgba(0,0,0,.7); overflow: visible; }
.lbp-pc::backdrop { background: rgba(4,3,8,.72); backdrop-filter: blur(3px); }
.lbp-pc[open] { animation: lbp-pc-in .22s ease-out; }
@keyframes lbp-pc-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lbp-pc-in { position: relative; isolation: isolate; overflow: hidden auto; max-height: inherit; padding: 26px 22px 20px; border-radius: inherit; }
.lbp-pc-x { position: absolute; z-index: 3; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--text);
  background: #1f1926; border: 1px solid var(--line); }
.lbp-pc-x svg { width: 18px; height: 18px; }
.lbp-pc-x:hover { border-color: var(--gold); }
.lbp-pc-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lbp-pc-sub { margin: 0 0 4px; color: var(--dim); font: 700 12px/1.2 "Inter", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.lbp-pc h2 { margin: 0 52px 14px 0; font: 800 clamp(22px, 5vw, 28px)/1.15 "Orbitron", "Inter", sans-serif; letter-spacing: .03em; overflow-wrap: anywhere; }
.lbp-pc-h { margin: 6px 0 8px; color: var(--dim); font: 600 13px/1.2 "Inter", sans-serif; }
.lbp-pc-boards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lbp-pc-row { --k: var(--gold); display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px;
  background: #15111a; border: 1px solid var(--line); }
.lbp-pc-row[data-k="damage"] { --k: #ff7a2e; } .lbp-pc-row[data-k="planets"] { --k: #6fc3ff; }
.lbp-pc-row[data-k="stars"] { --k: #4fe3c1; } .lbp-pc-row[data-k="celestials"] { --k: #b49bff; } .lbp-pc-row[data-k="rampage"] { --k: #ff4767; }
.lbp-pc-icon { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--k); background: color-mix(in srgb, var(--k) 14%, #0d0b11); border: 1px solid color-mix(in srgb, var(--k) 40%, transparent); }
.lbp-pc-icon svg { width: 20px; height: 20px; }
.lbp-pc-board { font-weight: 600; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.lbp-pc-rank { grid-column: 3; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; gap: 6px; font: 800 15px/1.2 "Orbitron", "Inter", sans-serif; color: var(--text); }
.lbp-pc-score { grid-column: 2 / 4; grid-row: 2; font-weight: 700; font-size: 15px; color: var(--k); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lbp-pc-none { grid-column: 2 / 4; grid-row: 2; color: var(--dim); font-size: 14px; }
.lbp-pc-cr svg { width: 20px; height: 16px; color: var(--gold); display: block; }
.lbp-pc-lead { border-color: var(--gold); background: linear-gradient(90deg, rgba(255,210,122,.16), #15111a 70%); }
.lbp-pc-lead .lbp-pc-rank, .lbp-pc-lead .lbp-pc-board { color: var(--gold); }
.lbp-pc-msg { margin: 10px 0 0; color: var(--dim); font-size: 14px; }
.lbp-pc-msg:empty { display: none; }
.lbp-pc-seer, .lbp-pc-burst, .lbp-pc-crown[hidden], .lbp-pc-leads[hidden] { display: none; }

/* the champion's card: gold glow, crown header, an Omniseer watching, a bigger name, the boards they lead in gold */
.lbp-pc-champ { border-color: var(--gold); background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255,170,60,.22), transparent 70%), linear-gradient(180deg, #1d1510, #0e0b12 60%);
  animation: lbp-pc-in .22s ease-out, lbp-pc-glow 3s ease-in-out .22s infinite alternate; }
@keyframes lbp-pc-glow { from { box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 18px rgba(255,210,122,.35); } to { box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 46px rgba(255,190,90,.7); } }
.lbp-pc-champ .lbp-pc-seer { display: block; position: absolute; z-index: -1; right: -70px; top: -40px; width: 340px; height: auto; opacity: .22; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); }
.lbp-pc-crown { display: flex; align-items: center; gap: 10px; margin: 0 52px 10px 0; color: var(--gold); font: 800 15px/1.2 "Orbitron", "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255,190,90,.6); }
.lbp-pc-crown svg { width: 40px; height: 31px; flex: none; filter: drop-shadow(0 0 10px rgba(255,210,122,.8)); }
.lbp-pc-champ h2 { font-size: clamp(28px, 7vw, 38px); color: #fff3df; text-shadow: 0 0 24px rgba(255,170,60,.45); }
.lbp-pc-leads { margin: -4px 0 14px; color: var(--gold); font-weight: 700; font-size: 15px; }
.lbp-pc-burst.go { display: block; position: absolute; z-index: 2; left: 50%; top: 56px; width: 0; height: 0; pointer-events: none; }
.lbp-pc-burst i { position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ffe3a0; box-shadow: 0 0 10px 3px rgba(255,160,60,.8); opacity: 0; }
.lbp-pc-burst.go i { animation: lbp-burst .9s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes lbp-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.3); } }

@media (max-width: 640px) {
  .lbp-pc { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 86vh; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .lbp-pc[open] { animation: lbp-sheet-in .25s ease-out; }
  .lbp-pc-champ[open] { animation: lbp-sheet-in .25s ease-out, lbp-pc-glow 3s ease-in-out .25s infinite alternate; }
  .lbp-pc-in { padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); }
  .lbp-pc-in::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: #3a3142; margin: -8px auto 14px; }
}
@keyframes lbp-sheet-in { from { transform: translateY(40px); opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
  .lbp-throne, .lbp-sparks i, .lbp-pc, .lbp-pc[open], .lbp-pc-champ, .lbp-pc-champ[open], .lbp-pc-burst i { animation: none !important; }
  .lbp-sparks, .lbp-pc-burst { display: none !important; }
  .lbp-row, .lbp-all-row, .lbp-pod li { transition: none; }
}

/* ---- Reign rewards panel, right under the hero (anchor #reign-rewards) ---- */
.lbp-reign { padding: 26px 0 0; scroll-margin-top: 80px; }
.lbp-reign-in { display: grid; gap: 14px 24px; grid-template-columns: minmax(0, 1fr); padding: 18px 20px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  background: linear-gradient(100deg, rgba(255,190,90,.12), rgba(18,15,23,.94) 45%), var(--panel); box-shadow: 0 14px 50px rgba(4,3,8,.7); }
@media (min-width: 900px) { .lbp-reign-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .lbp-reign-fine { grid-column: 1 / -1; } }
.lbp-reign h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 800 clamp(18px, 2.4vw, 22px)/1.2 "Orbitron", "Inter", sans-serif; letter-spacing: .05em; color: var(--gold); }
.lbp-reign h2 svg { width: 30px; height: 23px; flex: none; filter: drop-shadow(0 0 8px rgba(255,210,122,.7)); }
.lbp-reign-text p { margin: 0; color: #e6dbe1; font-size: 15px; max-width: 620px; }
.lbp-reign-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lbp-reign-tiers li { display: grid; gap: 2px; justify-items: center; text-align: center; min-width: 0; padding: 10px 14px; border-radius: 12px; background: #0f0c13; border: 1px solid var(--line); }
.lbp-reign-tiers b { font: 800 17px/1.2 "Orbitron", "Inter", sans-serif; color: var(--text); white-space: nowrap; }
.lbp-reign-tiers span { font-size: 13px; font-weight: 600; color: var(--dim); }
.lbp-reign-t1 { border-color: var(--gold) !important; background: linear-gradient(180deg, rgba(255,210,122,.18), #0f0c13) !important; box-shadow: 0 0 18px rgba(255,210,122,.25); }
.lbp-reign-t1 b, .lbp-reign-t1 span { color: var(--gold); }
.lbp-reign-t2 { border-color: color-mix(in srgb, var(--silver) 50%, transparent) !important; }
.lbp-reign-t2 b { color: var(--silver); }
.lbp-reign-t3 b { color: var(--bronze); }
.lbp-reign-t3 { border-color: color-mix(in srgb, var(--bronze) 40%, var(--line)) !important; }
.lbp-reign-fine { margin: 0; color: var(--dim); font-size: 13px; }
@media (max-width: 480px) { .lbp-reign-in { padding: 14px; } .lbp-reign-tiers { gap: 6px; } .lbp-reign-tiers li { padding: 9px 6px; } .lbp-reign-tiers b { font-size: 15px; } .lbp-reign-tiers span { font-size: 12px; } }
.lbp-reign + .lbp-main { padding-top: 24px; }

/* Omniseer placement after the screenshots: Aurelune watches beside the new-records strip and note (the sticky
   Discord panel hid her beside the boards); on small screens the hero scrim is lighter so the watchers read. */
.lbp-seer-4 { top: auto; bottom: -120px; right: -9vw; }
@media (max-width: 760px) {
  .lbp-hero .lbp-wrap::before { background: radial-gradient(ellipse 80% 60% at 40% 50%, rgba(7,6,10,.62), rgba(7,6,10,.3) 60%, transparent 100%); }
  .lbp-seer-1 { left: auto; right: -110px; top: -40px; --o1: .42; --o2: .56; }
  .lbp-seer-2 { right: auto; left: -120px; top: 300px; --o1: .38; --o2: .52; }
  .lbp-seer-4 { top: auto; bottom: -60px; right: -140px; }
}

/* How to Reign link in the hero (Nov 6, 2026) */
.lbp-howto { margin: -10px 0 18px; font-size: 15px; }
.lbp-howto a { color: var(--gold); font-weight: 600; text-underline-offset: 3px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.lbp-howto a:hover { color: #fff; }
.lbp-reign-fine a { color: var(--gold); white-space: nowrap; }

/* ---- Tabs under the hero: Leaderboards | Player Ideas (Nov 19, 2026) ---- */
.lbp-tabbar { padding: 26px 0 0; }
.lbp-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; width: fit-content; max-width: 100%; border-radius: 14px; background: rgba(18,15,23,.9); border: 1px solid var(--line); box-shadow: 0 14px 50px rgba(4,3,8,.6); }
.lbp-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border-radius: 10px; cursor: pointer; font: 800 14px/1.2 "Orbitron", "Inter", sans-serif; letter-spacing: .05em;
  color: var(--dim); background: transparent; border: 1px solid transparent; transition: color .15s, background .15s, border-color .15s; }
.lbp-tab svg { width: 18px; height: 18px; flex: none; }
.lbp-tab:hover { color: var(--text); background: rgba(255,210,122,.06); }
.lbp-tab[aria-selected="true"] { color: #1a0a02; background: linear-gradient(180deg, #ffe7a8, var(--gold)); border-color: var(--gold); box-shadow: 0 0 16px rgba(255,210,122,.35); }
.lbp-tab:focus { outline: none; }
.lbp-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lbp-panel[hidden] { display: none; }
.lbp-panel:focus { outline: none; }
.lbp-panel .lbp-reign { padding-top: 18px; }

/* ---- Player Ideas panel ---- */
.lbp-ideas { padding: 18px 0 80px; }
.lbp-ideas-in { padding: 20px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  background: linear-gradient(160deg, rgba(255,190,90,.10), rgba(18,15,23,.95) 45%), var(--panel); box-shadow: 0 18px 60px rgba(4,3,8,.75); }
section.lbp-ideas-in { padding: 20px; }   /* style.css gives every <section> 72px padding */
.lbp-ideas-in h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 800 clamp(20px, 2.6vw, 26px)/1.2 "Orbitron", "Inter", sans-serif; letter-spacing: .05em; color: var(--gold); overflow-wrap: anywhere; }
.lbp-ideas-in h2 svg { width: 26px; height: 26px; flex: none; filter: drop-shadow(0 0 8px rgba(255,210,122,.7)); }
.lbp-ideas-lead { margin: 0 0 16px; color: #eadfd6; font-size: 16px; max-width: 680px; }
.lbp-ideas-empty { display: grid; place-items: center; align-content: center; text-align: center; gap: 6px; min-height: 160px; padding: 22px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--gold) 35%, var(--line));
  background: linear-gradient(90deg, rgba(13,10,16,.94), rgba(13,10,16,.78)), url(/img/characters/thraken.webp) right center / auto 140% no-repeat, #0d0a10; }
.lbp-ideas-empty b { font: 800 19px/1.25 "Orbitron", "Inter", sans-serif; color: var(--text); letter-spacing: .03em; }
.lbp-ideas-empty span { color: var(--dim); font-size: 15px; }
.lbp-ideas-note { margin-top: 16px; }
.lbp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lbp-ideas-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0d0a10; }
.lbp-ideas-table th, .lbp-ideas-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid rgba(42,34,48,.8); overflow-wrap: anywhere; }
.lbp-ideas-table thead th { border-top: 0; color: var(--dim); font: 700 12px/1.2 "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; background: #15111a; }
.lbp-ideas-table tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }
.lbp-ideas-name { color: #fff3df; font-weight: 700; }
.lbp-ideas-id { color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; white-space: nowrap; }
.lbp-ideas-idea { color: #e8dde4; }
.lbp-ideas-num { text-align: right !important; white-space: nowrap; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.lbp-ideas-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 700 12px/1.3 "Inter", sans-serif; color: var(--text); background: #1f1926; border: 1px solid var(--line); white-space: nowrap; }
.lbp-ideas-pill.live { color: #0b1a10; background: var(--up); border-color: var(--up); }
/* small screens: each idea becomes a card, labels on the left */
@media (max-width: 720px) {
  .lbp-tabbar { padding-top: 20px; }
  .lbp-tabs { width: 100%; }
  .lbp-tab { flex: 1 1 0; justify-content: center; gap: 6px; padding: 8px 8px; font-size: 12px; letter-spacing: .03em; text-align: center; }
  .lbp-tab svg { width: 16px; height: 16px; }
  section.lbp-ideas-in, .lbp-ideas-in { padding: 14px; }
  .lbp-ideas-table, .lbp-ideas-table tbody, .lbp-ideas-table tr, .lbp-ideas-table th, .lbp-ideas-table td { display: block; }
  .lbp-ideas-table { border: 0; background: none; }
  .lbp-ideas-table thead { display: none; }
  .lbp-ideas-table tbody { display: grid; gap: 10px; }
  .lbp-ideas-table tbody tr { border: 1px solid var(--line); border-radius: 12px; background: #0d0a10 !important; padding: 6px 0; }
  .lbp-ideas-table th, .lbp-ideas-table td { display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); gap: 10px; padding: 6px 12px; border-top: 0; text-align: left !important; white-space: normal; }
  .lbp-ideas-table th::before, .lbp-ideas-table td::before { content: attr(data-label); color: var(--dim); font: 700 11px/1.6 "Inter", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
  .lbp-ideas-name { font-size: 16px; }
  .lbp-ideas-st { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { .lbp-tab { transition: none; } }
