/* Barlow and Barlow Condensed, hosted with the app (SIL Open Font License,
   fonts/OFL.txt). Browsers fetch the Latin Extended files only for names that
   need them, such as Plzeň or Giulești. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-condensed-500-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-condensed-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Midweeker web app. One phone-width column; colours come from the followed
   club's competition theme, set on :root by app.js (defaults: Champions).
   Lamp amber and Live red are brand colours and stay the same in every theme. */
:root {
  --bg: #060A1C; --surface: #0E1530; --inset: #0A1026; --chip: #16204A; --line: #26315C; --nav: #080D22;
  --highlight: #1A2552; --text: #F1F3FA; --text2: #C5CBE0; --muted: #97A0C3; --accent: #7FB2FF; --alt: #E6EAF5; --motif: #FFFFFF;
  --lamp: #FFC24D; --lamp-dim: #3A3424; --live: #FF5A4E; --board: #05080F;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: Barlow, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .88; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2 { margin: 0; font-family: var(--display); text-wrap: balance; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Background motif per competition (stars / rings / bands), behind everything. */
.motif { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.motif svg { display: none; width: 100%; height: 100%; }
:root[data-motif="stars"] .motif .m-stars, :root[data-motif="rings"] .motif .m-rings, :root[data-motif="bands"] .motif .m-bands { display: block; }

.app {
  position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100vh;
  padding: env(safe-area-inset-top, 0px) max(0px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(0px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 0;
}
main { display: flex; flex-direction: column; gap: 0; }
/* Loader: four lamps switch on in turn while live data loads. */
.lamp-loader { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 72px 20px; }
.lamps { display: inline-grid; grid-template-columns: repeat(4, 14px); gap: 8px; }
.lamps i { width: 14px; height: 14px; border-radius: 50%; background: var(--lamp-dim); animation: lamp-on 2.4s infinite both; }
.lamps i:nth-child(2) { animation-delay: .25s; }
.lamps i:nth-child(3) { animation-delay: .5s; }
.lamps i:nth-child(4) { animation-delay: .75s; }
@keyframes lamp-on { 0%, 10% { background: var(--lamp-dim); box-shadow: none; } 30%, 80% { background: var(--lamp); box-shadow: 0 0 10px rgba(255, 194, 77, .45); } 100% { background: var(--lamp-dim); box-shadow: none; } }
.loader-text { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* Header and bars */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: .01em; line-height: 1; white-space: nowrap; color: var(--text); }
.wordmark .i { position: relative; display: inline-block; }
.wordmark .i::after { content: ''; position: absolute; left: 50%; top: .16em; width: .19em; height: .19em; margin-left: -.095em; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 .3em rgba(255, 194, 77, .55); }
.club-chip { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }
.club-chip > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 12px 0; }
.back, .ext { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; font-size: 15px; font-weight: 600; color: var(--text2); }
.ext { font-size: 13px; color: var(--accent); gap: 6px; }
.bar .eyebrow { padding-right: 8px; text-align: right; }
.page-head { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px 12px; }
.page-head h1 { font-size: 30px; font-weight: 700; }

/* Text */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent, .accent { color: var(--accent); }
.meta { font-size: 12px; color: var(--muted); }
.strong { font-weight: 600; }
.strong-muted { font-weight: 600; }
.fine, .fresh { margin: 10px 20px 0; font-size: 12px; color: var(--muted); }
.fresh { margin-top: 22px; text-align: center; }
.pad { margin: 0 4px 10px; }
.empty { margin: 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-size: 14px; }

/* Badges (club short codes, no crests) */
.badge { flex: none; border-radius: 50%; background: var(--chip); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; letter-spacing: .04em; }
.badge.mine { border: 2px solid var(--accent); }
.badge-sm { width: 30px; height: 30px; font-size: 11px; }
.badge-md { width: 40px; height: 40px; font-size: 13px; }
.badge-lg { width: 60px; height: 60px; font-size: 18px; }
.badge-xl { width: 76px; height: 76px; font-size: 24px; }

/* Cards */
.card { margin: 0 16px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.card.error { margin-top: 24px; gap: 8px; align-items: flex-start; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.matchup { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
/* Departure-board kick-off time */
.flaps { display: inline-flex; align-items: center; gap: 3px; margin: 4px 0 2px; }
.flap { position: relative; width: 23px; height: 34px; border-radius: 5px; background: var(--board); color: var(--lamp); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.flap::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(238, 242, 248, .14); }
.flap.sep { width: auto; padding: 0 1px; background: transparent; }
.flap.sep::after { display: none; }
.side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.side .strong { font-size: 15px; overflow-wrap: anywhere; }
.centre { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.day { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.big { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.venue, .notice { margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--inset); font-size: 13px; color: var(--text2); }
.venue svg, .notice svg { flex: none; }
.notice { color: var(--text); border: 1px solid var(--accent); background: transparent; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.two.pad-x { margin: 18px 16px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 600 15px var(--body); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.follow { margin: 0 16px 16px; }
.following { margin: 0 20px 16px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* Lists */
.block { padding: 22px 16px 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px 10px; }
.block-head h2 { font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.list, .panel, .table { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.row:first-child { border-top: 0; }
.row.me { background: var(--highlight); }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.grow .strong { font-size: 15px; }
.res { width: 30px; height: 28px; flex: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 15px; font-weight: 700; }
.res-W { background: var(--accent); color: var(--bg); }
.res-D { border: 2px solid var(--alt); color: var(--alt); }
.res-L { background: var(--chip); color: var(--muted); border: 1px solid var(--line); }
.res.live { width: auto; padding: 0 6px; background: var(--live); color: #fff; font-size: 13px; letter-spacing: .06em; }
.kick { width: 44px; flex: none; font-family: var(--display); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--lamp); }
.score { font-family: var(--display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* League table */
.segs { margin: 0 16px 14px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.segs.small { margin: 0 0 10px; }
.seg { min-height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 14px; font-weight: 600; }
.seg.on { background: var(--accent); color: var(--bg); }
.table { margin: 0 16px; }
.thead, .trow { display: grid; grid-template-columns: 30px minmax(0, 1fr) 22px 22px 22px 22px 32px 30px; align-items: center; gap: 4px; padding: 0 12px; }
.thead { padding-top: 10px; padding-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
.trow { min-height: 42px; font-size: 14px; border-top: 1px solid var(--line); }
.thead + .trow { border-top: 0; }
.trow.cut { border-top: 1px dashed var(--muted); }
.trow.me { background: var(--highlight); }
.trow.me .club { font-weight: 700; }
.n { text-align: center; color: var(--text2); font-variant-numeric: tabular-nums; }
.n.r, .r { text-align: right; }
.pts { text-align: right; font-family: var(--display); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.thead .pts { font-family: var(--body); font-size: 11px; }
.club { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cname { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 14px; font-weight: 700; }
.pos-r16 { background: var(--accent); color: var(--bg); }
.pos-playoff { border: 2px solid var(--alt); }
.pos-out { color: var(--muted); }
.trend { display: inline-flex; flex: none; }
.trend.up { color: #46C37B; }
.trend.down { color: var(--live); }
.legend { margin: 14px 20px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--text2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.key-r16, .key-away { background: var(--accent); }
.key-playoff { border: 2px solid var(--alt); }
.key-out { border: 1px solid var(--muted); }
.key-home { background: var(--alt); }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--live); vertical-align: 1px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Club */
.club-head { display: flex; align-items: center; gap: 16px; padding: 10px 20px 16px; }
.club-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.club-id h1 { font-size: 34px; font-weight: 700; line-height: 1; }
.club-id .meta { font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text2); }
.chip.solid { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.facts { margin: 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact .strong { font-size: 16px; overflow-wrap: anywhere; }
.facts.flush { margin: 0; }
.fact.wide { grid-column: 1 / -1; }
.wide-btn { width: 100%; margin-top: 10px; }
.away-guide { padding: 0 4px 4px; }
.away-guide > p { margin: 0 0 10px; }
.away-guide > p:last-of-type { margin-bottom: 0; }
.guide-warning { color: var(--text2); }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.guide-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--accent); font-size: 13px; font-weight: 600; }
.guide-place { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-top: 1px solid var(--line); }
.guide-place:first-child { border-top: 0; }
.guide-places { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.guide-notice { margin: 12px 0 0; }
.guide-place .spread { align-items: center; }
.guide-place .chip { flex: none; }
.form { display: flex; gap: 4px; flex: none; }
.form .res { width: 22px; height: 22px; font-size: 13px; border-radius: 6px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.big-num { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.big-num small { font-family: var(--body); font-size: 12px; font-weight: 400; color: var(--muted); }
.group { padding: 10px 14px 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.group:first-child { border-top: 0; }
.prow { display: grid; grid-template-columns: 30px minmax(0, 1fr) 28px 28px; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; }
.no { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pname { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pname .strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pname .meta { white-space: nowrap; }
.listb { margin-top: 10px; }
.listb summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 4px; font-weight: 600; color: var(--text2); }

/* Match centre */
.score-card { gap: 14px; }
.huge { font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.status { padding: 2px 8px; border-radius: 6px; background: var(--chip); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--text2); text-align: center; }
.status.is-live { background: var(--live); color: #fff; }
.extras { margin: 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--text2); }
.match-meta { margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.grow-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-top: 1px solid var(--line); }
.grow-row:first-child { border-top: 0; }
.min { font-family: var(--display); font-size: 17px; font-weight: 700; }
.min.home { color: var(--alt); }
.min.away { color: var(--accent); }
.run { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--text2); font-variant-numeric: tabular-nums; }
.panel { padding: 6px 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; }
.stat-nums { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: baseline; font-family: var(--display); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-nums .meta { text-align: center; font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--text2); }
.stat-nums span:last-child { text-align: right; }
.bars { display: flex; gap: 4px; height: 6px; }
.bar-home { border-radius: 3px; background: var(--alt); }
.bar-away { flex: 1; border-radius: 3px; background: var(--accent); }
.keyline { display: inline-flex; align-items: center; gap: 5px; }
.keyline .key { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.mprow { display: grid; grid-template-columns: minmax(0, 1fr) 38px 24px 24px; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; font-size: 14px; }
.mprow.head { min-height: 32px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; border-bottom: 1px solid var(--line); }
.mprow .pname { align-items: center; }
.card-y, .card-r { width: 9px; height: 12px; flex: none; border-radius: 2px; background: #F2C94C; }
.card-r { background: var(--live); }

/* Club picker */
.search { display: block; margin: 0 16px; }
.search input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 16px var(--body); }
.search input::placeholder { color: var(--muted); }

/* Bottom navigation */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; border-top: 1px solid var(--line); background: var(--nav);
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
}
.tabbar-inner { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabbar a[aria-current] { color: var(--accent); }

@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } .lamps i { animation: none; background: var(--lamp); } }

/* ---------------------------------------------------------------- trip planner */

.page-head.with-action { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; }
.head-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.page-head h1 { overflow-wrap: anywhere; }
.icon-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--text2); }
.flash { margin: 0 16px 12px; padding: 12px 14px; border-radius: 12px; background: var(--highlight); border: 1px solid var(--line); font-size: 14px; }
.lead-in { margin: 0 20px 14px; color: var(--text2); font-size: 14px; }
.switch { margin: 12px 20px 0; font-size: 14px; color: var(--text2); text-align: center; }
.switch a, .store-line a, .meta a, .link { color: var(--accent); }
.store-line { margin: 22px 20px 0; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.store-line svg { flex: none; margin-top: 1px; }
.empty-state { gap: 8px; }
.card.suggest { margin-bottom: 4px; gap: 6px; border-color: var(--accent); }
.card.suggest .btn { margin-top: 8px; align-self: flex-start; }

/* Trip cards: the brand's ticket stub, match on the left, kick-off on the stub. */
.trip-list { display: flex; flex-direction: column; gap: 10px; }
.trip-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 84px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.trip-main { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px; border-right: 2px dashed var(--bg); min-width: 0; }
.trip-title { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.trip-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 6px; text-align: center; }
.stub-time { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--lamp); line-height: 1; font-variant-numeric: tabular-nums; }
.trip-card .chips { margin-top: 6px; }
.chip.st-needed { color: var(--text2); }
.chip.st-applied { border-color: var(--lamp); color: var(--lamp); }
.chip.st-secured { border-color: var(--accent); color: var(--accent); }
.chip.st-alert { border-color: var(--live); color: var(--live); }
.chip.big { font-size: 14px; padding: 5px 10px; }

/* The match on a trip, as it is now. */
.match-mini { gap: 12px; }
.match-mini .badge-md { width: 46px; height: 46px; font-size: 14px; }
.notice.changed { align-items: flex-start; border-color: var(--live); }
.link-btn { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 14px var(--body); text-decoration: underline; cursor: pointer; min-height: 32px; }
.fine-in { margin: 0; font-size: 12px; color: var(--muted); }

/* Trip sections */
.plan-block { margin: 12px 16px 0; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.plan-block p { margin: 0; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-title { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.plan-title h2 { font-size: 20px; font-weight: 600; color: var(--text); }
.edit-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text2); }
.bar .edit-link { margin-right: 4px; }
.big-line { font-family: var(--display); font-size: 22px; font-weight: 600; }
.seat { font-weight: 600; }
.notes { color: var(--text2); white-space: normal; overflow-wrap: anywhere; }
.plan-block .list { border-radius: 12px; }
.row.booking { min-height: 64px; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.kind-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--chip); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.ref { font-size: 12px; font-weight: 600; color: var(--lamp); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.edit-hint { flex: none; color: var(--muted); align-self: center; }
.add-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--text2); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.link-grid .btn { font-size: 14px; min-height: 44px; }
.danger { margin: 22px 16px 0; display: flex; justify-content: center; }
.danger-btn { color: var(--live); border-color: var(--line); gap: 8px; }
.danger-btn.armed { background: var(--live); border-color: var(--live); color: #fff; }

/* Forms: one column, big targets, labels above fields. */
.sheet { margin: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.block .sheet { margin: 0; }
.fields { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--inset); color: var(--text); font: 16px var(--body); color-scheme: dark;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field input.code { text-transform: uppercase; letter-spacing: .06em; }
.field [aria-invalid="true"] { border-color: var(--live); }
.hint { font-size: 12px; color: var(--muted); }
.err { font-size: 13px; font-weight: 600; color: var(--live); }
.err:empty { display: none; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--live); color: var(--text); font-size: 14px; }
.form-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.form-actions .btn[disabled] { opacity: .6; }
@media (max-width: 360px) { .pair { grid-template-columns: 1fr; } }
.seat-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.seat-grid div { padding: 8px 10px; border-radius: 10px; background: var(--inset); min-width: 0; }
.seat-grid dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seat-grid dd { margin: 2px 0 0; font-family: var(--display); font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.notice.offline { margin: 14px 16px 0; border-color: var(--lamp); }
.affiliate-note { margin-top: 10px; }
.affiliate-note-match { margin: 8px 0 0; }

/* Approved venue guide: sources and "check before booking" marks */
.check-chip { margin-left: 6px; border-color: var(--lamp); color: var(--lamp); font-size: 11px; padding: 1px 6px; vertical-align: 1px; }
.guide-sources { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.guide-sources ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.plan-block .guide-sources { margin-top: 10px; }

/* Add to calendar */
.cal-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cal-links .btn { font-size: 14px; min-height: 44px; }
.cal-row { margin: 10px 16px 0; }
.cal-row > .cal-links { margin-top: 0; gap: 10px; }

/* Share a trip */
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-size: 14px; color: var(--text2); cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.share-btn { width: 100%; margin: 6px 0 8px; }
.shared-cta { margin: 18px 16px 0; display: flex; flex-direction: column; gap: 8px; }

/* Guide points: a short list instead of a paragraph */
.guide-points { margin: 4px 0 2px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.4; color: var(--text); }
.guide-points li::marker { color: var(--accent); }
.guide-points b { font-weight: 600; }
.guide-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); margin: 4px 0; list-style-position: inside; }

/* Countdown and matchday checklist */
.countdown { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.count-big { font: 700 34px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--accent); }
.reminders { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.reminders li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); }
.reminders li svg { flex: none; color: var(--lamp); margin-top: 1px; }
.check-head { margin-top: 4px; }
.check-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 6px 0 4px; }
.check-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.checklist { list-style: none; margin: 0; padding: 0; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.check-item:last-child { border-bottom: 0; }
.check-item .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check-item.done .grow > span:first-child { color: var(--muted); text-decoration: line-through; }
.check-input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border-radius: 5px; border: 2px solid var(--line); background: transparent; cursor: pointer; display: inline-grid; place-content: center; }
.check-input:checked { background: var(--accent); border-color: var(--accent); }
.check-input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--bg); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.check-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-box { width: 22px; height: 22px; flex: none; border-radius: 5px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.check-box.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.check-item .icon-btn { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; }
.add-check { display: flex; gap: 8px; margin-top: 10px; }
.add-check input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 15px var(--body); }
.add-check .btn { min-height: 44px; }
.trip-count { margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.trip-count .check-bar { margin: 4px 0 0; }
.trip-tip { display: flex; gap: 6px; align-items: flex-start; }
.trip-tip svg { flex: none; color: var(--lamp); }

/* Flights that fit (match screen) */
.fit-list { display: grid; gap: 8px; margin: 0 16px; }
.fit-option { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; }
.fit-option .meta { grid-column: 1; }
.fit-option svg { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); }
.fit-title { font-weight: 600; }
.fit-title .meta { font-weight: 500; margin-left: 4px; }
.near-head { margin: 16px 0 6px; }
.near-list { list-style: none; margin: 0 16px; padding: 0; }
.near-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.near-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.meta.pad-x, .label.pad-x { margin-left: 16px; margin-right: 16px; }
/* Away passport */
.huge-num { font: 700 40px/1 var(--display); color: var(--text); }
.passport-record { margin-top: 12px; }
/* Account: delete my account, legal links */
.delete-card { border-color: rgba(255,90,78,.35); }
.legal-line a { color: var(--accent); }

/* Welcome (first visit): account choice, then competition, then club */
.welcoming .tabbar { display: none; }
.welcome { min-height: calc(100vh - 40px); display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 32px 20px 40px; }
.welcome-mark .mark { width: 76px; height: 76px; }
.welcome .wordmark { font-size: 52px; }
.welcome-title { margin: 14px 0 0; font: 700 40px/1 var(--display); color: var(--text); }
.welcome-copy { margin: 4px 0 18px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 34ch; }
.welcome-actions { display: grid; gap: 10px; }
.welcome-actions .link-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--accent); font-weight: 600; }
.welcome-fine { margin: 8px 0 0; text-align: center; }
.comp-cards { display: grid; gap: 12px; margin: 0 16px; }
.comp-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 20px 18px; border: 1px solid var(--line); border-left: 6px solid var(--comp); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; }
.comp-name { font: 700 26px/1.05 var(--display); }
.comp-card .meta { grid-column: 1; }
.comp-card svg { grid-column: 2; grid-row: 1 / span 2; color: var(--comp); }
.welcome-list { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 8px; }
.welcome-list li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 17px; font-weight: 600; }
.welcome-list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #FFC24D; box-shadow: 0 0 8px rgba(255,194,77,.6); }
.welcome-copy:has(+ .welcome-list) { margin-bottom: 6px; }
.welcome-tag { color: var(--text); font-weight: 600; }
