/* UMC public site — component layer.
   Ports the imported tournament-site design (heavy black borders + hard offset
   shadows, condensed display type, IBM Plex Mono for numbers) into plain CSS.

   Theming: neutral colors go through role tokens
   (--text-primary / --text-inverse / --surface-card / --surface-ink / --bg-page)
   so dark mode is a single token swap at the bottom of this file — no filters.

   The design tokens (styles.css → tokens/*.css) are linked ahead of this file
   from templates/base.html instead of @import-ed here, so they download in
   parallel rather than as a chain. */

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--bg-page);
  font-family:var(--font-body);
  color:var(--text-primary);
  font-size:15px;
  line-height:1.55;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; }
::selection{ background:var(--umc-blue-600); color:#fff; }

.disp{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase; letter-spacing:-0.01em; }
.mono{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
.muted{ color:var(--umc-ink-500); }
.pixel{ image-rendering:pixelated; }

/* ---- layout ---- */
.wrap{ max-width:1180px; margin:0 auto; padding-left:32px; padding-right:32px; }
.wrap-narrow{ max-width:900px; margin:0 auto; padding-left:32px; padding-right:32px; }
.wrap-slim{ max-width:640px; margin:0 auto; padding-left:32px; padding-right:32px; }
.section{ padding-top:44px; padding-bottom:20px; }
.section-last{ padding-bottom:64px; }

/* ---- header ---- */
.hdr{
  position:sticky; top:0; z-index:10; background:var(--surface-card);
  border-bottom:3px solid var(--text-primary);
  display:flex; align-items:center; gap:24px; padding:12px 32px;
}
.hdr__logo{ width:40px; height:40px; cursor:pointer; }   /* square: reserve the box so it can't reflow the bar on load */
.nav{ display:flex; gap:4px; flex-wrap:wrap; }
.nav a{
  padding:8px 14px; border:none; background:transparent;
  color:var(--umc-ink-500); font-family:var(--font-display); font-weight:var(--fw-bold);
  font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  border-radius:var(--radius-sm); cursor:pointer;
}
.nav a.is-active{ background:var(--surface-ink); color:var(--text-inverse); }
.hdr__spacer{ flex:1; }
.hdr__home{ display:inline-flex; align-items:center; flex:0 0 auto; }
/* scoped with .hdr so this beats `.btn { display:inline-flex }` (same class
   specificity, but .btn is defined later) — the burger stays hidden on desktop */
.hdr .hdr__burger{ display:none; padding:7px 10px; }   /* shown only on mobile */

/* ---- buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 20px; font-family:var(--font-display); font-weight:var(--fw-bold);
  font-size:13px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-inverse); background:var(--surface-ink);
  border:2px solid var(--text-primary); border-radius:var(--radius-sm);
  cursor:pointer; box-shadow:var(--shadow-hard-sm);
  transition:all .12s var(--ease-out); white-space:nowrap;
}
.btn:hover{ background:var(--surface-ink-hover); }
.btn:active{ box-shadow:0 0 0 #000; transform:translate(3px,3px); }
.btn--secondary{ color:var(--text-primary); background:var(--surface-card); }
.btn--secondary:hover{ background:var(--umc-surface-2); }
.btn--red{ color:#fff; background:var(--umc-red-600); }
.btn--red:hover{ background:var(--umc-red-700); }
.btn--blue{ color:#fff; background:var(--umc-blue-600); }
.btn--blue:hover{ background:var(--umc-blue-700); }
.btn--ghost{
  color:var(--text-primary); background:transparent; border-color:transparent;
  box-shadow:none;
}
.btn--ghost:hover{ background:var(--umc-surface-2); }
.btn--ghost:active{ transform:none; box-shadow:none; }
.btn--sm{ padding:7px 14px; font-size:11px; }
.btn--lg{ padding:15px 28px; font-size:15px; }
.btn .ico{ width:15px; height:15px; }

/* ---- tags ---- */
/* Square, like every box on this site — there is no rounded corner anywhere
   in the system, which is why the radius tokens are all 0. Reach for
   var(--radius-sm) rather than a literal, so a tag can never drift back
   into a pill on its own. */
.tag{
  display:inline-block; padding:4px 11px; font-family:var(--font-display);
  font-weight:var(--fw-bold); text-transform:uppercase; font-size:11px; letter-spacing:.1em;
  background:var(--surface-card); color:var(--text-primary); border:2px solid var(--text-primary);
  border-radius:var(--radius-sm);
}
.tag--solid{ background:var(--surface-ink); color:var(--text-inverse); }
.tag--red{ background:var(--umc-red-50); color:var(--umc-red-700); border-color:var(--umc-red-600); }
.tag--blue{ background:var(--umc-blue-50); color:var(--umc-blue-700); border-color:var(--umc-blue-600); }

/* ---- section title (heading + rule) ---- */
.stitle{ display:flex; align-items:baseline; gap:16px; margin-bottom:24px; }
.stitle h2{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  letter-spacing:-.01em; font-size:32px; margin:0; }
.stitle__rule{ height:3px; flex:1; background:var(--text-primary); }

/* ---- crest ---- */
.crest{
  display:flex; align-items:center; justify-content:center;
  background:var(--surface-ink); color:var(--text-inverse); border:2px solid var(--text-primary);
  border-radius:var(--radius-sm); font-family:var(--font-display); font-weight:var(--fw-bold);
  text-transform:uppercase;
}
.crest--red{ background:var(--umc-red-600); color:#fff; }
.crest--blue{ background:var(--umc-blue-600); color:#fff; }

/* ---- generic card ---- */
.card{
  background:var(--surface-card); border:3px solid var(--text-primary);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-hard);
}
.card--pad{ padding:24px; }

/* ---- hero ---- */
.hero{
  padding:52px 0; border-bottom:3px solid var(--text-primary);
  background:linear-gradient(180deg,var(--surface-card),var(--bg-page));
}
.hero__grid{ display:flex; gap:56px; align-items:center; flex-wrap:wrap; }
.hero__col-main{ flex:1 1 460px; }
.hero__col-side{ flex:1 1 360px; max-width:420px; display:flex; flex-direction:column; gap:16px; }
.hero h1{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  letter-spacing:-.01em; font-size:64px; line-height:1; margin:0 0 18px; }
.hero__lede{ font-size:18px; line-height:1.55; color:var(--umc-ink-700); max-width:460px; margin:0 0 26px; }
.btn-row{ display:flex; gap:12px; flex-wrap:wrap; }

/* ---- "how a match works" steps ---- */
.steps{ display:flex; gap:20px; flex-wrap:wrap; }
.step{
  flex:1 1 280px; background:var(--surface-card); border:3px solid var(--text-primary);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-hard); padding:24px;
  transition:transform .12s var(--ease-out);
}
.step:hover{ transform:translate(-2px,-2px); }
.step__top{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.step__n{ font-family:var(--font-mono); font-weight:700; font-size:15px; color:var(--umc-ink-300); }
.step__ico{ width:44px; height:44px; border:2px solid var(--text-primary); border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center; }
.step__ico .ico{ width:22px; height:22px; }
.step h3{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:20px; margin:0 0 8px; }
.step p{ font-size:14px; line-height:1.55; color:var(--umc-ink-700); margin:0; }

/* ---- how-to-play rule blocks ---- */
.rule{ display:flex; gap:24px; align-items:flex-start; margin-bottom:28px; }
.rule__n{ flex:0 0 auto; width:64px; height:64px; background:var(--surface-ink); color:var(--text-inverse);
  border-radius:var(--radius-md); display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:var(--fw-bold); font-size:26px; box-shadow:var(--shadow-hard-sm); }
.rule__body{ flex:1; padding-top:2px; }
.rule__body h3{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:24px; margin:0 0 8px; }
.rule__body p{ font-size:16px; line-height:1.6; color:var(--umc-ink-700); margin:0; max-width:680px; }
.lede{ font-size:18px; line-height:1.6; color:var(--umc-ink-700); max-width:680px; margin:0 0 36px; }
.callout{
  background:var(--surface-card); border:3px solid var(--text-primary); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-hard); padding:20px 24px; display:flex; align-items:center; gap:16px; margin:8px 0 36px;
}
.callout .ico{ width:26px; height:26px; flex:0 0 auto; }

/* ---- data tables ---- */
.tbl{
  border:3px solid var(--text-primary); border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-hard); background:var(--surface-card);
}
.tbl__scroll{ overflow-x:auto; }
.tbl__head, .tbl__row{ display:grid; gap:8px; align-items:center; }
.tbl__head{
  padding:10px 18px; background:var(--surface-ink); color:var(--text-inverse);
  font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:9px; letter-spacing:.12em;
}
.tbl__row{
  padding:11px 18px; border-bottom:2px solid var(--umc-line-200);
  text-decoration:none; color:inherit;
}
.tbl__row:last-child{ border-bottom:none; }
a.tbl__row{ cursor:pointer; }
a.tbl__row:hover{ background:var(--umc-surface-2); }
.tbl__row--alt{ background:var(--umc-surface-2); }

/* Leaderboard row hover: the same pop the buttons and pattern tiles use —
   lift up-left, drop a hard shadow into the gap the lift leaves behind. The
   lift is 3px, exactly the shadow's offset, so both the shadow and the row
   stay inside .tbl's clipped frame instead of being cut off at the edges.
   Clicking collapses the shadow the way .btn:active does. */
a.tbl__row.lb-grid{
  transition:transform .12s var(--ease-out), box-shadow .12s var(--ease-out),
             background .12s var(--ease-out);
}
a.tbl__row.lb-grid:hover{
  position:relative; z-index:1;
  transform:translate(-3px,-3px);
  box-shadow:var(--shadow-hard-sm);
}
a.tbl__row.lb-grid:active{ transform:none; box-shadow:0 0 0 var(--umc-true-black); }

@media (prefers-reduced-motion: reduce){
  a.tbl__row.lb-grid{ transition:none; }
}

/* leaderboard grid */
.lb-grid{ grid-template-columns:56px 1fr 90px 90px 90px; }
.lb-grid--eff{ grid-template-columns:56px 1fr 90px 90px 90px 90px; }
.lb-min{ min-width:640px; }
.lb-min--eff{ min-width:700px; }
/* Leaderboard Players / Teams switch: the lookup tabs, spaced off the table. */
.lb-tabs{ margin:0 0 16px; }
/* Home: Top Teams sits under Top Players in the same section. */
.home-teams{ margin-top:48px; }
/* Team rows: the roster's heads in a short row before the name. */
.team-heads{ display:flex; gap:4px; flex:0 0 auto; }
.rank{ font-family:var(--font-mono); font-weight:700; font-size:17px; }
.player-cell{ display:flex; align-items:center; gap:10px; min-width:0; }
.avatar{ width:28px; height:28px; border:2px solid var(--text-primary); border-radius:var(--radius-sm); image-rendering:pixelated; flex:0 0 auto; }
.handle{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase; font-size:15px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Supporters get a solid red block behind their name: the base team red, white
   ink, square corners — the same hard-edged treatment as the rest of the site,
   and identical in both themes. */
.handle--supporter{
  padding:2px 8px; margin:-2px 0; border-radius:0;
  background:var(--umc-red-600); color:#fff;
}
.team-cell{ display:flex; align-items:center; gap:8px; }
.team-dot{ width:12px; height:12px; border-radius:var(--radius-sm); border:1.5px solid var(--text-primary); flex:0 0 auto; }
.team-dot--red{ background:var(--umc-red-600); }
.team-dot--blue{ background:var(--umc-blue-600); }
.team-dot--neutral{ background:var(--surface-ink); }
.num{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
.num-lg{ font-family:var(--font-mono); font-weight:700; font-size:16px; }

/* pagination */
.pager{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:20px; flex-wrap:wrap; }
.pager__info{ font-family:var(--font-mono); font-size:13px; color:var(--umc-ink-500); }
.pager__nav{ display:flex; gap:10px; }
.btn.is-disabled{ opacity:.4; pointer-events:none; }

/* ---- leaderboard head: lookup box + season notes side by side ----
   The notes are desktop-only (hidden at the phone breakpoint) so the small
   screen keeps the search box and the table without a wall of text. */
/* nowrap: below the phone breakpoint the notes are hidden outright, so the two
   columns should compress rather than stack in the tablet band. The row is a
   direct child of .wrap, so the pair spans exactly the table's width below. */
.lb-head{ display:flex; gap:26px; align-items:stretch; margin-bottom:22px; flex-wrap:nowrap; }
.lb-head__lookup{ flex:1 1 auto; min-width:0; }   /* takes whatever the notes don't */
.lb-head__lookup .lookup{ height:100%; }   /* both boxes share one height */
/* the notes get their own card, matching the lookup box's frame. width:max-content
   sizes it to its longest line so the card hugs the text; max-width keeps it from
   crowding the search box on narrower screens. */
.lb-head__note{ flex:0 1 auto; width:max-content; max-width:500px;
  min-width:0; margin:0; list-style:none;
  background:var(--surface-card); border:3px solid var(--text-primary);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-hard);
  padding:20px 22px;
  display:flex; flex-direction:column; justify-content:center;
  font-size:14px; line-height:1.55; color:var(--umc-ink-700); }
.lb-head__note li{ position:relative; padding-left:18px; margin-bottom:9px; }
.lb-head__note li:last-child{ margin-bottom:0; }
/* square bullet, matching the site's hard-edged look */
.lb-head__note li::before{ content:""; position:absolute; left:0; top:.55em;
  width:7px; height:7px; background:var(--text-primary); }

/* ---- player profile ---- */
.profile-top{ display:flex; gap:28px; align-items:stretch; flex-wrap:wrap; margin-bottom:32px; }
/* The card is shaped like the thing it holds: 200x400 is the banner's own 1:2
   ratio, so a supporter's backdrop fills it exactly instead of floating inside a
   wider box. Fixed rather than stretched to the stat column — the ratio has to
   survive whatever that column's height happens to be — and pinned to the top of
   the row, which leaves the column free to stretch and keep its hero stats
   aligned with the card's foot. */
.skin-card{
  flex:0 0 200px; align-self:flex-start; height:400px;
  border:3px solid var(--text-primary); border-radius:var(--radius-lg);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:20px 16px;
}
.skin-card--red{ background:var(--umc-red-50); box-shadow:var(--shadow-hard-red); }
.skin-card--blue{ background:var(--umc-blue-50); box-shadow:var(--shadow-hard-blue); }
.skin-card--neutral{ background:var(--umc-surface-2); box-shadow:var(--shadow-hard); }
/* Rating on the skin card: the card's border takes the tier colour (set inline)
   and the number sits in the bottom-right corner, where it has room to breathe
   — a four-digit rating overflowed the narrow statbox it used to live in. */
.skin-card--rank{ position:relative; }
.skin-card__rating{
  position:absolute; right:12px; bottom:12px;
  padding:4px 10px; font-family:var(--font-mono); font-weight:700;
  font-size:20px; line-height:1.1; letter-spacing:.01em;
  border:2px solid var(--text-primary); border-radius:var(--radius-sm);
}
/* Supporter rank: a red badge across the top of the portrait, mirroring the
   rating block in the opposite corner. Solid red with the black border, so it
   reads as the same supporter accent the store and banner callouts use. */
.skin-card__supporter{
  position:absolute; top:12px; left:50%; transform:translateX(-50%);
  padding:4px 12px; white-space:nowrap;
  background:var(--umc-red-600); color:#fff;
  border:2px solid var(--text-primary); border-radius:0;
  font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:11px; letter-spacing:.1em;
}
/* A supporter's banner is the card's face: the 20x40 art (a PNG data: URI on the
   element) blown up edge to edge with hard pixel edges, framed by the card's own
   black border, so the player reads as standing in front of a hung banner. */
.skin-card--banner{
  background-repeat:no-repeat; background-position:center;
  /* The border box is exactly the art's 1:2, so 100% 100% off the border box
     fills the card edge to edge with no distortion and no cropped pixel. */
  background-origin:border-box; background-size:100% 100%;
  image-rendering:pixelated;
}
/* drop-shadow, not box-shadow: the skin render is a transparent PNG, so the
   shadow has to follow the figure's silhouette rather than its bounding box.
   Solid black at zero blur — the system's hard offset shadow, and it keeps the
   pixel edges crisp against a banner backdrop. */
/* width:auto is load-bearing: the <img> carries the render's intrinsic
   width/height so the box is reserved before the bytes land, and those
   attributes are also a presentational hint. Only height is overridden here, so
   without this the hint's 280px width would survive and squash the figure. With
   it, the attribute-derived 5:12 ratio sets the width from whatever height the
   breakpoint asks for.

   Steve stands in until the real render arrives. The placeholder is a 20x48,
   12-colour palette PNG (~390 bytes) inlined here on purpose: it rides in on the
   render-blocking stylesheet, so it is already decoded at first paint and there
   is no second image that could itself pop in. It is the upstream Steve body
   render boxed down to 20x48 — the same 5:12 as the real one, so
   background-size:100% 100% lands it exactly on the figure it stands in for,
   and pixelated scaling suits a placeholder for a Minecraft skin anyway.

   color:transparent kills the alt text: with the box now reserved at full size,
   the player's name rendered inside it for as long as the fetch took — that was
   the stray text. It stays in the DOM for screen readers.

   The real skin is a transparent PNG, so Steve has to go the moment it paints or
   he ghosts through it — .is-loaded, set by the img's onload, drops him. */
.skin{ height:280px; width:auto; image-rendering:pixelated; display:block;
  color:transparent;
  background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAwCAMAAAAmaqofAAAAJ1BMVEUAAABCN58BqqqaZEorHgw2JBGsdl4GjI48NYdKhXliOyhCQ0aGWD/kKK6yAAAAAXRSTlMAQObYZgAAAQxJREFUeNqd09uWgyAMBVA1XALk/793TkKi0DrzMFmtle0hKK4ex5+V0jflnHfWcfbDPS+F6m8KjMp6xdGDXnfHO5d7joXDuhD1pSeudCkoWlbHh5RKiZ42v6txJBVFEGSSQnJdmkQoESXkeu8yUUQXRRVYdjxITUgENznaZXjVVoCoPOpVK/Cyaq0J8jiDNUc9r00PtREtOK+I3v4n6mMFmhpqsvlKGxKBsfSGeDh7nupdZtK2y9DChOGvWAyrIxmSY62Mr+gml0A+UfW0fZ+I92B4TrTpOGBsviDJhmhARWwunw8exxkNdwziF+TPpLd4mf4vfIz5QQ7iceMY7DQ2nLJj1PI3fCH3ZfADUpIM5PDfMLgAAAAASUVORK5CYII=");
  background-size:100% 100%; background-repeat:no-repeat;
  filter:drop-shadow(6px 6px 0 var(--umc-true-black)); }
.skin.is-loaded{ background-image:none; }
.profile-id{ flex:1 1 460px; display:flex; flex-direction:column; }
.profile-id__row{ display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-bottom:6px; }
.profile-id h1{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  letter-spacing:-.01em; font-size:52px; margin:0; line-height:1; word-break:break-word; }
.profile-id__sub{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:11px; letter-spacing:.14em; color:var(--umc-ink-500); margin-top:4px; }
.statgrid{ display:flex; gap:12px; flex-wrap:wrap; margin-top:20px; }
.statbox{
  flex:1; min-width:96px; background:var(--surface-card); border:2px solid var(--text-primary);
  border-radius:var(--radius-md); padding:12px 14px; box-shadow:var(--shadow-hard-sm);
}
.statbox__label{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:9px; letter-spacing:.14em; color:var(--umc-ink-500); }
.statbox__value{ font-family:var(--font-mono); font-weight:700; font-size:26px; line-height:1.1; }
/* K/D and Win % are the headline pair: pushed to the foot of the column with an
   auto margin, then sized well above the rest of the grid. */
.statgrid--hero{ margin-top:auto; padding-top:14px; }
.statbox--hero{ flex:1 1 45%; min-width:150px; padding:16px 18px; box-shadow:var(--shadow-hard); }
.statbox--hero .statbox__label{ font-size:11px; }
.statbox--hero .statbox__value{ font-size:46px; line-height:1; margin-top:4px; }

/* Titles. A title chip is a .tag whose fill comes from title_styles (set
   inline by title_style() in app.py); without a style row it stays a plain tag.
   On the portrait the rating and the newest title share the bottom-right
   corner as a right-aligned stack — rating on top, title underneath — so a
   title that wraps onto two lines on the narrow card just grows the stack
   upward instead of overlapping the rating. */
.skin-card__corner{
  position:absolute; left:12px; right:12px; bottom:12px;
  display:flex; flex-direction:column; align-items:flex-end; gap:6px;
}
.skin-card__corner .skin-card__rating{ position:static; }
.skin-card__title{
  max-width:100%; padding:3px 8px; font-size:10px; letter-spacing:.08em;
  line-height:1.25; text-align:right; overflow-wrap:anywhere;
}
/* The full list: a narrow third column beside the stats on desktop, only
   rendered once a player holds two or more titles (one already shows on the
   portrait). The column stretches to the row's height but contributes none of
   its own — the list inside is absolutely positioned — so the row is sized by
   the portrait and the stats alone. The list shrinks to its content and caps
   at the bottom of the stats, scrolling past that. Below 1040px — where
   portrait + stats (460px basis) + this column + gaps stop fitting the
   1116px-max content width — it drops under the profile at full width. */
.titles{ flex:0 0 250px; position:relative; }
.titles__box{
  position:absolute; top:0; left:0; right:0; max-height:100%; overflow-y:auto;
  border:3px solid var(--text-primary); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-hard); background:var(--surface-card);
}
.titles__head{ position:sticky; top:0; padding:10px 14px; background:var(--surface-ink);
  color:var(--text-inverse); font-family:var(--font-display); font-weight:var(--fw-bold);
  text-transform:uppercase; font-size:11px; letter-spacing:.14em; }
.titles__row{ display:flex; flex-direction:column; align-items:flex-start; gap:6px;
  padding:12px 14px; border-bottom:1px solid var(--umc-line-200); }
.titles__row:last-child{ border-bottom:0; }
.titles__row .tag{ max-width:100%; overflow-wrap:anywhere; }
.titles__meta{ display:flex; gap:8px; max-width:100%; font-size:12px; color:var(--umc-ink-500); }
.titles__event{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.titles__date{ font-family:var(--font-mono); white-space:nowrap; }
@media (max-width:1040px){
  .titles{ flex:1 1 100%; }
  .titles__box{ position:static; max-height:264px; }
}

/* Rank tier: a solid swatch in the tier's colour, inline with the rating it's
   derived from. Same bordered-block treatment as the leaderboard avatars. */
.rating-cell{ display:flex; align-items:center; gap:8px; }
.rank-ico{ display:inline-block; flex:0 0 auto;
  border:2px solid var(--text-primary); border-radius:var(--radius-sm); }

/* recent-match grid */
.rm-grid{ grid-template-columns:130px 90px 110px 1fr 40px; }
.rm-min{ min-width:640px; }

/* ---- match detail ---- */
.scoreline{ background:var(--surface-card); border:3px solid var(--text-primary); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-hard); padding:28px 32px; margin-bottom:14px; }
.scoreline__meta{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; gap:12px; flex-wrap:wrap; }
.scoreline__stage{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:11px; letter-spacing:.14em; color:var(--umc-ink-500); }
.scoreline__id{ font-family:var(--font-mono); font-size:13px; color:var(--umc-ink-500); }
.scoreline__main{ display:flex; align-items:center; gap:24px; justify-content:center; flex-wrap:wrap; }
.side{ flex:1; text-align:center; min-width:140px; }
.side--dim{ opacity:.6; }
.side__name{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase; font-size:30px; margin-top:12px; }
.side__win{ display:inline-block; margin-top:8px; color:#fff; border:2px solid var(--text-primary); border-radius:var(--radius-sm);
  padding:3px 14px; font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:10px; letter-spacing:.14em; }
.side__win--red{ background:var(--umc-red-600); }
.side__win--blue{ background:var(--umc-blue-600); }
.bigscore{ font-family:var(--font-mono); font-weight:700; font-size:72px; line-height:1; white-space:nowrap; }
.bigscore .dash{ color:var(--umc-ink-300); }
.bigscore .red{ color:var(--umc-red-600); }
.bigscore .blue{ color:var(--umc-blue-600); }
.chips{ display:flex; justify-content:center; gap:10px; margin-top:22px; flex-wrap:wrap; }
.chip{ border:2px solid var(--text-primary); border-radius:var(--radius-sm); padding:6px 14px; font-size:12px;
  display:flex; gap:8px; align-items:center; font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase; }
.chip .muted{ color:var(--umc-ink-500); }

.sb-grid{ grid-template-columns:1fr 60px 60px 60px 80px 70px 70px; }
.sb-min{ min-width:660px; }
.sb-team-head{ padding:10px 18px; color:var(--text-inverse); font-family:var(--font-display); font-weight:var(--fw-bold);
  text-transform:uppercase; font-size:15px; letter-spacing:.06em; border-bottom:3px solid var(--text-primary);
  display:flex; justify-content:space-between; }
.sb-team-head--red{ background:var(--umc-red-600); color:#fff; }
.sb-team-head--blue{ background:var(--umc-blue-600); color:#fff; }
.sb-team-head--neutral{ background:var(--surface-ink); }
/* A side that is a registered team links to its page: keep the heading's
   own colour, underline to show it's a link. */
.team-link{ color:inherit; text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:3px; }
.team-link:hover{ text-decoration-thickness:3px; }
.sb-player{ display:flex; align-items:center; gap:10px; }
.sb-player__role{ font-size:10px; color:var(--umc-ink-500); }

/* ---- lookup box ---- */
.lookup{ background:var(--surface-card); border:3px solid var(--text-primary); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-hard); padding:26px; }
.lookup__title{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase; font-size:20px; margin-bottom:14px; }
.lookup__tabs{ display:flex; gap:6px; margin-bottom:14px; border-bottom:3px solid var(--text-primary); }
.lookup__tab{ position:relative; top:3px; padding:8px 14px; border:none; cursor:pointer;
  background:transparent; color:var(--umc-ink-500); font-family:var(--font-display); font-weight:var(--fw-bold);
  text-transform:uppercase; font-size:12px; letter-spacing:.08em; border-radius:var(--radius-sm) var(--radius-sm) 0 0; }
.lookup__tab.is-active{ background:var(--surface-ink); color:var(--text-inverse); }
.lookup__form{ display:flex; gap:10px; }
.field{ flex:1; display:flex; align-items:center; gap:8px; background:var(--surface-card); border:2px solid var(--text-primary);
  border-radius:var(--radius-sm); padding:10px 14px; }
.field .ico{ width:16px; height:16px; color:var(--umc-ink-500); }
.field input{ flex:1; border:none; outline:none; font:inherit; font-size:15px; background:transparent; min-width:0; color:inherit; }
.lookup__hint{ margin-top:12px; font-size:12px; color:var(--umc-ink-500); }
.lookup__hint b{ cursor:pointer; }
.notice{ margin-top:20px; background:var(--umc-surface-2); border:2px solid var(--text-primary);
  border-radius:var(--radius-md); padding:14px 18px; color:var(--text-primary); font-size:14px; }

/* ---- footer ---- */
.ftr{ background:var(--surface-ink); color:var(--text-inverse); padding:32px; margin-top:8px; }
.ftr__inner{ max-width:1180px; margin:0 auto; display:flex; justify-content:space-between;
  align-items:center; flex-wrap:wrap; gap:16px; }
.ftr__brand{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase; font-size:22px; }
.ftr__mail{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:10px; letter-spacing:.14em; color:var(--umc-ink-300); }

/* ---- misc ---- */
.backlink{ margin-bottom:20px; }
.empty{ padding:40px 18px; text-align:center; color:var(--umc-ink-500); font-size:15px; }

/* ============================================================
   BANNER DESIGNER
   Preview column on the left (sticky), build controls on the right.
   Everything leans on the role tokens, so dark mode needs no extra work
   beyond the dye swatches — those keep their true Minecraft hex values.
   ============================================================ */
/* Intro row: lede on the left, supporter notice pinned to the right, both
   sitting on the same line under the section title. */
.bd-intro{
  display:flex; align-items:flex-start; flex-wrap:wrap;
  gap:16px 28px; margin:0 0 36px;
}
.bd-intro .lede{ flex:1 1 360px; margin:0; }

/* Supporter-rank notice — red pop-out. Solid red with the signature black
   border + hard shadow so it reads as a callout, not as one of the page's
   grey action buttons. */
.bd-gate{
  display:flex; align-items:center; gap:9px;
  flex:0 0 auto; max-width:100%;
  margin-left:auto;                  /* keeps it right-aligned once wrapped */
  padding:10px 18px;
  background:var(--umc-red-600); color:#fff;
  border:3px solid var(--text-primary); border-radius:var(--radius-md);
  box-shadow:var(--shadow-hard);
  font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:13px; letter-spacing:.06em;
  transition:background .12s var(--ease-out), box-shadow .12s var(--ease-out), transform .12s var(--ease-out);
}
/* hover flips the hard shadow to the left, keeping it black — the button face
   stays red rather than darkening */
.bd-gate:hover{ box-shadow:-5px 5px 0 var(--umc-true-black); }
/* press collapses toward wherever the shadow currently sits */
.bd-gate:active{ box-shadow:0 0 0 var(--umc-true-black); transform:translate(-5px,5px); }
.bd-gate .ico{ width:17px; height:17px; flex:0 0 auto; }
/* Home hero: the same callout carrying the server address. Only the box metrics
   and the mono address type differ — colour, border, shadow and press are the
   .bd-gate rules above, untouched. */
.bd-gate--addr{
  width:100%; margin-left:0; justify-content:center; cursor:pointer;
  padding:16px 22px; font-size:22px; letter-spacing:.01em; text-transform:none;
}
.bd-gate--addr .ico{ width:20px; height:20px; }
.bd-gate--addr .mono{ font-family:var(--font-display); font-weight:var(--fw-bold);
  letter-spacing:-.01em; overflow-wrap:anywhere; }

/* Share button: the same callout at button-row scale so it can sit on a title
   line without swamping it. Face, border, shadow and press are .bd-gate's. */
.bd-gate--share{
  cursor:pointer; padding:9px 15px; font-size:12px; white-space:nowrap;
}
.bd-gate--share .ico{ width:15px; height:15px; }

.bd{ display:flex; gap:28px; align-items:flex-start; flex-wrap:wrap; }
.bd__side{ flex:0 0 296px; display:flex; flex-direction:column; gap:14px; position:sticky; top:84px; }
.bd__main{ flex:1 1 520px; min-width:0; display:flex; flex-direction:column; gap:20px; }

.bd-stage{
  background:var(--surface-sunken); border:3px solid var(--text-primary);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-hard);
  padding:22px; display:flex; justify-content:center;
}
.bd-canvas{
  width:150px; height:300px; display:block; image-rendering:pixelated;
  border:2px solid var(--text-primary); background:var(--surface-card);
}
.bd-actions{ display:flex; gap:8px; }
.bd-actions .btn{ flex:1; padding-left:0; padding-right:0; }

.bd-panel{
  background:var(--surface-card); border:3px solid var(--text-primary);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-hard); padding:18px;
}
.bd-panel__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.bd-panel__head h3{
  font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:18px; letter-spacing:.02em; margin:0;
}
.bd-step{ font-size:13px; font-weight:700; color:var(--umc-ink-300); }
.bd-note{ margin:12px 0 0; font-size:12px; line-height:1.5; color:var(--umc-ink-500); }
.bd-note .ico{ width:13px; height:13px; vertical-align:-2px; margin-right:5px; }
/* dye swatches — the 16 Minecraft dyes, at their real hex values */
.bd-swatches{ display:grid; grid-template-columns:repeat(8,1fr); gap:7px; }
.bd-sw{
  aspect-ratio:1; padding:0; cursor:pointer; border:2px solid var(--text-primary);
  border-radius:var(--radius-sm); transition:transform .1s var(--ease-out);
}
.bd-sw:hover{ transform:translate(-1px,-1px); }
.bd-sw.is-active{ outline:3px solid var(--text-primary); outline-offset:2px; }

/* pattern palette */
.bd-group + .bd-group{ margin-top:22px; border-top:2px solid var(--border-soft); padding-top:18px; }
.bd-group__title{
  font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:10px; letter-spacing:var(--ls-caption); color:var(--umc-ink-500); margin-bottom:12px;
}
.bd-pats{ display:grid; grid-template-columns:repeat(auto-fill,minmax(58px,1fr)); gap:8px; }
.bd-pat{
  display:flex; flex-direction:column; align-items:center; gap:5px;
  padding:6px 4px; cursor:pointer; background:var(--surface-card); color:inherit;
  border:2px solid var(--text-primary); border-radius:var(--radius-sm);
  transition:transform .1s var(--ease-out), box-shadow .1s var(--ease-out);
}
.bd-pat:hover{ transform:translate(-2px,-2px); box-shadow:var(--shadow-hard-sm); }
.bd-pat__cv{
  width:100%; max-width:34px; aspect-ratio:1/2; display:block;
  image-rendering:pixelated; border:1px solid var(--border-soft);
}
.bd-pat__name{
  font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:8px; letter-spacing:.06em; line-height:1.2; text-align:center; color:var(--umc-ink-500);
}
.is-full .bd-pat{ opacity:.35; pointer-events:none; }

/* layer stack */
.bd-layers{ display:flex; flex-direction:column; gap:8px; }
.bd-layer{ display:flex; align-items:stretch; gap:6px; border:2px solid var(--text-primary); background:var(--surface-card); }
.bd-layer.is-sel{ background:var(--surface-sunken); box-shadow:var(--shadow-hard-sm); }
.bd-layer__pick{
  flex:1; min-width:0; display:flex; align-items:center; gap:9px; text-align:left;
  border:none; background:transparent; cursor:pointer; padding:7px 8px; color:inherit; font:inherit;
}
.bd-layer__n{ font-size:11px; font-weight:700; color:var(--umc-ink-300); flex:0 0 auto; }
.bd-layer__chip{ width:16px; height:16px; border:2px solid var(--text-primary); flex:0 0 auto; }
.bd-layer__txt{ min-width:0; display:flex; flex-direction:column; line-height:1.2; }
.bd-layer__txt b{
  font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase; font-size:12px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.bd-layer__txt small{ font-size:10px; color:var(--umc-ink-500); }
.bd-layer__acts{ display:flex; align-items:center; gap:2px; padding-right:5px; }
.bd-mini{
  width:22px; height:22px; padding:0; display:flex; align-items:center; justify-content:center;
  border:none; background:transparent; cursor:pointer; color:var(--umc-ink-500);
}
.bd-mini:hover:not(:disabled){ color:var(--text-primary); }
.bd-mini:disabled{ opacity:.25; cursor:default; }
.bd-mini svg{ width:13px; height:13px; }
.bd-mini--up svg{ transform:rotate(-90deg); }
.bd-mini--down svg{ transform:rotate(90deg); }
.bd-mini--del:hover:not(:disabled){ color:var(--umc-red-600); }
.bd-empty{ margin:0; padding:14px 4px; font-size:12px; color:var(--umc-ink-500); }

/* save — the primary action: it writes the design to the player's account */
.bd-save{ margin-top:28px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.bd-save .bd-note{ margin:0; }
/* the share button trails the row, away from the primary action */
.bd-save [data-copy]{ margin-left:auto; flex:none; }
.bd-save .bd-note.is-ok{ color:var(--umc-blue-600); }
.bd-save .bd-note.is-err{ color:var(--umc-red-600); }

/* ---- store: the one-line supporter pitch above the plan cards ----
   Sized to hold the whole sentence on a single line down to ~720px; below
   that the responsive rule lets it wrap rather than clip. */
.store__pitch{
  margin:0 0 24px; padding:16px 22px;
  background:var(--surface-card); border:3px solid var(--text-primary);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-hard);
  font-size:clamp(12px, 1.42vw, 17px); line-height:1.4;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Banner designer: below this the two columns stack, so the preview sits
   above the controls instead of beside them. */
@media (max-width:900px){
  .bd__side, .bd__main{ flex:1 1 100%; position:static; }
}

/* Only pin the preview when the viewport is tall enough to show the whole
   column — otherwise the bottom of it would be stuck out of reach. */
@media (max-height:820px){
  .bd__side{ position:static; }
}

/* Tablet / small laptop — ease the nav before the mobile switch. */
@media (max-width:860px){
  .wrap, .wrap-narrow, .wrap-slim{ padding-left:24px; padding-right:24px; }
  .nav a{ padding:8px 10px; }
  .hero h1{ font-size:56px; }
}

/* Phones — collapse the nav into a burger dropdown + tighten spacing. */
@media (max-width:720px){
  .wrap, .wrap-narrow, .wrap-slim{ padding-left:18px; padding-right:18px; }
  /* no room for one line at phone widths — wrap instead of clipping */
  .store__pitch{ white-space:normal; font-size:14px; line-height:1.55; padding:14px 16px; }
  /* leaderboard season notes are desktop-only */
  .lb-head__note{ display:none; }
  .lb-head__lookup{ flex:1 1 100%; }

  /* Header: logo + actions stay on one row; nav becomes a dropdown panel. */
  .hdr{ gap:10px; padding:10px 16px; flex-wrap:wrap; }
  .hdr__logo{ width:34px; height:34px; }
  .hdr__home{ margin-right:auto; }          /* push the action buttons right */
  .hdr__spacer{ display:none; }
  .hdr .hdr__burger{ display:inline-flex; }
  .hdr .btn__label{ display:none; }         /* Discord button → icon only */

  /* With JS: hide the nav, reveal it as a bordered dropdown when open. */
  .has-js .nav{
    position:absolute; top:100%; left:0; right:0; z-index:10;
    display:none; flex-direction:column; gap:4px;
    padding:10px 16px 16px; background:var(--surface-card);
    border-bottom:3px solid var(--text-primary); box-shadow:var(--shadow-hard);
  }
  .has-js .hdr.nav-open .nav{ display:flex; }
  .nav a{ padding:12px 14px; font-size:14px; }
  .has-js .nav a{ border:2px solid transparent; }
  .has-js .nav a.is-active{ border-color:var(--text-primary); }

  /* No JS: the nav simply wraps onto its own full-width row (still usable). */
  html:not(.has-js) .nav{ order:5; flex-basis:100%; }

  /* Hero */
  .hero{ padding:36px 0; }
  .hero__grid{ gap:32px; }
  .hero h1{ font-size:46px; }
  .hero__lede{ font-size:16px; }

  /* Section rhythm */
  .section{ padding-top:32px; padding-bottom:16px; }
  .section-last{ padding-bottom:48px; }
  .stitle h2{ font-size:26px; }

  /* Player profile */
  .profile-top{ gap:20px; }
  .profile-id h1{ font-size:40px; }

  /* Match */
  .scoreline{ padding:20px 18px; }
  .scoreline__main{ gap:16px; }
  .bigscore{ font-size:52px; }
}

/* Small phones — stack CTAs, drop non-essential chrome, fit the scoreline. */
@media (max-width:480px){
  .wrap, .wrap-narrow, .wrap-slim{ padding-left:14px; padding-right:14px; }

  .hero{ padding:28px 0; }
  .hero h1{ font-size:40px; }

  /* Full-width call-to-action buttons = comfortable tap targets. */
  .btn-row{ gap:10px; }
  .btn-row .btn--lg{ flex:1 1 100%; }

  /* Section titles wrap; the flourish rule adds nothing when space is tight. */
  .stitle{ flex-wrap:wrap; gap:8px 12px; }
  .stitle h2{ font-size:23px; }
  .stitle__rule{ display:none; }

  /* Match scoreline: let the two sides shrink so "A – B" stays on one row. */
  .scoreline{ padding:18px 14px; }
  .scoreline__main{ gap:10px; }
  .side{ min-width:0; }
  .side__name{ font-size:22px; word-break:break-word; }
  .bigscore{ font-size:40px; }
  .scoreline__meta{ font-size:11px; }

  /* Profile: the banner card keeps its 1:2 shape, just smaller, and centres on
     its own row rather than stretching to the full width. */
  .skin-card{ flex:0 0 auto; width:150px; height:300px; margin:0 auto;
    padding:16px; }
  .skin{ height:190px; }
  .profile-id h1{ font-size:34px; }
  .statbox__value{ font-size:22px; }
  .statbox--hero .statbox__value{ font-size:36px; }

  /* Lookup: stack the field above the button so neither gets cramped. */
  .lookup{ padding:20px; }
  .lookup__form{ flex-wrap:wrap; }
  .lookup__form .field{ flex:1 1 100%; }
  .lookup__form .btn{ flex:1 1 100%; }

  /* Footer reads better centered when it wraps. */
  .ftr__inner{ justify-content:center; text-align:center; }
}


/* ---- tournament bracket (/bracket) ----
   Columns of match boxes per round, winners then losers. Each column is a
   flex column with its matches spread evenly, so a later round's single box
   sits between the two boxes that feed it — the bracket shape without
   drawing connector lines. The strip scrolls sideways on narrow screens. */
.br{ margin-bottom:40px; }
.br__lede{ margin-bottom:24px; }
.br__ext{ text-decoration:underline; text-underline-offset:3px; }
.br__note{ font-size:14px; color:var(--umc-ink-700); background:var(--umc-surface-2);
  border-left:4px solid var(--text-primary); padding:10px 14px; margin:0 0 24px; }
.br__title{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  letter-spacing:.06em; font-size:18px; margin:0 0 14px; }
.br__scroll{ overflow-x:auto; padding:4px 8px 12px 0; }     /* room for the hard shadows */
.br__grid{ display:flex; gap:28px; align-items:stretch; width:max-content; min-width:100%; }
.br__col{ display:flex; flex-direction:column; width:236px; flex:0 0 auto; }
.br__round{ font-family:var(--font-display); font-weight:var(--fw-bold); text-transform:uppercase;
  font-size:12px; letter-spacing:.1em; color:var(--umc-ink-500);
  border-bottom:3px solid var(--text-primary); padding-bottom:8px; margin-bottom:16px; }
.br__matches{ flex:1; display:flex; flex-direction:column; justify-content:space-around; gap:18px; }

.bm{ background:var(--surface-card); border:3px solid var(--text-primary);
  border-radius:var(--radius-md); box-shadow:var(--shadow-hard-sm); }
.bm__head{ display:flex; justify-content:space-between; align-items:center; padding:3px 10px;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--umc-ink-500); border-bottom:2px solid var(--umc-line-200); }
.bm__side{ display:flex; align-items:center; gap:8px; padding:8px 10px; min-height:38px; }
.bm__side + .bm__side{ border-top:2px solid var(--umc-line-200); }
.bm__seed{ width:16px; flex:0 0 auto; font-size:11px; color:var(--umc-ink-300); text-align:right; }
.bm__name{ flex:1; min-width:0; font-weight:600; font-size:14px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
a.bm__name:hover{ text-decoration:underline; text-underline-offset:3px; }
.bm__score{ flex:0 0 auto; min-width:18px; text-align:right; font-weight:700; font-size:15px; }
.bm__side--tbd .bm__name{ color:var(--umc-ink-300); font-weight:400; font-style:italic; }
.bm__side--won{ background:var(--umc-surface-2); }
.bm__side--won .bm__score{ color:var(--umc-red-600); }
.bm__side--lost .bm__name, .bm__side--lost .bm__score{ color:var(--umc-ink-500); }
.bm--live{ border-color:var(--umc-red-600); box-shadow:var(--shadow-hard-red); }
.bm--live .bm__head{ color:var(--umc-red-700); border-bottom-color:var(--umc-red-600); }
.bm--optional{ border-style:dashed; box-shadow:none; }
.bm--optional .bm__head{ border-bottom-style:dashed; }
@media (max-width:640px){
  .br__col{ width:200px; }
  .br__grid{ gap:18px; }
}

/* ============================================================
   DARK THEME
   A real token swap (no invert filter). Toggled by adding
   .umc-dark to the <html> element (see base.html).
   Light mode is the default in tokens/colors.css; this only
   overrides the neutral role tokens + a few team-tinted washes.
   ============================================================ */
.umc-dark{
  color-scheme: dark;

  /* neutral roles */
  --umc-black: #e9e9ec;         /* legacy alias — some templates use it inline */
  --text-primary: #e9e9ec;      /* body text + the heavy borders */
  --text-inverse: #101013;      /* text sitting on the light "ink" blocks */
  --surface-ink: #e9e9ec;       /* primary fills: buttons, table heads, footer */
  --surface-ink-hover: #cfcfd4;
  --surface-card: #17181b;      /* cards / panels / header */
  --bg-page: #0e0e11;           /* page background */

  --umc-ink-700: #c4c4ca;       /* secondary body text */
  --umc-ink-500: #9a9aa2;       /* muted labels / nav */
  --umc-ink-300: #74747c;       /* faint numerals, dashes */
  --umc-line-200: #26262b;      /* table row dividers */
  --umc-surface-2: #212227;     /* sunken fills, row hover, notice */
}

/* team-tinted washes: the light 50-level tints would glare on dark,
   so give them dark tints with legible light-team text */
.umc-dark .tag--red{ background:#2a1418; color:#f2909b; }
.umc-dark .tag--blue{ background:#141a34; color:#9fb0f5; }
.umc-dark .skin-card--red{ background:#22131a; }
.umc-dark .skin-card--blue{ background:#141834; }

/* big score reads brighter on the dark panel */
.umc-dark .bigscore .blue{ color:#6f86ff; }


/* keep the footer a calm dark band (a full-width light band would glare),
   separated from the page by a light top rule */
.umc-dark .ftr{ background:#17181b; color:#e9e9ec; border-top:3px solid var(--text-primary); }
.umc-dark .ftr__mail{ color:#9a9aa2; }
.umc-dark .bm--live .bm__head{ color:#f2909b; }
.umc-dark .bm__side--won .bm__score{ color:#f2909b; }
