/* HerdGames theme — design tokens lifted from www.herdmusicalbattle.com
   (Webflow vars: --dark-green, --black-bg, --black-herd, --grey-herd, accents). */
:root {
  --dark-green: #132711;   /* Herd site body background (kept as a low accent) */
  --wood-bg: #170f08;      /* dark wood — page background */
  --black-herd: #1e1b1e;   /* text shadows */
  --panel: #241a11;        /* warm dark card */
  --panel2: #4a3a22;       /* wood border */
  --gray-bg: #33271a;
  --text: #fff;
  --muted: #fff9;          /* --p-herd */
  --green: #c7fb00;        /* acid lime — small semantic accents only */
  --blue: #50ecf8;         /* cyan */
  --violet: #ae32cd;
  --brown: #915d0c;        /* --brown from the Herd site */
  --orange: #f0941c;
  --amber: #faa200;
  --yellow: #fcee21;       /* trophies / finals */
  --err: #f8e4e4;
  --pill-border-1: #646464;
  --pill-border-2: #2e3033;
  --radius: 10px;
  --font-head: "Barlow Condensed", Impact, sans-serif;
  --font-display: "Suez One", serif;
  --font-body: Jost, "Trebuchet MS", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font: 500 0.95rem/1.5 var(--font-body);
  background-color: var(--dark-green);
  background-image:
    radial-gradient(circle farthest-side at 8% 0%, #ae32cd2e, transparent 42%),
    radial-gradient(circle farthest-side at 100% 12%, #50ecf821, transparent 34%);
  background-attachment: fixed;
}
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 1240px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
footer { text-align: center; color: var(--muted); padding: 2rem 0; font-size: 0.85rem; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 { font-size: 2.8rem; text-shadow: 3px 2px 0 var(--black-herd); }
h2 { font-size: 1.9rem; text-shadow: 1px 1px 0 var(--black-herd); margin-top: 2rem; border-bottom: 1px solid var(--panel2); padding-bottom: 0.3rem; }
h3 { font-size: 1.35rem; }

/* Nav — wood-brown gradient (Herd's --brown/--orange primary) + Suez One */
.topbar {
  display: flex; align-items: center; gap: 1.5rem; padding: 0.4rem 1.2rem;
  background-color: var(--brown);
  background-image: linear-gradient(#3d270b, #5c3c0e 30%, #7d4f0d);
  border-bottom: 2px solid var(--black-herd);
  font-family: var(--font-display);
}
/* Language picker: a JS-free <details> disclosure, first item in the topbar. */
.langpick { position: relative; flex: 0 0 auto; }
.langpick > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--text); text-shadow: 1px 1px 1px #000;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 4px;
  padding: 0.2rem 0.5rem;
}
.langpick > summary::-webkit-details-marker { display: none; }
.langpick > summary::after { content: '▾'; font-size: 0.7rem; }
.langpick > summary:hover { border-color: var(--amber); color: var(--amber); }
.langpick[open] > summary { border-color: var(--amber); }
.langpick > form {
  position: absolute; top: calc(100% + 0.35rem); left: 0; z-index: 20;
  display: flex; flex-direction: column; min-width: 8rem;
  background: var(--brown); border: 1px solid var(--black-herd); border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45); overflow: hidden;
}
.langpick .langopt {
  background: none; border: 0; cursor: pointer; font: inherit; font-size: 0.9rem;
  color: var(--text); text-align: left; padding: 0.45rem 0.8rem; white-space: nowrap;
}
.langpick .langopt:hover:not(:disabled) { background: rgba(0, 0, 0, 0.3); color: var(--amber); }
.langpick .langopt.current { color: var(--amber); font-weight: 700; cursor: default; }

.brand { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 1.3rem; color: var(--text); text-shadow: 2px 1px 1px #000; }
.brand .logo { display: block; height: 46px; margin: -8px 0; }
.brand span { color: var(--amber); }
.brand:hover { text-decoration: none; }
.navlinks { display: flex; align-items: center; gap: 1.1rem; flex: 1; }
.navlinks a, .navuser { color: var(--text); text-shadow: 1px 1px 1px #000; }
.navuser { display: flex; align-items: center; gap: 0.6rem; }

.avatar { width: 28px; height: 28px; border-radius: 6px; vertical-align: middle; }
.avatar.sm { width: 22px; height: 22px; }
.avatar.lg { width: 64px; height: 64px; }

.btn {
  display: inline-block; cursor: pointer; font: 600 0.95rem var(--font-body);
  background: var(--black-herd); color: var(--text);
  border: 1px solid var(--panel2); border-radius: 0.25rem; padding: 0.55rem 1.2rem;
}
.btn:hover { filter: brightness(1.25); text-decoration: none; }
/* Primary CTA — the Herd site's .button-shape.is-primary wood gradient */
.btn-ok {
  background-image: linear-gradient(311deg, var(--brown), var(--orange) 73%, var(--orange));
  border-color: var(--brown); color: #fff; font-weight: 700; text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
}
.btn-warn { background: transparent; border-color: var(--orange); color: var(--orange); }
.btn-steam { background: #1b2838; border-color: #2a475e; color: #66c0f4; font-weight: 600; }
.btn.big { font-size: 1.1rem; padding: 0.7rem 1.5rem; }
.linklike { background: none; border: none; color: var(--orange); cursor: pointer; font: inherit; padding: 0; }
.linklike.danger { color: var(--orange); }
.linklike.big { font-size: 1.05rem; font-weight: 700; }

/* Pills — gradient-border capsules like the site's social pills */
.chip {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; border-radius: 500px; padding: 0.18rem 0.7rem;
  border: 1px solid var(--pill-border-1);
  background-image: linear-gradient(#faa2000d, #faa2000d), linear-gradient(180deg, var(--pill-border-1), var(--pill-border-2));
  color: var(--text); text-shadow: 1px 1px 1px #000;
}
.chip-mock { background-image: none; background-color: var(--orange); color: #221a05; text-shadow: none; }
.chip-admin { background-image: none; background-color: var(--blue); color: #0a1a26; text-shadow: none; }
.chip.st-registration_open, .chip.st-confirmed { background-image: none; background-color: #2c4a12; color: #a5e846; border-color: #406027; }
.chip.st-group_stage, .chip.st-playoffs, .chip.st-awaiting_result { background-image: none; background-color: #17324a; color: var(--blue); border-color: #2a475e; }
.chip.st-disputed { background-image: none; background-color: #4a2020; color: #f0a0a0; border-color: #6e2e2e; }
.chip.st-completed { background-image: none; background-color: #453a14; color: var(--yellow); border-color: #6e5e1e; }
.chip.st-cancelled, .chip.st-forfeited { background-image: none; background-color: var(--gray-bg); color: #aaa; }
.chip.st-live { background-image: none; background-color: #4a1420; color: #ff6b81; border-color: #7a2233; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { filter: brightness(1.45); } }
.match.st-live { border-left-color: #ff6b81; }
.live-banner { margin-top: 0.4rem; font-weight: 700; color: #ff6b81; }
.window-open-tag { color: var(--amber); font-weight: 700; margin-left: 0.4rem; text-transform: uppercase; font-size: 0.72rem; }
.chip.st-scheduled, .chip.st-draft, .chip.st-registration_closed, .chip.st-bye { background-image: none; background-color: var(--panel2); color: var(--muted); }

.flash { border-radius: var(--radius); padding: 0.6rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.flash-err { background: #3a1c1c; color: var(--err); border: 1px solid var(--orange); }
.flash-ok { background: #1d330f; color: #a5e846; border: 1px solid #406027; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.card {
  display: block; background: var(--panel); border-radius: var(--radius); padding: 1rem;
  color: var(--text); border: 1px solid #ffffff14; box-shadow: 0 3px 0 #00000059;
}
.card:hover { background: var(--gray-bg); text-decoration: none; }
.card h3 { margin: 0 0 0.4rem; }
.persona { text-align: center; }
.muted { color: var(--muted); }

.pagehead { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.6rem 0; }

.playergrid { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; }
.player { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; }
.player.tbd { color: var(--muted); font-style: italic; }
a.player { color: inherit; text-decoration: none; }
a.player:hover { text-decoration: underline; }

/* Player profile (ROADMAP N1) */
.profilehead { display: flex; align-items: center; gap: 1rem; margin: 0.5rem 0 1.2rem; }
.profilehead h1 { margin: 0; }
.avatar.xl { width: 84px; height: 84px; border-radius: var(--radius); }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.8rem; margin: 1rem 0 1.6rem; }
.stat { background: var(--panel); border-radius: var(--radius); border: 1px solid #ffffff14; padding: 0.8rem 0.9rem; display: flex; flex-direction: column; gap: 0.2rem; }
.statnum { font-family: var(--font-head); font-style: italic; font-size: 1.5rem; line-height: 1.1; }
.statlabel { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; }
.streak-w { color: var(--green); }
.streak-l { color: var(--orange); }

.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; }
.standings { width: 100%; border-collapse: collapse; margin: 0.5rem 0; }
.standings th, .standings td, .listing th, .listing td { text-align: left; padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--panel2); }
.standings th, .listing th { font-family: var(--font-head); font-style: italic; text-transform: uppercase; font-size: 0.9rem; color: var(--muted); }
.standings .pts { font-weight: 700; color: var(--amber); }
.listing { width: 100%; border-collapse: collapse; }

.matchlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.8rem; margin: 0.8rem 0; }
.match {
  background: var(--panel); border-radius: var(--radius); padding: 0.7rem 0.9rem;
  border: 1px solid #ffffff14; border-left: 3px solid var(--panel2); box-shadow: 0 3px 0 #00000059;
  min-width: 0; overflow-wrap: anywhere;
}
/* Long caster/stream/share URLs must wrap, never widen the card past the screen. */
.cast-banner a, .match a { word-break: break-word; }
.caster-list { list-style: none; padding: 0; margin: 0.3rem 0 0; }
.caster-list li { margin: 0.15rem 0; }
.match.mine { border-left-color: var(--amber); }
.match.st-disputed { border-left-color: var(--orange); }
.match.st-confirmed { border-left-color: var(--green); }
.match-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.roundlabel { font-family: var(--font-head); font-style: italic; text-transform: uppercase; font-size: 0.9rem; color: var(--muted); }
.match-players { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.vs { color: var(--violet); font-family: var(--font-head); font-style: italic; font-weight: 800; }
.match-window { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.match-window.open { color: var(--amber); }
.winner { margin-top: 0.3rem; font-weight: 700; color: var(--yellow); text-shadow: 1px 1px 0 #000; }
details.report, .match details { margin-top: 0.5rem; }
details summary { cursor: pointer; color: var(--orange); font-size: 0.85rem; }

/* World-Cup bracket: left tree → finals → right tree */
.bracket { display: flex; gap: 0.9rem; overflow-x: auto; align-items: stretch; }
.bracket-col { min-width: 230px; flex: 1; display: flex; flex-direction: column; }
.bracket-col h4 {
  margin: 0 0 0.5rem; font-family: var(--font-head); font-style: italic; font-weight: 800;
  color: var(--muted); text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.05em;
}
.bracket-col.right h4 { text-align: right; }
.bracket-col.center h4 { text-align: center; color: var(--yellow); text-shadow: 1px 1px 0 var(--black-herd); }
.bracket-col-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 0.8rem; }
.bracket-col.center .match { border-left-color: var(--yellow); }

.podium { display: flex; gap: 1rem; flex-wrap: wrap; }
.podium-slot { background: var(--panel); border: 1px solid #ffffff14; border-radius: var(--radius); padding: 1rem 1.4rem; text-align: center; box-shadow: 0 3px 0 #00000059; }
.podium-slot.rank-1 { border-color: var(--yellow); }
.medal { font-size: 1.8rem; }

.stack { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.stack label { display: flex; flex-direction: column; gap: 0.2rem; width: 100%; }
.stack label.inline { flex-direction: row; align-items: center; gap: 0.4rem; }
.form-narrow { max-width: 460px; }
input, select, textarea {
  background: var(--black-herd); color: var(--text); border: 1px solid var(--panel2);
  border-radius: 6px; padding: 0.4rem 0.6rem; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; }
input[type="number"] { width: 5.5rem; }
.reports { font-size: 0.85rem; }
.withtournament > a { font-size: 0.8rem; }

/* --- About / landing page --- */
.hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.hero-logo { height: 110px; }
.hero h1 { font-family: var(--font-head); font-size: 2.6rem; margin: 0.6rem 0 0.4rem; }
.hero .accent { color: var(--green); }
.hero-tagline { max-width: 640px; margin: 0 auto 1.2rem; color: var(--muted); font-size: 1.05rem; }
.hero-cta { justify-content: center; }
.steps { max-width: 720px; padding-left: 1.4rem; }
.steps li { margin: 0.7rem 0; }

/* --- Social share (post-registration) --- */
.share {
  background: var(--panel); border: 1px solid var(--panel2); border-radius: var(--radius);
  padding: 0.8rem 1rem; margin: 0.8rem 0; max-width: 640px;
}
.share-label { font-family: var(--font-head); font-size: 1.15rem; color: var(--green); }
.share-btn { font-size: 0.85rem; }
.share-copy { width: 100%; margin-top: 0.5rem; font-size: 0.8rem; }
.share-hint { font-size: 0.75rem; margin: 0.3rem 0 0; }

/* --- Mode-Obs casting --- */
.cast-banner { margin-top: 0.4rem; font-size: 0.85rem; color: var(--blue); }
.cast-banner .inline-form { display: inline; }

/* --- Multi-tenant brand fallback (no logo uploaded yet) --- */
.brandname { font-family: var(--font-display); font-size: 1.35rem; color: var(--text); }

/* --- Match-ready push opt-in card (/me) --- */
.pushcard { max-width: 640px; margin: 0.8rem 0; }
.pushcard h3 { margin-top: 0; }

/* --- Mobile pass (ROADMAP N1 "Mobile experience") --- */
@media (max-width: 720px) {
  main { padding: 1rem 0.7rem 3rem; }
  .topbar { flex-wrap: wrap; gap: 0.5rem 0.9rem; padding: 0.4rem 0.7rem; }
  .brand { order: -1; }
  .navlinks {
    order: 3; flex-basis: 100%; overflow-x: auto; gap: 0.9rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; white-space: nowrap;
  }
  .navlinks::-webkit-scrollbar { display: none; }
  .navuser { margin-left: auto; }
  .navuser span { display: none; } /* avatar carries identity on small screens */
  /* minmax(0, …) — a bare 1fr is minmax(auto,1fr), whose auto-min grows the
     column to its widest child (a long URL/name) and pushes the page wider than
     the screen, which makes iOS shrink the whole page. */
  .groups { grid-template-columns: minmax(0, 1fr); }
  .matchlist { grid-template-columns: minmax(0, 1fr); }
  .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standings th, .standings td, .listing th, .listing td { padding: 0.25rem 0.35rem; font-size: 0.9rem; }
  /* Wide tables scroll inside their own box instead of widening the page. */
  .standings, .listing { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pagehead { gap: 0.5rem; }
  .profilehead { gap: 0.7rem; }
  .avatar.xl { width: 64px; height: 64px; }
  h1 { font-size: 1.6rem; }
}

/* --- Team battles --- */
.chip-team { background: var(--violet); color: #fff; }
.chip-captain { background: var(--amber); color: #1e1b1e; font-weight: 700; padding: 0 0.35rem; }
.teamcard.mine { outline: 2px solid var(--amber); }
.teamsignup input { min-width: 220px; }

/* --- Players chat --- */
.chatnav { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 0.4rem 0 0.8rem; }
.chatnav a { padding: 0.15rem 0.6rem; border-radius: 5px; border: 1px solid var(--panel2); }
.chatnav a.current { background: var(--panel); border-color: var(--amber); }
.pinnedbox { background: var(--panel); border-left: 3px solid var(--amber); border-radius: var(--radius); padding: 0.5rem 0.8rem; margin-bottom: 0.6rem; }
.pinnedmsg { padding: 0.15rem 0; }
.chatstream { background: var(--panel); border: 1px solid #ffffff14; border-radius: var(--radius); padding: 0.6rem 0.8rem; max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 0.45rem; }
.chatmsg { display: flex; gap: 0.5rem; align-items: flex-start; }
.chatmsg-main { display: flex; flex-direction: column; min-width: 0; }
.chatmsg-head time { font-size: 0.75rem; }
.chatmsg-body { overflow-wrap: anywhere; }
.chatmsg.deleted .chatmsg-body { color: var(--muted); }
.chatmsg.mention { background: #ffd90014; border-radius: 6px; }
.chatmsg-actions { margin-left: auto; display: inline-flex; gap: 0.35rem; opacity: 0.35; }
.chatmsg:hover .chatmsg-actions { opacity: 1; }
.chatcompose { display: flex; gap: 0.5rem; margin-top: 0.7rem; align-items: center; }
.chatcompose input[name="body"] { flex: 1; }
.chip-community { background: var(--blue); color: #10222c; }
/* Herd pipeline test tournaments (rec/beta) — loud on purpose: never mistake one for a public bracket. */
.chip-env { background: var(--orange); color: #2c1a10; }

/* --- Twitch streams --- */
.streams { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.3rem; }
.streamlink { font-size: 0.85rem; }
.streamlink.live { color: var(--orange); font-weight: 700; }
.chip.st-live { background: #e91916; color: #fff; }
.premium-name { color: var(--amber); }
/* Founders (The Originals): the name wears the logo's EYES color, and the [:)] tag
   is the Braket logo itself, glyph by glyph (braket-logo-light.svg exact fills:
   brackets #1424b8 · eyes ':' #17ccd9 · smile ')' #155fea). */
.founder-name { color: #17ccd9; }
.clantag-braket { font-weight: 800; }
.clantag-braket .cb-bracket { color: #1424b8; }
.clantag-braket .cb-eyes { color: #17ccd9; }
.clantag-braket .cb-smile { color: #155fea; }
.premiumcard { border: 1px solid var(--amber); }
.clantag { text-decoration: none; font-family: var(--font-head); }
.exchangecard { margin: 0.6rem 0 1rem; display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.admin-toolbar { margin: 0.2rem 0 1.2rem; }

/* RTL (Arabic, Urdu) on tenant arenas */
[dir="rtl"] .navlinks { flex-direction: row-reverse; }
[dir="rtl"] .chatmsg-actions { margin-left: 0; margin-right: auto; }

/* ── herd.games vitrine: game showcase blocks (about page, default tenant) ── */
.game-hero { position: relative; text-align: center; border-radius: 16px; overflow: hidden;
  padding: 3rem 1.2rem 2.4rem; margin-top: 0.8rem; border: 2px solid var(--panel2);
  background: url(/static/herd/hero.webp) center/cover no-repeat; }
.game-hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(#170f08b3, #170f08e8 78%); }
.game-hero > * { position: relative; }
.game-hero .hero-logo { height: 120px; }
.game-hero h1 { font-size: 3rem; margin: 0.6rem 0 0.4rem; }
.game-hero .accent { color: var(--green); }
.trailer { max-width: 880px; margin: 1.6rem auto 0; border-radius: 14px; overflow: hidden;
  border: 2px solid var(--panel2); box-shadow: 0 18px 50px #0009; }
.trailer video { display: block; width: 100%; height: auto; }
.cardfan { display: flex; justify-content: center; align-items: flex-end; gap: 0.7rem;
  flex-wrap: wrap; margin: 2rem 0 0.5rem; }
.cardfan img { height: 230px; width: auto; border-radius: 10px; box-shadow: 0 12px 30px #000b;
  transition: transform 0.15s; }
.cardfan img:nth-child(odd) { transform: rotate(-2.5deg); }
.cardfan img:nth-child(even) { transform: rotate(2deg) translateY(-8px); }
.cardfan img:hover { transform: translateY(-10px) rotate(0deg); }
@media (max-width: 640px) { .cardfan img { height: 150px; } .game-hero h1 { font-size: 2.2rem; } }
.braket-band { margin-top: 3rem; border-radius: 16px; padding: 1.8rem 1.4rem; text-align: center;
  background: linear-gradient(100deg, #1424b8, #155fea 55%, #10c8d6); box-shadow: 0 14px 40px #155fea33; }
.braket-band h2 { border-bottom: 0; margin-top: 0; text-shadow: 1px 1px 0 #0d1b3d55; }
.braket-band p { max-width: 640px; margin: 0.4rem auto 1.1rem; color: #fffd; }
.braket-band-cta { background: #fff; color: #1424b8; }
.braket-band-cta:hover { text-decoration: none; }

/* ── Tournament page structure: stage stepper + key-fact blocks ── */
.tsteps { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 1rem 0 0.4rem; counter-reset: ts; }
.tsteps li { counter-increment: ts; display: flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--panel2);
  background: var(--panel); color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.tsteps li::before { content: counter(ts); display: grid; place-items: center; width: 1.25rem; height: 1.25rem;
  border-radius: 50%; background: var(--gray-bg); font-size: 0.7rem; color: var(--muted); }
.tsteps li.done { color: var(--text); }
.tsteps li.done::before { content: "✓"; background: var(--green); color: #132711; }
.tsteps li.current { color: #132711; background: var(--green); border-color: var(--green); }
.tsteps li.current::before { background: #132711; color: var(--green); }
.tstats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1.1rem; }
.tstat { background: var(--panel); border: 1px solid var(--panel2); border-radius: 10px;
  padding: 0.45rem 0.85rem; font-size: 0.88rem; color: var(--muted); }
.tstat b { color: var(--text); font-weight: 600; }
