/* The new look. Loaded after the old styles, and only when <html> has the
   v2 class (base.html), so with it off nothing here applies. Every rule
   starts :root.v2 so it outweighs the old ones, including the pages' own
   <style> blocks further down.

   Light is plain paper and ink with thin lines; dark is a deep navy with
   panels. Yellow is kept for the few things to press (Sign in, Download)
   and the page you're on. Numbers are monospaced so columns line up.
   Winning is blue and losing orange, which colour-blind players can tell
   apart (green and red are the pair they can't).

   Fonts: Archivo, JetBrains Mono and Fraunces, all SIL Open Font License
   (fonts/*-OFL.txt), served from here, not Google. The logo and its
   Space Grotesk name are unchanged. */

@font-face{font-family:"Archivo";font-style:normal;font-weight:100 900;
  font-display:swap;src:url(/static/archivo-var.woff2) format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;
  font-display:swap;src:url(/static/jetbrains-mono-var.woff2) format("woff2")}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:100 900;
  font-display:swap;src:url(/static/fraunces-var.woff2) format("woff2")}

/* ---- colours: light */
:root.v2{
  --sans:"Archivo","Segoe UI",system-ui,-apple-system,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,Consolas,monospace;
  --serif:"Fraunces",Georgia,serif;
  --surface:#f6f5f1; --card:#ffffff; --panel:#efede6; --field:#ffffff;
  --line:#e2dfd5; --rule:#bdb8aa; --strong:#15140f;
  --text:#15140f; --text-soft:#3d3a33; --muted:#6a6558;
  --row-hover:#faf8f2; --link:#15140f; --underline:#c9c5b8;
  --win:#1d5fd1; --loss:#c2410c; --danger:#c2410c;
  /* a red to fill a button with white text on it: dark enough in both modes */
  --danger-fill:#c2410c;
  --good-bg:#e8effc; --good-line:#c5d6f5;
  --bad-bg:#fbece4; --bad-line:#f1cbb8;
  --warn-bg:#fdf6d8; --warn-line:#ecd98a;
  --chart:#1d3f8f; --chart-hover:#15140f; --shadow:rgba(20,18,10,.18);
  --viz-grid:#ebe8df; --viz-base:#c9c5b8;
  --tile:transparent;
  --bar:#15140f;
  --wl-w-bg:#15140f; --wl-w-fg:#ffffff; --wl-l-bg:#e7e3d8; --wl-l-fg:#6a6558;
  --btn-bg:#15140f; --btn-fg:#ffffff; --btn-hover:#3a372f;
  --accent-ink:#9a7300;
  color-scheme:light;
}
/* ---- colours: dark (the device's setting, or the toggle) */
@media (prefers-color-scheme: dark){
  :root.v2:not([data-theme="light"]){
    --surface:#0b1020; --card:#121935; --panel:#161e3d; --field:#0e1430;
    --line:#222b4d; --rule:#36406a; --strong:#e8ecf8;
    --text:#e8ecf8; --text-soft:#c3cae3; --muted:#8a94b8;
    --row-hover:#151d3d; --link:#e8ecf8; --underline:#4a557f;
    --win:#6f9dff; --loss:#ff8a4c; --danger:#d9541e;
    --good-bg:#15244d; --good-line:#2a4185;
    --bad-bg:#3a1d12; --bad-line:#6b331b;
    --warn-bg:#2a240b; --warn-line:#5e5118;
    --chart:#8fb0ff; --chart-hover:#cfdcff; --shadow:rgba(0,0,0,.6);
    --viz-grid:#1c2547; --viz-base:#36406a;
    --bar:#c3cae3;
    --wl-w-bg:#1f3a7a; --wl-w-fg:#cfe0ff; --wl-l-bg:#4a2414; --wl-l-fg:#ffc3a3;
    --btn-bg:#e8ecf8; --btn-fg:#0b1020; --btn-hover:#c9d0e6;
    --accent-ink:#f5c518;
    color-scheme:dark;
  }
}
:root.v2[data-theme="dark"]{
  --surface:#0b1020; --card:#121935; --panel:#161e3d; --field:#0e1430;
  --line:#222b4d; --rule:#36406a; --strong:#e8ecf8;
  --text:#e8ecf8; --text-soft:#c3cae3; --muted:#8a94b8;
  --row-hover:#151d3d; --link:#e8ecf8; --underline:#4a557f;
  --win:#6f9dff; --loss:#ff8a4c; --danger:#d9541e;
  --good-bg:#15244d; --good-line:#2a4185;
  --bad-bg:#3a1d12; --bad-line:#6b331b;
  --warn-bg:#2a240b; --warn-line:#5e5118;
  --chart:#8fb0ff; --chart-hover:#cfdcff; --shadow:rgba(0,0,0,.6);
  --viz-grid:#1c2547; --viz-base:#36406a;
  --bar:#c3cae3;
  --wl-w-bg:#1f3a7a; --wl-w-fg:#cfe0ff; --wl-l-bg:#4a2414; --wl-l-fg:#ffc3a3;
  --btn-bg:#e8ecf8; --btn-fg:#0b1020; --btn-hover:#c9d0e6;
  --accent-ink:#f5c518;
  color-scheme:dark;
}

/* ---- page */
:root.v2 body{font:15px/1.55 var(--sans);background:var(--surface);color:var(--text)}
:root.v2 main a:not([class]),:root.v2 footer a:not([class]){color:var(--text);
  text-decoration:underline;text-decoration-color:var(--underline);
  text-decoration-thickness:1.5px;text-underline-offset:3px}
:root.v2 main a:not([class]):hover,:root.v2 footer a:not([class]):hover{
  text-decoration-color:var(--accent)}
:root.v2 h2,:root.v2 h1.as-h2{font:700 18px/1.3 var(--sans);letter-spacing:-.01em;
  text-transform:none;color:var(--text);margin:32px 0 10px}
:root.v2 .note{color:var(--muted)}
:root.v2 code{font-family:var(--mono);font-size:12.5px;border-radius:4px}

/* ---- header: the same navy bar and logo; no gold line under it, the
   page you're on keeps its gold edge */
:root.v2 header nav a.tab{font-family:var(--sans);font-weight:600;letter-spacing:0}
:root.v2 .tagline{font-family:var(--sans)}
:root.v2 .rule{display:none}
:root.v2 header nav a.tab.on,:root.v2 header nav a.tab.on:hover{
  box-shadow:inset 0 -3px 0 var(--accent)}
:root.v2 header nav a.tab.add-tab.on,:root.v2 header nav a.tab.add-tab.on:hover{
  box-shadow:inset 0 -3px 0 #b58c00}
/* a little shorter than the old 64px bar */
:root.v2 header{min-height:56px}
:root.v2 header .logo svg{width:40px;height:40px}
:root.v2 header .brand{font-size:20px}
/* Once the buttons drop under the logo as a strip (phones, narrow
   windows), they sit a little closer together, so a player's menu fits
   on two rows with its pictures, down to a 360px-wide phone (an admin,
   with one more button, gets three). */
@media (max-width:1000px){
  :root.v2 header nav a.tab{gap:5px;padding:0 7px;height:42px;font-size:13px}
}

/* ---- numbers line up */
:root.v2 td.num,:root.v2 .num,:root.v2 .rank,:root.v2 .card .val,
:root.v2 .stat-strip div span,:root.v2 td.rec .wlnum,:root.v2 td.fs,
:root.v2 .mshare span,:root.v2 td.when{font-family:var(--mono);
  font-variant-numeric:tabular-nums}
:root.v2 td.num,:root.v2 td.fs{font-size:13.5px}
:root.v2 td.when{font-size:13px}

/* ---- panels: a white sheet with a thin edge, a plain heading */
:root.v2 .panel{background:var(--card);border:1px solid var(--line);border-radius:8px}
:root.v2 .panel > h3{background:none;color:var(--text);
  font:700 16px/1.3 var(--sans);letter-spacing:-.01em;text-transform:none;
  padding:14px 16px 12px;border-bottom:1px solid var(--line)}
:root.v2 .panel > h3 .h-links,:root.v2 .panel > h3 .h-note{
  font:500 13px/1.3 var(--sans);color:var(--muted)}
:root.v2 .panel > h3 a{color:var(--muted)}
:root.v2 .panel > h3 a:hover{color:var(--text)}
:root.v2 .panel > h3 a:focus-visible{outline-color:var(--text)}
:root.v2 .h-note .bbtag{color:var(--muted);border-color:var(--line)}

/* ---- tables */
:root.v2 th{font:600 12.5px/1.3 var(--sans);letter-spacing:0;text-transform:none;
  color:var(--muted);border-bottom:1px solid var(--rule)}
:root.v2 td{border-bottom-color:var(--line)}
:root.v2 tr:hover td{background:var(--row-hover)}
:root.v2 .rk,:root.v2 .rk.r1,:root.v2 .rk.r2,:root.v2 .rk.r3{background:none;
  color:var(--muted);font:600 13px var(--mono);width:auto;justify-content:start}
:root.v2 .dk .tile,:root.v2 .gl-rod-tile,:root.v2 .lp-side .t{background:none !important}
:root.v2 .dk b{font-weight:600}

/* a win rate: the number in ink over a short bar in its colour (blue
   above 50%, grey at 50, red below), instead of a filled tile */
:root.v2 .wrt{background:none !important;color:var(--text) !important;
  font:700 14px var(--mono);min-width:0;padding:2px 1px 5px;border-radius:0;
  box-shadow:inset 0 -3px 0 var(--bg)}
@media (prefers-color-scheme: dark){
  :root.v2:not([data-theme="light"]) .wrt{box-shadow:inset 0 -3px 0 var(--bgd)}
}
:root.v2[data-theme="dark"] .wrt{box-shadow:inset 0 -3px 0 var(--bgd)}

:root.v2 .mshare i{height:6px;border-radius:3px;background:var(--line)}
:root.v2 .mshare i b,:root.v2 :not(.lp-shot) > .bar > span{background:var(--bar)}

/* you against everyone else */
:root.v2 .dv{font-family:var(--mono);font-size:12.5px;border-radius:4px}
:root.v2 .dv.up{background:var(--good-bg);color:var(--win)}
:root.v2 .dv.down{background:var(--bad-bg);color:var(--loss)}

/* W / L */
:root.v2 .wl{font:700 12px var(--mono);border-radius:4px;letter-spacing:0}
:root.v2 .wl.w{background:var(--wl-w-bg);color:var(--wl-w-fg)}
:root.v2 .wl.l{background:var(--wl-l-bg);color:var(--wl-l-fg)}
:root.v2 .bbtag{font-family:var(--mono);border-radius:4px}

/* the last-matches lists: the winner in bold, the loser quiet */
:root.v2 .feed .res{font:600 12px var(--mono);letter-spacing:0;text-transform:none}
:root.v2 .chip{color:var(--muted)}
:root.v2 .chip.won{background:none;color:var(--text);font-weight:700}
/* "Won" in the same full-strength text as the winning deck beside it;
   "Lost" stays quiet like the losing one */
:root.v2 .feed li.m .res:first-child{color:var(--text);font-weight:700}

/* ---- headline numbers */
:root.v2 .cards{gap:10px}
:root.v2 .card{background:var(--card);border-radius:6px}
:root.v2 .card .lbl{font-size:12.5px;letter-spacing:0;text-transform:none}
:root.v2 .card .val{font-size:24px;font-weight:700;letter-spacing:-.02em}

/* ---- a page's title block: big type on the page, not a blue box */
:root.v2 .hero{background:none;color:var(--text);border-radius:0;
  padding:6px 0 20px;border-bottom:1px solid var(--line)}
:root.v2 .hero h1,:root.v2 .hero h2{color:var(--text);font:800 34px/1.1 var(--sans);
  letter-spacing:-.03em}
:root.v2 .hero p{color:var(--text-soft);font-size:15px}
:root.v2 .stat-strip{gap:0}
:root.v2 .stat-strip > div{padding:0 26px;border-left:1px solid var(--line)}
:root.v2 .stat-strip > div:first-child{padding-left:0;border-left:0}
:root.v2 .stat-strip div span{font-size:24px;font-weight:700}
:root.v2 .stat-strip div small{color:var(--muted);font-size:13px;letter-spacing:0;
  text-transform:none}
@media (max-width:640px){
  :root.v2 .hero{padding:2px 0 16px}
  :root.v2 .hero h1,:root.v2 .hero h2{font-size:26px}
  :root.v2 .stat-strip > div{padding:0;border-left:0}
  /* three numbers sit in one row, not two and one */
  :root.v2 .stat-strip:has(> div:nth-child(3):last-child){
    grid-template-columns:repeat(3,minmax(0,1fr));column-gap:10px}
  /* sign in and sign up start near the top, not under a gap */
  :root.v2 .auth{margin-top:22px}
}

/* ---- buttons: ink, with yellow kept for the few that matter. These are
   kept as weak as the old site-wide button rule (:where adds nothing),
   so a page's own buttons -- the replay's log lines, its controls --
   keep the look that page gives them. */
:where(:root.v2) select,:where(:root.v2) input,:where(:root.v2) button,
:where(:root.v2) textarea{border-radius:6px}
:where(:root.v2) button,:root.v2 a.btnlink{background:var(--btn-bg);
  border-color:var(--btn-bg);color:var(--btn-fg)}
:where(:root.v2) button.plain{background:var(--card);border-color:var(--line);color:var(--text)}
/* the dark ink doesn't visibly darken, so the plain buttons get a
   lighter ink under the pointer instead */
:where(:root.v2) button:not([class]):not(:disabled):hover,
:where(:root.v2) button.share-btn:not(:disabled):hover,:root.v2 a.btnlink:hover{
  filter:none;background:var(--btn-hover);border-color:var(--btn-hover);box-shadow:none}
:where(:root.v2) button.plain:not(:disabled):hover{filter:none;border-color:var(--rule)}
:root.v2 .act{background:var(--card);border-radius:6px}
:root.v2 .act:hover{border-color:var(--rule)}
:root.v2 .pager .pg{background:var(--card);border-radius:6px}
:root.v2 dialog{border-radius:10px}
:root.v2 dialog.share a.dl{border-radius:6px;background:var(--card)}
:root.v2 .showing{background:var(--card);border-radius:6px}
:root.v2 .showing .lbl{letter-spacing:0;text-transform:none;font-size:12.5px}
:root.v2 .viz-tip{border-radius:6px}

/* ---- footer */
:root.v2 footer{border-top-color:var(--line)}
:root.v2 .foot-links a{color:var(--text)}


/* ---- page titles: every page's in the same serif as Global stats, so
   the site reads as one thing (Global stats' own is bigger still, its
   masthead). The sign-in and other short pages' headings take it too. */
:root.v2 :is(h1,h2).pt,:root.v2 .hero h1{font:600 40px/1.08 var(--serif);
  letter-spacing:-.02em;color:var(--text);text-transform:none}
:root.v2 h2.pt,:root.v2 h1.pt.as-h2{margin:6px 0 12px}
:root.v2 :is(h1,h2).pt.pt-sm{font-size:26px}
:root.v2 .auth h2{font:600 26px/1.15 var(--serif);letter-spacing:-.01em}
@media (max-width:640px){
  :root.v2 :is(h1,h2).pt,:root.v2 .hero h1{font-size:30px}
  :root.v2 :is(h1,h2).pt.pt-sm{font-size:22px}
}

/* ---- the same voice on every page as on Global stats */
/* panel headings in the serif, like the page titles */
:root.v2 .panel > h3{font:600 20px/1.25 var(--serif);letter-spacing:-.01em}
:root.v2 .panel > h3 .h-links,:root.v2 .panel > h3 .h-note{
  font-family:var(--sans)}
/* a page's big headline numbers, under its title, in the serif too
   (numbers in tables stay monospaced, to line up) */
:root.v2 .stat-strip div span{font:600 30px/1.1 var(--serif);
  letter-spacing:-.02em;font-variant-numeric:lining-nums}
@media (max-width:640px){
  :root.v2 .panel > h3{font-size:18px}
  :root.v2 .stat-strip div span{font-size:26px}
}
/* yellow is for Sign in, Download and Add a match: a deck page's
   Matchup chart link is a black button like Share beside it */
:root.v2 .hero a.hero-btn{background:var(--btn-bg);border-color:var(--btn-bg);
  color:var(--btn-fg);border-radius:6px}
:root.v2 .hero a.hero-btn:hover{filter:none;background:var(--btn-hover);
  border-color:var(--btn-hover);box-shadow:none}
:root.v2 .hero a.hero-btn:focus-visible{outline-color:var(--text)}
/* small labels in normal case, like the rest: Beta / New badges as
   quiet outlined tags, and the battle log's turn headings */
:root.v2 .rp-beta,:root.v2 .rp-top .beta,:root.v2 .lp-new{
  font:600 11px/1.5 var(--mono);letter-spacing:0;text-transform:lowercase;
  background:none;color:var(--muted);border:1px solid var(--rule);
  border-radius:4px;padding:1px 6px}
:root.v2 .rp-beta::first-letter,:root.v2 .rp-top .beta::first-letter,
:root.v2 .lp-new::first-letter{text-transform:uppercase}
:root.v2 .rp-beta,:root.v2 .rp-top .beta,:root.v2 .lp-new{display:inline-block}
/* the replay page's Share link, like the site's other links */
:root.v2 a.share-toggle{color:var(--text);text-decoration:underline;
  text-decoration-color:var(--underline);text-decoration-thickness:1.5px;
  text-underline-offset:3px}
:root.v2 a.share-toggle:hover{text-decoration-color:var(--accent)}
:root.v2 .rp-log h4,:root.v2 .turn h3,:root.v2 .rp-stad .tl{
  text-transform:none;letter-spacing:0;font-size:12.5px;font-family:var(--sans)}

/* =====================================================================
   Global stats: laid out like a weekly report. A serif headline over a
   heavy rule, the top ten as a plain ranked list, and the replay of the
   day as the one dark block on the page. */
:root.v2 [data-page="global"] .hero{border-top:3px solid var(--strong);
  border-bottom:1px solid var(--strong);padding:18px 0 22px}
:root.v2 [data-page="global"] .hero h1{font:700 52px/1.02 var(--serif);
  letter-spacing:-.02em}
:root.v2 [data-page="global"] .stat-strip div span{font:600 34px/1.1 var(--serif);
  letter-spacing:-.02em}
:root.v2 [data-page="global"] .panel{background:none;border:0;border-radius:0;
  border-top:2px solid var(--strong);overflow:visible}
:root.v2 [data-page="global"] .panel > h3{font:600 24px/1.2 var(--serif);
  letter-spacing:-.01em;padding:14px 0 10px;border-bottom:0}
:root.v2 [data-page="global"] .panel td,:root.v2 [data-page="global"] .panel th{
  padding-left:8px;padding-right:8px}
:root.v2 [data-page="global"] .panel td:first-child,
:root.v2 [data-page="global"] .panel th:first-child{padding-left:0}
:root.v2 [data-page="global"] .panel td:last-child,
:root.v2 [data-page="global"] .panel th:last-child{padding-right:0}
:root.v2 [data-page="global"] .feed li{padding-left:0;padding-right:0}
:root.v2 [data-page="global"] .trend-panel > div,
:root.v2 [data-page="global"] .panel > div:not(.table-wrap){padding-left:0;padding-right:0}
@media (max-width:640px){
  :root.v2 [data-page="global"] .hero h1{font-size:38px}
  :root.v2 [data-page="global"] .stat-strip div span{font-size:28px}
}

/* the top ten without the colour bands and medal outlines */
:root.v2 .top10 table{border-collapse:collapse;border-spacing:0;padding:0;margin:0}
:root.v2 .top10 td{background:none !important;filter:none !important;border:0 !important;
  border-bottom:1px solid var(--line) !important;border-radius:0 !important}
:root.v2 .top10 tr:hover td{background:var(--row-hover) !important}
:root.v2 .top10 th{border-bottom:1px solid var(--rule)}
:root.v2 .top10 .dk small{color:var(--muted) !important}
:root.v2 [data-page="global"] .top10 .rk{font:600 22px var(--serif);color:var(--muted) !important}
/* side by side with the last 10 matches: bigger sprites and rows, so the
   two columns end together */
@media (min-width:901px){
  :root.v2 [data-page="global"] .top10 td{padding-top:9px;padding-bottom:9px}
  :root.v2 [data-page="global"] .top10 .dk{gap:12px}
  :root.v2 [data-page="global"] .top10 .dk .tile{flex:0 0 84px;width:84px;height:64px;overflow:visible}
  :root.v2 [data-page="global"] .top10 .dk .tile img{width:78px;height:78px;margin:-8px -12px}
  :root.v2 [data-page="global"] .top10 .dk .tile img + img{margin-left:-34px}
  :root.v2 [data-page="global"] .top10 .dk b{font-size:18px}
  :root.v2 [data-page="global"] .top10 .dk small{font-size:14px}
  :root.v2 [data-page="global"] .top10 .rk{font-size:28px}
  :root.v2 [data-page="global"] .top10 .wrt{font-size:17px}
}
/* six columns (going first and going second) in the same width: closer
   cells, and the share as a number without a bar, so deck names still
   fit on a line */
:root.v2 [data-page="global"] .top10 :is(td,th){padding-left:6px;padding-right:6px}

/* the replay of the day: set like the rest of the report -- a heavy
   rule, a serif heading, the two decks with their sprites, and a link to
   watch rather than a button */
:root.v2 .gl-rod{background:none;border:0;border-top:2px solid var(--strong);
  border-radius:0;color:var(--text);overflow:visible}
:root.v2 .gl-rod{transition:background .12s,box-shadow .12s,border-color .12s}
/* Under the pointer the box lights up behind (spread with a shadow
   rather than padding, so nothing moves), and its top line and Watch
   turn yellow. */
:root.v2 .gl-rod:hover,:root.v2 .gl-rod:focus-visible{color:var(--text);
  transform:none;background:var(--card);border-color:var(--accent);
  box-shadow:0 0 0 12px var(--card);outline:0}
:root.v2 .gl-rod-h{background:none;color:var(--text);border:0;padding:12px 0 6px;
  font:600 22px/1.2 var(--serif);letter-spacing:-.01em;text-transform:none;
  align-items:baseline}
:root.v2 .gl-rod-h span{font:500 12.5px var(--sans);color:var(--muted)}
:root.v2 .gl-rod-vs{padding:8px 0 14px;align-items:start;gap:10px}
:root.v2 .gl-rod-side,:root.v2 .gl-rod-side.r{flex-direction:column;
  align-items:flex-start;gap:4px;text-align:left}
:root.v2 .gl-rod-side.r{align-items:flex-end;text-align:right}
:root.v2 .gl-rod{--rod:120px;--rod2:92px}
:root.v2 .gl-rod-tile{width:auto;height:var(--rod);border-radius:0;overflow:visible;
  justify-content:flex-start}
:root.v2 .gl-rod-side.r .gl-rod-tile{justify-content:flex-end}
:root.v2 .gl-rod-tile img{width:var(--rod);height:var(--rod);margin:0 -10px}
:root.v2 .gl-rod-tile img + img{margin-left:-30px}
:root.v2 .gl-rod-v{align-self:center}
@media (max-width:640px){ :root.v2 .gl-rod{--rod:104px;--rod2:78px} }
/* the sprites line up with the names under them, not past the edge */
:root.v2 .gl-rod-tile img:first-child{margin-left:-4px}
:root.v2 .gl-rod-tile img:last-child{margin-right:-4px}
:root.v2 .gl-rod-side small{color:var(--muted);font:500 12px var(--sans);letter-spacing:0;
  text-transform:none}
:root.v2 .gl-rod-side b{color:var(--text);font:700 16px/1.25 var(--sans);
  letter-spacing:-.01em;overflow-wrap:normal;-webkit-line-clamp:3}
:root.v2 .gl-rod-v{color:var(--muted);font:italic 600 16px var(--serif);
  align-self:start;padding-top:52px}
:root.v2 .gl-rod-f{background:none;border-top:1px solid var(--line);padding:10px 0 0;
  color:var(--muted);font-size:13px}
:root.v2 .gl-rod-go{background:none;color:var(--text);
  padding:0;border-radius:0;font:700 14px var(--sans);text-decoration:underline;
  text-decoration-color:var(--text);text-decoration-thickness:2px;
  text-underline-offset:4px;transition:color .12s,text-decoration-color .12s}
/* yellow under the pointer; the word a deeper yellow on light paper,
   where the bright one can't be read */
:root.v2 .gl-rod:hover .gl-rod-go,:root.v2 .gl-rod:focus-visible .gl-rod-go{
  background:none;color:var(--accent-ink);text-decoration-color:var(--accent)}
:root.v2 .gl-rod-go svg{display:none}

/* win / loss tags on replays, the same as the W / L in the tables, and
   written Win / Loss rather than in capitals */
:root.v2 .gl-rod-res,:root.v2 .rpc-res{font:700 12px var(--mono);letter-spacing:0;
  border-radius:4px;padding:3px 8px;text-transform:lowercase;
  background:var(--panel);color:var(--muted)}
:root.v2 .gl-rod-res::first-letter,:root.v2 .rpc-res::first-letter{text-transform:uppercase}
:root.v2 .gl-rod-res.win,:root.v2 .rpc-res.win{background:var(--wl-w-bg);color:var(--wl-w-fg)}
:root.v2 .gl-rod-res.loss,:root.v2 .rpc-res.loss{background:var(--wl-l-bg);color:var(--wl-l-fg)}

/* replay cards (My replays, Public replays) */
:root.v2 .rpc{border-radius:8px;border-color:var(--line)}
:root.v2 .rpc{transition:border-color .12s,box-shadow .12s}
:root.v2 .rpc:hover,:root.v2 .rpc:focus-visible{transform:none;outline:0;
  border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
:root.v2 .rpc-tile{background:none;border-radius:0}
:root.v2 .rpc-side small{font:500 12px var(--sans);letter-spacing:0;text-transform:none}
:root.v2 .rpc-side b{font-weight:700;font-size:14px}
:root.v2 .rpc-v{font:italic 600 15px var(--serif)}
:root.v2 .rpc-foot{background:none}
:root.v2 .rpc-go,:root.v2 .rpc:hover .rpc-go{background:none;color:var(--text);
  padding:0;border-radius:0;font:700 13.5px var(--sans);text-decoration:underline;
  text-decoration-color:var(--accent);text-decoration-thickness:2px;
  text-underline-offset:4px}
:root.v2 .rpc:hover .rpc-go{text-decoration-color:var(--text)}
:root.v2 .rpc-go svg{display:none}
:root.v2 .rp-today h2{font:600 24px/1.2 var(--serif)}
:root.v2 .rp-more a{border-radius:6px;background:var(--card)}

/* =====================================================================
   The home page (signed out). */
:root.v2 .lp-hero{background:none;color:var(--text);border-radius:0;
  padding:28px 0 44px;border-bottom:1px solid var(--line)}
:root.v2 .lp-hero::after{display:none}
:root.v2 .lp-eyebrow{font:500 12.5px var(--mono);letter-spacing:0;color:var(--muted)}
:root.v2 .lp-hero h2{font:800 58px/1.0 var(--sans);letter-spacing:-.035em;color:var(--text)}
:root.v2 .lp-hero h2 em{color:var(--text);
  background:linear-gradient(transparent 64%,var(--accent) 64%,var(--accent) 92%,transparent 92%)}
@media (prefers-color-scheme: dark){
  :root.v2:not([data-theme="light"]) .lp-hero h2 em{background:none;color:var(--accent)}
}
:root.v2[data-theme="dark"] .lp-hero h2 em{background:none;color:var(--accent)}
:root.v2 .lp-lede{color:var(--text-soft)}
:root.v2 .lp-freeline{color:var(--text);font-size:22px;letter-spacing:-.015em}
:root.v2 .lp-try{color:var(--text-soft)}
:root.v2 .lp-try a{color:var(--text)}
:root.v2 a.lp-btn{border-radius:6px}
:root.v2 a.lp-btn.ghost{color:var(--text);border-color:var(--rule)}
:root.v2 a.lp-btn.ghost:hover{border-color:var(--text)}
:root.v2 .lp-meta{color:var(--muted)}
:root.v2 .lp-promise li{color:var(--text)}
:root.v2 .lp-promise svg{color:var(--win)}
:root.v2 .lp-toast,:root.v2 .lp-mini{border:1px solid var(--line);
  box-shadow:0 10px 30px rgba(20,18,10,.10)}
:root.v2 .lp-toast,:root.v2 .lp-mini,:root.v2 .lp-rpc,:root.v2 .lp-shot,
:root.v2 .lp-mock,:root.v2 .lp-trust,:root.v2 .lp-live,:root.v2 .lp-tip{border-radius:8px}
:root.v2 .lp-mini-top,:root.v2 .lp-mock-top{letter-spacing:0;text-transform:none;font-size:12.5px}
:root.v2 .lp-rbtn{border-radius:4px}
:root.v2 .lp-shot,:root.v2 .lp-hero .lp-shot{border-color:var(--line);
  box-shadow:0 12px 32px rgba(20,18,10,.08)}
@media (prefers-color-scheme: dark){
  :root.v2:not([data-theme="light"]) .lp-toast,
  :root.v2:not([data-theme="light"]) .lp-mini,
  :root.v2:not([data-theme="light"]) .lp-shot{box-shadow:0 14px 36px rgba(0,0,0,.45)}
}
:root.v2[data-theme="dark"] .lp-toast,:root.v2[data-theme="dark"] .lp-mini,
:root.v2[data-theme="dark"] .lp-shot{box-shadow:0 14px 36px rgba(0,0,0,.45)}

/* what it does: a ruled row of text, not a row of icon tiles */
:root.v2 .lp-four{gap:0 28px}
:root.v2 a.lp-tile{background:none;border:0;border-top:2px solid var(--strong);
  border-radius:0;padding:14px 0 6px;transform:none}
:root.v2 a.lp-tile:hover{border-color:var(--accent);transform:none}
:root.v2 .lp-ic{display:none}
:root.v2 a.lp-tile b{font-size:17px}

/* sections */
:root.v2 .lp-kicker{font:500 12.5px var(--mono);letter-spacing:0}
:root.v2 .lp-new{font-family:var(--mono);border-radius:3px}
:root.v2 .lp-title{font:800 36px/1.1 var(--sans);letter-spacing:-.03em}
:root.v2 .lp-sub{color:var(--text-soft)}
:root.v2 .lp-more a{color:var(--text);text-decoration:underline;
  text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:4px}
:root.v2 .lp-pi{background:none;border:1px solid var(--line);color:var(--text) !important;
  border-radius:6px}
:root.v2 .lp-res{font:700 11.5px var(--mono);letter-spacing:0;border-radius:4px}
:root.v2 .lp-res.win{background:var(--wl-w-bg);color:var(--wl-w-fg)}
:root.v2 .lp-res.loss{background:var(--wl-l-bg);color:var(--wl-l-fg)}
:root.v2 .lp-side small,:root.v2 .lp-v{font:500 11.5px var(--sans);letter-spacing:0;
  text-transform:none}
:root.v2 .lp-rpc-foot{background:none}
:root.v2 .lp-go{background:var(--btn-bg);color:var(--btn-fg);border-radius:4px}
:root.v2 .lp-mock{background:var(--panel);box-shadow:none}
:root.v2 .lp-card{border-radius:6px}
:root.v2 .lp-card small{letter-spacing:0;text-transform:none;font-size:12px}
:root.v2 .lp-card b{font-family:var(--mono);font-size:22px}
:root.v2 .lp-steps{gap:0 28px}
:root.v2 .lp-step{background:none;border:0;border-top:2px solid var(--strong);
  border-radius:0;padding:14px 0 0}
:root.v2 .lp-step .n{background:none;color:var(--muted);width:auto;height:auto;
  place-items:start;font:500 13px var(--mono);margin-bottom:8px}
:root.v2 .lp-step h4{font-size:18px}
:root.v2 .lp-step p{color:var(--text-soft)}
:root.v2 .lp-trust{background:var(--card)}
:root.v2 .lp-trust p{color:var(--text-soft)}
:root.v2 .lp-trust li svg{color:var(--win)}
:root.v2 .lp-trust.lp-free{border-left:4px solid var(--accent)}
:root.v2 .lp-trust.lp-free li svg{color:var(--text)}
:root.v2 .lp-end{background:var(--header);border-radius:8px}
:root.v2 .lp-end h3{font:800 32px/1.15 var(--sans);letter-spacing:-.03em}
:root.v2 .lp-end a.lp-btn.ghost{color:#fff;border-color:rgba(255,255,255,.4)}
:root.v2 .lp-end a.lp-btn.ghost:hover{border-color:#fff}
@media (max-width:900px){
  :root.v2 .lp-hero{padding:20px 0 36px}
  :root.v2 .lp-hero h2{font-size:44px}
}
@media (max-width:640px){
  :root.v2 .lp-hero{padding:12px 0 30px;border-radius:0}
  :root.v2 .lp-hero h2{font-size:36px}
  :root.v2 .lp-title{font-size:28px}
}

/* fixes: headings of number columns stay in the normal font, and the
   dark-mode switch in the header isn't a button to style */
:root.v2 th.num,:root.v2 th.rank{font-family:var(--sans)}
:root.v2 .theme-toggle,:root.v2 .theme-toggle:not(.plain):not(:disabled):hover{
  background:transparent;border:0;border-radius:0;color:#c3cdea}
:root.v2 .theme-toggle:not(.plain):not(:disabled):hover{background:rgba(255,255,255,.08);color:#fff}
/* the small buttons beside a match (Log, Share, Replay, edit, delete)
   are buttons too, but stay quiet */
:root.v2 .act,:root.v2 button.act{background:var(--card);border-color:var(--line);
  color:var(--text)}
:root.v2 button.act:not(:disabled):hover,:root.v2 .act:hover{background:var(--card);
  border-color:var(--rule);color:var(--text)}

/* =====================================================================
   Two buttons for pointing people at the app: yellow for the download
   (yellow is for Sign in, Download and Add a match), outlined for the
   quieter choice beside it. */
:root.v2 a.btn-gold,:root.v2 a.btn-line{display:inline-flex;align-items:center;
  justify-content:center;min-height:42px;padding:0 18px;border-radius:6px;
  border:1px solid transparent;font:700 15px/1.2 var(--sans);text-decoration:none;
  transition:filter .12s,border-color .12s}
:root.v2 a.btn-gold{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
:root.v2 a.btn-gold:hover{filter:brightness(.94)}
:root.v2 a.btn-line{background:var(--card);border-color:var(--rule);color:var(--text)}
:root.v2 a.btn-line:hover{border-color:var(--text)}
:root.v2 a.btn-gold:focus-visible,:root.v2 a.btn-line:focus-visible{
  outline:2px solid var(--text);outline-offset:2px}

/* My stats before the first game: how to get one in */
:root.v2 .start{max-width:940px;margin:6px 0 10px}
:root.v2 .start h1.pt{margin:0 0 8px}
:root.v2 .start-lede{font-size:17px;line-height:1.5;color:var(--text-soft);
  max-width:640px;margin:0 0 22px}
:root.v2 .start-ways{display:grid;grid-template-columns:1fr 1fr;gap:18px}
:root.v2 .start-way{background:var(--card);border:1px solid var(--line);
  border-top:3px solid var(--accent);border-radius:8px;padding:18px 20px 20px}
:root.v2 .start-way h2{font:600 21px/1.25 var(--serif);letter-spacing:-.01em;
  margin:0 0 4px;color:var(--text)}
:root.v2 .start-way .note{margin:0}
:root.v2 .start-way ol{margin:14px 0 18px;padding-left:22px;line-height:1.5;color:var(--text)}
:root.v2 .start-way li{margin:0 0 6px;padding-left:2px}
:root.v2 .start-way b{font-weight:700;overflow-wrap:anywhere}
:root.v2 .start-small{margin-top:10px !important;font-size:13px}
:root.v2 .start-tips{margin:0 0 20px;padding-left:20px;line-height:1.5;
  color:var(--text);max-width:640px}
:root.v2 .start-tips li{margin:0 0 6px}
@media (max-width:700px){
  :root.v2 .start-ways{grid-template-columns:1fr}
  /* on a phone, pasting is what can be done right now */
  :root.v2 .start-way.phone{order:-1}
  :root.v2 .start-way a.btn-gold,:root.v2 .start-way a.btn-line{width:100%}
  /* on a phone, pasting is the thing to do now: it gets the yellow */
  :root.v2 .start-way.phone a.btn-line{background:var(--accent);
    border-color:var(--accent);color:var(--on-accent)}
  :root.v2 .start-way:not(.phone) a.btn-gold{background:var(--card);
    border-color:var(--rule);color:var(--text)}
}

/* "Track your own games" on the public stats pages, signed out */
:root.v2 .track-box{display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:16px 28px;margin:18px 0;padding:18px 20px;
  background:var(--card);border:1px solid var(--line);
  border-top:3px solid var(--accent);border-radius:8px}
:root.v2 .track-text{flex:1 1 380px;min-width:0}
:root.v2 .track-box h2{font:600 21px/1.25 var(--serif);letter-spacing:-.01em;
  margin:0 0 4px;color:var(--text)}
:root.v2 .track-box p{margin:0;color:var(--text-soft);line-height:1.5;max-width:640px}
:root.v2 .track-go{display:flex;flex-wrap:wrap;gap:10px}
@media (max-width:640px){
  :root.v2 .track-go{width:100%}
  :root.v2 .track-go a{flex:1 1 100%}
}

/* ---- two Pokemon in one spot: each a little smaller than one alone, so
   both show, with only the edge of the second tucked behind the first
   (the deck's main Pokemon, in front) */
:root.v2 :is(.sprites,.dk .tile,.chip .s,.rpc-tile,.gl-rod-tile,.lp-side .t) img{
  position:relative}
:root.v2 :is(.sprites,.dk .tile,.chip .s,.rpc-tile,.gl-rod-tile,.lp-side .t) img:first-child{
  z-index:1}
:root.v2 .sprites:has(img + img) img + img{margin-left:-10px}
:root.v2 .dk .tile:has(img + img) img{width:38px;height:38px;margin:0}
:root.v2 .dk .tile:has(img + img) img + img{margin-left:-10px}
:root.v2 .dk.sm .tile:has(img + img) img{width:28px;height:28px}
:root.v2 .dk.sm .tile:has(img + img) img + img{margin-left:-8px}
:root.v2 .chip .s{flex-basis:44px;width:44px}
:root.v2 .chip .s:has(img + img) img{width:26px;height:26px;margin:0}
:root.v2 .chip .s:has(img + img) img + img{margin-left:-7px}
:root.v2 .rpc-tile:has(img + img) img{width:58px;height:58px;margin:0}
:root.v2 .rpc-tile:has(img + img) img + img{margin-left:-14px}
:root.v2 .gl-rod-tile:has(img + img){align-items:center}
:root.v2 .gl-rod-tile:has(img + img) img{width:var(--rod2);height:var(--rod2);margin:0}
:root.v2 .gl-rod-tile:has(img + img) img + img{margin-left:calc(var(--rod2) / -4)}
:root.v2 .lp-side .t:has(img + img) img{width:54px;height:54px;margin:0}
:root.v2 .lp-side .t:has(img + img) img + img{margin-left:-14px}
@media (max-width:640px){
  :root.v2 .dk .tile:has(img + img) img{width:30px;height:30px}
  :root.v2 .dk .tile:has(img + img) img + img{margin-left:-8px}
}
@media (min-width:901px){
  :root.v2 [data-page="global"] .top10 .dk .tile:has(img + img) img{
    width:56px;height:56px;margin:0}
  :root.v2 [data-page="global"] .top10 .dk .tile:has(img + img) img + img{
    margin-left:-14px}
}

/* ---- phones: a table too wide for the screen, as cards (stack.js) */
@media (max-width:640px){
  :root .table-wrap.stack{overflow:visible}
  :root .table-wrap.stack table,:root .table-wrap.stack tbody,
  :root .table-wrap.stack thead{display:block;width:100%;min-width:0}
  :root .table-wrap.stack tr{display:flex;flex-wrap:wrap;align-items:flex-start;
    gap:6px 16px;padding:12px 14px;border-bottom:1px solid var(--line)}
  :root .table-wrap.stack tr:last-child{border-bottom:0}
  :root .table-wrap.stack td{display:block;padding:0;border:0;min-width:0;
    text-align:left;white-space:normal;font-size:14px}
  :root .table-wrap.stack td[data-label]:not([data-label=""])::before{
    content:attr(data-label);display:block;font:500 11px/1.3 var(--sans);
    color:var(--muted);letter-spacing:0;text-transform:none;margin-bottom:2px}
  :root .table-wrap.stack td:empty{display:none}
  /* the name (with a rank before it) across the top of the card */
  :root .table-wrap.stack td.st-t::before{display:none !important}
  :root .table-wrap.stack td.st-t{font-weight:600}
  :root .table-wrap.stack td.st-t{flex:0 0 auto;max-width:56px}
  :root .table-wrap.stack td.st-t.st-last{flex:1 1 calc(100% - 72px);max-width:none}
  :root .table-wrap.stack td.st-t.st-last:first-child{flex-basis:100%}
  /* in a table that fits, numbers stay on one line ("9-5", not 9- over 5) */
  :root .table-wrap:not(.stack) td:not(:first-child){white-space:nowrap}
  :root .table-wrap:not(.stack) td:not(:first-child) .dk,
  :root .table-wrap:not(.stack) td:not(:first-child) .note{white-space:normal}
  /* the headings give way to a "Sort by" menu (stack.js) */
  :root .table-wrap.stack tr.st-head{display:none}
  :root .table-wrap .st-sort{display:none}
  :root .table-wrap.stack .st-sort{display:flex;align-items:center;gap:8px;
    padding:10px 14px;border-bottom:1px solid var(--line);font-size:13px;
    color:var(--muted)}
  :root .table-wrap.stack .st-sort select{width:auto;flex:0 1 auto;
    padding:5px 8px;font-size:14px}
  :root .table-wrap.stack .rbar{width:90px}

  /* tappable cards: the name, and on the right a card with one number.
     Tapping it switches every row to the next number (stack.js) */
  :root .table-wrap.cycle tr{display:flex;flex-wrap:nowrap;align-items:center;
    gap:12px;padding:10px 14px}
  :root .table-wrap.cycle td{display:none;border:0 !important;
    box-shadow:none !important;background:none !important}
  :root .table-wrap.cycle td.st-t,:root .table-wrap.cycle td.cv-on{display:block}
  :root .table-wrap.cycle td.st-t:not(.st-last){flex:0 0 auto;min-width:16px;
    color:var(--muted)}
  :root .table-wrap.cycle td.st-t.st-last,
  :root .table-wrap.cycle td.st-t.st-last:first-child{flex:1 1 auto;min-width:0}
  :root .table-wrap.cycle td.cv-on{flex:0 0 auto;min-width:84px;max-width:46%;
    text-align:center !important;cursor:pointer;user-select:none;
    -webkit-tap-highlight-color:transparent;white-space:nowrap;
    background:var(--card) !important;border:1px solid var(--line) !important;
    border-radius:12px !important;padding:7px 10px 6px !important;
    box-shadow:0 1px 2px rgba(0,0,0,.06) !important;
    transition:transform .08s ease}
  :root .table-wrap.cycle td.cv-on::before{text-align:center}
  /* going 1st and 2nd: two halves of one card */
  :root .table-wrap.cycle td.cv-on.cv-first:not(.cv-last){min-width:62px;
    border-right:0 !important;border-radius:12px 0 0 12px !important;padding-right:4px !important}
  :root .table-wrap.cycle td.cv-on.cv-last:not(.cv-first){min-width:62px;
    border-left:0 !important;border-radius:0 12px 12px 0 !important;padding-left:4px !important;
    margin-left:-12px}
  :root .table-wrap.cycle td.cv-on[data-dots]::after{content:attr(data-dots);
    display:block;font-size:6px;letter-spacing:1px;color:var(--muted);
    margin-top:4px;line-height:1}
  :root .table-wrap.cycle td.cv-on:not(.cv-last)[data-dots]::after{visibility:hidden}
  :root .table-wrap.cycle td.cv-on.cv-last:not(.cv-first)[data-dots]::after{
    position:relative;left:-34px}
  :root .table-wrap.cycle td.cv-on small{display:block;white-space:normal}
  :root .table-wrap.cycle td.cv-on .rbar{margin:2px auto 0;width:72px}
  :root .table-wrap.cycle td.cv-on .bar{min-width:60px}
  :root .table-wrap.cycle td.cv-on:active{transform:scale(.96)}
  :root .table-wrap.cycle td.cv-on:focus-visible{outline:2px solid var(--accent);
    outline-offset:2px}

  /* My stats, Matches as tappable cards: the result, both decks, the card
     on the right (date, version, order, turns, prizes), replay and delete
     under it */
  :root .table-wrap.cycle table.mtab tr:not(.st-head){display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"res mine card" "res theirs acts";
    gap:6px 10px;align-items:center}
  :root .table-wrap.cycle table.mtab td[data-label]::before{display:none !important}
  :root .table-wrap.cycle table.mtab td.cv-on[data-label]::before{display:block !important}
  :root .table-wrap.cycle table.mtab td:nth-child(2){grid-area:res;display:block}
  :root .table-wrap.cycle table.mtab td:nth-child(3),
  :root .table-wrap.cycle table.mtab td:nth-child(5){display:flex;align-items:center;
    gap:6px;min-width:0;font-weight:600}
  :root .table-wrap.cycle table.mtab td:nth-child(3){grid-area:mine}
  :root .table-wrap.cycle table.mtab td:nth-child(5){grid-area:theirs;font-weight:500}
  :root .table-wrap.cycle table.mtab td .dwrap{min-width:0;flex:1 1 auto}
  :root .table-wrap.cycle table.mtab td .dwrap .dk{min-width:0;flex:1 1 auto}
  :root .table-wrap.cycle table.mtab td .dwrap .dk b,
  :root .table-wrap.cycle table.mtab td .dwrap .dk span{overflow-wrap:anywhere}
  /* smaller pictures and names, so a long name wraps before the pencil */
  :root .table-wrap.cycle table.mtab td .dk{gap:6px;font-size:14px}
  :root .table-wrap.cycle table.mtab td .dk .tile{flex:0 0 40px;width:40px;height:36px}
  :root .table-wrap.cycle table.mtab td .dk .tile img{width:40px;height:40px;margin:-2px -4px}
  :root .table-wrap.cycle table.mtab td .dk .tile:has(img + img) img{width:30px;height:30px;margin:0}
  :root .table-wrap.cycle table.mtab td .dk .tile:has(img + img) img + img{margin-left:-8px}
  :root .table-wrap.cycle table.mtab td .dk *{overflow-wrap:anywhere;min-width:0}
  :root .table-wrap.cycle table.mtab td:nth-child(5) > .dwrap::before{
    content:"vs";font:italic 600 12px var(--serif);color:var(--muted);flex:0 0 auto}
  :root .table-wrap.cycle table.mtab td.cv-on{grid-area:card;max-width:none;
    justify-self:end;min-width:92px;font-size:13px}
  :root .table-wrap.cycle table.mtab td.cv-on .vwrap{justify-content:center}
  :root .table-wrap.cycle table.mtab td.cv-on.when small{display:block}
  :root .table-wrap.cycle table.mtab td.cv-keep{grid-area:acts;display:block;
    justify-self:end}

  /* My stats, Matches: who played what on top, the rest in one line */
  :root .table-wrap.stack:not(.cycle) table.mtab tr{gap:6px 10px;align-items:center}
  :root .table-wrap.stack:not(.cycle) table.mtab td::before{display:none !important}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(2){order:1;flex:0 0 auto}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(3){order:2;flex:1 1 calc(100% - 60px);
    font-weight:600}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(5){order:3;flex:1 1 100%;
    display:flex;align-items:center;gap:8px;padding-left:2px}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(5)::after{content:none}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(5) > .dwrap::before{
    content:"vs";font:italic 600 13px var(--serif);color:var(--muted);
    width:30px;flex:0 0 auto;text-align:center}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(n+6):nth-child(-n+8),
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(1),
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(4){font-size:13px;
    color:var(--muted);font-weight:400}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(1){order:4;display:flex;gap:6px;flex-basis:auto !important;
    align-items:baseline}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(1) small{display:inline;margin:0}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(6){order:5}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(7){order:6}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(7)::after{content:" turns"}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(8){order:7}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(8)::after{content:" prizes"}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(4){order:8;flex:1 1 auto}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(4) .vwrap::before{
    content:"Version";margin-right:6px}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(9){order:9;margin-left:auto}
  :root .table-wrap.stack:not(.cycle) table.mtab td:nth-child(n+6):nth-child(-n+8)::before{
    content:"·" !important;display:inline !important;margin-right:10px;
    font-size:13px;color:var(--muted)}
  :root .table-wrap.stack:not(.cycle) table.mtab td.st-t.st-last:first-child{
    flex:0 0 auto;max-width:none;font-weight:400}
}

/* Continue with Google / Discord, above the email forms.
   The Google one is Google's own sign-in button, to its published
   measurements: Roboto Medium 14px, 40px tall, 4px corners, its grey
   outline, the G 20px with 12px after it, and its dark version in the
   dark theme. Discord's is the same shape in Discord's blue. Each mark
   is static/brand-<name>.svg, shown when that file is there. Roboto is
   kept here (Apache License 2.0) so nothing loads from Google. */
@font-face{font-family:"Roboto";font-style:normal;font-weight:500;
  font-display:swap;src:url(/static/roboto-500.woff2) format("woff2")}
:root.v2 .siw{display:grid;gap:10px;margin:0 0 10px}
:root.v2 a.siw-btn{position:relative;display:block;box-sizing:border-box;height:40px;padding:0 12px;
  overflow:hidden;border:1px solid transparent;border-radius:4px;text-align:center;text-decoration:none;
  white-space:nowrap;font:500 14px/20px "Roboto",arial,sans-serif;letter-spacing:.25px;
  -webkit-user-select:none;user-select:none;
  transition:background-color .218s,border-color .218s,box-shadow .218s}
:root.v2 .siw-state{position:absolute;inset:0;opacity:0;transition:opacity .218s}
:root.v2 .siw-in{position:relative;display:flex;align-items:center;justify-content:space-between;height:100%;width:100%}
:root.v2 .siw-icon{width:20px;min-width:20px;height:20px;object-fit:contain;margin-right:12px;display:block}
:root.v2 .siw-text{flex-grow:1;overflow:hidden;text-overflow:ellipsis}
:root.v2 a.siw-btn:hover{box-shadow:0 1px 2px 0 rgba(60,64,67,.30),0 1px 3px 1px rgba(60,64,67,.15)}
:root.v2 a.siw-btn:hover .siw-state{opacity:.08}
:root.v2 a.siw-btn:active .siw-state,:root.v2 a.siw-btn:focus-visible .siw-state{opacity:.12}
:root.v2 a.siw-google{background:#fff;border-color:#747775;color:#1f1f1f}
:root.v2 a.siw-google .siw-state{background:#303030}
:root.v2 a.siw-discord{background:#5865f2;color:#fff}
:root.v2 a.siw-discord .siw-state{background:#000}
@media (prefers-color-scheme: dark){
  :root.v2:not([data-theme="light"]) a.siw-google{background:#131314;border-color:#8e918f;color:#e3e3e3}
  :root.v2:not([data-theme="light"]) a.siw-google .siw-state{background:#fff}
}
:root.v2[data-theme="dark"] a.siw-google{background:#131314;border-color:#8e918f;color:#e3e3e3}
:root.v2[data-theme="dark"] a.siw-google .siw-state{background:#fff}
:root.v2 .siw-note{margin:0 0 6px}
:root.v2 .siw-or{display:flex;align-items:center;gap:12px;margin:14px 0 4px;color:var(--muted);font-size:13px}
:root.v2 .siw-or::before,:root.v2 .siw-or::after{content:"";flex:1;border-top:1px solid var(--line)}
