/* ============================================================
   ITseqr WK Pool 2026 — design system (SEQR-derived, light, mobile-first)
   Brand blue #228ebb · ink #156384 · gold #8a7022/#b5942f · grey
   Display: Saira Condensed · UI: Jost
   ============================================================ */
:root {
  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-ui: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px;
  --shadow-1: 0 1px 2px rgba(16,40,54,.06), 0 1px 3px rgba(16,40,54,.05);
  --shadow-2: 0 4px 14px rgba(16,40,54,.08), 0 2px 4px rgba(16,40,54,.05);
  --shadow-3: 0 18px 48px rgba(16,40,54,.18), 0 6px 16px rgba(16,40,54,.08);

  --bg: #e9f0f4; --bg-grad-1: #eef4f7; --bg-grad-2: #e2ebf0;
  --surface: #ffffff; --surface-2: #f4f8fa; --surface-3: #eaf1f5;
  --border: #dde6ec; --border-strong: #c6d4dd;
  --text: #14242d; --text-2: #58696f; --text-3: #8a99a0;
  --brand: #228ebb; --brand-ink: #156384; --brand-600: #1d7da6;
  --brand-050: #e7f3f9; --brand-100: #d3e9f3;
  --gold: #8a7022; --gold-bright: #b5942f; --gold-050: #f5efdc; --gold-100: #ecdfba;
  --on-brand: #ffffff;

  --ok: #1f9d6b; --ok-bg: #e4f5ee;
  --warn: #c98a18; --warn-bg: #faf0db;
  --err: #d24b4b; --err-bg: #fbe8e8;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%;
  width: 100%; max-width: 100%; overflow-x: hidden;   /* geen horizontaal schuiven */
  overscroll-behavior: none;                          /* geen rubber-band naar opzij */
  -webkit-text-size-adjust: 100%;                     /* geen auto-zoom op tekst */
}
body {
  font-family: var(--font-ui);
  background: linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2)) fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
  touch-action: pan-y pinch-zoom;                     /* verticaal scrollen + knijp-zoom als vangnet */
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-100); }

.display { font-family: var(--font-display); font-weight: 700; letter-spacing: .2px; line-height: 1.05; }
.eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 2.2px; font-size: 11px; color: var(--text-3); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.muted { color: var(--text-2); }
.tiny { font-size: 11.5px; color: var(--text-3); line-height: 1.45; }

/* ============================== LOGO ============================== */
.brandmark { display: inline-flex; align-items: center; gap: 9px; }
.brandmark img { height: 30px; width: auto; display: block; }
.brandmark .sub { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .4px; color: var(--brand-ink); line-height: 1; }

/* ============================== BUTTONS ============================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 600; font-size: 14.5px; padding: 12px 18px;
  border-radius: var(--r-sm); transition: .15s ease; white-space: nowrap; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--brand-600); }
.btn-gold { background: var(--gold-bright); color: #fff; box-shadow: var(--shadow-1); }
.btn-gold:hover { background: var(--gold); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-subtle { background: var(--surface-3); color: var(--text-2); }
.btn-subtle:hover { color: var(--text); }
.btn-danger { background: var(--err); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ============================== BADGES ============================== */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px; line-height: 1.5; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-ok .dot { background: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); } .badge-warn .dot { background: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); } .badge-err .dot { background: var(--err); }
.badge-info { background: var(--brand-050); color: var(--brand-ink); } .badge-info .dot { background: var(--brand); }
.badge-gold { background: var(--gold-050); color: var(--gold); } .badge-gold .dot { background: var(--gold-bright); }
.badge-muted { background: var(--surface-3); color: var(--text-3); } .badge-muted .dot { background: var(--text-3); }

/* ============================== CARD ============================== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card + .card { margin-top: 14px; }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.card-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0; letter-spacing: .3px; }
.card-head .ico { color: var(--brand); flex: none; }
.card-head .right { margin-left: auto; }

/* notice strips */
.notice { border-radius: var(--r-md); padding: 12px 14px; font-size: 13.5px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.notice .ico { flex: none; margin-top: 1px; }
.notice-info { background: var(--brand-050); color: var(--brand-ink); }
.notice-warn { background: var(--warn-bg); color: #8a5e10; }
.notice-ok { background: var(--ok-bg); color: #156a4a; }
.notice b, .notice strong { font-weight: 700; }

/* ============================== APP SHELL ============================== */
#app-shell { display: none; min-height: 100%; flex-direction: column; }
#app-shell.on { display: flex; }

.topbar { position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border); max-width: 720px; margin: 0 auto; width: 100%; }
.topbar .brandmark img { height: 26px; }
.topbar .title { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .3px; line-height: 1; white-space: nowrap; }
.topbar .title small { display: block; font-family: var(--font-ui); font-weight: 500; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
.topbar .spacer { flex: 1; }

.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 100px; background: var(--surface-3); }
.avatar { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; flex: none; background: var(--brand); }
.user-chip .avatar { width: 30px; height: 30px; font-size: 14px; }
.user-chip .nm { font-size: 13px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content { flex: 1; padding: 16px 14px calc(96px + var(--safe-b)); max-width: 720px; width: 100%; margin: 0 auto; }
.page-head { margin: 2px 0 16px; }
.page-head .eyebrow { display: block; margin-bottom: 4px; }
.page-head h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: .3px; margin: 0; }
.page-head p { color: var(--text-2); font-size: 13.5px; margin: 7px 0 0; }

/* ============================== BOTTOM NAV ============================== */
.botnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid var(--border); padding: 6px 6px calc(6px + var(--safe-b)); max-width: 720px; margin: 0 auto; }
.botnav button { display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; border-radius: var(--r-sm); color: var(--text-3); font-size: 10.5px; font-weight: 600;
  letter-spacing: .2px; transition: .14s; position: relative; }
.botnav button .ico { transition: .14s; }
.botnav button.active { color: var(--brand-ink); }
.botnav button.active .ico { transform: translateY(-1px); }
.botnav button.active::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }

/* segmented sub-tabs (Voorspellen) */
.segmented { display: flex; gap: 4px; background: var(--surface-3); padding: 4px; border-radius: var(--r-md); margin-bottom: 14px; }
.segmented button { flex: 1; padding: 9px 6px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--text-2); transition: .14s; }
.segmented button.active { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow-1); }

/* ============================== INPUTS ============================== */
input[type=number], input[type=text], input[type=password], select, textarea {
  width: 100%; padding: 11px 12px; font-size: 16px; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface);
  transition: .14s; -webkit-appearance: none; appearance: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-050); }
input:disabled, select:disabled { background: var(--surface-3); color: var(--text-2); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2358696f' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
label.field { display: block; }
label.field .lbl { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; display: block; }

/* score inputs */
.score { width: 46px; min-width: 46px; padding: 10px 4px; text-align: center; font-weight: 700; font-size: 16px; }

/* ============================== MATCH ROW ============================== */
.match { padding: 12px 0; border-bottom: 1px solid var(--border); }
.match:last-child { border-bottom: 0; padding-bottom: 2px; }
.match-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.match-meta .when { font-size: 11.5px; font-weight: 600; color: var(--brand-ink); }
.match-meta .venue { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-meta .pts { margin-left: auto; flex: none; }
.match-row { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 7px; }
.match-row .team { font-weight: 600; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.match-row .team.home { text-align: right; }
.match-row .team.away { text-align: left; }
.match-row .dash { color: var(--text-3); font-weight: 700; }
.flag { font-size: 15px; }

.pts { font-size: 11px; font-weight: 700; color: var(--gold); padding: 2px 8px; border-radius: 100px; background: var(--gold-050); }
.pts.zero { color: var(--text-3); background: var(--surface-3); }
.pts.scored { color: var(--ok); background: var(--ok-bg); }

/* group block */
.group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.group-title .tag { width: 30px; height: 30px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-050); color: var(--brand-ink); font-family: var(--font-display); font-weight: 700; font-size: 16px; flex: none; }
.group-title h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 0; }

/* standings select row */
.stand-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 6px 0; }
.stand-row .pos { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brand-ink); }
.stand-row.gold .pos { color: var(--gold-bright); }

/* bonus */
.bonus-q { padding: 12px 0; border-bottom: 1px solid var(--border); }
.bonus-q:last-child { border-bottom: 0; }
.bonus-q .q { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.bonus-q .q .pts { margin-left: auto; }

/* KO row */
.ko-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.ko-card .ko-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-3); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.ko-card .ko-label .pts { margin-left: auto; text-transform: none; letter-spacing: 0; }
.ko-side { display: grid; grid-template-columns: 1fr 56px; gap: 8px; align-items: center; }
.ko-side + .ko-side { margin-top: 7px; }
.ko-hint { font-size: 11.5px; color: var(--brand-ink); margin-top: 8px; font-style: italic; }

/* ============================== LEADERBOARD ============================== */
.lb { display: flex; flex-direction: column; }
.lb-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--border); }
.lb-row:last-child { border-bottom: 0; }
.lb-row.me { background: var(--gold-050); margin: 0 -8px; padding: 12px 14px; border-radius: var(--r-sm); border-bottom-color: transparent; }
.lb-rank { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text-3); text-align: center; }
.lb-rank.top { color: var(--gold-bright); }
.lb-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 9px; min-width: 0; }
.lb-name .sub { font-size: 11px; color: var(--text-3); font-weight: 500; }
.lb-total { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--brand-ink); }
.lb-total small { font-size: 12px; color: var(--text-3); font-weight: 600; }
.lb-bd { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.lb-bd span { font-size: 10.5px; color: var(--text-3); }
.lb-bd b { color: var(--text-2); }

/* podium chips */
.medal { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

/* ============================== KPI GRID ============================== */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 13px 14px; }
.kpi .v { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--brand-ink); }
.kpi .v small { font-size: 14px; color: var(--text-3); }
.kpi .l { font-size: 11px; color: var(--text-2); margin-top: 6px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }

/* progress */
.pbar { height: 8px; border-radius: 100px; background: var(--surface-3); overflow: hidden; }
.pbar > span { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--brand), var(--gold-bright)); transition: width .6s cubic-bezier(.4,0,.2,1); }

/* rules */
.rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rules li { display: flex; gap: 11px; font-size: 13.5px; line-height: 1.5; align-items: flex-start; }
.rules li .b { width: 28px; height: 28px; border-radius: var(--r-sm); flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-050); color: var(--brand-ink); font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.rules li .b.gold { background: var(--gold-050); color: var(--gold); }

/* pot */
.pot-hero { text-align: center; padding: 22px 18px; background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #fff; border-radius: var(--r-lg); position: relative; overflow: hidden; }
.pot-hero .lbl { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; opacity: .8; }
.pot-hero .amt { font-family: var(--font-display); font-weight: 700; font-size: 54px; line-height: 1; margin: 8px 0 4px; }
.pot-hero .meta { font-size: 12.5px; opacity: .9; }
.prize-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); }
.prize-row:last-child { border-bottom: 0; }
.prize-row .place { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-align: center; }
.prize-row .amt { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--brand-ink); }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pay-row:last-child { border-bottom: 0; }
.pay-row .nm { flex: 1; font-weight: 600; font-size: 14px; }

/* admin list */
.adm-row { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.adm-row:last-child { border-bottom: 0; }
.adm-grid { display: grid; gap: 8px; }

details.acc { border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; background: var(--surface); }
details.acc > summary { cursor: pointer; list-style: none; padding: 14px 16px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--brand-ink); display: flex; align-items: center; gap: 10px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary .chev { margin-left: auto; transition: .2s; color: var(--text-3); }
details.acc[open] > summary .chev { transform: rotate(180deg); }
details.acc .acc-body { padding: 0 16px 16px; }

.compare-block { padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 10px; background: var(--surface-2); }
.compare-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.compare-head strong { font-size: 14px; }
.ctable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ctable th, .ctable td { padding: 7px 6px; text-align: left; border-bottom: 1px solid var(--border); }
.ctable th { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.ctable td.r { text-align: right; font-weight: 700; }
.ctable td.r.hit { color: var(--ok); } .ctable td.r.zero { color: var(--text-3); }

/* ============================== LOGIN ============================== */
#login { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(28px + var(--safe-t)) 22px calc(28px + var(--safe-b)); }
#login .login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-3); padding: 30px 26px; text-align: center; }
#login .logo-wrap img { height: 56px; width: auto; }
#login h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; margin: 20px 0 2px; letter-spacing: .4px; }
#login .sub { color: var(--text-2); font-size: 13.5px; margin: 0 0 22px; }
#login .step { text-align: left; }
#login .err { color: var(--err); font-size: 12.5px; margin-top: 8px; min-height: 16px; font-weight: 600; }
#login .name-grid { display: flex; flex-direction: column; gap: 9px; }
#login .name-btn { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); transition: .14s; text-align: left; }
#login .name-btn:hover { border-color: var(--brand); background: var(--brand-050); }
#login .name-btn .avatar { width: 36px; height: 36px; font-size: 15px; }
#login .name-btn .nm { font-weight: 600; font-size: 15px; }
#login .pool-foot { margin-top: 20px; font-size: 11px; color: var(--text-3); display: flex; align-items: center; justify-content: center; gap: 7px; }

/* ============================== SHEET / MODAL ============================== */
.scrim { position: fixed; inset: 0; background: rgba(20,36,45,.45); z-index: 60; display: none; }
.scrim.on { display: block; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-3); padding: 10px 18px calc(24px + var(--safe-b));
  transform: translateY(100%); transition: transform .26s cubic-bezier(.4,0,.2,1); max-height: 86vh; overflow-y: auto; }
.sheet.on { transform: translateY(0); }
.sheet .grab { width: 40px; height: 4px; border-radius: 100px; background: var(--border-strong); margin: 6px auto 16px; }
.sheet h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 14px; }
.sheet-item { display: flex; align-items: center; gap: 13px; padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 14.5px; font-weight: 500; }
.sheet-item:last-child { border-bottom: 0; }
.sheet-item .ico { color: var(--brand); flex: none; }
.sheet-item.danger { color: var(--err); } .sheet-item.danger .ico { color: var(--err); }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #fff; padding: 11px 18px; border-radius: 100px; font-size: 13px; font-weight: 600;
  z-index: 80; opacity: 0; transition: .25s; pointer-events: none; box-shadow: var(--shadow-3); white-space: nowrap; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.section-label { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 22px 2px 10px; letter-spacing: .3px; }

/* next matches card */
.next-card .card-head { margin-bottom: 8px; }
.next-card .card-head h2 { white-space: nowrap; }
.next-when { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brand-ink); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.next-when > span { white-space: nowrap; }
.next-cd { font-family: var(--font-ui); font-weight: 600; font-size: 11.5px; color: var(--brand-ink); background: var(--brand-050); padding: 2px 10px; border-radius: 100px; white-space: nowrap; }
.next-tag { font-family: var(--font-ui); font-weight: 600; font-size: 11px; color: var(--gold); background: var(--gold-050); padding: 2px 9px; border-radius: 100px; letter-spacing: .2px; }
.next-match { display: grid; grid-template-columns: 26px 1fr auto 1fr; align-items: center; gap: 9px; padding: 10px 0 3px; }
.next-match.div { border-top: 1px solid var(--border); margin-top: 4px; }
.next-grp { width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--brand-050); color: var(--brand-ink); font-family: var(--font-display); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.next-team { font-weight: 700; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-team.home { text-align: right; }
.next-team.away { text-align: left; }
.next-vs { font-size: 12px; color: var(--text-3); font-weight: 700; }
.next-venue { font-size: 11.5px; color: var(--text-3); margin: 0 0 4px 35px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.hstack { display: flex; gap: 8px; align-items: center; }
.wrap { flex-wrap: wrap; }

@media (min-width: 560px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
