/* Ohmside styles: one file, mobile first, desktop overrides at min-width 900px. */
/* VOICE: friendly, crisp, game-day ready; feels like a good consumer app
   IDEA: the organiser's clipboard and the TV tactics board in one tidy card stack
   PICTURE: the striped pitch with kit-coloured discs; on the landing page, a live demo
   COLOUR and TYPE: white cards, soft hairlines, pitch green, red and blue kits lead; Plus Jakarta Sans
   LAYOUT: one centred column of cards, sheets slide up from the bottom on phones */
:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #121212);
  --card: light-dark(#fff, #1c1c1e);
  --ink: light-dark(#222222, #f2f2f2);
  --mute: light-dark(#717171, #a3a3a8);
  --line: light-dark(#ebebeb, #2e2f34);
  --soft: light-dark(#f7f7f7, #262628);
  --ok: light-dark(#0b7a4b, #4ade80);
  --okb: light-dark(#eef8f2, #0f2e1d);
  --amb: light-dark(#8a5a00, #fbbf24);
  --ambb: light-dark(#fff7e8, #3a2a12);
  --accent: #e8305a;
  --accent2: #e31c5f;
  --accentb: light-dark(#fff1f3, #3a1520);
  --f: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --s: 36px;
  --a: #e03a3e;
  --b: #2e7fe8;
}
:root[data-theme='light'] {
  color-scheme: light;
}
:root[data-theme='dark'] {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  min-width: 0;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--f);
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) max(4vw, 16px) 14px;
  max-width: 820px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate(11 11) scale(.78)'%3E%3Cg transform='rotate(-11 50 55) translate(-2 2)'%3E%3Cpath d='M20 79C27 76 33 80 39 77C41 74 38 72 35 68C26 58 27 40 38 31C49 22 65 25 71 37C77 50 72 63 62 70C59 73 60 77 63 78C68 80 73 76 80 79' fill='none' stroke='white' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Ccircle cx='79' cy='20' r='6' fill='white'/%3E%3C/g%3E%3C/svg%3E")
    center/26px no-repeat var(--accent);
}
.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
}
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 max(4vw, 16px) 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
h1 {
  font-size: clamp(28px, 5.58vw, 43px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 800;
  text-wrap: balance;
}
h2 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.muted {
  color: var(--mute);
  font-size: 13px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  margin: 0 0 6px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--mute);
  font-weight: 600;
  margin: 10px 0 16px;
}
.bar {
  margin-top: 18px;
  height: 8px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}
.barl {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0 18px;
}
.me {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.grow {
  flex: 1;
}
.big {
  min-height: 54px;
  font-size: 16px;
  padding: 0 26px;
  justify-content: center;
}
.state {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
}
.state i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.state i svg {
  width: 20px;
  height: 20px;
}
.in i {
  background: var(--okb);
  color: var(--ok);
}
.wt i {
  background: var(--ambb);
  color: var(--amb);
}
.ot i {
  background: var(--soft);
  color: var(--mute);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s var(--ease),
    border-color 0.15s,
    opacity 0.2s;
}
.pill:hover {
  border-color: var(--ink);
}
.pill.dark:hover {
  background: #000;
}
.pill:active {
  transform: scale(0.97);
}
.pill[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.pill svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.pill.dark {
  background: var(--ink);
  color: var(--card);
  border-color: var(--ink);
}
.pill.brand {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pill.brand:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}
.pill.ghost {
  border-color: transparent;
  background: var(--soft);
}
svg.i {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
input,
textarea,
select {
  font: 16px var(--f);
  max-width: 100%;
  min-width: 0;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 48px;
  width: 100%;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.08));
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #4f8ff7;
  outline-offset: 2px;
}
.lab {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  margin: 0 0 6px;
}
.field {
  margin-bottom: 14px;
}
.row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--soft);
  padding: 5px;
  border-radius: 16px;
}
.tabs button {
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
}
.tabs button.on {
  background: light-dark(#fff, #3a3a40);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.tabs.seg {
  grid-template-columns: 1fr 1fr;
}
.tabs.seg button {
  font-size: 15px;
}
.me-btn.on {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--accent);
}
.sec {
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  margin: 18px 0 4px;
  display: flex;
  justify-content: space-between;
}
.sec:first-child {
  margin-top: 0;
}
.pr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 6px;
  border-radius: 12px;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
}
button.pr:hover {
  background: var(--soft);
}
.av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.pn {
  flex: 1;
  min-width: 70px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.you {
  font-size: 11px;
  font-weight: 800;
  background: var(--ink);
  color: var(--card);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 2px;
}
.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag.paid {
  background: var(--okb);
  color: var(--ok);
}
.tag.claim {
  background: var(--ambb);
  color: var(--amb);
}
.tag.none {
  background: var(--soft);
  color: var(--mute);
}
.empty {
  color: var(--mute);
  font-size: 13px;
  padding: 8px 6px;
}
.add {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link {
  display: flex;
  gap: 8px;
  align-items: center;
}
.link input {
  font-size: 13px;
  color: var(--mute);
}
.note {
  font-size: 12px;
  color: var(--amb);
  background: var(--ambb);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0 0;
  font-weight: 600;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding-top: 8px;
}
.lead {
  font-size: 16.5px;
  color: var(--mute);
  margin: 12px 0 0;
  max-width: 34em;
}
.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.feat b {
  display: block;
  margin-bottom: 4px;
}
.foot {
  text-align: center;
  color: var(--mute);
  font-size: 12px;
  padding: 10px 0 0;
}
.tag.due {
  background: var(--accentb);
  color: var(--accent2);
}
.tag.pick {
  background: var(--soft);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tag.pick svg {
  width: 12px;
  height: 12px;
}
.due-box {
  background: var(--accentb);
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
}
.guests {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 10px;
}
.gr {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.av.sm {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.pill.sm {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}
.wallet {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--soft);
  border-radius: 14px;
  padding: 12px 14px;
}
.wallet b {
  font-size: 16.5px;
}
.linkish {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkish svg {
  width: 15px;
  height: 15px;
}
.opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.opt {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 64px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.opt span {
  color: var(--mute);
  font-size: 13px;
}
.opt.on {
  border-color: var(--ink);
  background: var(--soft);
}
.bankbox {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bankbox[hidden] {
  display: none;
}
.bk {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.bk b {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.bk.ref {
  border-top: 1px dashed var(--line);
  margin-top: 6px;
  padding-top: 6px;
}
.bk.ref b {
  font-size: 16px;
}
.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.chk:last-of-type {
  border-bottom: 0;
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.pin {
  font-size: 26px;
  letter-spacing: 0.6em;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding-left: 0.6em;
}
.pin.shake {
  animation: shake 0.4s;
}
@keyframes shake {
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-4px);
  }
}
.err {
  color: light-dark(#b42318, #f87171);
  font-size: 13px;
  font-weight: 600;
  min-height: 1.3em;
  margin: 8px 0;
}
.who {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 50vh;
  overflow: auto;
}
.wbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 10px;
  min-height: 52px;
  font-weight: 600;
  text-align: left;
}
.wbtn:hover {
  border-color: var(--ink);
}
.wbtn[hidden] {
  display: none;
}
.wbtn span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whoami {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mute);
  font-size: 13px;
  flex-wrap: wrap;
}
.whoami svg {
  width: 15px;
  height: 15px;
}
.whoami .linkish {
  padding: 0;
}
.intro {
  padding: clamp(22.5px, 5.58vw, 52px) 0 8px;
}
.intro h1 {
  font-size: clamp(35.5px, 7.44vw, 59.5px);
}
.words span {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: wordin 0.7s var(--ease) forwards;
  animation-delay: calc(var(--i) * 90ms + 80ms);
}
@keyframes wordin {
  to {
    opacity: 1;
    transform: none;
  }
}
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.rv.shown {
  opacity: 1;
  transform: none;
}
.kicker {
  font-size: clamp(20.5px, 3.72vw, 28px);
  letter-spacing: -0.02em;
  margin: 22px 0 0;
}
.steps3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.step3 {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.step3 .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accentb);
  color: var(--accent2);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.step3 b {
  font-size: 16px;
}
.cta {
  text-align: center;
  padding: 32px 22px;
}
.top .pill.sm {
  min-height: 38px;
}
.orgbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -4px -4px 0;
  padding: 4px;
}
.orgbar::-webkit-scrollbar {
  display: none;
}
.ochip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 600;
  font-size: 13px;
  transition:
    border-color 0.15s,
    transform 0.15s var(--ease);
}
.ochip:hover {
  border-color: var(--ink);
}
.ochip:active {
  transform: scale(0.96);
}
.ochip svg {
  width: 16px;
  height: 16px;
}
.ochip b {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  padding: 0 6px;
}
.ochip.hot {
  border-color: var(--accent);
}
.ochip.hot b {
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    transform: scale(1.15);
  }
}
.dock {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 60;
  box-shadow: 0 10px 30px rgba(232, 48, 90, 0.35);
  transform: translateY(140%);
  transition: transform 0.35s var(--ease);
}
.dock.show {
  transform: none;
}
.dock[hidden] {
  display: none;
}
.sheet.closing {
  animation: fadeout 0.22s forwards;
}
.sheet.closing > .card {
  animation: down 0.22s var(--ease) forwards;
}
@keyframes fadeout {
  to {
    opacity: 0;
  }
}
@keyframes down {
  to {
    transform: translateY(40px);
    opacity: 0;
  }
}
.slide.from-r {
  animation: fromr 0.35s var(--ease);
}
.slide.from-l {
  animation: froml 0.35s var(--ease);
}
@keyframes fromr {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
}
@keyframes froml {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
}
.dots {
  display: flex;
  gap: 6px;
}
.dots i {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  transition:
    background 0.3s,
    width 0.3s;
}
.dots i.on {
  background: var(--accent);
  width: 34px;
}
.dots i.done {
  background: var(--ink);
}
.wzt {
  font-size: 22.5px;
  letter-spacing: -0.02em;
  margin: 4px 0 14px;
}
.gcard {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chk.gone {
  height: 0 !important;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-color: transparent !important;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    height 0.25s var(--ease) 0.08s,
    padding 0.25s var(--ease) 0.08s,
    margin 0.25s var(--ease) 0.08s;
}
.tabin {
  animation: tabin 0.35s var(--ease);
}
@keyframes tabin {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.wrap {
  gap: 16px;
}
#demo .acts {
  display: none;
}
#demo .bench:not(:has(.chip)) {
  display: none;
}
.pitch > .hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.94);
  color: #222;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  z-index: 3;
  width: max-content;
  max-width: 86%;
  text-align: center;
  line-height: 1.3;
  pointer-events: none;
  animation: popin 0.4s var(--ease);
}
.pitch > .hint[hidden] {
  display: none;
}
@keyframes popin {
  from {
    scale: 0.8;
    opacity: 0;
  }
}
.fbtn[hidden] {
  display: none;
}
.side,
.mainc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
@media (min-width: 1000px) {
  .wrap.wide,
  .top.wide {
    max-width: 1180px;
  }
  .herogrid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
    min-height: min(78vh, 720px);
    padding: 44px 0 32px;
  }
  .herogrid .intro {
    padding: 0;
  }
  .wrap.split .cols {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .side {
    position: sticky;
    top: 16px;
  }
  .side h1 {
    font-size: 31.5px;
  }
  .orgbar {
    flex-wrap: wrap;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .orgbar .ochip {
    flex: 1 1 calc(50% - 4px);
    justify-content: flex-start;
  }
}
/* board */
.score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 2px 0 14px;
}
.sctn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(15px, 2.232vw, 19.5px);
  letter-spacing: -0.01em;
}
.sctn.r {
  justify-content: flex-end;
  text-align: right;
}
.sctn i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.sc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: clamp(22.5px, 3.72vw, 30px);
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.sc span:nth-child(2) {
  color: var(--mute);
  font-weight: 500;
}
.fm {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: -6px 0 14px;
  flex-wrap: wrap;
  align-items: center;
}
.fbtn {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  background: var(--c);
  color: var(--k);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ro .fbtn {
  cursor: default;
}
.fbtn svg {
  width: 12px;
  height: 12px;
}
.fbtn.bump {
  animation: bump 0.4s var(--ease);
}
@keyframes bump {
  40% {
    transform: scale(1.12);
  }
}
.warn {
  font-size: 12px;
  color: var(--amb);
  background: var(--ambb);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
}
.pwrap {
  position: relative;
}
.pitch {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.ro .pitch {
  touch-action: auto;
}
.pitch.h {
  width: 100%;
  aspect-ratio: 111/74;
  background: repeating-linear-gradient(90deg, #7db457 0 8.333%, #75ac4f 8.333% 16.666%);
}
.pitch.v {
  width: min(100%, calc(70vh * 74 / 111));
  aspect-ratio: 74/111;
  margin: 0 auto;
  background: repeating-linear-gradient(180deg, #7db457 0 8.333%, #75ac4f 8.333% 16.666%);
}
.mk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.mk svg {
  display: block;
  width: 100%;
  height: 100%;
}
.half {
  position: absolute;
  background: var(--c);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.pitch.h .half.a {
  inset: 0 50% 0 0;
}
.pitch.h .half.b {
  inset: 0 0 0 50%;
}
.pitch.v .half.a {
  inset: 50% 0 0 0;
}
.pitch.v .half.b {
  inset: 0 0 50% 0;
}
.pitch[data-hover='0'] .half.a,
.pitch[data-hover='1'] .half.b {
  opacity: 0.16;
}
.kick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  border-radius: 50%;
  z-index: 1;
  padding: 0;
}
.tok {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, calc(var(--s) * -0.5));
  transition:
    left 0.55s var(--ease),
    top 0.55s var(--ease),
    scale 0.35s var(--ease),
    opacity 0.3s;
  touch-action: none;
  cursor: grab;
  z-index: 2;
  outline: none;
}
.ro .tok {
  cursor: default;
  touch-action: auto;
}
.tok.in,
.tok.out {
  scale: 0;
  opacity: 0;
}
.dot {
  position: relative;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--c);
  color: var(--k);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: calc(var(--s) * 0.4);
  box-shadow:
    0 0 0 2px #fff,
    0 3px 8px rgba(0, 0, 0, 0.22);
  transition: scale 0.2s var(--ease);
}
.tok:focus-visible .dot {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px #4f8ff7;
}
.nm {
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.96);
  color: #222;
  font-size: clamp(10.5px, calc(var(--s) * 0.33), 13px);
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.cap {
  position: absolute;
  top: -5px;
  right: -7px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffd23f;
  color: #4a3500;
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.tok.dragging {
  transition: none;
  z-index: 9;
  cursor: grabbing;
}
.tok.dragging .dot {
  scale: 1.15;
  box-shadow:
    0 0 0 3px #fff,
    0 12px 26px rgba(0, 0, 0, 0.35);
}
.tok.ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99;
  pointer-events: none;
  transition: none;
  transform: translate(-50%, -50%);
}
.tok.wig .dot {
  animation: wig 0.5s var(--ease);
}
@keyframes wig {
  30% {
    rotate: -14deg;
  }
  60% {
    rotate: 10deg;
  }
}
.bench {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  margin-top: 14px;
  padding: 8px;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.bench.over {
  border-color: var(--mute);
  background: var(--soft);
}
.bench .lb {
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  padding: 0 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.ro .chip {
  cursor: default;
  touch-action: auto;
}
.chip i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--mute);
  flex: none;
}
.x:hover {
  background: var(--soft);
  color: var(--ink);
}
.x svg {
  width: 16px;
  height: 16px;
}
.kit {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.kit input.name {
  font-weight: 700;
  min-height: 42px;
  margin-bottom: 10px;
}
.sw {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sw button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s var(--ease);
}
.sw button.on {
  box-shadow:
    0 0 0 2px var(--card),
    0 0 0 4px var(--ink);
}
.sw label {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  cursor: pointer;
  overflow: hidden;
}
.sw label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  min-height: 0;
  padding: 0;
}
.step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
}
.step button {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 0;
  background: var(--soft);
  font-size: 18.5px;
  font-weight: 600;
}
.step b {
  font-size: 18.5px;
  font-variant-numeric: tabular-nums;
}
.sheet {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overscroll-behavior: contain;
  display: grid;
  place-items: end center;
  z-index: 120;
  padding: 12px;
  animation: fade 0.2s;
}
.sheet[hidden] {
  display: none;
}
.sheet > .card,
.sheet > form.card {
  width: min(100%, 440px);
  animation: up 0.35s var(--ease);
  max-height: 92vh;
  overflow: auto;
  margin-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 640px) {
  .sheet {
    place-items: center;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
.seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: var(--soft);
  padding: 4px;
  border-radius: 12px;
}
.seg button {
  border: 0;
  border-radius: 9px;
  min-height: 40px;
  background: transparent;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.fmt {
  margin-bottom: 4px;
}
.seg button i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}
.seg button.on {
  background: light-dark(#fff, #3a3a40);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.fopts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fopts button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  min-height: 42px;
  padding: 0 16px;
  font-weight: 700;
}
.fopts button.on {
  background: var(--ink);
  color: var(--card);
  border-color: var(--ink);
}
.sw2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0;
}
.tg {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: var(--line);
  position: relative;
  padding: 0;
  transition: background 0.2s;
  flex: none;
}
.tg::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease);
}
.tg.on {
  background: var(--accent);
}
.tg.on::after {
  transform: translateX(20px);
}
.rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.rows + .rows {
  margin-top: 12px;
}
.rows button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-top: 1px solid var(--line);
}
.rows button:first-child {
  border-top: 0;
}
.rows button:hover {
  background: color-mix(in srgb, currentColor 4%, transparent);
}
.rows button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.rows button svg {
  opacity: 0.35;
  width: 18px;
  height: 18px;
}
.rows.bad button {
  color: light-dark(#b42318, #f87171);
  font-weight: 500;
}
.alist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alist .pill {
  justify-content: flex-start;
  width: 100%;
}
.alist .danger {
  color: light-dark(#b42318, #f87171);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  translate: -50% 0;
  background: #222;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 130;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: toast 2.8s var(--ease) forwards;
  max-width: calc(100vw - 32px);
  text-align: center;
}
@keyframes toast {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  10%,
  85% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}
.goal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 8;
}
.goal span {
  font-weight: 800;
  font-size: clamp(33.5px, 7.44vw, 70.5px);
  letter-spacing: -0.02em;
  color: var(--k);
  background: var(--c);
  padding: 0.08em 0.5em;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  animation: gl 1.8s var(--ease) forwards;
}
@keyframes gl {
  0% {
    scale: 0.3;
    opacity: 0;
  }
  14% {
    scale: 1.1;
    opacity: 1;
  }
  24% {
    scale: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    scale: 0.96;
  }
}
.ball {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 40%, #ddd 70%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  translate: -50% -50%;
  z-index: 7;
  pointer-events: none;
}
.cf {
  position: fixed;
  top: -14px;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  z-index: 125;
  pointer-events: none;
  animation: fall var(--t) cubic-bezier(0.25, 0.6, 0.4, 1) forwards;
}
@keyframes fall {
  to {
    transform: translate(var(--dx), 108vh) rotate(var(--r));
  }
}
.tick {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 12, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  z-index: 6;
  padding: 7px 0;
}
.tick b {
  background: #e10600;
  padding: 3px 8px;
  border-radius: 4px;
  margin: 0 10px 0 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.tick span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 22s linear infinite;
}
@keyframes scroll {
  to {
    transform: translateX(-100%);
  }
}
.pimg {
  width: 100%;
  border-radius: 12px;
  display: block;
  margin: 4px 0 10px;
}
.spin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  animation: sp 1s linear infinite;
  margin: 60px auto;
}
@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}
.cta-row {
  margin: 22px 0 32px;
}
@media (min-width: 1000px) {
  .cta-row {
    margin-bottom: 0;
  }
}
.sportbar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -2px 0 12px;
  padding: 2px;
}
.sportbar::-webkit-scrollbar {
  display: none;
}
.sportbar button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 18.5px;
  display: grid;
  place-items: center;
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.sportbar button.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  transform: scale(1.06);
}
.globe {
  margin: 28px 0 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.globe b {
  font-size: 16.5px;
}
.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 22.5px;
}
.flags span {
  animation: bob 3s ease-in-out infinite;
  animation-delay: calc(var(--k, 0) * 0.1s);
}
@keyframes bob {
  50% {
    transform: translateY(-3px);
  }
}
.sports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sports button {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  min-height: 56px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  transition:
    border-color 0.15s,
    transform 0.1s;
}
.sports button span {
  font-size: 22.5px;
}
.sports button:active {
  transform: scale(0.97);
}
.sports button.on {
  border-color: var(--ink);
  background: var(--soft);
}
.seg.scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg.scroll::-webkit-scrollbar {
  display: none;
}
.seg.scroll button {
  flex: 1 0 auto;
  min-width: 44px;
  padding: 0 12px;
  white-space: nowrap;
}
.mchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.mchip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}
.mchip.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.mchip.more {
  border-style: dashed;
  color: var(--mute);
}
.mform {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  animation: pop 0.25s ease;
}
.mtitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.money {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}
.money span {
  flex: 0 0 auto;
  padding: 0 0 0 12px;
  color: var(--mute);
  font-weight: 600;
  white-space: nowrap;
}
.money input {
  border: 0 !important;
  box-shadow: none !important;
  min-width: 0;
}
.paybox {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.paybox[hidden] {
  display: none;
}
.paybox .seg {
  margin-bottom: 10px;
}
.mhead {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 0 6px;
}
.bk[hidden] {
  display: none;
}
.venue {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}
.venue span:nth-child(2) {
  flex: 1;
  font-weight: 600;
}
.mapcard {
  position: relative;
  display: block;
  width: 100%;
  height: 150px;
  margin: 14px 0 2px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--soft);
  text-align: left;
  cursor: pointer;
}
.mapcard img,
.mapcard iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
}
.mapcap {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.mapcap .i {
  grid-row: span 2;
  color: var(--accent);
}
.mapcap b {
  font-size: 13px;
}
.mapcap span {
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mapcard:hover .mapcap {
  transform: translateY(-2px);
}
.mapcap {
  transition: transform 0.2s;
}
.bigmap {
  height: min(52vh, 420px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}
.bigmap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.wide-sheet {
  max-width: 640px;
}
.mbpin {
  font-size: 20.5px;
  margin-bottom: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: #fff;
  color: #222;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  animation: drop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes drop {
  from {
    transform: rotate(-45deg) translate(0, -40px);
    opacity: 0;
  }
}
.vsearch {
  position: relative;
}
.vres {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}
.vres[hidden] {
  display: none;
}
.vres button {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 10px 12px;
  text-align: left;
}
.vres button span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.vres button .muted {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vres .i,
.venue .i,
.vprev .i,
.mapcap .i {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.vres .vnone {
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
}
.vprev {
  position: relative;
  margin-top: 8px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.vprev img,
.vprev iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
}
.vprev .vcap {
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: 44px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vprev .x {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--card);
}
.picker {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.pmap {
  height: 240px;
  background: var(--soft);
  position: relative;
}
.pbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
}
.pbar .pcap {
  flex: 1;
  min-width: 0;
  color: var(--mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pbar .pill {
  flex: 0 0 auto;
}
.pbar .i {
  width: 16px;
  height: 16px;
}
.mapmsg {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  padding: 16px;
  text-align: center;
}
#gPinBtn .i {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 4px;
}
button.venue {
  width: 100%;
  background: var(--card);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.mbpin span {
  transform: rotate(45deg);
  display: block;
}
.clash {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--soft);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--mute);
}
.clash > i {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ambb);
  color: var(--amb);
}
.clash.hard > i {
  background: var(--accentb);
  color: var(--accent2);
}
.clash > i svg {
  width: 15px;
  height: 15px;
}
.clash p {
  margin: 0;
}
.clash p + p {
  margin-top: 6px;
}
.clash b {
  color: var(--ink);
  font-weight: 650;
}
.clash a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.clash.flash,
.notes.flash {
  animation: clashFlash 1.6s var(--ease);
}
@keyframes clashFlash {
  0%,
  35% {
    background: var(--ambb);
  }
  100% {
    background: var(--soft);
  }
}
.fx.warn {
  position: relative;
}
.fx.warn::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: light-dark(#f0b44c, #d9a441);
}
@media (prefers-reduced-motion: reduce) {
  .clash.flash {
    animation: none;
  }
}
.note-soft {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--soft);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--mute);
}
.note-soft > i {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--line);
  color: var(--ink);
}
.note-soft > i svg {
  width: 15px;
  height: 15px;
}
.note-soft.amb > i {
  background: var(--ambb);
  color: var(--amb);
}
.note-soft b {
  color: var(--ink);
  font-weight: 650;
}
.rules {
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
}
.sharebox {
  white-space: pre-wrap;
  font: 14px/1.5 var(--f);
  background: var(--soft);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
  word-break: break-word;
}
details.more {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 4px 0 14px;
}
details.more summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  padding: 4px 0;
}
details.more summary::-webkit-details-marker {
  display: none;
}
details.more summary::after {
  content: '+';
  float: right;
  color: var(--mute);
  font-weight: 400;
}
details.more[open] summary::after {
  content: '−';
}
details.more[open] summary {
  margin-bottom: 12px;
}
.fx.off {
  opacity: 0.55;
}
.fx.off .fxvs {
  text-decoration: none;
}
.small-links {
  margin-top: 20px;
  align-items: center;
  gap: 12px;
}
.small-links .linkish {
  font-size: 14px;
}
.potm {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--soft);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.potm .trophy {
  font-size: 24px;
  line-height: 1;
}
.potm b {
  display: block;
  font-size: 15px;
}
.potm span {
  color: var(--mute);
  font-size: 14px;
}
.potm a {
  color: var(--ink);
  font-weight: 600;
}
.vlist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vlist .pr.on {
  background: var(--soft);
  border-radius: 14px;
}
.seg.sm button {
  padding: 6px 10px;
  font-size: 13px;
}
.season {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}
.season div {
  background: var(--soft);
  border-radius: 16px;
  padding: 16px 8px;
}
.season b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.season span {
  color: var(--mute);
  font-size: 13px;
}
.whoami {
  flex-wrap: wrap;
}
.whoami .linkish + .linkish {
  margin-left: 10px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
  padding: 18px 0 8px;
}
.langp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 8px;
  font-size: 12px;
  color: var(--mute);
}
.foot .langp {
  margin-left: 10px;
}
.langp select {
  width: auto;
  field-sizing: content;
  max-width: 9.5em;
  min-width: 0;
  height: auto;
  padding: 2px 22px 2px 6px;
  font-size: 12px;
  border: 0;
  background-color: transparent;
  color: var(--mute);
  text-decoration: underline;
  box-shadow: none;
}
.langp select {
  min-height: 0;
  background-position:
    calc(100% - 12px) 55%,
    calc(100% - 7px) 55%;
  background-size: 5px 5px;
  text-underline-offset: 3px;
}
.acct-langp .langp,
#sheetBody .langp {
  margin: 14px 0 0;
  justify-content: center;
  display: flex;
}
#sheetBody .langp::before {
  content: none;
}
[dir='rtl'] .meta span + span::before {
  margin: 0 0 0 6px;
}
/* footer sits at the bottom of the screen on short pages */
.wrap {
  min-height: calc(100dvh - 72px);
}
.wrap > .foot {
  margin-top: auto;
}
.cols {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.state span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.state span b {
  font-weight: 700;
}
.state small {
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  line-height: 1.4;
}
.state small a {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.hint {
  margin: -4px 0 0;
  color: var(--mute);
  font-size: 14px;
}
.notes {
  background: var(--soft);
  border-radius: 16px;
  padding: 4px 14px;
  margin: 0;
}
.nt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--mute);
}
.nt + .nt {
  border-top: 1px solid var(--line);
}
.nt > i {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--mute);
  font-style: normal;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
}
.nt > i svg {
  width: 16px;
  height: 16px;
}
.nt.red > i {
  color: var(--accent2);
}
.nt.amb > i {
  color: var(--amb);
}
.nt b {
  color: var(--ink);
  font-weight: 650;
}
.nt a {
  color: var(--ink);
  font-weight: 600;
}
.row.acts {
  gap: 8px;
}
.pill.icon {
  width: 44px;
  padding: 0;
  justify-content: center;
  flex: none;
}
.pill.icon svg {
  margin: 0;
}
/* in lists, payment state is a quiet word with a small dot, not a coloured pill */
.pr .tag.due,
.pr .tag.claim,
.pr .tag.paid,
.pr .tag.none {
  background: none;
  padding: 3px 0;
  font-weight: 600;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pr .tag.due::before,
.pr .tag.claim::before,
.pr .tag.paid::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.pr .tag.due::before {
  background: var(--accent);
}
.pr .tag.claim::before {
  background: #e8a317;
}
.pr .tag.paid::before {
  background: var(--ok);
}
/* ---- bottom bar (left rail on wide screens) and views ---- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar button {
  flex: 1;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--mute);
  font: 600 11px/1.1 var(--f);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}
.tabbar button svg {
  width: 22px;
  height: 22px;
}
.tabbar button.on {
  color: var(--accent);
}
.tabbar button b {
  position: absolute;
  top: 2px;
  left: calc(50% + 6px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}
.wrap.withbar {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
.dock {
  bottom: calc(84px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) {
  .tabbar {
    top: 96px;
    bottom: auto;
    left: max(12px, calc(50vw - 690px));
    right: auto;
    flex-direction: column;
    justify-content: flex-start;
    width: 92px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
  }
  .tabbar button {
    max-width: none;
    padding: 10px 4px;
    font-size: 12px;
  }
  .tabbar button.on {
    background: var(--soft);
  }
  .wrap.withbar {
    padding-left: 110px;
    padding-bottom: 40px;
  }
}
.view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.view[hidden],
#sqMembers[hidden],
#tTeams[hidden] {
  display: none !important;
}
.vhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 0;
}
.vhead h2,
.vt {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0;
}
.vt {
  margin: 0 0 14px;
}
.tabs.seg {
  margin: 0;
}
.empty {
  text-align: center;
  padding: 28px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty h2 {
  margin: 0;
}
.empty p {
  margin: 0;
}
.av.big {
  width: 56px;
  height: 56px;
  background: var(--soft);
  color: var(--mute);
}
.av.big svg {
  width: 26px;
  height: 26px;
}
/* games list */
.glist2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gitem2 {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.gitem2.on {
  border-color: var(--ink);
}
.gdate {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 46px;
  flex: none;
  line-height: 1.05;
}
.gdate b {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.gdate span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gdate small {
  font-size: 11px;
  color: var(--mute);
}
.ginfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ginfo b {
  font-size: 15px;
}
.ginfo .muted {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gst {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.cdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8a317;
}
/* header: group name with a small sport line */
.bname {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}
.bname b {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}
.bname small {
  font-size: 12px;
  color: var(--mute);
  font-weight: 500;
}
.vrow {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.vthumb {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  background: var(--soft);
  display: grid;
  place-items: center;
  position: relative;
}
.vthumb img,
.vthumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.vthumb > svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.vthumb .tpin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -75%) scale(0.6);
}
.vtext {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vtext b {
  font-size: 16px;
  line-height: 1.25;
}
.vtext span {
  font-size: 13px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vtext em {
  font-style: normal;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
  margin-top: 2px;
}
.vrow .pen {
  position: static;
  flex: none;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 3px 9px;
  border-radius: 999px;
}
.sbadge svg {
  width: 13px;
  height: 13px;
}
.sbadge.in {
  background: var(--okb);
  color: var(--ok);
}
.sbadge.wt {
  background: var(--ambb);
  color: var(--amb);
}
.sbadge.off {
  background: var(--accentb);
  color: var(--accent2);
}
.ssub {
  margin: -4px 0 0;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.45;
}
.ssub a {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.row.acts {
  flex-wrap: wrap;
}
.row.acts .pill {
  white-space: nowrap;
  flex: 1 1 auto;
  justify-content: center;
}
.row.acts .grow {
  flex: 1;
  justify-content: center;
}
.acct.big {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 18px;
}
.acct.big .av {
  width: 56px;
  height: 56px;
  font-size: 18px;
}
.acct.big b {
  font-size: 19px;
}
.slist {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 14px;
}
.srow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 58px;
}
.srow + .srow {
  border-top: 1px solid var(--line);
}
.srow.static {
  cursor: default;
}
.sic {
  width: 22px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--mute);
}
.sic svg {
  width: 20px;
  height: 20px;
}
.stx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.stx b {
  font-size: 15px;
}
.stx span {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.35;
}
.stx a {
  color: var(--ink);
  font-weight: 600;
}
.srow > svg {
  width: 18px;
  height: 18px;
  color: var(--mute);
  flex: none;
}
.srow .langp {
  margin: 0;
}
.srow .langp > span {
  display: none;
}
.quiet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 18px 2px 18px;
}
.quiet .linkish {
  font-size: 14px;
  padding: 0;
}
.gcl {
  font-size: 12px;
  color: var(--amb);
  font-weight: 600;
}
#v-games,
#v-pay,
#v-me {
  width: 100%;
  max-width: 720px;
}
#v-squad {
  width: 100%;
}
/* teams at a glance; the pitch opens full screen on phones, sits inline on wide screens */
.tsh h2 {
  margin: 0 0 2px;
}
.tsh p {
  margin: 0;
  font-size: 14px;
}
.tbtns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tbtns .pill {
  justify-content: center;
  white-space: nowrap;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}
.tbtns #tSave,
.tbtns .pill:only-child {
  grid-column: 1/-1;
}
.tsides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 10px;
}
.tsides.one {
  grid-template-columns: 1fr;
}
.tside {
  border-radius: 16px;
  padding: 12px;
  background: color-mix(in srgb, var(--tc) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc) 22%, transparent);
  min-width: 0;
}
.thead {
  display: flex;
  align-items: center;
  gap: 8px;
}
.thead i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tc);
  flex: none;
}
.thead b {
  flex: 1;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thead span {
  font-weight: 800;
  font-size: 18px;
}
.tnames {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  font-size: 14px;
}
.tnames span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tnone {
  margin: 8px 0 0;
  font-size: 13px;
}
.tleft {
  font-size: 13px;
  margin: 0 0 12px;
}
.pitchwrap {
  display: none;
}
.pwhead {
  display: none;
}
.pitchwrap.open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  overflow: auto;
  padding: max(12px, env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom));
}
.pitchwrap.open .pwhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}
.pitchwrap.open .pwhead b {
  font-size: 20px;
}
html.pitch-open {
  overflow: hidden;
}
html.pitch-open .tabbar,
html.pitch-open #dock {
  display: none;
}
@media (min-width: 900px) {
  .pitchwrap,
  .pitchwrap.open {
    display: block;
    position: static;
    padding: 0;
    overflow: visible;
    margin-top: 16px;
    background: none;
  }
  .pitchwrap .pwhead,
  .pitchwrap.open .pwhead {
    display: none;
  }
  #tOpen,
  #tRand,
  #tSave {
    display: none;
  }
  html.pitch-open {
    overflow: auto;
  }
  html.pitch-open .tabbar {
    display: flex;
  }
}
.mbpin.fin {
  width: 34px;
  height: 34px;
  font-size: 16px;
  margin-bottom: 4px;
}
.vlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 6px 0 0;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.vlink .i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.tpin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 1;
}
.tpin span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 16.5px;
  font-style: normal;
  background: #fff;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.tpin b {
  transform: rotate(45deg);
  font-weight: 400;
}
.mapcard .tpin {
  top: 42%;
}
@keyframes flash {
  30% {
    background: var(--accentb);
    border-color: var(--accent);
  }
}
input.flash {
  animation: flash 0.7s ease;
}
.fixtures {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 4px;
  margin-bottom: 12px;
  scroll-snap-type: x proximity;
}
.fixtures[hidden] {
  display: none;
}
.fixtures::-webkit-scrollbar {
  display: none;
}
.fx {
  flex: 0 0 auto;
  scroll-snap-align: center;
  min-width: 74px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font: inherit;
  font-size: 12px;
  color: var(--mute);
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.fx b {
  font-size: 12px;
  color: var(--mute);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fx .fxd {
  font-size: 22.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}
.fx.on {
  background: var(--soft);
}
.fx.on b {
  color: var(--accent);
}
.fx.on .fxd {
  color: var(--accent);
}
.fx:active {
  transform: scale(0.96);
}
.fx.add {
  align-self: stretch;
  margin: 0;
  justify-content: center;
  gap: 4px;
  border-style: dashed;
  color: var(--ink);
  font-weight: 600;
}
.fx.add .i {
  width: 20px;
  height: 20px;
}
.gcard {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  margin-bottom: 8px;
}
.gcard .grow {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.gcard.on {
  border-color: var(--ink);
}
.gacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pitch.solo .half.a {
  inset: 0 !important;
}
.pitch.solo .half.b {
  display: none;
}
.seg.two {
  grid-template-columns: 1fr 1fr;
}
.vsline {
  margin: 4px 0 0;
  font-size: 16.5px;
  color: var(--mute);
}
.vsline b {
  color: var(--ink);
}
.fxvs {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topr {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gear {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.3s;
}
.gear .i {
  width: 18px;
  height: 18px;
}
.gear:hover {
  transform: rotate(45deg);
}
html:has(.sheet:not([hidden])),
html:has(.sheet:not([hidden])) body {
  overflow: hidden;
}
.pill.danger {
  color: #d93025;
}
.pill.danger.big {
  background: #d93025;
  border-color: #d93025;
  color: #fff;
}
.pen {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  flex: 0 0 auto;
  cursor: pointer;
}
.pen .i {
  width: 16px;
  height: 16px;
}
.pen:hover {
  background: var(--line);
}
.venue .pen {
  margin-left: 4px;
}
.tseg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--soft);
  padding: 5px;
  border-radius: 16px;
}
.tt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  min-width: 0;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.tt .tl {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
}
.tt input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  padding: 0 !important;
  min-height: 28px;
  height: auto;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
}
.tt:focus-within {
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.vh {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.vh span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vh .pen {
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.allow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ambb);
  color: var(--amb);
  cursor: pointer;
  flex: 0 0 auto;
}
.allow .i {
  width: 13px;
  height: 13px;
}
.allow:hover {
  filter: brightness(0.96);
}
.allow.busy {
  opacity: 0.5;
  pointer-events: none;
}
.tag .i {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  margin-right: 2px;
}
.ordiv {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--mute);
  font-size: 13px;
}
.ordiv::before,
.ordiv::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.acct {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 16px;
}
.me-btn {
  padding: 0;
  overflow: hidden;
}
.me-btn .mini {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 800;
}
input.uname {
  text-transform: lowercase;
}
.pin.sm {
  letter-spacing: 0.3em;
  text-align: center;
}
.pin.sm::placeholder {
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 500;
}
/* venue caption on the map: one line for the name, one for the address, frosted over the map */
.mapcard .mapcap {
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--card) 58%, transparent) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--card) 45%, transparent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.mapcap > .i {
  flex: 0 0 18px;
}
.mapcap .mtext {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mapcap .mtext b,
.mapcap .mtext span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mapcap .mtext b {
  font-size: 14px;
  color: var(--ink);
}
.mapcap .mtext span {
  font-size: 12px;
  color: var(--ink);
  opacity: 0.72;
}
.mapcap .pen {
  flex: 0 0 34px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
}
.vprev .vcap {
  background: color-mix(in srgb, var(--card) 58%, transparent) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
}
.meta span + span::before {
  content: '·';
  margin-right: 6px;
  color: var(--mute);
  opacity: 0.7;
}
.meta {
  column-gap: 5px !important;
  font-size: 13px;
  flex-wrap: nowrap !important;
}
.meta > span {
  white-space: nowrap;
}
.meta > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta .tzn {
  font-weight: 600;
  letter-spacing: 0.02em;
}
#hero {
  position: relative;
}
.hpen {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  width: 38px;
  height: 38px;
}
#hero:has(.hpen) h1,
#hero:has(.hpen) .eyebrow {
  padding-right: 46px;
}
.gstep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
  flex-wrap: wrap;
}
.gstep[hidden] {
  display: none;
}
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.stepper button {
  width: 40px;
  height: 38px;
  border: 0;
  background: var(--card);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.stepper button:disabled {
  opacity: 0.3;
}
.stepper b {
  min-width: 30px;
  text-align: center;
  font-size: 16px;
}
#jSum {
  font-size: 13px;
}
.danger-link {
  color: #d93025 !important;
}
.routebtn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}
.routebtn .i {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: 0 0 18px;
}
.routebtn > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.routebtn .muted {
  font-size: 12px;
}
.tabs[hidden] {
  display: none;
}
.wpt {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  border: 2px solid #e8305a;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.wpt.s {
  background: #222;
  color: #fff;
  border-color: #222;
}
#rRouteMap .pmap {
  height: 300px;
}
.rfields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.rfields .vsearch input {
  padding-left: 40px;
}
.rdot {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  z-index: 1;
  pointer-events: none;
}
.rdot.s {
  background: #222;
  color: #fff;
}
.rdot.f {
  background: #fff;
  color: #222;
  border: 2px solid #e8305a;
}
.wpt.f {
  background: #e8305a;
  color: #fff;
  border-color: #e8305a;
}
.rinfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 12px 0 0;
}
#rPlan[hidden],
#rRoamTxt[hidden] {
  display: none;
}
.bsw {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  min-width: 0;
}
.bsw span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bsw .chev {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--mute);
}
.glist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}
.gitem.on {
  background: var(--soft);
}
.gitem .gemo {
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  flex: 0 0 36px;
}
.gitem .gtx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.gitem .gtx b,
.gitem .gtx span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gitem .gtx .muted {
  font-size: 13px;
}
.gitem > .i {
  width: 18px;
  height: 18px;
  color: var(--mute);
}
#tPlayers[hidden] {
  display: none !important;
}
.hl {
  max-width: 620px;
}
.hlh {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
}
.hll {
  margin: 18px 0 8px;
}
.hlnew {
  width: 100%;
  margin-top: 14px;
}
.hlhint {
  font-size: 13px;
  margin: 10px 2px 0;
}
.hl .quiet {
  margin-top: 26px;
  font-size: 14px;
}
.hl .gitem .tag {
  margin-left: auto;
}
.hl .gitem .tag + svg,
.hl .gitem svg:last-child {
  flex: none;
  opacity: 0.45;
}
.hl .gtx {
  flex: 1;
  min-width: 0;
}
.skel {
  height: 64px;
  border-radius: 14px;
  background: var(--soft, #f3f3f3);
  margin: 10px 0;
  animation: pulse 1.2s ease-in-out infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.5;
  }
}
details.rec {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
details.rec summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.mine {
  margin-bottom: 18px;
}
.mine[hidden] {
  display: none;
}
.code {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 18px;
  border-radius: 16px;
  background: var(--soft);
}
.top .pill {
  white-space: nowrap;
}
@media (max-width: 370px) {
  .top [data-start] {
    display: none;
  }
}
/* nothing may push the page or a panel sideways */
html {
  overflow-x: hidden;
}
.sheet > .card,
.sheet > form.card {
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.sheet .card * {
  max-width: 100%;
}
.sheet .card .row > *,
.sheet .card .acts > * {
  min-width: 0;
}
.pill {
  max-width: 100%;
  white-space: normal;
}
input[type='time'],
input[type='date'] {
  min-width: 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.tt input {
  font-size: 16px !important;
}

/* ---- soft surfaces: no outlines; depth from tint and shadow, colour for meaning ---- */
:root {
  --bg: light-dark(#f5f5f7, #0e0e10);
  --card: light-dark(#ffffff, #1b1b1e);
  --soft: light-dark(#f2f2f4, #26262a);
  --line: light-dark(#efeff1, #26262a);
  --sh1: 0 1px 2px rgba(20, 20, 40, 0.04);
  --sh2: 0 1px 2px rgba(20, 20, 40, 0.04), 0 8px 24px rgba(20, 20, 40, 0.06);
  --sh3: 0 12px 40px rgba(0, 0, 0, 0.18);
}
body {
  background: var(--bg);
}
.card {
  border-color: transparent;
  box-shadow: var(--sh2);
}
.sheet > .card,
.sheet > form.card {
  box-shadow: var(--sh3);
}
input,
textarea,
select {
  border-color: transparent;
  background-color: var(--soft);
}
input:focus,
textarea:focus,
select:focus {
  border-color: transparent;
  background-color: var(--card);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent);
}
.sheet input,
.sheet textarea,
.sheet select {
  background-color: var(--soft);
}
.pill {
  border-color: transparent;
  background: var(--soft);
}
.pill:hover {
  background: color-mix(in srgb, var(--ink) 8%, var(--soft));
}
.pill.brand {
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent);
}
.pill.brand:hover {
  background: var(--accent2);
}
.pill.dark:hover {
  background: var(--ink);
}
.feat,
.guests,
.bankbox,
.wbtn,
.step3,
.ochip,
.gcard,
.chip,
.step,
.fopts button,
.sportbar button,
.globe,
.mchip,
.mform,
.money,
.paybox,
.venue,
.vres,
.vprev,
.picker,
.gitem2,
.slist,
.fx,
.gear,
.stepper,
.routebtn,
.gitem,
details.rec,
.rows,
.opt,
.mapcard,
.bigmap {
  border-color: transparent;
}
.gitem,
.gitem2,
.gcard,
.feat,
.guests,
.bankbox,
.money,
.paybox,
.mform,
.picker,
.fx,
.step,
.step3,
.ochip,
.vprev,
details.rec,
.rows,
.opt,
.chip,
.mchip,
.fopts button,
.stepper,
.routebtn,
.wbtn,
.venue {
  background: var(--soft);
}
.slist {
  background: var(--soft);
}
.gear {
  background: var(--card);
  box-shadow:
    var(--sh1),
    0 1px 6px rgba(0, 0, 0, 0.06);
}
.mapcard {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}
.mapcard .mapcap {
  border-color: transparent !important;
}
/* selected = brand colour, not a dark outline */
.opt.on {
  background: var(--accentb);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.fopts button.on {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.sportbar {
  padding: 6px;
  margin: -6px -6px 6px;
}
/* fade only the side that still has more to scroll */
.sportbar.mr {
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.sportbar.ml {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%);
  mask-image: linear-gradient(90deg, transparent, #000 12%);
}
.sportbar.ml.mr {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.sportbar button {
  background: var(--soft);
}
.sportbar button.on {
  border-color: transparent;
  transform: none;
  background: var(--accentb);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.gitem2.on,
.gitem.on {
  background: var(--accentb);
  border-color: transparent;
}
.tg {
  background: light-dark(#d9d9de, #3a3a40);
}
.mapcap .mtext em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 1px;
}
.mapcard .mapcap {
  background: color-mix(in srgb, var(--card) 72%, transparent) !important;
}
/* the bottom bar floats on a blur rather than sitting under a line */
.tabbar {
  border-top-color: transparent !important;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}
@media (min-width: 900px) {
  .tabbar {
    border-color: transparent !important;
    box-shadow: var(--sh2);
  }
}
/* team sides: tint only */
.tside {
  border-color: transparent;
}
.tname {
  all: unset;
  cursor: pointer;
  flex: 1;
  font-weight: 800;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tname:focus-visible {
  outline: 2px solid var(--accent);
  border-radius: 6px;
}
.tn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  font-size: 14px;
  transition: background 0.15s;
}
.tn span {
  opacity: 0;
  color: var(--mute);
  font-weight: 700;
  transition: opacity 0.15s;
}
.tn:hover,
.tn:focus-visible {
  background: color-mix(in srgb, var(--tc, var(--ink)) 12%, transparent);
}
.tn:hover span,
.tn:focus-visible span {
  opacity: 1;
}
@media (hover: none) {
  .tn span {
    opacity: 0.45;
  }
}
.tnames {
  gap: 0;
}
.tleft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 13px;
}
.tleft .tn.sm {
  margin: 0;
  background: var(--soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.tleft .tn.sm span {
  opacity: 0.6;
}
.tsh2 {
  font-size: 13px;
  margin: 0 0 12px;
}
.vres {
  border-color: transparent;
  box-shadow: var(--sh3);
}
.bench {
  border: 0;
  background: var(--soft);
}
.sports button {
  border-color: transparent;
  background: var(--soft);
}
.sports button.on {
  background: var(--accentb);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  border-color: transparent;
}
.mchip.on {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.mchip.more {
  border-style: solid;
  border-color: transparent;
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mute) 35%, transparent);
}
/* signed-in home */
.hl,
.top.hlt {
  max-width: 560px;
}
.top.hlt {
  padding-top: calc(28px + env(safe-area-inset-top));
}
.hlhead {
  margin: 6px 2px 18px;
}
.hl .hlh {
  font-size: 30px;
  margin: 0;
  letter-spacing: -0.02em;
}
.hlnext {
  margin: 4px 0 0;
  color: var(--mute);
  font-size: 15px;
}
.hlnext b {
  color: var(--ink);
  font-weight: 650;
}
.hlclash {
  background: var(--ambb);
  border-radius: 16px;
  margin: 0 0 20px;
  color: var(--ink);
}
.hlclash summary {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
}
.hlclash summary::-webkit-details-marker {
  display: none;
}
.hlclash summary > i {
  color: var(--amb);
  flex: none;
  margin-top: 1px;
}
.hlclash summary > i svg {
  width: 18px;
  height: 18px;
}
.hlclash summary > span {
  flex: 1;
}
.hlclash summary b {
  font-weight: 700;
}
.hlclash summary > em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--amb);
  flex: none;
  margin-top: 2px;
}
.hlclash[open] summary > em {
  opacity: 0.6;
}
.hlpairs {
  padding: 0 14px 12px 42px;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.45;
}
.hlpairs p {
  margin: 6px 0 0;
}
.hlpairs a {
  color: var(--ink);
}
.hlsec {
  margin: 0 4px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.hlist {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--sh2);
  overflow: hidden;
  margin-bottom: 22px;
}
.hrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: background 0.15s;
}
.hrow + .hrow::before {
  content: '';
  position: absolute;
  left: 68px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}
.hrow:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.hrow:active {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.hemo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 21px;
  flex: none;
}
.htx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.htx b {
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.htx > span {
  font-size: 13.5px;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amb);
  display: inline-block;
}
.hdot[hidden] {
  display: none;
}
.hrow > svg {
  width: 18px;
  height: 18px;
  opacity: 0.3;
  flex: none;
}
.hlnew {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  font-weight: 650;
  font-size: 15px;
  color: var(--accent);
  background: var(--accentb);
}
.hlnew svg {
  width: 18px;
  height: 18px;
}
.hlnew:hover {
  filter: brightness(0.98);
}
.hlfoot {
  margin: 18px 4px 0;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.6;
  text-align: center;
}
.hlfoot a {
  color: var(--mute);
}
.hlempty {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--sh2);
  padding: 18px;
  margin-bottom: 16px;
}
.hlempty p {
  margin: 0;
}
.hlempty p + p {
  margin-top: 4px;
}
.ochip.hot {
  border-color: transparent;
  background: var(--accentb);
}

/* tee groups, courts, lanes and grids */
.splitopts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 13px;
}
.seg.mini {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
}
.seg.mini button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.tees {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0 10px;
}
.tee {
  background: var(--soft);
  border-radius: 16px;
  padding: 12px 12px 8px;
  --tc: var(--accent);
}
.teeh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.teeh b {
  font-size: 14px;
}
.teeh span {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.tee .tn {
  margin: 0 -6px;
  padding: 6px;
}
.tnr {
  display: block;
  padding: 5px 0;
  font-size: 14px;
}
.tnr.me {
  font-weight: 700;
  color: var(--accent);
}
.tee .vs {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--mute);
  text-transform: uppercase;
  margin: 2px 0;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 14px 0 10px;
  padding: 14px;
  border-radius: 16px;
  background: repeating-linear-gradient(180deg, light-dark(#2b2b30, #202024) 0 28px, light-dark(#2f2f35, #242428) 28px 56px);
}
.gslot {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: light-dark(rgba(255, 255, 255, 0.95), #2e2e33);
  color: light-dark(#222, #f2f2f2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border-left: 4px solid #fff;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.gslot:nth-child(even) {
  transform: translateY(22px);
}
.gslot .gp {
  font-weight: 800;
  font-size: 12px;
  color: var(--mute);
  min-width: 24px;
}
.gslot b {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gslot.pick {
  box-shadow:
    0 0 0 2px var(--accent),
    0 4px 14px rgba(0, 0, 0, 0.3);
}
.gslot.me {
  border-left-color: var(--accent);
}
.gslot[disabled] {
  cursor: default;
}
.grid2:has(.gslot:nth-child(even):last-child) {
  padding-bottom: 36px;
}
.mapcard .tpin {
  z-index: 1;
}
.mapcard .mapcap {
  z-index: 2;
}
.grid2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.gslot {
  min-width: 0;
}
.tee .vs {
  text-align: center;
  margin: 4px 0;
}
.tees:has(.tee.pairs) {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
/* add to home screen */
.inst {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  margin: 0 0 14px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--sh2);
  animation: instin 0.35s var(--ease);
}
.inst img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
}
.inst > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.inst b {
  font-size: 14px;
}
.inst small {
  font-size: 12px;
  color: var(--mute);
}
.inst .x {
  width: 32px;
  height: 32px;
  flex: none;
}
.inst.bye {
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.25s;
}
@keyframes instin {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.isteps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.isteps li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--soft);
  border-radius: 14px;
  padding: 12px;
}
.isi {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--card);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--accent);
}
.isi img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.isi svg {
  width: 22px;
  height: 22px;
}
.isteps li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ist {
  font-weight: 500;
  font-size: 15px;
}
.ist b {
  font-weight: 700;
}
.isteps small {
  font-size: 13px;
  color: var(--mute);
}
.slab {
  margin: 22px 4px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
a.srow {
  color: inherit;
  text-decoration: none;
}
.slist.sout,
.slist.sdel {
  margin-top: 22px;
}
.sout .srow,
.sdel .srow {
  justify-content: center;
}
.sout .stx,
.sdel .stx {
  flex: none;
  align-items: center;
}
.sdel .srow b {
  color: light-dark(#b42318, #f87171);
}
.sdel {
  margin-top: 10px !important;
}
.shint {
  font-size: 12px;
  text-align: center;
  margin: 8px 0 0;
}
html[data-view='me'] .foot {
  display: none;
}
.dock {
  transition:
    transform 0.3s var(--ease),
    opacity 0.25s,
    visibility 0.3s;
}
.dock:not(.show) {
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
html.dock-on .wrap.withbar {
  padding-bottom: calc(150px + env(safe-area-inset-bottom));
}

/* ================= one scale for the whole app =================
   text 12 / 13 / 15 / 17 / 26 (+ the big date)   space 4 / 8 / 12 / 16 / 24   list icons and avatars 36, profile 56 */
:root {
  --fs-cap: 12px;
  --fs-sm: 13px;
  --fs-body: 15px;
  --fs-title: 17px;
  --fs-view: 26px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --ic: 36px;
}
body {
  font-size: var(--fs-body);
}
h2 {
  font-size: var(--fs-title);
}
.card {
  padding: 20px;
}
.sheet > .card,
.sheet > form.card {
  padding: 20px 20px 22px;
}
.hd {
  margin-bottom: var(--s4);
}
.hd h2 {
  font-size: var(--fs-title);
}
/* page titles */
.vhead {
  margin: var(--s1) 2px var(--s4);
  min-height: 40px;
}
.vhead h2,
.vt {
  font-size: var(--fs-view);
  letter-spacing: -0.02em;
}
.vhead .x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  border: 0;
  color: var(--ink);
}
/* small caps labels: one look everywhere */
.eyebrow,
.slab,
.hlsec {
  font-size: var(--fs-cap);
  font-weight: 700;
  color: var(--mute);
}
.slab,
.hlsec {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: var(--s5) 4px var(--s2);
}
.sec > span {
  font-size: var(--fs-cap);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}
.lab {
  font-size: var(--fs-sm);
  font-weight: 600;
}
.muted {
  line-height: 1.45;
}
.hint {
  font-size: var(--fs-sm);
}
/* every list row: same height, padding, gap, icon box */
.srow,
.hrow,
.gitem2 {
  min-height: 60px;
  padding: var(--s3) 14px;
  gap: var(--s3);
}
.pr {
  min-height: 52px;
  padding: var(--s2) var(--s2);
  gap: var(--s3);
}
.chk {
  gap: var(--s3);
}
.sic,
.hemo {
  width: var(--ic);
  height: var(--ic);
  border-radius: 10px;
  background: var(--card);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--ink);
  flex: none;
}
.sic svg,
.hemo svg {
  width: 19px;
  height: 19px;
}
.hlist .hemo {
  background: var(--soft);
}
.av {
  width: var(--ic);
  height: var(--ic);
  font-size: var(--fs-sm);
}
.av.sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.stx {
  gap: 2px;
}
.stx b,
.htx b,
.pn {
  font-size: var(--fs-body);
  font-weight: 600;
}
.stx span,
.htx > span {
  font-size: var(--fs-sm);
  line-height: 1.35;
}
.srow > svg:last-child,
.hrow > svg:last-child,
.gitem2 > svg:last-child {
  width: 18px;
  height: 18px;
  opacity: 0.35;
  flex: none;
}
.srow + .srow,
.hrow + .hrow {
  border-top: 0;
  box-shadow: inset 0 1px 0 var(--line);
}
.hrow + .hrow::before {
  display: none;
}
.srow + .srow {
  box-shadow: none;
  position: relative;
}
.srow + .srow::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 62px;
  height: 1px;
  background: var(--line);
}
.sout .srow::before,
.sdel .srow::before {
  display: none;
}
/* the account page */
#v-me .vbody {
  display: flex;
  flex-direction: column;
}
.acct.big {
  gap: var(--s4);
  margin: 0 2px var(--s5);
  align-items: center;
}
.acct.big .av {
  width: 56px;
  height: 56px;
  font-size: 18px;
}
.acct.big b {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.acct.big .muted {
  font-size: var(--fs-sm);
  margin-top: 2px;
}
#v-me .slist {
  margin: 0;
  background: var(--card);
  box-shadow: var(--sh2);
}
#v-me .sic {
  background: var(--soft);
}
#v-me .slab {
  margin: var(--s5) 6px var(--s2);
}
#v-me .slist.sout {
  margin-top: var(--s5);
}
#v-me .slist.sdel {
  margin-top: var(--s3);
}
#v-me .shint {
  margin: var(--s2) 0 0;
  font-size: var(--fs-cap);
}
/* gear turns only under a real mouse; the avatar never moves */
.gear,
.gear:hover {
  transform: none;
}
@media (hover: hover) {
  #gear .i {
    transition: transform 0.3s;
  }
  #gear:hover .i {
    transform: rotate(45deg);
  }
}
/* windows never slide under the status bar or the home indicator; their title stays put while you scroll */
.sheet {
  padding: calc(env(safe-area-inset-top) + 12px) 12px calc(env(safe-area-inset-bottom) + 12px);
}
.sheet > .card,
.sheet > form.card {
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
  margin-bottom: 0;
}
.sheet > .card > .hd:first-child {
  position: sticky;
  top: -20px;
  z-index: 3;
  background: var(--card);
  margin: -20px 0 var(--s4) -20px;
  padding: 20px 20px 10px;
  width: calc(100% + 40px);
  max-width: none;
  box-sizing: border-box;
}
/* payment method fields: a label over each box */
.mform {
  gap: 10px;
  background: var(--soft);
}
.mfield {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mfield span {
  font-size: var(--fs-cap);
  font-weight: 600;
  color: var(--mute);
}
.mform input {
  background-color: var(--card);
}
button.acct {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  display: flex;
  border-radius: 16px;
}
button.acct:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
/* line icons in place of emoji */
svg.sp {
  stroke-width: 1.8;
}
.sportbar button {
  color: var(--ink);
}
.sportbar button svg {
  width: 21px;
  height: 21px;
}
.sportbar button.on {
  color: var(--accent);
}
.sports button span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--ink);
}
.sports button span svg {
  width: 24px;
  height: 24px;
}
.sports button.on span {
  color: var(--accent);
}
.hemo svg,
.gemo svg {
  width: 21px;
  height: 21px;
  color: var(--ink);
}
.tpin b {
  display: grid;
  place-items: center;
  color: #222;
}
.tpin b svg {
  width: 19px;
  height: 19px;
}
.mbpin span {
  display: grid;
  place-items: center;
  color: #222;
}
.mbpin span svg {
  width: 22px;
  height: 22px;
}
.mbpin.fin span svg {
  width: 18px;
  height: 18px;
}
.potm .trophy {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ambb);
  color: var(--amb);
  flex: none;
}
.potm .trophy svg {
  width: 22px;
  height: 22px;
}
.pill .i {
  width: 18px;
  height: 18px;
}
.langp .lgi {
  display: inline-grid;
  place-items: center;
}
.langp .lgi svg {
  width: 14px;
  height: 14px;
}
.ib {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ib svg {
  width: 18px;
  height: 18px;
}
.tn span svg {
  width: 14px;
  height: 14px;
}
.sic svg {
  color: var(--ink);
}
#v-me .slist.smore {
  margin-top: var(--s5);
}
.mrows button {
  justify-content: flex-start;
  gap: 12px;
  font-weight: 600;
}
.mrows .mi {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  flex: none;
}
.mrows .mi svg {
  width: 19px;
  height: 19px;
  opacity: 1;
}
.mrows .mt {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mrows .mt b {
  font-size: var(--fs-body);
}
.mrows .mt small {
  font-size: var(--fs-sm);
  color: var(--mute);
  font-weight: 500;
}
.rows.bad.mrows .mi {
  background: color-mix(in srgb, #f87171 14%, transparent);
}
.rows.bad.mrows .mt b {
  color: light-dark(#b42318, #f87171);
}
/* landing demo scenes for sports without teams */
#scene {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}
#scene[hidden] {
  display: none;
}
#scene > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.schip {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  animation: schip 0.45s var(--ease) both;
  animation-delay: var(--d);
}
.schip i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.schip:nth-child(even) i {
  background: #2e7fe8;
}
.stag {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
@keyframes schip {
  from {
    opacity: 0;
    transform: translate(-50%, -30%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .schip {
    animation: none;
  }
}
.pref {
  font-size: var(--fs-cap);
}
.sec .linkish {
  font-size: var(--fs-sm);
}
/* record money another way: player on its own line, then amount + Add */
#recF .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
#recF select {
  grid-column: 1/-1;
  width: 100%;
  min-width: 0;
}
#recF input {
  min-width: 0;
  width: 100%;
}
/* playgrounds */
.pg {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin: 14px 0 10px;
  user-select: none;
  -webkit-user-select: none;
}
.pg > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pzone {
  position: absolute;
  left: 0;
  right: 0;
  transition: background 0.15s;
}
.pzone.hot {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}
.pzone.side {
  top: 0;
  bottom: 0;
}
.pzone.spot {
  border-radius: 14px;
}
.plab {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}
.ptag {
  position: absolute;
  left: 8px;
  top: 6px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}
.spot .ptag {
  left: 50%;
  top: 0;
  transform: translate(-50%, -55%);
}
.course .pchip {
  max-width: 31%;
}
.pool .pchip {
  max-width: 22%;
}
.courts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 10px;
}
.courts .pg {
  margin: 0;
}
.pchip {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  touch-action: none;
  cursor: grab;
}
.pchip.me {
  box-shadow:
    0 0 0 2px var(--accent),
    0 2px 8px rgba(0, 0, 0, 0.28);
}
.pchip.dragging,
.gslot.dragging {
  z-index: 9;
  cursor: grabbing;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  scale: 1.06;
}
.pchip:not([data-drag]) {
  cursor: default;
}
.gslot[data-drag] {
  touch-action: none;
}
.gslot.hot {
  box-shadow: 0 0 0 2px var(--accent);
}
.secb {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}
.secb .linkish {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.secb .linkish svg {
  width: 14px;
  height: 14px;
}
.actlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: var(--fs-sm);
}
.actlink svg {
  width: 15px;
  height: 15px;
}
.actlist {
  display: flex;
  flex-direction: column;
}
.actday {
  margin: 14px 2px 6px;
}
.actday:first-child {
  margin-top: 0;
}
.actrow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 2px;
  font-size: var(--fs-body);
}
.actrow .muted {
  font-size: var(--fs-cap);
  margin-top: 2px;
}
.aci {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--soft);
}
.aci svg {
  width: 16px;
  height: 16px;
}
.aci.money {
  color: #1a8f4d;
}
.aci.game {
  color: var(--accent);
}
.aci.people {
  color: #2e7fe8;
}
#gScope {
  margin: 6px 0 14px;
}
.seg.scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.seg.scope button {
  font-size: var(--fs-sm);
}
#gScope .hint {
  margin: 6px 2px 0;
}
.lvlrow {
  margin: 0 0 14px;
}
.lvlrow .lab {
  margin-bottom: 6px;
}
.lvlrow .lab .muted {
  font-weight: 500;
}
.seg.lvl {
  display: flex;
}
.seg.lvl button {
  flex: 1;
  min-height: 40px;
  font-weight: 700;
}
.seg.lvl button.on {
  background: var(--accent);
  color: #fff;
}
.lvlh {
  margin: 6px 2px 0;
}
.tlv {
  font-size: var(--fs-cap);
  font-weight: 700;
  color: var(--mute);
  margin-top: 2px;
}
.tbtns:has(#tBal) #tSave {
  grid-column: 1/-1;
}

/* weather line under the venue */
.wx {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 10px 2px 0;
  font-size: var(--fs-sm, 13px);
  color: var(--mute);
}
.wx .wxi {
  width: 20px;
  height: 20px;
  display: inline-flex;
  color: var(--ink);
}
.wx .wxi svg {
  width: 100%;
  height: 100%;
}
.wx .wxt b {
  color: var(--ink);
  font-weight: 650;
}
.wx .wxn {
  flex-basis: 100%;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
}
.wx .wxn.wet {
  background: var(--ambb);
  color: var(--amb);
}
.wx .wxc {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.6;
}

/* organiser overview */
.sttiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 2px 0 6px;
}
.sttiles > div {
  background: var(--soft);
  border-radius: 14px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.sttiles b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sttiles span {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.3;
}
.sttiles b small {
  font-size: 12px;
  font-weight: 650;
  margin-right: 3px;
  color: var(--mute);
}
.stlist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.strow {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 4px 12px;
  align-items: center;
}
.strow.none .stm b {
  color: var(--mute);
  font-weight: 600;
}
.stm {
  display: flex;
  flex-direction: column;
  grid-row: span 2;
}
.stm b {
  font-size: 15px;
}
.stm span {
  font-size: 12px;
}
.stbar {
  height: 8px;
  border-radius: 99px;
  background: var(--soft);
  overflow: hidden;
}
.stbar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ok);
}
.stnums {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 13px;
  color: var(--mute);
}
.stnums b {
  color: var(--ink);
  font-weight: 650;
}
.stnums .bad b {
  color: var(--accent2);
}
.stsub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 1px;
}
.stpl .pr {
  width: 100%;
}
.stnote {
  font-size: 12px;
  margin: 16px 0 4px;
  line-height: 1.5;
}
.actlinks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* offline: a quiet note at the top while there's no signal */
#offbar {
  display: table;
  margin: 4px auto 10px;
  max-width: calc(100% - 24px);
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--ambb);
  color: var(--amb);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* contrast (WCAG AA): text in the brand colour and white text on brand fills use slightly deeper shades; grey text a touch darker */
:root {
  --mute: light-dark(#6a6a6a, #a3a3a8);
  --accentt: light-dark(#d9134c, #ff5c7a);
  --brandbg: #e0174f;
}
.tabbar button.on,
.gdate b,
.vtext em,
.fx.on b,
.fx.on .fxd,
.mapcap .mtext em,
.hlnew,
.teeh span,
.tnr.me,
.sports button.on span {
  color: var(--accentt);
}
.pill.brand {
  background: var(--brandbg);
  border-color: var(--brandbg);
}
.fopts button.on,
.mchip.on,
.seg.lvl button.on,
.tabbar button b,
.ochip b {
  background: var(--brandbg);
}
.wx .wxc {
  opacity: 1;
  color: var(--mute);
}

/* a way in for players who land on the home page instead of their group's link */
.joinhint {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--mute);
}
.joinhint .linkish {
  font-size: 14px;
}
.hljoin {
  display: block;
  margin: 10px auto 0;
  font-size: 14px;
}
.wizjoin {
  margin: 16px 0 0;
  padding-top: 14px;
  font-size: 14px;
  color: var(--mute);
  border-top: 1px solid var(--line);
}

/* draggable names on lanes, courts, the course and the grid: the touch belongs to the drag (no selection, callout or scroll) */
.pg,
.courts,
.grid2 {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.pchip[data-drag],
.gslot[data-drag] {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.pchip {
  display: block;
  line-height: 1.35;
}
.pchip[data-drag]:focus-visible,
.gslot[data-drag]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* weather: two quiet lines; a rain warning is just tinted text, no box */
.wx {
  display: block;
  margin: 10px 2px 0;
}
.wx .wx1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm, 13px);
  color: var(--mute);
}
.wx .wx2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 3px 0 0 28px;
  font-size: 12px;
  color: var(--mute);
}
.wx .wxn {
  flex: 0 1 auto;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--mute);
  white-space: nowrap;
}
.wx .wxn.wet {
  background: none;
  color: var(--amb);
  opacity: 0.9;
}
.wx .wxc {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
}
.wx .wxi {
  width: 20px;
  height: 20px;
}

/* lanes / courts / course / grid: one tidy header, compact settings, one save button */
.sph2 {
  margin: 0 0 6px;
}
.sphead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  margin: 0 0 10px;
}
.sphead p {
  margin: 0;
  font-size: 14px;
  min-width: 0;
  flex: 1 0 auto;
  white-space: nowrap;
}
.sphead .unsaved {
  color: var(--accentt);
  font-weight: 600;
}
.spacts {
  display: flex;
  gap: 6px;
  flex: none;
  margin-left: auto;
}
.spacts .pill.sm {
  padding: 6px 12px;
  font-size: 13px;
  gap: 6px;
}
.spacts .pill.sm .i {
  width: 16px;
  height: 16px;
}
.splitopts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.optsel {
  position: relative;
  display: inline-flex;
}
.optsel select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--soft);
  border: 0;
  border-radius: 999px;
  padding: 7px 30px 7px 14px;
  cursor: pointer;
}
.optsel::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid var(--mute);
  border-bottom: 1.6px solid var(--mute);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.tsh2 {
  margin: 10px 0 0;
}
.spsave {
  width: 100%;
  margin-top: 14px;
}
.ptag.tag2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  padding: 3px 8px;
  border-radius: 9px;
  max-width: 92%;
}
.ptag.tag2 b {
  font-size: 11px;
  font-weight: 700;
}
.ptag.tag2 i {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
}
.pzone.spot.new {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
}
.pzone.spot.new .ptag {
  background: rgba(0, 0, 0, 0.32);
}

/* the pitch: a quiet row to open it, not another big button */
.pitchlink {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  cursor: pointer;
}
.pitchlink svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--ink);
}
.pitchlink span {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.pitchlink b {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}
.pitchlink small {
  font-size: 12px;
  color: var(--mute);
  margin-top: 1px;
}
.pitchlink i {
  font-style: normal;
  font-size: 22px;
  color: var(--mute);
  line-height: 1;
}
.pitchlink:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* weather: one line, metrics split by middots; amount coloured only when it matters; source behind (i) */
.wx .wx1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm, 13px);
  color: var(--mute);
}
.wx .wxt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  flex: 1;
  min-width: 0;
}
.wx .wxt i {
  font-style: normal;
  opacity: 0.6;
}
.wx .wxt b {
  color: var(--ink);
  font-weight: 650;
}
.wx .wxt .warn,
.wx .wxi.warn {
  color: var(--amb);
}
.wx .wxt .bad,
.wx .wxi.bad {
  color: var(--accentt);
}
.wx .wxt .warn,
.wx .wxt .bad {
  font-weight: 600;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.wxinfo {
  all: unset;
  box-sizing: border-box;
  flex: none;
  width: 28px;
  height: 28px;
  margin: -4px -6px -4px 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--mute);
  cursor: pointer;
  opacity: 0.7;
}
.wxinfo svg {
  width: 16px;
  height: 16px;
}
.wxinfo:hover,
.wxinfo[aria-expanded='true'] {
  opacity: 1;
}
.wxinfo:focus-visible {
  outline: 2px solid var(--accent);
}
.wx .wxsrc {
  margin: 4px 0 0 28px;
  font-size: 11px;
  color: var(--mute);
}

/* recently checked payments: text on one line, the fix-it button under it */
.rec.recent .chk {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  min-height: 0;
}
.rec.recent .chk .grow {
  flex: 1 1 auto;
  min-width: 0;
}
.rec.recent .chk .grow b {
  display: block;
}
.rec.recent .chk .pill {
  flex: none;
  margin: 0;
  background: var(--card);
  padding: 6px 12px;
  font-size: 13px;
}
.rec.recent .chk .pill .i {
  width: 15px;
  height: 15px;
}
.rec.recent .stno {
  color: var(--accentt);
  font-weight: 600;
}
.wnote {
  font-size: 13px;
  margin: -2px 0 8px;
}

/* calendar: sync all games, or just this one; the game card shows whether it's already in */
.calsync {
  background: var(--soft);
  border-radius: 16px;
  padding: 14px 14px 12px;
}
.calsync > b {
  font-size: 15px;
}
.calsync > p {
  margin: 4px 0 12px;
  font-size: 13px;
}
.calsync .calnote {
  margin: 10px 0 0;
  font-size: 12px;
}
.calsync .alist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.calsync .alist .pill {
  background: var(--card);
  justify-content: center;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
  white-space: nowrap;
}
.calsync .alist .pill.brand {
  grid-column: 1/-1;
  background: var(--brandbg);
}
#calOne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#calOne .pill {
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
  font-size: 14px;
}
.pill.calok {
  color: var(--ok);
}
.pill.calok .i {
  color: var(--ok);
}
.pill.calchg {
  color: var(--amb);
  box-shadow: inset 0 0 0 1.5px var(--amb);
}

/* team cards: tighter name rows; the pitch link sits above them */
.tside .tnames .tn {
  padding: 3px 6px;
  min-height: 30px;
  line-height: 1.25;
}
.tside .tnames {
  margin-top: 6px;
}
.pitchlink {
  margin: 0 0 12px;
}
.tsides {
  margin-top: 0;
}

/* stats: a ranked list, a player card with skill bars, and sliders for your own ratings */
.stlist2 {
  display: flex;
  flex-direction: column;
}
.srank {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-radius: 12px;
  cursor: pointer;
}
.srank:hover,
.srank:focus-visible {
  background: var(--soft);
}
.srank .ovr {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  background: var(--soft);
  color: var(--ink);
}
.srank .sn {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.srank .sn b {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srank .sn .muted {
  font-size: 12px;
}
.form {
  display: inline-flex;
  gap: 3px;
  flex: none;
}
.fc {
  font-style: normal;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}
.fc.fW {
  background: #2e9e5b;
}
.fc.fD {
  background: #8a8f98;
}
.fc.fL {
  background: #d9434f;
}
.fc.fX {
  background: #b07a1f;
}
.fc.fn {
  background: var(--soft);
  color: var(--mute);
}
.pcard {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
}
.pcovr {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--brandbg);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pcovr b {
  font-size: 28px;
  line-height: 1;
}
.pcovr span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}
.pcform {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pcform .fc {
  width: 22px;
  height: 22px;
  font-size: 11px;
}
.pskills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}
.psk {
  display: grid;
  grid-template-columns: 96px 1fr 28px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.psk b {
  text-align: right;
  font-size: 13px;
}
.skbar {
  height: 7px;
  border-radius: 99px;
  background: var(--soft);
  overflow: hidden;
  display: block;
}
.skbar .pfill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accentt);
}
.pst {
  margin-top: 4px;
}
.rsl {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rsrow {
  display: grid;
  grid-template-columns: 96px 1fr 30px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.rsrow input {
  width: 100%;
  accent-color: var(--brandbg);
}
.rsrow b {
  text-align: right;
}
.rsovr {
  margin: 12px 2px 0;
  font-size: 14px;
}
.rsovr b {
  color: var(--ink);
  font-size: 18px;
  margin-left: 6px;
}
#v-squad .tabs.seg {
  display: flex;
  grid-template-columns: none;
}
#v-squad .tabs.seg button {
  flex: 1 1 0;
  min-width: 0;
}

/* recordings on a game */
.recs {
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.recl {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
}
.recl .i {
  width: 22px;
  height: 22px;
  color: var(--accentt);
  flex: none;
}
.recl span {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.recl b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recl small {
  font-size: 12px;
  color: var(--mute);
}
.recl i {
  font-style: normal;
  color: var(--mute);
}
.recadd {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 14px;
}
.recrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.recrow span {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.recrow small {
  color: var(--mute);
  font-size: 12px;
}
.tag.rec {
  gap: 4px;
}
.tag.rec .i {
  width: 13px;
  height: 13px;
}

/* form fields: flat filled boxes, no outlines; a soft accent ring only while typing; the time picker splits into two tiles */
:root {
  --fline: transparent;
}
input:not([type='range']):not([type='checkbox']):not([type='radio']),
textarea {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  border-color: transparent;
}
select {
  box-shadow: none;
  border-color: transparent;
}
input:not([type='range']):focus,
textarea:focus,
select:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}
.tseg {
  gap: 6px;
  padding: 5px;
  box-shadow: none;
  border-color: transparent;
}
.tseg .tt {
  background: light-dark(#fff, #2e2e33);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.tseg .tt .tl {
  color: var(--accentt);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.tseg .tt .tl .muted {
  color: var(--mute);
  font-weight: 600;
}
.tseg .tt:focus-within {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}
#gD {
  color: var(--ink);
  font-weight: 700;
  color-scheme: light dark;
}
.field > .lab {
  color: var(--mute);
}
.money {
  box-shadow: none;
  border-color: transparent;
  border-radius: 12px;
}
.money input {
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0;
}
.money:focus-within {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}
.wx .wxi.warn,
.wx .wxi.bad {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* the game card: one main action, then a quiet pair side by side */
#hero .row.acts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
#hero .row.acts .pill {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 14px;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#hero .row.acts .pill .i {
  width: 17px;
  height: 17px;
  flex: none;
}

/* long forms: the save button stays in reach */
.stickysave {
  position: sticky;
  bottom: 0;
  margin: 8px -4px 0;
  padding: 14px 4px 6px;
  background: linear-gradient(to bottom, transparent, var(--card) 26%);
  z-index: 3;
  box-shadow: 0 40px 0 0 var(--card);
}

/* section headers with actions: title wraps, small buttons stay together on the right */
.sec {
  align-items: center;
  gap: 10px;
}
.sec > span:first-child {
  min-width: 0;
  line-height: 1.35;
}
.secb .pill.sm {
  padding: 5px 10px;
  font-size: 12px;
  min-height: 30px;
  gap: 5px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.secb .pill.sm .i {
  width: 14px;
  height: 14px;
}
.mhead p b {
  color: var(--ink);
  font-size: 15px;
}
.mhead .spacts .pill.sm {
  padding: 6px 10px;
}
.sphead p {
  text-align: left;
}

/* section header with icon-only actions on the same line */
.sec.ihead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  min-height: 38px;
}
.sec.ihead > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ibtns {
  display: inline-flex;
  gap: 6px;
  flex: none;
}
.ibtn {
  all: unset;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
}
.ibtn .i {
  width: 18px;
  height: 18px;
}
.ibtn:hover {
  background: color-mix(in srgb, var(--ink) 10%, var(--soft));
}
.ibtn:active {
  transform: scale(0.94);
}
.ibtn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.rows .ibtn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-top: 0;
  justify-content: center;
  flex: none;
  background: transparent;
  color: var(--mute);
}
.rows .ibtn svg {
  opacity: 1;
}
.rows .ibtn:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.udot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.spsave[disabled] {
  background: var(--soft) !important;
  color: var(--mute) !important;
  box-shadow: none !important;
  cursor: default;
  opacity: 1;
}
.spsave.dirty {
  position: relative;
}
.spsave.dirty::after {
  content: '';
  position: absolute;
  top: 9px;
  right: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
/* ---- shimmer placeholders and smooth transitions ---- */
.sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(
      100deg,
      var(--soft) 30%,
      light-dark(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.07)) 50%,
      var(--soft) 70%
    )
    var(--soft);
  background-size: 300% 100%;
  animation: shim 1.5s linear infinite;
}
@keyframes shim {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
.skwrap {
  display: block;
}
.skwrap > div {
  display: flex;
  flex-direction: column;
}
.skl {
  max-width: 100%;
}
.skpair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.skav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
}
.skrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.skrow + .skrow {
  border-top: 1px solid var(--line);
}
.skmap {
  height: 150px;
  border-radius: 16px;
  margin: 16px 0 2px;
}
.skbar2 {
  height: 8px;
  border-radius: 999px;
  margin: 16px 0 0;
}
.skcard {
  height: 84px;
  border-radius: 18px;
  margin: 0 0 12px;
}
.sktiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin: 0 0 10px;
}
.sktile {
  height: 72px;
  border-radius: 14px;
}
.skwi {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
}
#app > .boot {
  opacity: 0;
  animation: bootin 0.3s 0.15s forwards;
}
@keyframes bootin {
  to {
    opacity: 1;
  }
}
.boot .top {
  min-height: 40px;
}
.boot .skbrand {
  width: 150px;
  height: 28px;
  border-radius: 999px;
}
.boot .skme {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
/* the forecast keeps its line while it loads, and folds away smoothly if there's none */
.wx {
  min-height: 22px;
  transition:
    height 0.26s var(--ease),
    opacity 0.2s,
    margin 0.26s var(--ease);
}
.wx.wxload .wx1 {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
}
.wx.gone {
  height: 0 !important;
  min-height: 0;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden;
}
.wx[hidden] {
  display: none;
}
.mapcard {
  background: linear-gradient(
      100deg,
      var(--soft) 30%,
      light-dark(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.07)) 50%,
      var(--soft) 70%
    )
    var(--soft);
  background-size: 300% 100%;
  animation: shim 1.5s linear infinite;
}
.mapcard.ld {
  animation: none;
  background: var(--soft);
}
/* real content arrives with a soft fade */
.settle {
  animation: settle 0.32s var(--ease);
}
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
/* tabs and segments slide in the way you're going */
.vin {
  animation-duration: 0.28s;
  animation-timing-function: var(--ease);
}
.vinr {
  animation-name: vinr;
}
.vinl {
  animation-name: vinl;
}
.vinu {
  animation-name: vinu;
}
.vinf {
  animation-name: vinf;
}
@keyframes vinf {
  from {
    opacity: 0;
  }
}
@keyframes vinr {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}
@keyframes vinl {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}
@keyframes vinu {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
/* moving between pages (group, home, sign-in) cross-fades where the browser supports it */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
}
@media (prefers-reduced-motion: reduce) {
  .sk,
  .mapcard {
    animation: none;
  }
  .settle,
  .vin {
    animation: none;
  }
  @view-transition {
    navigation: none;
  }
}
/* the on-screen keyboard: sheets sit above it, never under it */
.sheet {
  height: var(--vvh, 100%);
  top: var(--vvt, 0);
  bottom: auto;
  transition: height 0.18s var(--ease);
}
.sheet > .card,
.sheet > form.card {
  max-height: calc(var(--vvh, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
}
html.kb .sheet {
  padding-bottom: 12px;
}
html.kb .sheet > .card,
html.kb .sheet > form.card {
  max-height: calc(var(--vvh, 100dvh) - 24px);
}
.pcount {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}
.pcount > .i {
  width: 22px;
  height: 22px;
  color: var(--mute);
  flex: none;
}
.pcount small {
  display: block;
  font-weight: 400;
  color: var(--mute);
  font-size: 13px;
  margin-top: 2px;
}
.row3 {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  gap: 8px;
}
.row3 input {
  width: 100%;
  min-width: 0;
}
.rows .recrow {
  padding: 8px 6px 8px 14px;
}
.rows:has(.recrow) {
  margin-bottom: 14px;
}
.recrow b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recrow + .recrow {
  border-top: 1px solid var(--line);
}
.recedit input {
  flex: 1;
  min-width: 0;
}
.how {
  margin-top: 22px;
}
.how h2 {
  margin: 0 0 6px;
}
.howrow {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
}
.howrow + .howrow {
  border-top: 1px solid var(--line);
}
.howrow b {
  display: block;
  font-size: 16px;
}
.howrow p {
  margin: 3px 0 0;
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.45;
}
.howi {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accentb);
  color: var(--accent2);
  display: grid;
  place-items: center;
}
.howi .i {
  width: 20px;
  height: 20px;
}
.jsum {
  margin: 2px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}
.jsum b {
  font-weight: 600;
}
#jNote:empty {
  display: none;
}
.fsports {
  margin: 0 -6px;
}
.fsports button {
  width: auto;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px 0 11px;
  font-size: 14px;
  font-weight: 600;
}
.fsports button svg {
  width: 18px;
  height: 18px;
}
.teams-ev {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.evteam {
  position: relative;
  background: var(--soft);
  border-radius: 16px;
  padding: 12px 12px 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  min-height: 96px;
}
.evteam::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--tc);
}
.evteam.mine {
  box-shadow: inset 0 0 0 2px var(--tc);
}
.evh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.evh > span {
  font-size: 12.5px;
  color: var(--mute);
  font-weight: 700;
}
.evname {
  all: unset;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
b.evname {
  cursor: default;
}
.evname .i {
  width: 13px;
  height: 13px;
  color: var(--mute);
}
.evp {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.evp .tn {
  margin: 0 -6px;
  padding: 5px 6px;
  font-size: 14px;
}
.evp .tnr {
  font-size: 14px;
  padding: 3px 0;
}
.evempty {
  font-size: 13px;
}
.evbtn {
  align-self: flex-start;
  margin-top: 4px;
}
.evopen {
  margin: 4px 0 14px;
}
.evpts {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.evtable {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.evtable li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--soft);
  border-radius: 12px;
  padding: 10px 14px;
}
.evtable li:first-child {
  background: color-mix(in srgb, var(--tc) 14%, var(--soft));
}
.evrank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tc);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  flex: none;
}
.evtable b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.evp2 {
  font-weight: 800;
  font-size: 17px;
}
.evrounds {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}
.evround {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 8px 2px;
  border-radius: 10px;
}
button.evround {
  cursor: pointer;
}
.evround + .evround {
  border-top: 1px solid var(--line);
}
.evround b {
  font-size: 14.5px;
}
.evround span {
  font-size: 13px;
  color: var(--mute);
}
.evpick {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.evpick span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.evpick span::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tc);
}
.evpick.on {
  background: color-mix(in srgb, var(--tc) 12%, transparent);
}
.evpick b {
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
}
.evpick b small {
  color: var(--mute);
  font-weight: 600;
  font-size: 12.5px;
}
.evhint {
  font-size: 13px;
  margin: -4px 0 10px;
}
.evteam.mine {
  margin-bottom: 0;
}
.result {
  background: var(--soft);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rsc {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.rsc span {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rsc span:last-child {
  justify-content: flex-end;
  text-align: right;
}
.rsc span::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tc);
}
.rsc span:last-child::before {
  order: 2;
}
.rsc b {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.rsc b i {
  font-style: normal;
  color: var(--mute);
  margin: 0 8px;
  font-weight: 500;
}
.rwho {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 13px;
  color: var(--mute);
}
.rwho span:last-child {
  text-align: right;
}
.result .linkish {
  align-self: flex-start;
}
.rsteps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rstep {
  background: var(--soft);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.rstep > span {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rstep > span::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tc);
}
.rstep > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rstep b {
  font-size: 30px;
  min-width: 1.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.rstep button,
.rmin {
  all: unset;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
}
.rcols {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rcol .lab {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rcol .lab::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tc);
}
.rgl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}
.rgl > button:first-child {
  all: unset;
  cursor: pointer;
  flex: 1;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 15px;
  font-weight: 600;
}
.rgl.on > button:first-child {
  background: color-mix(in srgb, var(--accent) 12%, var(--soft));
}
.rgl b {
  min-width: 22px;
  text-align: center;
  font-size: 16px;
}
.rmin {
  width: 30px;
  height: 30px;
  font-size: 18px;
  background: var(--soft);
}

/* ---- wide screens: one centred column. Logo and profile mark its edges; the tabs sit in a row under the logo,
   every page spans the same width, nothing sticks or slides sideways ---- */
@media (min-width: 900px) {
  :root {
    --cw: 1040px;
    --gx: 28px;
  }
  html {
    scrollbar-gutter: stable;
  }
  .top.wide,
  .wrap.wide {
    max-width: var(--cw);
    padding-left: var(--gx);
    padding-right: var(--gx);
    box-sizing: border-box;
    width: 100%;
  }
  .top.wide {
    padding-top: 20px;
    padding-bottom: 8px;
  }
  .wrap.withbar {
    padding-left: var(--gx);
    padding-bottom: 48px;
  }
  .tabbar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 40;
    width: 100%;
    max-width: var(--cw);
    margin: 0 auto 8px;
    box-sizing: border-box;
    flex-direction: row;
    justify-content: flex-start;
    gap: 4px;
    padding: 10px var(--gx);
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0;
    box-shadow: none;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
  }
  .tabbar button {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 8px;
    padding: 9px 14px;
    font-size: 14px;
    border-radius: 999px;
  }
  .tabbar button svg {
    width: 18px;
    height: 18px;
  }
  .tabbar button.on {
    background: var(--soft);
  }
  .tabbar button b {
    position: static;
    margin-left: 2px;
  }
  .dock {
    display: none !important;
  }
  /* every page the full width; home is two columns that scroll together */
  #v-games,
  #v-pay,
  #v-me,
  #v-squad {
    max-width: none;
  }
  .wrap.split .cols {
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    gap: 24px;
  }
  .side {
    position: static;
  }
  /* lists that would stretch too far go two-up */
  .glist2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  /* account: you on top, your stuff on the left, account settings on the right */
  #v-me .vbody {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 24px;
    align-items: start;
  }
  #v-me .vbody > .acct,
  #v-me .vbody > .empty {
    grid-column: 1/-1;
    grid-row: 1;
  }
  #v-me .vbody > .empty {
    max-width: 420px;
    justify-self: center;
  }
  #v-me .vbody > .slist:nth-child(2) {
    grid-column: 1;
    grid-row: 2/5;
  }
  #v-me .vbody > .slab {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }
  #v-me .vbody > .slab + .slist {
    grid-column: 2;
    grid-row: 3;
  }
  #v-me .vbody > .smore {
    grid-column: 2;
    grid-row: 4;
  }
  /* buttons size to their words instead of stretching across a wide card */
  #v-home .pill.big {
    width: auto;
    align-self: flex-start;
    min-width: 200px;
    padding-left: 28px;
    padding-right: 28px;
  }
  #hero .row.acts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  #hero .row.acts .pill,
  #hero .row.acts .grow {
    flex: 0 0 auto;
    padding: 8px 16px;
  }
  .tabbar {
    border-bottom: 0 !important;
  }
  .tabbar::after {
    content: '';
    position: absolute;
    left: var(--gx);
    right: var(--gx);
    bottom: 0;
    height: 1px;
    background: var(--line);
  }
  .vhead .pill {
    width: auto;
  }
  /* squad: members or stats on the left, teams always open on the right */
  #v-squad.twin {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 16px 24px;
    align-items: start;
  }
  #v-squad.twin > * {
    grid-column: 1;
  }
  #v-squad.twin > #tTeams {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
  #v-squad.twin [data-seg='teams'] {
    display: none;
  }
  #v-squad.twin .tabs.seg {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  #v-squad.twin .tabs.seg:not(:has([data-seg='members'])) {
    display: none;
  }
  #v-squad:not(.twin) > .card,
  #v-squad:not(.twin) > .tabs {
    width: 100%;
    max-width: 720px;
  }
  #meClose {
    display: none;
  }
}

/* ---- owner dashboard ---- */
.owner {
  gap: 18px;
}
.ohead h1 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
}
.ohead p {
  margin: 0;
}
.ostamp {
  font-size: 13px;
}
.ostrip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 900px) {
  .ostrip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .otiles {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}
.ost {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.ost b {
  display: block;
  font-size: 15px;
}
.ost span {
  font-size: 13px;
  color: var(--mute);
}
.osi {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}
.osi .i,
.osi svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
}
.ost.s-ok .osi {
  background: #1f9d55;
}
.ost.s-warn .osi {
  background: #d98a00;
}
.ost.s-bad .osi {
  background: #d93025;
}
.ost b {
  color: var(--ink);
}
.otiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.otile {
  padding: 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.otile b {
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.otile span {
  font-size: 13px;
  font-weight: 600;
}
.otile small {
  font-size: 12px;
  color: var(--mute);
}
.ocharts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 14px;
}
.ochart {
  padding: 18px;
}
.ohd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.ohd b {
  font-size: 16px;
}
.ohd span {
  font-size: 13px;
}
.ochartw {
  position: relative;
}
.ochartw svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.obar path {
  fill: var(--accent);
}
.obar .ohit {
  fill: transparent;
}
.obar:hover path {
  fill: var(--accent2, var(--accent));
  opacity: 0.85;
}
.ogrid {
  stroke: var(--line);
  stroke-width: 1;
}
.obase {
  stroke: color-mix(in srgb, var(--ink) 30%, transparent);
  stroke-width: 1;
}
.oax {
  fill: var(--mute);
  font-size: 11px;
  font-family: var(--f);
}
.otip {
  position: absolute;
  top: -6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
}
.otable {
  margin-top: 8px;
  font-size: 13px;
}
.otable summary {
  cursor: pointer;
  color: var(--mute);
}
.otable table {
  margin-top: 8px;
  border-collapse: collapse;
}
.otable td,
.otable th {
  padding: 3px 14px 3px 0;
  text-align: left;
}
.otw {
  overflow-x: auto;
}
.otab {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.otab th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px 8px 0;
  white-space: nowrap;
}
.otab td {
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.otab td small {
  display: block;
  color: var(--mute);
  font-size: 12px;
  margin-top: 2px;
}
.otab a {
  color: var(--ink);
  font-weight: 650;
}
.otab code {
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.otag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
}
.otag.t-ok {
  background: var(--okb);
  color: var(--ok);
}
.otag.t-warn {
  background: var(--ambb);
  color: var(--amb);
}
.otag.t-bad {
  background: var(--accentb);
  color: var(--accent2, var(--accent));
}
.olist,
.ofeed,
.olinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.olist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.olist li:first-child {
  border-top: 0;
}
.olist a {
  color: var(--ink);
  font-weight: 650;
}
.olist span:last-child {
  color: var(--mute);
  font-size: 14px;
}
.ofeed li {
  display: grid;
  grid-template-columns: 90px minmax(0, auto) 1fr;
  gap: 4px 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.ofeed li:first-child {
  border-top: 0;
}
.ofeed .muted {
  font-size: 12px;
}
.olinks li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.olinks li:first-child {
  border-top: 0;
}
.olinks a {
  color: var(--ink);
  font-weight: 600;
}
.olinks i {
  font-style: normal;
  margin-left: 6px;
  color: var(--mute);
}
.ofine {
  font-size: 13px;
  margin: 12px 0 0;
}
.ocols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 14px;
  align-items: start;
}
.osports {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 10px;
}
.ochip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
}
.ochip svg {
  width: 15px;
  height: 15px;
}
.oempty {
  max-width: 460px;
  margin: 40px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
@media (max-width: 600px) {
  .ofeed li {
    grid-template-columns: 1fr;
  }
  .ohead h1 {
    font-size: 24px;
  }
}
.remd summary {
  cursor: pointer;
  list-style: none;
}
.remd summary::-webkit-details-marker {
  display: none;
}
.remd summary span::after {
  content: ' ›';
  color: var(--mute);
}
.remd[open] summary span::after {
  content: ' ⌄';
}
.teams-ev + .tleft,
.tees + .tleft,
.grid2 + .tleft,
.tsides + .tleft {
  margin-top: 12px;
}
.testbadge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--amb);
  background: var(--ambb);
  border-radius: 999px;
  padding: 3px 10px;
  margin: 6px 0 0;
}
.mpwait {
  text-align: center;
  padding: 4px 4px 8px;
}
.mpwait p {
  margin: 6px 0;
}
.mpphone {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--okb);
  color: var(--ok);
  margin: 4px 0 10px;
}
.mpphone svg {
  width: 28px;
  height: 28px;
}
.wallet2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--soft);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 14px;
}
.wallet2 > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wallet2 b {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.wallet2 .testbadge {
  align-self: flex-start;
}
.paybox input {
  background: var(--bg);
}
.ohealth {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.ohealth > div {
  background: var(--soft);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.ohealth b {
  font-size: 15px;
  color: var(--ink);
}
.ohealth .s-bad b {
  color: var(--bad, #d33);
}
.proof{font-size:13px;color:var(--mute);margin-top:4px;font-variant-numeric:tabular-nums}.proof>span:first-child{color:var(--ink);font-weight:600}.proof .warn{color:var(--amb);font-weight:600;margin-top:2px}
