/* =========================================
   GO — Player-facing public surface styles
   ========================================= */

/* ── Body ── */
.go-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

/* ── Sticky Top Bar ── */
.go-top-bar {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.go-top-bar__left,
.go-top-bar__right {
  width: 72px;
  flex-shrink: 0;
}

.go-top-bar__right {
  text-align: right;
}

.go-top-bar__logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.go-top-bar__center {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.go-top-bar__signin {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

/* ── Feedback heart menu (epic 0036 §4) ── */
.go-fb { position: relative; }
/* Heart stroke carries the brand gradient via its inline SVG defs —
   identical in both themes, like the logotype. */
.go-fb__heart {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.go-fb__heart::-webkit-details-marker { display: none; }
.go-fb__heart:hover { background: var(--bg-2); }

.go-fb__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 60;
  display: flex;
  flex-direction: column;
  /* Tall content scrolls inside __scroll; the theme toggle row below it
     stays pinned outside the scroll area. */
  max-height: min(72vh, 560px);
}
.go-fb__scroll { overflow-y: auto; flex: 1; min-height: 0; }

/* Product Updates — hardcoded release notes (see the partial's comment). */
.go-fb-updates { text-align: left; }
.go-fb-updates__label {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 0.6rem;
}
.go-fb-updates__item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}
.go-fb-updates__icon { color: var(--ink-2); line-height: 1.3; flex-shrink: 0; display: inline-flex; margin-top: 2px; }
.go-fb-updates__title { font-size: 0.8rem; font-weight: 700; }
.go-fb-updates__desc { font-size: 0.74rem; color: var(--ink-2); line-height: 1.4; }
.go-fb-updates__hint {
  font-size: 0.7rem;
  color: var(--ink-3);
  font-style: italic;
  text-align: center;
  margin: 0.35rem 0 0.75rem;
}

/* Animated mini game card: the body layer swipes open over the action
   panel (70% = the real gesture's cap), holds ~3s, swipes back, loops. */
.go-fb-swipedemo__slider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  height: 100%;
  background: var(--surface);
  animation: go-fb-swipedemo-slide 8s ease-in-out infinite;
}
@keyframes go-fb-swipedemo-slide {
  0%, 12% { transform: translateX(0); }
  22%, 62% { transform: translateX(-70%); }
  72%, 100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .go-fb-swipedemo__slider { animation: none; transform: translateX(-70%); }
}
.go-fb-swipedemo__body { flex: 1; min-width: 0; padding: 7px 10px; display: flex; flex-direction: column; gap: 4px; justify-content: center; background: var(--surface); }
.go-fb-swipedemo__row1 { font-size: 0.58rem; color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go-fb-swipedemo__row2 { font-size: 0.68rem; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.go-fb-swipedemo__vs { color: var(--ink-3); font-weight: 600; }
.go-fb-swipedemo__team { font-weight: 800; }
.go-fb-swipedemo__elo {
  font-size: 0.56rem;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--ink-2);
  border-radius: var(--r-pill);
  padding: 1px 6px;
}
.go-fb-swipedemo__dots {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-left: 1px solid var(--line-2);
  color: var(--ink-4);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.go-fb-swipedemo {
  position: relative;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  overflow: hidden;
  height: 52px;
  margin-top: 0.2rem;
}
.go-fb-swipedemo__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 70%;
  display: flex;
  background: var(--bg-2);
}
.go-fb-swipedemo__btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.15;
}
.go-fb-swipedemo__btn + .go-fb-swipedemo__btn { border-left: 1px solid var(--line); }
.go-fb__sec { padding: 0.85rem 0.9rem; }
.go-fb__q {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  white-space: nowrap;
  text-align: center;
}
.go-fb__thumbs {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: 0.7rem;
}
.go-fb__thumb {
  width: 66px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-3);
}
.go-fb__thumb svg { width: 24px; height: 24px; }
.go-fb__thumb--up.on {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}
.go-fb__thumb--down.on {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}
.go-fb__box {
  width: 100%;
  min-height: 66px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--surface);
}
.go-fb__box::placeholder { color: var(--ink-3); font-style: italic; }
.go-fb__submit {
  margin-top: 0.55rem;
  width: 100%;
  padding: 0.5rem;
  border: 0;
  border-radius: var(--r-md);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.go-fb__submit[disabled] { opacity: 0.4; cursor: default; }
.go-fb__divider { height: 1px; background: var(--line); }
.go-fb__confirm { text-align: center; padding: 1.6rem 1rem; }
.go-fb__confirm svg { color: var(--success); display: block; margin: 0 auto; }
.go-fb__confirm p { font-size: 0.9rem; font-weight: 700; margin-top: 0.5rem; }
.go-fb__confirm span { font-size: 0.78rem; color: var(--ink-3); }

/* Theme toggle row at the menu base — shows the CURRENT mode (sun + "Light
   Mode" in light, moon + "Dark Mode" in dark; Kyle 07-27). Knob position,
   glyph, and label are all CSS-driven off html.theme-dark. */
.go-fb-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: left;
}
.go-fb-toggle__track {
  width: 46px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
}
.go-fb-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
  transition: left 0.15s;
}
html.theme-dark .go-fb-toggle__knob { left: 22px; }
.go-fb-toggle__glyph--moon { display: none; }
html.theme-dark .go-fb-toggle__glyph--moon { display: inline; }
html.theme-dark .go-fb-toggle__glyph--sun { display: none; }
.go-fb-toggle__label { font-size: 0.85rem; font-weight: 600; }
.go-fb-toggle__label--dark { display: none; }
html.theme-dark .go-fb-toggle__label--dark { display: inline; }
html.theme-dark .go-fb-toggle__label--light { display: none; }

/* ── Fixed Bottom Tab Bar ── */
.go-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 56px;
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  z-index: 50;
  box-sizing: content-box;
}

.go-bottom-bar__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  padding: 6px 0;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.15s;
}

.go-bottom-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.go-bottom-bar__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink);
  stroke-width: 1.8;
}

.go-bottom-bar__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.go-bottom-bar__tab--active {
  color: var(--cyan-500);
}

.go-bottom-bar__tab--active .go-bottom-bar__icon svg {
  stroke: var(--cyan-500);
  stroke-width: 2.2;
}

.go-bottom-bar__tab--active .go-bottom-bar__label {
  font-weight: 700;
}

/* Hide scrollbar on mobile go pages */
@media (max-width: 768px) {
  html:has(.go-body) {
    scrollbar-width: none;
  }
  html:has(.go-body)::-webkit-scrollbar {
    display: none;
  }
}

/* ── League Header ── */
.go-league-header__banner {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.go-league-header__banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Default league hero — decorative dark-navy brand gradient, identical in
   both themes (theme-invariant literals by design). */
.go-league-header__banner--default {
  background: linear-gradient(135deg, #0f1722 0%, #1e3a5f 40%, #2a5a8a 70%, #1a4570 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.go-league-header__watermark {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white-a06);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  user-select: none;
}

.go-league-header__info {
  padding: 1rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.go-league-header__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.go-league-header__meta {
  font-size: var(--text-sm);
  color: var(--ink-3);
  margin-top: 0.25rem;
}

.go-league-header__status {
  display: inline-block;
  background: var(--success-soft);
  color: var(--success-dark);
  padding: 1px 6px;
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  font-weight: 600;
}

.go-league-header__status--neutral {
  background: var(--bg-2);
  color: var(--ink-3);
}

/* ── League Section Nav ── */
.go-league-nav {
  display: flex;
  gap: 1.5rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.go-league-nav__link {
  color: var(--ink-3);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}

.go-league-nav__link:hover {
  color: var(--ink);
}

.go-league-nav__link--active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* ── Flash ──
   A floating note, not a banner (epic 0044): capped width so it never spans
   the screen, long messages wrap, and it fades itself out — the #flash shell
   is fixed/width:max-content, so the cap here is what makes wrapping work.
   The Go chrome is taller than HQ's (navbar + season subbar); drop the shell
   below both instead of overlapping the subbar. */
.go-body #flash { top: calc(var(--navbar-height, 57px) + 4rem); }
.go-flash {
  max-width: min(480px, calc(100vw - 2rem));
  margin: 0 auto;
  width: auto;
}

.go-flash__notice {
  background: var(--success-soft);
  color: var(--success-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  margin-top: 1rem;
  overflow-wrap: break-word;
  box-shadow: var(--shadow);
  animation: go-flash-fade 6.5s ease forwards;
}

.go-flash__alert {
  background: var(--danger-soft);
  color: var(--danger-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  margin-top: 1rem;
  overflow-wrap: break-word;
  box-shadow: var(--shadow);
  animation: go-flash-fade 6.5s ease forwards;
}

@keyframes go-flash-fade {
  0%, 88% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* ── Main Content ── */
.go-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 16px 1.25rem 0;
}

/* ── Footer ── */
.go-footer {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--ink-4);
  border-top: 1px solid var(--line-2);
  margin-top: 3rem;
}

/* ── Explore Page ── */
.explore__header {
  padding: 2rem 0 1.25rem;
}

.explore__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.explore__subtitle {
  color: var(--ink-3);
  font-size: var(--text-sm);
  margin-top: 0.25rem;
}

.explore__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding-bottom: 2rem;
}

.explore-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}

.explore-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.explore-card__banner {
  height: 100px;
  overflow: hidden;
}

.explore-card__banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-card__banner-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f1722 0%, #1e3a5f 40%, #2a5a8a 70%, #1a4570 100%);
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.explore-card__body {
  padding: 0.75rem;
}

.explore-card__title {
  font-weight: 700;
  color: var(--ink);
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.explore-card__sport {
  color: var(--ink-3);
  font-size: var(--text-xs);
  margin-bottom: 0.5rem;
}

.explore-card__stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.explore-card__org {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-2);
  font-size: var(--text-xs);
  color: var(--ink-4);
}

/* ── Page Layout ── */
.go-page {
  width: 100%;
  padding: 2rem 0 0;
}

.go-page__header {
  margin-bottom: 1.25rem;
}

.go-page__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.go-page__subtitle {
  color: var(--ink-3);
  font-size: var(--text-sm);
  margin-top: 0.25rem;
}

/* ── Empty State ── */
.go-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.go-empty__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.go-empty__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.go-empty__text,
.go-empty__desc {
  color: var(--ink-3);
  font-size: var(--text-sm);
  margin-bottom: 1.5rem;
}

/* ── Form Pages (Waitlist, Login stub) ── */
.go-form-page {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.go-form-card {
  max-width: 400px;
  width: 100%;
}

.go-form-card__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  margin: 0 0 0.5rem;
}

.go-form-card__desc {
  color: var(--ink-3);
  font-size: var(--text-sm);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.go-form-card__notice {
  background: var(--success-soft);
  color: var(--success-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  margin-bottom: 1rem;
  text-align: center;
}

.go-form-card__footer {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin-top: 1.5rem;
}

.go-form-card__footer a {
  color: var(--accent);
  text-decoration: none;
}

.go-form__errors {
  background: var(--danger-soft);
  color: var(--danger-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  margin-bottom: 1rem;
}

.go-form__errors p {
  margin: 0;
}

.go-form__errors p + p {
  margin-top: 0.25rem;
}

.go-form__field {
  margin-bottom: 0.75rem;
}

.go-form__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.go-form__input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s;
}

.go-form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.go-form__submit {
  display: block;
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-top: 1rem;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  transition: opacity 0.15s;
}

.go-form__submit:hover {
  opacity: 0.9;
}

/* ── Members-Only Gate ── */
.go-gate {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.go-gate__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.go-gate__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.go-gate__desc {
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.go-gate__btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: opacity 0.15s;
}

.go-gate__btn:hover {
  opacity: 0.9;
}

/* ── My Schedule Controls ── */
.go-sticky-filters {
  position: sticky;
  top: 48px;
  z-index: 30;
  background: var(--bg);
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.go-filter-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: stretch;
}

.go-filter-row__team { flex: 1; min-width: 0; max-width: 600px; }
.go-filter-row__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  height: 100%;
}

.go-team-picker__select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.go-group-picker__label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-3);
  white-space: nowrap;
}

.go-group-picker__select {
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem 0;
}

/* ── Date selector (toggle bar) ── */
.go-date-selector {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 1rem;
  user-select: none;
  max-width: 600px;
}

.go-date-selector__adjacent {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-4);
  background: var(--bg-2);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.1s, background 0.1s;
  min-width: 0;
  overflow: hidden;
}

.go-date-selector__adj-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.go-date-selector__adj-arrow {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--ink-4);
  line-height: 1;
}

.go-date-selector__adjacent:hover { color: var(--ink-2); background: var(--bg-3); }

.go-date-selector__adjacent--disabled {
  pointer-events: none;
  color: transparent;
}

.go-date-selector__current {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

/* ── Calendar dropdown ── */
.go-date-selector__calendar {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 10px;
  z-index: 20;
  min-width: 260px;
}

.go-date-selector__calendar.is-open { display: block; }

.go-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.go-cal__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.go-cal__nav {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--ink-3);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  line-height: 1;
}

.go-cal__nav:hover { background: var(--bg-2); color: var(--ink); }

.go-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  text-align: center;
}

.go-cal__day-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ink-4);
  text-transform: uppercase;
  padding: 4px 0;
}

.go-cal__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  font-size: 0.8rem;
  border-radius: 50%;
  color: var(--ink-4);
}

.go-cal__cell--disabled { cursor: default; }

.go-cal__cell--game {
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  transition: background 0.1s;
}

.go-cal__cell--game:hover {
  background: var(--bg-2);
}

.go-cal__cell--selected {
  background: var(--accent) !important;
  color: var(--white) !important;
}

/* ── Game card: stacked-row layout ── */
.go-game-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--accent);
  display: flex;
}

.go-game-card--reffing {
  border-left-color: var(--warning);
}

.go-game-card__body {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  background: var(--surface);
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
}

.go-game-card.is-actions-open .go-game-card__body {
  transform: translateX(-70%);
}

.go-game-card__body:has(.is-open) {
  z-index: 10;
}

/* Row 1: time, [ref], pipe, location, [icons] */
.go-game-card__row1 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin-bottom: 4px;
  min-width: 0;
}

/* Epic 0034 §10 — the playoff badge on a non-playoff surface. */
.go-game-card__playoff { margin-bottom: 4px; }

.playoff-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  color: var(--ink-2);
  font-weight: 600;
  min-width: 0;
}
.playoff-badge__tag {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: var(--r-pill);
  padding: 1px 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.playoff-badge__bracket {
  position: relative;
  padding-left: 11px;
  white-space: nowrap;
}
/* the bracket's colour dot — the same identity the Playoff page uses */
.playoff-badge__bracket::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--playoff-badge-dot, var(--ink-4));
}
.playoff-badge__round,
.playoff-badge__match {
  color: var(--ink-3);
  white-space: nowrap;
}
.playoff-badge__round::before,
.playoff-badge__match::before { content: "· "; }

/* "Gold · Quarterfinals · M3" compacts to "Gold · M3" when it won't fit. */
@media (max-width: 380px) {
  .playoff-badge__round { display: none; }
}

.go-game-card__time {
  white-space: nowrap;
  flex-shrink: 0;
}

.go-game-card__ref-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--warning-soft);
  color: var(--warning-dark);
  flex-shrink: 0;
}

.go-game-card__pipe {
  color: var(--ink-4);
  flex-shrink: 0;
}

.go-game-card__loc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.go-game-card__row1-icons {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  flex-shrink: 0;
}

.go-game-card__note-icon {
  position: relative;
}

.go-game-card__note-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--warning-dark);
  font-size: 0.75rem;
  padding: 0 2px;
  line-height: 1;
}

.go-game-card__note-popover {
  display: none;
  position: fixed;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  font-size: var(--text-xs);
  color: var(--ink-2);
  white-space: normal;
  min-width: 160px;
  max-width: 280px;
  z-index: 9999;
}

.go-game-card__note-popover.is-open {
  display: block;
}

.go-game-card__note-popover--dark {
  background: var(--ink);
  color: var(--white);
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.go-game-card__note-icon--inline {
  color: var(--warning-dark);
  font-size: 0.65rem;
  cursor: help;
  margin-left: 4px;
}

.go-game-card__conflict-icon {
  position: relative;
  color: var(--warning);
  font-size: 0.75rem;
  line-height: 1;
}
.go-game-card__conflict-btn {
  background: none;
  border: none;
  padding: 2px;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
  line-height: 1;
}
.go-game-card__conflict-popover {
  display: none;
  position: fixed;
  padding: 6px 10px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 9999;
  box-shadow: var(--shadow);
}
.go-game-card__conflict-popover.is-open {
  display: block;
}

/* Team rows (scored and unscored) */
.go-game-card__team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  gap: 4px;
}

.go-game-card__team-info {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.go-game-card__team-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.go-game-card__team-name--lose {
  color: var(--ink-3);
  font-weight: 500;
}

.go-game-card__vs {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-4);
  flex-shrink: 0;
  margin-right: 2px;
}

.go-game-card__vs-inline {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-4);
  margin: 0 2px;
  flex-shrink: 0;
}

.go-game-card__elo {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--bg-2);
  padding: 1px 5px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  flex-shrink: 0;
}

/* Scores section: win-indicator + score */
.go-game-card__scores {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.go-game-card__win-ind {
  width: 32px;
  text-align: center;
  font-size: 0.6rem;
  color: var(--ink-4);
  flex-shrink: 0;
}

.go-game-card__final-tag {
  font-size: 0.5rem;
  font-weight: 800;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.go-game-card__score-val {
  width: 24px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.go-game-card__score-val--bold {
  font-weight: 800;
  color: var(--ink);
}


/* ── Action bar (swipe-to-reveal) ── */
.go-game-card__action-bar {
  width: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  cursor: pointer;
  flex-shrink: 0;
  color: var(--ink-4);
  font-size: 10px;
  user-select: none;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease, background 0.15s;
}

.go-game-card__action-bar:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.go-game-card__action-bar-icon {
  font-size: 10px;
  line-height: 1;
}

.go-game-card__actions {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 70%;
  display: flex;
  align-items: stretch;
  background: var(--bg-2);
  z-index: 1;
}

.go-game-card__action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  padding: 6px 2px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  text-align: center;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.1s;
}

.go-game-card__action-btn span {
  line-height: 1.15;
  /* Labels wrap to two rows so every action fits the 70% panel without
     horizontal scroll. The fixed two-line box keeps all buttons' content
     the same height, so centered buttons still have level icons and
     top-aligned labels (epic 0036 §6, Kyle 07-28). */
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
  max-width: 100%;
  min-height: 2.3em;
}

.go-game-card__action-btn:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.go-game-card__action-btn svg {
  color: var(--ink-3);
  flex-shrink: 0;
}

/* ── Desktop table view ── */
.go-sched-desktop { display: none; }

.go-sched-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  margin: 0;
}

.go-sched-table thead th {
  padding: 8px 10px;
  text-align: left;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 700;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}

.go-sched-table__row td {
  padding: 7px 10px;
  border-top: 1px solid var(--line-2);
  vertical-align: middle;
  font-size: var(--text-sm);
}

.go-sched-table__row:hover {
  background: var(--surface-2);
}

.go-sched-table__row--reffing {
  border-left: 3px solid var(--warning);
}

.go-sched-table__time {
  white-space: nowrap;
  color: var(--ink-2);
}

.go-sched-table__location {
  color: var(--ink-3);
  white-space: nowrap;
}

.go-sched-table__team-a,
.go-sched-table__team-b {
  font-weight: 600;
}

.go-sched-table__team-a {
  text-align: right;
}

.go-sched-table__team-info {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.go-sched-table__score {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.go-sched-table__elo-delta {
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.go-sched-table__delta {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
}

.go-sched-table__delta--pos {
  color: var(--success-dark);
  background: var(--success-soft);
}

.go-sched-table__delta--neg {
  color: var(--danger);
  background: var(--danger-soft);
}

.go-sched-table__status span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-4);
}

.go-sched-table__status--completed { color: var(--ink-3); }
.go-sched-table__status--finalized { color: var(--success-dark); }

.go-sched-table__icons {
  white-space: nowrap;
  width: 1%;
}

.go-sched-table__actions {
  width: 1%;
  white-space: nowrap;
}

.go-sched-table__action-menu {
  position: relative;
}

.go-sched-table__action-trigger {
  background: none;
  border: none;
  padding: 2px 6px;
  font-size: 1.1rem;
  color: var(--ink-4);
  cursor: pointer;
  line-height: 1;
  border-radius: var(--r-sm);
}

.go-sched-table__action-trigger:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.go-sched-table__action-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 20;
  min-width: 160px;
  padding: 4px 0;
}

.go-sched-table__action-dropdown.is-open {
  display: block;
}

.go-sched-table__action-item {
  display: block;
  padding: 6px 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.go-sched-table__action-item:hover {
  background: var(--bg-2);
}

@media (min-width: 768px) {
  .go-sched-mobile { display: none; }
  .go-sched-desktop { display: block; }
}

/* ── Buttons ── */
.go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.go-btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.go-btn--primary:hover { opacity: 0.9; }

.go-btn--secondary {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--line);
}
.go-btn--secondary:hover { background: var(--bg-2); }

/* ── Submit Score page ── */
.go-submit-score {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  max-width: 480px;
  margin: 0 auto;
}

.go-submit-score__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.go-submit-score__meta {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin: 0 0 0.15rem;
}

.go-submit-score__location {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin: 0 0 0.75rem;
}

.go-submit-score__submitter {
  font-size: 0.82rem;
  color: var(--ink-2);
  margin: 0 0 1rem;
  padding: 0.4rem 0.6rem;
  background: var(--bg-2);
  border-radius: var(--r-sm);
}

.go-submit-score__form { display: flex; flex-direction: column; gap: 1rem; }

.go-submit-score__pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.go-submit-score__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
}

.go-submit-score__side-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.go-submit-score__slot--a .go-submit-score__side-label { color: var(--accent); }
.go-submit-score__slot--b .go-submit-score__side-label { color: var(--danger); }

.go-submit-score__team-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.go-submit-score__input {
  width: 64px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.5rem;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
}
.go-submit-score__input:focus {
  outline: none;
  border-color: var(--accent);
}

.go-submit-score__dash {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink-3);
  padding-top: 2rem;
}

.go-submit-score__notes-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.25rem;
}

.go-submit-score__notes-field {
  width: 100%;
  min-height: 60px;
  padding: 0.5rem;
  font-size: 0.88rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
}

.go-submit-score__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

/* ── View Submissions page ── */
/* ── Score Submissions Timeline ── */
.go-sub-timeline {
  display: flex;
  flex-direction: column;
}

.go-sub-timeline__item {
  display: flex;
  gap: 0.75rem;
}

.go-sub-timeline__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16px;
  flex-shrink: 0;
}

.go-sub-timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--line);
  flex-shrink: 0;
  margin-top: 4px;
}

.go-sub-timeline__dot--active {
  background: var(--cyan-500);
  box-shadow: 0 0 0 2px var(--cyan-500);
}

.go-sub-timeline__line {
  width: 2px;
  flex: 1;
  background: var(--line);
  margin: 4px 0;
}

.go-sub-timeline__content {
  flex: 1;
  min-width: 0;
  padding-bottom: 1.25rem;
}

.go-sub-timeline__date {
  font-size: var(--text-sm);
  color: var(--ink-3);
  font-weight: 600;
}

.go-sub-timeline__submitter {
  font-size: var(--text-sm);
  color: var(--ink);
  font-weight: 600;
  margin-top: 2px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.go-sub-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 12px);
  padding: 0.75rem;
  overflow: hidden;
}

.go-sub-card__active-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px 3px 10px;
  border-bottom-left-radius: var(--r-md, 8px);
  background: var(--cyan-500); /* referee-badge cyan — theme-invariant */
  color: var(--white);
}

.go-sub-card__row-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  align-items: start;
}

.go-sub-card__row-names--badge-inset {
  padding-top: 1.25rem;
}

.go-sub-card__row-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.go-sub-card__team-info {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.go-sub-card__team-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.go-sub-card__score {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
}

.go-sub-card__notes {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-2, var(--line));
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.go-view-submissions__role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.4rem;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--ink-3);
}

.go-view-submissions__role--staff {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.go-view-submissions__role--player {
  background: var(--success-soft);
  color: var(--success-dark);
}

.go-view-submissions__role--referee {
  background: var(--success-soft);
  color: var(--success-dark);
}

.go-view-submissions__empty {
  text-align: center;
  color: var(--ink-3);
  padding: 2rem 0;
  font-size: 0.88rem;
}


.go-load-more {
  display: block;
  width: 100%;
  padding: 0.65rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s;
}

.go-load-more:hover {
  background: var(--bg-2);
}

/* ── My Teams ── */
.go-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
}

.go-section-label--collapsible {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}
.go-section-label--collapsible:hover { color: var(--ink-2); }

.go-section-label__chevron {
  font-size: 0.6rem;
  transition: transform 0.15s;
}
.go-section-label__chevron--open {
  transform: rotate(90deg);
}

.go-schedule-notice-banner {
  padding: 6px 12px;
  margin: -4px 0 12px;
  background: var(--info-soft);
  border-left: 3px solid var(--info);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.4;
}

.go-team-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}

.go-team-card:hover {
  box-shadow: var(--shadow);
}

.go-team-card--past {
  opacity: 0.8;
}

.go-team-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.go-team-card__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.go-team-card__name {
  font-weight: 700;
  color: var(--ink);
}

.go-team-card__role {
  font-size: 0.71rem;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-weight: 600;
}

.go-team-card__role--captain {
  background: var(--accent-light);
  color: var(--accent);
}

.go-team-card__role--player {
  background: var(--bg-2);
  color: var(--ink-3);
}

.go-team-card__meta {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 3px;
}

.go-team-card__arrow {
  font-size: 0.85rem;
  color: var(--ink-4);
}

.go-team-card__stats {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-2);
  margin-top: 0.5rem;
}

.go-team-card__stat-label {
  color: var(--ink-3);
}

.go-team-card__stat-value {
  font-weight: 600;
  color: var(--ink);
}

.go-team-card__stat-value--record {
  color: var(--success);
}

/* ── Team Drilldown ── */
.go-back-link {
  margin-bottom: 0.75rem;
}

.go-back-link a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.go-team-header {
  margin-bottom: 1rem;
}

.go-team-header__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.go-team-header__name {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--ink);
}

.go-team-header__edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-3);
  padding: 4px;
  border-radius: 4px;
}

.go-team-header__edit-btn:hover {
  color: var(--ink);
  background: var(--bg-2);
}

.go-team-header__icon-edit {
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}

.go-team-header__icon-pencil {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}

.go-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--line);
}

.go-tabs__tab {
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
}

.go-tabs__tab:hover {
  color: var(--ink);
}

.go-tabs__tab--active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.go-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 1.25rem;
}

.go-stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px;
  text-align: center;
}

.go-stat-tile__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.go-stat-tile__value--record {
  color: var(--success);
}

.go-stat-tile__label {
  font-size: 0.71rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.go-detail-section__label {
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.go-form-strip {
  display: flex;
  gap: 4px;
  margin-bottom: 1.25rem;
}

.go-form-strip__box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--white);
}

.go-form-strip__box--win  { background: var(--success); }
.go-form-strip__box--loss { background: var(--danger); }
.go-form-strip__box--draw { background: var(--ink-4); }

.go-roster-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.go-roster-list__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.85rem;
}

.go-roster-list__row:last-child {
  border-bottom: none;
}

.go-roster-list__name {
  color: var(--ink);
}

.go-roster-list__badge {
  font-size: 0.71rem;
  font-weight: 600;
}

.go-roster-list__badge--captain {
  color: var(--accent);
}

/* ── Roster tab (captain management) — card layout ── */
.go-roster-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 1rem;
}
.go-roster-card {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line-2);
}
.go-roster-card:last-child { border-bottom: none; }
.go-roster-card__body { flex: 1; min-width: 0; }
.go-roster-card__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.go-roster-card__name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.go-roster-card__email {
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.go-roster-card__details {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 2px;
}
.go-roster-card__sep { color: var(--ink-4); }
.go-roster-card__action {
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.go-roster-card__action .action-dropdown { display: inline-block; }
.go-roster-card__action .action-trigger { font-size: 1.1rem; padding: 4px 6px; }

.go-roster-table__status { font-size: 0.71rem; font-weight: 600; }
.go-roster-table__status--joined { color: var(--success); }
.go-roster-table__status--pending { color: var(--warning); }
.go-roster-table__status--expired { color: var(--danger); }
.go-roster-table__status--neutral { color: var(--ink-4); }

@media (max-width: 768px) {
  .go-roster-card { padding: 0.75rem; }
  .go-roster-card__action .action-menu { right: 0; left: auto; }
}

.go-roster-add-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.75rem;
}
.go-roster-add-form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem;
}
.go-roster-add-form__row--3col { grid-template-columns: 1fr 1fr 1fr; }
.go-roster-add-form__label {
  display: block; font-size: 0.65rem; font-weight: 600; color: var(--ink-3);
  text-transform: uppercase; margin-bottom: 3px;
}
.go-roster-add-form__input {
  width: 100%; padding: 0.35rem 0.5rem;
  border: 1px solid var(--line); border-radius: 4px;
  font-size: 0.82rem; color: var(--ink);
}
.go-roster-add-form__actions { margin-top: 0.5rem; }

/* ── Games tab ── */
.go-game-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 0.5rem;
  background: var(--surface);
}

.go-game-result__teams {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.go-game-result__team {
  color: var(--ink-2);
}

.go-game-result__team--winner {
  font-weight: 700;
  color: var(--ink);
}

.go-game-result__score {
  font-weight: 700;
  color: var(--ink);
}

.go-game-result__elo-delta {
  font-size: 0.78rem;
  font-weight: 600;
}

.go-game-result__elo-delta--pos {
  color: var(--success);
}

.go-game-result__elo-delta--neg {
  color: var(--danger);
}

/* ── Opponents tab ── */
.go-opponent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 0.5rem;
  background: var(--surface);
}

.go-opponent-row__name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.85rem;
}

.go-opponent-row__record {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.go-opponent-row__stat {
  font-weight: 600;
  color: var(--ink-2);
}

.go-opponent-row__games {
  color: var(--ink-4);
}

/* ── Profile ── */

.go-profile-section {
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--surface);
}

.go-profile-section__header {
  padding: 0.6rem 1rem;
  background: var(--bg-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--card-border);
}

.go-profile-section__body {
  padding: 1.25rem;
}

.go-profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.go-profile-hint {
  font-size: var(--text-xs);
  color: var(--ink-4);
  margin-top: 4px;
}

.go-profile-avatar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 4px;
}

.go-profile-avatar__img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.go-profile-avatar__initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-base);
}

.go-profile-avatar__actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.go-profile-avatar__upload {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.go-profile-avatar__input {
  display: none;
}

.go-profile-avatar__remove {
  font-size: var(--text-xs);
  color: var(--ink-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.go-profile-btn {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  border: none;
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.75rem;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  transition: opacity 0.15s;
}

.go-profile-btn:hover {
  opacity: 0.9;
}

.go-profile-btn--secondary {
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--card-border);
}

.go-profile-btn--secondary:hover {
  background: var(--bg-2);
  opacity: 1;
}

.go-profile-subsection {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--card-border);
}

.go-profile-subsection:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.go-profile-subsection__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.go-profile-subsection__count {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--ink-3);
}

.go-profile-sessions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.go-profile-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  font-size: var(--text-sm);
  border-radius: var(--r-sm);
}

.go-profile-session__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.go-profile-session__agent {
  color: var(--ink-2);
}

.go-profile-session__current {
  font-size: var(--text-xs);
  color: var(--success);
  font-weight: 600;
}

.go-profile-session__date {
  font-size: var(--text-xs);
  color: var(--ink-4);
}

.go-profile-session__revoke {
  font-size: var(--text-xs);
  color: var(--danger);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.go-profile-session__revoke:hover {
  text-decoration: underline;
}

/* ── Profile Sign Out ── */
.go-profile-signout {
  text-align: center;
  padding: 1.5rem 0;
}

.go-profile-signout__btn {
  width: 100%;
  max-width: 400px;
}

/* ── Invite Card ── */
.go-invite-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.go-invite-card__row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-light, var(--border));
}
.go-invite-card__row:last-child { border-bottom: none; }
.go-invite-card__label {
  font-weight: 600;
  color: var(--ink-3);
  font-size: var(--text-sm);
}
.go-invite-card__value {
  font-weight: 500;
  color: var(--ink);
}

/* ── ELO Chip ── */
.go-elo-chip {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--bg-2);
  color: var(--ink-3);
  border-radius: 10px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* ── Roster preview badges ── */
.go-roster-list__badge--joined {
  background: var(--success-soft);
  color: var(--success);
}
.go-roster-list__badge--pending {
  background: var(--bg-2);
  color: var(--ink-3);
}
.go-roster-list__more a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.go-roster-list__more a:hover {
  text-decoration: underline;
}

/* ── Game result status ── */
.go-game-result__status {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: auto;
}
.go-game-result__status--completed {
  background: var(--success-soft);
  color: var(--success);
}
.go-game-result__status--finalized {
  background: var(--bg-2);
  color: var(--ink-3);
}

/* ── Go Page Mobile ── */
@media (max-width: 768px) {
  .go-page { padding-top: 0.75rem; }
  .go-page .team-header { position: static; }

  .go-page .stat-grid { display: none !important; }

  .go-page .opponents-layout .stat-tile__v { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   Scoreboard — full-screen layout
   ═══════════════════════════════════════════════════════════════════ */

/* The live display (scoreboard-body + .scoreboard__*) is deliberately
   theme-invariant — dark chrome regardless of app theme. */
.scoreboard-body {
  margin: 0; padding: 0;
  overflow: hidden;
  background: #111827;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

/* ── Config ── */

.go-scoreboard-config {
  max-width: 400px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
.go-scoreboard-config__back {
  margin-bottom: 0.75rem;
}
.go-scoreboard-config__back a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}
.go-scoreboard-config h1 {
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}
.go-scoreboard-config__detail {
  font-size: 0.78rem;
  color: var(--ink-3);
  text-align: center;
  margin-bottom: 0.25rem;
}
.go-scoreboard-config__scorer {
  font-size: 0.8rem;
  color: var(--ink-3);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.75rem;
}
.go-scoreboard-config__pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.75rem;
}
.go-scoreboard-config__slot {
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.6rem 0.4rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}
/* Team-side blue/red mirror the live scoreboard halves — theme-invariant
   Layer-1 refs by design; the alpha tints read on both themes. */
.go-scoreboard-config__slot--left {
  border-color: var(--blue-500);
  background: rgba(37, 99, 235, 0.12);
}
.go-scoreboard-config__slot--right {
  border-color: var(--red-600);
  background: rgba(239, 68, 68, 0.12);
}
.go-scoreboard-config__sidelabel {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.go-scoreboard-config__slot--left .go-scoreboard-config__sidelabel {
  color: var(--blue-500);
}
.go-scoreboard-config__slot--right .go-scoreboard-config__sidelabel {
  color: var(--red-600);
}
.go-scoreboard-config__teamname {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 2px;
  flex: 1;
}
.go-scoreboard-config__startpts {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 0.4rem 0.25rem;
  border-radius: 6px;
  background: var(--white);
  -moz-appearance: textfield;
}
.go-scoreboard-config__startpts::-webkit-inner-spin-button,
.go-scoreboard-config__startpts::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.go-scoreboard-config__slot--left .go-scoreboard-config__startpts {
  border: 2px solid var(--blue-500);
  color: var(--blue-500);
}
.go-scoreboard-config__slot--right .go-scoreboard-config__startpts {
  border: 2px solid var(--red-600);
  color: var(--red-600);
}
.go-scoreboard-config__swap {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  align-self: center;
}
.go-scoreboard-config__series {
  font-size: 0.8rem;
  color: var(--ink-3);
  text-align: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.go-scoreboard-config__start {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.go-scoreboard-config__warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--r-md);
  padding: 0.75rem;
  margin-bottom: 1rem;
  text-align: center;
}
.go-scoreboard-config__warning strong {
  display: block;
  margin-bottom: 0.25rem;
}
.go-scoreboard-config__warning p {
  font-size: 0.8rem;
  color: var(--ink-2);
  margin: 0.15rem 0;
}

.go-scoreboard-config__pwa-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--r-md);
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
}
.go-scoreboard-config__pwa-hint p {
  flex: 1;
  font-size: 0.8rem;
  color: var(--ink-2);
  margin: 0;
}
.go-scoreboard-config__pwa-hint button {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

/* ── Live Board ──
   Theme-invariant court display: blue/red team halves, white text, white
   overlay panels with fixed dark-gray text. The color literals from here to
   the end of the scoreboard section are intentional and excluded from the
   dark-mode token sweep. */

.scoreboard {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.scoreboard__half {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.scoreboard__half--left  { background: #2563EB; }
.scoreboard__half--right { background: #DC2626; }

.scoreboard__score {
  font-size: min(30vw, 15rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 3px 20px rgba(0,0,0,0.25);
  pointer-events: none;
}
.scoreboard__team {
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Top-left: location + time (centered on left half) */
.scoreboard__info {
  position: absolute;
  top: 6px; left: 0; width: 50%;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  z-index: 5;
  pointer-events: none;
  text-align: center;
  padding: 0 0.75rem;
  box-sizing: border-box;
}
.scoreboard__info-line {
  line-height: 1.4;
}

/* Top-center: timer pill (3 rows) */
.scoreboard__timer {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.92);
  color: #1f2937;
  padding: 6px 20px 4px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.scoreboard__timer-clock {
  font-size: 16px;
  line-height: 1.3;
}
.scoreboard__timer-elapsed {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 16px;
  color: #4b5563;
  line-height: 1.3;
}
.scoreboard__timer-stopwatch {
  width: 14px; height: 14px;
  stroke: #6b7c93;
  flex-shrink: 0;
}
.scoreboard__timer-arrow {
  font-size: 10px;
  color: #9ca3af;
  line-height: 1;
  margin-top: 1px;
  letter-spacing: 0.2em;
}

/* Top-right: sync + logo (centered on right half) */
.scoreboard__sync-area {
  position: absolute;
  top: 6px; right: 0; width: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 0.75rem;
  box-sizing: border-box;
}
.scoreboard__sync {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.scoreboard__logo {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}
.scoreboard__logo strong {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.scoreboard__sync-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.scoreboard__sync-dot--ok      { background: #10B981; box-shadow: 0 0 4px #10B981; }
.scoreboard__sync-dot--offline { background: #EF4444; box-shadow: 0 0 4px #EF4444; }
.scoreboard__sync-dot--syncing { background: #F59E0B; }

/* Bottom-center: swap */
.scoreboard__swap {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: #4b5563;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  z-index: 10;
}

/* Expandable controls panel (drops down from timer) */
.scoreboard__panel {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: min(420px, 90vw);
  background: rgba(255,255,255,0.96);
  border-radius: 0 0 12px 12px;
  padding: 2rem 1.25rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  z-index: 20;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.scoreboard__backdrop {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 15;
}
.scoreboard--panel-open .scoreboard__backdrop { display: block; }
.scoreboard--panel-open .scoreboard__panel {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.scoreboard__panel-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #1f2937;
  text-align: center;
}
.scoreboard__panel-meta {
  font-size: 0.75rem;
  color: #6b7c93;
  text-align: center;
  margin-bottom: 0.15rem;
}
.scoreboard__panel-location {
  font-size: 0.75rem;
  color: #6b7c93;
  text-align: center;
  margin-bottom: 0.5rem;
}
.scoreboard__panel-clock {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin-bottom: 0.25rem;
}
.scoreboard__panel-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 0.75rem;
}
.scoreboard__panel-timer-row [data-scoreboard-target="panelTimer"] {
  display: inline-block;
  width: 56px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.scoreboard__panel-stopwatch {
  width: 16px; height: 16px;
  stroke: #6b7c93;
  flex-shrink: 0;
}
.scoreboard__panel-pause {
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin-left: 4px;
  border: 1.5px solid #2563EB;
  background: #fff;
  color: #2563EB;
}
.scoreboard__panel-pause--playing {
  background: #2563EB;
  color: #fff;
}
.scoreboard__panel-pause svg {
  width: 14px; height: 14px;
}
.scoreboard__panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.scoreboard__panel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.scoreboard__panel-btn--submit {
  background: #2563EB;
  color: #fff;
}
.scoreboard__panel-btn--discard {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #6b7c93;
}
.scoreboard__panel-notes textarea {
  width: 100%;
  min-height: 60px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.8rem;
  resize: vertical;
  font-family: inherit;
}
.scoreboard__panel-notes label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7c93;
  display: block;
  margin-bottom: 0.25rem;
}

/* Tap feedback flash */
.scoreboard__half--flash {
  opacity: 0.85;
  transition: opacity 0.08s;
}

/* Score progression */
.go-score-progression__back {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 0.75rem;
}
.go-score-progression__header {
  text-align: center;
  margin-bottom: 1rem;
}
.go-score-progression__location {
  font-size: var(--text-sm);
  color: var(--ink-3);
  margin: 0;
}
/* Team-side text colors (replaces inline #2563EB/#DC2626 spans). */
.go-team-side-a { color: var(--team-side-a); }
.go-team-side-b { color: var(--team-side-b); }

.go-score-progression__card {
  background: var(--surface);
  border-radius: var(--r-lg, 12px);
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.go-score-progression__chart { margin-bottom: 1rem; }
.score-progression-controls {
  display: flex; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.score-progression-controls .segmented__btn { font-size: 0.8rem; padding: 0.25rem 0.75rem; }
.score-progression-help {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-2);
  border-radius: var(--r-md);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.score-progression-help__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ink-3);
  opacity: 0.6;
}
.go-score-progression__picker {
  margin-top: 0.75rem;
  text-align: left;
}
.go-score-progression__picker-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--ink-3);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.go-score-progression__picker-select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.6rem;
  font-size: var(--text-sm);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 2rem;
}

/* ── Elo chips on go. portal ──
   Semantic classes (.stat-badge--elo-prior, --elo-after, --elo-delta-pos/neg)
   are defined in elo.css. No Go-specific overrides needed. */

/* ═══ Manage surface (epic 0031) ═══ */

/* Sticky second row under the 48px top bar: season picker + quick actions */
.go-manage-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 1rem 0.6rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 48px;
  z-index: 49;
}

.go-manage-bar__picker { flex: 1; min-width: 0; }

.go-manage-bar__picker-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.go-manage-bar__picker-btn--static { cursor: default; }

.go-manage-bar__picker-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.go-manage-bar__picker-org { color: var(--ink-3); font-weight: 500; }
.go-manage-bar__caret { color: var(--ink-3); flex-shrink: 0; }

.go-manage-bar__plus {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.35);
}

/* Menus open via the shared dropdown controller (which overrides position
   inline). The CSS anchors them under their trigger as a fallback, and the
   max-height keeps long season lists from spanning the viewport — an
   unclamped menu taller than the screen made the flip logic bottom-anchor it. */
.go-manage-bar__picker,
.go-manage-bar__actions { position: relative; }

.go-manage-bar__menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 250px;
  max-width: calc(100vw - 16px);
  max-height: min(60vh, 420px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.18);
  padding: 4px;
  z-index: 60;
}
.go-manage-bar__menu--actions { left: auto; right: 0; }
.go-manage-bar__menu.is-open { display: block; }

.go-manage-bar__menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.go-manage-bar__menu-item:hover { background: var(--bg); }
.go-manage-bar__menu-item.is-current { background: var(--accent-light); }

.go-manage-bar__menu-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.go-manage-bar__menu-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ink-3);
}

/* Quick-action landing state: dismissible filter pill */
.go-manage-filter-row { margin-bottom: 0.6rem; }

.go-manage-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}
.go-manage-filter-pill__clear {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  opacity: 0.7;
  padding: 0 0.15rem;
}

/* ── Manage ▸ Create Game (epic 0031 §7) ── */

.go-create-game { max-width: 560px; margin: 0 auto; }

.go-create-game__period-chip {
  margin-top: 0.35rem;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  color: var(--accent);
}
.go-create-game__period-chip:empty { display: none; }
.go-create-game__period-chip.is-warning { color: var(--danger); }

.go-create-game__score-toggle {
  display: inline-block;
  margin: 0.5rem 0;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.go-create-game__score {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}
.go-create-game__score.is-hidden { display: none; }
.go-create-game__score-hint {
  font-size: var(--text-xs, 0.75rem);
  color: var(--ink-3);
  margin: 0.25rem 0 0;
}

.go-create-game__footer {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.go-create-game__btn {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
}
.go-create-game__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.go-create-game__btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Landing highlight: Create Game redirects to the schedule anchored at the
   new card's dom id. */
.go-game-card:target {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Manage tab row + Summary cards (epic 0031 PR 4) ── */

.go-manage-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 0.9rem;
}
.go-manage-tabs__tab {
  flex: 1;
  text-align: center;
  padding: 0.4rem 0;
  border-radius: 6px;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
}
.go-manage-tabs__tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.1);
}

.go-msum-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}
.go-msum-card__title {
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}
.go-msum-card__cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.go-msum-stats { display: flex; gap: 1rem; margin-bottom: 0.4rem; }
.go-msum-stat { flex: 1; }
.go-msum-stat__num { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.go-msum-stat__label {
  font-size: var(--text-xs, 0.7rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.go-msum-meta { font-size: var(--text-sm, 0.875rem); color: var(--ink-2); margin: 0.25rem 0 0; }
.go-msum-meta__soft { color: var(--ink-3); font-weight: 400; }

.go-msum-attn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line-2);
  font-size: var(--text-sm, 0.875rem);
}
.go-msum-attn:last-child { border-bottom: none; }
.go-msum-attn__link { color: inherit; text-decoration: none; font-weight: 600; }
.go-msum-attn__link:hover { color: var(--accent); }
.go-msum-attn__count {
  padding: 0 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--text-xs, 0.75rem);
  background: var(--warning-soft);
  color: var(--warning-dark);
}

.go-msum-progress {
  height: 6px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.35rem 0;
}
.go-msum-progress__fill { height: 100%; background: var(--accent); border-radius: 999px; }

/* Neutral cards (Manage: viewer is on neither team) show full matchups —
   never truncate team names; wrap onto more rows and let the card grow. */
.go-game-card--neutral .go-game-card__team-info {
  flex-wrap: wrap;
  overflow: visible;
}
.go-game-card--neutral .go-game-card__team-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Summary ▸ per-pool tiles (epic 0031 follow-up) */
.go-msum-block-teams {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.go-msum-block-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
}

/* ═══ Player Profile — /profile/:handle (epic 0036 §3) ═══ */
/* Full-bleed: cancel .go-main's inset so the hero + stat band run
   edge-to-edge like the mockup. */
.go-pf { margin: -16px -1.25rem 0; }

.go-pf__hero {
  background: var(--surface);
  padding: 1.25rem 1.1rem 1rem;
  position: relative;
}
.go-pf__edit {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.go-pf__hero-top { display: flex; gap: 1rem; align-items: center; }
.go-pf__avatar {
  width: 86px;
  height: 86px;
  border-radius: var(--r-pill);
  background: var(--grad-light);
  color: var(--white);
  font-size: 1.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.go-pf__avatar--img { object-fit: cover; }
.go-pf__name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.go-pf__handle { color: var(--ink-3); font-size: 0.9rem; font-weight: 600; margin-top: 2px; }
.go-pf__tagline { font-style: italic; color: var(--ink-2); font-size: 0.9rem; margin-top: 0.85rem; }

/* stat row — borderless label+value pairs, single bottom rule */
.go-pf__stats {
  display: flex;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 1.4rem 1.05rem;
}
.go-pf__stat { text-align: center; }
.go-pf__stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.go-pf__stat-value { font-size: 1.35rem; font-weight: 800; margin-top: 3px; }
.go-pf__stat-chip { margin-top: 6px; font-size: 0.98rem; }

.go-pf__section { padding: 1.1rem 1.1rem 0; }
.go-pf__empty { color: var(--ink-3); font-size: var(--text-sm); padding: 0.5rem 0 1rem; }

/* season card — the registration's rating trajectory IS the background; the
   line's horizontal reach encodes season progress. */
.go-pf-sc {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0.7rem 0.95rem 0.8rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.go-pf-sc__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.go-pf-sc__area { fill: var(--spark-fill); stroke: none; }
.go-pf-sc__line {
  fill: none;
  stroke: var(--spark-line);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.go-pf-sc__head,
.go-pf-sc__main { position: relative; z-index: 1; }
.go-pf-sc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.go-pf-sc__meta { font-size: 0.7rem; color: var(--ink-3); font-weight: 600; line-height: 1.5; }
.go-pf-sc__badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.go-pf-sc__badge--active { background: var(--success-soft); color: var(--success); }
.go-pf-sc__badge--done { background: var(--bg-2); color: var(--ink-3); }
.go-pf-sc__main { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.55rem; }
.go-pf-sc__main .team-icon-md { width: 50px; height: 50px; font-size: 1.4rem; }
.go-pf-sc__cols { flex: 1; min-width: 0; }
.go-pf-sc__l1 { display: flex; align-items: center; gap: 0.5rem; }
.go-pf-sc__team {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.go-pf-sc__role {
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.go-pf-sc__role--captain { background: var(--accent-light); color: var(--accent); }
.go-pf-sc__role--player { background: var(--bg-2); color: var(--ink-3); }
.go-pf-sc__l2 { display: flex; gap: 1.3rem; margin-top: 0.55rem; }
.go-pf-sc__stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.go-pf-sc__stat-label {
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.go-pf-sc__stat-value { font-size: 0.92rem; font-weight: 800; color: var(--ink); line-height: 1; }
.go-pf-sc__stat-value .stat-badge--elo-after { font-size: 0.75rem; padding: 1px 8px; }

/* teammates — horizontally scrollable strip inside a card */
.go-pf-tm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin: 0 1.1rem 1.25rem;
}
.go-pf-tm-row {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 1rem 0.95rem;
  scrollbar-width: thin;
}
.go-pf-tm { flex: 0 0 auto; width: 66px; text-align: center; text-decoration: none; }
.go-pf-tm__av {
  width: 60px;
  height: 60px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 auto;
  object-fit: cover;
}
.go-pf-tm__name { font-size: 0.72rem; color: var(--ink-2); font-weight: 600; margin-top: 5px; line-height: 1.2; }
.go-pf-tm--ghost .go-pf-tm__av { filter: grayscale(1); opacity: 0.55; }
.go-pf-tm--ghost .go-pf-tm__name { color: var(--ink-3); }

.go-page__header-link { font-size: var(--text-sm); color: var(--accent); text-decoration: none; font-weight: 600; }

/* prefixed input (@handle) */
.go-form__input-prefixed { display: flex; align-items: center; gap: 6px; }
.go-form__input-prefix { color: var(--ink-3); font-weight: 700; }
.go-form__hint { font-size: var(--text-xs); color: var(--ink-3); margin-top: 4px; }

/* ═══ View Matchup — /my/matchup/:game_id (epic 0036 §6) ═══ */
/* Full-bleed like the profile page: cancel .go-main's inset; the hero band
   runs edge-to-edge and the section cards below carry their own margins. */
.go-mu { margin: -16px -1.25rem 0; padding-bottom: 1.5rem; }
.go-mu__back {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.9rem 0 0;
}
/* H2H hero — surface band, no card chrome (mirrors .go-pf__hero). */
.go-mu-hero {
  background: var(--surface);
  padding: 0 1.1rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.go-mu__label { padding: 1.15rem 1.35rem 0.5rem; }
.go-mu__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin: 0 1.1rem;
}

/* head-to-head */
.go-mu-teams {
  display: flex;
  justify-content: space-around;
  align-items: flex-start; /* icons stay level; long names wrap below */
  padding: 1rem 1rem 0.2rem;
}
.go-mu-team { text-align: center; width: 42%; }
.go-mu-teams__vs {
  color: var(--ink-3);
  font-size: 0.85rem;
  font-weight: 700;
  /* Centered against the 100px icons, not the whole icon+name block. */
  align-self: flex-start;
  margin-top: calc(50px - 0.6em);
}
.go-mu-team__icon .team-icon-md {
  width: 100px;
  height: 100px;
  font-size: 2.6rem;
  margin: 0 auto;
}
.go-mu-team__name { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em; margin-top: 0.6rem; }
.go-mu-team__rank { color: var(--ink-3); font-weight: 700; font-size: 0.85rem; }
.go-mu-team__elo { margin-top: 0.35rem; }
.go-mu-grid { padding: 0.5rem 0.5rem 0.9rem; }
.go-mu-row {
  display: grid;
  /* fixed label column so the stat values align across rows */
  grid-template-columns: 1fr 106px 1fr;
  align-items: center;
  padding: 0.55rem 0.7rem;
}
/* Group separator: a subtle rule plus breathing room before the row that
   starts a new stat section. */
.go-mu-row--gap {
  border-top: 1px solid var(--line-2);
  margin-top: 0.7rem;
  padding-top: 1rem;
}
/* Thin comparison bar sits above each stat value: a full-width track (the
   unfilled background) with the fill growing outward from the center. The
   label column carries no bar. */
.go-mu-track {
  width: 100%;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.go-mu-track__fill { position: absolute; top: 0; bottom: 0; border-radius: var(--r-pill); }
.go-mu-track__fill--l { right: 0; }
.go-mu-track__fill--r { left: 0; }
/* Strong fill: cyan gradient, lighter toward the center gap. */
.go-mu-track__fill--strong.go-mu-track__fill--l { background: linear-gradient(90deg, var(--mu-track-strong-from), var(--mu-track-strong-to)); }
.go-mu-track__fill--strong.go-mu-track__fill--r { background: linear-gradient(270deg, var(--mu-track-strong-from), var(--mu-track-strong-to)); }
.go-mu-track__fill--weak { background: var(--mu-track-weak); }
.go-mu-row__val--lead { color: var(--mu-lead-ink); }
.go-mu-row__a, .go-mu-row__b {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.15rem;
  font-weight: 800;
}
.go-mu-row__a { align-items: flex-end; text-align: right; padding-right: 0.4rem; }
.go-mu-row__b { align-items: flex-start; text-align: left; padding-left: 0.4rem; }
.go-mu-row__lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-align: center;
  white-space: nowrap;
}

/* last ten — winner's team icon per game (score beneath, page-oriented
   A–B), most recent on the right */
.go-mu-last10 { display: flex; gap: 8px; padding: 0.9rem 0.9rem; flex-wrap: wrap; }
.go-mu-last10__game { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.go-mu-last10 .team-icon-md { width: 30px; height: 30px; font-size: 0.85rem; }
.go-mu-last10__score { font-size: 0.6rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.go-mu-last10__tie {
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--bg-3);
  display: inline-block;
}

/* elo outcomes */
.go-mu-eo-head {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  align-items: center;
  padding: 0.9rem 1.1rem 0.2rem;
}
.go-mu-eo-head__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.go-mu-eo-head__team .team-icon-md { width: 44px; height: 44px; font-size: 1.15rem; }
.go-mu-eo-head__vs { color: var(--ink-3); font-size: 0.8rem; font-weight: 700; }
.go-mu-eo-sub { text-align: center; font-size: 0.72rem; color: var(--ink-3); padding: 0 1.1rem 0.6rem; }
.go-mu-eo-ladder-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  margin: 0 0.8rem;
  padding: 0.35rem 0.1rem;
}
.go-mu-eo { padding: 0.55rem 0.8rem 1rem; }
.go-mu-eo-r {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 78px 1fr;
  align-items: center;
  margin-bottom: 6px;
  padding: 2px 4px;
  border: 2px solid transparent;
  border-radius: var(--r-md);
}
.go-mu-eo-cell { display: flex; }
.go-mu-eo-cell--left { justify-content: flex-end; }
.go-mu-eo-cell--right { justify-content: flex-start; }
.go-mu-eo-bar { height: 24px; min-width: 30px; display: flex; align-items: center; }
.go-mu-eo-bar b { font-size: 0.75rem; font-weight: 800; }
.go-mu-eo-bar--left { border-radius: 5px 0 0 5px; justify-content: flex-end; padding-right: 7px; }
.go-mu-eo-bar--right { border-radius: 0 5px 5px 0; justify-content: flex-start; padding-left: 7px; }
.go-mu-eo-bar--gain { background: var(--mu-gain-bg); color: var(--mu-gain-ink); }
.go-mu-eo-bar--loss { background: var(--mu-loss-bg); color: var(--mu-loss-ink); }
.go-mu-eo-scores {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink);
}
.go-mu-eo-scores .l { text-align: right; }
.go-mu-eo-scores .d { padding: 0 6px; color: var(--ink-3); }
.go-mu-eo-scores .r { text-align: left; }
.go-mu-eo-r--actual { border-color: var(--accent); }
.go-mu-eo-actual {
  position: absolute;
  top: -9px;
  right: 8px;
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-pill);
  padding: 1px 8px;
}

/* ═══ Manage ▸ Playoffs (epic 0044 §5) ═══════════════════════════════════ */

.go-pf-status { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.go-pf-status__chip {
  display: inline-block; padding: 1px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; background: var(--bg-2); color: var(--ink-3);
}
.go-pf-status__chip--live { background: var(--success-soft, rgba(16,185,129,0.12)); color: var(--success, #059669); }

.go-pf-findings {
  font-size: 0.78rem; background: var(--bg-2); border-left: 3px solid var(--ink-3);
  border-radius: 0 6px 6px 0; padding: 0.45rem 0.7rem; margin-bottom: 0.6rem; color: var(--ink-2);
}
.go-pf-findings summary { font-weight: 700; cursor: pointer; }
.go-pf-findings ul { margin: 0.35rem 0 0.1rem 1.1rem; }

.go-pf-segrow { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.go-pf-segrow .pe-seg__btn { text-decoration: none; display: inline-flex; align-items: center; }
.go-pf-note { font-size: 0.78rem; color: var(--ink-3); margin-bottom: 0.6rem; }
.go-pf-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* The match card: match-level header, the series' game cards nested inside.
   Anchored (#match_<id>) — scroll-margin clears the sticky Manage bar. */
.go-pmatch {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  margin-bottom: 0.75rem; overflow: hidden; scroll-margin-top: 96px;
}
.go-pmatch__head { padding: 0.55rem 0.75rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.go-pmatch__row1 { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-size: 0.8rem; }
.go-pmatch__title { font-weight: 800; }
.go-pmatch__row2 { font-size: 0.78rem; color: var(--ink-2); margin-top: 2px; }
.go-pmatch__row2 strong { color: var(--ink); }
.go-pmatch__vs { color: var(--ink-3); font-size: 0.72rem; }
.go-pmatch__bo { color: var(--ink-3); font-size: 0.72rem; }
.go-pmatch__chip {
  margin-left: auto; padding: 0 8px; border-radius: 999px;
  font-size: 0.62rem; font-weight: 800; white-space: nowrap;
  background: var(--bg-2); color: var(--ink-3);
}
.go-pmatch__chip--ok   { background: var(--success-soft, rgba(16,185,129,0.12)); color: var(--success, #059669); }
.go-pmatch__chip--warn { background: var(--warning-soft, rgba(245,158,11,0.14)); color: var(--warning, #b45309); }
.go-pmatch__chip--live { background: var(--accent-light, #eff6ff); color: var(--accent); }
.go-pmatch__body { padding: 0.45rem 0.55rem; }
.go-pmatch__body .go-game-card { margin-bottom: 0.4rem; }
.go-pmatch__body .go-game-card:last-child { margin-bottom: 0; }

.go-game-card--ifneeded { opacity: 0.55; }

/* the return-anchor flash — the eye lands with the scroll */
.go-anchor-flash { animation: go-anchor-flash 1.5s ease-out; }
@keyframes go-anchor-flash {
  0%   { box-shadow: 0 0 0 3px var(--accent); }
  100% { box-shadow: 0 0 0 3px transparent; }
}
.go-game-card__gnum { font-size: 0.68rem; font-weight: 800; color: var(--ink-3); white-space: nowrap; }

/* click-through affordance on the read-only Manage viewer (epic 0044 §5.4) */
.pv--linked .pe-sched-card, .pv--linked .bm__card, .pv--linked tr[data-pvref] { cursor: pointer; }

/* ═══ Manage ▸ Playoffs finalization (epic 0044 §5.6) ════════════════════ */

.go-btn--sm { padding: 3px 12px; font-size: 0.72rem; }

/* five-plus actions (a scored-unfinalized playoff game): original button
   sizes, one row, the PANEL scrolls (Kyle). Buttons keep a natural floor
   instead of equal-shrinking; swipe_reveal ignores gestures that start
   inside the panel so the row pans natively instead of dragging the cover. */
.go-game-card__actions--wide { overflow-x: auto; touch-action: pan-x; }
/* every button is exactly a quarter of the panel — the SAME width a button
   has on a four-action card (flex:1 equal-split) — so widths are uniform and
   labels wrap in place; the surplus actions pan into view */
.go-game-card__actions--wide .go-game-card__action-btn,
.go-game-card__actions--wide .go-game-card__action-form { flex: 0 0 25%; min-width: 0; }
/* the form-wrapped buttons (Finalize/Unfinalize): the FORM is the 25% flex
   cell; the button inside must FILL it, not take 25% of 25% */
.go-game-card__actions--wide .go-game-card__action-form .go-game-card__action-btn { flex: 1 1 auto; width: 100%; }

/* button_to inside the reveal panel: the form is the flex child; the button
   carries the SAME .go-game-card__action-btn class as the anchor actions
   (one visual language for the row) plus the button-element resets */
.go-game-card__action-form { display: flex; flex: 1; min-width: 0; }
.go-game-card__action-form .go-game-card__action-btn {
  width: 100%; border: none; border-left: 1px solid var(--line);
  font-family: inherit;
}

/* the advancement callout — the Go sibling of HQ's §8 banner, actionable */
.go-pf-callout {
  font-size: 0.78rem; background: var(--warning-soft, rgba(245,158,11,0.14));
  border-left: 3px solid var(--warning, #f59e0b); border-radius: 0 6px 6px 0;
  padding: 0.55rem 0.7rem; margin-bottom: 0.7rem;
}
.go-pf-callout__row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.go-pf-callout__label { min-width: 0; }
.go-pf-callout__label a { font-weight: 700; color: var(--accent); text-decoration: none; }
.go-pf-callout__row form { margin-left: auto; flex-shrink: 0; }
.go-pf-callout__all { margin-top: 0.5rem; text-align: right; }

/* the conflict confirmation's submission picker */
.go-pf-subs { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.6rem 0 0.8rem; }
.go-pf-subs__row {
  display: flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0.55rem 0.7rem; background: var(--surface); cursor: pointer;
}
.go-pf-subs__row:has(input:checked) { border-color: var(--accent); background: var(--accent-light, #eff6ff); }
/* two lines (teams+scores / who+when); the row's center alignment sits the
   radio and the chip in the vertical middle of both */
.go-pf-subs__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.go-pf-subs__score { font-size: 0.85rem; font-weight: 600; }
.go-pf-subs__score b { font-weight: 800; }
.go-pf-subs__meta { font-size: 0.74rem; color: var(--ink-2); min-width: 0; }
.go-pf-subs__note { color: var(--ink-3); font-style: italic; }
.go-pf-subs__current {
  display: none;
  margin-left: auto; padding: 0 8px; border-radius: 999px; white-space: nowrap;
  font-size: 0.62rem; font-weight: 800; background: var(--accent-light, #eff6ff); color: var(--accent);
}
/* the chip tracks the RADIO, not the server's initial pick */
.go-pf-subs__row:has(input:checked) .go-pf-subs__current { display: inline-block; }

/* the confirmation page (conflict / §8 mismatch) */
.go-pf-confirm { max-width: 560px; }
.go-pf-confirm__title { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.5rem; }
.go-pf-confirm p { margin-bottom: 0.5rem; }
.go-pf-confirm ul { margin: 0 0 0.9rem 1.2rem; font-size: 0.85rem; }
.go-pf-confirm li { margin-bottom: 0.25rem; }
.go-pf-confirm__actions { display: flex; gap: 0.5rem; align-items: center; }
