/* ---------- LIVE STATS ---------- */
.lookup-card { max-width: 880px; margin: 0 auto 28px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.lookup { display: flex; gap: 10px; flex-wrap: wrap; }
.lookup-input { flex: 1; min-width: 200px; position: relative; }
.lookup-input svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.lookup-input input {
  width: 100%; padding: 13px 14px 13px 42px; border-radius: 999px; font-size: 15px;
  border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text);
}
.lookup-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2); }
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--faint); }
.recent:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.ghost { border-style: dashed; color: var(--muted); background: none; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.chip .dot.on { background: var(--green); }
.lookup-msg { margin: 18px 0 0; color: var(--muted); text-align: center; }
.player { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.player-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.player-head h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; }
.player-head h3 span { color: var(--muted); font-family: var(--font); font-size: 15px; font-weight: 500; }
.player-head p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.player-head a { color: var(--accent); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.tile span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 600; }
.tile b { font-family: var(--font-display); font-size: 26px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile b.sm { font-size: 18px; }
.tile small { color: var(--muted); font-size: 12px; }
#liveBoard > .tiles .tile { background: var(--panel); }

.team-split { margin: 18px 0 22px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.split-bar { display: flex; gap: 2px; height: 14px; border-radius: 99px; overflow: hidden; background: var(--bg-2); }
.split-bar i { min-width: 4px; }
.split-legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.split-legend li { display: inline-flex; align-items: center; gap: 6px; }
.split-legend i { width: 10px; height: 10px; border-radius: 3px; }
.split-legend b { color: var(--text); }

.server-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.server-card { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 12px; align-content: start; }
.server-card header { display: flex; justify-content: space-between; align-items: flex-start; }
.server-card h3 { margin: 0; font-size: 16px; }
.server-card header span { font-size: 12px; color: var(--faint); }
.sc-count { color: var(--faint); font-size: 14px; }
.sc-count b { font-family: var(--font-display); font-size: 26px; color: var(--text); }
.sc-fill { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.sc-fill i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.server-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.server-card li { display: grid; grid-template-columns: 10px 1fr 80px 24px; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.server-card li b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.server-card .dot { width: 8px; height: 8px; border-radius: 50%; }
.mini { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.mini i { display: block; height: 100%; border-radius: inherit; }

/* leaderboard names are clickable → player search */
.name-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-btn:hover { color: var(--accent); }

/* ---------- SOCIALS ---------- */
.follow { margin-top: 28px; text-align: center; }
.follow h3 { margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social {
  --c: var(--accent);
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  transition: transform 0.15s, border-color 0.15s;
}
.social:hover { transform: translateY(-2px); border-color: var(--c); }
.social svg { width: 22px; height: 22px; color: var(--c); flex: none; }
.social span { display: grid; text-align: left; line-height: 1.25; }
.social b { font-size: 14px; }
.social small { color: var(--muted); font-size: 12px; }
.social.youtube { --c: #ff3d3d; }
.social.tiktok { --c: #25f4ee; }
.social.twitch { --c: #a970ff; }
.social.x { --c: #e8eefb; }
.social.instagram { --c: #f472b6; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials:empty { display: none; }
.footer-socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.footer-socials a:hover { color: var(--text); border-color: var(--line-strong); }
.footer-socials svg { width: 17px; height: 17px; }

/* ---------- avatars ---------- */
.pod-avatar.has-avatar, .mini-av.has-avatar { color: transparent; background-size: cover; background-position: center; }
.mini-av { width: 26px; height: 26px; border-radius: 8px; flex: none; background: var(--bg-2); display: none; }
.mini-av.has-avatar { display: block; }

/* ---------- UPDATES ---------- */
.updates { max-width: 880px; margin: 0 auto; display: grid; gap: 14px; }
.update { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.update.latest { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 20px 50px -30px rgba(56, 189, 248, 0.6); }
.update-side { display: grid; align-content: start; gap: 4px; }
.ver { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--accent); }
.update-side time { font-size: 13px; color: var(--faint); }
.update h3 { margin: 8px 0 6px; font-family: var(--font-display); font-size: 20px; }
.update-notes { color: var(--muted); font-size: 15px; }
.update-notes h4 { margin: 14px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); }
.update-notes p { margin: 0 0 8px; }
.update-notes ul { margin: 0 0 8px; padding-left: 20px; }
.update-notes li { margin: 3px 0; }
.more-updates { justify-self: center; }
@media (max-width: 620px) { .update { grid-template-columns: 1fr; gap: 6px; padding: 18px; } .update-side { display: flex; align-items: baseline; gap: 10px; } }

/* ---------- JOIN STRIP ---------- */
.join-strip {
  margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 24px 28px; border-radius: 20px; border: 1px solid rgba(56, 189, 248, 0.3);
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.14), rgba(167, 139, 250, 0.08)), var(--panel);
}
.join-strip h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; }
.join-strip p { margin: 0; color: var(--muted); }
.join-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- CREDITS (click a section to open; one row per contribution) ---------- */
.credits { max-width: 880px; margin: 0 auto; }
.credits-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 4px 10px; font-size: 13px; color: var(--faint); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.credit-sections { display: grid; gap: 10px; }
.credit-section { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color 0.2s; }
.credit-section.open { border-color: rgba(56, 189, 248, 0.35); }
.credit-head {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
}
.credit-head:hover { background: rgba(255, 255, 255, 0.03); }
.credit-num { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent); background: rgba(56, 189, 248, 0.12); }
.credit-title { flex: 1; min-width: 0; display: grid; gap: 1px; }
.credit-title b { font-family: var(--font-display); font-size: 17px; }
.credit-title small { font-size: 13px; color: var(--muted); }
.avatar-stack { display: flex; flex: none; }
.avatar-stack > * { margin-left: -6px; box-shadow: 0 0 0 3px var(--panel); }
.avatar-stack > :first-child { margin-left: 0; }
.pod-avatar.xs { width: 30px; height: 30px; border-radius: 50%; font-size: 10px; }
.avatar-stack .more { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--bg-2); color: var(--muted); }
.chev { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); }
.chev svg { width: 16px; height: 16px; transition: transform 0.2s; }
.credit-section.open .chev { color: var(--accent); border-color: var(--accent); }
.credit-section.open .chev svg { transform: rotate(180deg); }
.credit-rows { border-top: 1px solid var(--line); padding: 0 20px 6px; animation: creditsIn 0.2s ease; }
@keyframes creditsIn { from { opacity: 0; transform: translateY(-4px); } }
.credit-row { display: grid; grid-template-columns: 34px minmax(140px, 220px) 1fr 30px; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.credit-row.head { border-top: 0; padding: 12px 0 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); }
.credit-row:nth-child(even):not(.head) { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent); }
.credit-row .pod-avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
.credit-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit-role { color: var(--muted); font-size: 14px; }
.credit-link { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--accent); font-weight: 700; }
.credit-link:hover { background: rgba(56, 189, 248, 0.12); }
.credits-note { text-align: center; color: var(--faint); font-style: italic; margin: 18px 0 0; }
.credits-note:empty { display: none; }
@media (max-width: 620px) {
  .credit-head { gap: 12px; padding: 14px; }
  .credit-head .avatar-stack { display: none; }
  .credit-rows { padding: 0 14px 4px; }
  .credit-row { grid-template-columns: 34px 1fr 30px; gap: 2px 12px; }
  .credit-row.head { display: none; }
  .credit-row .pod-avatar { grid-row: span 2; }
  .credit-row .credit-name { grid-column: 2; }
  .credit-row .credit-role { grid-column: 2; grid-row: 2; font-size: 13px; }
  .credit-row > :last-child { grid-column: 3; grid-row: 1 / span 2; }
}

/* ---------- SUPPORT / DONATE ---------- */
.support {
  margin: 36px auto 0; max-width: 880px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 24px 28px; border-radius: 20px; border: 1px solid rgba(244, 114, 182, 0.35);
  background: linear-gradient(120deg, rgba(244, 114, 182, 0.14), rgba(251, 191, 36, 0.08)), var(--panel);
}
.support > div:nth-child(2) { flex: 1; min-width: 220px; }
.support h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; }
.support p { margin: 0; color: var(--muted); }
.support-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(244, 114, 182, 0.18); color: #f472b6; flex: none; }
.support-icon svg { width: 26px; height: 26px; }
.btn.donate { background: #ffc439; color: #111827; border-color: transparent; }
.btn.donate:hover { background: #f2b800; border-color: transparent; }
.footer-links .donate-link { color: #f472b6; }

/* Featured game: show the full 16:9 thumbnail above the details */
.game-card.featured { grid-template-columns: 1fr; }
.game-card.featured .game-art { aspect-ratio: 16 / 9; min-height: 0; }
.game-card.featured .game-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6px 32px; align-items: start; }
.game-card.featured .game-body > .genre, .game-card.featured .game-body > h3, .game-card.featured .game-body > .tagline, .game-card.featured .game-body > p:not(.tagline) { grid-column: 1; }
.game-card.featured .game-body > .features { grid-column: 2; grid-row: 1 / span 4; margin-top: 6px; }
.game-card.featured .game-body > .cta-row { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .game-card.featured .game-body { grid-template-columns: 1fr; }
  .game-card.featured .game-body > .features { grid-column: 1; grid-row: auto; }
}
