/* nextplay: the login, the workspaces and a league (web/login.html, web/league.html). The soccer
   page's app.css (served as /np/app.css) gives the tokens, the buttons and the segments; this file
   lays out pages that scroll like a document, desktop first and whole on a phone (390 px). The box
   score's look: dark, condensed numerals, the accent for what is ours. */

:root {
  --cond: "DIN Condensed", "Avenir Next Condensed", "Helvetica Neue", "Arial Narrow", sans-serif;
  --st-bg: #0b0e12;
  --st-card: #121820;
  --st-line: #222b36;
  --video: #ffc531;
  --sheet: #8fd3ff;
  --gut: 28px;               /* a desktop app first: the pages take the whole width, this much in from each side */
  /* the text size, Carson's own (Settings, kept in this browser: <html data-text="s|m|l">): every
     font on these pages is its base size plus this step. M, the default, is base + 1 px (he asked
     for medium 1 px smaller than base + 2, 2026-10-16); S and L stay 2 px either side of it */
  --fs: 1px;
}
:root[data-text="s"] { --fs: -1px; }
:root[data-text="l"] { --fs: 3px; }

body.lg { overflow: auto; background: var(--st-bg); font-size: calc(15px + var(--fs)); user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; }
body.lg a { color: inherit; text-decoration: none; }
body.lg .grow { flex: 1 1 0; }

/* ---------------------------------------------------------------- the login */
body.login { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.loginwrap { position: relative; width: 100%; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px var(--gut); }
.court { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.court * { fill: none; stroke: #ffc531; stroke-opacity: 0.07; stroke-width: 0.5; }
.logincard {
  position: relative; width: min(380px, 100%); background: color-mix(in srgb, var(--st-card) 92%, transparent);
  border: 1px solid var(--st-line); border-radius: 14px; padding: 30px 26px 22px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lbrand b { font-size: calc(36px + var(--fs)); font-weight: 800; font-style: italic; letter-spacing: -0.03em; }
.lbrand b span { color: var(--accent); }
.ltag { margin: -8px 0 6px; color: var(--tx2); font-size: calc(15.5px + var(--fs)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: calc(13.5px + var(--fs)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx2); }
body.lg .field input, body.lg .field select {
  width: 100%; height: 46px; font: calc(17px + var(--fs)) var(--sans); padding: 0 12px; background: var(--bg); border: 1px solid var(--line2);
  border-radius: 7px; color: var(--tx); user-select: text; -webkit-user-select: text;
}
body.lg .field input:focus, body.lg .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,197,49,0.18); }
.lerr { margin: 0; color: var(--bad); font-size: calc(15px + var(--fs)); }
body.lg .lgo { min-height: 46px; font-size: calc(17px + var(--fs)); margin-top: 4px; }
.lfoot { margin: 4px 0 0; text-align: center; font-size: calc(13.5px + var(--fs)); color: var(--tx3); }
.shake { animation: shake 0.4s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }

/* ---------------------------------------------------------------- the bar */
.lgbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: var(--top-h);
  padding: 0 var(--gut); background: rgba(15,19,24,0.94);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); flex-wrap: wrap;
}
.lgbar .brand b { font-size: calc(21px + var(--fs)); font-weight: 800; font-style: italic; letter-spacing: -0.03em; white-space: nowrap; }
.lgbar .brand b span { color: var(--accent); }
.wsbtn { gap: 8px; font-weight: 700; max-width: 260px; }
.wsbtn .wsn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsbtn svg, .userbtn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lgtabs { display: flex; gap: 2px; }
.lgtabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; font-size: calc(15.5px + var(--fs)); color: var(--tx2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lgtabs a:hover { color: var(--tx); }
.lgtabs a.on { color: var(--tx); border-bottom-color: var(--accent); }
.lgtabs .n { font: 600 calc(13px + var(--fs)) var(--mono); color: var(--tx3); margin-left: 6px; }
.userbtn { gap: 8px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  font: 800 calc(15px + var(--fs))/1 var(--sans); flex: none; }
.menuwrap { position: relative; }
.menu { position: absolute; top: calc(100% + 6px); min-width: 230px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.7); padding: 6px; z-index: 30; display: flex; flex-direction: column; }
.menu.right { right: 0; }
.menu .mi { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 5px; color: var(--tx); cursor: pointer;
  background: none; border: 0; text-align: left; font: inherit; font-size: calc(15.5px + var(--fs)); width: 100%; }
.menu .mi:hover { background: var(--bg3); }
.menu .mi .tick { width: 14px; color: var(--accent); flex: none; }
.menu .mi small { color: var(--tx3); margin-left: auto; font-size: calc(13.5px + var(--fs)); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 2px; }
/* Settings: the text size */
.setbtn { gap: 8px; }
.setrow { display: flex; align-items: center; gap: 14px; padding: 6px 10px 10px; }
.setrow .lab { flex: 1; font-size: calc(13.5px + var(--fs)); color: var(--tx); }
.setrow .lab small { display: block; color: var(--tx3); font-size: calc(11.5px + var(--fs)); margin-top: 2px; }
.textsize .btn { min-width: 46px; font-weight: 800; }
.textsize .btn[data-key="s"] { font-size: 13px; }
.textsize .btn[data-key="m"] { font-size: 15.5px; }
.textsize .btn[data-key="l"] { font-size: 18px; }
.menu .mhead { padding: 6px 10px 8px; font-size: calc(14px + var(--fs)); color: var(--tx2); }

/* ---------------------------------------------------------------- the page */
.lgpage { padding: 24px var(--gut) 60px; display: flex; flex-direction: column; gap: 16px; }
.lghead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lghead h1 { margin: 0; font: 700 calc(42px + var(--fs))/0.95 var(--cond); letter-spacing: 0.02em; padding-top: 6px; }
.lghead .sub { color: var(--tx2); font-size: calc(15.5px + var(--fs)); margin-top: 6px; }
.kicker { font-size: calc(13.5px + var(--fs)); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx3); }
.card { background: var(--st-card); border: 1px solid var(--st-line); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.cardhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--st-line); }
.cardhead b { font: 700 calc(21px + var(--fs))/1 var(--cond); letter-spacing: 0.05em; text-transform: uppercase; padding-top: 3px; }
.cardhead .dim { font-size: calc(14.5px + var(--fs)); }
.cap { margin: 0; font-size: calc(14px + var(--fs)); color: var(--tx3); line-height: 1.5; }
.cap b { color: var(--tx2); }
.note { padding: 10px 16px 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--tx2); font-weight: 600; font-size: calc(15px + var(--fs)); min-height: 36px; }
.back:hover { color: var(--tx); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .lab { font-size: calc(13px + var(--fs)); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx3); }
.seg.scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg.scroll::-webkit-scrollbar { display: none; }
body.lg .btn { font-size: calc(15px + var(--fs)); }
body.lg .btn.small { font-size: calc(14.5px + var(--fs)); min-height: 42px; }
.btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.empty { padding: 34px 16px; text-align: center; color: var(--tx2); }
.empty b { display: block; color: var(--tx); font-size: calc(17px + var(--fs)); margin-bottom: 6px; }
.err { padding: 16px; color: var(--bad); }

/* a source tag: tracked from video, or read from the league's sheet */
.src { display: inline-flex; align-items: center; gap: 5px; font: 700 calc(12px + var(--fs))/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 6px 3px; border-radius: 4px; border: 1px solid; white-space: nowrap; flex: none; }
.src.video { color: var(--video); border-color: rgba(255,197,49,0.45); background: rgba(255,197,49,0.08); }
.src.sheet { color: var(--sheet); border-color: rgba(143,211,255,0.4); background: rgba(143,211,255,0.06); }
.src svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------- the workspaces */
.wsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.wscard { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 12px; background: var(--st-card); border: 1px solid var(--st-line);
  min-height: 190px; transition: border-color 0.15s, transform 0.15s; position: relative; overflow: hidden; }
a.wscard:hover { border-color: #3a4757; transform: translateY(-1px); }
.wscard .wstop { display: flex; align-items: center; gap: 12px; }
.wsicon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,197,49,0.12); color: var(--accent); flex: none; }
.wsicon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.wscard h2 { margin: 0; font: 700 calc(28px + var(--fs))/1 var(--cond); letter-spacing: 0.03em; padding-top: 3px; }
.wscard .wssport { font-size: calc(14.5px + var(--fs)); color: var(--tx2); }
.wsnums { display: flex; gap: 18px; margin-top: auto; }
.wsnums div { display: flex; flex-direction: column; }
.wsnums b { font: 700 calc(30px + var(--fs))/1 var(--cond); padding-top: 3px; }
.wsnums span { font-size: calc(13px + var(--fs)); color: var(--tx3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.wsfeat { display: flex; gap: 6px; flex-wrap: wrap; }
.wscard.new { align-items: center; justify-content: center; border-style: dashed; color: var(--tx2); cursor: pointer; text-align: center; font: inherit; }
.wscard.new:hover { color: var(--tx); border-color: #4a5868; }
.wscard.new .plus { font: 300 calc(42px + var(--fs))/1 var(--sans); color: var(--accent); }
.wscard.form { gap: 12px; }
.wscard.form .row { display: flex; gap: 8px; margin-top: auto; }

/* ---------------------------------------------------------------- games */
.gday { display: flex; flex-direction: column; }
.gday + .gday { border-top: 1px solid var(--st-line); }
.gdate { padding: 14px 20px 6px; }
.grow2 { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto minmax(0, 1fr) 190px; align-items: center; gap: 14px; padding: 12px 20px;
  min-height: calc(70px + 2 * var(--fs)); border-top: 1px solid #19212a; }
.gday .grow2:first-of-type { border-top: 0; }
a.grow2:hover { background: #161e28; }
.gt { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; font: 700 calc(20px + var(--fs))/1 var(--cond); letter-spacing: 0.04em; padding-top: 3px; color: var(--tx2); text-align: right; }
.gt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt.r { justify-content: flex-start; text-align: left; }
.gt.win { color: #fff; }
.gsc { font: 700 calc(32px + var(--fs))/1 var(--cond); font-variant-numeric: tabular-nums; padding-top: 4px; display: flex; gap: 10px; align-items: center; }
.gsc .lo { color: var(--tx3); }
.gsc i { font-style: normal; color: var(--tx3); font-size: calc(22px + var(--fs)); }
.ggo { justify-self: end; color: var(--tx2); font-size: calc(14.5px + var(--fs)); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.grow2.tracked { background: linear-gradient(90deg, rgba(255,197,49,0.07), transparent 60%); }
.grow2.tracked .ggo { color: var(--accent); }
.tdot { width: 10px; height: 10px; border-radius: 3px; flex: none; border: 1px solid rgba(255,255,255,0.25); }
.back svg, .ggo svg { flex: none; }

/* ---------------------------------------------------------------- the stat tables */
.tscroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.st { border-collapse: separate; border-spacing: 0; min-width: 100%; font-variant-numeric: tabular-nums; }
.st th, .st td { white-space: nowrap; text-align: right; }
.st thead th { position: sticky; top: 0; background: var(--st-card); font: 700 calc(14.5px + var(--fs))/1 var(--cond); letter-spacing: 0.05em; color: var(--tx2);
  padding: 11px 9px 8px; border-bottom: 1px solid var(--st-line); cursor: pointer; user-select: none; -webkit-user-select: none; }
.st thead th:hover { color: var(--tx); }
.st thead th.sorted { color: var(--accent); }
.st thead th.sorted::after { content: " \25BE"; font-size: calc(11px + var(--fs)); }
.st thead th.sorted.asc::after { content: " \25B4"; }
.st thead tr.groups th { cursor: default; font: 700 calc(11.5px + var(--fs))/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx3);
  text-align: center; border-bottom: 1px solid var(--st-line); padding: 7px 6px 5px; border-left: 1px solid var(--st-line); }
.st thead tr.groups th small { display: block; font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: #4f5a69; margin-top: 2px; font-size: calc(11.5px + var(--fs)); }
.st thead tr.groups th.lead { border-left: 0; }
.st th.g0, .st td.g0 { border-left: 1px solid var(--st-line); }
.st td { font: 600 calc(17px + var(--fs))/1 var(--cond); color: var(--tx); padding: 0 9px; height: calc(50px + 1.5 * var(--fs)); border-bottom: 1px solid #19212a; }
.st td.c-pts { font-weight: 700; color: #fff; }
.st td.top { color: var(--accent); }
.st td.na { color: #3f4957; }
.st tbody tr:hover td { background: #161e28; }
.st .pin { position: sticky; left: 0; z-index: 2; background: var(--st-card); text-align: left; }
.st thead th.pin { z-index: 3; }
.st .pin.last { box-shadow: 6px 0 8px -6px rgba(0,0,0,0.85); }
.st td.pin { padding: 0 10px 0 0; }
.st tbody tr:hover td.pin { background: #161e28; }
.st tr.sel td { background: rgba(255,197,49,0.05); }
.st tr.sel td.pin { background: #19190f; }
.st td.chk, .st th.chk { width: 42px; min-width: 42px; padding: 0; text-align: center; }
.st td.chk label, .st th.chk label { display: grid; place-items: center; width: 42px; height: calc(50px + 1.5 * var(--fs)); cursor: pointer; }
.st input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.st td.lbl { font: 600 calc(15px + var(--fs))/1.25 var(--sans); color: var(--tx2); text-align: left; padding: 0 10px; }
.st td.lbl b { color: var(--tx); font-weight: 700; }
.st tr.tot td { border-top: 2px solid var(--line2); background: #0f151c; font-weight: 700; }
.st tr.tot td.pin { background: #0f151c; }
.st tr.sub td { color: var(--tx2); }
.who { display: flex; align-items: center; gap: 10px; min-width: calc(220px + 10 * var(--fs)); max-width: calc(300px + 15 * var(--fs)); padding: 4px 0; }
.who .ph { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg3); display: grid; place-items: center;
  font: 700 calc(15px + var(--fs))/1 var(--sans); color: var(--tx2); border: 1px solid var(--line2); overflow: hidden; }
.who .nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.who .nm b { font: 700 calc(16.5px + var(--fs))/1.1 var(--sans); color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .nm small { font: 500 calc(13.5px + var(--fs))/1.1 var(--sans); color: var(--tx3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.who .nm small .src { padding: 2px 4px 1px; font-size: calc(10.5px + var(--fs)); }
a.who:hover .nm b { color: var(--accent); }
.num { font: 700 calc(17px + var(--fs))/1 var(--cond); color: var(--tx2); min-width: 26px; text-align: center; padding-top: 2px; }
.tfoot { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 16px; border-top: 1px solid var(--st-line); }

/* ---------------------------------------------------------------- a player */
.plhead { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.plhead .bigph { width: 108px; height: 108px; border-radius: 14px; object-fit: cover; background: var(--bg3); border: 1px solid var(--line2); flex: none;
  display: grid; place-items: center; font: 700 calc(40px + var(--fs))/1 var(--cond); color: var(--tx2); }
.plhead .pnum { font: 700 calc(66px + var(--fs))/0.8 var(--cond); color: var(--accent); padding-top: 8px; }
.plhead h1 { margin: 0; font: 700 calc(40px + var(--fs))/1 var(--sans); letter-spacing: -0.01em; }
.plhead .pmeta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; color: var(--tx2); font-size: calc(15.5px + var(--fs)); }
.plhead .jersey { font: 700 calc(17px + var(--fs))/1 var(--cond); letter-spacing: 0.1em; color: var(--tx); padding: 5px 7px 3px; background: var(--bg3); border-radius: 4px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--st-card); border: 1px solid var(--st-line); border-radius: 10px; padding: 12px 14px; }
.tile b { display: block; font: 700 calc(34px + var(--fs))/1 var(--cond); padding-top: 4px; }
.tile span { font-size: calc(13px + var(--fs)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx3); }
.linkcard { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-color: rgba(255,197,49,0.35);
  background: linear-gradient(90deg, rgba(255,197,49,0.08), var(--st-card) 70%); }
.linkcard .lt { flex: 1 1 300px; font-size: calc(15.5px + var(--fs)); color: var(--tx2); line-height: 1.5; }
.linkcard .lt b { color: var(--tx); }
.linkcard .ok { color: var(--good); font-weight: 700; }

/* ---------------------------------------------------------------- a game from the sheets */
.score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 18px 20px; }
.score .side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.score .side.r { align-items: flex-end; text-align: right; }
.score .tn { font: 700 calc(28px + var(--fs))/1 var(--cond); letter-spacing: 0.04em; padding-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.score .tc { font-size: calc(14px + var(--fs)); color: var(--tx3); }
.score .pts { font: 700 calc(74px + var(--fs))/0.8 var(--cond); padding-top: 10px; font-variant-numeric: tabular-nums; }
.score .lose { color: var(--tx3); }
.score .mid { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.score .final { font: 700 calc(16px + var(--fs))/1 var(--cond); letter-spacing: 0.14em; padding: 6px 10px 3px; border-radius: 4px; background: #e8edf3; color: #0b0e12; }

/* ---------------------------------------------------------------- the sheets */
.issues { margin: 0; padding: 0; list-style: none; }
.issues li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 10px 16px; border-top: 1px solid #19212a; font-size: calc(15px + var(--fs)); line-height: 1.45; }
.issues li:first-child { border-top: 0; }
.issues .ik { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,154,77,0.15); color: var(--warn); display: grid; place-items: center;
  font: 800 calc(14px + var(--fs))/1 var(--sans); margin-top: 1px; }
.issues .iw { color: var(--tx); font-weight: 600; }
.issues .is { color: var(--tx2); }
.files { display: flex; gap: 8px; flex-wrap: wrap; }
.file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; background: var(--bg2); border: 1px solid var(--line); font-size: calc(15px + var(--fs)); }
.file svg { width: 16px; height: 16px; fill: none; stroke: var(--sheet); stroke-width: 1.8; }
.legend { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; font-size: calc(14.5px + var(--fs)); padding: 12px 16px 16px; }
.legend dt { font: 700 calc(15px + var(--fs))/1.3 var(--cond); letter-spacing: 0.05em; color: var(--tx); padding-top: 2px; }
.legend dd { margin: 0; color: var(--tx2); }

#toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; pointer-events: none; }
.toast { background: var(--bg3); border: 1px solid var(--line2); border-radius: 8px; padding: 10px 14px; font-size: calc(15px + var(--fs)); box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  max-width: min(520px, calc(100vw - 32px)); }

/* ---------------------------------------------------------------- narrower */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grow2 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); row-gap: 6px; }
  .grow2 .gsrc { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 8px; }
  .grow2 .ggo { display: none; }
}
@media (max-width: 640px) {
  :root { --top-h: 52px; --gut: 16px; }
  .lgbar { gap: 6px; padding-top: 4px; }
  .lgbar .brand b { font-size: calc(19px + var(--fs)); }
  .wsbtn { max-width: 170px; padding: 4px 10px; }
  .userbtn .uname, .setbtn .uname { display: none; }
  .lgtabs { order: 10; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); width: calc(100% + 2 * var(--gut)); }
  .lgtabs::-webkit-scrollbar { display: none; }
  .lgpage { padding-top: 16px; gap: 12px; }
  .lghead h1 { font-size: calc(34px + var(--fs)); }
  .wsgrid { grid-template-columns: minmax(0, 1fr); }
  .gt { font-size: calc(18px + var(--fs)); }
  .gsc { font-size: calc(26px + var(--fs)); }
  .score { padding: 14px; gap: 10px; }
  .score .pts { font-size: calc(54px + var(--fs)); }
  .score .tn { font-size: calc(21px + var(--fs)); }
  .plhead .bigph { width: 76px; height: 76px; font-size: calc(30px + var(--fs)); }
  .plhead .pnum { font-size: calc(48px + var(--fs)); }
  .plhead h1 { font-size: calc(30px + var(--fs)); }
  .who { min-width: 150px; max-width: 170px; }
  .who .ph { width: 28px; height: 28px; }
  .cardhead { padding: 10px 12px; }
  .note, .tfoot { padding-left: 12px; padding-right: 12px; }
}
