:root {
  color-scheme: dark;
  --bg: #090c10;
  --ink: #f6f1e8;
  --muted: #a3abba;
  --faint: #6f7888;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(20, 25, 34, 0.88);
  --ember: #ff7a3c;
  --ember-2: #ffb088;
  --felt: #2fce8a;
  --loss: #ff6b7a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --nav: 4.6rem;
  --header: 3.75rem;
  font-family: Outfit, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  overscroll-behavior-y: contain;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 50% -12%, rgba(255, 122, 60, 0.22), transparent 60%),
    radial-gradient(700px 380px at 110% 110%, rgba(47, 206, 138, 0.14), transparent 55%),
    var(--bg);
}

button, input { font: inherit; color: inherit; }

button { cursor: pointer; }

img { max-width: 100%; display: block; }

#app { min-height: 100dvh; }

.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
}

.login-card {
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 22px 22px;
  box-shadow: var(--shadow);
}

.login-card img {
  width: 108px;
  height: auto;
  margin: 0 auto 12px;
}

.login-card h1,
.brand strong,
.score,
.rank,
.stat strong,
.points {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.login-card h1 {
  margin: 0;
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.14em;
}

.eyebrow, .login-card p.lede, .meta, .sub, .chip, .status, .section-label {
  color: var(--muted);
}

.login-card p.lede {
  margin: 6px 0 22px;
  text-align: center;
}

label {
  display: block;
  margin: 12px 0;
}

label span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0d1117;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}

input:focus { border-color: rgba(255, 122, 60, 0.8); }

.btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff935c, #e85d24);
  color: #2a1006;
  font-weight: 700;
  margin-top: 8px;
}

.btn:disabled { opacity: 0.7; }

.form-error {
  min-height: 1.2em;
  color: var(--loss);
  font-size: 0.92rem;
  margin: 8px 0 0;
}

.shell { min-height: 100dvh; }

.wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: calc(var(--header) + env(safe-area-inset-top) + 14px) 16px calc(var(--nav) + 22px + env(safe-area-inset-bottom));
}

.top {
  position: fixed;
  z-index: 18;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: calc(var(--header) + env(safe-area-inset-top));
  margin: 0;
  padding: env(safe-area-inset-top) 16px 0;
  background: rgba(9, 12, 16, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: right;
  cursor: pointer;
}

.pull {
  position: fixed;
  z-index: 25;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  overflow: hidden;
  display: grid;
  place-items: end center;
  pointer-events: none;
  color: var(--ember-2);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(255, 122, 60, 0.2), transparent);
}

.pull span { padding-bottom: 8px; }

.brand img { width: 42px; height: 42px; object-fit: contain; }

.brand strong {
  display: block;
  line-height: 0.9;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
}

.brand em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  letter-spacing: 0.38em;
  font-size: 0.62rem;
  color: var(--ember);
}

.icon-btn, .tabbar button, .sheet button {
  background: transparent;
  border: 0;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.hero, .card, .sheet {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero, .card { border-radius: 22px; }

.hero { padding: 16px; margin-bottom: 14px; }

.hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(160deg, #2a211c, #10140f 60%);
  border: 2px solid rgba(255, 122, 60, 0.7);
  font-family: Oswald, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.identity { min-width: 0; flex: 1; }

.identity h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.identity p { margin: 3px 0 0; color: var(--muted); overflow-wrap: anywhere; }

.rating {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at center, #141922 0 58%, transparent 60%),
    conic-gradient(from 210deg, var(--ember), #ffd0a8, var(--felt), var(--ember));
}

.rating strong {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.rating span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ember-2);
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chip, .status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 0.78rem;
}

.chip.win, .status.win { color: var(--felt); }
.chip.loss, .status.loss { color: var(--loss); }
.yours { outline: 1px solid rgba(255, 122, 60, 0.55); }

.stats, .grid, .lineups {
  display: grid;
  gap: 10px;
}

.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0; }

.stat, .card { padding: 14px; min-width: 0; }

.stat span, .section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat strong, .points { font-size: 1.7rem; line-height: 1; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 8px;
}

.section-head h3 { margin: 0; font-size: 1.05rem; }

.stack { display: grid; gap: 10px; }

.person, .stand, .match, .event, .venue, .profile-row {
  display: grid;
  gap: 6px;
}

.person-top, .stand-top, .scoreline, .profile-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.person h3, .stand h3, .event h3, .venue h3, .who, .card h2, .title {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.card h2 { font-size: 1.35rem; }

button.card, button.back, button.text-btn, button.chip, .roster-links button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button.card {
  width: 100%;
  text-align: left;
}

button.text-btn {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

a { text-decoration: none; }

button.back {
  background: none;
  border: 0;
  color: var(--ember-2);
  padding: 4px 0 12px;
}

.roster-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.roster-links button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 32px;
  padding: 4px 10px;
}

.title { display: block; font-weight: 650; }
.more { color: var(--faint); }

.mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.stand { grid-template-columns: auto minmax(0, 1fr); align-items: center; }

.stand .stand-top { align-items: flex-start; }

.stand-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
  gap: 2px;
}

.bank {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.1;
}

.rank {
  width: 36px;
  text-align: center;
  font-size: 1.4rem;
  color: var(--ember-2);
}

.bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 8px;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d8f62, var(--felt));
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.scoreboard .side { min-width: 0; }

.scoreboard .side.away { text-align: right; }

.score {
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  line-height: 0.9;
}

.vs { color: var(--faint); letter-spacing: 0.14em; font-size: 0.75rem; }

.scoreline { margin-top: 8px; }

.scoreline b { font-size: 1.25rem; font-family: Oswald, sans-serif; }

.winner { color: var(--felt); }

.empty {
  padding: 22px 8px;
  text-align: center;
  color: var(--muted);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.chips button, .sheet button.nav {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
}

.chips button.active, .panel-tabs button.active, .sheet button.active {
  color: #2a1006;
  background: linear-gradient(180deg, #ff935c, #e85d24);
  border-color: transparent;
}

.tabbar button.active {
  color: var(--ember);
  background: none;
}

.panel-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.panel-tabs button {
  flex: 0 1 auto;
  min-width: 92px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.tabbar {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(9, 12, 16, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.tabbar button {
  min-width: 0;
  min-height: 52px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.tabbar svg { width: 22px; height: 22px; }

.side-more,
.tabbar > .sponsor,
.tabbar > .apk-link,
.tabbar > .logout-btn,
.tabbar > .connection { display: none; }

.connection {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.connection .dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: none;
}

.connection .dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff7a3c;
}

.connection.ok .dot::before { background: var(--felt); }

.scrim {
  position: fixed;
  top: calc(var(--header) + env(safe-area-inset-top));
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.62);
}

.drawer[hidden],
.scrim[hidden] { display: none; }

.drawer {
  position: fixed;
  z-index: 31;
  top: calc(var(--header) + env(safe-area-inset-top));
  bottom: 0;
  left: 0;
  width: max-content;
  min-width: 200px;
  max-width: 86vw;
  display: flex;
  flex-direction: column;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  background: #141922;
  border-right: 1px solid var(--line);
}

.drawer button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  min-width: 100%;
  min-height: 48px;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  text-align: left;
  white-space: nowrap;
}

.drawer button.active {
  color: var(--ember);
  background: transparent;
}

.drawer button.ghost {
  margin-top: auto;
  color: var(--muted);
}

.drawer svg { width: 22px; height: 22px; flex: none; }

.match-columns,
.player-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 72px;
  align-items: center;
  gap: 4px;
}

.match-label { min-width: 0; }

.col-games,
.col-score,
.player-line .games,
.player-line .points { text-align: right; }

.col-games,
.col-score {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.col-score { font-weight: 600; }

.player-line .name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  min-width: 0;
}

.player-line .games,
.player-line .points {
  font-family: Oswald, sans-serif;
  line-height: 1;
}

.player-line .games { font-size: 1rem; }

.player-line .points { font-size: 1.6rem; font-weight: 700; }

.player-line.you .text-btn,
.player-line.you .who {
  color: var(--ember-2);
  font-weight: 600;
}

.fargo {
  color: rgba(246, 241, 232, 0.55);
  font-weight: 400;
  white-space: nowrap;
  margin-left: 8px;
}

.score-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.score-foot .sub { margin: 0; flex: 1; }

.ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: radial-gradient(circle at 32% 30%, #fff, #f3eee4 42%, #d5cfc3);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  flex: none;
  position: relative;
}

.ball::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 27%;
  height: 46%;
  background: linear-gradient(#f0c21a, #d9a40a);
}

.ball.ten::before { background: linear-gradient(#1e4fa8, #14367a); }

.ball span {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #1a1a1a;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  color: #161616;
  line-height: 1;
}

.ball.ten span { width: 14px; height: 14px; font-size: 7px; }

.shell.pin-matches {
  height: 100dvh;
  overflow: hidden;
}

.shell.pin-matches .wrap {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(var(--nav) + env(safe-area-inset-bottom));
}

.shell.pin-matches #view,
.shell.pin-matches .matchup-pin {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.shell.pin-matches .matchup-slide {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shell.pin-matches .panel-tabs,
.matchup-board { flex: none; }

.matchup-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.matchup-scroll section + section { margin-top: 10px; }

dialog.sheet {
  width: min(100%, 440px);
  max-height: min(80dvh, 560px);
  margin: auto auto 0;
  border: 0;
  padding: 8px 8px calc(14px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  color: var(--ink);
  background: #141922;
}

dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.62); }

.sheet { box-shadow: none; }

.handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  margin: 6px auto 10px;
}

.sheet button.nav, .sheet button.ghost {
  width: 100%;
  text-align: left;
  margin-top: 8px;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 14px;
}

.sheet button.ghost { color: var(--muted); background: transparent; }

.profile-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-row span { color: var(--muted); }
.profile-row strong { text-align: right; overflow-wrap: anywhere; }

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lineups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .top {
    left: 212px;
    min-height: var(--header);
    padding: 0 28px;
  }
  .wrap {
    padding: calc(var(--header) + 16px) 28px 40px 236px;
    max-width: none;
  }
  .menu-btn, .drawer, .scrim { display: none; }
  .shell.pin-matches .wrap { padding-bottom: 16px; }
  .tabbar button.active {
    color: #2a1006;
    background: linear-gradient(180deg, #ff935c, #e85d24);
  }
  .tabbar {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 212px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-top: 0;
    border-right: 1px solid var(--line);
    padding: 18px 12px;
  }
  .tabbar button {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    border-radius: 12px;
    padding: 0 12px;
  }
  .side-more { display: flex; flex-direction: column; margin-top: 16px; gap: 4px; }
  .side-more p {
    margin: 8px 12px;
    color: var(--faint);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .tabbar > .sponsor { display: block; margin-top: auto; }
  .tabbar > .apk-link { display: flex; margin: 8px 0; padding: 0 12px; }
  .tabbar > .logout-btn { display: flex; }
  .tabbar > .connection { display: flex; margin: 0 12px; padding: 4px 0 8px; }
  .stack.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dialog.sheet { margin: auto; border-radius: 22px; }
}

.slide-in {
  animation: slide-in 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-in {
  from { transform: translateX(var(--slide-from, 100%)); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .slide-in { animation: none; }
}

/* Live league night (play.js) */
.play-week { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; }
.play-week > div { text-align: center; flex: 1; }
.play-week .sub { margin: 2px 0 0; }
.play-week .icon-btn { font-size: 1.4rem; min-width: 2.6rem; }
.play-week .icon-btn:disabled { opacity: 0.3; }
.mini-btn { font: inherit; font-size: 0.85rem; font-weight: 600; border-radius: 999px; padding: 0.38rem 0.8rem; border: 1px solid var(--ember); background: var(--ember); color: #2a1006; cursor: pointer; }
.mini-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.mini-btn:disabled { opacity: 0.5; cursor: default; }
.play-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.play-controls input { font: inherit; background: #0f1319; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 0.35rem 0.5rem; }
.rack { display: inline-flex; align-items: center; gap: 6px; padding-right: 6px; }
.rack > span { color: var(--muted); font-size: 0.85rem; }
.play-admin { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0 4px; }
.play-night + .play-night { margin-top: 18px; padding-top: 6px; border-top: 1px dashed var(--line); }
.play-lineup { margin: 8px 0 0; padding-left: 1.3rem; display: grid; gap: 4px; }
.chip.live { color: var(--felt); }
.play-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(5, 7, 10, 0.72); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.play-sheet > .card { width: min(560px, 100%); max-height: 86vh; overflow: auto; }
.play-pick { display: grid; gap: 8px; margin: 10px 0; }
.pick { font: inherit; text-align: left; display: grid; grid-template-columns: 1.8rem 1fr; column-gap: 8px; align-items: center; background: #0f1319; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.75rem; cursor: pointer; }
.pick .sub { grid-column: 2; margin: 0; font-size: 0.8rem; }
.pick b { grid-row: span 2; color: var(--ember); text-align: center; }
.pick.on { border-color: var(--ember); background: rgba(255, 122, 60, 0.12); }
.apk-link { display: inline-flex; justify-content: center; align-items: center; gap: 8px; color: var(--ember-2); text-decoration: none; font-weight: 600; margin-top: 12px; }
.apk-link svg { width: 1.2rem; height: 1.2rem; }
.apk-link[hidden] { display: none; }
#match-called { position: fixed; right: 12px; bottom: calc(var(--nav) + 12px); z-index: 50; display: grid; gap: 8px; width: min(360px, calc(100vw - 24px)); }
#match-called .called { border-color: var(--ember); box-shadow: var(--shadow); }
#match-called .called p { margin: 4px 0 8px; }

.drawer .apk-link { padding: 0.6rem 0.9rem; margin: 4px 0; }

/* Sponsor in the side menu and drawer */
.sponsor p { margin: 8px 12px 4px; color: var(--faint); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.sponsor a { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.sponsor a:hover { background: var(--line); }
.sponsor img { width: 64px; height: auto; border-radius: 8px; background: #000; }
.drawer .sponsor { margin: 6px 0; }

/* Food menu link (venues.js) in the side menu and drawer */
.food-menu { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 14px 0; color: var(--ink); text-decoration: none; font-size: 1rem; }
.food-menu svg { width: 22px; height: 22px; flex: none; }
.food-menu small { display: block; color: var(--faint); font-size: 0.78rem; }
.side-more .food-menu { min-height: 52px; padding: 6px 12px; gap: 10px; border-radius: 12px; color: var(--muted); font-size: 0.95rem; }
.side-more .food-menu:hover { background: var(--line); color: var(--ink); }
.profile-row a { color: var(--ember-2, #ffb088); text-decoration: none; }

/* Roles: Venue schedule and Admin / Manage (staff.js) */
.staff-card { display: grid; gap: 12px; }
.staff-field { display: grid; gap: 6px; color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; }
.staff-field select, .staff-field input, .staff-add select, .staff-role select, .staff-search {
  min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit;
}
.staff-list { display: grid; }
.staff-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.staff-row small { display: block; color: var(--faint); font-size: 0.78rem; }
.staff-role .staff-row { border-bottom: 0; }
.staff-role { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.staff-venues { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 0 8px; color: var(--muted); }
.staff-save { display: flex; gap: 8px; padding-bottom: 6px; }
.staff-add { display: flex; gap: 8px; flex-wrap: wrap; }
.staff-add select { flex: 1; min-width: 200px; }
#staff-root .error { color: var(--loss, #ff6b7a); }
.staff-venues label { display: inline-flex; align-items: center; gap: 8px; }
.staff-venues input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--ember); }

/* Standings: Division Standings and Massé Standings tabs */
.standings-tabs { margin: 0 0 12px; }
.standings-note { margin: 0 0 12px; }

/* Massé: one venue-level event (every team's massé player and score), shown once per venue. */
.masse-teams { display: grid; gap: 6px; margin-top: 10px; }
.masse-team { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 3.2em; gap: 8px; align-items: baseline; }
.masse-team.head { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.masse-team .who { font-weight: 600; overflow-wrap: anywhere; }
.masse-team .score { text-align: right; font-weight: 700; font-size: 20px; }
.masse-team.head span:last-child { text-align: right; }
.masse-team.you .who { color: var(--ember, #f08a24); }

/* Banks: "Bank (wk N)" and "Bank total" on a compact second line (wraps on narrow phones). */
.bank-line { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; }
.bank-line strong { color: var(--ink, inherit); font-weight: 700; }
.stats .stat.span2 { grid-column: 1 / -1; }

/* Admin player editor */
.pe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; margin: 10px 0 0; }
.pe-grid .staff-field { margin-bottom: 8px; }
.pe-grid input { width: 100%; box-sizing: border-box; }
.pe-pick { width: 100%; text-align: left; background: none; border: 0; color: inherit; padding: 8px 0; cursor: pointer; }

/* Admin schedule editor */
.sched-form { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.mini-btn.danger { color: #ff8a80; border-color: rgba(255, 138, 128, 0.5); }
.pe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pe-grid select, .pe-grid input { min-width: 0; width: 100%; box-sizing: border-box; }
.bye-note { margin: 8px 0 0; }
.masse-confirm p { margin: 8px 0; }

/* My account */
.account-form { display: grid; gap: 10px; }
.account-form .mini-btn { justify-self: start; }
.account-card + .account-card { margin-top: 12px; }
