/* myMatchDay. Typeface: the device's own system font (San Francisco on Apple devices). */

:root {
  --chalk: #f3f6f2;      /* page */
  --card: #ffffff;       /* surfaces */
  --ink: #0f1f17;        /* text */
  --muted: #586860;      /* secondary text */
  --line: #dbe3dc;       /* borders */
  --wash: #e9f1ea;       /* quiet fills */
  --turf: #0e7a46;       /* actions */
  --turf-deep: #0a4a2c;  /* header, pitch */
  --bib: #ffc533;        /* hi-vis accent, used sparingly */
  --red: #bf3a2b;
  --amber: #8a5a00;
  /* older names still used in a few places */
  --paper: var(--chalk); --green: var(--turf); --green-deep: var(--turf-deep); --lime: var(--bib);
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 16px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);     /* things arriving or responding */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1); /* things moving across the screen */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--chalk); color: var(--ink); font: 400 16.5px/1.5 var(--text); }
a { color: var(--turf); text-underline-offset: 2px; }
h1, h2, .sheettitle, .gc-title, .teamname, .stat b, .sc b, .price { font-family: var(--display); }
h1 { font-size: 40px; line-height: 1.02; margin: 0 0 8px; font-weight: 700; letter-spacing: 0.005em; }
h2 { font-size: 25px; line-height: 1.1; margin: 0 0 10px; font-weight: 600; letter-spacing: 0.005em; }
h3 { font-size: 15px; margin: 22px 0 8px; color: var(--muted); font-weight: 600; }
p { margin: 0 0 12px; } p:last-child { margin-bottom: 0; }
code { background: var(--wash); padding: 2px 6px; border-radius: 6px; font-size: 13.5px; word-break: break-all; }
.wrap { max-width: 660px; margin: 0 auto; padding: 0 18px; }
.wrap.wide { max-width: 1160px; }
main.wrap { padding-top: 26px; padding-bottom: 72px; }
.muted { color: var(--muted); } .small { font-size: 14.5px; } .center { text-align: center; }
.pos { color: var(--turf); } .neg { color: var(--red); }

/* header */
.top { background: var(--turf-deep); color: #fff; }
.toprow { display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { color: #fff; text-decoration: none; font: 700 24px/1 var(--display); letter-spacing: 0.01em; display: flex; align-items: center; gap: 10px; }
.mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--bib); background: linear-gradient(90deg, transparent 45%, var(--bib) 45%, var(--bib) 55%, transparent 55%); flex: none; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15.5px; font-weight: 500; flex-wrap: wrap; }
.nav a, .nav .linkbtn { color: rgba(255,255,255,.86); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
@media (hover: hover) and (pointer: fine) { .nav a:hover, .nav .linkbtn:hover { color: #fff; background: rgba(255,255,255,.1); } }
.nav a.cta { background: var(--bib); color: var(--ink); font-weight: 700; margin: 0 4px; }
@media (hover: hover) and (pointer: fine) { .nav a.cta:hover { background: #ffd363; color: var(--ink); } }
.nav form { margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--turf); color: #fff; border: 1.5px solid var(--turf); border-radius: 10px; padding: 9px 16px; font: 600 15.5px/1.3 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #0b6238; border-color: #0b6238; } }
.btn:active { transform: scale(.97); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover { background: var(--wash); border-color: #c3d0c6; } }
.btn.big { padding: 15px 20px; font-size: 18px; font-weight: 700; width: 100%; border-radius: 12px; }
.btn.small { padding: 6px 12px; font-size: 14.5px; }
.btn.danger { background: #fff; color: var(--red); border-color: #e6c5c0; }
@media (hover: hover) and (pointer: fine) { .btn.danger:hover { background: #fbeeec; border-color: var(--red); } }
.btn.attn { background: var(--bib); color: var(--ink); border-color: #e0a800; }
.btn:disabled { opacity: .6; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--turf); text-decoration: underline; text-underline-offset: 2px; }
.nav .linkbtn { text-decoration: none; }
.linkbtn.danger { color: var(--red); font-size: 14.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.small { gap: 6px 18px; margin-top: 12px; }
.headrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.headrow h1, .headrow h2, .headrow h3 { margin-bottom: 2px; }
.headrow form { margin: 0; }

/* surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 18px; }
.card.flush { padding: 0; overflow: hidden; } .card.narrow { max-width: 440px; margin: 34px auto; }
.scroll { overflow-x: auto; }
.stack { display: grid; gap: 10px; margin-top: 18px; }
.empty { border: 1.5px dashed #c3d0c6; border-radius: var(--radius); padding: 30px 20px; text-align: center; color: var(--muted); }
.flash { padding: 12px 14px; border-radius: 12px; margin: 0 0 16px; background: #e2f3e8; color: #0a4a2c; border: 1px solid #b9dcc6; font-size: 15.5px; font-weight: 500; }
.flash.err { background: #fbeeec; color: #7a2218; border-color: #eec8c2; }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; font-weight: 600; margin-bottom: 18px; }

/* forms */
.form { display: grid; gap: 18px; }
label { display: block; font-weight: 600; font-size: 15px; }
label > input, label > select, label > textarea { display: block; margin-top: 6px; }
input, select, textarea { font: 400 16.5px/1.35 var(--text); padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: #8b9a91; }
@media (hover: hover) and (pointer: fine) { input:hover, select:hover, textarea:hover { border-color: #b9c7bd; } }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(14,122,70,.22); outline-offset: 0; border-color: var(--turf); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(14,122,70,.45); outline-offset: 2px; border-radius: 6px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; } legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; background: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:hover span { border-color: var(--turf); } }
.chip input:checked + span { background: var(--turf); border-color: var(--turf); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid rgba(14,122,70,.45); outline-offset: 2px; }
.chips.tight .chip span { padding: 7px 12px; font-size: 14px; }
.status { font-weight: 600; margin: 0; }

/* fixture header: the one loud element, a slice of pitch */
.fixture { position: relative; overflow: hidden; background: var(--turf-deep); color: #fff; border-radius: 20px; padding: 26px 24px 22px; margin-bottom: 18px; isolation: isolate; }
.fixture::before { content: ""; position: absolute; z-index: -1; right: -90px; top: 50%; width: 260px; height: 260px; margin-top: -130px; border: 3px solid rgba(255,255,255,.16); border-radius: 50%; }
.fixture::after { content: ""; position: absolute; z-index: -1; right: 39px; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.16); }
.fx-when { font: 600 19px/1.2 var(--display); letter-spacing: 0.02em; color: var(--bib); margin: 0 0 6px; }
.fixture h1 { font-size: 46px; margin: 0 0 6px; max-width: 12em; text-wrap: balance; }
.fx-where { color: rgba(255,255,255,.82); margin: 0; font-weight: 500; }
.fx-foot { display: flex; align-items: flex-end; gap: 14px 28px; flex-wrap: wrap; margin-top: 22px; }
.fx-price b { display: block; font: 700 34px/1 var(--display); }
.fx-price span, .fx-spots span { font-size: 14.5px; color: rgba(255,255,255,.82); font-weight: 500; }
.fx-spots { flex: 1 1 200px; max-width: 320px; }
.meter { height: 10px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; margin-bottom: 6px; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--bib); min-width: 6px; }
.notes { background: #fff8e1; border: 1px solid #f2dfa6; border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; white-space: pre-line; font-weight: 500; }

/* fixture list on the home page */
.fxrow { display: grid; grid-template-columns: 62px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 14px 14px; text-decoration: none; color: inherit; }
@media (hover: hover) and (pointer: fine) { .fxrow:hover { border-color: var(--turf); } }
.fx-date { display: grid; justify-items: center; background: var(--turf-deep); color: #fff; border-radius: 12px; padding: 8px 0 7px; line-height: 1; }
.fx-date span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); }
.fx-date b { font: 700 28px/1 var(--display); margin: 2px 0; }
.gc-title { font-weight: 700; font-size: 24px; line-height: 1.1; }
.gc-side { text-align: right; white-space: nowrap; display: grid; justify-items: end; gap: 4px; }
.price { font-weight: 700; font-size: 24px; line-height: 1; }

/* small facts grid, used on the confirmation and pay pages */
.hero { margin-bottom: 20px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.facts span { display: block; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.facts.centered { text-align: left; margin: 18px 0; }
.names { display: flex; flex-wrap: wrap; gap: 8px; }
.names span { background: var(--wash); border-radius: 999px; padding: 5px 12px; font-size: 15px; font-weight: 600; }
.tick { width: 64px; height: 64px; border-radius: 50%; background: var(--turf); margin: 4px auto 16px; position: relative; }
.tick::after { content: ""; position: absolute; left: 24px; top: 14px; width: 14px; height: 27px; border: solid #fff; border-width: 0 4.5px 4.5px 0; transform: rotate(45deg); }

/* numbers and tables */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; }
.stat > span { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }
.stat b { font-size: 32px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 14px; font-weight: 600; color: var(--muted); background: #f8faf7; }
tr:last-child td { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) { tbody tr:hover td { background: #f8faf7; } }
td a { text-decoration: none; color: var(--ink); } @media (hover: hover) and (pointer: fine) { td a:hover { color: var(--turf); } }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 13.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #dff1e5; color: #0a4a2c; white-space: nowrap; vertical-align: middle; }
.pill.closed, .pill.cancelled { background: #e8ece8; color: var(--muted); }
.pill.pending, .pill.full, .pill.needs { background: #fff0c4; color: var(--amber); }
.pill.played { background: var(--ink); color: #fff; }
.linkrow { display: flex; gap: 10px; flex-wrap: wrap; } .linkrow input { flex: 1 1 240px; font-size: 15.5px; background: #f8faf7; }

/* in-page section links on the organiser's game page */
.subnav { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; overflow-x: auto; background: var(--chalk); padding: 10px 0; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.subnav a { flex: none; padding: 7px 13px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; background: #fff; border: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) { .subnav a:hover { border-color: var(--turf); color: var(--turf); } }
.subnav a.go { background: var(--turf); border-color: var(--turf); color: #fff; }
.card[id], .sheet[id] { scroll-margin-top: 64px; }

/* player rows */
.player { border-top: 1px solid var(--line); }
.player summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; flex-wrap: wrap; }
.player summary::-webkit-details-marker { display: none; }
.player[open] > summary { border-bottom: 1px dashed var(--line); }
.pname { font-weight: 600; } .pmeta { font-size: 14.5px; flex: 1 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptags i { font-style: normal; font-size: 12.5px; font-weight: 700; background: var(--wash); color: var(--turf); border-radius: 6px; padding: 2px 6px; margin-right: 4px; }
.edit { color: var(--turf); font-size: 14.5px; font-weight: 600; }
.player.add summary { padding-top: 14px; }
.pform { display: grid; gap: 16px; padding: 14px 0 20px; }
.rate { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; font-weight: 700; font-size: 14px; border: 0; flex: none; font-family: var(--text); }
.r5 { background: var(--turf-deep); color: #fff; } .r4 { background: var(--turf); color: #fff; } .r3 { background: #cfe6d7; color: #0a4a2c; } .r2 { background: #e3ede5; color: #0a4a2c; } .r1 { background: #e8ece8; color: var(--muted); }
.quickrate { display: flex; gap: 0; margin: 0; }
.quickrate button { font: 700 14px var(--text); width: 30px; height: 30px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; margin-left: -1.5px; color: var(--muted); }
.quickrate button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; } .quickrate button:last-child { border-radius: 0 8px 8px 0; }
@media (hover: hover) and (pointer: fine) { .quickrate button:hover { background: var(--wash); } }
.quickrate button.on { background: var(--turf); color: #fff; border-color: var(--turf); position: relative; }

/* team board */
.boardbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.boardbar h1 { margin: 2px 0 0; }
.hint { margin: 10px 0 16px; }
.sheet { background: var(--turf-deep) repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 60px, transparent 60px 120px); border-radius: 22px; padding: 26px; }
.sheethead { color: #fff; margin-bottom: 20px; }
.sheettitle { font-size: 36px; font-weight: 700; line-height: 1.05; }
.sheetsub { color: rgba(255,255,255,.8); margin-top: 4px; font-weight: 500; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: start; }
.team { background: #fff; border-radius: 16px; overflow: hidden; outline: 3px solid transparent; transition: outline-color .1s; }
.team.over { outline-color: var(--bib); }
.teamhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,.1); }
.teamhead.ondark { color: #fff; } .teamhead.onlight { color: var(--ink); }
.teamname { font-weight: 700; background: transparent; border: 1.5px solid transparent; color: inherit; font-size: 25px; line-height: 1.1; padding: 2px 6px; margin-left: -6px; border-radius: 8px; }
@media (hover: hover) and (pointer: fine) { .teamname:hover { border-color: currentColor; } }
.count { font-size: 14px; font-weight: 600; opacity: .85; white-space: nowrap; }
.swatches { display: flex; gap: 6px; padding: 10px 16px 0; flex-wrap: wrap; }
.sw { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); cursor: pointer; padding: 0; }
.sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.tstats { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px 0; font-size: 13.5px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.tstats .avg { color: var(--ink); }
.drop { padding: 10px; min-height: 64px; display: grid; gap: 6px; align-content: start; }
.dropempty { color: var(--muted); font-size: 14.5px; text-align: center; padding: 14px 0; }
.pl { color: var(--ink); display: flex; align-items: center; gap: 10px; background: #f3f6f2; border-radius: 10px; padding: 8px 10px; cursor: grab; user-select: none; -webkit-user-select: none; }
.pl.lifting { opacity: .3; }
.pl.ghost { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; box-shadow: 0 12px 30px rgba(10,74,44,.3); background: #fff; cursor: grabbing; }
.grip { width: 10px; height: 16px; flex: none; touch-action: none; padding: 8px 6px; box-sizing: content-box; margin: -8px -6px; background: radial-gradient(circle, #a9b7ad 1.4px, transparent 1.6px) center / 5px 5px content-box; }
.tag { font: 700 12.5px var(--text); background: #d9ebdf; color: var(--turf); border: 0; border-radius: 999px; padding: 4px 0; width: 46px; flex: none; cursor: pointer; }
.nm { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .rate { cursor: pointer; }
.marker { height: 3px; border-radius: 2px; background: var(--turf); }
.bench { background: rgba(255,255,255,.12); color: #fff; border: 1.5px dashed rgba(255,255,255,.4); }
.bench .teamhead { border: 0; padding-bottom: 4px; } .benchtitle { font: 600 21px var(--display); }
.bench .dropempty { color: rgba(255,255,255,.75); }
.exitrow { display: none; margin-top: 16px; justify-content: center; }
.memsel { width: auto; max-width: 230px; padding: 9px 12px; font-size: 15.5px; font-weight: 600; border-radius: 10px; }
.livebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #e2f3e8; border: 1px solid #b9dcc6; color: #0a4a2c; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 15.5px; }
.livebar > span:first-child { flex: 1 1 320px; }

/* screenshot view: only the team sheet, no ratings, no controls */
.shotmode .top, .shotmode .boardbar, .shotmode .hint, .shotmode .adminonly, .shotmode .grip, .shotmode .livebar, .shotmode #memo { display: none !important; }
.shotmode .exitrow { display: flex; }
.shotmode main.wrap { padding-top: 16px; }
.shotmode .pl, .pubsheet .pl { cursor: default; background: transparent; border-radius: 0; padding: 9px 6px; border-top: 1px solid #e8ece8; }
.shotmode .pl:first-child, .pubsheet .pl:first-child { border-top: 0; }
.shotmode .drop, .pubsheet .drop { gap: 0; padding: 6px 12px 10px; }
.shotmode .teamname, .shotmode .tag { pointer-events: none; }
.pubsheet { margin-bottom: 18px; }
.pubsheet .teamname { padding: 2px 0; margin: 0; border: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pubsheet .count { opacity: .95; }
.pubsheet .tag { display: inline-block; text-align: center; cursor: default; }

/* pricing */
.pricebox { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 16px; background: #f8faf7; }
.pricebox h2 { margin: 0; }
.pricehint { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pricehint p { margin: 0; flex: 1 1 240px; }
.pricegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pricegrid h3 { margin-top: 6px; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger caption { text-align: left; font-size: 15px; font-weight: 600; color: var(--muted); padding-bottom: 4px; }
.ledger td { padding: 8px 0; border-bottom: 1px solid var(--line); white-space: normal; font-size: 15.5px; background: none !important; }
.ledger tr.total td { font-weight: 700; border-bottom: 0; padding-bottom: 14px; }
.ledger tr.total:last-child td { padding-bottom: 0; font-size: 18px; }

/* results */
.sec { margin: 30px 0 12px; }
.gtitle { margin: 0; color: var(--ink); font: 700 24px/1.1 var(--display); }
.scoreline { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 8px 0 12px; font-size: 18px; }
.scoreline .vs { color: var(--muted); font-weight: 700; }
.sc { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.sc i { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); flex: none; }
.sc b { font-size: 34px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.scoreform { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.scoreform label { font-weight: 600; }
.scoreform input { width: 88px; text-align: center; font: 700 26px/1 var(--display); padding: 10px 6px; }
.pill.outW { background: var(--turf); color: #fff; } .pill.outL { background: #e8ece8; color: var(--muted); } .pill.outD { background: #fff0c4; color: var(--amber); }
.searchbar label { margin-bottom: 8px; }
.found { display: grid; gap: 6px; margin-top: 12px; }
.found a { display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .found a:hover { border-color: var(--turf); background: #f8faf7; } }
.lb td, .lb th { padding: 11px 14px; }
.lb tbody tr:first-child td { background: #fff8e1; }
.lineups summary { cursor: pointer; color: var(--turf); font-weight: 600; font-size: 15px; }
.lineupgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 12px; }
.lineupgrid ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 15.5px; }
.lineupgrid a { color: var(--ink); text-decoration: none; } @media (hover: hover) and (pointer: fine) { .lineupgrid a:hover { color: var(--turf); text-decoration: underline; } }

/* registration extras */
.guests { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.guests legend { padding: 0 6px; margin: 0; }
.guest summary { cursor: pointer; color: var(--turf); font-weight: 600; }
.guest[open] { display: grid; gap: 10px; padding-bottom: 6px; }
.guest[open] summary { margin-bottom: 4px; }
.guests p { margin: 0; }
.names.pick a { background: #fff; border: 1.5px solid var(--turf); color: #0a4a2c; border-radius: 999px; padding: 9px 15px; font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .names.pick a:hover { background: var(--turf); color: #fff; } }
.findform { margin-top: 18px; } .findform label { margin-bottom: 8px; }
.whoami { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--wash); border-radius: 12px; padding: 14px 16px; }
.whoami strong { font: 700 24px/1.1 var(--display); }
.paybox { padding: 14px; min-height: 180px; }
.paybox #payload { padding: 50px 0; }

/* organiser lists */
.others { border-top: 1px solid var(--line); margin-top: 4px; }
.others > summary { cursor: pointer; padding: 12px 0; color: var(--muted); font-weight: 600; font-size: 15px; }
.wrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wrow form { margin: 0 0 0 auto; } .wrow .grow { flex: 1; }
.findbox { max-width: 280px; }
.inlineform { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.inlineform label { flex: 1 1 260px; }
.pairform { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.invform { display: flex; gap: 8px; align-items: center; margin: 0; flex: 1 1 240px; }
.wrow .invform { margin: 0; } .invform input { padding: 8px 10px; font-size: 15.5px; }
.invform.add { margin-top: 14px; max-width: 420px; }
.danger-zone { border-color: #eec8c2; }
.danger-zone h2 { color: var(--red); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; } h2 { font-size: 23px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .fixture { margin-left: -18px; margin-right: -18px; margin-top: -26px; border-radius: 0 0 22px 22px; padding: 24px 18px 22px; }
  .fixture h1 { font-size: 40px; }
  .fixture::before { right: -150px; } .fixture::after { right: -21px; }
  .fxrow { grid-template-columns: 54px 1fr; padding: 12px; gap: 12px; }
  .fxrow .gc-side { grid-column: 2; justify-items: start; text-align: left; display: flex; align-items: center; gap: 10px; }
  .gc-title { font-size: 22px; }
  .sheet { padding: 16px; border-radius: 18px; }
  .sheettitle { font-size: 30px; }
  .pmeta { flex-basis: 100%; order: 5; }
  .pricegrid { grid-template-columns: 1fr; gap: 8px; }
  .pairform { grid-template-columns: 1fr; }
  .memsel { max-width: none; width: 100%; }
  .stat b { font-size: 28px; }
  .lb td, .lb th { padding: 10px 7px; } .lb td:first-child, .lb th:first-child { padding-left: 14px; } .lb td:last-child, .lb th:last-child { padding-right: 14px; }
  .nav { font-size: 15px; }
  .nav a, .nav .linkbtn { padding: 7px 8px; }
}

/* form polish */
.form > .btn:not(.big) { justify-self: start; }
.form > h2:not(:first-of-type) { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.form > h1 + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 640px) { .player:not(.person) .pmeta { display: none; } }

/* fixture header extras */
.fx-where a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .fx-where a:hover { text-decoration-color: var(--bib); } }
.fx-map { font-size: 13.5px; color: var(--bib); font-weight: 600; margin-left: 6px; white-space: nowrap; }
.fx-for { display: grid; gap: 2px; min-width: 0; }
.fx-for b { font: 600 22px/1.15 var(--display); overflow-wrap: anywhere; }
.confirm { border: 0; background: none; padding: 18px 0 6px; margin-bottom: 8px; }
.confirm h1 { font-size: 48px; }
.actions { margin: 0 0 16px; } .actions .btn { flex: 1 1 220px; width: auto; }
@media (max-width: 640px) { .confirm + .fixture { margin-top: 0; border-radius: 20px; margin-left: 0; margin-right: 0; } }
.fx-for span { font-size: 14.5px; color: rgba(255,255,255,.82); font-weight: 500; }

/* people page extras */
.hasnote { font-style: normal; font-size: 12.5px; font-weight: 700; background: #fff0c4; color: var(--amber); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.person .pform .wrow:first-of-type { border-top: 0; }
.person .pform h3 { margin: 4px 0 2px; }
.headrow .findbox { width: 250px; flex: 0 1 250px; }
@media (max-width: 640px) { .headrow .findbox { flex: 1 1 100%; width: 100%; max-width: none; } }

/* ---------- motion: only in response to something happening ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

.loadbar { position: fixed; z-index: 100; left: 0; top: 0; height: 3px; width: 100%; background: var(--bib); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
.loading .loadbar { opacity: 1; animation: loadbar 9s cubic-bezier(.05,.7,.1,1) forwards; }
@keyframes loadbar { 0% { transform: scaleX(0); } 12% { transform: scaleX(.35); } 45% { transform: scaleX(.7); } 100% { transform: scaleX(.94); } }

.spinner, .btn.busy::after { content: ""; display: inline-block; width: 1em; height: 1em; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
.spinner { vertical-align: -2px; margin-right: 10px; color: var(--turf); }
.btn.busy { pointer-events: none; opacity: .88; }
.quickrate button.busy { pointer-events: none; opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn, .chip span, .names.pick a, .subnav a, .nav a, .fxrow, .found a, input, select, textarea, .quickrate button, .sw { transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .12s var(--ease-out); }
.chip:active span, .names.pick a:active, .sw:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .fxrow:hover { transform: translateY(-2px); } }

main.wrap { animation: enter .24s var(--ease-out) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
@supports (view-transition-name: none) { main.wrap { animation: none; } }

.flash { animation: drop .26s var(--ease-out) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
details[open] > :not(summary) { animation: reveal .22s var(--ease-out) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }

/* the spots bar fills up to show how full the game is */
.meter i { transform-origin: left; animation: fill .6s .1s var(--ease-out) both; }
@keyframes fill { from { transform: scaleX(0); } }

/* confirmation: the tick pops in, then the check appears */
.tick { animation: pop .5s cubic-bezier(.2,1.5,.4,1) both; }
.tick::after { animation: check .28s .32s var(--ease-out) both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes check { from { opacity: 0; transform: rotate(45deg) scale(.4); } }

.team { transition: outline-color .12s, box-shadow .15s; }
.team.over { box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.pill.played, .pill.full { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .loading .loadbar { animation: none; transform: scaleX(.6); }
  .spinner, .btn.busy::after { animation-duration: .7s !important; }
  @view-transition { navigation: none; }
}

/* ---------- navigation bar ---------- */
.top { border-bottom: 3px solid var(--bib); }
.toprow { min-height: 64px; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 26px; }
.toprow .brand { align-self: center; flex: none; }
.nb-links { display: flex; align-items: stretch; gap: 2px; }
body:not(.is-admin) .nb-links { margin-left: auto; }
.nb-links a { position: relative; display: flex; align-items: center; padding: 0 14px; color: rgba(255,255,255,.8); text-decoration: none; font: 600 16px var(--text); transition: color .15s; }
@media (hover: hover) and (pointer: fine) { .nb-links a:hover { color: #fff; } }
.nb-links a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -3px; height: 6px; background: var(--bib); border-radius: 6px 6px 0 0; transform: scaleY(0); transform-origin: bottom; transition: transform .18s; }
@media (hover: hover) and (pointer: fine) { .nb-links a:hover::after { transform: scaleY(.5); } }
.nb-links a.on { color: #fff; }
.nb-links a.on::after { transform: scaleY(1); }
.nb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nb-new { display: inline-flex; align-items: center; gap: 8px; background: var(--bib); color: var(--ink); font: 700 15.5px var(--text); padding: 9px 16px; border-radius: 10px; text-decoration: none; white-space: nowrap; transition: background-color .15s, transform .12s; }
@media (hover: hover) and (pointer: fine) { .nb-new:hover { background: #ffd363; } }
.nb-new:active { transform: scale(.97); }
.nb-new svg { width: 16px; height: 16px; }
.nb-out { margin: 0; border-left: 1px solid rgba(255,255,255,.2); padding-left: 14px; }
.nb-out .linkbtn { color: rgba(255,255,255,.75); text-decoration: none; font: 500 15px var(--text); }
@media (hover: hover) and (pointer: fine) { .nb-out .linkbtn:hover { color: #fff; } }
.tabs, .only-phone { display: none; }
.shotmode .tabs { display: none !important; }

@media (max-width: 760px) {
  .toprow { min-height: 56px; gap: 10px; }
  .toprow .brand { font-size: 22px; }
  .nb-links a { padding: 0 11px; font-size: 15.5px; }
  .is-admin .nb-links, .is-admin .nb-out { display: none; }
  .only-phone { display: grid; }
  .is-admin { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); }
  .tabs a { display: grid; justify-items: center; gap: 3px; padding: 7px 0 5px; border-radius: 12px; color: var(--muted); text-decoration: none; font: 600 12.5px var(--text); transition: background-color .15s, color .15s; }
  .tabs a svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .tabs a.on { color: var(--turf-deep); background: var(--wash); }
  .tabs a:active { background: var(--wash); }
}

/* ---------- cleaner screens ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 350px) { .duo { grid-template-columns: 1fr; } }
.posgrid { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 8px; }
.posgrid .chip span { text-align: center; border-radius: 12px; padding: 11px 4px; }
.posgrid b { font-weight: 600; } .posgrid .full { display: none; }
@media (min-width: 560px) { .posgrid .ab { display: none; } .posgrid .full { display: inline; } }
.regcard { display: grid; gap: 14px; }
.regcard .form { gap: 16px; }
.picklist .lbl { font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 500; margin: 16px 0 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.guests { border: 0; padding: 0; display: grid; gap: 10px; }
.guestline { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.guestline .linkbtn { font-weight: 600; text-decoration: none; }
.guest { display: grid; gap: 10px; background: #f8faf7; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.guest:not([hidden]) { animation: reveal .22s var(--ease-out) both; }
.guesthead { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.payline { margin: -2px 0 0; }
.finder { text-align: center; }
.finder > summary { list-style: none; cursor: pointer; color: var(--turf); font-weight: 600; font-size: 14.5px; display: inline-block; }
.finder > summary::-webkit-details-marker { display: none; }
.finder[open] > summary { margin-bottom: 12px; }
.finder .findform { margin: 0; text-align: left; } .finder .found { text-align: left; }
.who { padding-top: 18px; padding-bottom: 18px; }
.whohead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.whohead h2 { margin: 0; font-size: 22px; }
.names .linkbtn { font-weight: 600; font-size: 15px; text-decoration: none; padding: 5px 4px; }
.fx-format { margin: 6px 0 0; font-weight: 600; font-size: 14.5px; color: var(--bib); }

/* team sheet facts */
.sheetfacts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.sheetfacts span { background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 14.5px; font-weight: 600; }
.sheetfacts span.hot { background: var(--bib); color: var(--ink); }
.kitline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; padding: 8px 16px 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* organiser game page */
.ghead { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.gtitleblock h1 { margin-bottom: 4px; } .gtitleblock h1 .pill { font-family: var(--text); position: relative; top: -5px; margin-left: 4px; }
.acts { display: flex; gap: 8px; align-items: stretch; }
.acts .btn { padding: 11px 20px; }
.more { position: relative; }
.more > summary { list-style: none; height: 100%; padding: 11px 14px; } .more > summary::-webkit-details-marker { display: none; }
.more > summary svg { fill: currentColor; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 14px 34px rgba(10,40,25,.16); display: grid; transform-origin: top right; animation: pop-menu .16s var(--ease-out) both; }
@keyframes pop-menu { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.menu form { margin: 0; display: grid; }
.menu a, .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 9px; font: 600 15.5px var(--text); color: var(--ink); text-decoration: none; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .menu a:hover, .menu button:hover { background: var(--wash); } }
.menu .danger { color: var(--red); } @media (hover: hover) and (pointer: fine) { .menu .danger:hover { background: #fbeeec; } }
.btn.done { background: var(--wash); border-color: #b9dcc6; color: var(--turf-deep); }
.sumcard { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; padding: 18px 22px; }
.sumcell { display: grid; gap: 8px; align-content: start; }
.sumrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 15px; }
.sumrow b { font: 700 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.sumrow.sub { font-weight: 500; color: var(--muted); } .sumrow.sub .neg, .sumrow.sub .pos { font-weight: 700; }
.bar { height: 8px; border-radius: 999px; background: var(--wash); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--turf); min-width: 6px; transform-origin: left; animation: fill .6s .1s var(--ease-out) both; }
.tabbar { position: sticky; top: 8px; z-index: 20; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 2px; background: #e3ebe4; border-radius: 13px; padding: 4px; margin: 0 0 12px; box-shadow: 0 0 0 8px var(--chalk); }
.tabbar button { border: 0; background: none; border-radius: 10px; padding: 9px 2px; font: 700 14.5px var(--text); color: var(--muted); cursor: pointer; white-space: nowrap; transition: background-color .18s, color .18s, box-shadow .18s; }
.tabbar button i { font-style: normal; font-weight: 600; opacity: .7; }
@media (hover: hover) and (pointer: fine) { .tabbar button:hover { color: var(--ink); } }
.tabbar button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 0 #cfd8d0; }
body:not(.tabbed) .tabbar { display: none; }
.tabbed .panel:not([hidden]) { animation: panel .22s var(--ease-out) both; }
@keyframes panel { from { opacity: 0; transform: translateY(6px); } }
.tabbed .ptitle { display: none; }
.card.list { padding-top: 6px; padding-bottom: 14px; }
.listfoot { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

/* one-line rows for players and people */
.prow { border-top: 1px solid var(--line); }
.card.list > .prow:first-of-type, .ptitle + .prow { border-top: 0; }
.prow > summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; min-width: 0; border-radius: 8px; transition: background-color .15s; }
.prow > summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .prow > summary:hover { background: #f8faf7; box-shadow: -8px 0 0 #f8faf7, 8px 0 0 #f8faf7; } }
.prow .pname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.prow .ptags { flex: none; } .prow .ptags i { background: none; padding: 0; color: var(--muted); font-size: 12.5px; }
.pstat { margin-left: auto; flex: none; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pstat.warn { color: var(--amber); }
.prow.isguest > summary { padding-left: 37px; } .prow.isguest .rate { width: 22px; height: 22px; font-size: 12.5px; }
.prow.isguest .pname { font-weight: 500; }
.prow.add > summary { padding: 14px 0 6px; } .addlink { color: var(--turf); font-weight: 600; }
.pbody { display: grid; gap: 10px; padding: 0 0 16px; }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; border: 1.5px solid var(--line); border-radius: 11px; overflow: hidden; }
.seg button { border: 0; border-left: 1.5px solid var(--line); background: #fff; padding: 9px 0; font: 700 15px var(--text); color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
.seg button:first-child { border-left: 0; }
@media (hover: hover) and (pointer: fine) { .seg button:hover { background: var(--wash); color: var(--ink); } }
.seg button.on { background: var(--turf); color: #fff; }
.seg button.busy { opacity: .5; pointer-events: none; }
.kv { display: flex; justify-content: space-between; gap: 4px 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); font-weight: 500; }
.kv span:first-child { overflow-wrap: anywhere; }
.pnote { font-size: 14.5px; margin: 0; }
.sub > summary { cursor: pointer; color: var(--turf); font-weight: 600; font-size: 14.5px; list-style: none; display: inline-block; padding: 2px 0; }
.sub > summary::-webkit-details-marker { display: none; }
.sub[open] > summary { margin-bottom: 10px; }
.sub .pform { padding: 0; } .sub .wrow:first-of-type { border-top: 0; }
.justsaved .rate { animation: saved .3s var(--ease-out) both; }
@keyframes saved { from { transform: scale(.8); opacity: .4; } }

/* people page */
.phead { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 16px; margin-bottom: 12px; }
.phead h1 { margin: 0; } .hcount { color: var(--muted); font-size: .72em; }
.how > summary { list-style: none; cursor: pointer; color: var(--turf); font-weight: 600; font-size: 15px; }
.how > summary::-webkit-details-marker { display: none; }
.how[open] { flex: 1 1 100%; } .how[open] > summary { text-align: right; margin-top: -30px; }
.howbody { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.searchrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.searchrow select { width: auto; font-weight: 600; font-size: 15px; }
.footlinks { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: -4px 2px 20px; font-weight: 600; font-size: 15px; }
.footlinks a, .footlinks .linkbtn { text-decoration: none; font-weight: 600; }
.rules > summary { list-style: none; cursor: pointer; } .rules > summary::-webkit-details-marker { display: none; }
.rules > summary h2 { margin: 0; display: inline; } .rules[open] > summary { margin-bottom: 10px; }
.rules:not([open]) { padding-top: 16px; padding-bottom: 16px; }

/* game form: subs */
.subsbox { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #f8faf7; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--turf); padding: 0; }
.subsbox p { margin: 0; }

/* gentle staggered entrance for lists, capped so long lists do not wait */
.card.list > .prow, .pubsheet .team, .stack > .fxrow { animation: rise .28s var(--ease-out) both; }
.card.list > .prow:nth-of-type(2), .pubsheet .team:nth-child(2), .stack > .fxrow:nth-child(2) { animation-delay: .03s; }
.card.list > .prow:nth-of-type(3), .pubsheet .team:nth-child(3), .stack > .fxrow:nth-child(3) { animation-delay: .06s; }
.card.list > .prow:nth-of-type(4), .pubsheet .team:nth-child(4), .stack > .fxrow:nth-child(4) { animation-delay: .09s; }
.card.list > .prow:nth-of-type(5) { animation-delay: .12s; }
.card.list > .prow:nth-of-type(6) { animation-delay: .15s; }
.card.list > .prow:nth-of-type(n+7) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.rate { transition: transform .15s; } .prow > summary:active .rate { transform: scale(.9); }
.btn.big:active { transform: scale(.985); }
.sheetfacts span { animation: rise .3s var(--ease-out) both; } .sheetfacts span:nth-child(2) { animation-delay: .05s; } .sheetfacts span:nth-child(3) { animation-delay: .1s; }

@media (max-width: 760px) {
  .ghead { display: grid; gap: 12px; }
  .acts { display: grid; grid-template-columns: 1fr 1fr auto; }
  .acts .btn { padding: 11px 8px; }
  .sumcard { grid-template-columns: 1fr; padding: 16px 18px; gap: 12px; }
  .sumrow b { font-size: 26px; }
  .tabbar button { font-size: 13.5px; }
  .pstat { font-size: 13.5px; }
}

/* ---------- groups, sign up and the platform ---------- */
.brandname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.toprow .brand { min-width: 0; }
.nb-switch { margin: 0; }
.nb-switch select { width: auto; max-width: 190px; padding: 7px 10px; font: 600 14.5px var(--text); background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); border-radius: 9px; }
.nb-switch select option { color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding-top: 4px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.foot span { margin-right: auto; }
.foot a { color: var(--muted); text-underline-offset: 3px; } @media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--turf); } }
main.wrap { padding-bottom: 44px; }
.flash.warn { background: #fff5d6; color: #5c3d00; border-color: #f0d98a; }
.flash.warn a, .flash.err a { color: inherit; font-weight: 700; }
.flash.note { background: #fff5d6; color: #3d2a00; border-color: #e0a800; font-weight: 600; overflow-wrap: anywhere; }
.flash.visiting { background: var(--ink); color: #fff; border-color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; animation: none; }
.flash.visiting form { margin: 0; } .flash.visiting .linkbtn { color: var(--bib); font-weight: 600; }
form.flash { display: block; }
.hero { padding-bottom: 26px; } .hero h1 { font-size: 52px; }
.hero.slim { padding-top: 22px; padding-bottom: 22px; }
.herosearch { display: flex; gap: 8px; margin-top: 18px; max-width: 460px; }
.herosearch input { border-color: transparent; }
.herosearch .btn { flex: none; }
.gbadge { width: 54px; height: 54px; border-radius: 14px; background: var(--turf-deep); color: var(--bib); display: grid; place-items: center; font: 700 28px/1 var(--display); flex: none; }
.gbadge.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 16px; }
.fxrow.grow { grid-template-columns: 54px 1fr auto; }
.startcard { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-top: 28px; }
.startcard > div { flex: 1 1 280px; } .startcard h2 { margin-bottom: 6px; } .startcard p { margin: 0; }
.startcard .btn { width: auto; flex: none; }
.signup { max-width: 480px; }
.hintline { display: block; font-weight: 400; margin-top: 6px; }
.lbl { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.check span a { font-weight: 600; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 23px; margin: 26px 0 8px; }
.legal p, .legal li { color: #263a30; }
.legal ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.addteam { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.card.form > form { margin: 0; }
.tabs { grid-template-columns: repeat(var(--n, 4), 1fr) !important; }
@media (max-width: 760px) {
  .nb-switch { display: none; }
  body:not(.is-admin) .nb-links a[data-wide] { display: none; }
  .hero h1 { font-size: 42px; }
  .fxrow.grow { grid-template-columns: 54px 1fr; }
  .tabs a { font-size: 12px !important; }
}

@media (max-width: 760px) {
  .orgrow > summary { flex-wrap: wrap; row-gap: 6px; }
  .orgrow .pname { flex: 1 1 calc(100% - 48px); }
  .orgrow .pstat { margin-left: 38px; order: 5; }
  .orgrow .pill { margin-left: 38px; order: 4; }
  .orgrow .pill + .pstat { margin-left: auto; }
}

.testto { width: auto; flex: 1 1 220px; padding: 8px 10px; font-size: 15px; }

/* the site's own logo, on the site's own pages */
.brand.logo { padding: 4px 0; }
.brand.logo img { display: block; height: 27px; width: auto; }
.footlogo img { display: inline-block; height: 15px; width: auto; vertical-align: -3px; margin-left: 6px; opacity: .85; }
.runs { display: inline-flex; align-items: center; flex-wrap: wrap; }
@media (hover: hover) and (pointer: fine) { .foot .footlogo:hover img { opacity: 1; } }
@media (max-width: 760px) { .brand.logo img { height: 23px; } }

/* ---------- feel like an app on a phone ---------- */
html { -webkit-tap-highlight-color: transparent; }
/* taps fire straight away, without the browser waiting to see if it is a double tap */
a, button, summary, label, select, .chip, .seg button, .tabbar button { touch-action: manipulation; }
/* holding a finger on a control should not select its text */
button, .btn, .chip, .tabbar, .tabs, .seg, .nb-links, .nb-new, .step, .tag, .sw, .pill, .prow > summary, .finder > summary, .sub > summary, .how > summary, .more > summary {
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
/* press feedback for everything you can tap, not only buttons */
.tabbar button:active, .seg button:active, .menu a:active, .menu button:active, .tabs a:active { transform: scale(.97); }
.tabbar button, .seg button, .menu a, .menu button { transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .12s var(--ease-out); }
.fxrow:active { transform: scale(.99); }
.prow > summary:active { background: #eef3ef; }
.linkbtn:active, .addlink:active { opacity: .7; }
/* phones zoom into any box with text under 16px and do not zoom back out */
@media (pointer: coarse) {
  .linkrow input, .invform input, .memsel, .searchrow select, .testto, .nb-switch select, .findbox, .herosearch input { font-size: 16px; }
}
/* keep content clear of the notch and the home bar */
.top { padding-top: env(safe-area-inset-top, 0px); }
.wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.foot { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
/* names in any language keep their own reading direction */
.pname, .nm, .names span, .names a, .gc-title, .brandname, .teamname, .whoami strong, .found strong { unicode-bidi: plaintext; }
/* nothing someone types can push the page sideways */
.pname, .gc-title, .teamname, .sheettitle, .fixture h1, .gtitleblock h1, .whoami strong, .kv span, .pnote, .notes { overflow-wrap: anywhere; }
/* long names on the team board shorten with dots instead of being cut off at the card edge */
.drop { grid-template-columns: minmax(0, 1fr); }
.pl { min-width: 0; }

/* ---------- accessibility and polish pass ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--bib); color: var(--ink); font-weight: 700; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 10px; }
main:focus { outline: none; }
/* position tags: darker text so they pass contrast checks */
.tag { color: var(--turf-deep); }
/* buttons may wrap on very narrow phones instead of pushing the page sideways */
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } }
/* organiser top bar on tablets: tighter, so it fits on one line */
@media (min-width: 761px) and (max-width: 1040px) {
  .is-admin .toprow { gap: 14px; }
  .is-admin .nb-links a { padding: 0 9px; font-size: 15px; }
  .is-admin .nb-switch, .is-admin .nb-out { display: none; }
  .is-admin .only-phone { display: grid; }
}
/* returning players */
.card.mine { display: grid; gap: 10px; }
.card.mine h2 { margin: 0; }
.stack.tight { margin-top: 0; }
.mygroups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.chiplink { background: var(--wash); color: var(--turf-deep); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 14.5px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .chiplink:hover { background: #dbe9de; } }
.lb tr.me td { background: #e9f5ec !important; }
.sharerow { display: flex; margin: 4px 0 22px; } .sharerow.center { justify-content: center; }
.sharebtn svg { flex: none; }
/* the Move menu on the team board */
.mover { width: auto; flex: none; padding: 5px 6px; font-size: 13px; border-radius: 8px; max-width: 96px; }
.shotmode .mover { display: none; }
.searchrow.one { grid-template-columns: 1fr; }
/* links and controls at least 24px tall to tap */
.linkbtn.small, .foot a, .sub > summary, .finder > summary, .how > summary { min-height: 24px; display: inline-flex; align-items: center; }

/* Team board on phones: let names use two lines instead of being cut off, and keep the Move menu compact */
@media (max-width: 560px) {
  .pl .nm { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .shotmode .pl .nm { white-space: nowrap; }
  .pl { gap: 8px; }
  .mover { max-width: 72px; padding: 5px 4px; font-size: 13px; }
}

/* Nicknames on the team board: the nickname leads, the full name sits small underneath */
.pl .nm .fn { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted, #5b6b62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.shotmode .pl .nm .fn { display: none; }

/* Change your group's address */
.addrcard > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.addrcard > summary::-webkit-details-marker { display: none; }
.addrcard > summary h2 { margin: 0; }
.addrcard > summary::after { content: "Show"; font-weight: 600; font-size: 14px; color: var(--turf); }
.addrcard[open] > summary::after { content: "Hide"; }
.addrcard[open] > summary { margin-bottom: 14px; }
.addrcard .flash { text-align: left; }
.slugrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.slugrow span { overflow-wrap: anywhere; font-size: 15px; }
.slugrow input { flex: 1 1 180px; min-width: 0; }
.nowrap { white-space: nowrap; }

/* =====================================================================
   Design system v3: calm, Apple-style surfaces.
   System font (San Francisco on Apple devices, Segoe on Windows, Roboto on
   Android), one action colour (turf green), white cards on a soft grey canvas,
   hairlines instead of borders, pill buttons, frosted bars, grouped lists.
   ===================================================================== */
:root {
  --chalk: #f5f5f7;                       /* canvas */
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #6e6e73;
  --line: rgba(60, 60, 67, .13);          /* hairline */
  --line-strong: rgba(60, 60, 67, .22);
  --fill: rgba(118, 118, 128, .12);       /* quiet fills: secondary buttons, tracks */
  --fill-2: rgba(118, 118, 128, .08);
  --wash: rgba(14, 122, 70, .09);         /* green tint */
  --turf: #0b7a45;
  --turf-deep: #0a4a2c;
  --radius: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --spring: cubic-bezier(.32, .72, 0, 1);
}
body { font: 400 17px/1.47 var(--text); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "kern"; }
h1, h2, h3, .sheettitle, .gc-title, .teamname, .stat b, .sc b, .price, .sumrow b, .fx-price b, .fx-date b { font-family: var(--display); }
h1 { font-size: 34px; line-height: 1.08; font-weight: 700; letter-spacing: -.028em; margin-bottom: 8px; }
h2 { font-size: 22px; line-height: 1.18; font-weight: 600; letter-spacing: -.02em; }
h3 { letter-spacing: -.015em; }
@media (min-width: 761px) { h1 { font-size: 40px; } }
.muted { color: var(--muted); } .small { font-size: 14px; letter-spacing: -.01em; }
a { color: var(--turf); }
main.wrap { padding-top: 22px; padding-bottom: 80px; }
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* top bar: frosted, light, and out of the way */
.top { background: rgba(250, 250, 252, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: var(--ink); border-bottom: 0; box-shadow: 0 .5px 0 var(--line-strong); position: sticky; top: 0; z-index: 50; }
.toprow { min-height: 52px; }
.brand, .brand:visited { color: var(--ink); font: 700 19px/1 var(--display); letter-spacing: -.02em; }
.brand.logo img { height: 22px; width: auto; display: block; }
.mark { width: 22px; height: 22px; border: 2px solid var(--turf); background: linear-gradient(90deg, transparent 44%, var(--turf) 44%, var(--turf) 56%, transparent 56%); }
.nb-links a { color: var(--muted); font: 500 15px var(--text); letter-spacing: -.01em; padding: 0 12px; }
@media (hover: hover) and (pointer: fine) { .nb-links a:hover { color: var(--ink); } }
.nb-links a.on { color: var(--ink); font-weight: 600; }
.nb-links a::after { left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--ink); border-radius: 2px; }
.nb-new { background: var(--turf); color: #fff; border-radius: 999px; padding: 8px 16px; font: 600 15px var(--text); }
@media (hover: hover) and (pointer: fine) { .nb-new:hover { background: #096a3c; } }
.nb-out { border-left-color: var(--line-strong); }
.nb-out .linkbtn { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .nb-out .linkbtn:hover { color: var(--ink); } }
.nb-switch select { background-color: var(--fill); border: 0; color: var(--ink); }

/* phone tab bar: frosted, like iOS */
@media (max-width: 760px) {
  .toprow { min-height: 48px; }
  .tabs { background: rgba(250, 250, 252, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 0; box-shadow: 0 -.5px 0 var(--line-strong); padding-top: 4px; }
  .tabs a { color: var(--faint); font: 500 10.5px var(--text); letter-spacing: 0; gap: 2px; padding: 5px 0 3px; }
  .tabs a svg { width: 25px; height: 25px; stroke-width: 1.7; }
  .tabs a.on { color: var(--turf); background: none; }
  .tabs a:active { background: none; opacity: .6; }
}

/* surfaces: white on grey, no borders */
.card { border: 0; border-radius: var(--radius); padding: 22px; box-shadow: none; }
.card.narrow { margin-top: 28px; }
.notice { border: 0; border-radius: var(--radius); }
.empty { border: 0; background: var(--fill-2); border-radius: var(--radius); color: var(--muted); }
.flash { border: 0; border-radius: var(--r-md); background: rgba(52, 199, 89, .14); color: #0b5a33; font-weight: 500; font-size: 15px; }
.flash.err { background: rgba(255, 59, 48, .1); color: #a1271c; }
.flash.warn { background: rgba(255, 204, 0, .18); color: #6b4a00; }
.notes { background: rgba(255, 204, 0, .14); border: 0; border-radius: var(--r-md); font-weight: 400; }
.sec { font-size: 22px; margin: 30px 2px 12px; }

/* buttons: pills. Primary is solid green, secondary is a quiet grey fill */
.btn { border: 0; border-radius: 999px; padding: 11px 20px; font: 600 16px/1.25 var(--text); letter-spacing: -.01em; background: var(--turf); color: #fff; transition: background-color .2s var(--ease-out), transform .16s var(--ease-out), opacity .2s; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #096a3c; } }
.btn.big { padding: 15px 24px; font-size: 17px; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.ghost, .btn.secondary { background: var(--fill); color: var(--turf); border: 0; }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover, .btn.secondary:hover { background: rgba(118, 118, 128, .18); color: var(--turf); } }
.btn.attn { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn.attn:hover { background: #3a3a3c; } }
.btn.danger { background: rgba(255, 59, 48, .1); color: #c4291d; border: 0; }
.btn:active, .nb-new:active { transform: scale(.97); }
.btn.done { background: var(--wash); color: var(--turf-deep); }

/* forms: soft filled fields, a calm focus ring */
label { font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
legend { font-weight: 500; font-size: 15px; }
input, select, textarea { font: 400 17px/1.3 var(--text); letter-spacing: -.02em; padding: 13px 14px; border: 0; border-radius: 12px; background: var(--fill-2); box-shadow: inset 0 0 0 1px transparent; transition: background-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #a1a1a6; }
@media (hover: hover) and (pointer: fine) { input:hover, select:hover, textarea:hover { background: var(--fill); } }
input:focus, select:focus, textarea:focus { outline: 0; background: #fff; box-shadow: 0 0 0 1px var(--turf), 0 0 0 4px rgba(11, 122, 69, .16); }
input[type=checkbox], input[type=radio] { box-shadow: none; }
input[readonly] { background: var(--fill-2); color: var(--muted); }
select { -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(11, 122, 69, .4); outline-offset: 2px; }
.chip span { border: 0; background: var(--fill-2); font-weight: 500; color: var(--ink); transition: background-color .18s var(--ease-out), color .18s, transform .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .chip:hover span { background: var(--fill); } }
.chip input:checked + span { background: var(--turf); color: #fff; }
.chip:active span { transform: scale(.96); }
.posgrid .chip span { border-radius: 12px; }
.guest, .subsbox { background: var(--fill-2); border: 0; border-radius: var(--r-md); }
.linkrow input { background: var(--fill-2); font-size: 15px; }
.or::before, .or::after { background: var(--line); }

/* the game header: the one dark tile, a slice of pitch */
.fixture { border-radius: 24px; padding: 26px 22px 22px; background: radial-gradient(120% 140% at 100% 0%, #11603a 0%, var(--turf-deep) 55%); }
.fixture::before, .fixture::after { opacity: .7; }
.fx-when { font: 600 15px/1.3 var(--text); letter-spacing: -.01em; color: rgba(255, 255, 255, .72); text-transform: none; }
.fixture h1 { font-size: 36px; letter-spacing: -.03em; line-height: 1.04; }
@media (min-width: 761px) { .fixture h1 { font-size: 46px; } }
.fx-where { font-weight: 400; color: rgba(255, 255, 255, .78); }
.fx-format { color: var(--bib); font-weight: 600; font-size: 14px; }
.fx-price b { font-size: 34px; letter-spacing: -.03em; }
.fx-price span, .fx-spots span { font-weight: 400; font-size: 14px; }
.meter { height: 6px; background: rgba(255, 255, 255, .18); }
.hero.fixture .herosearch input { background-color: #fff; }
.herosearch { margin-top: 18px; }
.herosearch input { border-radius: 999px; padding-left: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center; }
.herosearch .btn.attn { background: var(--bib); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .herosearch .btn.attn:hover { background: #ffd363; } }

/* lists of games and groups: one grouped card, rows split by hairlines */
.stack { gap: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.stack > .fxrow { border: 0; border-radius: 0; position: relative; padding: 14px 40px 14px 16px; transition: background-color .15s; }
.stack > .fxrow + .fxrow::before { content: ""; position: absolute; top: 0; left: 92px; right: 0; height: .5px; background: var(--line-strong); }
.stack > .fxrow::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border: solid #c7c7cc; border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .stack > .fxrow:hover { background: #fafafa; border-color: transparent; } }
.stack > .fxrow:active { background: #f0f0f2; }
.fxrow { border: 0; }
.fx-date { border-radius: 12px; background: var(--wash); color: var(--turf-deep); padding: 7px 0 6px; }
.fx-date span { color: var(--turf); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.fx-date b { font-size: 26px; letter-spacing: -.03em; }
.gbadge { border-radius: 14px; background: linear-gradient(160deg, #13804b, var(--turf-deep)); }
.gc-title { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.gc-side { gap: 6px; }
.price { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

/* small labels */
.pill { font-weight: 600; font-size: 12.5px; padding: 3px 10px; background: var(--wash); color: var(--turf); letter-spacing: -.005em; }
.pill.closed, .pill.cancelled { background: var(--fill); color: var(--muted); }
.pill.pending, .pill.full, .pill.needs { background: rgba(255, 204, 0, .2); color: #7a5600; }
.pill.played { background: var(--ink); color: #fff; }
.tag { background: var(--wash); color: var(--turf-deep); border-radius: 7px; font-weight: 600; }
.names span { background: var(--fill-2); font-weight: 500; }

/* numbers */
.stat, .facts div { border: 0; border-radius: var(--r-md); }
.stat > span, .facts span { font-weight: 400; }
.stat b { font-size: 30px; letter-spacing: -.03em; }
.sumrow { font-weight: 500; }
.sumrow b { letter-spacing: -.03em; }
.bar { height: 6px; background: var(--fill); }
th { background: transparent; font-weight: 500; font-size: 13px; color: var(--muted); }
th, td { border-bottom: .5px solid var(--line-strong); }
@media (hover: hover) and (pointer: fine) { tbody tr:hover td { background: #fafafa; } }

/* segmented controls: the iOS look for tabs and the rating picker */
.tabbar { background: var(--fill); border-radius: 11px; padding: 2px; gap: 0; box-shadow: 0 0 0 8px var(--chalk); top: 60px; }
.tabbar button { border-radius: 9px; padding: 7px 2px; font: 600 14px var(--text); letter-spacing: -.01em; color: var(--ink); }
.tabbar button i { opacity: .55; font-weight: 500; }
.tabbar button.on { background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.seg { border: 0; background: var(--fill); border-radius: 11px; padding: 2px; gap: 2px; }
.seg button { border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-weight: 600; }
.seg button.on { background: var(--turf); color: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }
@media (hover: hover) and (pointer: fine) { .seg button:hover { background: rgba(255, 255, 255, .6); } .seg button.on:hover { background: var(--turf); } }
.subnav { background: rgba(245, 245, 247, .85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: .5px solid var(--line-strong); }
.subnav a { border: 0; background: var(--fill); font-weight: 500; }

/* player and people rows */
.prow, .player { border-top: .5px solid var(--line-strong); }
.prow > summary { padding: 13px 0; }
@media (hover: hover) and (pointer: fine) { .prow > summary:hover { background: #fafafa; box-shadow: -10px 0 0 #fafafa, 10px 0 0 #fafafa; } }
.prow .pname { font-weight: 500; }
.pstat { font-weight: 400; font-size: 14px; color: var(--muted); }
.pstat.warn { color: #9a6a00; font-weight: 500; }
.rate { font-family: var(--display); }
.r3 { background: rgba(11, 122, 69, .16); } .r2 { background: rgba(11, 122, 69, .09); } .r1 { background: var(--fill); }
.sub > summary, .addlink, .finder > summary, .how > summary { font-weight: 500; }
.menu { border: 0; border-radius: 14px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: 0 0 0 .5px var(--line-strong), 0 12px 40px rgba(0, 0, 0, .14); }
.menu a, .menu button { font-weight: 400; font-size: 16px; }
.howbody { border: 0; background: var(--card); }

/* team board */
.team { border-radius: var(--radius); }
.pl { background: #f2f2f4; border-radius: 12px; }

/* footer */
.foot { color: var(--faint); font-size: 13px; letter-spacing: -.005em; }
.foot a { color: var(--muted); }

/* motion: arrivals settle like iOS sheets */
.card, .stack, .fixture { animation-timing-function: var(--spring); }
@media (prefers-reduced-motion: reduce) { .btn, .chip span { transition: none; } }

/* the dark header card floats as its own tile under the light top bar */
@media (max-width: 760px) { .fixture { margin: 2px 0 18px; border-radius: 24px; padding: 24px 20px 22px; } }
/* text on quiet grey fills uses a deeper green so it stays easy to read */
.btn.ghost, .btn.secondary, .subnav a, .tabs a.on { color: #086d3d; }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover, .btn.secondary:hover { color: #086d3d; } }
.pill.closed, .pill.cancelled { color: #55555a; }
code { color: var(--ink); background: var(--fill); }
.pill { color: #086d3d; }
.tabbar button i { opacity: 1; color: #55555a; }
/* the top bar stays pinned, so anything scrolled to (links, errors, buttons) lands just below it */
html { scroll-padding-top: 68px; }
.subnav { top: 52px; }
.card[id], .sheet[id] { scroll-margin-top: 72px; }
@media (max-width: 760px) { html { scroll-padding-top: 60px; } .subnav { top: 48px; } .tabbar { top: 56px; } }
.shotmode .top { position: static; }

/* wide tables scroll sideways inside their card on small screens, the page itself stays still */
.card.scroll, .scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; }
.scroll > table { min-width: max-content; }
/* a soft edge on the right shows there is more to see, and fades once you reach the end */
.scroll { background:
  linear-gradient(90deg, var(--card) 30%, rgba(255,255,255,0)) left / 28px 100% no-repeat local,
  linear-gradient(270deg, var(--card) 30%, rgba(255,255,255,0)) right / 28px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.10), transparent) left / 12px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.10), transparent) right / 12px 100% no-repeat scroll,
  var(--card); }
.scroll td, .scroll th { background-clip: padding-box; }
@media (max-width: 360px) { .nb-new { padding: 7px 12px; font-size: 14px; gap: 6px; } .toprow { gap: 8px; } .brandname { max-width: 44vw; } }

/* date and time boxes: phones draw these their own way (taller, centred, sometimes wider), so make them match the other fields */
input[type=date], input[type=time], input[type=datetime-local] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 100%; min-width: 0;
  height: 48px; line-height: 21px; padding-top: 13px; padding-bottom: 13px; text-align: left; color: var(--ink); background-color: var(--fill-2);
}
input[type=date]:focus, input[type=time]:focus { background-color: #fff; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 21px; line-height: 21px; }
input[type=date]::-webkit-datetime-edit, input[type=time]::-webkit-datetime-edit { padding: 0; line-height: 21px; }
input[type=date]::-webkit-calendar-picker-indicator { opacity: .55; margin: 0; }
select { line-height: 21px; }

/* two fields side by side never let one push the other wider */
.grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid2 > label { min-width: 0; }
/* every one-line field is exactly the same height, whatever kind it is */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), select { height: 48px; }
.chip input { height: 1px; }
input[type=date] { padding-right: 10px; }
.pricebox { border: 0; background: var(--fill-2); border-radius: var(--r-md); }
