/* Public site (Liquid Glass). Builds on glass-dashboard.css (tokens, glass,
   buttons, groups, scroll bars); this file only adds the site's own layout. */

body.site { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Top bar ── */
.site-top { position: relative; z-index: 30; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; padding-block: 14px 10px; }
.site-nav { display: flex; gap: 2px; margin-left: 14px; }
.site-nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.site-nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.10); }
.site-top .spacer { flex: 1; }
.site-top .btn.site-cta { text-decoration: none; }
.site-top .me { width: 42px; padding: 0; justify-content: center; }
.site-menu-btn { display: none; }
.site-menu { position: absolute; z-index: 40; top: 64px; right: 16px; left: 16px; display: grid; gap: 2px; padding: 8px; border-radius: var(--r-lg); }
.site-menu a { padding: 12px 14px; border-radius: 12px; color: var(--text); font-weight: 600; text-decoration: none; }
.site-menu a[aria-current="page"] { background: rgba(255,255,255,0.10); }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-menu-btn { display: grid; }
}
@media (max-width: 560px) {
  .site-top { padding-inline: 12px; gap: 8px; }
  .site-top .brand span { display: none; }
}

.site-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
@media (max-width: 560px) { .site-main { padding-inline: 14px; } }

/* ── Footer ── */
.site-foot { margin-top: 64px; border-top: 1px solid var(--hair); }
.site-foot-in { max-width: 1180px; margin: 0 auto; padding: 24px 20px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.site-foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot nav a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.site-foot nav a:hover { color: var(--text); }
.site-foot p { width: 100%; margin: 0; color: var(--dim); font-size: 0.8rem; }
/* Right-hand side: the platforms it works with and what it runs on (names, not logos). */
.site-foot-works { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.site-foot .site-foot-works p { width: auto; display: flex; align-items: center; color: var(--muted); font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em; }
.foot-for i { font-style: normal; color: var(--dim); margin: 0 8px; }
.foot-logos { gap: 14px; }
.foot-logos i { width: 1px; height: 18px; background: var(--hair); }
.foot-logos img { display: block; height: 20px; width: auto; }
.foot-logos b { font-weight: 700; color: var(--text); }
@media (max-width: 640px) { .site-foot-works { margin-left: 0; } }

/* ── Home ── */
.home-hero { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(24px, 6vw, 64px) 0 clamp(32px, 6vw, 72px); }
.home-mark { width: min(420px, 78%); }
.home-mark .emblem-base { filter: drop-shadow(0 8px 30px rgba(var(--cyan-rgb), 0.25)); }
.home-hero h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; max-width: 18ch; }
.home-lede { max-width: 58ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.6; }
.home-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.home-cta .btn { text-decoration: none; min-height: 48px; padding-inline: 20px; }
.home-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--dim); font-size: 0.84rem; }
.home-facts span + span::before { content: '·'; margin-right: 18px; opacity: 0.5; }
@media (max-width: 560px) { .home-facts span + span::before { content: none; } .home-facts { gap: 4px 14px; } }

.feature-k { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan-hi); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.home-steps { margin-top: clamp(48px, 8vw, 96px); display: grid; justify-items: center; gap: 22px; text-align: center; }
.home-steps h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.home-steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; text-align: left; }
.home-steps li { counter-increment: step; display: grid; gap: 6px; align-content: start; padding: 18px 18px 20px; border-radius: var(--r-lg); background: rgba(255,255,255,0.045); box-shadow: inset 0 0 0 1px var(--hair); }
.home-steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; background: rgba(var(--cyan-rgb), 0.16); color: var(--cyan-hi); margin-bottom: 4px; }
.home-steps li span { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
@media (max-width: 820px) { .home-steps ol { grid-template-columns: minmax(0, 1fr); } }
.home-price { color: var(--muted); max-width: 52ch; }
.home-need { color: var(--dim); font-size: 0.9rem; max-width: 56ch; }

/* Questions: collapsed, in one glass panel. */
.home-faq { margin-top: clamp(48px, 8vw, 88px); display: grid; justify-items: center; gap: 18px; }
.home-faq h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; }
.faq { width: 100%; max-width: 760px; border-radius: var(--r-lg); padding: 4px 0; }
.faq details + details { border-top: 1px solid var(--hair); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--cyan-hi); font-size: 1.3rem; font-weight: 500; line-height: 1; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); line-height: 1.6; max-width: 64ch; }
.home-help { color: var(--dim); font-size: 0.9rem; }
.home-help .linkish { text-decoration: none; }
.home-price b { color: var(--text); }
.site-top .brand { display: flex; align-items: center; gap: 9px; flex: none; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.site-top .brand img { width: 30px; height: 30px; display: block; }
/* Home feature cards: three across; each example sits collapsed and angled
   under a fade, and opens straight when tapped. */
.home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hcard { display: grid; gap: 10px; align-content: start; padding: 20px 20px 0; border-radius: var(--r-xl); overflow: hidden; }
.hcard h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.hcard p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; }
.hcard .linkish { text-decoration: none; justify-self: start; font-size: 0.9rem; }
.hcard-shot { position: relative; display: block; width: calc(100% + 8px); margin: 6px -4px 0; padding: 0; border: 0; background: none; cursor: zoom-in;
  max-height: 190px; overflow: hidden; transition: max-height 0.5s var(--ease); -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent); mask-image: linear-gradient(to bottom, #000 45%, transparent); }
.hcard-shot img { display: block; width: 100%; height: auto; border-radius: 12px; transform: rotate(var(--tilt, -3deg)) translateY(18px) scale(0.96); transform-origin: top center; transition: transform 0.5s var(--spring); box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
.hcard-shot[aria-expanded="true"] { max-height: 1400px; cursor: zoom-out; -webkit-mask-image: none; mask-image: none; padding-bottom: 20px; }
.hcard-shot[aria-expanded="true"] img { transform: none; }
.hcard-shot:focus-visible { outline: 2px solid var(--cyan-hi); outline-offset: 2px; border-radius: 12px; }
@media (max-width: 900px) { .home-cards { grid-template-columns: minmax(0, 1fr); } .hcard-shot { max-height: 170px; } }
@media (prefers-reduced-motion: reduce) { .hcard-shot, .hcard-shot img { transition: none; } }

/* ── Emblem: the logo with eyes that power on and breathe, and sparks of
   current running down the beard's circuit lines one at a time. The overlays
   are cut from the logo by scripts/build_emblem_masks.php, so they sit exactly
   over it; the sparks box below is the one that script prints. ── */
.emblem { position: relative; display: block; }
.emblem-base { display: block; width: 100%; height: auto; }
.emblem-eyes, .emblem-eyes-off, .emblem-bloom, .emblem-glow, .emblem-traces { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Waking up (2.2s): the eyes start dead under a dark cover, sputter, stutter,
   then surge on with a bloom of light, and the circuits power up with them.
   The cover and the lit overlay run mirrored keyframes. */
.emblem-eyes-off { background: #0c1a1f;
  -webkit-mask: url(../img/emblem-eyes-mask.png) 0 0 / 100% 100% no-repeat; mask: url(../img/emblem-eyes-mask.png) 0 0 / 100% 100% no-repeat;
  animation: emblem-eyes-off 2.2s linear 0.15s both; }
.emblem-eyes { opacity: 0; filter: drop-shadow(0 0 3px rgba(150, 252, 255, 0.95)) drop-shadow(0 0 12px rgba(var(--cyan-rgb), 0.9));
  animation: emblem-wake 2.2s linear 0.15s both, emblem-breathe 4s ease-in-out 2.35s infinite; }
.emblem-bloom { opacity: 0; mix-blend-mode: screen; transform-origin: 50% 28%;
  background: radial-gradient(ellipse 6% 16% at 44.35% 27.68%, rgba(235, 255, 255, 0.95), rgba(var(--cyan-rgb), 0.45) 45%, transparent),
              radial-gradient(ellipse 6% 16% at 55.88% 28.07%, rgba(235, 255, 255, 0.95), rgba(var(--cyan-rgb), 0.45) 45%, transparent);
  animation: emblem-bloom 2.2s ease-out 0.15s both; }
/* The circuits always carry a faint glow. */
.emblem-glow { filter: drop-shadow(0 0 2px rgba(190, 252, 255, 0.7)) drop-shadow(0 0 7px rgba(var(--cyan-rgb), 0.6)); animation: emblem-power 2.2s linear 0.15s both; }
.emblem-traces { background: rgba(190, 250, 255, 0.16);
  -webkit-mask: url(../img/emblem-traces.png) 0 0 / 100% 100% no-repeat; mask: url(../img/emblem-traces.png) 0 0 / 100% 100% no-repeat; }
/* Sparks: 12 frames of emblem-streaks.png, each a few lines far apart. A
   bright head with a short tail runs down a frame's lines, crackling, on that
   frame's own clock, so the streaks fire one by one and drift out of step. */
.emblem-sparks { position: absolute; left: 37.666%; top: 51.19%; width: 24.668%; height: 43.254%; pointer-events: none;
  filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 5px rgba(var(--cyan-rgb), 1)) drop-shadow(0 0 12px rgba(var(--cyan-rgb), 0.7)); }
.emblem-sparks > span { position: absolute; inset: 0; opacity: 0;
  -webkit-mask: url(../img/emblem-streaks.png) 0 calc(var(--i) / 11 * 100%) / 100% 1200% no-repeat; mask: url(../img/emblem-streaks.png) 0 calc(var(--i) / 11 * 100%) / 100% 1200% no-repeat;
  background: linear-gradient(180deg, transparent 40%, rgba(120, 235, 255, 0.6) 45.5%, rgba(220, 252, 255, 1) 49%, #fff 51%, transparent 52%) 0 78% / 100% 300% no-repeat;
  animation: emblem-spark var(--t) linear var(--d) infinite; }
.emblem-sparks > span:nth-child(1) { --i: 0; --t: 4.1s; --d: 2.7s; }
.emblem-sparks > span:nth-child(2) { --i: 1; --t: 5.7s; --d: 4.8s; }
.emblem-sparks > span:nth-child(3) { --i: 2; --t: 4.6s; --d: 3.5s; }
.emblem-sparks > span:nth-child(4) { --i: 3; --t: 6.3s; --d: 6.0s; }
.emblem-sparks > span:nth-child(5) { --i: 4; --t: 3.9s; --d: 3.1s; }
.emblem-sparks > span:nth-child(6) { --i: 5; --t: 5.2s; --d: 5.3s; }
.emblem-sparks > span:nth-child(7) { --i: 6; --t: 4.4s; --d: 4.2s; }
.emblem-sparks > span:nth-child(8) { --i: 7; --t: 6.8s; --d: 6.8s; }
.emblem-sparks > span:nth-child(9) { --i: 8; --t: 4.8s; --d: 2.5s; }
.emblem-sparks > span:nth-child(10) { --i: 9; --t: 5.5s; --d: 5.6s; }
.emblem-sparks > span:nth-child(11) { --i: 10; --t: 4.2s; --d: 4.5s; }
.emblem-sparks > span:nth-child(12) { --i: 11; --t: 6.1s; --d: 3.8s; }
@keyframes emblem-eyes-off { 0%, 22% { opacity: 1; } 23% { opacity: 0.75; } 25% { opacity: 1; } 38% { opacity: 1; } 39% { opacity: 0.5; } 41% { opacity: 1; }
  48% { opacity: 0.25; } 50% { opacity: 0.95; } 52% { opacity: 0.15; } 54% { opacity: 0.85; } 57%, 100% { opacity: 0; } }
@keyframes emblem-wake { 0%, 22% { opacity: 0; } 23% { opacity: 0.35; } 25% { opacity: 0; } 38% { opacity: 0; } 39% { opacity: 0.6; } 41% { opacity: 0; }
  48% { opacity: 0.8; } 50% { opacity: 0.05; } 52% { opacity: 1; } 54% { opacity: 0.1; } 57%, 100% { opacity: 1; } }
@keyframes emblem-bloom { 0%, 56% { opacity: 0; transform: scale(0.6); } 59% { opacity: 1; transform: scale(1.18); } 75% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0.3; transform: scale(1); } }
@keyframes emblem-power { 0%, 56% { opacity: 0; } 58% { opacity: 1; } 62% { opacity: 0.6; } 66%, 100% { opacity: 1; } }
@keyframes emblem-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } 53% { opacity: 0.85; } 56% { opacity: 0.6; } }
/* Run down the lines in the first third of the cycle, crackling, then rest. */
@keyframes emblem-spark {
  0% { background-position: 0 78%; opacity: 1; }
  9% { opacity: 0.45; } 10% { opacity: 1; } 18% { opacity: 0.6; } 19% { opacity: 1; } 27% { opacity: 0.35; } 28% { opacity: 1; }
  34% { background-position: 0 20%; opacity: 1; }
  34.1%, 100% { background-position: 0 20%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .emblem-eyes, .emblem-glow { animation: none; opacity: 0.9; }
  .emblem-eyes-off { display: none; }
  .emblem-bloom { animation: none; opacity: 0.3; }
  .emblem-sparks { display: none; } }

/* ── Data pages (killfeed, leaderboard, player stats) ── */
.pg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; padding-block: clamp(16px, 4vw, 40px) 18px; }
.pg-titles { display: grid; gap: 6px; min-width: 0; }
.pg-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.pg-sub { color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-scope { min-width: min(260px, 100%); }
.pg-scope .inp { min-height: 44px; }
.pg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.seg a { display: inline-flex; align-items: center; padding: 9px 16px; min-height: 40px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 0.86rem; text-decoration: none; white-space: nowrap; transition: color 0.2s ease, background 0.2s ease; }
.seg a:hover { color: var(--text); }
.seg a[aria-current] { color: var(--text); background: rgba(255,255,255,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12); }
.pg-search { position: relative; flex: 1 1 220px; max-width: 360px; }
.pg-search .ic { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--dim); pointer-events: none; }
.pg-search .inp { width: 100%; min-height: 44px; padding-left: 40px; padding-right: 40px; border-radius: 999px; }
.pg-search .inp::-webkit-search-cancel-button { display: none; }
.pg-clear { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); text-decoration: none; font-size: 1.2rem; }
.pg-clear:hover { color: var(--text); background: rgba(255,255,255,0.08); }
@media (max-width: 560px) { .pg-search { max-width: none; flex-basis: 100%; } .pg-tools .seg { width: 100%; justify-content: space-between; } .seg a { padding-inline: 12px; } }
.pg-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: clamp(32px, 7vw, 64px) 20px; border-radius: var(--r-lg); }
.pg-empty h1, .pg-empty h2 { font-size: 1.2rem; font-weight: 800; }
.pg-empty p { color: var(--muted); max-width: 46ch; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.pager .btn { text-decoration: none; }
.pager [aria-disabled] { opacity: 0.4; pointer-events: none; }
.pager-n { color: var(--muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; }

/* Killfeed rows: range icon, the line, the time. */
.kf-list { list-style: none; margin: 0; padding: 6px 0; border-radius: var(--r-lg); }
.kf-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 18px; }
.kf-row + .kf-row { border-top: 1px solid var(--hair); }
.kf-row .squircle { width: 34px; height: 34px; border-radius: 10px; }
.kf-row .squircle .ic { width: 18px; height: 18px; }
.kf-line { min-width: 0; line-height: 1.55; overflow-wrap: anywhere; }
.kf-line b { font-weight: 700; }
.kf-c { color: var(--dim); }
.kf-name { color: inherit; font-weight: 700; text-decoration: none; }
.kf-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.kf-killer { color: var(--cyan-hi); }
.kf-victim { color: #ff9ca4; }
.kf-server { color: var(--muted); }
.kf-pts { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: #7ef0a8; background: rgba(74, 222, 128, 0.12); }
.kf-t { color: var(--dim); font-size: 0.82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .kf-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 12px 14px; }
  .kf-t { grid-column: 2; margin-top: -8px; }
}
.kf-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 12px; color: var(--dim); font-size: 0.8rem; }
.kf-key span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.kf-anon { color: var(--muted); font-weight: 600; }

/* Leaderboard */
.lb-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.lb-total { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); min-width: 0; }
.lb-total .squircle { width: 38px; height: 38px; border-radius: 12px; flex: none; }
.lb-total .squircle .ic { width: 20px; height: 20px; }
.lb-total div { display: grid; min-width: 0; }
.lb-total b { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lb-total span:not(.squircle) { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 560px) {
  .lb-totals { gap: 8px; }
  .lb-total { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .lb-total b { font-size: 1.05rem; }
}
.lb-boards { margin-bottom: 12px; }
.lb-seg .s { display: none; }
@media (max-width: 640px) {
  /* One row on a phone: short labels, every tab sharing the width. */
  .lb-seg { display: flex; width: 100%; }
  .lb-seg > a { flex: 1 1 auto; justify-content: center; padding-inline: 4px; font-size: 0.8rem; }
  .lb-seg .l { display: none; }
  .lb-seg .s { display: inline; }
  .lb-bar .seg { width: 100%; display: flex; }
  .lb-bar .seg > a, .pg-tools .seg > a { flex: 1 1 auto; justify-content: center; padding-inline: 6px; }
}
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.lb-what { color: var(--muted); font-size: 0.92rem; }
.lb-alltime { color: var(--dim); font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); }
.lb-list { list-style: none; margin: 0; padding: 6px 0; border-radius: var(--r-lg); }
.lb-list > li + li { border-top: 1px solid var(--hair); }
.lb-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; color: var(--text); text-decoration: none; transition: background 0.2s ease; }
.lb-row:hover { background: rgba(255,255,255,0.04); }
.lb-pos { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-row.is-top .lb-pos { color: #1a1206; box-shadow: inset 0 1px 0 rgba(255,255,255,0.45); }
.lb-row.p1 .lb-pos { background: linear-gradient(135deg, #ffe08a, #d39a1b); }
.lb-row.p2 .lb-pos { background: linear-gradient(135deg, #f1f4f9, #9aa6b8); }
.lb-row.p3 .lb-pos { background: linear-gradient(135deg, #f5b98a, #a8622c); }
.lb-name { display: grid; gap: 2px; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.lb-name small { color: var(--dim); font-weight: 500; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.lb-val { display: grid; justify-items: end; text-align: right; }
.lb-val b { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.lb-row.is-top .lb-val b { color: var(--cyan-hi); }
.lb-val small { color: var(--dim); font-size: 0.75rem; }
@media (max-width: 560px) { .lb-row { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 11px 14px; gap: 10px; } }

/* Player stats */
.st-search { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 999px; margin-block: clamp(16px, 4vw, 36px) 18px; }
.st-search select.inp { flex: 0 1 220px; min-height: 44px; border-radius: 999px; }
.st-q { position: relative; flex: 1 1 240px; }
.st-q .ic { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--dim); pointer-events: none; }
.st-q .inp { width: 100%; min-height: 44px; padding-left: 40px; border-radius: 999px; }
.st-q .inp::-webkit-search-cancel-button { display: none; }
.st-search .btn { min-height: 44px; padding-inline: 22px; }
@media (max-width: 560px) {
  .st-search { border-radius: var(--r-lg); }
  .st-search select.inp { flex-basis: 100%; }
  .st-q { flex-basis: 0; }
}
.st-label { color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 10px 4px; }
.st-match { grid-template-columns: auto minmax(0, 1fr) auto; }
.st-match .squircle { width: 32px; height: 32px; border-radius: 10px; }
.st-match .squircle .ic { width: 17px; height: 17px; }
.st-chev { width: 16px; height: 16px; color: var(--dim); }
.st-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 22px; padding: 22px 24px; border-radius: var(--r-xl); margin-bottom: 14px; }
.st-emblem { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5)); }
.st-who { display: grid; gap: 6px; min-width: 0; }
.st-who h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.st-rank { color: var(--muted); }
.st-rank b { color: var(--text); }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.st-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.84rem; font-weight: 700; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px var(--hair); }
.st-chip.is-pos { color: var(--cyan-hi); background: rgba(var(--cyan-rgb), 0.12); }
.st-chip small { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.st-dates { display: grid; gap: 10px; margin: 0; text-align: right; }
.st-dates dt { color: var(--dim); font-size: 0.78rem; }
.st-dates dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .st-hero { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .st-emblem { width: 56px; height: 56px; align-self: start; }
  .st-dates { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; text-align: left; padding-top: 12px; border-top: 1px solid var(--hair); }
}
.st-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
@media (max-width: 560px) { .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.st-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .st-cols { grid-template-columns: minmax(0, 1fr); } }
.st-weapons { list-style: none; margin: 0; padding: 8px 0; border-radius: var(--r-lg); }
.st-weapons li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 18px; }
.st-weapons li + li { border-top: 1px solid var(--hair); }
.st-wname { font-weight: 700; overflow-wrap: anywhere; }
.st-weapons b { font-variant-numeric: tabular-nums; }
.st-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b8fc2, var(--cyan-hi)); }
.st-none { padding: 18px; border-radius: var(--r-lg); color: var(--muted); }

/* Legal pages: readable column, contents beside it on wide screens. */
.legal { display: grid; grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "head head" "body toc"; gap: 8px 40px; align-items: start; padding-top: clamp(16px, 4vw, 40px); }
.legal-head { grid-area: head; margin-bottom: 18px; }
.legal-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.legal-head p { color: var(--dim); margin-top: 6px; }
.legal-toc { grid-area: toc; position: sticky; top: 16px; padding: 16px 18px; border-radius: var(--r-lg); }
.legal-toc b { display: block; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--dim); font-size: 0.88rem; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--text); }
.legal-body { grid-area: body; max-width: 68ch; color: #c9cfdb; line-height: 1.7; }
.legal-body > p, .legal-body > ul { margin: 0 0 14px; }
.legal-body ul { padding-left: 22px; display: grid; gap: 8px; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--cyan-hi); text-underline-offset: 3px; }
.legal-body h2 { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 12px; font-size: 1.2rem; font-weight: 800; color: var(--text); scroll-margin-top: 16px; }
.legal-body h2 span { color: var(--cyan-hi); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.legal-also { margin-top: 32px !important; padding-top: 16px; border-top: 1px solid var(--hair); color: var(--dim); font-size: 0.9rem; }
@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "toc" "body"; }
  .legal-toc { position: static; margin-bottom: 8px; }
}
/* Ranking board: one card per rank tier, its heading above it. */
h2.lb-tier { display: flex; align-items: center; gap: 12px; margin: 26px 4px 10px; padding: 0; }
h2.lb-tier:first-of-type { margin-top: 4px; }
.lb-tier-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 6px; border-radius: 999px; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.lb-tier-pill img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.45)); }
h2.lb-tier small { color: var(--dim); font-size: 0.82rem; font-weight: 500; }

/* Rivals: the weapons list's look; each row links to that player. */
.st-rivals { margin-bottom: 22px; }
.st-rivals li:has(> a) { padding: 0; }
.st-rivals a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 18px; color: var(--text); text-decoration: none; transition: background 0.2s ease; }
.st-rivals a:hover { background: rgba(255,255,255,0.04); }
.st-rnote { grid-column: 1 / -1; color: var(--dim); font-size: 0.8rem; overflow-wrap: anywhere; }
.st-rival-none { color: var(--muted); font-weight: 600; }
/* On a player's page, from their side: whoever killed them is red, whoever they killed is blue. */
.st-foe { color: #ff8a93; }
.st-prey { color: var(--cyan-hi); }

/* My Servers */
.ms-note { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--r-lg); margin-bottom: 16px; color: var(--muted); }
.ms-note .ic { flex: none; width: 20px; height: 20px; color: #ffc34d; margin-top: 2px; }
.ms-steps { list-style: none; margin: 0 0 20px; padding: 6px 0; border-radius: var(--r-lg); }
.ms-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 14px 20px; }
.ms-steps li + li { border-top: 1px solid var(--hair); }
.ms-steps li > div { display: grid; gap: 4px; justify-items: start; }
.ms-steps b { font-weight: 700; }
.ms-steps span:not(.ms-num) { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.ms-steps .btn { margin-top: 6px; text-decoration: none; }
.ms-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: var(--dim); box-shadow: inset 0 0 0 1.5px var(--hair); }
.ms-num .ic { width: 16px; height: 16px; }
.ms-steps .is-now .ms-num { color: var(--cyan-hi); background: rgba(var(--cyan-rgb), 0.16); box-shadow: inset 0 0 0 1.5px rgba(var(--cyan-rgb), 0.6); }
.ms-steps .is-done .ms-num { color: #0b2a17; background: linear-gradient(135deg, #4ade80, #168c45); box-shadow: none; }
.ms-steps .is-done b { color: var(--muted); }
.ms-steps .is-next { opacity: 0.6; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.ms-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); color: var(--text); text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s ease; }
.ms-card:hover { transform: translateY(-2px); }
.ms-icon { width: 56px; height: 56px; border-radius: 17px; object-fit: cover; background: rgba(255,255,255,0.06); box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.ms-card.is-setup .ms-icon { opacity: 0.75; }
.ms-txt { display: grid; gap: 3px; min-width: 0; }
.ms-txt b { font-weight: 800; font-size: 1.02rem; overflow-wrap: anywhere; }
.ms-txt > span { color: var(--muted); font-size: 0.86rem; overflow-wrap: anywhere; }
.ms-next { color: var(--cyan-hi) !important; font-weight: 600; }
.ms-plan { align-self: start; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: var(--muted); box-shadow: inset 0 0 0 1px var(--hair); white-space: nowrap; }
.ms-plan.is-paid { color: #e0c3ff; background: rgba(167, 105, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(167, 105, 255, 0.35); }
.ms-card .spinner { display: none; position: absolute; right: 18px; bottom: 16px; }
.ms-card.is-opening .spinner { display: block; }
.ms-card.is-opening { pointer-events: none; }
.ms-add { background: transparent; border: 1.5px dashed rgba(var(--cyan-rgb), 0.35); box-shadow: none; grid-template-columns: auto minmax(0, 1fr); }
.ms-add:hover { border-color: rgba(var(--cyan-rgb), 0.7); }
.ms-plus { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; color: var(--cyan-hi); background: rgba(var(--cyan-rgb), 0.12); }
.ms-plus .ic { width: 26px; height: 26px; }
.ms-hint { margin-top: 14px; color: var(--dim); font-size: 0.88rem; text-align: center; }
.ms-hint .linkish { text-decoration: none; }

/* Tabs that don't fit their row become a grid (assets/js/seg-fit.js). */
.seg.is-wrap { display: grid; grid-template-columns: repeat(var(--seg-cols, 3), minmax(0, 1fr)); width: 100%; border-radius: 20px; }
.seg.is-wrap > a, .seg.is-wrap > button { justify-content: center; text-align: center; white-space: normal; line-height: 1.2; border-radius: 14px; padding: 9px 6px; }
.seg-wrap:has(> .seg.is-wrap), .dv-sub:has(.seg.is-wrap) { overflow: visible; -webkit-mask: none; mask: none; }

/* Tab rows with a sliding glass lens (seg-lens.js); the lens replaces the active tab's own fill. */
.seg.has-lens > a { position: relative; z-index: 2; transition: color 0.25s ease; }
.seg.has-lens > a[aria-current] { background: none; box-shadow: none; }
.seg-lens.stretch { animation: squish 0.55s var(--ease); }
/* While a tab's page loads in place, the content under the tabs dims a little. */
.site-main > * { transition: opacity 0.2s ease; }
.site-main.is-loading > :not([data-swap]):not(:has([data-swap])) { opacity: 0.5; }

/* My Servers: notices above the cards (paying for a server the bot was removed from; after cancelling). */
.ms-gone { margin-bottom: 14px; }
.ms-gone-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ms-gone-acts form { margin: 0; }

/* where.php: a position on a map with no image yet, on a 1 km grid. */
.where-map { max-width: 760px; padding: 10px; border-radius: var(--r-lg); }
.where-map svg { display: block; width: 100%; height: auto; border-radius: 14px; }
